line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Customer/TaxIds.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::TaxIds; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
959
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
14
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
15
|
1
|
|
|
1
|
|
4
|
use parent qw( Net::API::Stripe::List ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
16
|
1
|
|
|
1
|
|
64
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
51
|
|
17
|
1
|
|
|
1
|
|
18
|
our( $VERSION ) = 'v0.100.0'; |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
21
|
1
|
|
|
1
|
|
48
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Inherite |
24
|
|
|
|
|
|
|
# sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
## An array of Net::API::Stripe::Billing::Subscription |
27
|
|
|
|
|
|
|
## sub data { return( shift->_set_get_object_array( 'data', 'Net::API::Stripe::Customer::TaxId', @_ ) ); } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Inherite |
30
|
|
|
|
|
|
|
# sub has_more { return( shift->_set_get_scalar( 'has_more', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Inherite |
33
|
|
|
|
|
|
|
# sub total_count { return( shift->_set_get_scalar( 'total_count', @_ ) ); } |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# Inherite |
36
|
|
|
|
|
|
|
# sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=encoding utf8 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Net::API::Stripe::Customer::TaxIds - A Customer Tax IDs List Object |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my $stripe = Net::API::Stripe->new( conf_file => 'settings.json' ) || die( Net::API::Stripe->error ); |
51
|
|
|
|
|
|
|
my $list = $stripe->tax_id( 'list' ) || die( $stripe->error ); |
52
|
|
|
|
|
|
|
printf( "%d total tax id(s) found\n", $list->count ); |
53
|
|
|
|
|
|
|
while( my $tax_id = $list->next ) |
54
|
|
|
|
|
|
|
{ |
55
|
|
|
|
|
|
|
printf( "Tax ID %s with customer id %s has a country %s\n", $tax_id->id, $tax_id->customer->id, $tax_id->country ); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 VERSION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
v0.100.0 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DESCRIPTION |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This module inherits completely from L<Net::API::Stripe::List> and may be removed in the future. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
You can add one or multiple tax IDs to a customer. A customer's tax IDs are displayed on invoices and credit notes issued for the customer. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 API SAMPLE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
{ |
71
|
|
|
|
|
|
|
"id": "cus_fake123456789", |
72
|
|
|
|
|
|
|
"object": "customer", |
73
|
|
|
|
|
|
|
"account_balance": 0, |
74
|
|
|
|
|
|
|
"address": null, |
75
|
|
|
|
|
|
|
"balance": 0, |
76
|
|
|
|
|
|
|
"created": 1571176460, |
77
|
|
|
|
|
|
|
"currency": "jpy", |
78
|
|
|
|
|
|
|
"default_source": null, |
79
|
|
|
|
|
|
|
"delinquent": false, |
80
|
|
|
|
|
|
|
"description": null, |
81
|
|
|
|
|
|
|
"discount": null, |
82
|
|
|
|
|
|
|
"email": null, |
83
|
|
|
|
|
|
|
"invoice_prefix": "0822CFA", |
84
|
|
|
|
|
|
|
"invoice_settings": { |
85
|
|
|
|
|
|
|
"custom_fields": null, |
86
|
|
|
|
|
|
|
"default_payment_method": null, |
87
|
|
|
|
|
|
|
"footer": null |
88
|
|
|
|
|
|
|
}, |
89
|
|
|
|
|
|
|
"livemode": false, |
90
|
|
|
|
|
|
|
"metadata": {}, |
91
|
|
|
|
|
|
|
"name": null, |
92
|
|
|
|
|
|
|
"phone": null, |
93
|
|
|
|
|
|
|
"preferred_locales": [], |
94
|
|
|
|
|
|
|
"shipping": null, |
95
|
|
|
|
|
|
|
"sources": { |
96
|
|
|
|
|
|
|
"object": "list", |
97
|
|
|
|
|
|
|
"data": [], |
98
|
|
|
|
|
|
|
"has_more": false, |
99
|
|
|
|
|
|
|
"url": "/v1/customers/cus_fake123456789/sources" |
100
|
|
|
|
|
|
|
}, |
101
|
|
|
|
|
|
|
"subscriptions": { |
102
|
|
|
|
|
|
|
"object": "list", |
103
|
|
|
|
|
|
|
"data": [], |
104
|
|
|
|
|
|
|
"has_more": false, |
105
|
|
|
|
|
|
|
"url": "/v1/customers/cus_fake123456789/subscriptions" |
106
|
|
|
|
|
|
|
}, |
107
|
|
|
|
|
|
|
"tax_exempt": "none", |
108
|
|
|
|
|
|
|
"tax_ids": { |
109
|
|
|
|
|
|
|
"object": "list", |
110
|
|
|
|
|
|
|
"data": [], |
111
|
|
|
|
|
|
|
"has_more": false, |
112
|
|
|
|
|
|
|
"url": "/v1/customers/cus_fake123456789/tax_ids" |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
"tax_info": null, |
115
|
|
|
|
|
|
|
"tax_info_verification": null |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 HISTORY |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 v0.1 |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Initial version |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head1 AUTHOR |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head1 SEE ALSO |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Stripe API documentation: |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/customers>, L<https://stripe.com/docs/billing/taxes/tax-ids> |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
139
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=cut |