File Coverage

lib/Net/API/Stripe/Customer/TaxInfoVerification.pm
Criterion Covered Total %
statement 19 26 73.0
branch n/a
condition n/a
subroutine 7 14 50.0
pod 7 7 100.0
total 33 47 70.2


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