class Stripe::PostQuotesQuoteRequest

Included Modules

Defined in:

stripe/models/post_quotes_quote_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_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
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

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(*, 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, header : String | Nil = nil, invoice_settings : Stripe::QuoteParam | Nil = nil, line_items : Array(Stripe::LineItemUpdateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, subscription_data : Stripe::SubscriptionDataUpdateParams | Nil = nil, transfer_data : Stripe::PostQuotesRequestTransferData | 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 application_fee_amount : Stripe::PostQuotesRequestApplicationFeeAmount | Nil #

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

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


[View source]
def application_fee_percent : Stripe::PostQuotesRequestApplicationFeePercent | Nil #

[View source]
def application_fee_percent=(new_value : Stripe::PostQuotesRequestApplicationFeePercent | Nil) #

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

[View source]
def default_tax_rates=(new_value : Stripe::PostQuotesRequestDefaultTaxRates | 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::PostQuotesRequestDiscounts | Nil #

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

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

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

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

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

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


[View source]
def invoice_settings : Stripe::QuoteParam | Nil #

[View source]
def invoice_settings=(new_value : Stripe::QuoteParam | Nil) #

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


[View source]
def line_items : Array(Stripe::LineItemUpdateParams) | Nil #

[View source]
def line_items=(new_value : Array(Stripe::LineItemUpdateParams) | Nil) #

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

[View source]
def subscription_data=(new_value : Stripe::SubscriptionDataUpdateParams | Nil) #

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


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

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