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.



754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/stripe/resources/source.rb', line 754

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



742
743
744
# File 'lib/stripe/resources/source.rb', line 742

def amount
  @amount
end

#currencyObject

Attribute for param field currency



744
745
746
# File 'lib/stripe/resources/source.rb', line 744

def currency
  @currency
end

#descriptionObject

Attribute for param field description



746
747
748
# File 'lib/stripe/resources/source.rb', line 746

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



748
749
750
# File 'lib/stripe/resources/source.rb', line 748

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.



750
751
752
# File 'lib/stripe/resources/source.rb', line 750

def quantity
  @quantity
end

#typeObject

Attribute for param field type



752
753
754
# File 'lib/stripe/resources/source.rb', line 752

def type
  @type
end