class Stripe::PostQuotesRequest
- Stripe::PostQuotesRequest
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/post_quotes_request.crConstant Summary
-
ERROR_MESSAGE_FOR_COLLECTION_METHOD =
"invalid value for \"collection_method\", must be one of [charge_automatically, send_invoice]."
-
ERROR_MESSAGE_FOR_DESCRIPTION =
"invalid value for \"description\", must be one of []."
-
ERROR_MESSAGE_FOR_FOOTER =
"invalid value for \"footer\", must be one of []."
-
ERROR_MESSAGE_FOR_HEADER =
"invalid value for \"header\", must be one of []."
-
ERROR_MESSAGE_FOR_ON_BEHALF_OF =
"invalid value for \"on_behalf_of\", must be one of []."
-
MAX_LENGTH_FOR_CUSTOMER =
5000
-
MAX_LENGTH_FOR_TEST_CLOCK =
5000
-
VALID_VALUES_FOR_COLLECTION_METHOD =
String.static_array("charge_automatically", "send_invoice")
-
VALID_VALUES_FOR_DESCRIPTION =
String.static_array("")
-
VALID_VALUES_FOR_FOOTER =
String.static_array("")
-
VALID_VALUES_FOR_HEADER =
String.static_array("")
-
VALID_VALUES_FOR_ON_BEHALF_OF =
String.static_array("")
Constructors
- .new(pull : JSON::PullParser)
-
.new(*, application_fee_amount : Stripe::PostQuotesRequestApplicationFeeAmount | Nil = nil, application_fee_percent : Stripe::PostQuotesRequestApplicationFeePercent | Nil = nil, automatic_tax : Stripe::AutomaticTaxParam | Nil = nil, collection_method : String | Nil = nil, customer : String | Nil = nil, default_tax_rates : Stripe::PostQuotesRequestDefaultTaxRates | Nil = nil, description : String | Nil = nil, discounts : Stripe::PostQuotesRequestDiscounts | Nil = nil, expand : Array(String) | Nil = nil, expires_at : Int64 | Nil = nil, footer : String | Nil = nil, from_quote : Stripe::FromQuoteParams | Nil = nil, header : String | Nil = nil, invoice_settings : Stripe::QuoteParam | Nil = nil, line_items : Array(Stripe::LineItemCreateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, subscription_data : Stripe::SubscriptionDataCreateParams | Nil = nil, test_clock : String | Nil = nil, transfer_data : Stripe::PostQuotesRequestTransferData | 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.
- #application_fee_amount : Stripe::PostQuotesRequestApplicationFeeAmount | Nil
-
#application_fee_amount=(new_value : Stripe::PostQuotesRequestApplicationFeeAmount | Nil)
Custom attribute writer method checking allowed values (enum).
- #application_fee_percent : Stripe::PostQuotesRequestApplicationFeePercent | Nil
-
#application_fee_percent=(new_value : Stripe::PostQuotesRequestApplicationFeePercent | 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).
- #customer : String | Nil
-
#customer=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_tax_rates : Stripe::PostQuotesRequestDefaultTaxRates | Nil
-
#default_tax_rates=(new_value : Stripe::PostQuotesRequestDefaultTaxRates | 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::PostQuotesRequestDiscounts | Nil
-
#discounts=(new_value : Stripe::PostQuotesRequestDiscounts | 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).
- #expires_at : Int64 | Nil
-
#expires_at=(new_value : Int64 | 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).
- #from_quote : Stripe::FromQuoteParams | Nil
-
#from_quote=(new_value : Stripe::FromQuoteParams | 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.
- #header : String | Nil
-
#header=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #invoice_settings : Stripe::QuoteParam | Nil
-
#invoice_settings=(new_value : Stripe::QuoteParam | Nil)
Custom attribute writer method checking allowed values (enum).
- #line_items : Array(Stripe::LineItemCreateParams) | Nil
-
#line_items=(new_value : Array(Stripe::LineItemCreateParams) | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #metadata : Hash(String, String) | Nil
-
#metadata=(new_value : Hash(String, 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).
- #subscription_data : Stripe::SubscriptionDataCreateParams | Nil
-
#subscription_data=(new_value : Stripe::SubscriptionDataCreateParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #test_clock : String | Nil
-
#test_clock=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #transfer_data : Stripe::PostQuotesRequestTransferData | Nil
-
#transfer_data=(new_value : Stripe::PostQuotesRequestTransferData | 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] application_fee_amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] application_fee_percent 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] customer 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] expand Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] expires_at Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] from_quote 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] header Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_settings Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] line_items 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] on_behalf_of Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subscription_data Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] test_clock 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