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::ORDER_PROCESSING_API_URL, Command::ORDER_REPORT_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.



453
454
455
456
457
# File 'lib/google4r/checkout/commands.rb', line 453

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



448
449
450
# File 'lib/google4r/checkout/commands.rb', line 448

def item_info_arr
  @item_info_arr
end

#send_emailObject

if google checkout should email buyer to say order is dispatched



451
452
453
# File 'lib/google4r/checkout/commands.rb', line 451

def send_email
  @send_email
end