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



455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
# File 'lib/stripe/services/source_service.rb', line 455

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



443
444
445
# File 'lib/stripe/services/source_service.rb', line 443

def amount
  @amount
end

#currencyObject

Attribute for param field currency



445
446
447
# File 'lib/stripe/services/source_service.rb', line 445

def currency
  @currency
end

#descriptionObject

Attribute for param field description



447
448
449
# File 'lib/stripe/services/source_service.rb', line 447

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



449
450
451
# File 'lib/stripe/services/source_service.rb', line 449

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.



451
452
453
# File 'lib/stripe/services/source_service.rb', line 451

def quantity
  @quantity
end

#typeObject

Attribute for param field type



453
454
455
# File 'lib/stripe/services/source_service.rb', line 453

def type
  @type
end