Class: Stripe::Source::UpdateParams::SourceOrder::Item
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Source::UpdateParams::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.
981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 |
# File 'lib/stripe/resources/source.rb', line 981 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
964 965 966 |
# File 'lib/stripe/resources/source.rb', line 964 def amount @amount end |
#currency ⇒ Object
Attribute for param field currency
967 968 969 |
# File 'lib/stripe/resources/source.rb', line 967 def currency @currency end |
#description ⇒ Object
Attribute for param field description
970 971 972 |
# File 'lib/stripe/resources/source.rb', line 970 def description @description end |
#parent ⇒ Object
The ID of the SKU being ordered.
973 974 975 |
# File 'lib/stripe/resources/source.rb', line 973 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.
976 977 978 |
# File 'lib/stripe/resources/source.rb', line 976 def quantity @quantity end |
#type ⇒ Object
Attribute for param field type
979 980 981 |
# File 'lib/stripe/resources/source.rb', line 979 def type @type end |