| 1 | package Net::Async::Webservice::DHL::Types; | ||
| 2 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | use Type::Library | ||
| 5 | 4 | ▶ | -base, |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | -declare => qw( Address RouteType CountryCode RegionCode ); | |
| 7 | 4 | ▶ | use Type::Utils -all; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 4 | ▶ | use Types::Standard -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | our $VERSION = '1.2.2'; # VERSION | |
| 11 | |||
| 12 | # ABSTRACT: type library for DHL | ||
| 13 | |||
| 14 | |||
| 15 | 4 | class_type Address, { class => 'Net::Async::Webservice::DHL::Address' }; | |
| 16 | |||
| 17 | 4 | enum RouteType, [qw(O D)]; | |
| 18 | |||
| 19 | 8 | ▶ | declare CountryCode, as Str, where { length == 2 }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 4 | enum RegionCode, [qw(AP EU AM)]; | |
| 22 | |||
| 23 | 4 | 1; | |
| 24 | |||
| 25 | __END__ | ||