class

Stripe::AdjustableQuantityParams

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

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, enabled : Bool | Nil = nil, maximum : Int64 | Nil = nil, minimum : Int64 | 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

enabled

Set to true if the quantity can be adjusted to any non-negative Integer.

Source
enabled=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] enabled 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

list_invalid_properties

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

Source
maximum

The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.

Source
maximum=(new_value : Int64 | Nil)

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

Source
minimum

The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.

Source
minimum=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] minimum 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