class

Stripe::Invoice

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Invoices are statements of amounts owed by a customer, and are either generated one-off, or generated periodically from a subscription. They contain invoice items, and proration adjustments that may be caused by subscription upgrades/downgrades (if necessary). If your invoice is configured to be billed through automatic charges, Stripe automatically finalizes your invoice and attempts payment. Note that finalizing the invoice, when automatic, does not happen immediately as the invoice is created. Stripe waits until one hour after the last webhook was successfully sent (or the last webhook timed out after failing). If you (and the platforms you may have connected to) have no webhooks configured, Stripe waits one hour after creation to finalize the invoice. If your invoice is configured to be billed by sending an email, then based on your email settings, Stripe will email the invoice to your customer and await payment. These emails can contain a link to a hosted page to pay the invoice. Stripe applies any customer credit on the account before determining the amount due for the invoice (i.e., the amount that will be actually charged). If the amount due for the invoice is less than Stripe's minimum allowed charge per currency, the invoice is automatically marked paid, and we add the amount due to the customer's credit balance which is applied to the next invoice. More details on the customer's credit balance are here. Related guide: Send invoices to customers

Constants

ERROR_MESSAGE_FOR_BILLING_REASON = "invalid value for \"billing_reason\", must be one of [automatic_pending_invoice_item_invoice, manual, quote_accept, subscription, subscription_create, subscription_cycle, subscription_threshold, subscription_update, upcoming]."
ERROR_MESSAGE_FOR_COLLECTION_METHOD = "invalid value for \"collection_method\", must be one of [charge_automatically, send_invoice]."
ERROR_MESSAGE_FOR_CUSTOMER_TAX_EXEMPT = "invalid value for \"customer_tax_exempt\", must be one of [exempt, none, reverse]."
ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [invoice]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [draft, open, paid, uncollectible, void]."
MAX_LENGTH_FOR_ACCOUNT_COUNTRY = 5000
MAX_LENGTH_FOR_ACCOUNT_NAME = 5000
MAX_LENGTH_FOR_CUSTOMER_EMAIL = 5000
MAX_LENGTH_FOR_CUSTOMER_NAME = 5000
MAX_LENGTH_FOR_CUSTOMER_PHONE = 5000
MAX_LENGTH_FOR_DESCRIPTION = 5000
MAX_LENGTH_FOR_FOOTER = 5000
MAX_LENGTH_FOR_HOSTED_INVOICE_URL = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_INVOICE_PDF = 5000
MAX_LENGTH_FOR_NUMBER = 5000
MAX_LENGTH_FOR_RECEIPT_NUMBER = 5000
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR = 5000
VALID_VALUES_FOR_BILLING_REASON = String.static_array("automatic_pending_invoice_item_invoice", "manual", "quote_accept", "subscription", "subscription_create", "subscription_cycle", "subscription_threshold", "subscription_update", "upcoming")
VALID_VALUES_FOR_COLLECTION_METHOD = String.static_array("charge_automatically", "send_invoice")
VALID_VALUES_FOR_CUSTOMER_TAX_EXEMPT = String.static_array("exempt", "none", "reverse")
VALID_VALUES_FOR_OBJECT = String.static_array("invoice")
VALID_VALUES_FOR_STATUS = String.static_array("draft", "open", "paid", "uncollectible", "void")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_country : String | Nil = nil, account_name : String | Nil = nil, account_tax_ids : Array(Stripe::InvoiceAccountTaxIdsInner) | Nil = nil, amount_due : Int64 | Nil = nil, amount_paid : Int64 | Nil = nil, amount_remaining : Int64 | Nil = nil, amount_shipping : Int64 | Nil = nil, application : Stripe::InvoiceApplication | Nil = nil, application_fee_amount : Int64 | Nil = nil, attempt_count : Int64 | Nil = nil, attempted : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTax | Nil = nil, billing_reason : String | Nil = nil, charge : Stripe::InvoiceCharge | Nil = nil, collection_method : String | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::InvoiceSettingCustomField) | Nil = nil, customer : Stripe::InvoiceCustomer | Nil = nil, customer_address : Stripe::InvoiceCustomerAddress | Nil = nil, customer_email : String | Nil = nil, customer_name : String | Nil = nil, customer_phone : String | Nil = nil, customer_shipping : Stripe::InvoiceCustomerShipping | Nil = nil, customer_tax_exempt : String | Nil = nil, default_payment_method : Stripe::InvoiceDefaultPaymentMethod | Nil = nil, default_source : Stripe::InvoiceDefaultSource | Nil = nil, default_tax_rates : Array(Stripe::TaxRate) | Nil = nil, description : String | Nil = nil, discount : Stripe::InvoiceDiscount | Nil = nil, discounts : Array(Stripe::InvoiceDiscountsInner) | Nil = nil, due_date : Int64 | Nil = nil, effective_at : Int64 | Nil = nil, ending_balance : Int64 | Nil = nil, footer : String | Nil = nil, from_invoice : Stripe::InvoiceFromInvoice | Nil = nil, issuer : Stripe::ConnectAccountReference | Nil = nil, last_finalization_error : Stripe::InvoiceLastFinalizationError | Nil = nil, latest_revision : Stripe::InvoiceLatestRevision | Nil = nil, lines : Stripe::InvoiceLinesList | Nil = nil, livemode : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, next_payment_attempt : Int64 | Nil = nil, number : String | Nil = nil, object : String | Nil = nil, on_behalf_of : Stripe::InvoiceOnBehalfOf | Nil = nil, paid : Bool | Nil = nil, paid_out_of_band : Bool | Nil = nil, payment_intent : Stripe::InvoicePaymentIntent | Nil = nil, payment_settings : Stripe::InvoicesPaymentSettings | Nil = nil, period_end : Int64 | Nil = nil, period_start : Int64 | Nil = nil, post_payment_credit_notes_amount : Int64 | Nil = nil, pre_payment_credit_notes_amount : Int64 | Nil = nil, quote : Stripe::InvoiceQuote | Nil = nil, receipt_number : String | Nil = nil, rendering : Stripe::InvoiceRendering | Nil = nil, shipping_cost : Stripe::InvoiceShippingCost | Nil = nil, shipping_details : Stripe::InvoiceShippingDetails | Nil = nil, starting_balance : Int64 | Nil = nil, statement_descriptor : String | Nil = nil, status : String | Nil = nil, status_transitions : Stripe::InvoicesResourceStatusTransitions | Nil = nil, subscription : Stripe::InvoiceSubscription | Nil = nil, subscription_details : Stripe::InvoiceSubscriptionDetails | Nil = nil, subtotal : Int64 | Nil = nil, subtotal_excluding_tax : Int64 | Nil = nil, tax : Int64 | Nil = nil, test_clock : Stripe::InvoiceTestClock | Nil = nil, total : Int64 | Nil = nil, total_discount_amounts : Array(Stripe::DiscountsResourceDiscountAmount) | Nil = nil, total_excluding_tax : Int64 | Nil = nil, total_tax_amounts : Array(Stripe::InvoiceTaxAmount) | Nil = nil, transfer_data : Stripe::InvoiceTransferData1 | Nil = nil, webhooks_delivered_at : Int64 | Nil = nil, auto_advance : Bool | Nil = nil, customer_tax_ids : Array(Stripe::InvoicesResourceInvoiceTaxId) | Nil = nil, hosted_invoice_url : String | Nil = nil, id : String | Nil = nil, invoice_pdf : String | Nil = nil, subscription_proration_date : Int64 | Nil = nil, threshold_reason : Stripe::InvoiceThresholdReason | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

account_country

The country of the business associated with this invoice, most often the business creating the invoice.

Source
account_country=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_country Object to be assigned

Source
account_name

The public name of the business associated with this invoice, most often the business creating the invoice.

Source
account_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_name Object to be assigned

Source
account_tax_ids

The account tax IDs associated with the invoice. Only editable when the invoice is a draft.

Source
account_tax_ids=(new_value : Array(Stripe::InvoiceAccountTaxIdsInner) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_tax_ids Object to be assigned

Source
amount_due

Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. If there is a positive starting_balance for the invoice (the customer owes money), the amount_due will also take that into account. The charge that gets generated for the invoice will be for the amount specified in amount_due.

Source
amount_due=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount_due Object to be assigned

Source
amount_paid

The amount, in cents (or local equivalent), that was paid.

Source
amount_paid=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount_paid Object to be assigned

Source
amount_remaining

The difference between amount_due and amount_paid, in cents (or local equivalent).

Source
amount_remaining=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount_remaining Object to be assigned

Source
amount_shipping

This is the sum of all the shipping amounts.

Source
amount_shipping=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount_shipping Object to be assigned

Source
application
Source
application=(new_value : Stripe::InvoiceApplication | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] application Object to be assigned

Source
application_fee_amount

The fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.

Source
application_fee_amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] application_fee_amount Object to be assigned

Source
attempt_count

Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.

Source
attempt_count=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] attempt_count Object to be assigned

Source
attempted

Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the invoice.created webhook, for example, so you might not want to display that invoice as unpaid to your users.

Source
attempted=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] attempted Object to be assigned

Source
auto_advance

Controls whether Stripe performs automatic collection of the invoice. If false, the invoice's state doesn't automatically advance without an explicit action.

Source
auto_advance=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] auto_advance Object to be assigned

Source
automatic_tax
Source
automatic_tax=(new_value : Stripe::AutomaticTax | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] automatic_tax Object to be assigned

Source
billing_reason

Indicates the reason why the invoice was created. * manual: Unrelated to a subscription, for example, created via the invoice editor. * subscription: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds. * subscription_create: A new subscription was created. * subscription_cycle: A subscription advanced into a new period. * subscription_threshold: A subscription reached a billing threshold. * subscription_update: A subscription was updated. * upcoming: Reserved for simulated invoices, per the upcoming invoice endpoint.

Source
billing_reason=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] billing_reason Object to be assigned

Source
charge
Source
charge=(new_value : Stripe::InvoiceCharge | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] charge Object to be assigned

Source
collection_method

Either charge_automatically, or send_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.

Source
collection_method=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] collection_method Object to be assigned

Source
created

Time at which the object was created. Measured in seconds since the Unix epoch.

Source
created=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned

Source
currency

Three-letter ISO currency code, in lowercase. Must be a supported currency.

Source
currency=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned

Source
custom_fields

Custom fields displayed on the invoice.

Source
custom_fields=(new_value : Array(Stripe::InvoiceSettingCustomField) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] custom_fields Object to be assigned

Source
customer
Source
customer=(new_value : Stripe::InvoiceCustomer | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer Object to be assigned

Source
customer_address
Source
customer_address=(new_value : Stripe::InvoiceCustomerAddress | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_address Object to be assigned

Source
customer_email

The customer's email. Until the invoice is finalized, this field will equal customer.email. Once the invoice is finalized, this field will no longer be updated.

Source
customer_email=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_email Object to be assigned

Source
customer_name

The customer's name. Until the invoice is finalized, this field will equal customer.name. Once the invoice is finalized, this field will no longer be updated.

Source
customer_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_name Object to be assigned

Source
customer_phone

The customer's phone number. Until the invoice is finalized, this field will equal customer.phone. Once the invoice is finalized, this field will no longer be updated.

Source
customer_phone=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_phone Object to be assigned

Source
customer_shipping
Source
customer_shipping=(new_value : Stripe::InvoiceCustomerShipping | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_shipping Object to be assigned

Source
customer_tax_exempt

The customer's tax exempt status. Until the invoice is finalized, this field will equal customer.tax_exempt. Once the invoice is finalized, this field will no longer be updated.

Source
customer_tax_exempt=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_tax_exempt Object to be assigned

Source
customer_tax_ids

The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as customer.tax_ids. Once the invoice is finalized, this field will no longer be updated.

Source
customer_tax_ids=(new_value : Array(Stripe::InvoicesResourceInvoiceTaxId) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_tax_ids Object to be assigned

Source
customer_tax_ids_present=(customer_tax_ids_present : Bool)
Source
customer_tax_ids_present?
Source
default_payment_method
Source
default_payment_method=(new_value : Stripe::InvoiceDefaultPaymentMethod | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] default_payment_method Object to be assigned

Source
default_source
Source
default_source=(new_value : Stripe::InvoiceDefaultSource | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] default_source Object to be assigned

Source
default_tax_rates

The tax rates applied to this invoice, if any.

Source
default_tax_rates=(new_value : Array(Stripe::TaxRate) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] default_tax_rates Object to be assigned

Source
description

An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.

Source
description=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned

Source
discount
Source
discount=(new_value : Stripe::InvoiceDiscount | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] discount Object to be assigned

Source
discounts

The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount.

Source
discounts=(new_value : Array(Stripe::InvoiceDiscountsInner) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] discounts Object to be assigned

Source
due_date

The date on which payment for this invoice is due. This value will be null for invoices where collection_method=charge_automatically.

Source
due_date=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] due_date Object to be assigned

Source
effective_at

The date when this invoice is in effect. Same as finalized_at unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.

Source
effective_at=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] effective_at Object to be assigned

Source
ending_balance

Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.

Source
ending_balance=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ending_balance Object to be assigned

Source
from_invoice
Source
from_invoice=(new_value : Stripe::InvoiceFromInvoice | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] from_invoice Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

hosted_invoice_url

The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.

Source
hosted_invoice_url=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] hosted_invoice_url Object to be assigned

Source
hosted_invoice_url_present=(hosted_invoice_url_present : Bool)
Source
hosted_invoice_url_present?
Source
id

Unique identifier for the object. This property is always present unless the invoice is an upcoming invoice. See Retrieve an upcoming invoice for more details.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
invoice_pdf

The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.

Source
invoice_pdf=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] invoice_pdf Object to be assigned

Source
invoice_pdf_present=(invoice_pdf_present : Bool)
Source
invoice_pdf_present?
Source
issuer
Source
issuer=(new_value : Stripe::ConnectAccountReference | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] issuer Object to be assigned

Source
last_finalization_error
Source
last_finalization_error=(new_value : Stripe::InvoiceLastFinalizationError | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] last_finalization_error Object to be assigned

Source
latest_revision
Source
latest_revision=(new_value : Stripe::InvoiceLatestRevision | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] latest_revision Object to be assigned

Source
lines
Source
lines=(new_value : Stripe::InvoiceLinesList | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] lines Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
livemode

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Source
livemode=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned

Source
metadata
Source
metadata=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned

Source
next_payment_attempt

The time at which payment will next be attempted. This value will be null for invoices where collection_method=send_invoice.

Source
next_payment_attempt=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] next_payment_attempt Object to be assigned

Source
number

A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.

Source
number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] number Object to be assigned

Source
object

String representing the object's type. Objects of the same type share the same value.

Source
object=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned

Source
on_behalf_of
Source
on_behalf_of=(new_value : Stripe::InvoiceOnBehalfOf | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] on_behalf_of Object to be assigned

Source
payment_intent
Source
payment_intent=(new_value : Stripe::InvoicePaymentIntent | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_intent Object to be assigned

Source
payment_settings
Source
payment_settings=(new_value : Stripe::InvoicesPaymentSettings | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_settings Object to be assigned

Source
period_end

End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the line item period to get the service period for each price.

Source
period_end=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] period_end Object to be assigned

Source
period_start

Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the line item period to get the service period for each price.

Source
period_start=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] period_start Object to be assigned

Source
post_payment_credit_notes_amount

Total amount of all post-payment credit notes issued for this invoice.

Source
post_payment_credit_notes_amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] post_payment_credit_notes_amount Object to be assigned

Source
pre_payment_credit_notes_amount

Total amount of all pre-payment credit notes issued for this invoice.

Source
pre_payment_credit_notes_amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] pre_payment_credit_notes_amount Object to be assigned

Source
quote
Source
quote=(new_value : Stripe::InvoiceQuote | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] quote Object to be assigned

Source
receipt_number

This is the transaction number that appears on email receipts sent for this invoice.

Source
receipt_number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] receipt_number Object to be assigned

Source
rendering
Source
rendering=(new_value : Stripe::InvoiceRendering | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] rendering Object to be assigned

Source
shipping_cost
Source
shipping_cost=(new_value : Stripe::InvoiceShippingCost | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] shipping_cost Object to be assigned

Source
shipping_details
Source
shipping_details=(new_value : Stripe::InvoiceShippingDetails | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] shipping_details Object to be assigned

Source
starting_balance

Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.

Source
starting_balance=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] starting_balance Object to be assigned

Source
statement_descriptor

Extra information about an invoice for the customer's credit card statement.

Source
statement_descriptor=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] statement_descriptor Object to be assigned

Source
status

The status of the invoice, one of draft, open, paid, uncollectible, or void. Learn more

Source
status=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned

Source
status_transitions
Source
status_transitions=(new_value : Stripe::InvoicesResourceStatusTransitions | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] status_transitions Object to be assigned

Source
subscription
Source
subscription=(new_value : Stripe::InvoiceSubscription | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subscription Object to be assigned

Source
subscription_details
Source
subscription_details=(new_value : Stripe::InvoiceSubscriptionDetails | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subscription_details Object to be assigned

Source
subscription_proration_date

Only set for upcoming invoices that preview prorations. The time used to calculate prorations.

Source
subscription_proration_date=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subscription_proration_date Object to be assigned

Source
subtotal

Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated

Source
subtotal=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subtotal Object to be assigned

Source
subtotal_excluding_tax

The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated

Source
subtotal_excluding_tax=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subtotal_excluding_tax Object to be assigned

Source
tax

The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.

Source
tax=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] tax Object to be assigned

Source
test_clock
Source
test_clock=(new_value : Stripe::InvoiceTestClock | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] test_clock Object to be assigned

Source
threshold_reason
Source
threshold_reason=(new_value : Stripe::InvoiceThresholdReason | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] threshold_reason Object to be assigned

Source
total

Total after discounts and taxes.

Source
total=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] total Object to be assigned

Source
total_discount_amounts

The aggregate amounts calculated per discount across all line items.

Source
total_discount_amounts=(new_value : Array(Stripe::DiscountsResourceDiscountAmount) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] total_discount_amounts Object to be assigned

Source
total_excluding_tax

The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.

Source
total_excluding_tax=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] total_excluding_tax Object to be assigned

Source
total_tax_amounts

The aggregate amounts calculated per tax rate for all line items.

Source
total_tax_amounts=(new_value : Array(Stripe::InvoiceTaxAmount) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] total_tax_amounts Object to be assigned

Source
transfer_data
Source
transfer_data=(new_value : Stripe::InvoiceTransferData1 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] transfer_data Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
webhooks_delivered_at

Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have been exhausted. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.

Source
webhooks_delivered_at=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] webhooks_delivered_at Object to be assigned

Source