| 1 | package Net::Async::Webservice::UPS::Response::QV::File; | ||||||||||
| 2 | 1 | $Net::Async::Webservice::UPS::Response::QV::File::VERSION = '1.1.4'; | |||||||||
| 3 | { | ||||||||||
| 4 | 1 | $Net::Async::Webservice::UPS::Response::QV::File::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 ':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 "file" | ||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | 1 | has filename => ( | |||||||||
| 16 | is => 'ro', | ||||||||||
| 17 | isa => Str, | ||||||||||
| 18 | required => 1, | ||||||||||
| 19 | ); | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 1 | has status => ( | |||||||||
| 23 | is => 'ro', | ||||||||||
| 24 | isa => HashRef, | ||||||||||
| 25 | required => 0, | ||||||||||
| 26 | ); | ||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | 1 | has origins => ( | |||||||||
| 30 | is => 'ro', | ||||||||||
| 31 | isa => ArrayRef[QVOrigin], | ||||||||||
| 32 | required => 0, | ||||||||||
| 33 | ); | ||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | 1 | has generics => ( | |||||||||
| 37 | is => 'ro', | ||||||||||
| 38 | isa => ArrayRef[QVGeneric], | ||||||||||
| 39 | required => 0, | ||||||||||
| 40 | ); | ||||||||||
| 41 | |||||||||||
| 42 | |||||||||||
| 43 | 1 | has manifests => ( | |||||||||
| 44 | is => 'ro', | ||||||||||
| 45 | isa => ArrayRef[QVManifest], | ||||||||||
| 46 | required => 0, | ||||||||||
| 47 | ); | ||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | 1 | has deliveries => ( | |||||||||
| 51 | is => 'ro', | ||||||||||
| 52 | isa => ArrayRef[QVDelivery], | ||||||||||
| 53 | required => 0, | ||||||||||
| 54 | ); | ||||||||||
| 55 | |||||||||||
| 56 | |||||||||||
| 57 | 1 | has exceptions => ( | |||||||||
| 58 | is => 'ro', | ||||||||||
| 59 | isa => ArrayRef[QVException], | ||||||||||
| 60 | required => 0, | ||||||||||
| 61 | ); | ||||||||||
| 62 | |||||||||||
| 63 | 8 | ▶ | sub BUILDARGS { | ||||||||
|
Subroutine
BUILDARGS: called CC=3 SCAR=13.0
Pod
undocumented
| |||||||||||
| 64 | 8 | my ($class,$hashref) = @_; | |||||||||
| 65 | 0 | ▶ | if (@_>2) { shift; $hashref={@_} }; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 66 | |||||||||||
| 67 | 8 | ▶ | if ($hashref->{FileName}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 68 | 8 | set_implied_argument($hashref); | |||||||||
| 69 | |||||||||||
| 70 | return { | ||||||||||
| 71 | 8 | in_if(filename => 'FileName'), | |||||||||
| 72 | in_if(status => 'StatusType'), | ||||||||||
| 73 | in_object_array_if(origins=>'Origin','Net::Async::Webservice::UPS::Response::QV::Origin'), | ||||||||||
| 74 | in_object_array_if(generics=>'Generic','Net::Async::Webservice::UPS::Response::QV::Generic'), | ||||||||||
| 75 | in_object_array_if(deliveries=>'Delivery','Net::Async::Webservice::UPS::Response::QV::Delivery'), | ||||||||||
| 76 | # Manifests are not yet supported | ||||||||||
| 77 | #in_object_array_if(manifests=>'Manifest','Net::Async::Webservice::UPS::Response::QV::Manifest'), | ||||||||||
| 78 | in_object_array_if(exceptions=>'Exception','Net::Async::Webservice::UPS::Response::QV::Exception'), | ||||||||||
| 79 | }; | ||||||||||
| 80 | } | ||||||||||
| 81 | 0 | return $hashref; | |||||||||
| 82 | } | ||||||||||
| 83 | |||||||||||
| 84 | 1 | 1; | |||||||||
| 85 | |||||||||||
| 86 | __END__ | ||||||||||