File Coverage

blib/lib/WebService/Braintree/SettlementBatchSummaryGateway.pm
Criterion Covered Total %
statement 6 10 60.0
branch 0 2 0.0
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 16 50.0


line stmt bran cond sub pod time code
1             package WebService::Braintree::SettlementBatchSummaryGateway;
2             $WebService::Braintree::SettlementBatchSummaryGateway::VERSION = '0.92';
3 1     1   7 use Moose;
  1         2  
  1         6  
4             with 'WebService::Braintree::Role::MakeRequest';
5 1     1   5593 use Carp qw(confess);
  1         3  
  1         113  
6              
7             has 'gateway' => (is => 'ro');
8              
9             sub generate {
10 0     0 0   my ($self, $settlement_date, $group_by_custom_field) = @_;
11 0           my $params = {
12             settlement_date => $settlement_date
13             };
14 0 0         $params->{group_by_custom_field} = $group_by_custom_field if $group_by_custom_field;
15              
16 0           $self->_make_request("/settlement_batch_summary/", "post", {settlement_batch_summary => $params});
17             }
18              
19             __PACKAGE__->meta->make_immutable;
20             1;
21