TrueLayer/Beneficiary.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« TrueLayer/Address.pm ↑ Summary TrueLayer/MerchantAccount/Identifier.pm »
1 package Business::TrueLayer::Beneficiary;
2  
3 =head1 NAME
4  
5 Business::TrueLayer::Beneficiary - class representing a beneficiary
6 as used in the TrueLayer v3 API.
7  
8 =head1 SYNOPSIS
9  
10 my $Beneficiary = Business::TrueLayer::Beneficiary->new(
11 name => ...
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 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 5 ▶no warnings qw/ experimental::signatures experimental::postderef /;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 5 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 =head1 ATTRIBUTES
27  
28 =over
29  
30 =item type (Str)
31  
32 =item account_holder_name (Str) [optional]
33  
34 =item reference (Str) [optional]
35  
36 =item merchant_account_id (Str) [optional]
37  
38 =item verification (HashRef) [optional]
39  
40 =back
41  
42 =cut
43  
44 5 has [ qw/
45 type
46 / ] => (
47 is => 'ro',
48 isa => 'Str',
49 required => 1,
50 );
51  
52 5 has [ qw/
53 merchant_account_id
54 account_holder_name
55 reference
56 / ] => (
57 is => 'ro',
58 isa => 'Str',
59 required => 0,
60 );
61  
62 5 has verification => (
63 is => 'ro',
64 isa => 'HashRef',
65 required => 0,
66 );
67  
68 =head1 METHODS
69  
70 None yet.
71  
72 =head1 SEE ALSO
73  
74 =cut
75  
76 5 1;
« TrueLayer/Address.pm ↑ Summary TrueLayer/MerchantAccount/Identifier.pm »