lib/WebService/Braintree/PaymentMethodNonce.pm

filter: Statementstmt 75.0% 12 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 73.9% 17 / 23 CC 1 SCAR 3.4
CC
1
Cov
75%
create
2.0
find
2.0
BEGIN
1.0
CRAP 1.4
« lib/WebService/Braintree/Subscription.pm ↑ Summary lib/WebService/Braintree/_/Transaction/MasterpassCardDetail.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::PaymentMethodNonce;
4 22 $WebService::Braintree::PaymentMethodNonce::VERSION = '1.7';
5 22 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 22 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 WebService::Braintree::PaymentMethodNonce
11  
12 =head1 PURPOSE
13  
14 This class creates and finds payment method nonces.
15  
16 =head1 EXPLANATION
17  
18 TODO
19  
20 =cut
21  
22 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 22 with 'WebService::Braintree::Role::Interface';
25  
26 =head1 CLASS METHODS
27  
28 =head2 create()
29  
30 This method takes a token and creates a payment method nonce.
31  
32 =cut
33  
34 0 ▶sub create {
Subroutine create: not called CC=1 SCAR=6.9
Pod documented
35 0 my ($class, $token) = @_;
36 0 $class->gateway->payment_method_nonce->create($token);
37 }
38  
39 =head2 find()
40  
41 This method takes a token and finds the related payment method nonce (if any).
42  
43 =cut
44  
45 0 ▶sub find {
Subroutine find: not called CC=1 SCAR=6.9
Pod documented
46 0 my ($class, $token) = @_;
47 0 $class->gateway->payment_method_nonce->find($token);
48 }
49  
50 22 __PACKAGE__->meta->make_immutable;
51  
52 22 1;
53 __END__
« lib/WebService/Braintree/Subscription.pm ↑ Summary lib/WebService/Braintree/_/Transaction/MasterpassCardDetail.pm »