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