Class: Stripe::SourceService::CreateParams::SourceOrder::Item
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SourceService::CreateParams::SourceOrder::Item
- Defined in:
- lib/stripe/services/source_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Attribute for param field amount.
-
#currency ⇒ Object
Attribute for param field currency.
-
#description ⇒ Object
Attribute for param field description.
-
#parent ⇒ Object
The ID of the SKU being ordered.
-
#quantity ⇒ Object
The quantity of this order item.
-
#type ⇒ Object
Attribute for param field type.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, description: nil, parent: nil, quantity: nil, type: nil) ⇒ Item
constructor
A new instance of Item.
Methods inherited from RequestParams
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
#amount ⇒ Object
Attribute for param field amount
504 505 506 |
# File 'lib/stripe/services/source_service.rb', line 504 def amount @amount end |
#currency ⇒ Object
Attribute for param field currency
507 508 509 |
# File 'lib/stripe/services/source_service.rb', line 507 def currency @currency end |
#description ⇒ Object
Attribute for param field description
510 511 512 |
# File 'lib/stripe/services/source_service.rb', line 510 def description @description end |
#parent ⇒ Object
The ID of the SKU being ordered.
513 514 515 |
# File 'lib/stripe/services/source_service.rb', line 513 def parent @parent end |
#quantity ⇒ Object
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 |
#type ⇒ Object
Attribute for param field type
519 520 521 |
# File 'lib/stripe/services/source_service.rb', line 519 def type @type end |