line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Braintree::SettlementBatchSummary; |
2
|
|
|
|
|
|
|
$WebService::Braintree::SettlementBatchSummary::VERSION = '0.94'; |
3
|
20
|
|
|
20
|
|
399
|
use 5.010_001; |
|
20
|
|
|
|
|
67
|
|
4
|
20
|
|
|
20
|
|
104
|
use strictures 1; |
|
20
|
|
|
|
|
126
|
|
|
20
|
|
|
|
|
699
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
WebService::Braintree::SettlementBatchSummary |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 PURPOSE |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
This class generates settlement batch summaries. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 EXPLANATION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
TODO |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
|
20
|
20
|
|
|
20
|
|
2003
|
use Moose; |
|
20
|
|
|
|
|
41
|
|
|
20
|
|
|
|
|
116
|
|
21
|
|
|
|
|
|
|
extends 'WebService::Braintree::ResultObject'; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 CLASS METHODS |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 generate() |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This method takes a settlement date and an optional group_by_custom_field and |
28
|
|
|
|
|
|
|
generates a settlement batch summary. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub generate { |
33
|
0
|
|
|
0
|
1
|
|
my($class, $settlement_date, $group_by_custom_field) = @_; |
34
|
0
|
|
|
|
|
|
$class->gateway->settlement_batch_summary->generate($settlement_date, $group_by_custom_field); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub gateway { |
38
|
0
|
|
|
0
|
0
|
|
return WebService::Braintree->configuration->gateway; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 OBJECT METHODS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
UNKNOWN |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub BUILD { |
48
|
0
|
|
|
0
|
0
|
|
my ($self, $attributes) = @_; |
49
|
0
|
|
|
|
|
|
$self->set_attributes_from_hash($self, $attributes); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
__END__ |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 TODO |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=over 4 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item Need to document the keys and values that are returned |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item Need to document the required and optional input parameters |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item Need to document the possible errors/exceptions |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item Provide an explanation of what a settlement batch summary is |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=back |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |