NAME

Business::NAB::BPAY::Remittance::File::TrailerRecord

SYNOPSIS

use Business::NAB::BPAY::Remittance::File::TrailerRecord;

# parse
my $Trailer = Business::NAB::BPAY::Remittance::File::TrailerRecord
    ->new_from_record( $line );

# create
my $Trailer = Business::NAB::BPAY::Remittance::File::TrailerRecord->new(
    biller_code => ...
    number_of_payments => ...
    amount_of_payments => ...
    number_of_error_corrections => ...
    amount_of_error_corrections => ...
    number_of_reversals => ...
    amount_of_reversals => ...
    settlement_amount => ...
);

my $line = $Trailer->to_record;

DESCRIPTION

Class for trailer record in the "BPAY Remittance File"

ATTRIBUTES

biller_code (Str, max length 10)
number_of_payments (NAB::Type::BRFInt)
amount_of_payments (NAB::Type::BRFInt)
number_of_error_corrections (NAB::Type::BRFInt)
amount_of_error_corrections (NAB::Type::BRFInt)
number_of_reversals (NAB::Type::BRFInt)
amount_of_reversals (NAB::Type::BRFInt)
settlement_amount (NAB::Type::BRFInt)

METHODS

new_from_record

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

my $Trailer = Business::NAB::BPAY::Remittance::File::TrailerRecord
    ->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 = $Trailer->to_record;

SEE ALSO

Business::NAB::Types