NAME

Business::NAB::BPAY::Remittance::File::HeaderRecord

SYNOPSIS

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

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

# create
my $Header = Business::NAB::BPAY::Remittance::File::HeaderRecord->new(
    biller_code => ...
    biller_short_name => ...
    biller_credit_bsb => ...
    biller_credit_account => ...
    file_creation_date => ...
    file_creation_time => ...
);

my $line = $Header->to_record;

DESCRIPTION

Class for header record in the "BPAY Remittance File"

ATTRIBUTES

biller_code (Str, max length 10)
biller_short_name (Str, max length 20)
biller_credit_bsb (NAB::Type::BSBNumberNoDash)
biller_credit_account (NAB::Type::AccountNumber)
file_creation_date (NAB::Type::StatementDate)
file_creation_time (Str, max length 6)

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::BPAY::Remittance::File::HeaderRecord
    ->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 = $Header->to_record;

SEE ALSO

Business::NAB::Types