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.



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'lib/stripe/services/source_service.rb', line 521

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



504
505
506
# File 'lib/stripe/services/source_service.rb', line 504

def amount
  @amount
end

#currencyObject

Attribute for param field currency



507
508
509
# File 'lib/stripe/services/source_service.rb', line 507

def currency
  @currency
end

#descriptionObject

Attribute for param field description



510
511
512
# File 'lib/stripe/services/source_service.rb', line 510

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



513
514
515
# File 'lib/stripe/services/source_service.rb', line 513

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.



516
517
518
# File 'lib/stripe/services/source_service.rb', line 516

def quantity
  @quantity
end

#typeObject

Attribute for param field type



519
520
521
# File 'lib/stripe/services/source_service.rb', line 519

def type
  @type
end