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.
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 |
# File 'lib/stripe/resources/quote.rb', line 1026 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.
997 998 999 |
# File 'lib/stripe/resources/quote.rb', line 997 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
1000 1001 1002 |
# File 'lib/stripe/resources/quote.rb', line 1000 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
1003 1004 1005 |
# File 'lib/stripe/resources/quote.rb', line 1003 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
1006 1007 1008 |
# File 'lib/stripe/resources/quote.rb', line 1006 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
1009 1010 1011 |
# File 'lib/stripe/resources/quote.rb', line 1009 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
1012 1013 1014 |
# File 'lib/stripe/resources/quote.rb', line 1012 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
1015 1016 1017 |
# File 'lib/stripe/resources/quote.rb', line 1015 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
1018 1019 1020 |
# File 'lib/stripe/resources/quote.rb', line 1018 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
1021 1022 1023 |
# File 'lib/stripe/resources/quote.rb', line 1021 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
1024 1025 1026 |
# File 'lib/stripe/resources/quote.rb', line 1024 def type @type end |