From 7a01c7a7d15c463ff88f26422f6ce866932b65c1 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Thu, 28 May 2020 22:00:57 -0700 Subject: [PATCH] Add `Metadata` and `Object` on `Topup` --- topup.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/topup.go b/topup.go index fb5d30adac..5b6afc9eac 100644 --- a/topup.go +++ b/topup.go @@ -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"` @@ -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"` }