From 638f907ff69c036299fa3d7f433952ae272d3300 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 28 Nov 2018 09:43:46 -0500 Subject: [PATCH] Add missing properties on the Refund resource --- .travis.yml | 2 +- refund.go | 24 ++++++++++++++---------- testing/testing.go | 2 +- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 371e62831e..31a2989645 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ cache: env: global: # If changing this number, please also change it in `testing/testing.go`. - - STRIPE_MOCK_VERSION=0.37.0 + - STRIPE_MOCK_VERSION=0.38.0 go: - "1.9" diff --git a/refund.go b/refund.go index 7175eeb2fa..d821dce1cf 100644 --- a/refund.go +++ b/refund.go @@ -43,16 +43,20 @@ type RefundListParams struct { // Refund is the resource representing a Stripe refund. // For more details see https://stripe.com/docs/api#refunds. type Refund struct { - Amount int64 `json:"amount"` - BalanceTransaction *BalanceTransaction `json:"balance_transaction"` - Charge *Charge `json:"charge"` - Created int64 `json:"created"` - Currency Currency `json:"currency"` - ID string `json:"id"` - Metadata map[string]string `json:"metadata"` - Reason RefundReason `json:"reason"` - ReceiptNumber string `json:"receipt_number"` - Status RefundStatus `json:"status"` + Amount int64 `json:"amount"` + BalanceTransaction *BalanceTransaction `json:"balance_transaction"` + Charge *Charge `json:"charge"` + Created int64 `json:"created"` + Currency Currency `json:"currency"` + FailureBalanceTransaction *BalanceTransaction `json:"failure_balance_transaction"` + ID string `json:"id"` + Metadata map[string]string `json:"metadata"` + Object string `json:"object"` + Reason RefundReason `json:"reason"` + ReceiptNumber string `json:"receipt_number"` + SourceTransferReversal *Reversal `json:"source_transfer_reversal"` + Status RefundStatus `json:"status"` + TransferReversal *Reversal `json:"transfer_reversal"` } // RefundList is a list object for refunds. diff --git a/testing/testing.go b/testing/testing.go index 8c2b13cbb9..6ec65b38de 100644 --- a/testing/testing.go +++ b/testing/testing.go @@ -25,7 +25,7 @@ const ( // added in a more recent version of stripe-mock, we can show people a // better error message instead of the test suite crashing with a bunch of // confusing 404 errors or the like. - MockMinimumVersion = "0.37.0" + MockMinimumVersion = "0.38.0" // TestMerchantID is a token that can be used to represent a merchant ID in // simple tests.