Class: Stripe::QuoteService::CreateParams::Line::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::QuoteService::CreateParams::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.
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/stripe/services/quote_service.rb', line 484 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.
455 456 457 |
# File 'lib/stripe/services/quote_service.rb', line 455 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
458 459 460 |
# File 'lib/stripe/services/quote_service.rb', line 458 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
461 462 463 |
# File 'lib/stripe/services/quote_service.rb', line 461 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
464 465 466 |
# File 'lib/stripe/services/quote_service.rb', line 464 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
467 468 469 |
# File 'lib/stripe/services/quote_service.rb', line 467 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
470 471 472 |
# File 'lib/stripe/services/quote_service.rb', line 470 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
473 474 475 |
# File 'lib/stripe/services/quote_service.rb', line 473 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
476 477 478 |
# File 'lib/stripe/services/quote_service.rb', line 476 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
479 480 481 |
# File 'lib/stripe/services/quote_service.rb', line 479 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
482 483 484 |
# File 'lib/stripe/services/quote_service.rb', line 482 def type @type end |