line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::PayPal::PaymentsAdvanced::Role::HasTokens; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
5212
|
use Moo::Role; |
|
7
|
|
|
|
|
163
|
|
|
7
|
|
|
|
|
62
|
|
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
2829
|
use namespace::autoclean; |
|
7
|
|
|
|
|
18
|
|
|
7
|
|
|
|
|
62
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.000028'; |
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
728
|
use Types::Common::String qw( NonEmptyStr ); |
|
7
|
|
|
|
|
20
|
|
|
7
|
|
|
|
|
77
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has secure_token => ( |
12
|
|
|
|
|
|
|
is => 'lazy', |
13
|
|
|
|
|
|
|
isa => NonEmptyStr, |
14
|
|
|
|
|
|
|
init_arg => undef, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has secure_token_id => ( |
18
|
|
|
|
|
|
|
is => 'lazy', |
19
|
|
|
|
|
|
|
isa => NonEmptyStr, |
20
|
|
|
|
|
|
|
init_arg => undef, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub _build_secure_token { |
24
|
9
|
|
|
9
|
|
1178
|
my $self = shift; |
25
|
9
|
|
|
|
|
157
|
return $self->params->{SECURETOKEN}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _build_secure_token_id { |
29
|
9
|
|
|
9
|
|
860
|
my $self = shift; |
30
|
9
|
|
|
|
|
161
|
return $self->params->{SECURETOKENID}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
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__ |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
# ABSTRACT: Provides roles for dealing with secure tokens |
75
|
|
|
|
|
|
|
|