stripe 3.0.3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +23 -0
- data/Gemfile +1 -2
- data/History.txt +4 -0
- data/README.md +28 -3
- data/Rakefile +0 -12
- data/VERSION +1 -1
- data/lib/stripe.rb +24 -0
- data/lib/stripe/stripe_client.rb +166 -19
- data/lib/stripe/util.rb +127 -8
- data/lib/stripe/version.rb +1 -1
- data/test/api_stub_helpers.rb +0 -125
- data/test/stripe/account_test.rb +11 -13
- data/test/stripe/alipay_account_test.rb +2 -4
- data/test/stripe/api_resource_test.rb +112 -76
- data/test/stripe/apple_pay_domain_test.rb +4 -6
- data/test/stripe/application_fee_refund_test.rb +2 -5
- data/test/stripe/application_fee_test.rb +0 -2
- data/test/stripe/bank_account_test.rb +8 -13
- data/test/stripe/bitcoin_receiver_test.rb +13 -16
- data/test/stripe/bitcoin_transaction_test.rb +2 -4
- data/test/stripe/charge_test.rb +9 -11
- data/test/stripe/country_spec_test.rb +2 -4
- data/test/stripe/coupon_test.rb +6 -8
- data/test/stripe/customer_card_test.rb +13 -9
- data/test/stripe/customer_test.rb +16 -18
- data/test/stripe/dispute_test.rb +8 -10
- data/test/stripe/file_upload_test.rb +3 -3
- data/test/stripe/invoice_item_test.rb +9 -11
- data/test/stripe/invoice_line_item_test.rb +0 -1
- data/test/stripe/invoice_test.rb +39 -21
- data/test/stripe/list_object_test.rb +1 -1
- data/test/stripe/login_link_test.rb +6 -7
- data/test/stripe/order_return_test.rb +2 -4
- data/test/stripe/order_test.rb +10 -12
- data/test/stripe/payout_test.rb +7 -9
- data/test/stripe/plan_test.rb +8 -10
- data/test/stripe/product_test.rb +8 -10
- data/test/stripe/recipient_card_test.rb +13 -9
- data/test/stripe/recipient_test.rb +8 -10
- data/test/stripe/refund_test.rb +7 -9
- data/test/stripe/reversal_test.rb +5 -7
- data/test/stripe/sku_test.rb +9 -11
- data/test/stripe/source_test.rb +16 -15
- data/test/stripe/stripe_client_test.rb +190 -26
- data/test/stripe/subscription_item_test.rb +12 -14
- data/test/stripe/subscription_test.rb +10 -12
- data/test/stripe/three_d_secure_test.rb +3 -5
- data/test/stripe/transfer_test.rb +7 -9
- data/test/stripe/util_test.rb +164 -0
- data/test/test_helper.rb +33 -18
- metadata +2 -8
- data/openapi/fixtures.json +0 -1896
- data/openapi/fixtures.yaml +0 -1505
- data/openapi/spec2.json +0 -24601
- data/openapi/spec2.yaml +0 -18801
- data/test/api_fixtures.rb +0 -29
data/openapi/fixtures.json
DELETED
@@ -1,1896 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"resources": {
|
3
|
-
"account": {
|
4
|
-
"active_payment_methods": [
|
5
|
-
|
6
|
-
],
|
7
|
-
"business_logo": "",
|
8
|
-
"business_name": "",
|
9
|
-
"business_primary_color": "",
|
10
|
-
"business_url": "",
|
11
|
-
"charges_enabled": false,
|
12
|
-
"country": "US",
|
13
|
-
"debit_negative_balances": true,
|
14
|
-
"decline_charge_on": {
|
15
|
-
"avs_failure": true,
|
16
|
-
"cvc_failure": false
|
17
|
-
},
|
18
|
-
"default_currency": "usd",
|
19
|
-
"details_submitted": false,
|
20
|
-
"display_name": "",
|
21
|
-
"email": "site@stripe.com",
|
22
|
-
"external_accounts": {
|
23
|
-
"data": [
|
24
|
-
|
25
|
-
],
|
26
|
-
"has_more": false,
|
27
|
-
"object": "list",
|
28
|
-
"total_count": 0,
|
29
|
-
"url": "/v1/accounts/acct_19tLK7DSlTMT26Mk/external_accounts"
|
30
|
-
},
|
31
|
-
"fake_account": false,
|
32
|
-
"id": "acct_19tLK7DSlTMT26Mk",
|
33
|
-
"legal_entity": {
|
34
|
-
"address": {
|
35
|
-
"city": null,
|
36
|
-
"country": "US",
|
37
|
-
"line1": null,
|
38
|
-
"line2": null,
|
39
|
-
"postal_code": null,
|
40
|
-
"state": null
|
41
|
-
},
|
42
|
-
"business_name": null,
|
43
|
-
"business_tax_id_provided": false,
|
44
|
-
"dob": {
|
45
|
-
"day": null,
|
46
|
-
"month": null,
|
47
|
-
"year": null
|
48
|
-
},
|
49
|
-
"first_name": null,
|
50
|
-
"last_name": null,
|
51
|
-
"personal_address": {
|
52
|
-
"city": null,
|
53
|
-
"country": "US",
|
54
|
-
"line1": null,
|
55
|
-
"line2": null,
|
56
|
-
"postal_code": null,
|
57
|
-
"state": null
|
58
|
-
},
|
59
|
-
"ssn_last_4_provided": false,
|
60
|
-
"type": null,
|
61
|
-
"verification": {
|
62
|
-
"details": null,
|
63
|
-
"details_code": "failed_other",
|
64
|
-
"document": null,
|
65
|
-
"status": "unverified"
|
66
|
-
}
|
67
|
-
},
|
68
|
-
"login_links": {
|
69
|
-
},
|
70
|
-
"mcc": "",
|
71
|
-
"metadata": {
|
72
|
-
},
|
73
|
-
"object": "account",
|
74
|
-
"orders": {
|
75
|
-
},
|
76
|
-
"payout_schedule": {
|
77
|
-
"delay_days": 2,
|
78
|
-
"interval": "daily"
|
79
|
-
},
|
80
|
-
"payout_statement_descriptor": "",
|
81
|
-
"payouts_enabled": false,
|
82
|
-
"product_description": "",
|
83
|
-
"risk_details": {
|
84
|
-
},
|
85
|
-
"statement_descriptor": "",
|
86
|
-
"support_address": {
|
87
|
-
},
|
88
|
-
"support_email": "",
|
89
|
-
"support_phone": "",
|
90
|
-
"support_url": "",
|
91
|
-
"timezone": "Etc/UTC",
|
92
|
-
"tos_acceptance": {
|
93
|
-
"date": null,
|
94
|
-
"ip": null,
|
95
|
-
"user_agent": null
|
96
|
-
},
|
97
|
-
"type": "",
|
98
|
-
"verification": {
|
99
|
-
"disabled_reason": "fields_needed",
|
100
|
-
"due_by": null,
|
101
|
-
"fields_needed": [
|
102
|
-
"business_url",
|
103
|
-
"external_account",
|
104
|
-
"product_description",
|
105
|
-
"support_phone",
|
106
|
-
"tos_acceptance.date",
|
107
|
-
"tos_acceptance.ip"
|
108
|
-
]
|
109
|
-
}
|
110
|
-
},
|
111
|
-
"account_debit_account": {
|
112
|
-
"id": "acct_1A7AbkBbzgiusCZl",
|
113
|
-
"object": "account"
|
114
|
-
},
|
115
|
-
"account_with_keys": {
|
116
|
-
"active_payment_methods": [
|
117
|
-
|
118
|
-
],
|
119
|
-
"business_logo": "",
|
120
|
-
"business_name": "",
|
121
|
-
"business_primary_color": "",
|
122
|
-
"business_url": "",
|
123
|
-
"charges_enabled": false,
|
124
|
-
"country": "US",
|
125
|
-
"debit_negative_balances": false,
|
126
|
-
"decline_charge_on": {
|
127
|
-
},
|
128
|
-
"default_currency": "usd",
|
129
|
-
"details_submitted": false,
|
130
|
-
"display_name": "",
|
131
|
-
"email": "site@stripe.com",
|
132
|
-
"external_accounts": {
|
133
|
-
},
|
134
|
-
"fake_account": false,
|
135
|
-
"id": "acct_19tLK7DSlTMT26Mk",
|
136
|
-
"keys": {
|
137
|
-
},
|
138
|
-
"legal_entity": {
|
139
|
-
},
|
140
|
-
"login_links": {
|
141
|
-
},
|
142
|
-
"mcc": "",
|
143
|
-
"metadata": {
|
144
|
-
},
|
145
|
-
"object": "account",
|
146
|
-
"orders": {
|
147
|
-
},
|
148
|
-
"payout_schedule": {
|
149
|
-
},
|
150
|
-
"payout_statement_descriptor": "",
|
151
|
-
"payouts_enabled": false,
|
152
|
-
"product_description": "",
|
153
|
-
"risk_details": {
|
154
|
-
},
|
155
|
-
"statement_descriptor": "",
|
156
|
-
"support_address": {
|
157
|
-
},
|
158
|
-
"support_email": "",
|
159
|
-
"support_phone": "",
|
160
|
-
"support_url": "",
|
161
|
-
"timezone": "Etc/UTC",
|
162
|
-
"tos_acceptance": {
|
163
|
-
},
|
164
|
-
"type": "",
|
165
|
-
"verification": {
|
166
|
-
}
|
167
|
-
},
|
168
|
-
"alipay_account": {
|
169
|
-
"created": 1234567890,
|
170
|
-
"customer": "",
|
171
|
-
"fingerprint": "NYUNwalrZGyUB5WV",
|
172
|
-
"id": "aliacc_19zuujDSlTMT26MkefiECdjT",
|
173
|
-
"livemode": false,
|
174
|
-
"metadata": {
|
175
|
-
},
|
176
|
-
"object": "alipay_account",
|
177
|
-
"payment_amount": 1000,
|
178
|
-
"payment_currency": "usd",
|
179
|
-
"reusable": true,
|
180
|
-
"used": false,
|
181
|
-
"username": "test@example.com"
|
182
|
-
},
|
183
|
-
"apple_pay_domain": {
|
184
|
-
"created": 1234567890,
|
185
|
-
"domain_name": "example.com",
|
186
|
-
"id": "apwc_19zuugDSlTMT26MkaEqesPjq",
|
187
|
-
"livemode": false,
|
188
|
-
"object": "apple_pay_domain"
|
189
|
-
},
|
190
|
-
"balance": {
|
191
|
-
"available": [
|
192
|
-
{
|
193
|
-
"amount": 0,
|
194
|
-
"currency": "usd",
|
195
|
-
"source_types": {
|
196
|
-
"card": 0
|
197
|
-
}
|
198
|
-
},
|
199
|
-
{
|
200
|
-
"amount": 0,
|
201
|
-
"currency": "eur",
|
202
|
-
"source_types": {
|
203
|
-
"card": 0
|
204
|
-
}
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"amount": -102,
|
208
|
-
"currency": "gbp",
|
209
|
-
"source_types": {
|
210
|
-
"card": -102
|
211
|
-
}
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"amount": -40320,
|
215
|
-
"currency": "jpy",
|
216
|
-
"source_types": {
|
217
|
-
"card": -40320
|
218
|
-
}
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"amount": 0,
|
222
|
-
"currency": "nzd",
|
223
|
-
"source_types": {
|
224
|
-
"card": 0
|
225
|
-
}
|
226
|
-
},
|
227
|
-
{
|
228
|
-
"amount": 17550857311,
|
229
|
-
"currency": "usd",
|
230
|
-
"source_types": {
|
231
|
-
"bank_account": 107213388,
|
232
|
-
"bitcoin_receiver": 1545182,
|
233
|
-
"card": 17442098741
|
234
|
-
}
|
235
|
-
}
|
236
|
-
],
|
237
|
-
"connect_reserved": [
|
238
|
-
{
|
239
|
-
"amount": 0,
|
240
|
-
"currency": "aud"
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"amount": 0,
|
244
|
-
"currency": "eur"
|
245
|
-
},
|
246
|
-
{
|
247
|
-
"amount": 0,
|
248
|
-
"currency": "gbp"
|
249
|
-
},
|
250
|
-
{
|
251
|
-
"amount": 0,
|
252
|
-
"currency": "jpy"
|
253
|
-
},
|
254
|
-
{
|
255
|
-
"amount": 0,
|
256
|
-
"currency": "nzd"
|
257
|
-
},
|
258
|
-
{
|
259
|
-
"amount": 0,
|
260
|
-
"currency": "usd"
|
261
|
-
}
|
262
|
-
],
|
263
|
-
"livemode": false,
|
264
|
-
"object": "balance",
|
265
|
-
"pending": [
|
266
|
-
{
|
267
|
-
"amount": 0,
|
268
|
-
"currency": "usd",
|
269
|
-
"source_types": {
|
270
|
-
"card": 0
|
271
|
-
}
|
272
|
-
},
|
273
|
-
{
|
274
|
-
"amount": -17109,
|
275
|
-
"currency": "eur",
|
276
|
-
"source_types": {
|
277
|
-
"card": -17109
|
278
|
-
}
|
279
|
-
},
|
280
|
-
{
|
281
|
-
"amount": -81045,
|
282
|
-
"currency": "gbp",
|
283
|
-
"source_types": {
|
284
|
-
"card": -81045
|
285
|
-
}
|
286
|
-
},
|
287
|
-
{
|
288
|
-
"amount": 0,
|
289
|
-
"currency": "jpy",
|
290
|
-
"source_types": {
|
291
|
-
"card": 0
|
292
|
-
}
|
293
|
-
},
|
294
|
-
{
|
295
|
-
"amount": 1060,
|
296
|
-
"currency": "nzd",
|
297
|
-
"source_types": {
|
298
|
-
"card": 1060
|
299
|
-
}
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"amount": 11940215798,
|
303
|
-
"currency": "usd",
|
304
|
-
"source_types": {
|
305
|
-
"bank_account": 0,
|
306
|
-
"bitcoin_receiver": 6944,
|
307
|
-
"card": 11940208854
|
308
|
-
}
|
309
|
-
}
|
310
|
-
]
|
311
|
-
},
|
312
|
-
"balance_transaction": {
|
313
|
-
"amount": 100,
|
314
|
-
"automatic_transfer": {
|
315
|
-
},
|
316
|
-
"available_on": 1234567890,
|
317
|
-
"created": 1234567890,
|
318
|
-
"currency": "usd",
|
319
|
-
"description": "",
|
320
|
-
"fee": 0,
|
321
|
-
"fee_details": [
|
322
|
-
{
|
323
|
-
"amount": 90,
|
324
|
-
"application": null,
|
325
|
-
"currency": "usd",
|
326
|
-
"description": "Stripe processing fees",
|
327
|
-
"type": "stripe_fee"
|
328
|
-
}
|
329
|
-
],
|
330
|
-
"id": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
|
331
|
-
"net": 100,
|
332
|
-
"object": "balance_transaction",
|
333
|
-
"source": "ch_19zuuhDSlTMT26MkKLSiekJ9",
|
334
|
-
"sourced_transfers": {
|
335
|
-
},
|
336
|
-
"status": "pending",
|
337
|
-
"type": "charge"
|
338
|
-
},
|
339
|
-
"bank_account": {
|
340
|
-
"account": "acct_19tLK7DSlTMT26Mk",
|
341
|
-
"account_holder_name": "Jane Austen",
|
342
|
-
"account_holder_type": "individual",
|
343
|
-
"address_city": "",
|
344
|
-
"address_line1": "",
|
345
|
-
"address_line2": "",
|
346
|
-
"address_state": "",
|
347
|
-
"address_zip": "",
|
348
|
-
"allows_debits": false,
|
349
|
-
"bank_name": "STRIPE TEST BANK",
|
350
|
-
"bank_phone_number": "",
|
351
|
-
"country": "US",
|
352
|
-
"currency": "usd",
|
353
|
-
"customer": "",
|
354
|
-
"customer_reference": "",
|
355
|
-
"default_for_currency": false,
|
356
|
-
"fingerprint": "ryfzKJTPWAUfw2iL",
|
357
|
-
"id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
|
358
|
-
"last4": "6789",
|
359
|
-
"metadata": {
|
360
|
-
},
|
361
|
-
"object": "bank_account",
|
362
|
-
"reusable": false,
|
363
|
-
"routing_number": "110000000",
|
364
|
-
"status": "new",
|
365
|
-
"used": false
|
366
|
-
},
|
367
|
-
"bitcoin_receiver": {
|
368
|
-
"active": true,
|
369
|
-
"amount": 100,
|
370
|
-
"amount_received": 0,
|
371
|
-
"bitcoin_amount": 1757908,
|
372
|
-
"bitcoin_amount_received": 0,
|
373
|
-
"bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908",
|
374
|
-
"created": 1234567890,
|
375
|
-
"currency": "usd",
|
376
|
-
"customer": "",
|
377
|
-
"description": "Receiver for John Doe",
|
378
|
-
"email": "test@example.com",
|
379
|
-
"filled": true,
|
380
|
-
"id": "btcrcv_19zYqFDSlTMT26Mk31J1pMex",
|
381
|
-
"inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
|
382
|
-
"livemode": false,
|
383
|
-
"metadata": {
|
384
|
-
},
|
385
|
-
"object": "bitcoin_receiver",
|
386
|
-
"payment": "",
|
387
|
-
"refund_address": "",
|
388
|
-
"transactions": {
|
389
|
-
"data": [
|
390
|
-
{
|
391
|
-
"amount": 300,
|
392
|
-
"bitcoin_amount": 3000000,
|
393
|
-
"created": 1497681357,
|
394
|
-
"currency": "usd",
|
395
|
-
"id": "btctxn_1AVaXJ2eZvKYlo2C5VpM5f5l",
|
396
|
-
"object": "bitcoin_transaction",
|
397
|
-
"receiver": "btcrcv_1AVaXF2eZvKYlo2CKSplb16t"
|
398
|
-
}
|
399
|
-
],
|
400
|
-
"has_more": false,
|
401
|
-
"object": "list",
|
402
|
-
"total_count": 1,
|
403
|
-
"url": "/v1/bitcoin/receivers/btcrcv_1AGMTU2eZvKYlo2CK7mXHmc8/transactions"
|
404
|
-
},
|
405
|
-
"uncaptured_funds": true,
|
406
|
-
"used_for_payment": false
|
407
|
-
},
|
408
|
-
"bitcoin_transaction": {
|
409
|
-
"amount": 100,
|
410
|
-
"bitcoin_amount": 1757908,
|
411
|
-
"created": 1234567890,
|
412
|
-
"currency": "usd",
|
413
|
-
"id": "btctxn_19zuujDSlTMT26MkHOZALNf7",
|
414
|
-
"object": "bitcoin_transaction",
|
415
|
-
"receiver": "btcrcv_19zYqFDSlTMT26Mk31J1pMex"
|
416
|
-
},
|
417
|
-
"card": {
|
418
|
-
"3d_secure": {
|
419
|
-
},
|
420
|
-
"account": "",
|
421
|
-
"address_city": "",
|
422
|
-
"address_country": "",
|
423
|
-
"address_line1": "",
|
424
|
-
"address_line1_check": "",
|
425
|
-
"address_line2": "",
|
426
|
-
"address_state": "",
|
427
|
-
"address_zip": "",
|
428
|
-
"address_zip_check": "",
|
429
|
-
"available_payout_methods": [
|
430
|
-
|
431
|
-
],
|
432
|
-
"brand": "Visa",
|
433
|
-
"country": "",
|
434
|
-
"currency": "",
|
435
|
-
"customer": "",
|
436
|
-
"cvc_check": "",
|
437
|
-
"default_for_currency": false,
|
438
|
-
"description": "",
|
439
|
-
"dynamic_last4": "",
|
440
|
-
"emv_auth_data": "",
|
441
|
-
"estimated_availability": "",
|
442
|
-
"exp_month": 8,
|
443
|
-
"exp_year": 2018,
|
444
|
-
"fingerprint": "",
|
445
|
-
"funding": "unknown",
|
446
|
-
"google_reference": "",
|
447
|
-
"id": "card_19tLKYDSlTMT26Mkl7bixGYc",
|
448
|
-
"iin": "",
|
449
|
-
"issuer": "",
|
450
|
-
"last4": "4242",
|
451
|
-
"metadata": {
|
452
|
-
},
|
453
|
-
"name": "",
|
454
|
-
"object": "card",
|
455
|
-
"recipient": "",
|
456
|
-
"three_d_secure": {
|
457
|
-
},
|
458
|
-
"tokenization_method": ""
|
459
|
-
},
|
460
|
-
"charge": {
|
461
|
-
"alternate_statement_descriptors": {
|
462
|
-
},
|
463
|
-
"amount": 100,
|
464
|
-
"amount_authorized": 0,
|
465
|
-
"amount_captured": 0,
|
466
|
-
"amount_refunded": 0,
|
467
|
-
"application": "",
|
468
|
-
"application_fee": "",
|
469
|
-
"application_fees_refunded": 0,
|
470
|
-
"authorization_code": "",
|
471
|
-
"balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
|
472
|
-
"captured": false,
|
473
|
-
"captured_at": 1234567890,
|
474
|
-
"created": 1234567890,
|
475
|
-
"currency": "usd",
|
476
|
-
"customer": "",
|
477
|
-
"description": "My First Test Charge (created for API docs)",
|
478
|
-
"destination": "",
|
479
|
-
"dispute": "",
|
480
|
-
"failure_code": "",
|
481
|
-
"failure_message": "",
|
482
|
-
"fee_balance_transactions": {
|
483
|
-
},
|
484
|
-
"fraud_details": {
|
485
|
-
},
|
486
|
-
"id": "ch_19zuuhDSlTMT26MkKLSiekJ9",
|
487
|
-
"invoice": "",
|
488
|
-
"level3": {
|
489
|
-
},
|
490
|
-
"livemode": false,
|
491
|
-
"metadata": {
|
492
|
-
},
|
493
|
-
"object": "charge",
|
494
|
-
"on_behalf_of": "",
|
495
|
-
"order": "",
|
496
|
-
"outcome": {
|
497
|
-
"network_status": "approved_by_network",
|
498
|
-
"reason": null,
|
499
|
-
"risk_level": "normal",
|
500
|
-
"seller_message": "Payment complete.",
|
501
|
-
"type": "authorized"
|
502
|
-
},
|
503
|
-
"paid": false,
|
504
|
-
"receipt_email": "",
|
505
|
-
"receipt_number": "",
|
506
|
-
"refunded": false,
|
507
|
-
"refunds": {
|
508
|
-
"data": [
|
509
|
-
|
510
|
-
],
|
511
|
-
"has_more": false,
|
512
|
-
"object": "list",
|
513
|
-
"total_count": 0,
|
514
|
-
"url": "/v1/charges/ch_19zuuhDSlTMT26MkKLSiekJ9/refunds"
|
515
|
-
},
|
516
|
-
"review": "",
|
517
|
-
"shipping": {
|
518
|
-
},
|
519
|
-
"source": {
|
520
|
-
"address_city": null,
|
521
|
-
"address_country": null,
|
522
|
-
"address_line1": null,
|
523
|
-
"address_line1_check": null,
|
524
|
-
"address_line2": null,
|
525
|
-
"address_state": null,
|
526
|
-
"address_zip": null,
|
527
|
-
"address_zip_check": null,
|
528
|
-
"brand": "Visa",
|
529
|
-
"country": "US",
|
530
|
-
"customer": "cus_9OO7KuH8wgmdfa",
|
531
|
-
"cvc_check": null,
|
532
|
-
"dynamic_last4": null,
|
533
|
-
"exp_month": 8,
|
534
|
-
"exp_year": 2018,
|
535
|
-
"fingerprint": "Xt5EWLLDS7FJjR1c",
|
536
|
-
"funding": "unknown",
|
537
|
-
"id": "card_19tLKYDSlTMT26Mkl7bixGYc",
|
538
|
-
"last4": "4242",
|
539
|
-
"metadata": {
|
540
|
-
},
|
541
|
-
"name": "nandkishor.webnware@gmail.com",
|
542
|
-
"object": "card",
|
543
|
-
"tokenization_method": null
|
544
|
-
},
|
545
|
-
"source_transfer": "",
|
546
|
-
"statement_descriptor": "",
|
547
|
-
"status": "succeeded",
|
548
|
-
"transfer": "",
|
549
|
-
"transfer_group": "",
|
550
|
-
"trust": {
|
551
|
-
}
|
552
|
-
},
|
553
|
-
"country_spec": {
|
554
|
-
"default_currency": "usd",
|
555
|
-
"field_schemas": {
|
556
|
-
},
|
557
|
-
"id": "US",
|
558
|
-
"object": "country_spec",
|
559
|
-
"supported_bank_account_currencies": {
|
560
|
-
"usd": [
|
561
|
-
"US"
|
562
|
-
]
|
563
|
-
},
|
564
|
-
"supported_payment_currencies": [
|
565
|
-
"...",
|
566
|
-
"aed",
|
567
|
-
"afn",
|
568
|
-
"usd"
|
569
|
-
],
|
570
|
-
"supported_payment_methods": [
|
571
|
-
"alipay",
|
572
|
-
"card",
|
573
|
-
"stripe"
|
574
|
-
],
|
575
|
-
"verification_fields": {
|
576
|
-
"company": {
|
577
|
-
"additional": [
|
578
|
-
"legal_entity.verification.document",
|
579
|
-
"legal_entity.verification.document"
|
580
|
-
],
|
581
|
-
"minimum": [
|
582
|
-
"external_account",
|
583
|
-
"legal_entity.address.city",
|
584
|
-
"legal_entity.address.line1",
|
585
|
-
"legal_entity.address.postal_code",
|
586
|
-
"legal_entity.address.state",
|
587
|
-
"legal_entity.business_name",
|
588
|
-
"legal_entity.business_tax_id",
|
589
|
-
"legal_entity.dob.day",
|
590
|
-
"legal_entity.dob.month",
|
591
|
-
"legal_entity.dob.year",
|
592
|
-
"legal_entity.first_name",
|
593
|
-
"legal_entity.last_name",
|
594
|
-
"legal_entity.ssn_last_4",
|
595
|
-
"legal_entity.type",
|
596
|
-
"tos_acceptance.date",
|
597
|
-
"tos_acceptance.ip"
|
598
|
-
]
|
599
|
-
},
|
600
|
-
"individual": {
|
601
|
-
"additional": [
|
602
|
-
"legal_entity.verification.document",
|
603
|
-
"legal_entity.verification.document"
|
604
|
-
],
|
605
|
-
"minimum": [
|
606
|
-
"external_account",
|
607
|
-
"legal_entity.address.city",
|
608
|
-
"legal_entity.address.line1",
|
609
|
-
"legal_entity.address.postal_code",
|
610
|
-
"legal_entity.address.state",
|
611
|
-
"legal_entity.dob.day",
|
612
|
-
"legal_entity.dob.month",
|
613
|
-
"legal_entity.dob.year",
|
614
|
-
"legal_entity.first_name",
|
615
|
-
"legal_entity.last_name",
|
616
|
-
"legal_entity.ssn_last_4",
|
617
|
-
"legal_entity.type",
|
618
|
-
"tos_acceptance.date",
|
619
|
-
"tos_acceptance.ip"
|
620
|
-
]
|
621
|
-
}
|
622
|
-
}
|
623
|
-
},
|
624
|
-
"coupon": {
|
625
|
-
"amount_off": 0,
|
626
|
-
"created": 1234567890,
|
627
|
-
"currency": "usd",
|
628
|
-
"duration": "repeating",
|
629
|
-
"duration_in_months": 3,
|
630
|
-
"id": "25OFF",
|
631
|
-
"livemode": false,
|
632
|
-
"max_redemptions": 0,
|
633
|
-
"metadata": {
|
634
|
-
},
|
635
|
-
"object": "coupon",
|
636
|
-
"percent_off": 25,
|
637
|
-
"redeem_by": 1234567890,
|
638
|
-
"times_redeemed": 0,
|
639
|
-
"valid": true
|
640
|
-
},
|
641
|
-
"customer": {
|
642
|
-
"account_balance": 0,
|
643
|
-
"alipay_accounts": {
|
644
|
-
},
|
645
|
-
"bank_accounts": {
|
646
|
-
},
|
647
|
-
"business_vat_id": "",
|
648
|
-
"created": 1234567890,
|
649
|
-
"currency": "usd",
|
650
|
-
"default_bank_account": "",
|
651
|
-
"default_source": "",
|
652
|
-
"delinquent": false,
|
653
|
-
"description": "",
|
654
|
-
"discount": {
|
655
|
-
},
|
656
|
-
"email": "",
|
657
|
-
"id": "cus_ADmuABetLS15eF",
|
658
|
-
"invoicing": {
|
659
|
-
},
|
660
|
-
"livemode": false,
|
661
|
-
"metadata": {
|
662
|
-
},
|
663
|
-
"object": "customer",
|
664
|
-
"shipping": {
|
665
|
-
},
|
666
|
-
"sources": {
|
667
|
-
"data": [
|
668
|
-
{
|
669
|
-
"address_city": null,
|
670
|
-
"address_country": null,
|
671
|
-
"address_line1": null,
|
672
|
-
"address_line1_check": null,
|
673
|
-
"address_line2": null,
|
674
|
-
"address_state": null,
|
675
|
-
"address_zip": null,
|
676
|
-
"address_zip_check": null,
|
677
|
-
"brand": "Visa",
|
678
|
-
"country": "US",
|
679
|
-
"customer": "cus_ArMWAboqL9MUMd",
|
680
|
-
"cvc_check": "pass",
|
681
|
-
"dynamic_last4": null,
|
682
|
-
"exp_month": 10,
|
683
|
-
"exp_year": 2017,
|
684
|
-
"fingerprint": "Xt5EWLLDS7FJjR1c",
|
685
|
-
"funding": "credit",
|
686
|
-
"id": "card_1AVdnB2eZvKYlo2CWAH5jK8Z",
|
687
|
-
"last4": "4242",
|
688
|
-
"metadata": {
|
689
|
-
},
|
690
|
-
"name": null,
|
691
|
-
"object": "card",
|
692
|
-
"tokenization_method": null
|
693
|
-
}
|
694
|
-
],
|
695
|
-
"has_more": false,
|
696
|
-
"object": "list",
|
697
|
-
"total_count": 0,
|
698
|
-
"url": "/v1/customers/cus_ADmuABetLS15eF/sources"
|
699
|
-
},
|
700
|
-
"subscription": {
|
701
|
-
},
|
702
|
-
"subscriptions": {
|
703
|
-
"data": [
|
704
|
-
|
705
|
-
],
|
706
|
-
"has_more": false,
|
707
|
-
"object": "list",
|
708
|
-
"total_count": 0,
|
709
|
-
"url": "/v1/customers/cus_AcaooY7ydINUy4/subscriptions"
|
710
|
-
},
|
711
|
-
"trust": {
|
712
|
-
}
|
713
|
-
},
|
714
|
-
"customer_source": {
|
715
|
-
"customer": "",
|
716
|
-
"id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
|
717
|
-
"metadata": {
|
718
|
-
},
|
719
|
-
"object": "bank_account"
|
720
|
-
},
|
721
|
-
"discount": {
|
722
|
-
"coupon": {
|
723
|
-
"amount_off": null,
|
724
|
-
"created": 1490133192,
|
725
|
-
"currency": null,
|
726
|
-
"duration": "repeating",
|
727
|
-
"duration_in_months": null,
|
728
|
-
"id": "25OFF",
|
729
|
-
"livemode": false,
|
730
|
-
"max_redemptions": null,
|
731
|
-
"metadata": {
|
732
|
-
},
|
733
|
-
"object": "coupon",
|
734
|
-
"percent_off": 25,
|
735
|
-
"redeem_by": null,
|
736
|
-
"times_redeemed": 0,
|
737
|
-
"valid": true
|
738
|
-
},
|
739
|
-
"customer": "cus_ADmuABetLS15eF",
|
740
|
-
"end": 1234567890,
|
741
|
-
"object": "discount",
|
742
|
-
"start": 1234567890,
|
743
|
-
"subscription": ""
|
744
|
-
},
|
745
|
-
"dispute": {
|
746
|
-
"accepted_at": 1234567890,
|
747
|
-
"amount": 1000,
|
748
|
-
"balance_transaction": "",
|
749
|
-
"balance_transactions": [
|
750
|
-
{
|
751
|
-
"amount": -1500,
|
752
|
-
"available_on": 1497484800,
|
753
|
-
"created": 1496903761,
|
754
|
-
"currency": "usd",
|
755
|
-
"description": "Chargeback withdrawal for ch_1ASKFR2eZvKYlo2CDLlVsM52",
|
756
|
-
"fee": 1500,
|
757
|
-
"fee_details": [
|
758
|
-
{
|
759
|
-
"amount": 1500,
|
760
|
-
"application": null,
|
761
|
-
"currency": "usd",
|
762
|
-
"description": "Dispute fee",
|
763
|
-
"type": "stripe_fee"
|
764
|
-
}
|
765
|
-
],
|
766
|
-
"id": "txn_1ASKFR2eZvKYlo2C1wu8o4hC",
|
767
|
-
"net": -3000,
|
768
|
-
"object": "balance_transaction",
|
769
|
-
"source": "dp_1ASKFR2eZvKYlo2CErSdTh43",
|
770
|
-
"status": "pending",
|
771
|
-
"type": "adjustment"
|
772
|
-
}
|
773
|
-
],
|
774
|
-
"case_details": {
|
775
|
-
},
|
776
|
-
"charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
|
777
|
-
"closed_at": 1234567890,
|
778
|
-
"created": 1234567890,
|
779
|
-
"currency": "usd",
|
780
|
-
"escalated_at": 1234567890,
|
781
|
-
"evidence": {
|
782
|
-
"access_activity_log": null,
|
783
|
-
"billing_address": null,
|
784
|
-
"cancellation_policy": null,
|
785
|
-
"cancellation_policy_disclosure": null,
|
786
|
-
"cancellation_rebuttal": null,
|
787
|
-
"customer_communication": null,
|
788
|
-
"customer_email_address": null,
|
789
|
-
"customer_name": null,
|
790
|
-
"customer_purchase_ip": null,
|
791
|
-
"customer_signature": null,
|
792
|
-
"duplicate_charge_documentation": null,
|
793
|
-
"duplicate_charge_explanation": null,
|
794
|
-
"duplicate_charge_id": null,
|
795
|
-
"product_description": null,
|
796
|
-
"receipt": null,
|
797
|
-
"refund_policy": null,
|
798
|
-
"refund_policy_disclosure": null,
|
799
|
-
"refund_refusal_explanation": null,
|
800
|
-
"service_date": null,
|
801
|
-
"service_documentation": null,
|
802
|
-
"shipping_address": null,
|
803
|
-
"shipping_carrier": null,
|
804
|
-
"shipping_date": null,
|
805
|
-
"shipping_documentation": null,
|
806
|
-
"shipping_tracking_number": null,
|
807
|
-
"uncategorized_file": null,
|
808
|
-
"uncategorized_text": null
|
809
|
-
},
|
810
|
-
"evidence_details": {
|
811
|
-
"due_by": 1491782399,
|
812
|
-
"has_evidence": false,
|
813
|
-
"past_due": false,
|
814
|
-
"submission_count": 0
|
815
|
-
},
|
816
|
-
"evidence_submitted_at": [
|
817
|
-
|
818
|
-
],
|
819
|
-
"id": "dp_19zuuhDSlTMT26Mkp7PHaa4O",
|
820
|
-
"is_charge_refundable": false,
|
821
|
-
"is_protected": false,
|
822
|
-
"issuer": "",
|
823
|
-
"livemode": false,
|
824
|
-
"loss_reason": "",
|
825
|
-
"metadata": {
|
826
|
-
},
|
827
|
-
"network_reason_code": "",
|
828
|
-
"object": "dispute",
|
829
|
-
"reason": "general",
|
830
|
-
"status": "needs_response"
|
831
|
-
},
|
832
|
-
"ephemeral_key": {
|
833
|
-
"associated_objects": [
|
834
|
-
{
|
835
|
-
"id": "cu_1AVdnC2eZvKYlo2C397mApcW",
|
836
|
-
"type": "customer"
|
837
|
-
}
|
838
|
-
],
|
839
|
-
"created": 1234567890,
|
840
|
-
"expires": 1234567890,
|
841
|
-
"id": "ephkey_1AWsWs2eZvKYlo2ChEEYmF12",
|
842
|
-
"livemode": false,
|
843
|
-
"object": "ephemeral_key"
|
844
|
-
},
|
845
|
-
"ephemeral_key_with_secret": {
|
846
|
-
"associated_objects": [
|
847
|
-
{
|
848
|
-
"id": "cu_1AVdnC2eZvKYlo2C397mApcW",
|
849
|
-
"type": "customer"
|
850
|
-
}
|
851
|
-
],
|
852
|
-
"created": 1234567890,
|
853
|
-
"expires": 1234567890,
|
854
|
-
"id": "ephkey_1AWsWs2eZvKYlo2ChEEYmF12",
|
855
|
-
"livemode": false,
|
856
|
-
"object": "ephemeral_key",
|
857
|
-
"secret": ""
|
858
|
-
},
|
859
|
-
"event": {
|
860
|
-
"api_version": "2017-02-14",
|
861
|
-
"created": 1234567890,
|
862
|
-
"customer_email": "",
|
863
|
-
"data": {
|
864
|
-
"object": {
|
865
|
-
"available": [
|
866
|
-
{
|
867
|
-
"amount": -88,
|
868
|
-
"currency": "aud",
|
869
|
-
"source_types": {
|
870
|
-
"card": -88
|
871
|
-
}
|
872
|
-
},
|
873
|
-
{
|
874
|
-
"amount": 0,
|
875
|
-
"currency": "eur",
|
876
|
-
"source_types": {
|
877
|
-
"card": 0
|
878
|
-
}
|
879
|
-
},
|
880
|
-
{
|
881
|
-
"amount": -102,
|
882
|
-
"currency": "gbp",
|
883
|
-
"source_types": {
|
884
|
-
"card": -102
|
885
|
-
}
|
886
|
-
},
|
887
|
-
{
|
888
|
-
"amount": -40320,
|
889
|
-
"currency": "jpy",
|
890
|
-
"source_types": {
|
891
|
-
"card": -40320
|
892
|
-
}
|
893
|
-
},
|
894
|
-
{
|
895
|
-
"amount": 0,
|
896
|
-
"currency": "nzd",
|
897
|
-
"source_types": {
|
898
|
-
"card": 0
|
899
|
-
}
|
900
|
-
},
|
901
|
-
{
|
902
|
-
"amount": 17550857811,
|
903
|
-
"currency": "usd",
|
904
|
-
"source_types": {
|
905
|
-
"bank_account": 107213388,
|
906
|
-
"bitcoin_receiver": 1545182,
|
907
|
-
"card": 17442099241
|
908
|
-
}
|
909
|
-
}
|
910
|
-
],
|
911
|
-
"connect_reserved": [
|
912
|
-
{
|
913
|
-
"amount": 0,
|
914
|
-
"currency": "aud"
|
915
|
-
},
|
916
|
-
{
|
917
|
-
"amount": 0,
|
918
|
-
"currency": "eur"
|
919
|
-
},
|
920
|
-
{
|
921
|
-
"amount": 0,
|
922
|
-
"currency": "gbp"
|
923
|
-
},
|
924
|
-
{
|
925
|
-
"amount": 0,
|
926
|
-
"currency": "jpy"
|
927
|
-
},
|
928
|
-
{
|
929
|
-
"amount": 0,
|
930
|
-
"currency": "nzd"
|
931
|
-
},
|
932
|
-
{
|
933
|
-
"amount": 0,
|
934
|
-
"currency": "usd"
|
935
|
-
}
|
936
|
-
],
|
937
|
-
"livemode": false,
|
938
|
-
"object": "customer",
|
939
|
-
"pending": [
|
940
|
-
{
|
941
|
-
"amount": 0,
|
942
|
-
"currency": "aud",
|
943
|
-
"source_types": {
|
944
|
-
"card": 0
|
945
|
-
}
|
946
|
-
},
|
947
|
-
{
|
948
|
-
"amount": -17109,
|
949
|
-
"currency": "eur",
|
950
|
-
"source_types": {
|
951
|
-
"card": -17109
|
952
|
-
}
|
953
|
-
},
|
954
|
-
{
|
955
|
-
"amount": -81045,
|
956
|
-
"currency": "gbp",
|
957
|
-
"source_types": {
|
958
|
-
"card": -81045
|
959
|
-
}
|
960
|
-
},
|
961
|
-
{
|
962
|
-
"amount": 0,
|
963
|
-
"currency": "jpy",
|
964
|
-
"source_types": {
|
965
|
-
"card": 0
|
966
|
-
}
|
967
|
-
},
|
968
|
-
{
|
969
|
-
"amount": 1060,
|
970
|
-
"currency": "nzd",
|
971
|
-
"source_types": {
|
972
|
-
"card": 1060
|
973
|
-
}
|
974
|
-
},
|
975
|
-
{
|
976
|
-
"amount": 11939932938,
|
977
|
-
"currency": "usd",
|
978
|
-
"source_types": {
|
979
|
-
"bank_account": 0,
|
980
|
-
"bitcoin_receiver": 6944,
|
981
|
-
"card": 11939925994
|
982
|
-
}
|
983
|
-
}
|
984
|
-
]
|
985
|
-
}
|
986
|
-
},
|
987
|
-
"id": "evt_19tLKfDSlTMT26MkKD3pohqX",
|
988
|
-
"livemode": false,
|
989
|
-
"object": "event",
|
990
|
-
"pending_webhooks": 0,
|
991
|
-
"recipient_best_description": "",
|
992
|
-
"request": {
|
993
|
-
"id": "req_ArJ9y3DcEShbw2",
|
994
|
-
"idempotency_key": null
|
995
|
-
},
|
996
|
-
"type": "customer.created"
|
997
|
-
},
|
998
|
-
"external_account_source": {
|
999
|
-
"account": "acct_19tLK7DSlTMT26Mk",
|
1000
|
-
"address_city": "",
|
1001
|
-
"address_line1": "",
|
1002
|
-
"address_line2": "",
|
1003
|
-
"address_state": "",
|
1004
|
-
"address_zip": "",
|
1005
|
-
"country": "US",
|
1006
|
-
"currency": "usd",
|
1007
|
-
"customer": "",
|
1008
|
-
"default_for_currency": false,
|
1009
|
-
"fingerprint": "ryfzKJTPWAUfw2iL",
|
1010
|
-
"id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
|
1011
|
-
"last4": "6789",
|
1012
|
-
"metadata": {
|
1013
|
-
},
|
1014
|
-
"object": "bank_account"
|
1015
|
-
},
|
1016
|
-
"fee_refund": {
|
1017
|
-
"amount": 100,
|
1018
|
-
"balance_transaction": "",
|
1019
|
-
"created": 1234567890,
|
1020
|
-
"currency": "usd",
|
1021
|
-
"fee": "fee_19zuujDSlTMT26MkEMvXUsIx",
|
1022
|
-
"id": "fr_AKa4dv904Dvl5q",
|
1023
|
-
"metadata": {
|
1024
|
-
},
|
1025
|
-
"object": "fee_refund"
|
1026
|
-
},
|
1027
|
-
"invoice": {
|
1028
|
-
"amount_due": 0,
|
1029
|
-
"application_fee": 0,
|
1030
|
-
"attempt_count": 0,
|
1031
|
-
"attempted": true,
|
1032
|
-
"billing": "",
|
1033
|
-
"charge": "",
|
1034
|
-
"closed": true,
|
1035
|
-
"currency": "usd",
|
1036
|
-
"customer": "cus_ADmuABetLS15eF",
|
1037
|
-
"date": 1234567890,
|
1038
|
-
"description": "",
|
1039
|
-
"discount": {
|
1040
|
-
},
|
1041
|
-
"due_date": 1234567890,
|
1042
|
-
"ending_balance": 0,
|
1043
|
-
"forgiven": false,
|
1044
|
-
"id": "in_19zuuiDSlTMT26Mk1XitxqCb",
|
1045
|
-
"lines": {
|
1046
|
-
"data": [
|
1047
|
-
{
|
1048
|
-
"amount": 2000,
|
1049
|
-
"currency": "usd",
|
1050
|
-
"description": null,
|
1051
|
-
"discountable": true,
|
1052
|
-
"id": "sub_AKa4uss8vCMAZC",
|
1053
|
-
"livemode": true,
|
1054
|
-
"metadata": {
|
1055
|
-
},
|
1056
|
-
"object": "line_item",
|
1057
|
-
"period": {
|
1058
|
-
"end": 1495403592,
|
1059
|
-
"start": 1492811592
|
1060
|
-
},
|
1061
|
-
"plan": {
|
1062
|
-
"amount": 2000,
|
1063
|
-
"created": 1488566449,
|
1064
|
-
"currency": "usd",
|
1065
|
-
"id": "gold",
|
1066
|
-
"interval": "month",
|
1067
|
-
"interval_count": 1,
|
1068
|
-
"livemode": false,
|
1069
|
-
"metadata": {
|
1070
|
-
},
|
1071
|
-
"name": "Gold Special",
|
1072
|
-
"object": "plan",
|
1073
|
-
"statement_descriptor": null,
|
1074
|
-
"trial_period_days": null
|
1075
|
-
},
|
1076
|
-
"proration": false,
|
1077
|
-
"quantity": 1,
|
1078
|
-
"subscription": null,
|
1079
|
-
"subscription_item": "si_19zuuiDSlTMT26Mk9HayBPe9",
|
1080
|
-
"type": "subscription"
|
1081
|
-
}
|
1082
|
-
],
|
1083
|
-
"object": "list",
|
1084
|
-
"total_count": 1,
|
1085
|
-
"url": "/v1/invoices/in_19zuuiDSlTMT26Mk1XitxqCb/lines"
|
1086
|
-
},
|
1087
|
-
"livemode": false,
|
1088
|
-
"metadata": {
|
1089
|
-
},
|
1090
|
-
"next_payment_attempt": 1234567890,
|
1091
|
-
"number": "",
|
1092
|
-
"object": "invoice",
|
1093
|
-
"paid": true,
|
1094
|
-
"period_end": 1234567890,
|
1095
|
-
"period_start": 1234567890,
|
1096
|
-
"receipt_number": "",
|
1097
|
-
"send_next_at": 1234567890,
|
1098
|
-
"starting_balance": 0,
|
1099
|
-
"statement_descriptor": "",
|
1100
|
-
"subscription": "",
|
1101
|
-
"subscription_proration_date": 0,
|
1102
|
-
"subtotal": 0,
|
1103
|
-
"tax": 0,
|
1104
|
-
"tax_percent": 0.0,
|
1105
|
-
"total": 0,
|
1106
|
-
"webhooks_delivered_at": 1234567890
|
1107
|
-
},
|
1108
|
-
"invoice_item": {
|
1109
|
-
"amount": 1000,
|
1110
|
-
"currency": "usd",
|
1111
|
-
"customer": "cus_ADmuABetLS15eF",
|
1112
|
-
"date": 1234567890,
|
1113
|
-
"description": "My First Invoice Item (created for API docs)",
|
1114
|
-
"discountable": true,
|
1115
|
-
"id": "ii_19zuuiDSlTMT26MkvsaAgAi7",
|
1116
|
-
"invoice": "",
|
1117
|
-
"livemode": false,
|
1118
|
-
"metadata": {
|
1119
|
-
},
|
1120
|
-
"object": "invoiceitem",
|
1121
|
-
"period": {
|
1122
|
-
"end": 1490133192,
|
1123
|
-
"start": 1490133192
|
1124
|
-
},
|
1125
|
-
"plan": {
|
1126
|
-
},
|
1127
|
-
"proration": false,
|
1128
|
-
"quantity": 0,
|
1129
|
-
"subscription": "",
|
1130
|
-
"subscription_item": ""
|
1131
|
-
},
|
1132
|
-
"invoice_line_item": {
|
1133
|
-
"amount": 1000,
|
1134
|
-
"currency": "usd",
|
1135
|
-
"description": "My First Invoice Item (created for API docs)",
|
1136
|
-
"discountable": true,
|
1137
|
-
"id": "ii_19zuuiDSlTMT26MkvsaAgAi7",
|
1138
|
-
"livemode": false,
|
1139
|
-
"metadata": {
|
1140
|
-
},
|
1141
|
-
"object": "line_item",
|
1142
|
-
"period": {
|
1143
|
-
"end": 1490133192,
|
1144
|
-
"start": 1490133192
|
1145
|
-
},
|
1146
|
-
"plan": {
|
1147
|
-
},
|
1148
|
-
"proration": false,
|
1149
|
-
"quantity": 0,
|
1150
|
-
"subscription": "",
|
1151
|
-
"subscription_item": "",
|
1152
|
-
"type": "invoiceitem"
|
1153
|
-
},
|
1154
|
-
"login_link": {
|
1155
|
-
"created": 1234567890,
|
1156
|
-
"object": "login_link",
|
1157
|
-
"url": "http://127.0.0.1:6090/express/xmkx6tsLZvoZ"
|
1158
|
-
},
|
1159
|
-
"order": {
|
1160
|
-
"amount": 1500,
|
1161
|
-
"amount_returned": 0,
|
1162
|
-
"application": "",
|
1163
|
-
"application_fee": 0,
|
1164
|
-
"charge": "",
|
1165
|
-
"created": 1234567890,
|
1166
|
-
"currency": "usd",
|
1167
|
-
"customer": "",
|
1168
|
-
"email": "",
|
1169
|
-
"external_coupon_code": "",
|
1170
|
-
"external_sku_ids": [
|
1171
|
-
|
1172
|
-
],
|
1173
|
-
"id": "or_19zuukDSlTMT26MktR8hwCzJ",
|
1174
|
-
"items": [
|
1175
|
-
{
|
1176
|
-
"amount": 1500,
|
1177
|
-
"currency": "usd",
|
1178
|
-
"description": "T-shirt",
|
1179
|
-
"object": "order_item",
|
1180
|
-
"parent": "sk_19tLKeDSlTMT26MkWafeCAS4",
|
1181
|
-
"quantity": 1,
|
1182
|
-
"type": "sku"
|
1183
|
-
},
|
1184
|
-
{
|
1185
|
-
"amount": 0,
|
1186
|
-
"currency": "usd",
|
1187
|
-
"description": "Taxes (included)",
|
1188
|
-
"object": "order_item",
|
1189
|
-
"parent": null,
|
1190
|
-
"quantity": null,
|
1191
|
-
"type": "tax"
|
1192
|
-
},
|
1193
|
-
{
|
1194
|
-
"amount": 0,
|
1195
|
-
"currency": "usd",
|
1196
|
-
"description": "Free shipping",
|
1197
|
-
"object": "order_item",
|
1198
|
-
"parent": "ship_free-shipping",
|
1199
|
-
"quantity": null,
|
1200
|
-
"type": "shipping"
|
1201
|
-
}
|
1202
|
-
],
|
1203
|
-
"livemode": false,
|
1204
|
-
"metadata": {
|
1205
|
-
},
|
1206
|
-
"object": "order",
|
1207
|
-
"returns": {
|
1208
|
-
"data": [
|
1209
|
-
{
|
1210
|
-
"amount": 1500,
|
1211
|
-
"created": 1497681376,
|
1212
|
-
"currency": "usd",
|
1213
|
-
"id": "orret_1AVaXc2eZvKYlo2CtcXu3BxE",
|
1214
|
-
"items": [
|
1215
|
-
{
|
1216
|
-
"amount": 1500,
|
1217
|
-
"currency": "usd",
|
1218
|
-
"description": "T-shirt",
|
1219
|
-
"object": "order_item",
|
1220
|
-
"parent": "sku_ArJ9yltVsdN8Wb",
|
1221
|
-
"quantity": 1,
|
1222
|
-
"type": "sku"
|
1223
|
-
},
|
1224
|
-
{
|
1225
|
-
"amount": 0,
|
1226
|
-
"currency": "usd",
|
1227
|
-
"description": "Taxes (included)",
|
1228
|
-
"object": "order_item",
|
1229
|
-
"parent": null,
|
1230
|
-
"quantity": null,
|
1231
|
-
"type": "tax"
|
1232
|
-
},
|
1233
|
-
{
|
1234
|
-
"amount": 0,
|
1235
|
-
"currency": "usd",
|
1236
|
-
"description": "Free shipping",
|
1237
|
-
"object": "order_item",
|
1238
|
-
"parent": "ship_free-shipping",
|
1239
|
-
"quantity": null,
|
1240
|
-
"type": "shipping"
|
1241
|
-
}
|
1242
|
-
],
|
1243
|
-
"livemode": false,
|
1244
|
-
"object": "order_return",
|
1245
|
-
"order": "or_1AVaXR2eZvKYlo2CTES1kJ6N",
|
1246
|
-
"refund": null
|
1247
|
-
}
|
1248
|
-
],
|
1249
|
-
"has_more": false,
|
1250
|
-
"object": "list",
|
1251
|
-
"total_count": 0,
|
1252
|
-
"url": "/v1/order_returns?order=or_19zuukDSlTMT26MktR8hwCzJ"
|
1253
|
-
},
|
1254
|
-
"selected_shipping_method": "",
|
1255
|
-
"shipping": {
|
1256
|
-
"address": {
|
1257
|
-
"city": "Anytown",
|
1258
|
-
"country": "US",
|
1259
|
-
"line1": "1234 Main street",
|
1260
|
-
"line2": null,
|
1261
|
-
"postal_code": "123456",
|
1262
|
-
"state": null
|
1263
|
-
},
|
1264
|
-
"carrier": null,
|
1265
|
-
"name": "Jenny Rosen",
|
1266
|
-
"phone": null,
|
1267
|
-
"tracking_number": null
|
1268
|
-
},
|
1269
|
-
"shipping_methods": [
|
1270
|
-
{
|
1271
|
-
"amount": 0,
|
1272
|
-
"currency": "usd",
|
1273
|
-
"delivery_estimate": null,
|
1274
|
-
"description": "Free shipping",
|
1275
|
-
"id": "ship_free-shipping"
|
1276
|
-
}
|
1277
|
-
],
|
1278
|
-
"signature": "",
|
1279
|
-
"status": "created",
|
1280
|
-
"status_transitions": {
|
1281
|
-
"canceled": 1497681377,
|
1282
|
-
"fulfiled": null,
|
1283
|
-
"paid": 1497681372,
|
1284
|
-
"returned": null
|
1285
|
-
},
|
1286
|
-
"updated": 1234567890,
|
1287
|
-
"upstream_id": ""
|
1288
|
-
},
|
1289
|
-
"order_return": {
|
1290
|
-
"amount": 1500,
|
1291
|
-
"created": 1234567890,
|
1292
|
-
"currency": "usd",
|
1293
|
-
"id": "orret_19zuukDSlTMT26Mkxjz1bcqv",
|
1294
|
-
"items": [
|
1295
|
-
{
|
1296
|
-
"amount": 1500,
|
1297
|
-
"currency": "usd",
|
1298
|
-
"description": "T-shirt",
|
1299
|
-
"object": "order_item",
|
1300
|
-
"parent": "sk_19zuukDSlTMT26MkepWkJtmm",
|
1301
|
-
"quantity": 1,
|
1302
|
-
"type": "sku"
|
1303
|
-
},
|
1304
|
-
{
|
1305
|
-
"amount": 0,
|
1306
|
-
"currency": "usd",
|
1307
|
-
"description": "Taxes (included)",
|
1308
|
-
"object": "order_item",
|
1309
|
-
"parent": null,
|
1310
|
-
"quantity": null,
|
1311
|
-
"type": "tax"
|
1312
|
-
},
|
1313
|
-
{
|
1314
|
-
"amount": 0,
|
1315
|
-
"currency": "usd",
|
1316
|
-
"description": "Free shipping",
|
1317
|
-
"object": "order_item",
|
1318
|
-
"parent": "ship_free-shipping",
|
1319
|
-
"quantity": null,
|
1320
|
-
"type": "shipping"
|
1321
|
-
}
|
1322
|
-
],
|
1323
|
-
"livemode": false,
|
1324
|
-
"object": "order_return",
|
1325
|
-
"order": "or_19zuukDSlTMT26MkL38GRWYx",
|
1326
|
-
"refund": "re_19zuukDSlTMT26MkKx6aokup"
|
1327
|
-
},
|
1328
|
-
"payout": {
|
1329
|
-
"amount": 1100,
|
1330
|
-
"arrival_date": 1234567890,
|
1331
|
-
"auto": false,
|
1332
|
-
"balance_transaction": "txn_1A5hBeDSlTMT26MkXlw0Jzki",
|
1333
|
-
"bank_account": {
|
1334
|
-
},
|
1335
|
-
"card": {
|
1336
|
-
},
|
1337
|
-
"created": 1234567890,
|
1338
|
-
"currency": "usd",
|
1339
|
-
"description": "",
|
1340
|
-
"destination": "acct_19tLK7DSlTMT26Mk",
|
1341
|
-
"failure_balance_transaction": "",
|
1342
|
-
"failure_code": "",
|
1343
|
-
"failure_message": "",
|
1344
|
-
"id": "tr_1A5hBfDSlTMT26MkB9QceCEw",
|
1345
|
-
"legacy_date": 1234567890,
|
1346
|
-
"livemode": false,
|
1347
|
-
"metadata": {
|
1348
|
-
},
|
1349
|
-
"method": "standard",
|
1350
|
-
"object": "payout",
|
1351
|
-
"source_type": "card",
|
1352
|
-
"statement_descriptor": "",
|
1353
|
-
"status": "in_transit",
|
1354
|
-
"type": "stripe_account"
|
1355
|
-
},
|
1356
|
-
"plan": {
|
1357
|
-
"amount": 2000,
|
1358
|
-
"created": 1234567890,
|
1359
|
-
"currency": "usd",
|
1360
|
-
"id": "gold",
|
1361
|
-
"interval": "month",
|
1362
|
-
"interval_count": 1,
|
1363
|
-
"livemode": false,
|
1364
|
-
"metadata": {
|
1365
|
-
},
|
1366
|
-
"name": "Gold Special",
|
1367
|
-
"object": "plan",
|
1368
|
-
"statement_descriptor": "",
|
1369
|
-
"trial_period_days": 0
|
1370
|
-
},
|
1371
|
-
"platform_earning": {
|
1372
|
-
"account": "acct_19tLK7DSlTMT26Mk",
|
1373
|
-
"amount": 100,
|
1374
|
-
"amount_refunded": 0,
|
1375
|
-
"application": "ca_AKa4xbTjCsfO9n8mgC6PyMNf6FCnXMyM",
|
1376
|
-
"balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
|
1377
|
-
"charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
|
1378
|
-
"created": 1234567890,
|
1379
|
-
"currency": "usd",
|
1380
|
-
"id": "fee_19zuujDSlTMT26MkEMvXUsIx",
|
1381
|
-
"livemode": false,
|
1382
|
-
"object": "application_fee",
|
1383
|
-
"originating_transaction": "",
|
1384
|
-
"refunded": false,
|
1385
|
-
"refunds": {
|
1386
|
-
"data": [
|
1387
|
-
|
1388
|
-
],
|
1389
|
-
"has_more": false,
|
1390
|
-
"object": "list",
|
1391
|
-
"total_count": 0,
|
1392
|
-
"url": "/v1/application_fees/fee_19zuujDSlTMT26MkEMvXUsIx/refunds"
|
1393
|
-
}
|
1394
|
-
},
|
1395
|
-
"product": {
|
1396
|
-
"active": true,
|
1397
|
-
"attributes": [
|
1398
|
-
"gender",
|
1399
|
-
"size"
|
1400
|
-
],
|
1401
|
-
"caption": "",
|
1402
|
-
"created": 1234567890,
|
1403
|
-
"deactivate_on": [
|
1404
|
-
|
1405
|
-
],
|
1406
|
-
"description": "Comfortable gray cotton t-shirts",
|
1407
|
-
"donation": false,
|
1408
|
-
"id": "prod_AKa4nDYkPszdDl",
|
1409
|
-
"images": [
|
1410
|
-
|
1411
|
-
],
|
1412
|
-
"livemode": false,
|
1413
|
-
"metadata": {
|
1414
|
-
},
|
1415
|
-
"name": "T-shirt",
|
1416
|
-
"object": "product",
|
1417
|
-
"package_dimensions": {
|
1418
|
-
},
|
1419
|
-
"reason_product_not_tweetable": "",
|
1420
|
-
"shippable": true,
|
1421
|
-
"skus": {
|
1422
|
-
"data": [
|
1423
|
-
{
|
1424
|
-
"active": true,
|
1425
|
-
"attributes": {
|
1426
|
-
"gender": "Unisex",
|
1427
|
-
"size": "Medium"
|
1428
|
-
},
|
1429
|
-
"created": 1489796923,
|
1430
|
-
"currency": "usd",
|
1431
|
-
"id": "sku_AJ7g98gPhCjas3",
|
1432
|
-
"image": null,
|
1433
|
-
"inventory": {
|
1434
|
-
"quantity": 499,
|
1435
|
-
"type": "finite",
|
1436
|
-
"value": null
|
1437
|
-
},
|
1438
|
-
"livemode": false,
|
1439
|
-
"metadata": {
|
1440
|
-
},
|
1441
|
-
"object": "sku",
|
1442
|
-
"package_dimensions": null,
|
1443
|
-
"price": 1500,
|
1444
|
-
"product": "prod_AJ7gAXvktPRvvh",
|
1445
|
-
"updated": 1489796941
|
1446
|
-
}
|
1447
|
-
],
|
1448
|
-
"has_more": false,
|
1449
|
-
"object": "list",
|
1450
|
-
"total_count": 0,
|
1451
|
-
"url": "/v1/skus?product=prod_AKa4nDYkPszdDl&active=true"
|
1452
|
-
},
|
1453
|
-
"tweetable_url": "",
|
1454
|
-
"updated": 1234567890,
|
1455
|
-
"url": ""
|
1456
|
-
},
|
1457
|
-
"refund": {
|
1458
|
-
"amount": 100,
|
1459
|
-
"balance_transaction": "",
|
1460
|
-
"charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
|
1461
|
-
"created": 1234567890,
|
1462
|
-
"currency": "usd",
|
1463
|
-
"description": "",
|
1464
|
-
"fee_balance_transactions": {
|
1465
|
-
},
|
1466
|
-
"id": "re_19zuuhDSlTMT26MkpLosorvD",
|
1467
|
-
"metadata": {
|
1468
|
-
"reason": "2"
|
1469
|
-
},
|
1470
|
-
"object": "refund",
|
1471
|
-
"reason": "",
|
1472
|
-
"receipt_number": "",
|
1473
|
-
"status": "succeeded",
|
1474
|
-
"type": ""
|
1475
|
-
},
|
1476
|
-
"sku": {
|
1477
|
-
"active": true,
|
1478
|
-
"attributes": {
|
1479
|
-
"gender": "Unisex",
|
1480
|
-
"size": "Medium"
|
1481
|
-
},
|
1482
|
-
"created": 1234567890,
|
1483
|
-
"currency": "usd",
|
1484
|
-
"id": "sku_AKa48dqsB87bsK",
|
1485
|
-
"image": "",
|
1486
|
-
"inventory": {
|
1487
|
-
"quantity": 50,
|
1488
|
-
"type": "finite",
|
1489
|
-
"value": null
|
1490
|
-
},
|
1491
|
-
"livemode": false,
|
1492
|
-
"metadata": {
|
1493
|
-
},
|
1494
|
-
"object": "sku",
|
1495
|
-
"package_dimensions": {
|
1496
|
-
},
|
1497
|
-
"price": 1500,
|
1498
|
-
"product": "prod_AKa4nDYkPszdDl",
|
1499
|
-
"updated": 1234567890
|
1500
|
-
},
|
1501
|
-
"source": {
|
1502
|
-
"amount": 1000,
|
1503
|
-
"client_secret": "src_client_secret_G7TlNFAGB2mThKeaF9jOBdWt",
|
1504
|
-
"code_verification": {
|
1505
|
-
},
|
1506
|
-
"created": 1234567890,
|
1507
|
-
"currency": "usd",
|
1508
|
-
"customer": "",
|
1509
|
-
"flow": "receiver",
|
1510
|
-
"id": "src_19zuukDSlTMT26MkL5AZBjwf",
|
1511
|
-
"livemode": false,
|
1512
|
-
"metadata": {
|
1513
|
-
},
|
1514
|
-
"object": "source",
|
1515
|
-
"order": "",
|
1516
|
-
"owner": {
|
1517
|
-
"address": null,
|
1518
|
-
"email": "jenny.rosen@example.com",
|
1519
|
-
"name": null,
|
1520
|
-
"phone": null,
|
1521
|
-
"verified_address": null,
|
1522
|
-
"verified_email": null,
|
1523
|
-
"verified_name": null,
|
1524
|
-
"verified_phone": null
|
1525
|
-
},
|
1526
|
-
"receiver": {
|
1527
|
-
"address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N",
|
1528
|
-
"amount_charged": 0,
|
1529
|
-
"amount_received": 0,
|
1530
|
-
"amount_returned": 0,
|
1531
|
-
"refund_attributes_method": "email",
|
1532
|
-
"refund_attributes_status": "missing"
|
1533
|
-
},
|
1534
|
-
"redirect": {
|
1535
|
-
},
|
1536
|
-
"status": "pending",
|
1537
|
-
"type": "bitcoin",
|
1538
|
-
"usage": "single_use"
|
1539
|
-
},
|
1540
|
-
"subscription": {
|
1541
|
-
"account_balance": 0,
|
1542
|
-
"application_fee_percent": 0.0,
|
1543
|
-
"billing": "",
|
1544
|
-
"cancel_at_period_end": false,
|
1545
|
-
"canceled_at": 1234567890,
|
1546
|
-
"created": 1234567890,
|
1547
|
-
"current_period_end": 1234567890,
|
1548
|
-
"current_period_start": 1234567890,
|
1549
|
-
"customer": "cus_ADmuABetLS15eF",
|
1550
|
-
"days_until_due": 0,
|
1551
|
-
"discount": {
|
1552
|
-
},
|
1553
|
-
"ended_at": 1234567890,
|
1554
|
-
"id": "sub_AKa4uss8vCMAZC",
|
1555
|
-
"items": {
|
1556
|
-
"data": [
|
1557
|
-
{
|
1558
|
-
"created": 1490133192,
|
1559
|
-
"id": "si_19zuuiDSlTMT26Mk9HayBPe9",
|
1560
|
-
"object": "subscription_item",
|
1561
|
-
"plan": {
|
1562
|
-
"amount": 2000,
|
1563
|
-
"created": 1488566449,
|
1564
|
-
"currency": "usd",
|
1565
|
-
"id": "gold",
|
1566
|
-
"interval": "month",
|
1567
|
-
"interval_count": 1,
|
1568
|
-
"livemode": false,
|
1569
|
-
"metadata": {
|
1570
|
-
},
|
1571
|
-
"name": "Gold Special",
|
1572
|
-
"object": "plan",
|
1573
|
-
"statement_descriptor": null,
|
1574
|
-
"trial_period_days": null
|
1575
|
-
},
|
1576
|
-
"quantity": 1
|
1577
|
-
}
|
1578
|
-
],
|
1579
|
-
"has_more": false,
|
1580
|
-
"object": "list",
|
1581
|
-
"total_count": 1,
|
1582
|
-
"url": "/v1/subscription_items?subscription=sub_AKa4uss8vCMAZC"
|
1583
|
-
},
|
1584
|
-
"livemode": false,
|
1585
|
-
"max_occurrences": 0,
|
1586
|
-
"metadata": {
|
1587
|
-
},
|
1588
|
-
"object": "subscription",
|
1589
|
-
"on_behalf_of": "",
|
1590
|
-
"plan": {
|
1591
|
-
"amount": 2000,
|
1592
|
-
"created": 1488566449,
|
1593
|
-
"currency": "usd",
|
1594
|
-
"id": "gold",
|
1595
|
-
"interval": "month",
|
1596
|
-
"interval_count": 1,
|
1597
|
-
"livemode": false,
|
1598
|
-
"metadata": {
|
1599
|
-
},
|
1600
|
-
"name": "Gold Special",
|
1601
|
-
"object": "plan",
|
1602
|
-
"statement_descriptor": null,
|
1603
|
-
"trial_period_days": null
|
1604
|
-
},
|
1605
|
-
"quantity": 1,
|
1606
|
-
"retains_own_balance": false,
|
1607
|
-
"start": 1234567890,
|
1608
|
-
"status": "active",
|
1609
|
-
"tax_percent": 0.0,
|
1610
|
-
"trial_end": 1234567890,
|
1611
|
-
"trial_start": 1234567890
|
1612
|
-
},
|
1613
|
-
"subscription_item": {
|
1614
|
-
"created": 1490133192,
|
1615
|
-
"id": "si_19zuuiDSlTMT26MkkbqEeSG7",
|
1616
|
-
"object": "subscription_item",
|
1617
|
-
"plan": {
|
1618
|
-
"amount": 2000,
|
1619
|
-
"created": 1488566449,
|
1620
|
-
"currency": "usd",
|
1621
|
-
"id": "gold",
|
1622
|
-
"interval": "month",
|
1623
|
-
"interval_count": 1,
|
1624
|
-
"livemode": false,
|
1625
|
-
"metadata": {
|
1626
|
-
},
|
1627
|
-
"name": "Gold Special",
|
1628
|
-
"object": "plan",
|
1629
|
-
"statement_descriptor": null,
|
1630
|
-
"trial_period_days": null
|
1631
|
-
},
|
1632
|
-
"quantity": 1
|
1633
|
-
},
|
1634
|
-
"three_d_secure": {
|
1635
|
-
"amount": 1500,
|
1636
|
-
"authenticated": false,
|
1637
|
-
"card": {
|
1638
|
-
"address_city": null,
|
1639
|
-
"address_country": null,
|
1640
|
-
"address_line1": null,
|
1641
|
-
"address_line1_check": null,
|
1642
|
-
"address_line2": null,
|
1643
|
-
"address_state": null,
|
1644
|
-
"address_zip": null,
|
1645
|
-
"address_zip_check": null,
|
1646
|
-
"brand": "Visa",
|
1647
|
-
"country": "US",
|
1648
|
-
"customer": null,
|
1649
|
-
"cvc_check": "unchecked",
|
1650
|
-
"dynamic_last4": null,
|
1651
|
-
"exp_month": 8,
|
1652
|
-
"exp_year": 2018,
|
1653
|
-
"fingerprint": "TUSZPuJK6frwQold",
|
1654
|
-
"funding": "unknown",
|
1655
|
-
"id": "card_19tLKYDSlTMT26Mkl7bixGYc",
|
1656
|
-
"last4": "4242",
|
1657
|
-
"metadata": {
|
1658
|
-
},
|
1659
|
-
"name": null,
|
1660
|
-
"object": "card",
|
1661
|
-
"tokenization_method": null
|
1662
|
-
},
|
1663
|
-
"created": 1234567890,
|
1664
|
-
"currency": "usd",
|
1665
|
-
"id": "tdsrc_AKa4JYO98pZnbv",
|
1666
|
-
"livemode": false,
|
1667
|
-
"object": "three_d_secure",
|
1668
|
-
"redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AKa4JYO98pZnbv",
|
1669
|
-
"status": "redirect_pending"
|
1670
|
-
},
|
1671
|
-
"token": {
|
1672
|
-
"account_details": {
|
1673
|
-
},
|
1674
|
-
"alipay_account": {
|
1675
|
-
},
|
1676
|
-
"bank_account": {
|
1677
|
-
},
|
1678
|
-
"card": {
|
1679
|
-
"address_city": null,
|
1680
|
-
"address_country": null,
|
1681
|
-
"address_line1": null,
|
1682
|
-
"address_line1_check": null,
|
1683
|
-
"address_line2": null,
|
1684
|
-
"address_state": null,
|
1685
|
-
"address_zip": null,
|
1686
|
-
"address_zip_check": null,
|
1687
|
-
"brand": "Visa",
|
1688
|
-
"country": "US",
|
1689
|
-
"cvc_check": null,
|
1690
|
-
"dynamic_last4": null,
|
1691
|
-
"exp_month": 8,
|
1692
|
-
"exp_year": 2018,
|
1693
|
-
"fingerprint": "Xt5EWLLDS7FJjR1c",
|
1694
|
-
"funding": "unknown",
|
1695
|
-
"id": "card_19tLKYDSlTMT26MkxAeJBsQn",
|
1696
|
-
"last4": "4242",
|
1697
|
-
"metadata": {
|
1698
|
-
},
|
1699
|
-
"name": null,
|
1700
|
-
"object": "card",
|
1701
|
-
"tokenization_method": null
|
1702
|
-
},
|
1703
|
-
"client_ip": "",
|
1704
|
-
"created": 1234567890,
|
1705
|
-
"description": "",
|
1706
|
-
"email": "",
|
1707
|
-
"id": "tok_19tLKYDSlTMT26MkK7YyXpCy",
|
1708
|
-
"livemode": false,
|
1709
|
-
"object": "token",
|
1710
|
-
"type": "card",
|
1711
|
-
"usage": "",
|
1712
|
-
"used": false
|
1713
|
-
},
|
1714
|
-
"transfer": {
|
1715
|
-
"amount": 1100,
|
1716
|
-
"amount_reversed": 0,
|
1717
|
-
"balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
|
1718
|
-
"created": 1234567890,
|
1719
|
-
"currency": "usd",
|
1720
|
-
"description": "",
|
1721
|
-
"destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
|
1722
|
-
"destination_payment": "",
|
1723
|
-
"id": "tr_19zuujDSlTMT26Mk81npuLjT",
|
1724
|
-
"livemode": false,
|
1725
|
-
"metadata": {
|
1726
|
-
},
|
1727
|
-
"object": "transfer",
|
1728
|
-
"reversals": {
|
1729
|
-
"data": [
|
1730
|
-
{
|
1731
|
-
"amount": 100,
|
1732
|
-
"balance_transaction": "txn_1AF3y32eZvKYlo2CSgDInbEk",
|
1733
|
-
"created": 1493742915,
|
1734
|
-
"currency": "usd",
|
1735
|
-
"id": "trr_1AF3y32eZvKYlo2CtkDXeobp",
|
1736
|
-
"metadata": {
|
1737
|
-
},
|
1738
|
-
"object": "transfer_reversal",
|
1739
|
-
"transfer": "tr_164xRv2eZvKYlo2CZxJZWm1E"
|
1740
|
-
}
|
1741
|
-
],
|
1742
|
-
"has_more": false,
|
1743
|
-
"object": "list",
|
1744
|
-
"total_count": 0,
|
1745
|
-
"url": "/v1/transfers/tr_19zuujDSlTMT26Mk81npuLjT/reversals"
|
1746
|
-
},
|
1747
|
-
"reversed": false,
|
1748
|
-
"source_transaction": "ch_164xRv2eZvKYlo2Clu1sIJWB",
|
1749
|
-
"source_type": "card",
|
1750
|
-
"transfer_group": ""
|
1751
|
-
},
|
1752
|
-
"transfer_recipient": {
|
1753
|
-
"active_account": {
|
1754
|
-
"account_holder_name": null,
|
1755
|
-
"account_holder_type": null,
|
1756
|
-
"bank_name": "STRIPE TEST BANK",
|
1757
|
-
"country": "US",
|
1758
|
-
"currency": "usd",
|
1759
|
-
"customer": null,
|
1760
|
-
"fingerprint": "1JWtPxqbdX5Gamtc",
|
1761
|
-
"id": "ba_19p5Ze2eZvKYlo2C1fs6Ar4u",
|
1762
|
-
"last4": "6789",
|
1763
|
-
"metadata": {
|
1764
|
-
},
|
1765
|
-
"object": "bank_account",
|
1766
|
-
"routing_number": "110000000",
|
1767
|
-
"status": "new"
|
1768
|
-
},
|
1769
|
-
"address_city": "",
|
1770
|
-
"address_country": "",
|
1771
|
-
"address_line1": "",
|
1772
|
-
"address_line2": "",
|
1773
|
-
"address_state": "",
|
1774
|
-
"address_zip": "",
|
1775
|
-
"cards": {
|
1776
|
-
"data": [
|
1777
|
-
|
1778
|
-
],
|
1779
|
-
"has_more": false,
|
1780
|
-
"object": "list",
|
1781
|
-
"total_count": 0,
|
1782
|
-
"url": "/v1/recipients/rp_19zuujDSlTMT26MkZ3ZnkXL2/cards"
|
1783
|
-
},
|
1784
|
-
"country": "",
|
1785
|
-
"created": 1234567890,
|
1786
|
-
"default_card": "",
|
1787
|
-
"description": "Recipient for John Doe",
|
1788
|
-
"dob_day": "",
|
1789
|
-
"dob_month": "",
|
1790
|
-
"dob_year": "",
|
1791
|
-
"email": "test@example.com",
|
1792
|
-
"id": "rp_19zuujDSlTMT26MkZ3ZnkXL2",
|
1793
|
-
"livemode": false,
|
1794
|
-
"metadata": {
|
1795
|
-
},
|
1796
|
-
"migrated_to": "",
|
1797
|
-
"name": "John Doe",
|
1798
|
-
"object": "recipient",
|
1799
|
-
"tin": "",
|
1800
|
-
"tin_verification_pending": false,
|
1801
|
-
"type": "individual",
|
1802
|
-
"verified": false
|
1803
|
-
},
|
1804
|
-
"transfer_reversal": {
|
1805
|
-
"amount": 1100,
|
1806
|
-
"balance_transaction": "",
|
1807
|
-
"created": 1234567890,
|
1808
|
-
"currency": "usd",
|
1809
|
-
"id": "trr_19zuujDSlTMT26Mkg0q2NfQu",
|
1810
|
-
"metadata": {
|
1811
|
-
},
|
1812
|
-
"object": "transfer_reversal",
|
1813
|
-
"transfer": "tr_19zuujDSlTMT26Mk81npuLjT"
|
1814
|
-
},
|
1815
|
-
"upcoming_invoice": {
|
1816
|
-
"amount_due": 0,
|
1817
|
-
"application_fee": 0,
|
1818
|
-
"attempt_count": 0,
|
1819
|
-
"attempted": true,
|
1820
|
-
"billing": "",
|
1821
|
-
"charge": "",
|
1822
|
-
"closed": true,
|
1823
|
-
"currency": "usd",
|
1824
|
-
"customer": "cus_ADmuABetLS15eF",
|
1825
|
-
"date": 1234567890,
|
1826
|
-
"description": "",
|
1827
|
-
"discount": {
|
1828
|
-
},
|
1829
|
-
"due_date": 1234567890,
|
1830
|
-
"ending_balance": 0,
|
1831
|
-
"forgiven": false,
|
1832
|
-
"lines": {
|
1833
|
-
"data": [
|
1834
|
-
{
|
1835
|
-
"amount": 1000,
|
1836
|
-
"currency": "usd",
|
1837
|
-
"description": null,
|
1838
|
-
"discountable": true,
|
1839
|
-
"id": "sub_3jtkr4OHgFoV5k",
|
1840
|
-
"livemode": false,
|
1841
|
-
"metadata": {
|
1842
|
-
},
|
1843
|
-
"object": "line_item",
|
1844
|
-
"period": {
|
1845
|
-
"end": 1430089038,
|
1846
|
-
"start": 1427410638
|
1847
|
-
},
|
1848
|
-
"plan": {
|
1849
|
-
"amount": 1000,
|
1850
|
-
"created": 1391206393,
|
1851
|
-
"currency": "usd",
|
1852
|
-
"id": "monthly",
|
1853
|
-
"interval": "month",
|
1854
|
-
"interval_count": 1,
|
1855
|
-
"livemode": false,
|
1856
|
-
"metadata": {
|
1857
|
-
},
|
1858
|
-
"name": "Monthly Plan",
|
1859
|
-
"object": "plan",
|
1860
|
-
"statement_descriptor": null,
|
1861
|
-
"trial_period_days": null
|
1862
|
-
},
|
1863
|
-
"proration": false,
|
1864
|
-
"quantity": 1,
|
1865
|
-
"subscription": null,
|
1866
|
-
"type": "subscription"
|
1867
|
-
}
|
1868
|
-
],
|
1869
|
-
"has_more": false,
|
1870
|
-
"object": "list",
|
1871
|
-
"total_count": 0,
|
1872
|
-
"url": "/v1/invoices/in_19zuuiDSlTMT26Mk1XitxqCb/lines"
|
1873
|
-
},
|
1874
|
-
"livemode": false,
|
1875
|
-
"metadata": {
|
1876
|
-
},
|
1877
|
-
"next_payment_attempt": 1234567890,
|
1878
|
-
"number": "",
|
1879
|
-
"object": "invoice",
|
1880
|
-
"paid": true,
|
1881
|
-
"period_end": 1234567890,
|
1882
|
-
"period_start": 1234567890,
|
1883
|
-
"receipt_number": "",
|
1884
|
-
"send_next_at": 1234567890,
|
1885
|
-
"starting_balance": 0,
|
1886
|
-
"statement_descriptor": "",
|
1887
|
-
"subscription": "",
|
1888
|
-
"subscription_proration_date": 0,
|
1889
|
-
"subtotal": 0,
|
1890
|
-
"tax": 0,
|
1891
|
-
"tax_percent": 0.0,
|
1892
|
-
"total": 0,
|
1893
|
-
"webhooks_delivered_at": 1234567890
|
1894
|
-
}
|
1895
|
-
}
|
1896
|
-
}
|