The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Async::Webservice::UPS::Types - type library for UPS

VERSION

version 0.09_3

DESCRIPTION

This Type::Library declares a few type constraints and coercions for use with Net::Async::Webservice::UPS.

TYPES

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

CustomerClassification

Enum, one of WHOLESALE OCCASIONAL RETAIL

RequestMode

Enum, one of rate shop

ServiceCode

Enum, one of 01 02 03 07 08 11 12 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

PackagingType

Enum, one of LETTER PACKAGE TUBE UPS_PAK UPS_EXPRESS_BOX UPS_25KG_BOX UPS_10KG_BOX

MeasurementSystem

Enum, one of metric english.

MeasurementUnit

Enum, one of 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.

Cacheable

Duck type, any object with a cache_id method.

AsyncUserAgent

Duck type, any object with a do_request and POST methods. Coerced from "UserAgent" via Net::Async::Webservice::UPS::SyncAgentWrapper.

UserAgent

Duck type, any object with a request and post methods.

AUTHORS

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

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

COPYRIGHT AND LICENSE

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.