line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Async::Webservice::DHL::Types; |
2
|
|
|
|
|
|
|
$Net::Async::Webservice::DHL::Types::VERSION = '1.2.1'; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
$Net::Async::Webservice::DHL::Types::DIST = 'Net-Async-Webservice-DHL'; |
5
|
|
|
|
|
|
|
} |
6
|
4
|
|
|
4
|
|
23
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
172
|
|
7
|
4
|
|
|
4
|
|
16
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
190
|
|
8
|
|
|
|
|
|
|
use Type::Library |
9
|
4
|
|
|
|
|
32
|
-base, |
10
|
4
|
|
|
4
|
|
18
|
-declare => qw( Address RouteType CountryCode RegionCode ); |
|
4
|
|
|
|
|
5
|
|
11
|
4
|
|
|
4
|
|
4192
|
use Type::Utils -all; |
|
4
|
|
|
|
|
12776
|
|
|
4
|
|
|
|
|
41
|
|
12
|
4
|
|
|
4
|
|
10019
|
use Types::Standard -types; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
32
|
|
13
|
4
|
|
|
4
|
|
17169
|
use namespace::autoclean; |
|
4
|
|
|
|
|
47186
|
|
|
4
|
|
|
|
|
22
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# ABSTRACT: type library for DHL |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
class_type Address, { class => 'Net::Async::Webservice::DHL::Address' }; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
enum RouteType, [qw(O D)]; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
declare CountryCode, as Str, where { length($_) == 2 }; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
enum RegionCode, [qw(AP EU AM)]; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Net::Async::Webservice::DHL::Types - type library for DHL |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 1.2.1 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This L<Type::Library> declares a few type constraints and coercions |
45
|
|
|
|
|
|
|
for use with L<Net::Async::Webservice::DHL>. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 TYPES |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 C<Address> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Instance of L<Net::Async::Webservice::DHL::Address>. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Net-a-porter. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
62
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |