Class: Stripe::SourceCreateParams::SourceOrder::Item

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/source_create_params.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.



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'lib/stripe/params/source_create_params.rb', line 171

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



159
160
161
# File 'lib/stripe/params/source_create_params.rb', line 159

def amount
  @amount
end

#currencyObject

Attribute for param field currency



161
162
163
# File 'lib/stripe/params/source_create_params.rb', line 161

def currency
  @currency
end

#descriptionObject

Attribute for param field description



163
164
165
# File 'lib/stripe/params/source_create_params.rb', line 163

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



165
166
167
# File 'lib/stripe/params/source_create_params.rb', line 165

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.



167
168
169
# File 'lib/stripe/params/source_create_params.rb', line 167

def quantity
  @quantity
end

#typeObject

Attribute for param field type



169
170
171
# File 'lib/stripe/params/source_create_params.rb', line 169

def type
  @type
end