« NAB/Australian/DirectEntry/Returns/TotalRecord.pm
↑ Summary
NAB/Australian/DirectEntry/Report/FailedRecord.pm »
| 1 | package Business::NAB::Australian::DirectEntry::Report::DisclaimerRecord; | ||
| 2 | 2 | $Business::NAB::Australian::DirectEntry::Report::DisclaimerRecord::VERSION = '0.11'; | |
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::NAB::Australian::DirectEntry::Report::DisclaimerRecord | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | Class for disclaimer 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 Str types, required, except where stated | ||
| 30 | |||
| 31 | =over | ||
| 32 | |||
| 33 | =item text | ||
| 34 | |||
| 35 | =back | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 7 | ▶ | sub _record_type { '100' } |
|
Subroutine
_record_type: called CC=1 SCAR=0.0
| |||
| 40 | |||
| 41 | 9 | ▶ | sub _attributes { |
|
Subroutine
_attributes: called CC=1 SCAR=0.0
| |||
| 42 | |||
| 43 | 9 | return qw/ | |
| 44 | text | ||
| 45 | /; | ||
| 46 | } | ||
| 47 | |||
| 48 | 2 | foreach my $str_attr ( | |
| 49 | __PACKAGE__->_attributes | ||
| 50 | ) { | ||
| 51 | 2 | __PACKAGE__->add_max_string_attribute( | |
| 52 | $str_attr, | ||
| 53 | is => 'ro', | ||
| 54 | required => 1, | ||
| 55 | ); | ||
| 56 | } | ||
| 57 | |||
| 58 | 2 | __PACKAGE__->meta->make_immutable; | |