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/SendBuyerMessage.pm

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


NAME

Google::Checkout::Command::SendBuyerMessage


SYNOPSIS


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

  use Google::Checkout::Command::SendBuyerMessage;

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

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

  my $send_message = Google::Checkout::Command::SendBuyerMessage->new(

                     order_number => 156310171628413,

                     message      => "Message to buyer",

                     send_email   => 1);

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

  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 send messages to buyer.

new ORDER_NUMBER => ..., MESSAGE => ..., SEND_EMAIL => ...
Constructor. Takes a Google order number, message to send to user and whether or not email should also be sent to the buyer as well.

get_message
Returns the message.

set_message MESSAGE
Sets the message to be sent to the buyer.

should_send_email
Returns whether or not email should also be sent to the buyer.

set_send_email FLAG
Sets the flag to send email to the buyer.

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