NAME

Business::Westpac::PaymentsPlus::Australian::Payment::Import::Invoice

SYNOPSIS

use Business::Westpac::PaymentsPlus::Australian::Payment::Import::Invoice;

my $Invoice = Business::Westpac::PaymentsPlus::Australian::Payment::Import::Invoice->new(
    payers_invoice_number => '1000000001',
    recipient_invoice_number => '1000000001',
    issued_date => '26082016',
    due_date => '01092016',
    invoice_amount => '36.04',
    invoice_amount_paid => '36.04',
    invoice_description => 'Desc 1',
    deduction_description => 'Ded Desc 1',
    pass_through_data => 'Some pass through data',
);

DESCRIPTION

Class for modeling Invoice details in the context of Westpac CSV files.

ATTRIBUTES

All attributes are optional, except were stated, and are read only

payers_invoice_number (Str, max 20 chars)
recipient_invoice_number (Str, max 20 chars)
invoice_description (Str, max 80 chars)
deduction_description (Str, max 80 chars)
issued_date (WestpacDate)
due_date (WestpacDate)
invoice_amount (Num)
invoice_amount_paid (Num)
deduction_amount (Num)

METHODS

issued_csv_date

Returns the issued_date to a string suitable for the CSV

due_csv_date

Returns the due_date to a string suitable for the CSV

to_csv

Convert the attributes to CSV line(s):

my @csv = $Invoice->to_csv;

SEE ALSO

Business::Westpac::Types