Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/Command/CancelOrder.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/Command/CancelOrder.pm


NAME

Google::Checkout::Command::CancelOrder


SYNOPSIS


  use Google::Checkout::General::GCO;

  use Google::Checkout::Command::CancelOrder;

  use Google::Checkout::General::Util qw/is_gco_error/;

  my $gco = Google::Checkout::General::GCO->new;

  my $cancel_order = Google::Checkout::Command::CancelOrder->new(

                     order_number => 156310171628413,

                     reason       => "This is a test order");

  my $response = $gco->command($cancel_order);

  die $response if is_gco_error($response);

  print $response,"\n\n";


DESCRIPTION

A sub-class of Google::Checkout::Command::GCOCommand. This module is used to cancel an order. Please note that depends on what states the order is in, a merchant may or may not be able to cancel the order.

new ORDER_NUMBER => ..., REASON => ...
Constructor. Takes a Google order number and reason of cancelling the order.

get_comment
Returns the comment of cancelling the order.

get_comment COMMENT
Sets the comment of cancelling the order.

get_reason
Returns the reason of cancelling the order.

set_reason
Sets the reason of cancelling the order.

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

Copyright 2006 Google. All rights reserved.


SEE ALSO

Google::Checkout::Command::GCOCommand

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy