— — — |
use feature qw/ signatures postderef / ; no warnings qw/ experimental::signatures experimental::postderef / ;
has [ qw/ account_holder_name / ] => (
is => 'ro' ,
isa => 'Str' ,
required => 1,
);
coerce 'Business::TrueLayer::Address'
=> from 'HashRef'
=> via {
Business::TrueLayer::Address->new( %{ $_ } );
}
;
has address => (
is => 'ro' ,
isa => 'Business::TrueLayer::Address' ,
coerce => 1,
required => 0,
);
coerce 'Business::TrueLayer::Account::Identifier'
=> from 'HashRef'
=> via {
Business::TrueLayer::Account::Identifier->new( %{ $_ } );
}
;
has account_identifier => (
is => 'ro' ,
isa => 'Business::TrueLayer::Account::Identifier' ,
coerce => 1,
required => 1,
);
1;
|