File Coverage

blib/lib/Net/Braintree/CreditCardVerificationSearch.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 15 80.0


line stmt bran cond sub pod time code
1             package Net::Braintree::CreditCardVerificationSearch;
2 1     1   5 use Moose;
  1         2  
  1         5  
3 1     1   3851 use Net::Braintree::CreditCard::CardType;
  1         3  
  1         22  
4 1     1   4 use Net::Braintree::AdvancedSearch qw(search_to_hash);
  1         1  
  1         129  
5             my $meta = __PACKAGE__->meta();
6              
7             my $field = Net::Braintree::AdvancedSearchFields->new(metaclass => $meta);
8             $field->text("id");
9             $field->text("credit_card_cardholder_name");
10             $field->equality("credit_card_expiration_date");
11             $field->partial_match("credit_card_number");
12             $field->multiple_values("ids");
13              
14             $field->multiple_values("credit_card_card_type", @{Net::Braintree::CreditCard::CardType::All()});
15              
16             $field->range("created_at");
17              
18             sub to_hash {
19 0     0 0   Net::Braintree::AdvancedSearch->search_to_hash(shift);
20             }
21              
22             1;