line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/File/Links.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::File::Links; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
1032
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
14
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
15
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::List ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
1
|
|
|
1
|
|
80
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
81
|
|
17
|
1
|
|
|
1
|
|
23
|
our( $VERSION ) = 'v0.100.0'; |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
21
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
39
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Inherited |
24
|
|
|
|
|
|
|
# sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
## Array of Net::API::Stripe::File::Link |
27
|
|
|
|
|
|
|
# sub data { return( shift->_set_get_object_array( 'data', 'Net::API::Stripe::File::Link', @_ ) ); } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Inherited |
30
|
|
|
|
|
|
|
# sub has_more { return( shift->_set_get_scalar( 'has_more', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Inherited |
33
|
|
|
|
|
|
|
# sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=encoding utf8 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Net::API::Stripe::File::Links - File Links for Stripe API |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This module inherits completely from L<Net::API::Stripe::List> and may be removed in the future. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 API SAMPLE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
{ |
52
|
|
|
|
|
|
|
"id": "file_fake123456789", |
53
|
|
|
|
|
|
|
"object": "file", |
54
|
|
|
|
|
|
|
"created": 1540111053, |
55
|
|
|
|
|
|
|
"filename": "file_fake123456789", |
56
|
|
|
|
|
|
|
"links": { |
57
|
|
|
|
|
|
|
"object": "list", |
58
|
|
|
|
|
|
|
"data": [ |
59
|
|
|
|
|
|
|
{ |
60
|
|
|
|
|
|
|
"id": "link_fake123456789", |
61
|
|
|
|
|
|
|
"object": "file_link", |
62
|
|
|
|
|
|
|
"created": 1571229407, |
63
|
|
|
|
|
|
|
"expired": false, |
64
|
|
|
|
|
|
|
"expires_at": null, |
65
|
|
|
|
|
|
|
"file": "file_fake123456789", |
66
|
|
|
|
|
|
|
"livemode": false, |
67
|
|
|
|
|
|
|
"metadata": {}, |
68
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
69
|
|
|
|
|
|
|
}, |
70
|
|
|
|
|
|
|
{ |
71
|
|
|
|
|
|
|
"id": "link_fake123456789", |
72
|
|
|
|
|
|
|
"object": "file_link", |
73
|
|
|
|
|
|
|
"created": 1571225071, |
74
|
|
|
|
|
|
|
"expired": false, |
75
|
|
|
|
|
|
|
"expires_at": null, |
76
|
|
|
|
|
|
|
"file": "file_fake123456789", |
77
|
|
|
|
|
|
|
"livemode": false, |
78
|
|
|
|
|
|
|
"metadata": {}, |
79
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
80
|
|
|
|
|
|
|
}, |
81
|
|
|
|
|
|
|
{ |
82
|
|
|
|
|
|
|
"id": "link_fake123456789", |
83
|
|
|
|
|
|
|
"object": "file_link", |
84
|
|
|
|
|
|
|
"created": 1571223490, |
85
|
|
|
|
|
|
|
"expired": false, |
86
|
|
|
|
|
|
|
"expires_at": null, |
87
|
|
|
|
|
|
|
"file": "file_fake123456789", |
88
|
|
|
|
|
|
|
"livemode": false, |
89
|
|
|
|
|
|
|
"metadata": {}, |
90
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
91
|
|
|
|
|
|
|
}, |
92
|
|
|
|
|
|
|
{ |
93
|
|
|
|
|
|
|
"id": "link_1FUA14CeyNCl6fY2s3gFUjmP", |
94
|
|
|
|
|
|
|
"object": "file_link", |
95
|
|
|
|
|
|
|
"created": 1571222766, |
96
|
|
|
|
|
|
|
"expired": false, |
97
|
|
|
|
|
|
|
"expires_at": null, |
98
|
|
|
|
|
|
|
"file": "file_fake123456789", |
99
|
|
|
|
|
|
|
"livemode": false, |
100
|
|
|
|
|
|
|
"metadata": {}, |
101
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
102
|
|
|
|
|
|
|
}, |
103
|
|
|
|
|
|
|
{ |
104
|
|
|
|
|
|
|
"id": "link_fake123456789", |
105
|
|
|
|
|
|
|
"object": "file_link", |
106
|
|
|
|
|
|
|
"created": 1571197169, |
107
|
|
|
|
|
|
|
"expired": false, |
108
|
|
|
|
|
|
|
"expires_at": null, |
109
|
|
|
|
|
|
|
"file": "file_fake123456789", |
110
|
|
|
|
|
|
|
"livemode": false, |
111
|
|
|
|
|
|
|
"metadata": {}, |
112
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
{ |
115
|
|
|
|
|
|
|
"id": "link_fake123456789", |
116
|
|
|
|
|
|
|
"object": "file_link", |
117
|
|
|
|
|
|
|
"created": 1571176460, |
118
|
|
|
|
|
|
|
"expired": false, |
119
|
|
|
|
|
|
|
"expires_at": null, |
120
|
|
|
|
|
|
|
"file": "file_fake123456789", |
121
|
|
|
|
|
|
|
"livemode": false, |
122
|
|
|
|
|
|
|
"metadata": {}, |
123
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
124
|
|
|
|
|
|
|
}, |
125
|
|
|
|
|
|
|
{ |
126
|
|
|
|
|
|
|
"id": "link_fake123456789", |
127
|
|
|
|
|
|
|
"object": "file_link", |
128
|
|
|
|
|
|
|
"created": 1571099998, |
129
|
|
|
|
|
|
|
"expired": false, |
130
|
|
|
|
|
|
|
"expires_at": null, |
131
|
|
|
|
|
|
|
"file": "file_fake123456789", |
132
|
|
|
|
|
|
|
"livemode": false, |
133
|
|
|
|
|
|
|
"metadata": {}, |
134
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
135
|
|
|
|
|
|
|
}, |
136
|
|
|
|
|
|
|
{ |
137
|
|
|
|
|
|
|
"id": "link_fake123456789", |
138
|
|
|
|
|
|
|
"object": "file_link", |
139
|
|
|
|
|
|
|
"created": 1551509650, |
140
|
|
|
|
|
|
|
"expired": false, |
141
|
|
|
|
|
|
|
"expires_at": null, |
142
|
|
|
|
|
|
|
"file": "file_fake123456789", |
143
|
|
|
|
|
|
|
"livemode": false, |
144
|
|
|
|
|
|
|
"metadata": {}, |
145
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
146
|
|
|
|
|
|
|
}, |
147
|
|
|
|
|
|
|
{ |
148
|
|
|
|
|
|
|
"id": "link_fake123456789", |
149
|
|
|
|
|
|
|
"object": "file_link", |
150
|
|
|
|
|
|
|
"created": 1551509211, |
151
|
|
|
|
|
|
|
"expired": false, |
152
|
|
|
|
|
|
|
"expires_at": null, |
153
|
|
|
|
|
|
|
"file": "file_fake123456789", |
154
|
|
|
|
|
|
|
"livemode": false, |
155
|
|
|
|
|
|
|
"metadata": {}, |
156
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
157
|
|
|
|
|
|
|
}, |
158
|
|
|
|
|
|
|
{ |
159
|
|
|
|
|
|
|
"id": "link_fake123456789", |
160
|
|
|
|
|
|
|
"object": "file_link", |
161
|
|
|
|
|
|
|
"created": 1547559540, |
162
|
|
|
|
|
|
|
"expired": false, |
163
|
|
|
|
|
|
|
"expires_at": null, |
164
|
|
|
|
|
|
|
"file": "file_fake123456789", |
165
|
|
|
|
|
|
|
"livemode": false, |
166
|
|
|
|
|
|
|
"metadata": {}, |
167
|
|
|
|
|
|
|
"url": "https://files.stripe.com/links/fl_test_fake123456789" |
168
|
|
|
|
|
|
|
} |
169
|
|
|
|
|
|
|
], |
170
|
|
|
|
|
|
|
"has_more": true, |
171
|
|
|
|
|
|
|
"url": "/v1/file_links?file=file_fake123456789" |
172
|
|
|
|
|
|
|
}, |
173
|
|
|
|
|
|
|
"purpose": "dispute_evidence", |
174
|
|
|
|
|
|
|
"size": 9863, |
175
|
|
|
|
|
|
|
"title": null, |
176
|
|
|
|
|
|
|
"type": "png", |
177
|
|
|
|
|
|
|
"url": "https://files.stripe.com/v1/files/file_fake123456789/contents" |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=head1 AUTHOR |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=head1 SEE ALSO |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
Stripe API documentation: |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/files/object> |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
195
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=cut |
198
|
|
|
|
|
|
|
|