Class: Stripe::PaymentLinkCreateParams::LineItem
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentLinkCreateParams::LineItem
- Defined in:
- lib/stripe/params/payment_link_create_params.rb
Defined Under Namespace
Classes: AdjustableQuantity, PriceData
Instance Attribute Summary collapse
-
#adjustable_quantity ⇒ Object
When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.
-
#price ⇒ Object
The ID of the [Price](stripe.com/docs/api/prices) or [Plan](stripe.com/docs/api/plans) object.
-
#price_data ⇒ Object
Data used to generate a new [Price](stripe.com/docs/api/prices) object inline.
-
#quantity ⇒ Object
The quantity of the line item being purchased.
Instance Method Summary collapse
-
#initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil) ⇒ LineItem
constructor
A new instance of LineItem.
Methods inherited from RequestParams
Constructor Details
#initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil) ⇒ LineItem
429 430 431 432 433 434 |
# File 'lib/stripe/params/payment_link_create_params.rb', line 429 def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil) @adjustable_quantity = adjustable_quantity @price = price @price_data = price_data @quantity = quantity end |
Instance Attribute Details
#adjustable_quantity ⇒ Object
When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.
421 422 423 |
# File 'lib/stripe/params/payment_link_create_params.rb', line 421 def adjustable_quantity @adjustable_quantity end |
#price ⇒ Object
The ID of the [Price](stripe.com/docs/api/prices) or [Plan](stripe.com/docs/api/plans) object. One of ‘price` or `price_data` is required.
423 424 425 |
# File 'lib/stripe/params/payment_link_create_params.rb', line 423 def price @price end |
#price_data ⇒ Object
Data used to generate a new [Price](stripe.com/docs/api/prices) object inline. One of ‘price` or `price_data` is required.
425 426 427 |
# File 'lib/stripe/params/payment_link_create_params.rb', line 425 def price_data @price_data end |
#quantity ⇒ Object
The quantity of the line item being purchased.
427 428 429 |
# File 'lib/stripe/params/payment_link_create_params.rb', line 427 def quantity @quantity end |