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_discounttype. -
#add_item ⇒ Object
Details for the
add_itemtype. -
#add_metadata ⇒ Object
Details for the
add_metadatatype: specify a hash of key-value pairs. -
#remove_discount ⇒ Object
Details for the
remove_discounttype. -
#remove_item ⇒ Object
Details for the
remove_itemtype. -
#remove_metadata ⇒ Object
Details for the
remove_metadatatype: specify an array of metadata keys. -
#set_discounts ⇒ Object
Details for the
set_discountstype. -
#set_items ⇒ Object
Details for the
set_itemstype. -
#set_metadata ⇒ Object
Details for the
set_metadatatype: 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.
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/stripe/params/quote_update_params.rb', line 592 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.
572 573 574 |
# File 'lib/stripe/params/quote_update_params.rb', line 572 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the add_item type.
574 575 576 |
# File 'lib/stripe/params/quote_update_params.rb', line 574 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the add_metadata type: specify a hash of key-value pairs.
576 577 578 |
# File 'lib/stripe/params/quote_update_params.rb', line 576 def @add_metadata end |
#remove_discount ⇒ Object
Details for the remove_discount type.
578 579 580 |
# File 'lib/stripe/params/quote_update_params.rb', line 578 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the remove_item type.
580 581 582 |
# File 'lib/stripe/params/quote_update_params.rb', line 580 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the remove_metadata type: specify an array of metadata keys.
582 583 584 |
# File 'lib/stripe/params/quote_update_params.rb', line 582 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the set_discounts type.
584 585 586 |
# File 'lib/stripe/params/quote_update_params.rb', line 584 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the set_items type.
586 587 588 |
# File 'lib/stripe/params/quote_update_params.rb', line 586 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the set_metadata type: specify an array of key-value pairs.
588 589 590 |
# File 'lib/stripe/params/quote_update_params.rb', line 588 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
590 591 592 |
# File 'lib/stripe/params/quote_update_params.rb', line 590 def type @type end |