Package com.stripe.param.billingportal
Class ConfigurationCreateParams.Features.SubscriptionCancel
java.lang.Object
com.stripe.param.billingportal.ConfigurationCreateParams.Features.SubscriptionCancel
- Enclosing class:
- ConfigurationCreateParams.Features
Add all map key/value pairs to `extraParams` map. A map is initialized for the first
`put/putAll` call, and subsequent calls add additional key/value pairs to the original
map. See
ConfigurationCreateParams.Features.PaymentMethodUpdate.extraParams
for
the field documentation.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer.Required. 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.
-
Method Details
-
builder
-
getCancellationReason
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason getCancellationReason()Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer. -
getEnabled
Required. 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@SerializedName
value. 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 ConfigurationCreateParams.Features.SubscriptionCancel.ProrationBehavior getProrationBehavior()Whether to create prorations when canceling subscriptions. Possible values arenone
andcreate_prorations
, which is only compatible withmode=immediately
. No prorations are generated when canceling a subscription at the end of its natural billing period.
-