line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Issuing/MerchantData.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::Issuing::MerchantData; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
817
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
14
|
1
|
|
|
1
|
|
4
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
187
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub category { shift->_set_get_scalar( 'category', @_ ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub city { shift->_set_get_scalar( 'city', @_ ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub country { shift->_set_get_scalar( 'country', @_ ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub name { shift->_set_get_scalar( 'name', @_ ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub network_id { shift->_set_get_scalar( 'network_id', @_ ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub postal_code { shift->_set_get_scalar( 'postal_code', @_ ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub state { shift->_set_get_scalar( 'state', @_ ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding utf8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Net::API::Stripe::Issuing::MerchantData - A Stripe Merchant Data Object |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my $data = $stripe->authorization->merchant_data({ |
47
|
|
|
|
|
|
|
# https://stripe.com/docs/issuing/categories |
48
|
|
|
|
|
|
|
category => '8111', |
49
|
|
|
|
|
|
|
city => 'Tokyo', |
50
|
|
|
|
|
|
|
country => 'jp', |
51
|
|
|
|
|
|
|
name => 'Big Corp, Inc', |
52
|
|
|
|
|
|
|
network_id => $some_id, |
53
|
|
|
|
|
|
|
postal_code => '123-4567', |
54
|
|
|
|
|
|
|
state => undef, |
55
|
|
|
|
|
|
|
url => 'https://store.example.com/12/service/advisory', |
56
|
|
|
|
|
|
|
}); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 VERSION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
v0.100.0 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DESCRIPTION |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is used in L<Net::API::Stripe::Issuing::Authorization> object. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This is instantiated by method B<merchant_data> in module L<Net::API::Stripe::Issuing::Authorization>, L<Net::API::Stripe::Issuing::Authorization::Transaction> and L<Net::API::Stripe::Issuing::Transaction> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=over 4 |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Issuing::MerchantData> object. |
75
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=back |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 METHODS |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=over 4 |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item B<category> string |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
A categorization of the sellerâs type of business. See Stripe merchant categories guide (L<https://stripe.com/docs/issuing/categories>) for a list of possible values. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item B<city> string |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
City where the seller is located |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item B<country> string |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Country where the seller is located |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item B<name> string |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Name of the seller |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item B<network_id> string |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Identifier assigned to the seller by the card brand |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item B<postal_code> string |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Postal code where the seller is located |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item B<state> string |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
State where the seller is located |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=item B<url> string |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
The url an online purchase was made from |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=back |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 API SAMPLE |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
{ |
120
|
|
|
|
|
|
|
"id": "iauth_fake123456789", |
121
|
|
|
|
|
|
|
"object": "issuing.authorization", |
122
|
|
|
|
|
|
|
"approved": true, |
123
|
|
|
|
|
|
|
"authorization_method": "online", |
124
|
|
|
|
|
|
|
"authorized_amount": 500, |
125
|
|
|
|
|
|
|
"authorized_currency": "usd", |
126
|
|
|
|
|
|
|
"balance_transactions": [], |
127
|
|
|
|
|
|
|
"card": null, |
128
|
|
|
|
|
|
|
"cardholder": null, |
129
|
|
|
|
|
|
|
"created": 1540642827, |
130
|
|
|
|
|
|
|
"held_amount": 0, |
131
|
|
|
|
|
|
|
"held_currency": "usd", |
132
|
|
|
|
|
|
|
"is_held_amount_controllable": false, |
133
|
|
|
|
|
|
|
"livemode": false, |
134
|
|
|
|
|
|
|
"merchant_data": { |
135
|
|
|
|
|
|
|
"category": "taxicabs_limousines", |
136
|
|
|
|
|
|
|
"city": "San Francisco", |
137
|
|
|
|
|
|
|
"country": "US", |
138
|
|
|
|
|
|
|
"name": "Rocket Rides", |
139
|
|
|
|
|
|
|
"network_id": "1234567890", |
140
|
|
|
|
|
|
|
"postal_code": "94107", |
141
|
|
|
|
|
|
|
"state": "CA", |
142
|
|
|
|
|
|
|
"url": null |
143
|
|
|
|
|
|
|
}, |
144
|
|
|
|
|
|
|
"metadata": {}, |
145
|
|
|
|
|
|
|
"pending_authorized_amount": 0, |
146
|
|
|
|
|
|
|
"pending_held_amount": 0, |
147
|
|
|
|
|
|
|
"request_history": [], |
148
|
|
|
|
|
|
|
"status": "reversed", |
149
|
|
|
|
|
|
|
"transactions": [ |
150
|
|
|
|
|
|
|
{ |
151
|
|
|
|
|
|
|
"id": "ipi_fake123456789", |
152
|
|
|
|
|
|
|
"object": "issuing.transaction", |
153
|
|
|
|
|
|
|
"amount": -100, |
154
|
|
|
|
|
|
|
"authorization": "iauth_fake123456789", |
155
|
|
|
|
|
|
|
"balance_transaction": null, |
156
|
|
|
|
|
|
|
"card": "ic_fake123456789", |
157
|
|
|
|
|
|
|
"cardholder": null, |
158
|
|
|
|
|
|
|
"created": 1540642827, |
159
|
|
|
|
|
|
|
"currency": "usd", |
160
|
|
|
|
|
|
|
"dispute": null, |
161
|
|
|
|
|
|
|
"livemode": false, |
162
|
|
|
|
|
|
|
"merchant_amount": null, |
163
|
|
|
|
|
|
|
"merchant_currency": null, |
164
|
|
|
|
|
|
|
"merchant_data": { |
165
|
|
|
|
|
|
|
"category": "taxicabs_limousines", |
166
|
|
|
|
|
|
|
"city": "San Francisco", |
167
|
|
|
|
|
|
|
"country": "US", |
168
|
|
|
|
|
|
|
"name": "Rocket Rides", |
169
|
|
|
|
|
|
|
"network_id": "1234567890", |
170
|
|
|
|
|
|
|
"postal_code": "94107", |
171
|
|
|
|
|
|
|
"state": "CA", |
172
|
|
|
|
|
|
|
"url": null |
173
|
|
|
|
|
|
|
}, |
174
|
|
|
|
|
|
|
"metadata": {}, |
175
|
|
|
|
|
|
|
"type": "capture" |
176
|
|
|
|
|
|
|
}, |
177
|
|
|
|
|
|
|
{ |
178
|
|
|
|
|
|
|
"id": "ipi_fake123456789", |
179
|
|
|
|
|
|
|
"object": "issuing.transaction", |
180
|
|
|
|
|
|
|
"amount": -100, |
181
|
|
|
|
|
|
|
"authorization": "iauth_fake123456789", |
182
|
|
|
|
|
|
|
"balance_transaction": null, |
183
|
|
|
|
|
|
|
"card": "ic_fake123456789", |
184
|
|
|
|
|
|
|
"cardholder": null, |
185
|
|
|
|
|
|
|
"created": 1540642827, |
186
|
|
|
|
|
|
|
"currency": "usd", |
187
|
|
|
|
|
|
|
"dispute": null, |
188
|
|
|
|
|
|
|
"livemode": false, |
189
|
|
|
|
|
|
|
"merchant_amount": null, |
190
|
|
|
|
|
|
|
"merchant_currency": null, |
191
|
|
|
|
|
|
|
"merchant_data": { |
192
|
|
|
|
|
|
|
"category": "taxicabs_limousines", |
193
|
|
|
|
|
|
|
"city": "San Francisco", |
194
|
|
|
|
|
|
|
"country": "US", |
195
|
|
|
|
|
|
|
"name": "Rocket Rides", |
196
|
|
|
|
|
|
|
"network_id": "1234567890", |
197
|
|
|
|
|
|
|
"postal_code": "94107", |
198
|
|
|
|
|
|
|
"state": "CA", |
199
|
|
|
|
|
|
|
"url": null |
200
|
|
|
|
|
|
|
}, |
201
|
|
|
|
|
|
|
"metadata": {}, |
202
|
|
|
|
|
|
|
"type": "capture" |
203
|
|
|
|
|
|
|
} |
204
|
|
|
|
|
|
|
], |
205
|
|
|
|
|
|
|
"verification_data": { |
206
|
|
|
|
|
|
|
"address_line1_check": "not_provided", |
207
|
|
|
|
|
|
|
"address_zip_check": "match", |
208
|
|
|
|
|
|
|
"authentication": "none", |
209
|
|
|
|
|
|
|
"cvc_check": "match" |
210
|
|
|
|
|
|
|
}, |
211
|
|
|
|
|
|
|
"wallet_provider": null |
212
|
|
|
|
|
|
|
} |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=head1 HISTORY |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=head2 v0.1 |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
Initial version |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=head1 AUTHOR |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=head1 SEE ALSO |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
Stripe API documentation: |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
235
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=cut |