Skip to content

Commit

Permalink
Fix reason to pay
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Dec 1, 2021
1 parent 66eca54 commit 384b47d
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ type RequestToPayParams struct {

// RequestToPayStatus is the status of a request to pay request.
type RequestToPayStatus struct {
Amount string `json:"amount"`
Currency string `json:"currency"`
ExternalID string `json:"externalId"`
Payer *RequestToPayPayer `json:"payer"`
Status string `json:"status"`
FinancialTransactionID *string `json:"financialTransactionId,omitempty"`
Reason *RequestToPayReason `json:"reason,omitempty"`
Amount string `json:"amount"`
Currency string `json:"currency"`
ExternalID string `json:"externalId"`
Payer *RequestToPayPayer `json:"payer"`
Status string `json:"status"`
FinancialTransactionID *string `json:"financialTransactionId,omitempty"`
Reason *string `json:"reason,omitempty"`
}

// RequestToPayPayer identifies an account holder in the wallet platform.
Expand All @@ -27,12 +27,6 @@ type RequestToPayPayer struct {
PartyID string `json:"partyId"`
}

// RequestToPayReason contains the cause in case of failure.
type RequestToPayReason struct {
Code string `json:"code"`
Message string `json:"message"`
}

// AccountBalance is available balance of the account
type AccountBalance struct {
AvailableBalance string `json:"availableBalance"`
Expand Down

0 comments on commit 384b47d

Please sign in to comment.