class

Stripe::SourceOrder

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

MAX_LENGTH_FOR_EMAIL = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, amount : Int64 | Nil = nil, currency : String | Nil = nil, items : Array(Stripe::SourceOrderItem) | Nil = nil, email : String | Nil = nil, shipping : Stripe::Shipping | Nil = nil)

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

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

amount

A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.

Source
amount=(new_value : Int64 | Nil)

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

Source
currency

Three-letter ISO currency code, in lowercase. Must be a supported currency.

Source
currency=(new_value : String | Nil)

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

Source
email

The email address of the customer placing the order.

Source
email=(new_value : String | Nil)

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

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

items

List of items constituting the order.

Source
items=(new_value : Array(Stripe::SourceOrderItem) | Nil)

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

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
shipping
Source
shipping=(new_value : Stripe::Shipping | Nil)

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

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source