Class: Stripe::Source::UpdateParams::SourceOrder::Item

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, description: nil, parent: nil, quantity: nil, type: nil) ⇒ Item

Returns a new instance of Item.



715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
# File 'lib/stripe/resources/source.rb', line 715

def initialize(
  amount: nil,
  currency: nil,
  description: nil,
  parent: nil,
  quantity: nil,
  type: nil
)
  @amount = amount
  @currency = currency
  @description = description
  @parent = parent
  @quantity = quantity
  @type = type
end

Instance Attribute Details

#amountObject

Attribute for param field amount



703
704
705
# File 'lib/stripe/resources/source.rb', line 703

def amount
  @amount
end

#currencyObject

Attribute for param field currency



705
706
707
# File 'lib/stripe/resources/source.rb', line 705

def currency
  @currency
end

#descriptionObject

Attribute for param field description



707
708
709
# File 'lib/stripe/resources/source.rb', line 707

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



709
710
711
# File 'lib/stripe/resources/source.rb', line 709

def parent
  @parent
end

#quantityObject

The quantity of this order item. When type is ‘sku`, this is the number of instances of the SKU to be ordered.



711
712
713
# File 'lib/stripe/resources/source.rb', line 711

def quantity
  @quantity
end

#typeObject

Attribute for param field type



713
714
715
# File 'lib/stripe/resources/source.rb', line 713

def type
  @type
end