File Coverage

blib/lib/WebService/Braintree/SettlementBatchSummary.pm
Criterion Covered Total %
statement 3 8 37.5
branch n/a
condition n/a
subroutine 1 4 25.0
pod 1 3 33.3
total 5 15 33.3


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