Google::Checkout::Command::DeliverOrder
use Google::Checkout::General::GCO;
use Google::Checkout::Command::DeliverOrder;
use Google::Checkout::General::Util qw/is_gco_error/;
my $gco = Google::Checkout::General::GCO->new;
my $deliver_order = Google::Checkout::Command::DeliverOrder->new(
order_number => 156310171628413,
send_email => 1);
my $response = $gco->command($deliver_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 deliver an order.
- new ORDER_NUMBER => ..., SEND_EMAIL => ...
- Constructor. Takes a Google order number. If SEND_EMAIL is true, an email
will also be sent to the user.
- get_carrier
- Returns the carrier that will be used to deliver the order.
- set_carrier CARRIER
- Sets the carrier that will be used to deliver the order.
- get_tracking_number
- Returns the tracking number provided by the carrier.
- set_tracking_number TRACKING_NUMBER
- Sets the tracking number provided by the carrier.
- should_send_email
- Returns true if email should be sent to user. Otherwise, returns
false.
- set_send_email FLAG
- Sets the flag to send optional email to user or not.
- to_xml
- 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.
Google::Checkout::Command::GCOCommand