Package com.stripe.param.billingportal
Class ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder
java.lang.Object
com.stripe.param.billingportal.ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder
public static class ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOption
(List<ConfigurationUpdateParams.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) Which cancellation reasons will be given as options to the customer.setOptions
(List<ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Option> options) 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 ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder setEnabled(Boolean enabled) Required. Whether the feature is enabled. -
putExtraParam
public ConfigurationUpdateParams.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. SeeConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.extraParams
for the field documentation. -
putAllExtraParam
public ConfigurationUpdateParams.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. SeeConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.extraParams
for the field documentation. -
addOption
public ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder addOption(ConfigurationUpdateParams.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. SeeConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.options
for the field documentation. -
addAllOption
public ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder addAllOption(List<ConfigurationUpdateParams.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. SeeConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.options
for the field documentation. -
setOptions
public ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder setOptions(EmptyParam options) Which cancellation reasons will be given as options to the customer. -
setOptions
public ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Builder setOptions(List<ConfigurationUpdateParams.Features.SubscriptionCancel.CancellationReason.Option> options) Which cancellation reasons will be given as options to the customer.
-