class Stripe::PostInvoicesRequest

Included Modules

Defined in:

stripe/models/post_invoices_request.cr

Constant Summary

ERROR_MESSAGE_FOR_COLLECTION_METHOD = "invalid value for \"collection_method\", must be one of [charge_automatically, send_invoice]."
ERROR_MESSAGE_FOR_PENDING_INVOICE_ITEMS_BEHAVIOR = "invalid value for \"pending_invoice_items_behavior\", must be one of [exclude, include]."
MAX_LENGTH_FOR_CUSTOMER = 5000
MAX_LENGTH_FOR_DEFAULT_PAYMENT_METHOD = 5000
MAX_LENGTH_FOR_DEFAULT_SOURCE = 5000
MAX_LENGTH_FOR_DESCRIPTION = 1500
MAX_LENGTH_FOR_FOOTER = 5000
MAX_LENGTH_FOR_NUMBER = 26
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR = 22
MAX_LENGTH_FOR_SUBSCRIPTION = 5000
VALID_VALUES_FOR_COLLECTION_METHOD = String.static_array("charge_automatically", "send_invoice")
VALID_VALUES_FOR_PENDING_INVOICE_ITEMS_BEHAVIOR = String.static_array("exclude", "include")

Constructors

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, 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_tax_ids : Stripe::PostInvoicesRequestAccountTaxIds | Nil = nil, application_fee_amount : Int64 | Nil = nil, auto_advance : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTaxParam | Nil = nil, collection_method : String | Nil = nil, currency : String | Nil = nil, custom_fields : Stripe::PostInvoicesRequestCustomFields | Nil = nil, customer : String | Nil = nil, days_until_due : Int64 | Nil = nil, default_payment_method : String | Nil = nil, default_source : String | Nil = nil, default_tax_rates : Array(String) | Nil = nil, description : String | Nil = nil, discounts : Stripe::PostInvoicesRequestDiscounts | Nil = nil, due_date : Int64 | Nil = nil, effective_at : Int64 | Nil = nil, expand : Array(String) | Nil = nil, footer : String | Nil = nil, from_invoice : Stripe::FromInvoice | Nil = nil, issuer : Stripe::ConnectAccountReference | Nil = nil, metadata : Stripe::PostAccountsRequestMetadata | Nil = nil, number : String | Nil = nil, on_behalf_of : String | Nil = nil, payment_settings : Stripe::PaymentSettings | Nil = nil, pending_invoice_items_behavior : String | Nil = nil, rendering : Stripe::RenderingParam | Nil = nil, shipping_cost : Stripe::ShippingCost | Nil = nil, shipping_details : Stripe::RecipientShippingWithOptionalFieldsAddress | Nil = nil, statement_descriptor : String | Nil = nil, subscription : String | Nil = nil, transfer_data : Stripe::TransferDataSpecs | 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_tax_ids : Stripe::PostInvoicesRequestAccountTaxIds | Nil #

[View source]
def account_tax_ids=(new_value : Stripe::PostInvoicesRequestAccountTaxIds | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] account_tax_ids 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 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::AutomaticTaxParam | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] automatic_tax 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 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 : Stripe::PostInvoicesRequestCustomFields | Nil #

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

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


[View source]
def customer : String | Nil #

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

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


[View source]
def days_until_due : Int64 | Nil #

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

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


[View source]
def default_payment_method : String | Nil #

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

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


[View source]
def default_source : String | Nil #

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

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


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

[View source]
def default_tax_rates=(new_value : Array(String) | 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 discounts : Stripe::PostInvoicesRequestDiscounts | Nil #

[View source]
def discounts=(new_value : Stripe::PostInvoicesRequestDiscounts | 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 expand : Array(String) | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] expand 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::FromInvoice | Nil #

[View source]
def from_invoice=(new_value : Stripe::FromInvoice | 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 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 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 metadata : Stripe::PostAccountsRequestMetadata | Nil #

[View source]
def metadata=(new_value : Stripe::PostAccountsRequestMetadata | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] metadata 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 on_behalf_of : String | Nil #

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

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


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

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

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


[View source]
def pending_invoice_items_behavior : String | Nil #

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

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


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

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

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


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

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

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


[View source]

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

Custom attribute writer method checking allowed values (enum). @param [Object] shipping_details 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 subscription : String | Nil #

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

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


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

[View source]
def transfer_data=(new_value : Stripe::TransferDataSpecs | 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]