@@ -38,37 +38,37 @@ type SubscriptionTransferDataParams struct {
3838// SubscriptionParams is the set of parameters that can be used when creating or updating a subscription.
3939// For more details see https://stripe.com/docs/api#create_subscription and https://stripe.com/docs/api#update_subscription.
4040type SubscriptionParams struct {
41- Params `form:"*"`
42- ApplicationFeePercent * float64 `form:"application_fee_percent"`
43- BackdateStartDate * int64 `form:"backdate_start_date"`
44- Billing * string `form:"billing"`
45- BillingCycleAnchor * int64 `form:"billing_cycle_anchor"`
46- BillingCycleAnchorNow * bool `form:"-"` // See custom AppendTo
47- BillingCycleAnchorUnchanged * bool `form:"-"` // See custom AppendTo
48- BillingThresholds * SubscriptionBillingThresholdsParams `form:"billing_thresholds"`
49- CancelAt * int64 `form:"cancel_at"`
50- CancelAtPeriodEnd * bool `form:"cancel_at_period_end"`
51- Card * CardParams `form:"card"`
52- Coupon * string `form:"coupon"`
53- Customer * string `form:"customer"`
54- DaysUntilDue * int64 `form:"days_until_due"`
55- DefaultPaymentMethod * string `form:"default_payment_method"`
56- DefaultSource * string `form:"default_source"`
57- DefaultTaxRates []* string `form:"default_tax_rates"`
58- Items []* SubscriptionItemsParams `form:"items"`
59- OnBehalfOf * string `form:"on_behalf_of"`
60- Plan * string `form:"plan"`
61- Prorate * bool `form:"prorate"`
62- ProrationDate * int64 `form:"proration_date"`
63- Quantity * int64 `form:"quantity"`
64- TrialEnd * int64 `form:"trial_end"`
65- TransferData * SubscriptionTransferDataParams `form:"transfer_data"`
66- TrialEndNow * bool `form:"-"` // See custom AppendTo
67- TrialFromPlan * bool `form:"trial_from_plan"`
68- TrialPeriodDays * int64 `form:"trial_period_days"`
41+ Params `form:"*" json:"*" `
42+ ApplicationFeePercent * float64 `form:"application_fee_percent" json:"application_fee_percent" `
43+ BackdateStartDate * int64 `form:"backdate_start_date" json:"backdate_start_date" `
44+ Billing * string `form:"billing" json:"billing" `
45+ BillingCycleAnchor * int64 `form:"billing_cycle_anchor" json:"billing_cycle_anchor" `
46+ BillingCycleAnchorNow * bool `form:"-" json:"-" ` // See custom AppendTo
47+ BillingCycleAnchorUnchanged * bool `form:"-" json:"-" ` // See custom AppendTo
48+ BillingThresholds * SubscriptionBillingThresholdsParams `form:"billing_thresholds" json:"billing_thresholds" `
49+ CancelAt * int64 `form:"cancel_at" json:"cancel_at" `
50+ CancelAtPeriodEnd * bool `form:"cancel_at_period_end" json:"cancel_at_period_end" `
51+ Card * CardParams `form:"card" json:"card" `
52+ Coupon * string `form:"coupon" json:"coupon" `
53+ Customer * string `form:"customer" json:"customer" `
54+ DaysUntilDue * int64 `form:"days_until_due" json:"days_until_due" `
55+ DefaultPaymentMethod * string `form:"default_payment_method" json:"default_payment_method" `
56+ DefaultSource * string `form:"default_source" json:"default_source" `
57+ DefaultTaxRates []* string `form:"default_tax_rates" json:"default_tax_rates" `
58+ Items []* SubscriptionItemsParams `form:"items" json:"items" `
59+ OnBehalfOf * string `form:"on_behalf_of" json:"on_behalf_of" `
60+ Plan * string `form:"plan" json:"plan" `
61+ Prorate * bool `form:"prorate" json:"prorate" `
62+ ProrationDate * int64 `form:"proration_date" json:"proration_date" `
63+ Quantity * int64 `form:"quantity" json:"quantity" `
64+ TrialEnd * int64 `form:"trial_end" json:"trial_end" `
65+ TransferData * SubscriptionTransferDataParams `form:"transfer_data" json:"transfer_data" `
66+ TrialEndNow * bool `form:"-" json:"-" ` // See custom AppendTo
67+ TrialFromPlan * bool `form:"trial_from_plan" json:"trial_from_plan" `
68+ TrialPeriodDays * int64 `form:"trial_period_days" json:"trial_period_days" `
6969
7070 // This parameter is deprecated and we recommend that you use TaxRates instead.
71- TaxPercent * float64 `form:"tax_percent"`
71+ TaxPercent * float64 `form:"tax_percent" json:"tax_percent" `
7272}
7373
7474// SubscriptionBillingThresholdsParams is a structure representing the parameters allowed to control
0 commit comments