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.



982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
# File 'lib/stripe/resources/source.rb', line 982

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



970
971
972
# File 'lib/stripe/resources/source.rb', line 970

def amount
  @amount
end

#currencyObject

Attribute for param field currency



972
973
974
# File 'lib/stripe/resources/source.rb', line 972

def currency
  @currency
end

#descriptionObject

Attribute for param field description



974
975
976
# File 'lib/stripe/resources/source.rb', line 974

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



976
977
978
# File 'lib/stripe/resources/source.rb', line 976

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.



978
979
980
# File 'lib/stripe/resources/source.rb', line 978

def quantity
  @quantity
end

#typeObject

Attribute for param field type



980
981
982
# File 'lib/stripe/resources/source.rb', line 980

def type
  @type
end