File Coverage

blib/lib/WebService/PayPal/PaymentsAdvanced/Role/HasPayPal.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package WebService::PayPal::PaymentsAdvanced::Role::HasPayPal;
2              
3 6     6   3391 use Moo::Role;
  6         22  
  6         50  
4              
5 6     6   2038 use namespace::autoclean;
  6         17  
  6         40  
6              
7             our $VERSION = '0.000027';
8              
9 6     6   700 use Types::Common::String qw( NonEmptyStr );
  6         21  
  6         57  
10              
11             has reference_transaction_id => (
12             is => 'lazy',
13             isa => NonEmptyStr,
14             init_arg => undef,
15             default => sub { shift->params->{BAID} },
16             );
17              
18             1;
19              
20             # ABSTRACT: Role which provides methods specifically for PayPal transactions
21              
22             __END__
23              
24             =pod
25              
26             =encoding UTF-8
27              
28             =head1 NAME
29              
30             WebService::PayPal::PaymentsAdvanced::Role::HasPayPal - Role which provides methods specifically for PayPal transactions
31              
32             =head1 VERSION
33              
34             version 0.000027
35              
36             =head1 METHODS
37              
38             =head2 reference_transaction_id
39              
40             The id you will use in order to use this as a reference transaction (C<BAID>).
41              
42             =head1 SUPPORT
43              
44             Bugs may be submitted through L<https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues>.
45              
46             =head1 AUTHOR
47              
48             Olaf Alders <olaf@wundercounter.com>
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             This software is copyright (c) 2021 by MaxMind, Inc.
53              
54             This is free software; you can redistribute it and/or modify it under
55             the same terms as the Perl 5 programming language system itself.
56              
57             =cut