David Shao Lin Zhuo > Google-Checkout-1.1.1 > Google::Checkout::Notification::ChargebackAmount

Download:
Google-Checkout-1.1.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  1
View/Report Bugs
Source  

NAME ^

Google::Checkout::Notification::ChargebackAmount

SYNOPSIS ^

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

  my $xml = "/xml/chargeback_amount_notification.xml";

  #--
  #-- $xml can either be a file or a complete XML doc string
  #--
  my $charge_amount = Google::Checkout::Notification::ChargebackAmount->new(xml => $xml);
  die $charge_amount if is_gco_error $charge_amount;

  print $charge_amount->get_latest_chargeback_amount,"\n",
        $charge_amount->get_total_chargeback_amount,"\n";

DESCRIPTION ^

Sub-class of Google::Checkout::Notification::GCONotification. This module can be used to extract the latest and the total charge back amount when the chargeback amount notification is received.

new XML => ...

Constructor. Takes either a XML file or XML doc as data string. If the XML is invalid (syntax error for example), Google::Checkout::General::Error is returned.

type

Always return Google::Checkout::XML::Constants::CHARGE_BACK_NOTIFICATION.

get_latest_chargeback_amount

Returns the latest charge back amount.

get_total_chargeback_amount

Returns the total charge back amount.

COPYRIGHT ^

Copyright 2006 Google. All rights reserved.

SEE ALSO ^

Google::Checkout::Notification::GCONotification

syntax highlighting: