From 4e90cb3b7dee6966fc670953835f65305bca7d34 Mon Sep 17 00:00:00 2001 From: Samuel Sendzul Date: Wed, 21 Feb 2024 15:30:53 +0200 Subject: [PATCH 1/5] chore(types): add transfer id to withdrawal type --- types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types.go b/types.go index 08cd3ee..abf3542 100644 --- a/types.go +++ b/types.go @@ -557,6 +557,9 @@ type Withdrawal struct { // Status Status Status `json:"status"` + // Transfer ID if the corresponding transfer if it has been initiated + TransferId string `json:"transfer_id"` + // Type distinguishes between different withdrawal methods where more than one is supported // for the given currency. Type string `json:"type"` From 324f5cb02f486a93fcdfc834bb44e42426ed6dd2 Mon Sep 17 00:00:00 2001 From: Samuel Sendzul Date: Wed, 21 Feb 2024 15:44:27 +0200 Subject: [PATCH 2/5] fix(api): correct get withdrawal api type --- api.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index 4f34262..90ef5d7 100644 --- a/api.go +++ b/api.go @@ -898,6 +898,9 @@ type GetWithdrawalResponse struct { // Status Status Status `json:"status"` + // Transfer ID + TransferId string `json:"transfer_id"` + // Type distinguishes between different withdrawal methods where more than one is supported // for the given currency. Type string `json:"type"` @@ -918,8 +921,7 @@ func (cl *Client) GetWithdrawal(ctx context.Context, req *GetWithdrawalRequest) } // ListBeneficiariesResponseRequest is the request struct for ListBeneficiariesResponse. -type ListBeneficiariesResponseRequest struct { -} +type ListBeneficiariesResponseRequest struct{} // ListBeneficiariesResponseResponse is the response struct for ListBeneficiariesResponse. type ListBeneficiariesResponseResponse struct { From 4f4a539212c63a51785abea0ed2668df5092aad9 Mon Sep 17 00:00:00 2001 From: Samuel Sendzul Date: Wed, 21 Feb 2024 15:46:17 +0200 Subject: [PATCH 3/5] fix(api): fix comment describing transfer id --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 90ef5d7..075d80a 100644 --- a/api.go +++ b/api.go @@ -898,7 +898,7 @@ type GetWithdrawalResponse struct { // Status Status Status `json:"status"` - // Transfer ID + // Transfer ID if the corresponding transfer if it has been initiated TransferId string `json:"transfer_id"` // Type distinguishes between different withdrawal methods where more than one is supported From e1dd240352084e3ff2d213292095ae621ac523f2 Mon Sep 17 00:00:00 2001 From: Samuel Sendzul <34831881+Samuel-Sendzul@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:20:14 +0200 Subject: [PATCH 4/5] fix(types): correct typo Co-authored-by: Pierre du Plessis --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index abf3542..3ba3fb4 100644 --- a/types.go +++ b/types.go @@ -557,7 +557,7 @@ type Withdrawal struct { // Status Status Status `json:"status"` - // Transfer ID if the corresponding transfer if it has been initiated + // Transfer ID of the corresponding transfer if it has been initiated TransferId string `json:"transfer_id"` // Type distinguishes between different withdrawal methods where more than one is supported From 0a276e7cbb97d6e769e899c2fa57bee825a5624d Mon Sep 17 00:00:00 2001 From: Samuel Sendzul <34831881+Samuel-Sendzul@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:20:24 +0200 Subject: [PATCH 5/5] fix(api): correct typo Co-authored-by: Pierre du Plessis --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 075d80a..e681b24 100644 --- a/api.go +++ b/api.go @@ -898,7 +898,7 @@ type GetWithdrawalResponse struct { // Status Status Status `json:"status"` - // Transfer ID if the corresponding transfer if it has been initiated + // Transfer ID of the corresponding transfer if it has been initiated TransferId string `json:"transfer_id"` // Type distinguishes between different withdrawal methods where more than one is supported