From ff450901954dfc81411ba378d47904b33885d803 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Thu, 23 Aug 2018 18:55:57 -0400 Subject: [PATCH] Properly add the tax info structs to the Customer resource --- customer.go | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/customer.go b/customer.go index 36cba2e04d..b9691744da 100644 --- a/customer.go +++ b/customer.go @@ -73,21 +73,23 @@ type CustomerListParams struct { // Customer is the resource representing a Stripe customer. // For more details see https://stripe.com/docs/api#customers. type Customer struct { - AccountBalance int64 `json:"account_balance"` - Created int64 `json:"created"` - Currency Currency `json:"currency"` - DefaultSource *PaymentSource `json:"default_source"` - Deleted bool `json:"deleted"` - Delinquent bool `json:"delinquent"` - Description string `json:"description"` - Discount *Discount `json:"discount"` - Email string `json:"email"` - ID string `json:"id"` - Livemode bool `json:"livemode"` - Metadata map[string]string `json:"metadata"` - Shipping *CustomerShippingDetails `json:"shipping"` - Sources *SourceList `json:"sources"` - Subscriptions *SubscriptionList `json:"subscriptions"` + AccountBalance int64 `json:"account_balance"` + Created int64 `json:"created"` + Currency Currency `json:"currency"` + DefaultSource *PaymentSource `json:"default_source"` + Deleted bool `json:"deleted"` + Delinquent bool `json:"delinquent"` + Description string `json:"description"` + Discount *Discount `json:"discount"` + Email string `json:"email"` + ID string `json:"id"` + Livemode bool `json:"livemode"` + Metadata map[string]string `json:"metadata"` + Shipping *CustomerShippingDetails `json:"shipping"` + Sources *SourceList `json:"sources"` + Subscriptions *SubscriptionList `json:"subscriptions"` + TaxInfo *CustomerTaxInfo `json:"tax_info"` + TaxInfoVerification *CustomerTaxInfoVerification `json:"tax_info_verification"` } // CustomerList is a list of customers as retrieved from a list endpoint.