lib/WebService/Braintree/CreditCardVerification.pm

filter: Statementstmt 60.0% 12 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 100% 4 / 4 totaltotal 61.2% 19 / 31 CC 1 SCAR 4.5
CC
1
Cov
60%
search
2.0
all
2.0
find
2.0
CRAP 1.6
« lib/WebService/Braintree/ValidationErrorCollection.pm ↑ Summary lib/WebService/Braintree/Dispute.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::CreditCardVerification;
4 22 $WebService::Braintree::CreditCardVerification::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::CreditCardVerification
11  
12 =head1 PURPOSE
13  
14 This class searches, lists, and finds credit card verifications.
15  
16 =cut
17  
18 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 22 with 'WebService::Braintree::Role::Interface';
21  
22 =head1 CLASS METHODS
23  
24 =head2 search()
25  
26 This takes a subref which is used to set the search parameters and returns a
27 L<collection|WebService::Braintree::ResourceCollection> of the matching
28 L<verifications|WebService::Braintree::_::CreditCardVerification>.
29  
30 Please see L<Searching|WebService::Braintree/SEARCHING> for more information on
31 the subref and how it works.
32  
33 Please see L<WebService::Braintree::CreditCardVerificationSearch> for more
34 information on what specfic fields you can set for this method.
35  
36 =cut
37  
38 0 ▶sub search {
Subroutine search: not called CC=1 SCAR=6.9
Pod documented
39 0 my ($class, $block) = @_;
40 0 $class->gateway->verification->search($block);
41 }
42  
43 =head2 all()
44  
45 This returns a L<collection|WebService::Braintree::ResourceCollection> of all
46 L<verifications|WebService::Braintree::_::CreditCardVerification>.
47  
48 =cut
49  
50 0 ▶sub all {
Subroutine all: not called CC=1 SCAR=6.9
Pod documented
51 0 my $class = shift;
52 0 $class->gateway->verification->all;
53 }
54  
55 =head2 find()
56  
57 This takes a token and returns a L<response|WebService::Braintee::Result> with
58 the C<< credit_card_verification() >> set (if found).
59  
60 =cut
61  
62 0 ▶sub find {
Subroutine find: not called CC=1 SCAR=6.9
Pod documented
63 0 my ($class, $token) = @_;
64 0 $class->gateway->verification->find($token);
65 }
66  
67 =head2 create()
68  
69 This takes a hashref of parameters and returns a L<response|WebService::Braintee::Result> with the C<< credit_card_verification() >> set.
70  
71 =cut
72  
73 0 ▶sub create {
Subroutine create: not called CC=1 SCAR=6.9
Pod documented
74 0 my ($class, $params) = @_;
75 0 $class->gateway->verification->create($params);
76 }
77  
78 22 __PACKAGE__->meta->make_immutable;
79  
80 22 1;
81 __END__
« lib/WebService/Braintree/ValidationErrorCollection.pm ↑ Summary lib/WebService/Braintree/Dispute.pm »