File Coverage

blib/lib/WebService/Async/Onfido/Base/Address.pm
Criterion Covered Total %
statement 9 23 39.1
branch 0 2 0.0
condition n/a
subroutine 3 15 20.0
pod 10 12 83.3
total 22 52 42.3


line stmt bran cond sub pod time code
1             package WebService::Async::Onfido::Base::Address;
2              
3 2     2   913 use strict;
  2         5  
  2         60  
4 2     2   10 use warnings;
  2         5  
  2         48  
5              
6 2     2   10 use utf8;
  2         8  
  2         8  
7              
8             our $VERSION = '0.003'; # VERSION
9              
10             =head1 NAME
11              
12             WebService::Async::Onfido::Base::Address - 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             sub new {
21 0     0 0   my ($class, %args) = @_;
22 0 0         Scalar::Util::weaken($args{onfido}) if $args{onfido};
23 0           return bless \%args, $class;
24             }
25              
26             =head1 METHODS
27             =head2 flat_number
28              
29             The flat number of this address.
30              
31             =cut
32              
33 0     0 0   sub flat_number : method { return shift->{flat_number} }
34              
35             =head2 building_number
36              
37             The building number of this address.
38              
39             =cut
40              
41 0     0 1   sub building_number : method { return shift->{building_number} }
42              
43             =head2 building_name
44              
45             The building name of this address.
46              
47             =cut
48              
49 0     0 1   sub building_name : method { return shift->{building_name} }
50              
51             =head2 street
52              
53             The street of the applicant's address. There is a 32-character limit on this field for UK addresses.
54              
55             =cut
56              
57 0     0 1   sub street : method { return shift->{street} }
58              
59             =head2 sub_street
60              
61             The sub-street of the applicant's address.
62              
63             =cut
64              
65 0     0 1   sub sub_street : method { return shift->{sub_street} }
66              
67             =head2 town
68              
69             The town of the applicant's address.
70              
71             =cut
72              
73 0     0 1   sub town : method { return shift->{town} }
74              
75             =head2 state
76              
77             The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX..
78              
79             =cut
80              
81             ## no critic (ProhibitBuiltinHomonyms)
82 0     0 1   sub state : method { return shift->{state} }
83              
84             =head2 postcode
85              
86             The postcode or ZIP of the applicant's address. For UK postcode, specify the value in the following format: SW4 6EH.
87              
88             =cut
89              
90 0     0 1   sub postcode : method { return shift->{postcode} }
91              
92             =head2 country
93              
94             The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom.
95              
96             =cut
97              
98 0     0 1   sub country : method { return shift->{country} }
99              
100             =head2 start_date
101              
102             The date the applicant started living at this address in yyyy-mm-dd format.
103              
104             =cut
105              
106 0     0 1   sub start_date : method { return shift->{start_date} }
107              
108             =head2 end_date
109              
110             The date the applicant left this address in yyyy-mm-dd format. If current residence, leave null.
111              
112             =cut
113              
114 0     0 1   sub end_date : method { return shift->{end_date} }
115              
116             1;
117              
118             __END__
119              
120             =head1 AUTHOR
121              
122             deriv.com C<< DERIV@cpan.org >>
123              
124             =head1 LICENSE
125              
126             Copyright deriv.com 2019. Licensed under the same terms as Perl itself.
127