NAME

Net::Async::Webservice::UPS::CreditCard - a credit card to pay UPS shipments with

VERSION

version 1.1.4

ATTRIBUTES

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".

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".

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.

METHODS

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.

FUNCTIONS

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.

AUTHORS

  • Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>

  • Sherzod B. Ruzmetov <sherzodr@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Gianni Ceccarelli <gianni.ceccarelli@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.