| 1 | package Business::TrueLayer::Types::Beneficiary; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 4 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 4 | ▶ | use Business::TrueLayer::Beneficiary; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | coerce 'Business::TrueLayer::Beneficiary' | ||
| 14 | => from 'HashRef' | ||
| 15 | 9 | ▶ | => via { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 16 | 9 | Business::TrueLayer::Beneficiary->new( %{ $_ } ); | |
| 17 | } | ||
| 18 | 4 | ; | |
| 19 | |||
| 20 | 4 | has beneficiary => ( | |
| 21 | is => 'ro', | ||
| 22 | isa => 'Business::TrueLayer::Beneficiary', | ||
| 23 | coerce => 1, | ||
| 24 | required => 1, | ||
| 25 | ); | ||
| 26 | |||
| 27 | 4 | 1; | |
| 28 | |||
| 29 | # vim: ts=4:sw=4:et | ||