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

filter: Statementstmt 40.7% 11 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 18.7% 3 / 16 Podpod 84.6% 11 / 13 totaltotal 43.1% 25 / 58 CC 2 SCAR 8.3
CC
2
Cov
38%
new
6.0
id
2.0
created_at
2.0
CRAP 2.3
« lib/WebService/Async/Onfido/Base/Address.pm ↑ Summary lib/WebService/Async/Onfido/Base/Report.pm »
1 package WebService::Async::Onfido::Base::Check;
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.002'; # VERSION
9  
10 =head1 NAME
11  
12 WebService::Async::Onfido::Base::Check - 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 ▶ my ($class, %args) = @_;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
22 0 ▶ Scalar::Util::weaken($args{onfido}) if $args{onfido};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"onfido"} 0 0 0
23 0 return bless \%args, $class;
24 }
25  
26 =head1 METHODS
27 =head2 id
28  
29 The unique identifier for the check..
30  
31 =cut
32  
33 0 ▶sub id : method { return shift->{id} }
Subroutine id: not called CC=1 SCAR=6.9
Pod undocumented
34  
35 =head2 created_at
36  
37 The date and time at which the check was initiated..
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 href
44  
45 The API endpoint to retrieve the check..
46  
47 =cut
48  
49 0 ▶sub href : method { return shift->{href} }
Subroutine href: not called CC=1 SCAR=6.9
Pod documented
50  
51 =head2 status
52  
53 The current state of the check in the checking process..
54  
55 =cut
56  
57 0 ▶sub status : method { return shift->{status} }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
58  
59 =head2 tags
60  
61 A list of tags associated with this check..
62  
63 =cut
64  
65 0 ▶sub tags : method { return shift->{tags} }
Subroutine tags: not called CC=1 SCAR=6.9
Pod documented
66  
67 =head2 result
68  
69 The overall result of the check, based on the results of the constituent reports..
70  
71 =cut
72  
73 0 ▶sub result : method { return shift->{result} }
Subroutine result: not called CC=1 SCAR=6.9
Pod documented
74  
75 =head2 download_uri
76  
77 A link to a PDF output of the check results. Append .pdf to get the pdf file..
78  
79 Since v3 this PDF is meant to be downloaded from the API.
80  
81 =cut
82  
83 sub download_uri : method {
84 0 ▶ my $self = shift;
Subroutine download_uri: not called CC=1 SCAR=6.9
Pod documented
85  
86 0 return $self->onfido->endpoint('check_download', check_id => $self->id);
87 }
88  
89 =head2 form_uri
90  
91 A link to the applicant form, if the check is of type standard.
92  
93 =cut
94  
95 0 ▶sub form_uri : method { return shift->{form_uri} }
Subroutine form_uri: not called CC=1 SCAR=6.9
Pod documented
96  
97 =head2 redirect_uri
98  
99 For standard checks, redirect to this URI when the applicant has submitted their data..
100  
101 =cut
102  
103 0 ▶sub redirect_uri : method { return shift->{redirect_uri} }
Subroutine redirect_uri: not called CC=1 SCAR=6.9
Pod documented
104  
105 =head2 results_uri
106  
107 A link to the corresponding results page on the Onfido dashboard.
108  
109 =cut
110  
111 0 ▶sub results_uri : method { return shift->{results_uri} }
Subroutine results_uri: not called CC=1 SCAR=6.9
Pod documented
112  
113 =head2 reports_ids
114  
115 The list of report ids associated with the check..
116  
117 =cut
118  
119 0 ▶sub reports_ids : method { return shift->{reports_ids} }
Subroutine reports_ids: not called CC=1 SCAR=6.9
Pod documented
120  
121 =head2 applicant_id
122  
123 The applicant the check belongs to
124  
125 =cut
126  
127 0 ▶sub applicant_id : method { return shift->{applicant_id} }
Subroutine applicant_id: not called CC=1 SCAR=6.9
Pod documented
128  
129 5 1;
130  
131 __END__
132  
133 =head1 AUTHOR
134  
135 deriv.com C<< DERIV@cpan.org >>
136  
137 =head1 LICENSE
138  
139 Copyright deriv.com 2019. Licensed under the same terms as Perl itself.
140  
« lib/WebService/Async/Onfido/Base/Address.pm ↑ Summary lib/WebService/Async/Onfido/Base/Report.pm »