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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Whether 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.int
hashCode()
void
setCancellationReason
(Configuration.Features.SubscriptionCancel.CancellationReason cancellationReason) void
setEnabled
(Boolean enabled) Whether the feature is enabled.void
Whether to cancel subscriptions immediately or at the end of the billing period.void
setProrationBehavior
(String prorationBehavior) Whether to create prorations when canceling subscriptions.Methods inherited from class com.stripe.model.StripeObject
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 arenone
andcreate_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 arenone
andcreate_prorations
.One of
always_invoice
,create_prorations
, ornone
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-