Class: Google4R::Checkout::AddTrackingDataCommand

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

Overview

The AddTrackingDataCommand instructs Google Checkout to associate a shipper’s tracking number with an order.

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

#initialize, #send_to_google_checkout

Constructor Details

This class inherits a constructor from Google4R::Checkout::Command

Instance Attribute Details

#carrierObject

The name of the company responsible for shipping the item. Valid values for this tag are DHL, FedEx, UPS, USPS and Other.



562
563
564
# File 'lib/google4r/checkout/commands.rb', line 562

def carrier
  @carrier
end

#tracking_numberObject

The shipper’s tracking number that is associated with an order



565
566
567
# File 'lib/google4r/checkout/commands.rb', line 565

def tracking_number
  @tracking_number
end

Instance Method Details

#to_xmlObject



567
568
569
# File 'lib/google4r/checkout/commands.rb', line 567

def to_xml
  AddTrackingDataCommandXmlGenerator.new(self).generate
end