NAME

Business::NAB::Australian::DirectEntry::Payments::TotalRecord

SYNOPSIS

use Business::NAB::Australian::DirectEntry::Payments::TotalRecord;

# parse
my $Record = Business::NAB::Australian::DirectEntry
    ::Payments::TotalRecord->new_from_record( $line );

# create
my $Record = Business::NAB::Australian::DirectEntry
    ::Payments::TotalRecord->new(
        bsb_number => '123-456',
        net_total_amount => 33333,
        credit_total_amount => 11111,
        debit_total_amount => 22222,
        record_count => 10,
);

my $line = $Record->to_record;

DESCRIPTION

Class for total record in the "Australian Direct Entry Payments and Dishonour report"

ATTRIBUTES

bsb_number (NAB::Type::BSBNumber)
net_total_amount (NAB::Type::PositiveIntOrZero)
credit_total_amount (NAB::Type::PositiveIntOrZero)
debit_total_amount (NAB::Type::PositiveIntOrZero)
record_count (NAB::Type::PositiveIntOrZero)

METHODS

new_from_record

Returns a new instance of the class with attributes populated from the result of parsing the passed line:

my $Record = Business::NAB::Australian::DirectEntry
    ::Payments::TotalRecord->new_from_record( $line );

to_record

Returns a string constructed from the object's attributes, representing the record for use in a batch file:

my $line = $Record->to_record;

SEE ALSO

Business::NAB::Types