| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::Async::Onfido::Base::Document; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 942 | use strict; | 
|  | 2 |  |  |  |  | 7 |  | 
|  | 2 |  |  |  |  | 61 |  | 
| 4 | 2 |  |  | 2 |  | 11 | use warnings; | 
|  | 2 |  |  |  |  | 7 |  | 
|  | 2 |  |  |  |  | 65 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 2 |  |  | 2 |  | 11 | use utf8; | 
|  | 2 |  |  |  |  | 8 |  | 
|  | 2 |  |  |  |  | 21 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | our $VERSION = '0.003';    # VERSION | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | =head1 NAME | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | WebService::Async::Onfido::Base::Document - 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 | 3 |  |  | 3 | 0 | 30 | my ($class, %args) = @_; | 
| 22 | 3 | 50 |  |  |  | 25 | Scalar::Util::weaken($args{onfido}) if $args{onfido}; | 
| 23 | 3 |  |  |  |  | 63 | return bless \%args, $class; | 
| 24 |  |  |  |  |  |  | } | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 METHODS | 
| 27 |  |  |  |  |  |  | =head2 id | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | The unique identifier of the document. | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =cut | 
| 32 |  |  |  |  |  |  |  | 
| 33 | 2 |  |  | 2 | 0 | 51 | sub id : method { return shift->{id} } | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =head2 created_at | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | The date and time at which the document was uploaded. | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | =cut | 
| 40 |  |  |  |  |  |  |  | 
| 41 | 0 |  |  | 0 | 1 | 0 | sub created_at : method { return shift->{created_at} } | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =head2 href | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | The URI of this resource. | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | =cut | 
| 48 |  |  |  |  |  |  |  | 
| 49 | 0 |  |  | 0 | 1 | 0 | sub href : method { return shift->{href} } | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | =head2 download_href | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | The URI that can be used to download the document. | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | =cut | 
| 56 |  |  |  |  |  |  |  | 
| 57 | 0 |  |  | 0 | 1 | 0 | sub download_href : method { return shift->{download_href} } | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =head2 file_name | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | The name of the uploaded file. | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =cut | 
| 64 |  |  |  |  |  |  |  | 
| 65 | 0 |  |  | 0 | 1 | 0 | sub file_name : method { return shift->{file_name} } | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =head2 file_type | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | The file type of the uploaded file. | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | =cut | 
| 72 |  |  |  |  |  |  |  | 
| 73 | 0 |  |  | 0 | 1 | 0 | sub file_type : method { return shift->{file_type} } | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | =head2 file_size | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | The size of the file in bytes. | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | =cut | 
| 80 |  |  |  |  |  |  |  | 
| 81 | 0 |  |  | 0 | 1 | 0 | sub file_size : method { return shift->{file_size} } | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | =head2 type | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | The type of document.  The possible values are detailed below.. | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | =cut | 
| 88 |  |  |  |  |  |  |  | 
| 89 | 1 |  |  | 1 | 1 | 2181 | sub type : method { return shift->{type} } | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | =head2 side | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | The side of the document, if applicable.  The possible values are front and back. | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | =cut | 
| 96 |  |  |  |  |  |  |  | 
| 97 | 0 |  |  | 0 | 1 |  | sub side : method { return shift->{side} } | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  | =head2 issuing_country | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | The issuing country of the document, in 3-letter ISO code, specified when uploading it.. | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | =cut | 
| 104 |  |  |  |  |  |  |  | 
| 105 | 0 |  |  | 0 | 1 |  | sub issuing_country : method { return shift->{issuing_country} } | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | 1; | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | __END__ | 
| 110 |  |  |  |  |  |  |  | 
| 111 |  |  |  |  |  |  | =head1 AUTHOR | 
| 112 |  |  |  |  |  |  |  | 
| 113 |  |  |  |  |  |  | deriv.com C<< DERIV@cpan.org >> | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | =head1 LICENSE | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | Copyright deriv.com 2019. Licensed under the same terms as Perl itself. | 
| 118 |  |  |  |  |  |  |  |