| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::Async::Onfido::Document; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 14 | use strict; | 
|  | 2 |  |  |  |  | 10 |  | 
|  | 2 |  |  |  |  | 65 |  | 
| 4 | 2 |  |  | 2 |  | 11 | use warnings; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 58 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 2 |  |  | 2 |  | 12 | use parent qw(WebService::Async::Onfido::Base::Document); | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 10 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | our $VERSION = '0.003';    # VERSION | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | =head1 NAME | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | WebService::Async::Onfido::Document - represents data for Onfido | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | =cut | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | sub as_string { | 
| 19 | 0 |  |  | 0 | 0 |  | my ($self) = @_; | 
| 20 | 0 |  | 0 |  |  |  | return sprintf '%s %d byte %s, %s %s (ID %s)', | 
| 21 |  |  |  |  |  |  | $self->file_name, | 
| 22 |  |  |  |  |  |  | $self->file_size, uc($self->file_type), | 
| 23 |  |  |  |  |  |  | $self->side // 'single', | 
| 24 |  |  |  |  |  |  | $self->type, | 
| 25 |  |  |  |  |  |  | $self->id; | 
| 26 |  |  |  |  |  |  | } | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 0 |  |  | 0 | 0 |  | sub onfido    { return shift->{onfido} } | 
| 29 | 0 |  |  | 0 | 0 |  | sub applicant { return shift->{applicant} } | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | 1; | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | __END__ | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =head1 AUTHOR | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | deriv.com C<< DERIV@cpan.org >> | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | =head1 LICENSE | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | Copyright deriv.com 2019. Licensed under the same terms as Perl itself. | 
| 42 |  |  |  |  |  |  |  |