Stripe/Customer/TaxInfo.pm

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