NAME
Business::NAB::BPAY::Payments::TrailerRecord
SYNOPSIS
use Business::NAB::BPAY::Payments::TrailerRecord;
# parse
my $Trailer = Business::NAB::BPAY::Payments::TrailerRecord
->new_from_record( $line );
# create
my $Trailer = Business::NAB::BPAY::Payments::TrailerRecord->new(
total_number_of_payments => 10,
total_value_of_payments => 11111,
);
my $line = $Trailer->to_record;
DESCRIPTION
Class for trailer record in the "BPAY Batch User Guide"
ATTRIBUTES
- total_number_of_payments (NAB::Type::PositiveIntOrZero)
- total_value_of_payments (NAB::Type::PositiveIntOrZero)
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::Payments::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;