| 1 | package Net::Async::Webservice::UPS::Shipper; | ||||||||||||
| 2 | 5 | $Net::Async::Webservice::UPS::Shipper::VERSION = '1.1.4'; | |||||||||||
| 3 | { | ||||||||||||
| 4 | 5 | $Net::Async::Webservice::UPS::Shipper::DIST = 'Net-Async-Webservice-UPS'; | |||||||||||
| 5 | } | ||||||||||||
| 6 | 5 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 5 | ▶ | use 5.010; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 5 | ▶ | use Types::Standard qw(Str); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 5 | ▶ | use Net::Async::Webservice::UPS::Types ':types'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 5 | extends 'Net::Async::Webservice::UPS::Contact'; | |||||||||||
| 11 | 5 | ▶ | use namespace::autoclean; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | |||||||||||||
| 13 | # ABSTRACT: a contact with an account number | ||||||||||||
| 14 | |||||||||||||
| 15 | |||||||||||||
| 16 | 5 | has account_number => ( | |||||||||||
| 17 | is => 'ro', | ||||||||||||
| 18 | isa => Str, | ||||||||||||
| 19 | ); | ||||||||||||
| 20 | |||||||||||||
| 21 | |||||||||||||
| 22 | 6 | ▶ | sub as_hash { | ||||||||||
|
Subroutine
as_hash: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||
| 23 | 6 | my ($self,$shape) = @_; | |||||||||||
| 24 | |||||||||||||
| 25 | 6 | my $ret = $self->next::method($shape); | |||||||||||
| 26 | 6 | ▶ | if ($self->account_number) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 27 | 6 | $ret->{ShipperNumber} = $self->account_number; | |||||||||||
| 28 | } | ||||||||||||
| 29 | 6 | return $ret; | |||||||||||
| 30 | } | ||||||||||||
| 31 | |||||||||||||
| 32 | |||||||||||||
| 33 | 0 | ▶ | sub cache_id { | ||||||||||
|
Subroutine
cache_id: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 34 | 0 | my ($self) = @_; | |||||||||||
| 35 | |||||||||||||
| 36 | 0 | ▶ | return join ':', | ||||||||||
|
Condition0%0/2
$self->account_number || ''
MC/DC0%0/1
$self->account_number || ''
$self->account_number
Truth table0%0/2
A
A= $self->account_number
| |||||||||||||
| 37 | ($self->account_number||''), | ||||||||||||
| 38 | $self->address->cache_id; | ||||||||||||
| 39 | } | ||||||||||||
| 40 | |||||||||||||
| 41 | 5 | 1; | |||||||||||
| 42 | |||||||||||||
| 43 | __END__ | ||||||||||||