From 02556d6b937c3e4a8d2b523753999c11f1cc637b Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Thu, 10 Jan 2019 19:43:35 -0800 Subject: [PATCH] Add new properties to `TransferReversal` Support `destination_payment_refund` and `source_refund`. --- reversal.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/reversal.go b/reversal.go index 05602bcdc9..df6476f34c 100644 --- a/reversal.go +++ b/reversal.go @@ -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.