Class: Stripe::V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Payments::OffSessionPaymentCreateParams::AmountDetails::LineItem
- Defined in:
- lib/stripe/params/v2/payments/off_session_payment_create_params.rb
Defined Under Namespace
Classes: Tax
Instance Attribute Summary collapse
-
#discount_amount ⇒ Object
The amount an item was discounted for.
-
#product_code ⇒ Object
Unique identifier of the product.
-
#product_name ⇒ Object
Name of the product.
-
#quantity ⇒ Object
Number of items of the product.
-
#tax ⇒ Object
Contains information about the tax on the item.
-
#unit_cost ⇒ Object
Cost of the product.
Instance Method Summary collapse
-
#initialize(discount_amount: nil, product_code: nil, product_name: nil, quantity: nil, tax: nil, unit_cost: nil) ⇒ LineItem
constructor
A new instance of LineItem.
Methods inherited from RequestParams
Constructor Details
#initialize(discount_amount: nil, product_code: nil, product_name: nil, quantity: nil, tax: nil, unit_cost: nil) ⇒ LineItem
Returns a new instance of LineItem.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 31 def initialize( discount_amount: nil, product_code: nil, product_name: nil, quantity: nil, tax: nil, unit_cost: nil ) @discount_amount = discount_amount @product_code = product_code @product_name = product_name @quantity = quantity @tax = tax @unit_cost = unit_cost end |
Instance Attribute Details
#discount_amount ⇒ Object
The amount an item was discounted for. Positive integer.
19 20 21 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 19 def discount_amount @discount_amount end |
#product_code ⇒ Object
Unique identifier of the product. At most 12 characters long.
21 22 23 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 21 def product_code @product_code end |
#product_name ⇒ Object
Name of the product. At most 100 characters long.
23 24 25 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 23 def product_name @product_name end |
#quantity ⇒ Object
Number of items of the product. Positive integer.
25 26 27 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 25 def quantity @quantity end |
#tax ⇒ Object
Contains information about the tax on the item.
27 28 29 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 27 def tax @tax end |
#unit_cost ⇒ Object
Cost of the product. Non-negative integer.
29 30 31 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 29 def unit_cost @unit_cost end |