Class: Stripe::Quote::CreateParams::Line::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Quote::CreateParams::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.
872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/stripe/resources/quote.rb', line 872 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.
852 853 854 |
# File 'lib/stripe/resources/quote.rb', line 852 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
854 855 856 |
# File 'lib/stripe/resources/quote.rb', line 854 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
856 857 858 |
# File 'lib/stripe/resources/quote.rb', line 856 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
858 859 860 |
# File 'lib/stripe/resources/quote.rb', line 858 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
860 861 862 |
# File 'lib/stripe/resources/quote.rb', line 860 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
862 863 864 |
# File 'lib/stripe/resources/quote.rb', line 862 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
864 865 866 |
# File 'lib/stripe/resources/quote.rb', line 864 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
866 867 868 |
# File 'lib/stripe/resources/quote.rb', line 866 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
868 869 870 |
# File 'lib/stripe/resources/quote.rb', line 868 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
870 871 872 |
# File 'lib/stripe/resources/quote.rb', line 870 def type @type end |