Open
Description
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
In a previous stripe-go version, we had the following enum:
// SubscriptionPaymentBehavior lets you control the behavior of subscription creation in case of
// a failed payment.
type SubscriptionPaymentBehavior string
// List of values that SubscriptionPaymentBehavior can take.
const (
SubscriptionPaymentBehaviorAllowIncomplete SubscriptionPaymentBehavior = "allow_incomplete"
SubscriptionPaymentBehaviorErrorIfIncomplete SubscriptionPaymentBehavior = "error_if_incomplete"
SubscriptionPaymentBehaviorPendingIfIncomplete SubscriptionPaymentBehavior = "pending_if_incomplete"
)
First, the default_incomplete
value was missing.
Second, it was not used in the Subscription type.
I wonder why it disappeared. Using an enum would prevent any malformed value.
Describe alternatives you've considered
No response
Additional context
No response
Activity