Class: Stripe::SourceService::UpdateParams::SourceOrder::Item

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



182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/stripe/services/source_service.rb', line 182

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



170
171
172
# File 'lib/stripe/services/source_service.rb', line 170

def amount
  @amount
end

#currencyObject

Attribute for param field currency



172
173
174
# File 'lib/stripe/services/source_service.rb', line 172

def currency
  @currency
end

#descriptionObject

Attribute for param field description



174
175
176
# File 'lib/stripe/services/source_service.rb', line 174

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



176
177
178
# File 'lib/stripe/services/source_service.rb', line 176

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.



178
179
180
# File 'lib/stripe/services/source_service.rb', line 178

def quantity
  @quantity
end

#typeObject

Attribute for param field type



180
181
182
# File 'lib/stripe/services/source_service.rb', line 180

def type
  @type
end