class

Stripe::LineItemParams

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

Constants

MAX_LENGTH_FOR_PRICE = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, adjustable_quantity : Stripe::AdjustableQuantityParams | Nil = nil, dynamic_tax_rates : Array(String) | Nil = nil, price : String | Nil = nil, price_data : Stripe::PriceDataWithProductData | Nil = nil, quantity : Int64 | Nil = nil, tax_rates : Array(String) | 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

adjustable_quantity
Source
adjustable_quantity=(new_value : Stripe::AdjustableQuantityParams | Nil)

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

Source
dynamic_tax_rates

The tax rates that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.

Source
dynamic_tax_rates=(new_value : Array(String) | Nil)

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

The ID of the Price or Plan object. One of price or price_data is required.

Source
price=(new_value : String | Nil)

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

Source
price_data
Source
price_data=(new_value : Stripe::PriceDataWithProductData | Nil)

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

Source
quantity

The quantity of the line item being purchased. Quantity should not be defined when recurring.usage_type=metered.

Source
quantity=(new_value : Int64 | Nil)

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

Source
tax_rates

The tax rates which apply to this line item.

Source
tax_rates=(new_value : Array(String) | Nil)

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