File Coverage

blib/lib/Net/API/Stripe/Customer/TaxInfoVerification.pm
Criterion Covered Total %
statement 7 14 50.0
branch n/a
condition n/a
subroutine 3 10 30.0
pod 7 7 100.0
total 17 31 54.8


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Customer/TaxInfoVerification.pm
3             ## Version v0.100.0
4             ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <@sitael.tokyo.deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/05/15
8             ##
9             ##----------------------------------------------------------------------------
10             package Net::API::Stripe::Customer::TaxInfoVerification;
11             BEGIN
12             {
13 1     1   829 use strict;
  1         2  
  1         28  
14 1     1   6 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         3  
15 1     1   179 our( $VERSION ) = 'v0.100.0';
16             };
17              
18 0     0 1   sub additional_document { return( shift->_set_get_object( 'additional_document', 'Net::API::Stripe::Connect::Account::Document', @_ ) ); }
19              
20 0     0 1   sub details { return( shift->_set_get_scalar( 'details', @_ ) ); }
21              
22 0     0 1   sub details_code { return( shift->_set_get_scalar( 'details_code', @_ ) ); }
23              
24 0     0 1   sub document { return( shift->_set_get_object( 'document', 'Net::API::Stripe::Connect::Account::Document', @_ ) ); }
25              
26             ## Can be either pending, unavailable, unverified, or verified
27 0     0 1   sub status { return( shift->_set_get_scalar( 'status', @_ ) ); }
28              
29 0     0 1   sub verified_address { return( shift->_set_get_scalar( 'verified_address', @_ ) ); }
30              
31 0     0 1   sub verified_name { return( shift->_set_get_scalar( 'verified_name', @_ ) ); }
32              
33             1;
34              
35             __END__
36              
37             =encoding utf8
38              
39             =head1 NAME
40              
41             Net::API::Stripe::Customer::TaxInfoVerification - A Customer Tax Verification Object
42              
43             =head1 SYNOPSIS
44              
45             my $tx_info = $stripe->customer->tax_info_verification({
46             additional_document => $account_document_object,
47             details => 'Provided identity information could not be verified',
48             details_code => 'document_name_mismatch',
49             document => $account_document_object,
50             status => 'pending',
51             });
52              
53             =head1 VERSION
54              
55             v0.100.0
56              
57             =head1 DESCRIPTION
58              
59             This is instantiated by method B<tax_info_verification> in module B<Net::API::Stripe::Customer>
60              
61             =head1 CONSTRUCTOR
62              
63             =over 4
64              
65             =item B<new>( %ARG )
66              
67             Creates a new L<Net::API::Stripe::Customer::TaxInfoVerification> object.
68             It may also take an hash like arguments, that also are method of the same name.
69              
70             =back
71              
72             =head1 METHODS
73              
74             =over 4
75              
76             =item B<additional_document> hash
77              
78             A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
79              
80             This is a L<Net::API::Stripe::Connect::Account::Document> object.
81              
82             =item B<details> string
83              
84             A user-displayable string describing the verification state for the person. For example, this may say “Provided identity information could not be verified”.
85              
86             =item B<details_code> string
87              
88             One of document_address_mismatch, document_dob_mismatch, document_duplicate_type, document_id_number_mismatch, document_name_mismatch, document_nationality_mismatch, failed_keyed_identity, or failed_other. A machine-readable code specifying the verification state for the person.
89              
90             =item B<document> hash
91              
92             An identifying document for the person, either a passport or local ID card.
93              
94             This is a L<Net::API::Stripe::Connect::Account::Document> object.
95              
96             =item B<status> string
97              
98             Verification status, one of pending, unavailable, unverified, or verified.
99              
100             =item B<verified_address> string
101              
102             Verified address.
103              
104             =item B<verified_name> string
105              
106             Verified name.
107              
108             =back
109              
110             =head1 API SAMPLE
111              
112             {
113             "id": "txi_123456789",
114             "object": "tax_id",
115             "country": "DE",
116             "created": 123456789,
117             "customer": "cus_fake123456789",
118             "livemode": false,
119             "type": "eu_vat",
120             "value": "DE123456789",
121             "verification": {
122             "status": "pending",
123             "verified_address": null,
124             "verified_name": null
125             }
126             }
127              
128             =head1 HISTORY
129              
130             =head2 v0.1
131              
132             Initial version
133              
134             =head1 AUTHOR
135              
136             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
137              
138             =head1 SEE ALSO
139              
140             Stripe API documentation:
141              
142             L<https://stripe.com/docs/api/customers/>, L<https://stripe.com/docs/api/persons/object#person_object-relationship>
143              
144             =head1 COPYRIGHT & LICENSE
145              
146             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
147              
148             You can use, copy, modify and redistribute this package and associated
149             files under the same terms as Perl itself.
150              
151             =cut