Class: Google4R::Checkout::RefundOrderCommand
- Inherits:
-
Command
- Object
- Command
- Google4R::Checkout::RefundOrderCommand
- Defined in:
- lib/google4r/checkout/commands.rb
Overview
The RefundOrderCommand instructs Google Checkout to refund an order
Constant Summary
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)
-
- (Object) amount
The amount to refund, optional, Money.
-
- (Object) comment
A comment related to the refunded order, String of maximum 140 characters, optional.
-
- (Object) reason
The reason that the order is to be refunded, 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
- (Object) amount
The amount to refund, optional, Money
487 488 489 |
# File 'lib/google4r/checkout/commands.rb', line 487 def amount @amount end |
- (Object) comment
A comment related to the refunded order, String of maximum 140 characters, optional
493 494 495 |
# File 'lib/google4r/checkout/commands.rb', line 493 def comment @comment end |
- (Object) reason
The reason that the order is to be refunded, String of maximum 140 characters, required
490 491 492 |
# File 'lib/google4r/checkout/commands.rb', line 490 def reason @reason end |
Instance Method Details
- (Object) to_xml
495 496 497 |
# File 'lib/google4r/checkout/commands.rb', line 495 def to_xml RefundOrderCommandXmlGenerator.new(self).generate end |