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.



1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/stripe/resources/source.rb', line 1027

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



1015
1016
1017
# File 'lib/stripe/resources/source.rb', line 1015

def amount
  @amount
end

#currencyObject

Attribute for param field currency



1017
1018
1019
# File 'lib/stripe/resources/source.rb', line 1017

def currency
  @currency
end

#descriptionObject

Attribute for param field description



1019
1020
1021
# File 'lib/stripe/resources/source.rb', line 1019

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



1021
1022
1023
# File 'lib/stripe/resources/source.rb', line 1021

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.



1023
1024
1025
# File 'lib/stripe/resources/source.rb', line 1023

def quantity
  @quantity
end

#typeObject

Attribute for param field type



1025
1026
1027
# File 'lib/stripe/resources/source.rb', line 1025

def type
  @type
end