Class: Google4R::Checkout::ItemsCommand
- Defined in:
- lib/google4r/checkout/commands.rb
Overview
Abstract class for Line-item shipping commands
Direct Known Subclasses
BackorderItemsCommand, CancelItemsCommand, ResetItemsShippingInformationCommand, ReturnItemsCommand, ShipItemsCommand
Constant Summary
Constants inherited from Command
Command::CHECKOUT_API_URL, Command::DONATE_CHECKOUT_API_URL, Command::DONATE_ORDER_PROCESSING_API_URL, Command::DONATE_ORDER_REPORT_API_URL, Command::ORDER_PROCESSING_API_URL, Command::ORDER_REPORT_API_URL, Command::POLLING_API_URL, Command::PRODUCTION_URL_PREFIX, Command::SANDBOX_URL_PREFIX
Instance Attribute Summary collapse
-
#item_info_arr ⇒ Object
An array of ItemInfo objects that you are marking as backordered, cancelled, returned or resetting shipping information.
-
#send_email ⇒ Object
if google checkout should email buyer to say order is dispatched.
Attributes inherited from Command
#command_tag_name, #frontend, #google_order_number
Instance Method Summary collapse
-
#initialize(frontend) ⇒ ItemsCommand
constructor
A new instance of ItemsCommand.
Methods inherited from Command
#send_to_google_checkout, #to_xml
Constructor Details
#initialize(frontend) ⇒ ItemsCommand
Returns a new instance of ItemsCommand.
630 631 632 633 634 |
# File 'lib/google4r/checkout/commands.rb', line 630 def initialize(frontend) super @item_info_arr = [] @send_email = false end |
Instance Attribute Details
#item_info_arr ⇒ Object
An array of ItemInfo objects that you are marking as backordered, cancelled, returned or resetting shipping information
625 626 627 |
# File 'lib/google4r/checkout/commands.rb', line 625 def item_info_arr @item_info_arr end |
#send_email ⇒ Object
if google checkout should email buyer to say order is dispatched
628 629 630 |
# File 'lib/google4r/checkout/commands.rb', line 628 def send_email @send_email end |