Class: Google4R::Checkout::CancelOrderCommand

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

Overview

The CancelOrderCommand instructs Google Checkout to cancel an order

Constant Summary

Constants inherited from Command

Google4R::Checkout::Command::CHECKOUT_API_URL, Google4R::Checkout::Command::ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::PRODUCTION_URL_PREFIX, Google4R::Checkout::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

#commentObject

A comment related to the cancelled order, String of maximum 140 characters, optional



362
363
364
# File 'lib/google4r/checkout/commands.rb', line 362

def comment
  @comment
end

#reasonObject

The reason that the order is to be cancelled, String of maximum 140 characters, required



359
360
361
# File 'lib/google4r/checkout/commands.rb', line 359

def reason
  @reason
end

Instance Method Details

#to_xmlObject



364
365
366
# File 'lib/google4r/checkout/commands.rb', line 364

def to_xml
  CancelOrderCommandXmlGenerator.new(self).generate
end