diff --git a/charge.go b/charge.go index 7ae10d2647..99bdb21a27 100644 --- a/charge.go +++ b/charge.go @@ -193,10 +193,8 @@ type ChargePaymentMethodDetailsAchDebit struct { // ChargePaymentMethodDetailsAcssDebit represents details about the ACSS Debit PaymentMethod. type ChargePaymentMethodDetailsAcssDebit struct { - Country string `json:"country"` - Fingerprint string `json:"fingerprint"` - Last4 string `json:"last4"` - RoutingNumber string `json:"routing_number"` + Fingerprint string `json:"fingerprint"` + Last4 string `json:"last4"` } // ChargePaymentMethodDetailsAlipay represents details about the Alipay PaymentMethod. @@ -487,7 +485,7 @@ type Charge struct { OnBehalfOf *Account `json:"on_behalf_of"` Outcome *ChargeOutcome `json:"outcome"` Paid bool `json:"paid"` - PaymentIntent string `json:"payment_intent"` + PaymentIntent *PaymentIntent `json:"payment_intent"` PaymentMethod string `json:"payment_method"` PaymentMethodDetails *ChargePaymentMethodDetails `json:"payment_method_details"` ReceiptEmail string `json:"receipt_email"` diff --git a/subschedule.go b/subschedule.go index 619f3e3f76..2d09fe353d 100644 --- a/subschedule.go +++ b/subschedule.go @@ -178,12 +178,6 @@ type SubscriptionSchedulePhase struct { TaxPercent float64 `json:"tax_percent"` } -// SubscriptionScheduleRenewalInterval represents the interval and duration of a schedule. -type SubscriptionScheduleRenewalInterval struct { - Interval PlanInterval `form:"interval"` - Length int64 `form:"length"` -} - // SubscriptionSchedule is the resource representing a Stripe subscription schedule. type SubscriptionSchedule struct { APIResource @@ -200,7 +194,6 @@ type SubscriptionSchedule struct { Object string `json:"object"` Phases []*SubscriptionSchedulePhase `json:"phases"` ReleasedSubscription *Subscription `json:"released_subscription"` - RenewalInterval *SubscriptionScheduleRenewalInterval `json:"renewal_interval"` Status SubscriptionScheduleStatus `json:"status"` Subscription *Subscription `json:"subscription"` } diff --git a/taxrate.go b/taxrate.go index d996b7be1b..9c70733bd4 100644 --- a/taxrate.go +++ b/taxrate.go @@ -25,13 +25,11 @@ type TaxRatePercentageRangeQueryParams struct { // TaxRateListParams is the set of parameters that can be used when listing tax rates. // For more detail see https://stripe.com/docs/api/tax_rates/list. type TaxRateListParams struct { - ListParams `form:"*"` - Active *bool `form:"active"` - Created *int64 `form:"created"` - CreatedRange *RangeQueryParams `form:"created"` - Inclusive *bool `form:"inclusive"` - Percentage *float64 `form:"percentage"` - PercentageRange *TaxRatePercentageRangeQueryParams `form:"percentage"` + ListParams `form:"*"` + Active *bool `form:"active"` + Created *int64 `form:"created"` + CreatedRange *RangeQueryParams `form:"created"` + Inclusive *bool `form:"inclusive"` } // TaxRate is the resource representing a Stripe tax rate.