Braintree/SettlementBatchSummaryGateway.pm

filter: Statementstmt 50.0% 8 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 1 totaltotal 43.4% 10 / 23 CC 2 SCAR 11.6
CC
2
Cov
44%
generate
6.0
_make_request
2.0
BEGIN
1.0
CRAP 3.2
« Braintree/CreditCardVerificationGateway.pm ↑ Summary Braintree/SubscriptionGateway.pm »
1 package Net::Braintree::SettlementBatchSummaryGateway;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Carp qw(confess);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 has 'gateway' => (is => 'ro');
6  
7 0 ▶sub generate {
Subroutine generate: not called CC=2 SCAR=17.9
Pod undocumented
8 0 my ($self, $settlement_date, $group_by_custom_field) = @_;
9 0 my $params = {
10 settlement_date => $settlement_date
11 };
12 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
13  
14 0 $self->_make_request("/settlement_batch_summary/", "post", {settlement_batch_summary => $params});
15 }
16  
17 0 ▶sub _make_request {
Subroutine _make_request: not called CC=1 SCAR=6.9
18 0 my($self, $path, $verb, $params) = @_;
19 0 my $response = $self->gateway->http->$verb($path, $params);
20 0 my $result = Net::Braintree::Result->new(response => $response);
21 0 return $result;
22 }
23  
24 1 1;
« Braintree/CreditCardVerificationGateway.pm ↑ Summary Braintree/SubscriptionGateway.pm »