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.



1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
# File 'lib/stripe/resources/source.rb', line 1294

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



1277
1278
1279
# File 'lib/stripe/resources/source.rb', line 1277

def amount
  @amount
end

#currencyObject

Attribute for param field currency



1280
1281
1282
# File 'lib/stripe/resources/source.rb', line 1280

def currency
  @currency
end

#descriptionObject

Attribute for param field description



1283
1284
1285
# File 'lib/stripe/resources/source.rb', line 1283

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



1286
1287
1288
# File 'lib/stripe/resources/source.rb', line 1286

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.



1289
1290
1291
# File 'lib/stripe/resources/source.rb', line 1289

def quantity
  @quantity
end

#typeObject

Attribute for param field type



1292
1293
1294
# File 'lib/stripe/resources/source.rb', line 1292

def type
  @type
end