Westpac/PaymentsPlus/Australian/Payment/Import/Trailer.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.4% 19 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Westpac.pm ↑ Summary Westpac/PaymentsPlus/Australian/Payment/Import/FileHeader.pm »
1 package Business::Westpac::PaymentsPlus::Australian::Payment::Import::Trailer;
2  
3 =head1 NAME
4  
5 Business::Westpac::PaymentsPlus::Australian::Payment::Import::Trailer
6  
7 =head1 SYNOPSIS
8  
9 use Business::Westpac::PaymentsPlus::Australian::Payment::Import::Trailer;
10  
11 my $Trailer = Business::Westpac::PaymentsPlus::Australian::Payment::Import::Trailer->new(
12 total_payment_count => 8,
13 total_payment_amount => '2015.42',
14 );
15  
16 =head1 DESCRIPTION
17  
18 Class for Westpac CSV file trailer records.
19  
20 =cut
21  
22 2 ▶use feature qw/ signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 2 with 'Business::Westpac::Role::CSV';
26 2 ▶no warnings qw/ experimental::signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 1 ▶sub record_type { 'T' }
Subroutine record_type: called CC=1 SCAR=0.0
Pod undocumented
29  
30 =head1 ATTRIBUTES
31  
32 All attributes are required, except were stated, and are read/write
33  
34 =over
35  
36 =item total_payment_count (Num)
37  
38 =item total_payment_amount (Num)
39  
40 =back
41  
42 =cut
43  
44 2 has [ qw/
45 total_payment_count
46 total_payment_amount
47 / ] => (
48 is => 'ro',
49 isa => 'Num',
50 required => 1,
51 );
52  
53 1 ▶sub to_csv ( $self ) {
Subroutine to_csv: called CC=1 SCAR=0.0
Pod undocumented
54  
55 1 return $self->attributes_to_csv(
56 qw/
57 record_type
58 total_payment_count
59 total_payment_amount
60 /
61 );
62 }
63  
64 =head1 SEE ALSO
65  
66 L<Business::Westpac::Types>
67  
68 =cut
69  
70 2 __PACKAGE__->meta->make_immutable;
« Westpac.pm ↑ Summary Westpac/PaymentsPlus/Australian/Payment/Import/FileHeader.pm »