Class: Google4R::Checkout::ItemsCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/google4r/checkout/commands.rb

Overview

Abstract class for Line-item shipping commands

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

Attributes inherited from Command

#command_tag_name, #frontend, #google_order_number

Instance Method Summary collapse

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_arrObject

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_emailObject

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