Class: Stripe::Quote::UpdateParams::Line::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Quote::UpdateParams::Line::Action
- Defined in:
- lib/stripe/resources/quote.rb
Defined Under Namespace
Classes: AddDiscount, AddItem, RemoveDiscount, RemoveItem, SetDiscount, SetItem
Instance Attribute Summary collapse
-
#add_discount ⇒ Object
Details for the ‘add_discount` type.
-
#add_item ⇒ Object
Details for the ‘add_item` type.
-
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
-
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
-
#remove_item ⇒ Object
Details for the ‘remove_item` type.
-
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
-
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
-
#set_items ⇒ Object
Details for the ‘set_items` type.
-
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
-
#type ⇒ Object
The type of action the quote line performs.
Instance Method Summary collapse
-
#initialize(add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil) ⇒ Action
constructor
A new instance of Action.
Methods inherited from RequestParams
Constructor Details
#initialize(add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil) ⇒ Action
Returns a new instance of Action.
2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 |
# File 'lib/stripe/resources/quote.rb', line 2367 def initialize( add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil ) @add_discount = add_discount @add_item = add_item @add_metadata = @remove_discount = remove_discount @remove_item = remove_item @remove_metadata = @set_discounts = set_discounts @set_items = set_items @set_metadata = @type = type end |
Instance Attribute Details
#add_discount ⇒ Object
Details for the ‘add_discount` type.
2347 2348 2349 |
# File 'lib/stripe/resources/quote.rb', line 2347 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
2349 2350 2351 |
# File 'lib/stripe/resources/quote.rb', line 2349 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
2351 2352 2353 |
# File 'lib/stripe/resources/quote.rb', line 2351 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
2353 2354 2355 |
# File 'lib/stripe/resources/quote.rb', line 2353 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
2355 2356 2357 |
# File 'lib/stripe/resources/quote.rb', line 2355 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
2357 2358 2359 |
# File 'lib/stripe/resources/quote.rb', line 2357 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
2359 2360 2361 |
# File 'lib/stripe/resources/quote.rb', line 2359 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
2361 2362 2363 |
# File 'lib/stripe/resources/quote.rb', line 2361 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
2363 2364 2365 |
# File 'lib/stripe/resources/quote.rb', line 2363 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
2365 2366 2367 |
# File 'lib/stripe/resources/quote.rb', line 2365 def type @type end |