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