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 <@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
|
|
|
1
|
|
825
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
104
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub tax_id { shift->_set_get_scalar( 'tax_id', @_ ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub type { shift->_set_get_scalar( 'type', @_ ); } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
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 |