Package com.stripe.param
Class QuoteCreateParams.SubscriptionData
java.lang.Object
com.stripe.param.QuoteCreateParams.SubscriptionData
- Enclosing class:
- QuoteCreateParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
This is used to determine the number of billing cycles to prebill.static enum
static class
static enum
static enum
static class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Configures when the subscription schedule generates prorations for phase transitions.When specified asreset
, the subscription will always start a new billing period when the quote is accepted.The subscription's description, meant to be displayable to the customer.When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.Configures how the subscription schedule behaves when it ends.Map of extra parameters for custom features not available in this client library.The id of a subscription schedule the quote will update.The id of a subscription that the quote will update.If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted.Determines how to handle prorations.Integer representing the number of trial period days before the customer is charged for the first time.
-
Method Details
-
builder
-
getBillingBehavior
Configures when the subscription schedule generates prorations for phase transitions. Possible values areprorate_on_next_phase
orprorate_up_front
with the default beingprorate_on_next_phase
.prorate_on_next_phase
will apply phase changes and generate prorations at transition time.prorate_up_front
will bill for all phases within the current billing cycle up front. -
getBillingCycleAnchor
When specified asreset
, the subscription will always start a new billing period when the quote is accepted. -
getDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. -
getEffectiveDate
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special valuecurrent_period_end
can be provided to update a subscription at the end of its current period. Theeffective_date
is ignored if it is in the past when the quote is accepted. -
getEndBehavior
Configures how the subscription schedule behaves when it ends. Possible values arerelease
orcancel
with the default beingrelease
.release
will end the subscription schedule and keep the underlying subscription running.cancel
will end the subscription schedule and cancel the underlying subscription. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getFromSchedule
The id of a subscription schedule the quote will update. The quote will inherit the state of the subscription schedule, such asphases
. Cannot be combined with other parameters. -
getFromSubscription
The id of a subscription that the quote will update. By default, the quote will contain the state of the subscription (such as line items, collection method and billing thresholds) unless overridden. -
getPrebilling
If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used witheffective_date
. -
getProrationBehavior
Determines how to handle prorations. When creating a subscription, valid values arecreate_prorations
ornone
.When updating a subscription, valid values are
create_prorations
,none
, oralways_invoice
.Passing
create_prorations
will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions. In order to always invoice immediately for prorations, passalways_invoice
.Prorations can be disabled by passing
none
. -
getTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time.
-