Package com.stripe.param.billingportal
Class ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder
java.lang.Object
com.stripe.param.billingportal.ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder
public static class ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOption
(List<ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Option> elements) Add all elements to `options` list.Add an element to `options` list.build()
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.setEnabled
(Boolean enabled) Required. Whether the feature is enabled.setOptions
(EmptyParam options) Required. Which cancellation reasons will be given as options to the customer.setOptions
(List<ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Option> options) Required. Which cancellation reasons will be given as options to the customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEnabled
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder setEnabled(Boolean enabled) Required. Whether the feature is enabled. -
putExtraParam
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.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. SeeConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.extraParams
for the field documentation. -
putAllExtraParam
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.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. SeeConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.extraParams
for the field documentation. -
addOption
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder addOption(ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Option element) Add an element to `options` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.options
for the field documentation. -
addAllOption
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder addAllOption(List<ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Option> elements) Add all elements to `options` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.options
for the field documentation. -
setOptions
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder setOptions(EmptyParam options) Required. Which cancellation reasons will be given as options to the customer. -
setOptions
public ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Builder setOptions(List<ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Option> options) Required. Which cancellation reasons will be given as options to the customer.
-