Skip to content

Commit

Permalink
Add new properties to TransferReversal
Browse files Browse the repository at this point in the history
Support `destination_payment_refund` and `source_refund`.
  • Loading branch information
remi-stripe committed Jan 11, 2019
1 parent 5697350 commit 02556d6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions reversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ type ReversalListParams struct {

// Reversal represents a transfer reversal.
type Reversal struct {
Amount int64 `json:"amount"`
BalanceTransaction *BalanceTransaction `json:"balance_transaction"`
Created int64 `json:"created"`
Currency Currency `json:"currency"`
ID string `json:"id"`
Metadata map[string]string `json:"metadata"`
Transfer string `json:"transfer"`
Amount int64 `json:"amount"`
BalanceTransaction *BalanceTransaction `json:"balance_transaction"`
Created int64 `json:"created"`
Currency Currency `json:"currency"`
DestinationPaymentRefund string `json:"destination_payment_refund"`
ID string `json:"id"`
Metadata map[string]string `json:"metadata"`
SourceRefund string `json:"source_refund"`
Transfer string `json:"transfer"`
}

// ReversalList is a list of object for reversals.
Expand Down

0 comments on commit 02556d6

Please sign in to comment.