Package com.stripe.param.billingportal
Class ConfigurationUpdateParams.Features.SubscriptionCancel.Builder
- java.lang.Object
-
- com.stripe.param.billingportal.ConfigurationUpdateParams.Features.SubscriptionCancel.Builder
-
- Enclosing class:
- ConfigurationUpdateParams.Features.SubscriptionCancel
public static class ConfigurationUpdateParams.Features.SubscriptionCancel.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public ConfigurationUpdateParams.Features.SubscriptionCancel build()
Finalize and obtain parameter instance from this builder.
-
setCancellationReason
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder setCancellationReason(ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason cancellationReason)
Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer.
-
setEnabled
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder setEnabled(java.lang.Boolean enabled)
Whether the feature is enabled.
-
putExtraParam
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair 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. SeeConfigurationUpdateParams.Features.SubscriptionCancel.extraParams
for the field documentation.
-
putAllExtraParam
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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. SeeConfigurationUpdateParams.Features.SubscriptionCancel.extraParams
for the field documentation.
-
setMode
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder setMode(ConfigurationUpdateParams.Features.SubscriptionCancel.Mode mode)
Whether to cancel subscriptions immediately or at the end of the billing period.
-
setProrationBehavior
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder setProrationBehavior(ConfigurationUpdateParams.Features.SubscriptionCancel.ProrationBehavior prorationBehavior)
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.
-
-