PaymentsAdvanced/Role/HasTokens.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PaymentsAdvanced/Role/HasParams.pm ↑ Summary PaymentsAdvanced/Role/HasUA.pm »
1 package WebService::PayPal::PaymentsAdvanced::Role::HasTokens;
2  
3 7 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 7 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 7 our $VERSION = '0.000028';
8  
9 7 ▶use Types::Common::String qw( NonEmptyStr );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 7 has secure_token => (
12 is => 'lazy',
13 isa => NonEmptyStr,
14 init_arg => undef,
15 );
16  
17 7 has secure_token_id => (
18 is => 'lazy',
19 isa => NonEmptyStr,
20 init_arg => undef,
21 );
22  
23 9 ▶sub _build_secure_token {
Subroutine _build_secure_token: called CC=1 SCAR=0.0
24 9 my $self = shift;
25 9 return $self->params->{SECURETOKEN};
26 }
27  
28 9 ▶sub _build_secure_token_id {
Subroutine _build_secure_token_id: called CC=1 SCAR=0.0
29 9 my $self = shift;
30 9 return $self->params->{SECURETOKENID};
31 }
32  
33 7 1;
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 WebService::PayPal::PaymentsAdvanced::Role::HasTokens - Provides roles for dealing with secure tokens
42  
43 =head1 VERSION
44  
45 version 0.000028
46  
47 =head2 secure_token
48  
49 Returns C<SECURETOKEN> param
50  
51 =head2 secure_token_id
52  
53 Returns C<SECURETOKENID> param
54  
55 =head1 SUPPORT
56  
57 Bugs may be submitted through L<https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues>.
58  
59 =head1 AUTHOR
60  
61 Olaf Alders <olaf@wundercounter.com>
62  
63 =head1 COPYRIGHT AND LICENSE
64  
65 This software is copyright (c) 2022 by MaxMind, Inc.
66  
67 This is free software; you can redistribute it and/or modify it under
68 the same terms as the Perl 5 programming language system itself.
69  
70 =cut
71  
72 __END__
« PaymentsAdvanced/Role/HasParams.pm ↑ Summary PaymentsAdvanced/Role/HasUA.pm »