Skip to content

Commit

Permalink
Merge pull request #599 from cleitonmarx/add_exchange_rate_field
Browse files Browse the repository at this point in the history
Adds missing ExchangeRate field to BalanceTransaction
  • Loading branch information
brandur-stripe authored Jun 21, 2018
2 parents 131287e + 617bade commit b1d6a58
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b1d6a58

Please sign in to comment.