Skip to content

Commit c142d4d

Browse files
authored
api: Regenerate types - add TransferID (#122)
1 parent 18fa69d commit c142d4d

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

api.go

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ type CancelWithdrawalResponse struct {
3535
// Status
3636
Status Status `json:"status"`
3737

38+
// Transfer ID is the identifier of the Withdrawal's transfer once it completes.
39+
TransferId string `json:"transfer_id"`
40+
3841
// Type distinguishes between different withdrawal methods where more than one is supported
3942
// for the given currency.
4043
Type string `json:"type"`
@@ -188,6 +191,9 @@ type CreateWithdrawalResponse struct {
188191
// Status
189192
Status Status `json:"status"`
190193

194+
// Transfer ID is the identifier of the Withdrawal's transfer once it completes.
195+
TransferId string `json:"transfer_id"`
196+
191197
// Type distinguishes between different withdrawal methods where more than one is supported
192198
// for the given currency.
193199
Type string `json:"type"`
@@ -588,7 +594,7 @@ type GetOrderV2Response struct {
588594
// Use this field and `side` to determine credit or debit of funds.
589595
Base decimal.Decimal `json:"base"`
590596

591-
// The base account ID used to place the order
597+
// The base currency account
592598
BaseAccountId int64 `json:"base_account_id"`
593599

594600
// Client Order ID has the value that was passed in when the Order was posted.
@@ -606,7 +612,7 @@ type GetOrderV2Response struct {
606612
// Use this field and `side` to determine credit or debit of funds.
607613
Counter decimal.Decimal `json:"counter"`
608614

609-
// The counter account ID used to place the order
615+
// The counter currency account
610616
CounterAccountId int64 `json:"counter_account_id"`
611617

612618
// Time of order creation (Unix milliseconds)
@@ -698,7 +704,7 @@ type GetOrderV3Response struct {
698704
// Use this field and `side` to determine credit or debit of funds.
699705
Base decimal.Decimal `json:"base"`
700706

701-
// The base account ID used to place the order
707+
// The base currency account
702708
BaseAccountId int64 `json:"base_account_id"`
703709

704710
// Client Order ID has the value that was passed in when the Order was posted.
@@ -716,7 +722,7 @@ type GetOrderV3Response struct {
716722
// Use this field and `side` to determine credit or debit of funds.
717723
Counter decimal.Decimal `json:"counter"`
718724

719-
// The counter account ID used to place the order
725+
// The counter currency account
720726
CounterAccountId int64 `json:"counter_account_id"`
721727

722728
// Time of order creation (Unix milliseconds)
@@ -898,6 +904,9 @@ type GetWithdrawalResponse struct {
898904
// Status
899905
Status Status `json:"status"`
900906

907+
// Transfer ID is the identifier of the Withdrawal's transfer once it completes.
908+
TransferId string `json:"transfer_id"`
909+
901910
// Type distinguishes between different withdrawal methods where more than one is supported
902911
// for the given currency.
903912
Type string `json:"type"`
@@ -918,8 +927,7 @@ func (cl *Client) GetWithdrawal(ctx context.Context, req *GetWithdrawalRequest)
918927
}
919928

920929
// ListBeneficiariesResponseRequest is the request struct for ListBeneficiariesResponse.
921-
type ListBeneficiariesResponseRequest struct {
922-
}
930+
type ListBeneficiariesResponseRequest struct{}
923931

924932
// ListBeneficiariesResponseResponse is the response struct for ListBeneficiariesResponse.
925933
type ListBeneficiariesResponseResponse struct {
@@ -1031,6 +1039,8 @@ type ListOrdersV2Response struct {
10311039
// oldest. This endpoint will list up to 100 most recent open orders by
10321040
// default.
10331041
//
1042+
// <b>Please note:</b> This data is archived 100 days after an exchange order is completed.
1043+
//
10341044
// Permissions required: <Code>Perm_R_Orders</Code>
10351045
func (cl *Client) ListOrdersV2(ctx context.Context, req *ListOrdersV2Request) (*ListOrdersV2Response, error) {
10361046
var res ListOrdersV2Response

types.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ type OrderV2 struct {
235235
// Use this field and `side` to determine credit or debit of funds.
236236
Base decimal.Decimal `json:"base"`
237237

238-
// The base account ID used to place the order
238+
// The base currency account
239239
BaseAccountId int64 `json:"base_account_id"`
240240

241241
// Client Order ID has the value that was passed in when the Order was posted.
@@ -253,7 +253,7 @@ type OrderV2 struct {
253253
// Use this field and `side` to determine credit or debit of funds.
254254
Counter decimal.Decimal `json:"counter"`
255255

256-
// The counter account ID used to place the order
256+
// The counter currency account
257257
CounterAccountId int64 `json:"counter_account_id"`
258258

259259
// Time of order creation (Unix milliseconds)
@@ -557,6 +557,9 @@ type Withdrawal struct {
557557
// Status
558558
Status Status `json:"status"`
559559

560+
// Transfer ID is the identifier of the Withdrawal's transfer once it completes.
561+
TransferId string `json:"transfer_id"`
562+
560563
// Type distinguishes between different withdrawal methods where more than one is supported
561564
// for the given currency.
562565
Type string `json:"type"`

0 commit comments

Comments
 (0)