diff --git a/billingportal_configuration.go b/billingportal_configuration.go index a292980bf6..3145275655 100644 --- a/billingportal_configuration.go +++ b/billingportal_configuration.go @@ -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 { + Enabled *bool `form:"enabled"` +} // BillingPortalConfigurationFeaturesSubscriptionUpdateProductParams lets you // pass product details on the subscription update on a portal configuration. @@ -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"` } @@ -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 { + Enabled bool `json:"enabled"` +} // BillingPortalConfigurationFeaturesSubscriptionUpdateProduct represents the // subscription update details on a portal configuration. @@ -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"` }