File Coverage

lib/WebService/Braintree/CustomerSearch.pm
Criterion Covered Total %
statement 11 12 91.6
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 15 18 83.3


line stmt bran cond sub pod time code
1             package WebService::Braintree::CustomerSearch;
2             $WebService::Braintree::CustomerSearch::VERSION = '0.94';
3 20     20   346 use 5.010_001;
  20         65  
4 20     20   97 use strictures 1;
  20         118  
  20         694  
5              
6 20     20   1756 use Moose;
  20         31  
  20         99  
7 20     20   118095 use WebService::Braintree::AdvancedSearch;
  20         41  
  20         3293  
8              
9             my $field = WebService::Braintree::AdvancedSearchFields->new(metaclass => __PACKAGE__->meta);
10             $field->text("address_country_name");
11             $field->text("address_extended_address");
12             $field->text("address_first_name");
13             $field->text("address_last_name");
14             $field->text("address_locality");
15             $field->text("address_postal_code");
16             $field->text("address_region");
17             $field->text("address_street_address");
18             $field->text("cardholder_name");
19             $field->text("company");
20             $field->text("email");
21             $field->text("fax");
22             $field->text("first_name");
23             $field->text("id");
24             $field->text("last_name");
25             $field->text("payment_method_token");
26             $field->text("paypal_account_email");
27             $field->text("phone");
28             $field->text("website");
29              
30             $field->is("payment_method_token_with_duplicates");
31             $field->equality("credit_card_expiration_date");
32             $field->partial_match("credit_card_number");
33             $field->multiple_values("ids");
34             $field->range("created_at");
35              
36             sub to_hash {
37 0     0 0   WebService::Braintree::AdvancedSearch->search_to_hash(shift);
38             }
39              
40             __PACKAGE__->meta->make_immutable;
41              
42             1;
43             __END__