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::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.



486
487
488
489
490
# File 'lib/google4r/checkout/commands.rb', line 486

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



481
482
483
# File 'lib/google4r/checkout/commands.rb', line 481

def item_info_arr
  @item_info_arr
end

#send_emailObject

if google checkout should email buyer to say order is dispatched



484
485
486
# File 'lib/google4r/checkout/commands.rb', line 484

def send_email
  @send_email
end