lib/WebService/Async/Onfido/Base/Applicant.pm

filter: Statementstmt 48.5% 17 / 35 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.0% 7 / 25 Podpod 90.9% 20 / 22 totaltotal 53.5% 45 / 84 CC 2 SCAR 5.7
CC
2
Cov
49%
new
2.0
created_at
2.0
delete_at
2.0
CRAP 1.8
« lib/WebService/Async/Onfido/Check.pm ↑ Summary lib/WebService/Async/Onfido/Applicant.pm »
1 package WebService::Async::Onfido::Base::Applicant;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 our $VERSION = '0.007'; # VERSION
9  
10 =head1 NAME
11  
12 WebService::Async::Onfido::Base::Applicant - represents data for Onfido
13  
14 =head1 DESCRIPTION
15  
16 This is autogenerated from the documentation in L<https://documentation.onfido.com>.
17  
18 =cut
19  
20 4 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod undocumented
21 4 my ($class, %args) = @_;
22 4 ▶ Scalar::Util::weaken($args{onfido}) if $args{onfido};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"onfido"} 4 0 4
23 4 return bless \%args, $class;
24 }
25  
26 =head1 METHODS
27 =head2 id
28  
29 The unique identifier for the applicant.
30  
31 =cut
32  
33 19 ▶sub id : method { return shift->{id} }
Subroutine id: called CC=1 SCAR=0.0
Pod undocumented
34  
35 =head2 created_at
36  
37 The date and time when this applicant was created.
38  
39 =cut
40  
41 0 ▶sub created_at : method { return shift->{created_at} }
Subroutine created_at: not called CC=1 SCAR=6.9
Pod documented
42  
43 =head2 delete_at
44  
45 The date and time when this applicant is scheduled to be deleted, or null if the applicant is not scheduled to be deleted.
46  
47 =cut
48  
49 0 ▶sub delete_at : method { return shift->{delete_at} }
Subroutine delete_at: not called CC=1 SCAR=6.9
Pod documented
50  
51 =head2 href
52  
53 The URI of this resource.
54  
55 =cut
56  
57 0 ▶sub href : method { return shift->{href} }
Subroutine href: not called CC=1 SCAR=6.9
Pod documented
58  
59 =head2 title
60  
61 The applicant's title. Valid values are Mr, Mrs, Miss and Ms.
62  
63 =cut
64  
65 0 ▶sub title : method { return shift->{title} }
Subroutine title: not called CC=1 SCAR=6.9
Pod documented
66  
67 =head2 first_name
68  
69 The applicant's first name.
70  
71 =cut
72  
73 2 ▶sub first_name : method { return shift->{first_name} }
Subroutine first_name: called CC=1 SCAR=0.0
Pod documented
74  
75 =head2 middle_name
76  
77 The applicant's middle name(s) or initial.
78  
79 =cut
80  
81 0 ▶sub middle_name : method { return shift->{middle_name} }
Subroutine middle_name: not called CC=1 SCAR=6.9
Pod documented
82  
83 =head2 last_name
84  
85 The applicant's surname.
86  
87 =cut
88  
89 2 ▶sub last_name : method { return shift->{last_name} }
Subroutine last_name: called CC=1 SCAR=0.0
Pod documented
90  
91 =head2 email
92  
93 The applicant's email address.
94  
95 =cut
96  
97 0 ▶sub email : method { return shift->{email} }
Subroutine email: not called CC=1 SCAR=6.9
Pod documented
98  
99 =head2 gender
100  
101 The applicant's gender. Valid values are male and female.
102  
103 =cut
104  
105 0 ▶sub gender : method { return shift->{gender} }
Subroutine gender: not called CC=1 SCAR=6.9
Pod documented
106  
107 =head2 dob
108  
109 The applicant's date of birth in yyyy-mm-dd format.
110  
111 =cut
112  
113 0 ▶sub dob : method { return shift->{dob} }
Subroutine dob: not called CC=1 SCAR=6.9
Pod documented
114  
115 =head2 telephone
116  
117 The applicant's landline phone number.
118  
119 =cut
120  
121 0 ▶sub telephone : method { return shift->{telephone} }
Subroutine telephone: not called CC=1 SCAR=6.9
Pod documented
122  
123 =head2 mobile
124  
125 The applicant's mobile phone number.
126  
127 =cut
128  
129 0 ▶sub mobile : method { return shift->{mobile} }
Subroutine mobile: not called CC=1 SCAR=6.9
Pod documented
130  
131 =head2 country
132  
133 The country where this applicant will be checked. This must be a three-letter ISO code e.g. GBR or USA. If not provided the default is GBR..
134  
135 =cut
136  
137 0 ▶sub country : method { return shift->{country} }
Subroutine country: not called CC=1 SCAR=6.9
Pod documented
138  
139 =head2 mothers_maiden_name
140  
141 The applicant's mother's maiden name.
142  
143 =cut
144  
145 0 ▶sub mothers_maiden_name : method { return shift->{mothers_maiden_name} }
Subroutine mothers_maiden_name: not called CC=1 SCAR=6.9
Pod documented
146  
147 =head2 previous_last_name
148  
149 The applicant's previous surname.
150  
151 =cut
152  
153 0 ▶sub previous_last_name : method { return shift->{previous_last_name} }
Subroutine previous_last_name: not called CC=1 SCAR=6.9
Pod documented
154  
155 =head2 nationality
156  
157 The applicant's current nationality. This must be a three-letter ISO code e.g. GBR or USA.
158  
159 =cut
160  
161 0 ▶sub nationality : method { return shift->{nationality} }
Subroutine nationality: not called CC=1 SCAR=6.9
Pod documented
162  
163 =head2 country_of_birth
164  
165 The applicant's country of birth. This must be a three-letter ISO code e.g. GBR or USA.
166  
167 =cut
168  
169 0 ▶sub country_of_birth : method { return shift->{country_of_birth} }
Subroutine country_of_birth: not called CC=1 SCAR=6.9
Pod documented
170  
171 =head2 town_of_birth
172  
173 The applicant's town of birth.
174  
175 =cut
176  
177 0 ▶sub town_of_birth : method { return shift->{town_of_birth} }
Subroutine town_of_birth: not called CC=1 SCAR=6.9
Pod documented
178  
179 =head2 id_numbers
180  
181 A collection of identification numbers belonging to this applicant.
182  
183 =cut
184  
185 0 ▶sub id_numbers : method { return shift->{id_numbers} }
Subroutine id_numbers: not called CC=1 SCAR=6.9
Pod documented
186  
187 =head2 address
188  
189 The current address of the applicant.
190  
191 =cut
192  
193 0 ▶sub address : method { return shift->{address} }
Subroutine address: not called CC=1 SCAR=6.9
Pod documented
194  
195 5 1;
196  
197 __END__
« lib/WebService/Async/Onfido/Check.pm ↑ Summary lib/WebService/Async/Onfido/Applicant.pm »