Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api, types): add transfer_id to withdrawals #121

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@ type GetWithdrawalResponse 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"`
Expand All @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down