Package com.stripe.param
Class InvoiceUpcomingParams.SubscriptionDetails
java.lang.Object
com.stripe.param.InvoiceUpcomingParams.SubscriptionDetails
- Enclosing class:
- InvoiceUpcomingParams
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The number of intervals between subscription billings.static class
static class
static enum
static enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
For new subscriptions, a future timestamp to anchor the subscription's billing cycle.A timestamp at which the subscription should cancel.Indicate whether this subscription should cancel at the end of the current period (current_period_end
).This simulates the subscription being canceled or expired immediately.If provided, the invoice returned will preview updating or creating a subscription with these default tax rates.Map of extra parameters for custom features not available in this client library.getItems()
A list of up to 20 subscription items, each with an attached price.Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resettingbilling_cycle_anchor=now
, or starting a trial), or if an item'squantity
changes.If previewing an update to a subscription, and doing proration,subscription_details.proration_date
forces the proration to be calculated as though the update was done at the specified time.For paused subscriptions, settingsubscription_details.resume_at
tonow
will preview the invoice that will be generated if the subscription is resumed.Date a subscription is intended to start (can be future or past).If provided, the invoice returned will preview updating or creating a subscription with that trial end.
-
Method Details
-
builder
-
getBillingCycleAnchor
For new subscriptions, a future timestamp to anchor the subscription's billing cycle. This is used to determine the date of the first full invoice, and, for plans withmonth
oryear
intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set tonow
orunchanged
. -
getCancelAt
A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled usingproration_behavior
. If set during a future period, this will always cause a proration for that period. -
getCancelAtPeriodEnd
Indicate whether this subscription should cancel at the end of the current period (current_period_end
). Defaults tofalse
. -
getCancelNow
This simulates the subscription being canceled or expired immediately. -
getDefaultTaxRates
If provided, the invoice returned will preview updating or creating a subscription with these default tax rates. The default tax rates will apply to any line item that does not havetax_rates
set. -
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. -
getItems
A list of up to 20 subscription items, each with an attached price. -
getProrationBehavior
Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resettingbilling_cycle_anchor=now
, or starting a trial), or if an item'squantity
changes. The default value iscreate_prorations
. -
getProrationDate
If previewing an update to a subscription, and doing proration,subscription_details.proration_date
forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period and within the current phase of the schedule backing this subscription, if the schedule exists. If set,subscription
, and one ofsubscription_details.items
, orsubscription_details.trial_end
are required. Also,subscription_details.proration_behavior
cannot be set to 'none'. -
getResumeAt
For paused subscriptions, settingsubscription_details.resume_at
tonow
will preview the invoice that will be generated if the subscription is resumed. -
getStartDate
Date a subscription is intended to start (can be future or past). -
getTrialEnd
If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one ofsubscription_details.items
orsubscription
is required.
-