| 1 | package Net::Async::Webservice::UPS::Response::QV::Reference; | ||||||||||
| 2 | 1 | $Net::Async::Webservice::UPS::Response::QV::Reference::VERSION = '1.1.4'; | |||||||||
| 3 | { | ||||||||||
| 4 | 1 | $Net::Async::Webservice::UPS::Response::QV::Reference::DIST = 'Net-Async-Webservice-UPS'; | |||||||||
| 5 | } | ||||||||||
| 6 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Types::Standard qw(Str ArrayRef HashRef); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Net::Async::Webservice::UPS::Types qw(:types); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Net::Async::Webservice::UPS::Response::Utils qw(:all); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | # ABSTRACT: a Quantum View package or shipment reference | ||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | 1 | has number => ( | |||||||||
| 16 | is => 'ro', | ||||||||||
| 17 | isa => Str, | ||||||||||
| 18 | ); | ||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | 1 | has code => ( | |||||||||
| 22 | is => 'ro', | ||||||||||
| 23 | isa => Str, | ||||||||||
| 24 | ); | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 1 | has value => ( | |||||||||
| 28 | is => 'ro', | ||||||||||
| 29 | isa => Str, | ||||||||||
| 30 | ); | ||||||||||
| 31 | |||||||||||
| 32 | 2 | ▶ | sub BUILDARGS { | ||||||||
|
Subroutine
BUILDARGS: called CC=3 SCAR=13.0
Pod
undocumented
| |||||||||||
| 33 | 2 | my ($class,$hashref) = @_; | |||||||||
| 34 | 0 | ▶ | if (@_>2) { shift; $hashref={@_} }; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | |||||||||||
| 36 | 2 | ▶ | if ($hashref->{Number}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | 2 | set_implied_argument($hashref); | |||||||||
| 38 | return { | ||||||||||
| 39 | 2 | in_if(number=>'Number'), | |||||||||
| 40 | in_if(code=>'Code'), | ||||||||||
| 41 | in_if(value=>'Value'), | ||||||||||
| 42 | }; | ||||||||||
| 43 | } | ||||||||||
| 44 | 0 | return $hashref; | |||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 1 | 1; | |||||||||
| 48 | |||||||||||
| 49 | __END__ | ||||||||||