Class: Stripe::SourceUpdateParams::SourceOrder::Item

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/source_update_params.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.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/stripe/params/source_update_params.rb', line 153

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



141
142
143
# File 'lib/stripe/params/source_update_params.rb', line 141

def amount
  @amount
end

#currencyObject

Attribute for param field currency



143
144
145
# File 'lib/stripe/params/source_update_params.rb', line 143

def currency
  @currency
end

#descriptionObject

Attribute for param field description



145
146
147
# File 'lib/stripe/params/source_update_params.rb', line 145

def description
  @description
end

#parentObject

The ID of the SKU being ordered.



147
148
149
# File 'lib/stripe/params/source_update_params.rb', line 147

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.



149
150
151
# File 'lib/stripe/params/source_update_params.rb', line 149

def quantity
  @quantity
end

#typeObject

Attribute for param field type



151
152
153
# File 'lib/stripe/params/source_update_params.rb', line 151

def type
  @type
end