From e19bd4bef48629f7828c3610fd0f2fef45da3e33 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 2 Apr 2021 15:44:00 -0400 Subject: [PATCH 1/2] Codegen for openapi 40e735e --- billingportal_configuration.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/billingportal_configuration.go b/billingportal_configuration.go index a292980bf6..19cb8240f8 100644 --- a/billingportal_configuration.go +++ b/billingportal_configuration.go @@ -106,6 +106,9 @@ type BillingPortalConfigurationFeaturesSubscriptionCancelParams struct { Mode *string `form:"mode"` ProrationBehavior *string `form:"proration_behavior"` } +type BillingPortalConfigurationFeaturesSubscriptionPauseParams struct { + Enabled *bool `form:"enabled"` +} // BillingPortalConfigurationFeaturesSubscriptionUpdateProductParams lets you // pass product details on the subscription update on a portal configuration. @@ -130,6 +133,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 +199,9 @@ type BillingPortalConfigurationFeaturesSubscriptionCancel struct { Mode BillingPortalConfigurationFeaturesSubscriptionCancelMode `json:"mode"` ProrationBehavior BillingPortalConfigurationFeaturesSubscriptionCancelProrationBehavior `json:"proration_behavior"` } +type BillingPortalConfigurationFeaturesSubscriptionPause struct { + Enabled bool `json:"enabled"` +} // BillingPortalConfigurationFeaturesSubscriptionUpdateProduct represents the // subscription update details on a portal configuration. @@ -219,6 +226,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"` } From 243dc24a866ee6393697c5ba9696232f150e5a41 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com> Date: Fri, 2 Apr 2021 15:46:33 -0400 Subject: [PATCH 2/2] Add docstrings --- billingportal_configuration.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/billingportal_configuration.go b/billingportal_configuration.go index 19cb8240f8..3145275655 100644 --- a/billingportal_configuration.go +++ b/billingportal_configuration.go @@ -106,6 +106,8 @@ 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"` } @@ -199,6 +201,8 @@ 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"` }