« lib/WebService/Async/Onfido/Base/Document.pm
↑ Summary
lib/WebService/Async/Onfido/Base/Photo.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.007'; # 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 | 7 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 21 | 7 | my ($class, %args) = @_; | |||||||||
| 22 | 7 | ▶ | Scalar::Util::weaken($args{onfido}) if $args{onfido}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 7 | 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 | 16 | ▶ | 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 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 | 1 | ▶ | sub tags : method { return shift->{tags} } | ||||||||
|
Subroutine
tags: called CC=1 SCAR=0.0
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 | 1 | ▶ | sub download_uri : method { | ||||||||
|
Subroutine
download_uri: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 84 | 1 | my $self = shift; | |||||||||
| 85 | |||||||||||
| 86 | 1 | 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 | 1 | ▶ | sub applicant_id : method { return shift->{applicant_id} } | ||||||||
|
Subroutine
applicant_id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 128 | |||||||||||
| 129 | 5 | 1; | |||||||||
| 130 | |||||||||||
| 131 | __END__ | ||||||||||