Package com.stripe.param.billingportal
Class ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder
- java.lang.Object
-
- com.stripe.param.billingportal.ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder
-
- Enclosing class:
- ConfigurationUpdateParams.Features.SubscriptionUpdate
public static class ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public ConfigurationUpdateParams.Features.SubscriptionUpdate build()
Finalize and obtain parameter instance from this builder.
-
addDefaultAllowedUpdate
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder addDefaultAllowedUpdate(ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate element)
Add an element to `defaultAllowedUpdates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeConfigurationUpdateParams.Features.SubscriptionUpdate.defaultAllowedUpdates
for the field documentation.
-
addAllDefaultAllowedUpdate
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder addAllDefaultAllowedUpdate(java.util.List<ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> elements)
Add all elements to `defaultAllowedUpdates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeConfigurationUpdateParams.Features.SubscriptionUpdate.defaultAllowedUpdates
for the field documentation.
-
setDefaultAllowedUpdates
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder setDefaultAllowedUpdates(EmptyParam defaultAllowedUpdates)
The types of subscription updates that are supported. When empty, subscriptions are not updateable.
-
setDefaultAllowedUpdates
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder setDefaultAllowedUpdates(java.util.List<ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> defaultAllowedUpdates)
The types of subscription updates that are supported. When empty, subscriptions are not updateable.
-
setEnabled
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder setEnabled(java.lang.Boolean enabled)
Whether the feature is enabled.
-
putExtraParam
public ConfigurationUpdateParams.Features.SubscriptionUpdate.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.SubscriptionUpdate.extraParams
for the field documentation.
-
putAllExtraParam
public ConfigurationUpdateParams.Features.SubscriptionUpdate.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.SubscriptionUpdate.extraParams
for the field documentation.
-
addProduct
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder addProduct(ConfigurationUpdateParams.Features.SubscriptionUpdate.Product element)
Add an element to `products` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeConfigurationUpdateParams.Features.SubscriptionUpdate.products
for the field documentation.
-
addAllProduct
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder addAllProduct(java.util.List<ConfigurationUpdateParams.Features.SubscriptionUpdate.Product> elements)
Add all elements to `products` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeConfigurationUpdateParams.Features.SubscriptionUpdate.products
for the field documentation.
-
setProducts
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder setProducts(EmptyParam products)
The list of products that support subscription updates.
-
setProducts
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder setProducts(java.util.List<ConfigurationUpdateParams.Features.SubscriptionUpdate.Product> products)
The list of products that support subscription updates.
-
setProrationBehavior
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder setProrationBehavior(ConfigurationUpdateParams.Features.SubscriptionUpdate.ProrationBehavior prorationBehavior)
Determines how to handle prorations resulting from subscription updates. Valid values arenone
,create_prorations
, andalways_invoice
.
-
-