Skip to content

Commit

Permalink
API Updates (#1273)
Browse files Browse the repository at this point in the history
* Codegen for openapi 40e735e
  • Loading branch information
richardm-stripe authored Apr 2, 2021
1 parent 4d7ecd0 commit b6ceda4
Showing 1 changed file with 12 additions and 0 deletions.
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 {
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 {
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

0 comments on commit b6ceda4

Please sign in to comment.