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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllDefaultAllowedUpdate(List<ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> elements) Add all elements to `defaultAllowedUpdates` list.Add all elements to `products` list.addDefaultAllowedUpdate(ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate element) Add an element to `defaultAllowedUpdates` list.Add an element to `products` 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.setDefaultAllowedUpdates(EmptyParam defaultAllowedUpdates) The types of subscription updates that are supported.setDefaultAllowedUpdates(List<ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> defaultAllowedUpdates) The types of subscription updates that are supported.setEnabled(Boolean enabled) Whether the feature is enabled.setProducts(EmptyParam products) The list of products that support subscription updates.The list of products that support subscription updates.setProrationBehavior(ConfigurationUpdateParams.Features.SubscriptionUpdate.ProrationBehavior prorationBehavior) Determines how to handle prorations resulting from subscription updates.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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.defaultAllowedUpdatesfor the field documentation. -
addAllDefaultAllowedUpdate
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder addAllDefaultAllowedUpdate(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.defaultAllowedUpdatesfor 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(List<ConfigurationUpdateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> defaultAllowedUpdates) The types of subscription updates that are supported. When empty, subscriptions are not updateable. -
setEnabled
Whether the feature is enabled. -
putExtraParam
public ConfigurationUpdateParams.Features.SubscriptionUpdate.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.SubscriptionUpdate.extraParamsfor the field documentation. -
putAllExtraParam
public ConfigurationUpdateParams.Features.SubscriptionUpdate.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.SubscriptionUpdate.extraParamsfor 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.productsfor the field documentation. -
addAllProduct
public ConfigurationUpdateParams.Features.SubscriptionUpdate.Builder addAllProduct(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.productsfor 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(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.
-