Class: Google4R::Checkout::AddMerchantOrderNumberCommand

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

Overview

The AddMerchantOrderCommand instructs Google Checkout to associate a merchant-assigned order number with an order

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

#initialize, #send_to_google_checkout

Constructor Details

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

Instance Attribute Details

#merchant_order_numberObject

The merchant-assigned order number associated with an order



375
376
377
# File 'lib/google4r/checkout/commands.rb', line 375

def merchant_order_number
  @merchant_order_number
end

Instance Method Details

#to_xmlObject



377
378
379
# File 'lib/google4r/checkout/commands.rb', line 377

def to_xml
  AddMerchantOrderNumberCommandXmlGenerator.new(self).generate
end