From c0f3625f119c646ba11c7eae024a2582cb572d13 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..dd84cca432 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 *Refund `json:"destination_payment_refund"` + ID string `json:"id"` + Metadata map[string]string `json:"metadata"` + SourceRefund *Refund `json:"source_refund"` + Transfer string `json:"transfer"` } // ReversalList is a list of object for reversals.