Class: Stripe::SourceService::UpdateParams::SourceOrder::Item
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SourceService::UpdateParams::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.
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/stripe/services/source_service.rb', line 208 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
191 192 193 |
# File 'lib/stripe/services/source_service.rb', line 191 def amount @amount end |
#currency ⇒ Object
Attribute for param field currency
194 195 196 |
# File 'lib/stripe/services/source_service.rb', line 194 def currency @currency end |
#description ⇒ Object
Attribute for param field description
197 198 199 |
# File 'lib/stripe/services/source_service.rb', line 197 def description @description end |
#parent ⇒ Object
The ID of the SKU being ordered.
200 201 202 |
# File 'lib/stripe/services/source_service.rb', line 200 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.
203 204 205 |
# File 'lib/stripe/services/source_service.rb', line 203 def quantity @quantity end |
#type ⇒ Object
Attribute for param field type
206 207 208 |
# File 'lib/stripe/services/source_service.rb', line 206 def type @type end |