lib/WebService/Braintree/CreditCardVerificationSearch.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/CreditCard/Prepaid.pm ↑ Summary lib/WebService/Braintree/CustomerSearch.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::CreditCardVerificationSearch;
4 22 $WebService::Braintree::CreditCardVerificationSearch::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::CreditCardVerificationSearch
11  
12 =head1 PURPOSE
13  
14 This class represents a search for credit card verifications.
15  
16 =cut
17  
18 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 22 with 'WebService::Braintree::Role::AdvancedSearch';
20  
21 22 ▶use constant FIELDS => [];
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 22 ▶use WebService::Braintree::CreditCard::CardType;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 =head1 FIELDS
26  
27 =cut
28  
29 =head2 id
30  
31 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to a specific id.
32  
33 =cut
34  
35 22 __PACKAGE__->text_field('id');
36  
37 =head2 ids
38  
39 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of
40 specific ids.
41  
42 =cut
43  
44 22 __PACKAGE__->multiple_values_field('ids');
45  
46 =head2 credit_card_cardholder_name
47  
48 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to verifications for credit
49 cards with a specific cardholder name.
50  
51 =cut
52  
53 22 __PACKAGE__->text_field('credit_card_cardholder_name');
54  
55 =head2 credit_card_expiration_date
56  
57 This is an L<equality field|WebService::Braintree::AdvancedSearchNodes/"Equality Field">. It will restrict the search to verifications for
58 credit cards with a specific expiration date.
59  
60 =cut
61  
62 22 __PACKAGE__->equality_field('credit_card_expiration_date');
63  
64 =head2 credit_card_number
65  
66 This is a L<partial-match field|WebService::Braintree::AdvancedSearchNodes/"Partial Match Field">. It will restrict the search to verifications for
67 credit cards with a specific card number.
68  
69 =cut
70  
71 22 __PACKAGE__->partial_match_field('credit_card_number');
72  
73 =head2 credit_card_card_type
74  
75 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to verifications
76 for credit cards within the list of provided card types. The card types must be
77 within L<this list|WebService::Braintree::CreditCard::CardType/All>.
78  
79 =cut
80  
81 22 __PACKAGE__->multiple_values_field('credit_card_card_type', @{WebService::Braintree::CreditCard::CardType::All()});
82  
83 =head2 created_at
84  
85 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to verifications created
86 between the two dates.
87  
88 =cut
89  
90 22 __PACKAGE__->range_field('created_at');
91  
92 22 __PACKAGE__->meta->make_immutable;
93  
94 22 1;
95 __END__
« lib/WebService/Braintree/CreditCard/Prepaid.pm ↑ Summary lib/WebService/Braintree/CustomerSearch.pm »