From 74c5e6eb7c19cd051a73ab83a3469744e570bc92 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Wed, 3 Oct 2018 13:31:35 +0200 Subject: [PATCH] Add "OnBehalfOf" to subscription and charge It seems like `OnBehalfOf` was added to SubscriptionParams but not the subscription objects themselves. Added to `Subscription` and `Charge`. --- charge.go | 1 + sub.go | 1 + 2 files changed, 2 insertions(+) diff --git a/charge.go b/charge.go index 62c0c972e1..1aea44b671 100644 --- a/charge.go +++ b/charge.go @@ -155,6 +155,7 @@ type Charge struct { Level3 ChargeLevel3 `json:"level3"` Livemode bool `json:"livemode"` Metadata map[string]string `json:"metadata"` + OnBehalfOf *Account `json:"on_behalf_of"` Outcome *ChargeOutcome `json:"outcome"` Paid bool `json:"paid"` ReceiptEmail string `json:"receipt_email"` diff --git a/sub.go b/sub.go index c33eccfcba..f605ad11ff 100644 --- a/sub.go +++ b/sub.go @@ -119,6 +119,7 @@ type Subscription struct { ID string `json:"id"` Items *SubscriptionItemList `json:"items"` Metadata map[string]string `json:"metadata"` + OnBehalfOf *Account `json:"on_behalf_of"` Plan *Plan `json:"plan"` Quantity int64 `json:"quantity"` Start int64 `json:"start"`