| 1 | package Business::TrueLayer::Remitter; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::TrueLayer::Remitter - class representing a remitter | ||
| 6 | as used in the TrueLayer v3 API. | ||
| 7 | |||
| 8 | =head1 SYNOPSIS | ||
| 9 | |||
| 10 | my $Remitter = Business::TrueLayer::Remitter->new( | ||
| 11 | type => ... | ||
| 12 | ); | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 5 | ▶ | use feature qw/ signatures postderef /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 5 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 5 | extends 'Business::TrueLayer::Request'; | |
| 22 | 5 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 5 | ▶ | no warnings qw/ experimental::signatures experimental::postderef /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 5 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 5 | ▶ | use Business::TrueLayer::Address; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 5 | ▶ | use Business::TrueLayer::Account::Identifier; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | |||
| 30 | =head1 ATTRIBUTES | ||
| 31 | |||
| 32 | =over | ||
| 33 | |||
| 34 | =item account_holder_name (Str) | ||
| 35 | |||
| 36 | =cut | ||
| 37 | |||
| 38 | 5 | has [ qw/ account_holder_name / ] => ( | |
| 39 | is => 'ro', | ||
| 40 | isa => 'Str', | ||
| 41 | required => 1, | ||
| 42 | ); | ||
| 43 | |||
| 44 | coerce 'Business::TrueLayer::Address' | ||
| 45 | => from 'HashRef' | ||
| 46 | 5 | ▶ | => via { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 47 | 5 | Business::TrueLayer::Address->new( %{ $_ } ); | |
| 48 | } | ||
| 49 | 5 | ; | |
| 50 | |||
| 51 | 5 | has address => ( | |
| 52 | is => 'ro', | ||
| 53 | isa => 'Business::TrueLayer::Address', | ||
| 54 | coerce => 1, | ||
| 55 | required => 0, | ||
| 56 | ); | ||
| 57 | |||
| 58 | coerce 'Business::TrueLayer::Account::Identifier' | ||
| 59 | => from 'HashRef' | ||
| 60 | 6 | ▶ | => via { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 61 | 6 | Business::TrueLayer::Account::Identifier->new( %{ $_ } ); | |
| 62 | } | ||
| 63 | 5 | ; | |
| 64 | |||
| 65 | 5 | has account_identifier => ( | |
| 66 | is => 'ro', | ||
| 67 | isa => 'Business::TrueLayer::Account::Identifier', | ||
| 68 | coerce => 1, | ||
| 69 | required => 1, | ||
| 70 | ); | ||
| 71 | |||
| 72 | =head1 SEE ALSO | ||
| 73 | |||
| 74 | L<Business::TrueLayer::Beneficiary> | ||
| 75 | |||
| 76 | =cut | ||
| 77 | |||
| 78 | 5 | 1; | |