« Westpac/PaymentsPlus/Australian/Payment/Import/FileHeader.pm
↑ Summary
Westpac/PaymentsPlus/Australian/Payment/Import/Payment/BPAY.pm »
| 1 | package Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment::RemittanceOnly; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment::RemittanceOnly | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment::RemittanceOnly; | ||
| 10 | |||
| 11 | my $RemittanceOnly = Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment::RemittanceOnly->new( | ||
| 12 | payer_payment_reference => 'REF00006', | ||
| 13 | payment_amount => '16.35', | ||
| 14 | recipient_reference => 'REF00006', | ||
| 15 | ); | ||
| 16 | |||
| 17 | =head1 DESCRIPTION | ||
| 18 | |||
| 19 | Class for modeling Remittance Only payments in the context of Westpac CSV files. | ||
| 20 | |||
| 21 | Extends L<Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment>. | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | 2 | ▶ | use feature qw/ signatures /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 2 | extends 'Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment'; | |
| 29 | 2 | ▶ | no warnings qw/ experimental::signatures /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | |||
| 31 | 2 | ▶ | use Business::Westpac::Types qw/ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | add_max_string_attribute | ||
| 33 | 2 | /; | |
| 34 | |||
| 35 | 2 | ▶ | sub record_type { 'RO' } |
|
Subroutine
record_type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 36 | |||
| 37 | =head1 ATTRIBUTES | ||
| 38 | |||
| 39 | All are inherited from L<Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment> | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | =head1 METHODS | ||
| 44 | |||
| 45 | =head2 to_csv | ||
| 46 | |||
| 47 | Convert the attributes to CSV line(s): | ||
| 48 | |||
| 49 | my @csv = $RemittanceOnly->to_csv; | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | 2 | ▶ | sub to_csv ( $self ) { |
|
Subroutine
to_csv: called CC=1 SCAR=0.0
Pod
documented
| |||
| 54 | |||
| 55 | 2 | return $self->attributes_to_csv( | |
| 56 | qw/ | ||
| 57 | record_type | ||
| 58 | recipient_number | ||
| 59 | payer_payment_reference | ||
| 60 | recipient_reference | ||
| 61 | payment_amount | ||
| 62 | / | ||
| 63 | ); | ||
| 64 | } | ||
| 65 | |||
| 66 | =head1 SEE ALSO | ||
| 67 | |||
| 68 | L<Business::Westpac::PaymentsPlus::Australian::Payment::Import::Payment> | ||
| 69 | |||
| 70 | L<Business::Westpac::Types> | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 2 | __PACKAGE__->meta->make_immutable; | |