NAME
Business::NAB::BPAY::Payments::DetailRecord
SYNOPSIS
use Business::NAB::BPAY::Payments::DetailRecord;
# parse
my $Detail = Business::NAB::BPAY::Payments::DetailRecord;
->new_from_record( $line );
# create
my $Detail = Business::NAB::BPAY::Payments::DetailRecord->new(
biller_code => $biller_code,
payment_account_bsb => $payment_account_bsb,
payment_account_number => $payment_account_number,
customer_reference_number => $customer_reference_number,
amount => $amount,
lodgement_reference_1 => $lodgement_reference_1,
lodgement_reference_2 => $lodgement_reference_2,
lodgement_reference_3 => $lodgement_reference_3,
);
my $line = $Detail->to_record;
DESCRIPTION
Class for detail record in the "BPAY Batch User Guide"
ATTRIBUTES
- biller_code (Str, max length 10)
- payment_account_bsb (NAB::Type::BSBNumberNoDash)
- payment_account_number (NAB::Type::AccountNumber)
- customer_reference_number (Str, max length 20)
- amount (NAB::Type::PositiveInt)
- lodgement_reference_1 (Str, max length 10, optional)
- lodgement_reference_2 (Str, max length 20, optional)
- lodgement_reference_3 (Str, max length 50, optional)
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::Payments::DetailRecord
->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 = $Detail->to_record;