Package com.stripe.model.billingportal
Class Configuration.Features.SubscriptionCancel
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billingportal.Configuration.Features.SubscriptionCancel
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Configuration.Features
For more details about SubscriptionCancel, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about CancellationReason, 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 booleanbooleanWhether the feature is enabled.getMode()Whether to cancel subscriptions immediately or at the end of the billing period.Whether to create prorations when canceling subscriptions.inthashCode()voidsetCancellationReason(Configuration.Features.SubscriptionCancel.CancellationReason cancellationReason) voidsetEnabled(Boolean enabled) Whether the feature is enabled.voidWhether to cancel subscriptions immediately or at the end of the billing period.voidsetProrationBehavior(String prorationBehavior) Whether to create prorations when canceling subscriptions.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SubscriptionCancel
public SubscriptionCancel()
-
-
Method Details
-
getCancellationReason
-
getEnabled
Whether the feature is enabled. -
getMode
Whether to cancel subscriptions immediately or at the end of the billing period.One of
at_period_end, orimmediately. -
getProrationBehavior
Whether to create prorations when canceling subscriptions. Possible values arenoneandcreate_prorations.One of
always_invoice,create_prorations, ornone. -
setCancellationReason
public void setCancellationReason(Configuration.Features.SubscriptionCancel.CancellationReason cancellationReason) -
setEnabled
Whether the feature is enabled. -
setMode
Whether to cancel subscriptions immediately or at the end of the billing period.One of
at_period_end, orimmediately. -
setProrationBehavior
Whether to create prorations when canceling subscriptions. Possible values arenoneandcreate_prorations.One of
always_invoice,create_prorations, ornone. -
equals
-
canEqual
-
hashCode
public int hashCode()
-