Class: Stripe::QuoteService::UpdateParams::Line::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::QuoteService::UpdateParams::Line::Action
- Defined in:
- lib/stripe/services/quote_service.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.
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 |
# File 'lib/stripe/services/quote_service.rb', line 1493 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.
1473 1474 1475 |
# File 'lib/stripe/services/quote_service.rb', line 1473 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
1475 1476 1477 |
# File 'lib/stripe/services/quote_service.rb', line 1475 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
1477 1478 1479 |
# File 'lib/stripe/services/quote_service.rb', line 1477 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
1479 1480 1481 |
# File 'lib/stripe/services/quote_service.rb', line 1479 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
1481 1482 1483 |
# File 'lib/stripe/services/quote_service.rb', line 1481 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
1483 1484 1485 |
# File 'lib/stripe/services/quote_service.rb', line 1483 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
1485 1486 1487 |
# File 'lib/stripe/services/quote_service.rb', line 1485 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
1487 1488 1489 |
# File 'lib/stripe/services/quote_service.rb', line 1487 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
1489 1490 1491 |
# File 'lib/stripe/services/quote_service.rb', line 1489 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
1491 1492 1493 |
# File 'lib/stripe/services/quote_service.rb', line 1491 def type @type end |