Package com.stripe.param.billingportal
Class ConfigurationUpdateParams.Features.SubscriptionCancel
java.lang.Object
com.stripe.param.billingportal.ConfigurationUpdateParams.Features.SubscriptionCancel
- Enclosing class:
- ConfigurationUpdateParams.Features
The Payment Method
Configuration to use for this portal session. When specified, customers will be able
to update their payment method to one of the options specified by the payment method
configuration. If not set or set to an empty string, the default payment method
configuration is used.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanWhether the cancellation reasons will be collected in the portal and which options are exposed to the customer.Whether the feature is enabled.Map of extra parameters for custom features not available in this client library.getMode()Whether to cancel subscriptions immediately or at the end of the billing period.Whether to create prorations when canceling subscriptions.inthashCode()
-
Method Details
-
builder
-
getCancellationReason
public ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason getCancellationReason()Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer. -
getEnabled
Whether the feature is enabled. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedNamevalue. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getMode
Whether to cancel subscriptions immediately or at the end of the billing period. -
getProrationBehavior
public ConfigurationUpdateParams.Features.SubscriptionCancel.ProrationBehavior getProrationBehavior()Whether to create prorations when canceling subscriptions. Possible values arenoneandcreate_prorations, which is only compatible withmode=immediately. Passingalways_invoicewill result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period. -
equals
-
canEqual
-
hashCode
public int hashCode()
-