Net::Async::Webservice::UPS::Types - type library for UPS
version 0.09_3
This Type::Library declares a few type constraints and coercions for use with Net::Async::Webservice::UPS.
PickupType
Enum, one of DAILY_PICKUP DAILY CUSTOMER_COUNTER ONE_TIME_PICKUP ONE_TIME ON_CALL_AIR SUGGESTED_RETAIL SUGGESTED_RETAIL_RATES LETTER_CENTER AIR_SERVICE_CENTER
E
DAILY_PICKUP
DAILY
CUSTOMER_COUNTER
ONE_TIME_PICKUP
ONE_TIME
ON_CALL_AIR
SUGGESTED_RETAIL
SUGGESTED_RETAIL_RATES
LETTER_CENTER
AIR_SERVICE_CENTER
CustomerClassification
Enum, one of WHOLESALE OCCASIONAL RETAIL
WHOLESALE
OCCASIONAL
RETAIL
RequestMode
Enum, one of rate shop
rate
shop
ServiceCode
Enum, one of 01 02 03 07 08 11 12 12 13 14 54 59 65 86 85 83 82
01
02
03
07
08
11
12
13
14
54
59
65
86
85
83
82
ServiceLabel
Enum, one of NEXT_DAY_AIR 2ND_DAY_AIR GROUND WORLDWIDE_EXPRESS WORLDWIDE_EXPEDITED STANDARD 3_DAY_SELECT 3DAY_SELECT NEXT_DAY_AIR_SAVER NEXT_DAY_AIR_EARLY_AM WORLDWIDE_EXPRESS_PLUS 2ND_DAY_AIR_AM SAVER TODAY_EXPRESS_SAVER TODAY_EXPRESS TODAY_DEDICATED_COURIER TODAY_STANDARD
NEXT_DAY_AIR
2ND_DAY_AIR
GROUND
WORLDWIDE_EXPRESS
WORLDWIDE_EXPEDITED
STANDARD
3_DAY_SELECT
3DAY_SELECT
NEXT_DAY_AIR_SAVER
NEXT_DAY_AIR_EARLY_AM
WORLDWIDE_EXPRESS_PLUS
2ND_DAY_AIR_AM
SAVER
TODAY_EXPRESS_SAVER
TODAY_EXPRESS
TODAY_DEDICATED_COURIER
TODAY_STANDARD
PackagingType
Enum, one of LETTER PACKAGE TUBE UPS_PAK UPS_EXPRESS_BOX UPS_25KG_BOX UPS_10KG_BOX
LETTER
PACKAGE
TUBE
UPS_PAK
UPS_EXPRESS_BOX
UPS_25KG_BOX
UPS_10KG_BOX
MeasurementSystem
Enum, one of metric english.
metric
english
MeasurementUnit
Enum, one of LBS KGS IN CM
LBS
KGS
IN
CM
Currency
String.
Measure
Non-negative number.
Tolerance
Number between 0 and 1.
Address
Instance of Net::Async::Webservice::UPS::Address, with automatic coercion from string (interpreted as a US postal code).
Package
Instance of Net::Async::Webservice::UPS::Package.
PackageList
Array ref of packages, with automatic coercion from a single package to a singleton array.
Service
Instance of Net::Async::Webservice::UPS::Service, with automatic coercion from string (interpreted as a service label).
Rate
Instance of Net::Async::Webservice::UPS::Rate.
RateList
Array ref of rates, with automatic coercion from a single rate to a singleton array.
Cache
Duck type, any object with a get and a set method.
get
set
Cacheable
Duck type, any object with a cache_id method.
cache_id
AsyncUserAgent
Duck type, any object with a do_request and POST methods. Coerced from "UserAgent" via Net::Async::Webservice::UPS::SyncAgentWrapper.
do_request
POST
UserAgent
Duck type, any object with a request and post methods.
request
post
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.