Class: Stripe::PaymentLink::CreateParams::LineItem

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_link.rb

Defined Under Namespace

Classes: AdjustableQuantity

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(adjustable_quantity: nil, price: nil, quantity: nil) ⇒ LineItem

Returns a new instance of LineItem.



662
663
664
665
666
# File 'lib/stripe/resources/payment_link.rb', line 662

def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
  @adjustable_quantity = adjustable_quantity
  @price = price
  @quantity = quantity
end

Instance Attribute Details

#adjustable_quantityObject

When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.



656
657
658
# File 'lib/stripe/resources/payment_link.rb', line 656

def adjustable_quantity
  @adjustable_quantity
end

#priceObject

The ID of the [Price](stripe.com/docs/api/prices) or [Plan](stripe.com/docs/api/plans) object.



658
659
660
# File 'lib/stripe/resources/payment_link.rb', line 658

def price
  @price
end

#quantityObject

The quantity of the line item being purchased.



660
661
662
# File 'lib/stripe/resources/payment_link.rb', line 660

def quantity
  @quantity
end