From 617baded78b2abc54a28ce898fd411d87a4bceac Mon Sep 17 00:00:00 2001 From: Cleiton Marques Souza Date: Thu, 21 Jun 2018 09:06:19 -0700 Subject: [PATCH] Adds ExchangeRate field --- balance.go | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/balance.go b/balance.go index 51a8e0cca9..f6f1ed65f7 100644 --- a/balance.go +++ b/balance.go @@ -100,19 +100,20 @@ type Balance struct { // BalanceTransaction is the resource representing the balance transaction. // For more details see https://stripe.com/docs/api/#balance. type BalanceTransaction struct { - Amount int64 `json:"amount"` - AvailableOn int64 `json:"available_on"` - Created int64 `json:"created"` - Currency Currency `json:"currency"` - Description string `json:"description"` - ID string `json:"id"` - Fee int64 `json:"fee"` - FeeDetails []*BalanceTransactionFee `json:"fee_details"` - Net int64 `json:"net"` - Recipient string `json:"recipient"` - Source *BalanceTransactionSource `json:"source"` - Status BalanceTransactionStatus `json:"status"` - Type BalanceTransactionType `json:"type"` + Amount int64 `json:"amount"` + AvailableOn int64 `json:"available_on"` + Created int64 `json:"created"` + Currency Currency `json:"currency"` + Description string `json:"description"` + ExchangeRate float64 `json:"exchange_rate"` + ID string `json:"id"` + Fee int64 `json:"fee"` + FeeDetails []*BalanceTransactionFee `json:"fee_details"` + Net int64 `json:"net"` + Recipient string `json:"recipient"` + Source *BalanceTransactionSource `json:"source"` + Status BalanceTransactionStatus `json:"status"` + Type BalanceTransactionType `json:"type"` } // BalanceTransactionList is a list of transactions as returned from a list endpoint.