Class: Stripe::Source::CreateParams::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.



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
# File 'lib/stripe/resources/source.rb', line 1015

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



1003
1004
1005
# File 'lib/stripe/resources/source.rb', line 1003

def amount
  @amount
end

#currencyObject

Attribute for param field currency



1005
1006
1007
# File 'lib/stripe/resources/source.rb', line 1005

def currency
  @currency
end

#descriptionObject

Attribute for param field description



1007
1008
1009
# File 'lib/stripe/resources/source.rb', line 1007

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



1009
1010
1011
# File 'lib/stripe/resources/source.rb', line 1009

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.



1011
1012
1013
# File 'lib/stripe/resources/source.rb', line 1011

def quantity
  @quantity
end

#typeObject

Attribute for param field type



1013
1014
1015
# File 'lib/stripe/resources/source.rb', line 1013

def type
  @type
end