Class: Stripe::QuoteUpdateParams::Line::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::QuoteUpdateParams::Line::Action
- Defined in:
- lib/stripe/params/quote_update_params.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
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
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.
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 |
# File 'lib/stripe/params/quote_update_params.rb', line 369 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.
349 350 351 |
# File 'lib/stripe/params/quote_update_params.rb', line 349 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
351 352 353 |
# File 'lib/stripe/params/quote_update_params.rb', line 351 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
353 354 355 |
# File 'lib/stripe/params/quote_update_params.rb', line 353 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
355 356 357 |
# File 'lib/stripe/params/quote_update_params.rb', line 355 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
357 358 359 |
# File 'lib/stripe/params/quote_update_params.rb', line 357 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
359 360 361 |
# File 'lib/stripe/params/quote_update_params.rb', line 359 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
361 362 363 |
# File 'lib/stripe/params/quote_update_params.rb', line 361 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
363 364 365 |
# File 'lib/stripe/params/quote_update_params.rb', line 363 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
365 366 367 |
# File 'lib/stripe/params/quote_update_params.rb', line 365 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
367 368 369 |
# File 'lib/stripe/params/quote_update_params.rb', line 367 def type @type end |