class Stripe::PostInvoicesInvoiceRequest
- Stripe::PostInvoicesInvoiceRequest
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/post_invoices_invoice_request.crConstant Summary
-
ERROR_MESSAGE_FOR_COLLECTION_METHOD =
"invalid value for \"collection_method\", must be one of [charge_automatically, send_invoice]."
-
ERROR_MESSAGE_FOR_DEFAULT_SOURCE =
"invalid value for \"default_source\", must be one of []."
-
ERROR_MESSAGE_FOR_NUMBER =
"invalid value for \"number\", must be one of []."
-
ERROR_MESSAGE_FOR_ON_BEHALF_OF =
"invalid value for \"on_behalf_of\", must be one of []."
-
MAX_LENGTH_FOR_DEFAULT_PAYMENT_METHOD =
5000
-
MAX_LENGTH_FOR_DESCRIPTION =
1500
-
MAX_LENGTH_FOR_FOOTER =
5000
-
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR =
22
-
VALID_VALUES_FOR_COLLECTION_METHOD =
String.static_array("charge_automatically", "send_invoice")
-
VALID_VALUES_FOR_DEFAULT_SOURCE =
String.static_array("")
-
VALID_VALUES_FOR_NUMBER =
String.static_array("")
-
VALID_VALUES_FOR_ON_BEHALF_OF =
String.static_array("")
Constructors
- .new(pull : JSON::PullParser)
-
.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, custom_fields : Stripe::PostInvoicesInvoiceRequestCustomFields | Nil = nil, days_until_due : Int64 | Nil = nil, default_payment_method : String | Nil = nil, default_source : String | Nil = nil, default_tax_rates : Stripe::PostInvoicesInvoiceRequestDefaultTaxRates | Nil = nil, description : String | Nil = nil, discounts : Stripe::PostInvoicesInvoiceRequestDiscounts | Nil = nil, due_date : Int64 | Nil = nil, effective_at : Stripe::PostInvoicesInvoiceRequestEffectiveAt | Nil = nil, expand : Array(String) | Nil = nil, footer : String | 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, rendering : Stripe::RenderingParam | Nil = nil, shipping_cost : Stripe::PostInvoicesInvoiceRequestShippingCost | Nil = nil, shipping_details : Stripe::PostInvoicesInvoiceRequestShippingDetails | Nil = nil, statement_descriptor : String | Nil = nil, transfer_data : Stripe::PostInvoicesInvoiceRequestTransferData | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #account_tax_ids : Stripe::PostInvoicesRequestAccountTaxIds | Nil
-
#account_tax_ids=(new_value : Stripe::PostInvoicesRequestAccountTaxIds | Nil)
Custom attribute writer method checking allowed values (enum).
- #application_fee_amount : Int64 | Nil
-
#application_fee_amount=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #auto_advance : Bool | Nil
-
#auto_advance=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #automatic_tax : Stripe::AutomaticTaxParam | Nil
-
#automatic_tax=(new_value : Stripe::AutomaticTaxParam | Nil)
Custom attribute writer method checking allowed values (enum).
- #collection_method : String | Nil
-
#collection_method=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #custom_fields : Stripe::PostInvoicesInvoiceRequestCustomFields | Nil
-
#custom_fields=(new_value : Stripe::PostInvoicesInvoiceRequestCustomFields | Nil)
Custom attribute writer method checking allowed values (enum).
- #days_until_due : Int64 | Nil
-
#days_until_due=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_payment_method : String | Nil
-
#default_payment_method=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_source : String | Nil
-
#default_source=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_tax_rates : Stripe::PostInvoicesInvoiceRequestDefaultTaxRates | Nil
-
#default_tax_rates=(new_value : Stripe::PostInvoicesInvoiceRequestDefaultTaxRates | Nil)
Custom attribute writer method checking allowed values (enum).
- #description : String | Nil
-
#description=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #discounts : Stripe::PostInvoicesInvoiceRequestDiscounts | Nil
-
#discounts=(new_value : Stripe::PostInvoicesInvoiceRequestDiscounts | Nil)
Custom attribute writer method checking allowed values (enum).
- #due_date : Int64 | Nil
-
#due_date=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #effective_at : Stripe::PostInvoicesInvoiceRequestEffectiveAt | Nil
-
#effective_at=(new_value : Stripe::PostInvoicesInvoiceRequestEffectiveAt | Nil)
Custom attribute writer method checking allowed values (enum).
- #expand : Array(String) | Nil
-
#expand=(new_value : Array(String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #footer : String | Nil
-
#footer=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #issuer : Stripe::ConnectAccountReference | Nil
-
#issuer=(new_value : Stripe::ConnectAccountReference | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #metadata : Stripe::PostAccountsRequestMetadata | Nil
-
#metadata=(new_value : Stripe::PostAccountsRequestMetadata | Nil)
Custom attribute writer method checking allowed values (enum).
- #number : String | Nil
-
#number=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #on_behalf_of : String | Nil
-
#on_behalf_of=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #payment_settings : Stripe::PaymentSettings | Nil
-
#payment_settings=(new_value : Stripe::PaymentSettings | Nil)
Custom attribute writer method checking allowed values (enum).
- #rendering : Stripe::RenderingParam | Nil
-
#rendering=(new_value : Stripe::RenderingParam | Nil)
Custom attribute writer method checking allowed values (enum).
- #shipping_cost : Stripe::PostInvoicesInvoiceRequestShippingCost | Nil
-
#shipping_cost=(new_value : Stripe::PostInvoicesInvoiceRequestShippingCost | Nil)
Custom attribute writer method checking allowed values (enum).
- #shipping_details : Stripe::PostInvoicesInvoiceRequestShippingDetails | Nil
-
#shipping_details=(new_value : Stripe::PostInvoicesInvoiceRequestShippingDetails | Nil)
Custom attribute writer method checking allowed values (enum).
- #statement_descriptor : String | Nil
-
#statement_descriptor=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #transfer_data : Stripe::PostInvoicesInvoiceRequestTransferData | Nil
-
#transfer_data=(new_value : Stripe::PostInvoicesInvoiceRequestTransferData | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
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
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] account_tax_ids Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] application_fee_amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] auto_advance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] automatic_tax Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] collection_method Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] custom_fields Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] days_until_due Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_payment_method Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_source Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_tax_rates Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] discounts Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] due_date Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] effective_at Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] expand Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] issuer Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] number Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] on_behalf_of Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_settings Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] rendering Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_cost Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_details Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] statement_descriptor Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] transfer_data Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid