Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1273

Merged
merged 2 commits into from
Apr 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions billingportal_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ type BillingPortalConfigurationFeaturesSubscriptionCancelParams struct {
Mode *string `form:"mode"`
ProrationBehavior *string `form:"proration_behavior"`
}
// BillingPortalConfigurationFeaturesSubscriptionPauseParams lets you pass details on the
// subscription pause on a portal configuration.
type BillingPortalConfigurationFeaturesSubscriptionPauseParams struct {
richardm-stripe marked this conversation as resolved.
Show resolved Hide resolved
Enabled *bool `form:"enabled"`
}

// BillingPortalConfigurationFeaturesSubscriptionUpdateProductParams lets you
// pass product details on the subscription update on a portal configuration.
Expand All @@ -130,6 +135,7 @@ type BillingPortalConfigurationFeaturesParams struct {
InvoiceHistory *BillingPortalConfigurationFeaturesInvoiceHistoryParams `form:"invoice_history"`
PaymentMethodUpdate *BillingPortalConfigurationFeaturesPaymentMethodUpdateParams `form:"payment_method_update"`
SubscriptionCancel *BillingPortalConfigurationFeaturesSubscriptionCancelParams `form:"subscription_cancel"`
SubscriptionPause *BillingPortalConfigurationFeaturesSubscriptionPauseParams `form:"subscription_pause"`
SubscriptionUpdate *BillingPortalConfigurationFeaturesSubscriptionUpdateParams `form:"subscription_update"`
}

Expand Down Expand Up @@ -195,6 +201,11 @@ type BillingPortalConfigurationFeaturesSubscriptionCancel struct {
Mode BillingPortalConfigurationFeaturesSubscriptionCancelMode `json:"mode"`
ProrationBehavior BillingPortalConfigurationFeaturesSubscriptionCancelProrationBehavior `json:"proration_behavior"`
}
// BillingPortalConfigurationFeaturesSubscriptionPause lets you pass pause details
// on the subscription update on a portal configuration.
type BillingPortalConfigurationFeaturesSubscriptionPause struct {
richardm-stripe marked this conversation as resolved.
Show resolved Hide resolved
Enabled bool `json:"enabled"`
}

// BillingPortalConfigurationFeaturesSubscriptionUpdateProduct represents the
// subscription update details on a portal configuration.
Expand All @@ -219,6 +230,7 @@ type BillingPortalConfigurationFeatures struct {
InvoiceHistory *BillingPortalConfigurationFeaturesInvoiceHistory `json:"invoice_history"`
PaymentMethodUpdate *BillingPortalConfigurationFeaturesPaymentMethodUpdate `json:"payment_method_update"`
SubscriptionCancel *BillingPortalConfigurationFeaturesSubscriptionCancel `json:"subscription_cancel"`
SubscriptionPause *BillingPortalConfigurationFeaturesSubscriptionPause `json:"subscription_pause"`
SubscriptionUpdate *BillingPortalConfigurationFeaturesSubscriptionUpdate `json:"subscription_update"`
}

Expand Down