Skip to content

Commit

Permalink
Codegen for openapi 710d2de
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Aug 25, 2021
1 parent 6e9d461 commit d0b8ad4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
24 changes: 18 additions & 6 deletions billingportal_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,19 @@ type BillingPortalConfigurationFeaturesPaymentMethodUpdateParams struct {
Enabled *bool `form:"enabled"`
}

// Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer
type BillingPortalConfigurationFeaturesSubscriptionCancelCancellationReasonParams struct {
Enabled *bool `form:"enabled"`
Options []*string `form:"options"`
}

// BillingPortalConfigurationFeaturesSubscriptionCancelParams lets you pass the
// subscription cancel deetails on a portal configuration.
type BillingPortalConfigurationFeaturesSubscriptionCancelParams struct {
Enabled *bool `form:"enabled"`
Mode *string `form:"mode"`
ProrationBehavior *string `form:"proration_behavior"`
CancellationReason *BillingPortalConfigurationFeaturesSubscriptionCancelCancellationReasonParams `form:"cancellation_reason"`
Enabled *bool `form:"enabled"`
Mode *string `form:"mode"`
ProrationBehavior *string `form:"proration_behavior"`
}

// BillingPortalConfigurationFeaturesSubscriptionPauseParams lets you pass details on the
Expand Down Expand Up @@ -194,13 +201,18 @@ type BillingPortalConfigurationFeaturesInvoiceHistory struct {
type BillingPortalConfigurationFeaturesPaymentMethodUpdate struct {
Enabled bool `json:"enabled"`
}
type BillingPortalConfigurationFeaturesSubscriptionCancelCancellationReason struct {
Enabled bool `json:"enabled"`
Options []string `json:"options"`
}

// BillingPortalConfigurationFeaturesSubscriptionCancel represents the
// subscription cancel details on a portal configuration.
type BillingPortalConfigurationFeaturesSubscriptionCancel struct {
Enabled bool `json:"enabled"`
Mode BillingPortalConfigurationFeaturesSubscriptionCancelMode `json:"mode"`
ProrationBehavior BillingPortalConfigurationFeaturesSubscriptionCancelProrationBehavior `json:"proration_behavior"`
CancellationReason *BillingPortalConfigurationFeaturesSubscriptionCancelCancellationReason `json:"cancellation_reason"`
Enabled bool `json:"enabled"`
Mode BillingPortalConfigurationFeaturesSubscriptionCancelMode `json:"mode"`
ProrationBehavior BillingPortalConfigurationFeaturesSubscriptionCancelProrationBehavior `json:"proration_behavior"`
}

// BillingPortalConfigurationFeaturesSubscriptionPause lets you pass pause details
Expand Down
1 change: 1 addition & 0 deletions client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
issuingcardholder "github.com/stripe/stripe-go/v72/issuing/cardholder"
issuingdispute "github.com/stripe/stripe-go/v72/issuing/dispute"
issuingtransaction "github.com/stripe/stripe-go/v72/issuing/transaction"
"github.com/stripe/stripe-go/v72/lineitem"
"github.com/stripe/stripe-go/v72/loginlink"
"github.com/stripe/stripe-go/v72/mandate"
"github.com/stripe/stripe-go/v72/oauth"
Expand Down

0 comments on commit d0b8ad4

Please sign in to comment.