Package com.stripe.param.billingportal
Class ConfigurationCreateParams.Features.SubscriptionUpdate.Builder
java.lang.Object
com.stripe.param.billingportal.ConfigurationCreateParams.Features.SubscriptionUpdate.Builder
- Enclosing class:
- ConfigurationCreateParams.Features.SubscriptionUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllDefaultAllowedUpdate(List<ConfigurationCreateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> elements) Add all elements to `defaultAllowedUpdates` list.Add all elements to `products` list.addDefaultAllowedUpdate(ConfigurationCreateParams.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.setBillingCycleAnchor(ConfigurationCreateParams.Features.SubscriptionUpdate.BillingCycleAnchor billingCycleAnchor) Determines the value to use for the billing cycle anchor on subscription updates.setDefaultAllowedUpdates(EmptyParam defaultAllowedUpdates) The types of subscription updates that are supported.setDefaultAllowedUpdates(List<ConfigurationCreateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> defaultAllowedUpdates) The types of subscription updates that are supported.setEnabled(Boolean enabled) Required. Whether the feature is enabled.setProducts(EmptyParam products) The list of up to 10 products that support subscription updates.The list of up to 10 products that support subscription updates.setProrationBehavior(ConfigurationCreateParams.Features.SubscriptionUpdate.ProrationBehavior prorationBehavior) Determines how to handle prorations resulting from subscription updates.setScheduleAtPeriodEnd(ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd scheduleAtPeriodEnd) Setting to control when an update should be scheduled at the end of the period instead of applying immediately.setTrialUpdateBehavior(ConfigurationCreateParams.Features.SubscriptionUpdate.TrialUpdateBehavior trialUpdateBehavior) The behavior when updating a subscription that is trialing.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBillingCycleAnchor
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setBillingCycleAnchor(ConfigurationCreateParams.Features.SubscriptionUpdate.BillingCycleAnchor billingCycleAnchor) Determines the value to use for the billing cycle anchor on subscription updates. Valid values arenoworunchanged, and the default value isunchanged. Setting the value tonowresets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle documentation. -
addDefaultAllowedUpdate
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder addDefaultAllowedUpdate(ConfigurationCreateParams.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. SeeConfigurationCreateParams.Features.SubscriptionUpdate.defaultAllowedUpdatesfor the field documentation. -
addAllDefaultAllowedUpdate
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder addAllDefaultAllowedUpdate(List<ConfigurationCreateParams.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. SeeConfigurationCreateParams.Features.SubscriptionUpdate.defaultAllowedUpdatesfor the field documentation. -
setDefaultAllowedUpdates
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setDefaultAllowedUpdates(EmptyParam defaultAllowedUpdates) The types of subscription updates that are supported. When empty, subscriptions are not updateable. -
setDefaultAllowedUpdates
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setDefaultAllowedUpdates(List<ConfigurationCreateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate> defaultAllowedUpdates) The types of subscription updates that are supported. When empty, subscriptions are not updateable. -
setEnabled
Required. Whether the feature is enabled. -
putExtraParam
public ConfigurationCreateParams.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. SeeConfigurationCreateParams.Features.SubscriptionUpdate.extraParamsfor the field documentation. -
putAllExtraParam
public ConfigurationCreateParams.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. SeeConfigurationCreateParams.Features.SubscriptionUpdate.extraParamsfor the field documentation. -
addProduct
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder addProduct(ConfigurationCreateParams.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. SeeConfigurationCreateParams.Features.SubscriptionUpdate.productsfor the field documentation. -
addAllProduct
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder addAllProduct(List<ConfigurationCreateParams.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. SeeConfigurationCreateParams.Features.SubscriptionUpdate.productsfor the field documentation. -
setProducts
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setProducts(EmptyParam products) The list of up to 10 products that support subscription updates. -
setProducts
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setProducts(List<ConfigurationCreateParams.Features.SubscriptionUpdate.Product> products) The list of up to 10 products that support subscription updates. -
setProrationBehavior
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setProrationBehavior(ConfigurationCreateParams.Features.SubscriptionUpdate.ProrationBehavior prorationBehavior) Determines how to handle prorations resulting from subscription updates. Valid values arenone,create_prorations, andalways_invoice. -
setScheduleAtPeriodEnd
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setScheduleAtPeriodEnd(ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd scheduleAtPeriodEnd) Setting to control when an update should be scheduled at the end of the period instead of applying immediately. -
setTrialUpdateBehavior
public ConfigurationCreateParams.Features.SubscriptionUpdate.Builder setTrialUpdateBehavior(ConfigurationCreateParams.Features.SubscriptionUpdate.TrialUpdateBehavior trialUpdateBehavior) The behavior when updating a subscription that is trialing.
-