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.
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 |
# File 'lib/stripe/resources/quote.rb', line 1291 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.
1271 1272 1273 |
# File 'lib/stripe/resources/quote.rb', line 1271 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
1273 1274 1275 |
# File 'lib/stripe/resources/quote.rb', line 1273 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
1275 1276 1277 |
# File 'lib/stripe/resources/quote.rb', line 1275 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
1277 1278 1279 |
# File 'lib/stripe/resources/quote.rb', line 1277 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
1279 1280 1281 |
# File 'lib/stripe/resources/quote.rb', line 1279 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
1281 1282 1283 |
# File 'lib/stripe/resources/quote.rb', line 1281 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
1283 1284 1285 |
# File 'lib/stripe/resources/quote.rb', line 1283 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
1285 1286 1287 |
# File 'lib/stripe/resources/quote.rb', line 1285 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
1287 1288 1289 |
# File 'lib/stripe/resources/quote.rb', line 1287 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
1289 1290 1291 |
# File 'lib/stripe/resources/quote.rb', line 1289 def type @type end |