| 1 | package WWW::PayPal::Webhook; | ||||||||||||
| 2 | |||||||||||||
| 3 | # ABSTRACT: PayPal webhook (endpoint subscription) entity | ||||||||||||
| 4 | |||||||||||||
| 5 | 3 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 3 | ▶ | use namespace::clean; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 3 | our $VERSION = '0.003'; | |||||||||||
| 9 | |||||||||||||
| 10 | |||||||||||||
| 11 | 3 | has _client => ( | |||||||||||
| 12 | is => 'ro', | ||||||||||||
| 13 | required => 1, | ||||||||||||
| 14 | weak_ref => 1, | ||||||||||||
| 15 | init_arg => 'client', | ||||||||||||
| 16 | ); | ||||||||||||
| 17 | |||||||||||||
| 18 | 3 | has data => ( is => 'rw', required => 1 ); | |||||||||||
| 19 | |||||||||||||
| 20 | |||||||||||||
| 21 | 3 | ▶ | sub id { $_[0]->data->{id} } | ||||||||||
|
Subroutine
id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 22 | 1 | ▶ | sub url { $_[0]->data->{url} } | ||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 23 | |||||||||||||
| 24 | |||||||||||||
| 25 | 2 | ▶ | sub event_names { | ||||||||||
|
Subroutine
event_names: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||
| 26 | 2 | my ($self) = @_; | |||||||||||
| 27 | 2 | ▶ | return map { $_->{name} } @{ $self->data->{event_types} || [] }; | ||||||||||
|
Condition100%2/2
$self->data->{'event_types'} || []
MC/DC100%1/1
$self->data->{'event_types'} || []
$self->data->{'event_types'}
Truth table100%2/2
A
A= $self->data->{'event_types'}
| |||||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | |||||||||||||
| 31 | |||||||||||||
| 32 | 3 | 1; | |||||||||||
| 33 | |||||||||||||
| 34 | __END__ | ||||||||||||