NAME

Business::Westpac::PaymentsPlus::Australian::Payment::Import::FileHeader

SYNOPSIS

use Business::Westpac::PaymentsPlus::Australian::Payment::Import::FileHeader;
my $Header = Business::Westpac::PaymentsPlus::Australian::Payment::Import::FileHeader->new(
    customer_code => 'TESTPAYER',
    customer_name => 'TESTPAYER NAME',
    customer_file_reference => 'TESTFILE001',
    scheduled_date => '26082016',
);

my @csv = $Header->to_csv;

DESCRIPTION

Class for Westpac Australian payment import CSV file header

ATTRIBUTES

All attributes are required and are read only

customer_code (Str, max 10 chars)

customer_name (Str, max 40 chars)

customer_file_reference (Str, max 20 chars)

scheduled_date (DateTime, or coerced from DDMMYYYY)

METHODS

to_csv

Convert the attributes to CSV line(s):

my @csv = $Header->to_csv;

SEE ALSO

Business::Westpac::Types