Net::Async::Webservice::UPS::CreditCard - a credit card to pay UPS shipments with
version 1.0.2
code
Enum, "CreditCardCode" in Net::Async::Webservice::UPS::Types, one of 01 03 04 05 06 07 08. If not specified, it will be derived from the "type".
01
03
04
05
06
07
08
type
Enum, "CreditCardType" in Net::Async::Webservice::UPS::Types, one of AMEX Discover MasterCard Optima VISA Bravo Diners. If not specified, it will be derived from the "code".
AMEX
Discover
MasterCard
Optima
VISA
Bravo
Diners
number
Required string, the card number.
expiration_year
Required integer, the year of expiration.
expiration_month
Required integer, the month of expiration.
security_code
Optional string, the card's security code (CVV2 or equivalent).
address
Required, instance of Net::Async::Webservice::UPS::Address, the billing address associated with the credit card.
as_hash
Returns a hashref that, when passed through XML::Simple, will produce the XML fragment needed in UPS requests to represent this credit card.
cache_id
Returns a string identifying this card.
type_for_code
my $code = Net::Async::Webservice::UPS::CreditCard::type_for_code(2);
Function that returns the credit card type name given the code number.
Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>
Sherzod B. Ruzmetov <sherzodr@cpan.org>
This software is copyright (c) 2014 by Net-a-porter.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Async::Webservice::UPS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Webservice::UPS
CPAN shell
perl -MCPAN -e shell install Net::Async::Webservice::UPS
For more information on module installation, please visit the detailed CPAN module installation guide.