Class: Google4R::Checkout::CancelOrderCommand
- 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
-
#comment ⇒ Object
A comment related to the cancelled order, String of maximum 140 characters, optional.
-
#reason ⇒ Object
The reason that the order is to be cancelled, String of maximum 140 characters, required.
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
#comment ⇒ Object
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 |
#reason ⇒ Object
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_xml ⇒ Object
364 365 366 |
# File 'lib/google4r/checkout/commands.rb', line 364 def to_xml CancelOrderCommandXmlGenerator.new(self).generate end |