Class: Stripe::Source::CreateParams::SourceOrder::Item
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Source::CreateParams::SourceOrder::Item
- Defined in:
- lib/stripe/resources/source.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.
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 |
# File 'lib/stripe/resources/source.rb', line 1255 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
1243 1244 1245 |
# File 'lib/stripe/resources/source.rb', line 1243 def amount @amount end |
#currency ⇒ Object
Attribute for param field currency
1245 1246 1247 |
# File 'lib/stripe/resources/source.rb', line 1245 def currency @currency end |
#description ⇒ Object
Attribute for param field description
1247 1248 1249 |
# File 'lib/stripe/resources/source.rb', line 1247 def description @description end |
#parent ⇒ Object
The ID of the SKU being ordered.
1249 1250 1251 |
# File 'lib/stripe/resources/source.rb', line 1249 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.
1251 1252 1253 |
# File 'lib/stripe/resources/source.rb', line 1251 def quantity @quantity end |
#type ⇒ Object
Attribute for param field type
1253 1254 1255 |
# File 'lib/stripe/resources/source.rb', line 1253 def type @type end |