lib/WebService/Braintree/SettlementBatchSummaryGateway.pm

filter: Statementstmt 80.9% 17 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 73.3% 22 / 30 CC 2 SCAR 8.9
CC
2
Cov
74%
generate
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« lib/WebService/Braintree/CustomerGateway.pm ↑ Summary lib/WebService/Braintree/_/Disbursement.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package # hide from pause
4 WebService::Braintree::SettlementBatchSummaryGateway;
5  
6 22 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 22 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 22 with 'WebService::Braintree::Role::MakeRequest';
11  
12 22 ▶use Carp qw(confess);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 22 ▶use WebService::Braintree::_::SettlementBatchSummary;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶sub generate {
Subroutine generate: not called CC=2 SCAR=17.9
Pod undocumented
17 0 my ($self, $settlement_date, $group_by_custom_field) = @_;
18 0 my $params = {
19 settlement_date => $settlement_date
20 };
21 0 ▶ $params->{group_by_custom_field} = $group_by_custom_field if $group_by_custom_field;
Branch: 1 branch
BranchTrueFalseTotal
if $group_by_custom_field 0 0 0
22  
23 0 $self->_make_request("/settlement_batch_summary/", "post", {settlement_batch_summary => $params});
24 }
25  
26 22 __PACKAGE__->meta->make_immutable;
27  
28 22 1;
29 __END__
« lib/WebService/Braintree/CustomerGateway.pm ↑ Summary lib/WebService/Braintree/_/Disbursement.pm »