Package com.stripe.param
Class InvoiceCreateParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.InvoiceCreateParams
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
Add all map key/value pairs to `extraParams` map.static class
Required. Type of the account referenced in the request.static class
Required. The value of the custom field.static class
ID of the promotion code to create a new discount for.static class
static class
static enum
static class
static class
static class
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes.static class
State, county, province, or region.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 TypeMethodDescriptionstatic InvoiceCreateParams.Builder
builder()
The account tax IDs associated with the invoice.A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account.Controls whether Stripe performs automatic collection of the invoice.Settings for automatic tax lookup for this invoice.Eithercharge_automatically
, orsend_invoice
.The currency to create this invoice in.The ID of the customer who will be billed.A list of up to 4 custom fields to be displayed on the invoice.The number of days from when the invoice is created until it is due.ID of the default payment method for the invoice.ID of the default payment source for the invoice.The tax rates that will apply to any line item that does not havetax_rates
set.An arbitrary string attached to the object.The coupons and promotion codes to redeem into discounts for the invoice.The date on which payment for this invoice is due.The date when this invoice is in effect.Specifies which fields in the response should be expanded.Map of extra parameters for custom features not available in this client library.Footer to be displayed on the invoice.Revise an existing invoice.The connected account that issues the invoice.Set of key-value pairs that you can attach to an object.Set the number for this invoice.The account (if any) for which the funds of the invoice payment are intended.Configuration settings for the PaymentIntent that is generated when the invoice is finalized.How to handle pending invoice items on invoice creation.The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.Settings for the cost of shipping for this invoice.Shipping details for the invoice.Extra information about a charge for the customer's credit card statement.The ID of the subscription to invoice, if any.If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getAccountTaxIds
The account tax IDs associated with the invoice. Only editable when the invoice is a draft. -
getApplicationFeeAmount
A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation. -
getAutoAdvance
Controls whether Stripe performs automatic collection of the invoice. Iffalse
, the invoice's state doesn't automatically advance without an explicit action. -
getAutomaticTax
Settings for automatic tax lookup for this invoice. -
getCollectionMethod
Eithercharge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults tocharge_automatically
. -
getCurrency
The currency to create this invoice in. Defaults to that ofcustomer
if not specified. -
getCustomFields
A list of up to 4 custom fields to be displayed on the invoice. -
getCustomer
The ID of the customer who will be billed. -
getDaysUntilDue
The number of days from when the invoice is created until it is due. Valid only for invoices wherecollection_method=send_invoice
. -
getDefaultPaymentMethod
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings. -
getDefaultSource
ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source. -
getDefaultTaxRates
The tax rates that will apply to any line item that does not havetax_rates
set. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard. -
getDiscounts
The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts. -
getDueDate
The date on which payment for this invoice is due. Valid only for invoices wherecollection_method=send_invoice
. -
getEffectiveAt
The date when this invoice is in effect. Same asfinalized_at
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt. -
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. -
getFromInvoice
Revise an existing invoice. The new invoice will be created instatus=draft
. See the revision documentation for more details. -
getIssuer
The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
getNumber
Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically. -
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. -
getPaymentSettings
Configuration settings for the PaymentIntent that is generated when the invoice is finalized. -
getPendingInvoiceItemsBehavior
How to handle pending invoice items on invoice creation. Defaults toexclude
if the parameter is omitted. -
getRendering
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. -
getShippingCost
Settings for the cost of shipping for this invoice. -
getShippingDetails
Shipping details for the invoice. The Invoice PDF will use theshipping_details
value if it is set, otherwise the PDF will render the shipping address from the customer. -
getStatementDescriptor
Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the defaultstatement_descriptor
will be set to the first subscription item's product'sstatement_descriptor
. -
getSubscription
The ID of the subscription to invoice, if any. If set, the created invoice will only include pending invoice items for that subscription. The subscription's billing cycle and regular subscription events won't be affected. -
getTransferData
If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.
-