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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.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
(Boolean enabled) Whether the feature is enabled.Whether to cancel subscriptions immediately or at the end of the billing period.setProrationBehavior
(ConfigurationUpdateParams.Features.SubscriptionCancel.ProrationBehavior prorationBehavior) Whether to create prorations when canceling subscriptions.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Whether the feature is enabled. -
putExtraParam
public ConfigurationUpdateParams.Features.SubscriptionCancel.Builder putExtraParam(String key, 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(Map<String, 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.
-