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::DONATE_CHECKOUT_API_URL, Google4R::Checkout::Command::DONATE_ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::DONATE_ORDER_REPORT_API_URL, Google4R::Checkout::Command::ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::ORDER_REPORT_API_URL, Google4R::Checkout::Command::POLLING_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



506
507
508
# File 'lib/google4r/checkout/commands.rb', line 506

def comment
  @comment
end

#reasonObject

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



503
504
505
# File 'lib/google4r/checkout/commands.rb', line 503

def reason
  @reason
end

Instance Method Details

#to_xmlObject



508
509
510
# File 'lib/google4r/checkout/commands.rb', line 508

def to_xml
  CancelOrderCommandXmlGenerator.new(self).generate
end