Package com.stripe.param
Class InvoiceUpcomingLinesListParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.InvoiceUpcomingLinesListParams
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Required. Type of the account referenced in the request.static class
static class
ID of the promotion code to create a new discount for.static class
static enum
The number of intervals between subscription billings.static class
static enum
static class
static class
static enum
static enum
static enum
Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Settings for automatic tax lookup for this invoice preview.The ID of the coupon to apply to this phase of the subscription schedule.The currency to preview this invoice in.The identifier of the customer whose upcoming invoice you'd like to retrieve.Details about the customer you want to invoice or overrides for an existing customer.The coupons to redeem into discounts for the invoice preview.A cursor for use in pagination.Specifies which fields in the response should be expanded.Map of extra parameters for custom features not available in this client library.List of invoice items to add or update in the upcoming invoice preview.The connected account that issues the invoice.getLimit()
A limit on the number of objects to be returned.The account (if any) for which the funds of the invoice payment are intended.Customizes the types of values to include when calculating the invoice.The identifier of the schedule whose upcoming invoice you'd like to retrieve.The schedule creation or modification params to apply as a preview.A cursor for use in pagination.The identifier of the subscription for which you'd like to retrieve the upcoming invoice.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.The subscription creation or modification params to apply as a preview.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_proration_date
forces the proration to be calculated as though the update was done at the specified time.For paused subscriptions, settingsubscription_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.Indicates if a plan'strial_period_days
should be applied to the subscription.Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getAutomaticTax
Settings for automatic tax lookup for this invoice preview. -
getCoupon
The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Usediscounts
instead. -
getCurrency
The currency to preview this invoice in. Defaults to that ofcustomer
if not specified. -
getCustomer
The identifier of the customer whose upcoming invoice you'd like to retrieve. Ifautomatic_tax
is enabled then one ofcustomer
,customer_details
,subscription
, orschedule
must be set. -
getCustomerDetails
Details about the customer you want to invoice or overrides for an existing customer. Ifautomatic_tax
is enabled then one ofcustomer
,customer_details
,subscription
, orschedule
must be set. -
getDiscounts
The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts. -
getEndingBefore
A cursor for use in pagination.ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list. -
getExpand
Specifies which fields in the response should be expanded. -
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. -
getInvoiceItems
List of invoice items to add or update in the upcoming invoice preview. -
getIssuer
The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. -
getLimit
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. -
getOnBehalfOf
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details. -
getPreviewMode
Customizes the types of values to include when calculating the invoice. Defaults tonext
if unspecified. -
getSchedule
The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. -
getScheduleDetails
The schedule creation or modification params to apply as a preview. Cannot be used withsubscription
orsubscription_
prefixed fields. -
getStartingAfter
A cursor for use in pagination.starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list. -
getSubscription
The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but asubscription_details.items
is provided, you will preview creating a subscription with those items. If neithersubscription
norsubscription_details.items
is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. -
getSubscriptionBillingCycleAnchor
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
. This field has been deprecated and will be removed in a future API version. Usesubscription_details.billing_cycle_anchor
instead. -
getSubscriptionCancelAt
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. This field has been deprecated and will be removed in a future API version. Usesubscription_details.cancel_at
instead. -
getSubscriptionCancelAtPeriodEnd
Indicate whether this subscription should cancel at the end of the current period (current_period_end
). Defaults tofalse
. This field has been deprecated and will be removed in a future API version. Usesubscription_details.cancel_at_period_end
instead. -
getSubscriptionCancelNow
This simulates the subscription being canceled or expired immediately. This field has been deprecated and will be removed in a future API version. Usesubscription_details.cancel_now
instead. -
getSubscriptionDefaultTaxRates
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. This field has been deprecated and will be removed in a future API version. Usesubscription_details.default_tax_rates
instead. -
getSubscriptionDetails
The subscription creation or modification params to apply as a preview. Cannot be used withschedule
orschedule_details
fields. -
getSubscriptionItems
A list of up to 20 subscription items, each with an attached price. This field has been deprecated and will be removed in a future API version. Usesubscription_details.items
instead. -
getSubscriptionProrationBehavior
public InvoiceUpcomingLinesListParams.SubscriptionProrationBehavior getSubscriptionProrationBehavior()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
. This field has been deprecated and will be removed in a future API version. Usesubscription_details.proration_behavior
instead. -
getSubscriptionProrationDate
If previewing an update to a subscription, and doing proration,subscription_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_items
, orsubscription_trial_end
are required. Also,subscription_proration_behavior
cannot be set to 'none'. This field has been deprecated and will be removed in a future API version. Usesubscription_details.proration_date
instead. -
getSubscriptionResumeAt
For paused subscriptions, settingsubscription_resume_at
tonow
will preview the invoice that will be generated if the subscription is resumed. This field has been deprecated and will be removed in a future API version. Usesubscription_details.resume_at
instead. -
getSubscriptionStartDate
Date a subscription is intended to start (can be future or past). This field has been deprecated and will be removed in a future API version. Usesubscription_details.start_date
instead. -
getSubscriptionTrialEnd
If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one ofsubscription_items
orsubscription
is required. This field has been deprecated and will be removed in a future API version. Usesubscription_details.trial_end
instead. -
getSubscriptionTrialFromPlan
Indicates if a plan'strial_period_days
should be applied to the subscription. Settingsubscription_trial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withsubscription_trial_end
is not allowed. See Using trial periods on subscriptions to learn more.
-