class Stripe::QuotesResourceFromQuoteQuote

Overview

The quote that was cloned.

Included Modules

Defined in:

stripe/models/quotes_resource_from_quote_quote.cr

Constant Summary

ERROR_MESSAGE_FOR_COLLECTION_METHOD = "invalid value for \"collection_method\", must be one of [charge_automatically, send_invoice]."
ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [quote]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [accepted, canceled, draft, open]."
MAX_LENGTH_FOR_CURRENCY = 5000
MAX_LENGTH_FOR_DESCRIPTION = 5000
MAX_LENGTH_FOR_FOOTER = 5000
MAX_LENGTH_FOR_HEADER = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_NUMBER = 5000
VALID_VALUES_FOR_COLLECTION_METHOD = String.static_array("charge_automatically", "send_invoice")
VALID_VALUES_FOR_OBJECT = String.static_array("quote")
VALID_VALUES_FOR_STATUS = String.static_array("accepted", "canceled", "draft", "open")

Constructors

Class Method Summary

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(*, amount_subtotal : Int64 | Nil = nil, amount_total : Int64 | Nil = nil, application : Stripe::QuoteApplication | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::QuotesResourceAutomaticTax | Nil = nil, collection_method : String | Nil = nil, computed : Stripe::QuotesResourceComputed | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, customer : Stripe::QuoteCustomer | Nil = nil, description : String | Nil = nil, discounts : Array(Stripe::InvoiceitemDiscountsInner) | Nil = nil, expires_at : Int64 | Nil = nil, footer : String | Nil = nil, from_quote : Stripe::QuotesResourceFromQuote | Nil = nil, header : String | Nil = nil, id : String | Nil = nil, invoice : Stripe::QuoteInvoice | Nil = nil, invoice_settings : Stripe::InvoiceSettingQuoteSetting | Nil = nil, livemode : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, number : String | Nil = nil, object : String | Nil = nil, on_behalf_of : Stripe::PaymentLinkOnBehalfOf | Nil = nil, status : String | Nil = nil, status_transitions : Stripe::QuotesResourceStatusTransitions | Nil = nil, subscription : Stripe::QuoteSubscription | Nil = nil, subscription_data : Stripe::QuotesResourceSubscriptionDataSubscriptionData | Nil = nil, subscription_schedule : Stripe::QuoteSubscriptionSchedule | Nil = nil, test_clock : Stripe::QuoteTestClock | Nil = nil, total_details : Stripe::QuotesResourceTotalDetails | Nil = nil, transfer_data : Stripe::QuotesResourceTransferData | Nil = nil, default_tax_rates : Array(Stripe::QuoteDefaultTaxRatesInner) | Nil = nil, line_items : Stripe::QuotesResourceListLineItems | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]

Class Method Detail

def self.openapi_any_of #

List of class defined in anyOf (OpenAPI v3)


[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 amount_subtotal : Int64 | Nil #

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

[View source]
def amount_total : Int64 | Nil #

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

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

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

[View source]
def application_fee_amount : Int64 | Nil #

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

[View source]
def application_fee_percent : Float64 | Nil #

[View source]
def application_fee_percent=(application_fee_percent : Float64 | Nil) #

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

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

[View source]
def collection_method : String | Nil #

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

[View source]
def computed : Stripe::QuotesResourceComputed | Nil #

[View source]
def computed=(computed : Stripe::QuotesResourceComputed | Nil) #

[View source]
def created : Int64 | Nil #

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

[View source]
def currency : String | Nil #

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

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

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

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

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

[View source]
def description : String | Nil #

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

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

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

[View source]
def expires_at : Int64 | Nil #

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

[View source]
def footer : String | Nil #

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

[View source]
def from_quote : Stripe::QuotesResourceFromQuote | Nil #

[View source]
def from_quote=(from_quote : Stripe::QuotesResourceFromQuote | Nil) #

[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=(header : String | Nil) #

[View source]
def id : String | Nil #

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

[View source]
def invoice : Stripe::QuoteInvoice | Nil #

[View source]
def invoice=(invoice : Stripe::QuoteInvoice | Nil) #

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

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

[View source]
def line_items : Stripe::QuotesResourceListLineItems | Nil #

[View source]
def line_items=(line_items : Stripe::QuotesResourceListLineItems | Nil) #

[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=(livemode : Bool | Nil) #

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

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

[View source]
def number : String | Nil #

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

[View source]
def object : String | Nil #

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

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

[View source]
def on_behalf_of=(on_behalf_of : Stripe::PaymentLinkOnBehalfOf | Nil) #

[View source]
def status : String | Nil #

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

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

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

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

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

[View source]

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

[View source]
def subscription_schedule : Stripe::QuoteSubscriptionSchedule | Nil #

[View source]
def subscription_schedule=(subscription_schedule : Stripe::QuoteSubscriptionSchedule | Nil) #

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

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

[View source]
def total_details : Stripe::QuotesResourceTotalDetails | Nil #

[View source]
def total_details=(total_details : Stripe::QuotesResourceTotalDetails | Nil) #

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

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

[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]