« NAB/Australian/DirectEntry/Report/FailedSummary.pm
↑ Summary
NAB/Australian/DirectEntry/Returns.pm »
| 1 | package Business::NAB::Australian::DirectEntry::Report::TrailerRecord; | ||
| 2 | 2 | $Business::NAB::Australian::DirectEntry::Report::TrailerRecord::VERSION = '0.11'; | |
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::NAB::Australian::DirectEntry::Report::TrailerRecord | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | Class for trailer record in the Australian Direct Entry Report file | ||
| 12 | |||
| 13 | =cut; | ||
| 14 | |||
| 15 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ▶ | use feature qw/ signatures /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 2 | extends 'Business::NAB::CSV'; | |
| 21 | 2 | ▶ | no warnings qw/ experimental::signatures /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 2 | ▶ | use Business::NAB::Types qw/ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | add_max_string_attribute | ||
| 25 | 2 | /; | |
| 26 | |||
| 27 | =head1 ATTRIBUTES | ||
| 28 | |||
| 29 | All are NAB::Type::PositiveIntOrZero types, required, except where stated | ||
| 30 | |||
| 31 | =over | ||
| 32 | |||
| 33 | =item net_file_total | ||
| 34 | |||
| 35 | =item credit_file_total | ||
| 36 | |||
| 37 | =item debit_file_total | ||
| 38 | |||
| 39 | =item total_number_of_records | ||
| 40 | |||
| 41 | =back | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 7 | ▶ | sub _record_type { '99' } |
|
Subroutine
_record_type: called CC=1 SCAR=0.0
| |||
| 46 | |||
| 47 | 9 | ▶ | sub _attributes { |
|
Subroutine
_attributes: called CC=1 SCAR=0.0
| |||
| 48 | |||
| 49 | 9 | return qw/ | |
| 50 | net_file_total | ||
| 51 | credit_file_total | ||
| 52 | debit_file_total | ||
| 53 | total_number_of_records | ||
| 54 | /; | ||
| 55 | } | ||
| 56 | |||
| 57 | 2 | has [ __PACKAGE__->_attributes ] => ( | |
| 58 | is => 'ro', | ||
| 59 | isa => 'NAB::Type::PositiveIntOrZero', | ||
| 60 | required => 1, | ||
| 61 | ); | ||
| 62 | |||
| 63 | 2 | __PACKAGE__->meta->make_immutable; | |