line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Address.pm |
3
|
|
|
|
|
|
|
## Version v0.100.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2020 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
|
4
|
|
|
4
|
|
24081592
|
use warnings; |
|
4
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
132
|
|
14
|
4
|
|
|
4
|
|
24
|
use parent qw( Net::API::Stripe::Generic ); |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
123
|
|
15
|
4
|
|
|
4
|
|
20
|
use vars qw( $VERSION ); |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
24
|
|
16
|
4
|
|
|
4
|
|
275
|
our( $VERSION ) = 'v0.100.0'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
271
|
|
17
|
4
|
|
|
4
|
|
78
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use strict; |
20
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
75
|
|
21
|
4
|
|
|
4
|
|
16
|
|
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
585
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
|
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
|
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
{ |
30
|
|
|
|
|
|
|
no warnings 'once'; |
31
|
0
|
|
|
0
|
1
|
|
*zip_code = \&postal_code; |
32
|
|
|
|
|
|
|
} |
33
|
0
|
|
|
0
|
1
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
0
|
|
|
0
|
0
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding utf8 |
38
|
4
|
|
|
4
|
|
24
|
|
|
4
|
|
|
|
|
19
|
|
|
4
|
|
|
|
|
263
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Net::API::Stripe::Address - A Stripe Address Object |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my $addr = $stripe->address({ |
46
|
|
|
|
|
|
|
line1 => '1-2-3 Kudan-minami, Chiyoda-ku', |
47
|
|
|
|
|
|
|
line2 => 'Big Bldg 12F', |
48
|
|
|
|
|
|
|
city => 'Tokyo', |
49
|
|
|
|
|
|
|
postal_code => '123-4567', |
50
|
|
|
|
|
|
|
country => 'jp', |
51
|
|
|
|
|
|
|
}); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 VERSION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
v0.100.0 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This is an Address module used everywhere in Stripe API. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 new( %ARG ) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Address> object. |
66
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 METHODS |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 city string |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
City/District/Suburb/Town/Village. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 country string |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
2-letter country code. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 line1 string |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Address line 1 (Street address/PO Box/Company name). |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 line2 string |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Address line 2 (Apartment/Suite/Unit/Building). |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 postal_code string |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
ZIP or postal code. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 state string |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
State/County/Province/Region. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 HISTORY |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 v0.1 |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Initial version |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 AUTHOR |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 SEE ALSO |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Stripe API documentation: |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
115
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=cut |