Package com.stripe.param
Class InvoiceCreatePreviewParams.SubscriptionDetails
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.SubscriptionDetails
- Enclosing class:
- InvoiceCreatePreviewParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRequired. This is used to determine the number of billing cycles to prebill.static classstatic classstatic classstatic enumstatic classThe multiplier applied to the interval.static classThe number of intervals between subscription billings.static enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanFor new subscriptions, a future timestamp to anchor the subscription's billing cycle.Controls how prorations and invoices for subscriptions are calculated and orchestrated.Sets the billing schedules for the subscription.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.The pre-billing to apply to the subscription as a preview.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'squantitychanges.If previewing an update to a subscription, and doing proration,subscription_details.proration_dateforces the proration to be calculated as though the update was done at the specified time.For paused subscriptions, settingsubscription_details.resume_attonowwill 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.inthashCode()
-
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 withmonthoryearintervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set tonoworunchanged. -
getBillingMode
Controls how prorations and invoices for subscriptions are calculated and orchestrated. -
getBillingSchedules
Sets the billing schedules for the subscription. -
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_ratesset. -
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@SerializedNamevalue. 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. -
getPrebilling
The pre-billing to apply to the subscription as a preview. -
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'squantitychanges. The default value iscreate_prorations. -
getProrationDate
If previewing an update to a subscription, and doing proration,subscription_details.proration_dateforces 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_endare required. Also,subscription_details.proration_behaviorcannot be set to 'none'. -
getResumeAt
For paused subscriptions, settingsubscription_details.resume_attonowwill 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.itemsorsubscriptionis required. -
equals
-
canEqual
-
hashCode
public int hashCode()
-