Package com.stripe.model.billingportal
Class Configuration.Features.SubscriptionUpdate
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billingportal.Configuration.Features.SubscriptionUpdate
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Configuration.Features
For more details about SubscriptionUpdate, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Product, please refer to the API Reference.static classFor more details about ScheduleAtPeriodEnd, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDetermines the value to use for the billing cycle anchor on subscription updates.The types of subscription updates that are supported for items listed in theproductsattribute.Whether the feature is enabled.The list of up to 10 products that support subscription updates.Determines how to handle prorations resulting from subscription updates.Determines how handle updates to trialing subscriptions.inthashCode()voidsetBillingCycleAnchor(String billingCycleAnchor) Determines the value to use for the billing cycle anchor on subscription updates.voidsetDefaultAllowedUpdates(List<String> defaultAllowedUpdates) The types of subscription updates that are supported for items listed in theproductsattribute.voidsetEnabled(Boolean enabled) Whether the feature is enabled.voidThe list of up to 10 products that support subscription updates.voidsetProrationBehavior(String prorationBehavior) Determines how to handle prorations resulting from subscription updates.voidsetScheduleAtPeriodEnd(Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd scheduleAtPeriodEnd) voidsetTrialUpdateBehavior(String trialUpdateBehavior) Determines how handle updates to trialing subscriptions.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SubscriptionUpdate
public SubscriptionUpdate()
-
-
Method Details
-
getBillingCycleAnchor
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.One of
now, orunchanged. -
getDefaultAllowedUpdates
The types of subscription updates that are supported for items listed in theproductsattribute. When empty, subscriptions are not updateable. -
getEnabled
Whether the feature is enabled. -
getProducts
The list of up to 10 products that support subscription updates. -
getProrationBehavior
Determines how to handle prorations resulting from subscription updates. Valid values arenone,create_prorations, andalways_invoice. Defaults to a value ofnoneif you don't set it during creation.One of
always_invoice,create_prorations, ornone. -
getScheduleAtPeriodEnd
-
getTrialUpdateBehavior
Determines how handle updates to trialing subscriptions. Valid values areend_trialandcontinue_trial. Defaults to a value ofend_trialif you don't set it during creation.One of
continue_trial, orend_trial. -
setBillingCycleAnchor
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.One of
now, orunchanged. -
setDefaultAllowedUpdates
The types of subscription updates that are supported for items listed in theproductsattribute. When empty, subscriptions are not updateable. -
setEnabled
Whether the feature is enabled. -
setProducts
The list of up to 10 products that support subscription updates. -
setProrationBehavior
Determines how to handle prorations resulting from subscription updates. Valid values arenone,create_prorations, andalways_invoice. Defaults to a value ofnoneif you don't set it during creation.One of
always_invoice,create_prorations, ornone. -
setScheduleAtPeriodEnd
public void setScheduleAtPeriodEnd(Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd scheduleAtPeriodEnd) -
setTrialUpdateBehavior
Determines how handle updates to trialing subscriptions. Valid values areend_trialandcontinue_trial. Defaults to a value ofend_trialif you don't set it during creation.One of
continue_trial, orend_trial. -
equals
-
canEqual
-
hashCode
public int hashCode()
-