| 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
| |||||||||||
| 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; | |||||||||