Skip to content

Commit

Permalink
Merge pull request #1108 from stripe/remi-topup-metadata
Browse files Browse the repository at this point in the history
Add `Metadata` and `Object` on `Topup`
  • Loading branch information
remi-stripe authored May 29, 2020
2 parents 454d6cd + 7a01c7a commit 99f68b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion topup.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ type TopupList struct {
type Topup struct {
APIResource
Amount int64 `json:"amount"`
ArrivalDate int64 `json:"arrival_date"`
BalanceTransaction *BalanceTransaction `json:"balance_transaction"`
Created int64 `json:"created"`
Currency Currency `json:"currency"`
Expand All @@ -50,8 +49,13 @@ type Topup struct {
FailureMessage string `json:"failure_message"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
Metadata map[string]string `json:"metadata"`
Object string `json:"object"`
Source *PaymentSource `json:"source"`
StatementDescriptor string `json:"statement_descriptor"`
Status string `json:"status"`
TransferGroup string `json:"transfer_group"`

// The following property is deprecated
ArrivalDate int64 `json:"arrival_date"`
}

0 comments on commit 99f68b0

Please sign in to comment.