
Google::Checkout::Command::RefundOrder

use Google::Checkout::General::GCO;
use Google::Checkout::Command::RefundOrder;
use Google::Checkout::General::Util qw/is_gco_error/;
my $gco = Google::Checkout::General::GCO->new;
my $refund_order = Google::Checkout::Command::RefundOrder->new(
order_number => 156310171628413,
amount => 5,
comment => "Refund to user",
reason => "User wants to refund");
my $response = $gco->command($refund_order);
die $response if is_gco_error($response);
print $response,"\n\n";

A sub-class of Google::Checkout::Command::GCOCommand. This module is used to refund an order.
Constructor. Takes a Google order number, amount to refund, comment and reason for the refund. Please note that a refund might not be possible depends on what states the order is in.
Returns the refund amount.
Sets the refund amount.
Returns the comment.
Sets the comment.
Returns the reason for the refund.
Sets the reason for the refund.
Return the XML that will be sent to Google Checkout. Note that this function should not be used directly. Instead, it's called indirectly by the Google::Checkout::General::GCO object internally.

Copyright 2006 Google. All rights reserved.
