class Stripe::Invoice

Overview

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

Included Modules

Defined in:

stripe/models/invoice.cr

Constant Summary

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

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, clone clone, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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


[View source]

Instance Method Detail

def ==(other : self) #

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


def account_country : String | Nil #

[View source]
def account_country=(new_value : String | Nil) #

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


[View source]
def account_name : String | Nil #

[View source]
def account_name=(new_value : String | Nil) #

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


[View source]
def account_tax_ids : Array(Stripe::InvoiceAccountTaxIdsInner) | Nil #

[View source]
def 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


[View source]
def amount_due : Int64 | Nil #

[View source]
def amount_due=(new_value : Int64 | Nil) #

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


[View source]
def amount_paid : Int64 | Nil #

[View source]
def amount_paid=(new_value : Int64 | Nil) #

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


[View source]
def amount_remaining : Int64 | Nil #

[View source]
def amount_remaining=(new_value : Int64 | Nil) #

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


[View source]
def amount_shipping : Int64 | Nil #

[View source]
def amount_shipping=(new_value : Int64 | Nil) #

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


[View source]
def application : Stripe::InvoiceApplication | Nil #

[View source]
def application=(new_value : Stripe::InvoiceApplication | Nil) #

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


[View source]
def application_fee_amount : Int64 | Nil #

[View source]
def application_fee_amount=(new_value : Int64 | Nil) #

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


[View source]
def attempt_count : Int64 | Nil #

[View source]
def attempt_count=(new_value : Int64 | Nil) #

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


[View source]
def attempted : Bool | Nil #

[View source]
def attempted=(new_value : Bool | Nil) #

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


[View source]
def auto_advance : Bool | Nil #

[View source]
def auto_advance=(new_value : Bool | Nil) #

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


[View source]
def automatic_tax : Stripe::AutomaticTax | Nil #

[View source]
def automatic_tax=(new_value : Stripe::AutomaticTax | Nil) #

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


[View source]
def billing_reason : String | Nil #

[View source]
def billing_reason=(new_value : String | Nil) #

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


[View source]
def charge : Stripe::InvoiceCharge | Nil #

[View source]
def charge=(new_value : Stripe::InvoiceCharge | Nil) #

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


[View source]
def collection_method : String | Nil #

[View source]
def collection_method=(new_value : String | Nil) #

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


[View source]
def created : Int64 | Nil #

[View source]
def created=(new_value : Int64 | Nil) #

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


[View source]
def currency : String | Nil #

[View source]
def currency=(new_value : String | Nil) #

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


[View source]
def custom_fields : Array(Stripe::InvoiceSettingCustomField) | Nil #

[View source]
def custom_fields=(new_value : Array(Stripe::InvoiceSettingCustomField) | Nil) #

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


[View source]
def customer : Stripe::InvoiceCustomer | Nil #

[View source]
def customer=(new_value : Stripe::InvoiceCustomer | Nil) #

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


[View source]
def customer_address : Stripe::InvoiceCustomerAddress | Nil #

[View source]
def customer_address=(new_value : Stripe::InvoiceCustomerAddress | Nil) #

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


[View source]
def customer_email : String | Nil #

[View source]
def customer_email=(new_value : String | Nil) #

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


[View source]
def customer_name : String | Nil #

[View source]
def customer_name=(new_value : String | Nil) #

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


[View source]
def customer_phone : String | Nil #

[View source]
def customer_phone=(new_value : String | Nil) #

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


[View source]
def customer_shipping : Stripe::InvoiceCustomerShipping | Nil #

[View source]
def customer_shipping=(new_value : Stripe::InvoiceCustomerShipping | Nil) #

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


[View source]
def customer_tax_exempt : String | Nil #

[View source]
def customer_tax_exempt=(new_value : String | Nil) #

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


[View source]
def customer_tax_ids : Array(Stripe::InvoicesResourceInvoiceTaxId) | Nil #

[View source]
def 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


[View source]
def customer_tax_ids_present=(customer_tax_ids_present : Bool) #

[View source]
def customer_tax_ids_present? : Bool #

[View source]
def default_payment_method : Stripe::InvoiceDefaultPaymentMethod | Nil #

[View source]
def 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


[View source]
def default_source : Stripe::InvoiceDefaultSource | Nil #

[View source]
def default_source=(new_value : Stripe::InvoiceDefaultSource | Nil) #

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


[View source]
def default_tax_rates : Array(Stripe::TaxRate) | Nil #

[View source]
def 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


[View source]
def description : String | Nil #

[View source]
def description=(new_value : String | Nil) #

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


[View source]
def discount : Stripe::InvoiceDiscount | Nil #

[View source]
def discount=(new_value : Stripe::InvoiceDiscount | Nil) #

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


[View source]
def discounts : Array(Stripe::InvoiceDiscountsInner) | Nil #

[View source]
def discounts=(new_value : Array(Stripe::InvoiceDiscountsInner) | Nil) #

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


[View source]
def due_date : Int64 | Nil #

[View source]
def due_date=(new_value : Int64 | Nil) #

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


[View source]
def effective_at : Int64 | Nil #

[View source]
def effective_at=(new_value : Int64 | Nil) #

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


[View source]
def ending_balance : Int64 | Nil #

[View source]
def ending_balance=(new_value : Int64 | Nil) #

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


[View source]
def footer : String | Nil #

[View source]
def footer=(new_value : String | Nil) #

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


[View source]
def from_invoice : Stripe::InvoiceFromInvoice | Nil #

[View source]
def from_invoice=(new_value : Stripe::InvoiceFromInvoice | Nil) #

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


[View source]
def hash(hasher) #

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


def hosted_invoice_url : String | Nil #

[View source]
def hosted_invoice_url=(new_value : String | Nil) #

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


[View source]
def hosted_invoice_url_present=(hosted_invoice_url_present : Bool) #

[View source]
def hosted_invoice_url_present? : Bool #

[View source]
def id : String | Nil #

[View source]
def id=(new_value : String | Nil) #

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


[View source]
def invoice_pdf : String | Nil #

[View source]
def invoice_pdf=(new_value : String | Nil) #

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


[View source]
def invoice_pdf_present=(invoice_pdf_present : Bool) #

[View source]
def invoice_pdf_present? : Bool #

[View source]
def issuer : Stripe::ConnectAccountReference | Nil #

[View source]
def issuer=(new_value : Stripe::ConnectAccountReference | Nil) #

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


[View source]
def last_finalization_error : Stripe::InvoiceLastFinalizationError | Nil #

[View source]
def 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


[View source]
def latest_revision : Stripe::InvoiceLatestRevision | Nil #

[View source]
def latest_revision=(new_value : Stripe::InvoiceLatestRevision | Nil) #

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


[View source]
def lines : Stripe::InvoiceLinesList | Nil #

[View source]
def lines=(new_value : Stripe::InvoiceLinesList | Nil) #

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


[View source]
def list_invalid_properties : Array(String) #

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


[View source]
def livemode : Bool | Nil #

[View source]
def livemode=(new_value : Bool | Nil) #

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


[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def metadata=(new_value : Hash(String, String) | Nil) #

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


[View source]
def next_payment_attempt : Int64 | Nil #

[View source]
def next_payment_attempt=(new_value : Int64 | Nil) #

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


[View source]
def number : String | Nil #

[View source]
def number=(new_value : String | Nil) #

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


[View source]
def object : String | Nil #

[View source]
def object=(new_value : String | Nil) #

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


[View source]
def on_behalf_of : Stripe::InvoiceOnBehalfOf | Nil #

[View source]
def 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


[View source]
def paid : Bool | Nil #

[View source]
def paid=(new_value : Bool | Nil) #

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


[View source]
def payment_intent : Stripe::InvoicePaymentIntent | Nil #

[View source]
def payment_intent=(new_value : Stripe::InvoicePaymentIntent | Nil) #

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


[View source]
def payment_settings : Stripe::InvoicesPaymentSettings | Nil #

[View source]
def payment_settings=(new_value : Stripe::InvoicesPaymentSettings | Nil) #

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


[View source]
def period_end : Int64 | Nil #

[View source]
def period_end=(new_value : Int64 | Nil) #

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


[View source]
def period_start : Int64 | Nil #

[View source]
def period_start=(new_value : Int64 | Nil) #

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


[View source]
def post_payment_credit_notes_amount : Int64 | Nil #

[View source]
def 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


[View source]
def pre_payment_credit_notes_amount : Int64 | Nil #

[View source]
def 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


[View source]
def quote : Stripe::InvoiceQuote | Nil #

[View source]
def quote=(new_value : Stripe::InvoiceQuote | Nil) #

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


[View source]
def receipt_number : String | Nil #

[View source]
def receipt_number=(new_value : String | Nil) #

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


[View source]
def rendering : Stripe::InvoiceRendering | Nil #

[View source]
def rendering=(new_value : Stripe::InvoiceRendering | Nil) #

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


[View source]
def shipping_cost : Stripe::InvoiceShippingCost | Nil #

[View source]
def shipping_cost=(new_value : Stripe::InvoiceShippingCost | Nil) #

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


[View source]
def shipping_details : Stripe::InvoiceShippingDetails | Nil #

[View source]
def shipping_details=(new_value : Stripe::InvoiceShippingDetails | Nil) #

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


[View source]
def starting_balance : Int64 | Nil #

[View source]
def starting_balance=(new_value : Int64 | Nil) #

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


[View source]
def statement_descriptor : String | Nil #

[View source]
def statement_descriptor=(new_value : String | Nil) #

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


[View source]
def status : String | Nil #

[View source]
def status=(new_value : String | Nil) #

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


[View source]
def status_transitions : Stripe::InvoicesResourceStatusTransitions | Nil #

[View source]
def status_transitions=(new_value : Stripe::InvoicesResourceStatusTransitions | Nil) #

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


[View source]
def subscription : Stripe::InvoiceSubscription | Nil #

[View source]
def subscription=(new_value : Stripe::InvoiceSubscription | Nil) #

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


[View source]
def subscription_details : Stripe::InvoiceSubscriptionDetails | Nil #

[View source]
def subscription_details=(new_value : Stripe::InvoiceSubscriptionDetails | Nil) #

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


[View source]
def subscription_proration_date : Int64 | Nil #

[View source]
def subscription_proration_date=(new_value : Int64 | Nil) #

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


[View source]
def subtotal : Int64 | Nil #

[View source]
def subtotal=(new_value : Int64 | Nil) #

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


[View source]
def subtotal_excluding_tax : Int64 | Nil #

[View source]
def subtotal_excluding_tax=(new_value : Int64 | Nil) #

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


[View source]
def tax : Int64 | Nil #

[View source]
def tax=(new_value : Int64 | Nil) #

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


[View source]
def test_clock : Stripe::InvoiceTestClock | Nil #

[View source]
def test_clock=(new_value : Stripe::InvoiceTestClock | Nil) #

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


[View source]
def threshold_reason : Stripe::InvoiceThresholdReason | Nil #

[View source]
def threshold_reason=(new_value : Stripe::InvoiceThresholdReason | Nil) #

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


[View source]
def total : Int64 | Nil #

[View source]
def total=(new_value : Int64 | Nil) #

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


[View source]
def total_discount_amounts : Array(Stripe::DiscountsResourceDiscountAmount) | Nil #

[View source]
def 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


[View source]
def total_excluding_tax : Int64 | Nil #

[View source]
def total_excluding_tax=(new_value : Int64 | Nil) #

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


[View source]
def total_tax_amounts : Array(Stripe::InvoiceTaxAmount) | Nil #

[View source]
def 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


[View source]
def transfer_data : Stripe::InvoiceTransferData1 | Nil #

[View source]
def transfer_data=(new_value : Stripe::InvoiceTransferData1 | Nil) #

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


[View source]
def valid? : Bool #

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


[View source]
def webhooks_delivered_at : Int64 | Nil #

[View source]
def webhooks_delivered_at=(new_value : Int64 | Nil) #

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


[View source]