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