Package com.stripe.param.billingportal
Class ConfigurationCreateParams.Features.SubscriptionPause.Builder
java.lang.Object
com.stripe.param.billingportal.ConfigurationCreateParams.Features.SubscriptionPause.Builder
- Enclosing class:
- ConfigurationCreateParams.Features.SubscriptionPause
-
Constructor Summary
Constructors -
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.Controls how long a subscription can be paused.setEnabled(Boolean enabled) Whether the feature is enabled.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDuration
public ConfigurationCreateParams.Features.SubscriptionPause.Builder setDuration(ConfigurationCreateParams.Features.SubscriptionPause.Duration duration) Controls how long a subscription can be paused. Defaults tointerval_optionswith a single one-month option. -
setEnabled
Whether the feature is enabled. Customers can only pause subscriptions in the redesigned customer portal. -
putExtraParam
public ConfigurationCreateParams.Features.SubscriptionPause.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.SubscriptionPause.extraParamsfor the field documentation. -
putAllExtraParam
public ConfigurationCreateParams.Features.SubscriptionPause.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.SubscriptionPause.extraParamsfor the field documentation.
-