NAB/Australian/DirectEntry/Report/FailedRecord.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 35 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« NAB/Australian/DirectEntry/Report/DisclaimerRecord.pm ↑ Summary NAB/Australian/DirectEntry/Report/FailedSummary.pm »
1 package Business::NAB::Australian::DirectEntry::Report::FailedRecord;
2 2 $Business::NAB::Australian::DirectEntry::Report::FailedRecord::VERSION = '0.11';
3 =head1 NAME
4  
5 Business::NAB::Australian::DirectEntry::Report::FailedRecord
6  
7 =head1 SYNOPSIS
8  
9 =head1 DESCRIPTION
10  
11 Class for failed record in the Australian Direct Entry Report file.
12  
13 Extends L<Business::NAB::Australian::DirectEntry::Report::PaymentRecord>.
14  
15 =cut;
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶use feature qw/ signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 extends 'Business::NAB::Australian::DirectEntry::Report::PaymentRecord';
23 2 ▶no warnings qw/ experimental::signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 2 ▶use Business::NAB::Types qw/
Subroutine BEGIN: called CC=1 SCAR=0.0
26 add_max_string_attribute
27 2 /;
28  
29 =head1 ATTRIBUTES
30  
31 All are Str types, required, except where stated. Extra attributes are
32 inherited from L<Business::NAB::Australian::DirectEntry::Report::PaymentRecord>.
33  
34 =over
35  
36 =item failed_reason_code
37  
38 =item reason_for_rejection
39  
40 =back
41  
42 =cut
43  
44 7 ▶sub _record_type ( $self ) { '61' }
Subroutine _record_type: called CC=1 SCAR=0.0
45  
46 7 ▶sub _attributes ( $self ) {
Subroutine _attributes: called CC=1 SCAR=0.0
47  
48 return (
49 7 qw/ sub_trancode /,
50 $self->SUPER::_attributes,
51 $self->_extra_attributes,
52 );
53 }
54  
55 9 ▶sub _extra_attributes ( $self ) {
Subroutine _extra_attributes: called CC=1 SCAR=0.0
56  
57 9 return qw/
58 failed_reason_code
59 reason_for_rejection
60 /;
61 }
62  
63 2 foreach my $str_attr (
64 'sub_trancode',
65 __PACKAGE__->_extra_attributes,
66 ) {
67 6 __PACKAGE__->add_max_string_attribute(
68 $str_attr,
69 is => 'ro',
70 required => 1,
71 );
72 }
73  
74 2 __PACKAGE__->meta->make_immutable;
« NAB/Australian/DirectEntry/Report/DisclaimerRecord.pm ↑ Summary NAB/Australian/DirectEntry/Report/FailedSummary.pm »