File Coverage

lib/Net/API/Stripe/Customer/TaxInfo.pm
Criterion Covered Total %
statement 19 21 90.4
branch n/a
condition n/a
subroutine 7 9 77.7
pod 2 2 100.0
total 28 32 87.5


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Customer/TaxInfo.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             BEGIN
11             {
12             use strict;
13 1     1   947 use warnings;
  1         2  
  1         30  
14 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         28  
15 1     1   5 use vars qw( $VERSION );
  1         2  
  1         5  
16 1     1   65 our( $VERSION ) = 'v0.100.0';
  1         1  
  1         48  
17 1     1   21 };
18              
19             use strict;
20 1     1   5 use warnings;
  1         2  
  1         21  
21 1     1   5  
  1         2  
  1         413  
22              
23 0     0 1    
24             1;
25 0     0 1    
26              
27              
28             =encoding utf8
29              
30             =head1 NAME
31              
32             Net::API::Stripe::Customer::TaxInfo - A Stripe Customer Tax Info (deprecated)
33              
34             =head1 SYNOPSIS
35              
36             my $tx_info = $stripe->customer->tax_info({
37             tax_id => 'EU123456789',
38             type => 'vat',
39             });
40              
41             =head1 VERSION
42              
43             v0.100.0
44              
45             =head1 DESCRIPTION
46              
47             The customer’s tax information. Appears on invoices emailed to this customer. This parameter has been deprecated and will be removed in a future API version, for further information view the migration guide (L<https://stripe.com/docs/billing/migration/taxes#moving-from-taxinfo-to-customer-tax-ids>).
48              
49             This is instantiated by method B<tax_info> in module L<Net::API::Stripe::Customer>
50              
51             =head1 CONSTRUCTOR
52              
53             =head2 new( %ARG )
54              
55             Creates a new L<Net::API::Stripe::Customer::TaxInfo> object.
56             It may also take an hash like arguments, that also are method of the same name.
57              
58             =head1 METHODS
59              
60             =head2 tax_id required
61              
62             The customer’s tax ID number.
63              
64             =head2 type required
65              
66             The type of ID number. The only possible value is vat
67              
68             =head1 API SAMPLE
69              
70             {
71             "id": "cus_fake123456789",
72             "object": "customer",
73             "address": null,
74             "balance": 0,
75             "created": 1572264551,
76             "currency": "jpy",
77             "default_source": null,
78             "delinquent": false,
79             "description": "Customer for jenny.rosen@example.com",
80             "discount": null,
81             "email": null,
82             "invoice_prefix": "BC0DE60",
83             "invoice_settings": {
84             "custom_fields": null,
85             "default_payment_method": null,
86             "footer": null
87             },
88             "livemode": false,
89             "metadata": {},
90             "name": null,
91             "phone": null,
92             "preferred_locales": [],
93             "shipping": null,
94             "sources": {
95             "object": "list",
96             "data": [],
97             "has_more": false,
98             "url": "/v1/customers/cus_fake123456789/sources"
99             },
100             "subscriptions": {
101             "object": "list",
102             "data": [],
103             "has_more": false,
104             "url": "/v1/customers/cus_fake123456789/subscriptions"
105             },
106             "tax_exempt": "none",
107             "tax_ids": {
108             "object": "list",
109             "data": [],
110             "has_more": false,
111             "url": "/v1/customers/cus_fake123456789/tax_ids"
112             },
113             "tax_info": null,
114             "tax_info_verification": null
115             }
116              
117             =head1 HISTORY
118              
119             =head2 v0.1
120              
121             Initial version
122              
123             =head1 AUTHOR
124              
125             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
126              
127             =head1 SEE ALSO
128              
129             Stripe API documentation:
130              
131             L<https://stripe.com/docs/api/customers/create>, L<https://stripe.com/docs/billing/migration/taxes#moving-from-taxinfo-to-customer-tax-ids>
132              
133             =head1 COPYRIGHT & LICENSE
134              
135             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
136              
137             You can use, copy, modify and redistribute this package and associated
138             files under the same terms as Perl itself.
139              
140             =cut