stripe 1.30.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +4 -0
  3. data/.github/ISSUE_TEMPLATE.md +5 -0
  4. data/.travis.yml +3 -14
  5. data/Gemfile +28 -4
  6. data/History.txt +180 -0
  7. data/README.md +147 -0
  8. data/Rakefile +10 -0
  9. data/VERSION +1 -1
  10. data/bin/stripe-console +12 -5
  11. data/lib/data/ca-certificates.crt +3868 -5114
  12. data/lib/stripe/account.rb +43 -23
  13. data/lib/stripe/alipay_account.rb +20 -0
  14. data/lib/stripe/api_operations/create.rb +2 -2
  15. data/lib/stripe/api_operations/delete.rb +2 -2
  16. data/lib/stripe/api_operations/list.rb +2 -3
  17. data/lib/stripe/api_operations/request.rb +9 -3
  18. data/lib/stripe/api_operations/save.rb +85 -0
  19. data/lib/stripe/api_resource.rb +38 -5
  20. data/lib/stripe/apple_pay_domain.rb +12 -0
  21. data/lib/stripe/application_fee.rb +8 -8
  22. data/lib/stripe/application_fee_refund.rb +7 -3
  23. data/lib/stripe/balance_transaction.rb +1 -1
  24. data/lib/stripe/bank_account.rb +13 -4
  25. data/lib/stripe/bitcoin_receiver.rb +6 -6
  26. data/lib/stripe/bitcoin_transaction.rb +1 -1
  27. data/lib/stripe/card.rb +9 -5
  28. data/lib/stripe/charge.rb +38 -20
  29. data/lib/stripe/country_spec.rb +9 -0
  30. data/lib/stripe/coupon.rb +1 -1
  31. data/lib/stripe/customer.rb +12 -10
  32. data/lib/stripe/dispute.rb +4 -5
  33. data/lib/stripe/errors.rb +92 -0
  34. data/lib/stripe/file_upload.rb +1 -1
  35. data/lib/stripe/invoice.rb +7 -7
  36. data/lib/stripe/invoice_item.rb +1 -1
  37. data/lib/stripe/list_object.rb +8 -7
  38. data/lib/stripe/order.rb +12 -4
  39. data/lib/stripe/order_return.rb +9 -0
  40. data/lib/stripe/plan.rb +1 -1
  41. data/lib/stripe/product.rb +2 -10
  42. data/lib/stripe/recipient.rb +1 -1
  43. data/lib/stripe/refund.rb +1 -1
  44. data/lib/stripe/reversal.rb +7 -3
  45. data/lib/stripe/singleton_api_resource.rb +3 -3
  46. data/lib/stripe/sku.rb +2 -2
  47. data/lib/stripe/source.rb +11 -0
  48. data/lib/stripe/stripe_client.rb +396 -0
  49. data/lib/stripe/stripe_object.rb +167 -91
  50. data/lib/stripe/stripe_response.rb +48 -0
  51. data/lib/stripe/subscription.rb +15 -9
  52. data/lib/stripe/subscription_item.rb +12 -0
  53. data/lib/stripe/three_d_secure.rb +9 -0
  54. data/lib/stripe/transfer.rb +4 -5
  55. data/lib/stripe/util.rb +105 -33
  56. data/lib/stripe/version.rb +1 -1
  57. data/lib/stripe.rb +69 -266
  58. data/spec/fixtures.json +1409 -0
  59. data/spec/fixtures.yaml +1153 -0
  60. data/spec/spec.json +19949 -0
  61. data/spec/spec.yaml +15504 -0
  62. data/stripe.gemspec +5 -18
  63. data/test/api_fixtures.rb +29 -0
  64. data/test/api_stub_helpers.rb +125 -0
  65. data/test/stripe/account_test.rb +163 -211
  66. data/test/stripe/alipay_account_test.rb +19 -0
  67. data/test/stripe/api_operations_test.rb +31 -0
  68. data/test/stripe/api_resource_test.rb +174 -340
  69. data/test/stripe/apple_pay_domain_test.rb +33 -0
  70. data/test/stripe/application_fee_refund_test.rb +22 -31
  71. data/test/stripe/application_fee_test.rb +6 -14
  72. data/test/stripe/balance_test.rb +3 -3
  73. data/test/stripe/bank_account_test.rb +41 -0
  74. data/test/stripe/bitcoin_receiver_test.rb +51 -42
  75. data/test/stripe/bitcoin_transaction_test.rb +11 -19
  76. data/test/stripe/charge_test.rb +39 -98
  77. data/test/stripe/country_spec_test.rb +20 -0
  78. data/test/stripe/coupon_test.rb +35 -11
  79. data/test/stripe/customer_card_test.rb +25 -46
  80. data/test/stripe/customer_test.rb +89 -61
  81. data/test/stripe/dispute_test.rb +28 -31
  82. data/test/stripe/errors_test.rb +18 -0
  83. data/test/stripe/file_upload_test.rb +32 -24
  84. data/test/stripe/invoice_item_test.rb +55 -0
  85. data/test/stripe/invoice_test.rb +50 -24
  86. data/test/stripe/list_object_test.rb +57 -45
  87. data/test/stripe/order_return_test.rb +21 -0
  88. data/test/stripe/order_test.rb +41 -34
  89. data/test/stripe/plan_test.rb +52 -0
  90. data/test/stripe/product_test.rb +31 -25
  91. data/test/stripe/recipient_card_test.rb +23 -40
  92. data/test/stripe/recipient_test.rb +50 -0
  93. data/test/stripe/refund_test.rb +20 -36
  94. data/test/stripe/reversal_test.rb +27 -31
  95. data/test/stripe/sku_test.rb +39 -13
  96. data/test/stripe/source_test.rb +43 -0
  97. data/test/stripe/stripe_client_test.rb +428 -0
  98. data/test/stripe/stripe_object_test.rb +186 -13
  99. data/test/stripe/stripe_response_test.rb +46 -0
  100. data/test/stripe/subscription_item_test.rb +54 -0
  101. data/test/stripe/subscription_test.rb +40 -52
  102. data/test/stripe/three_d_secure_test.rb +23 -0
  103. data/test/stripe/transfer_test.rb +38 -13
  104. data/test/stripe/util_test.rb +48 -16
  105. data/test/stripe_test.rb +25 -0
  106. data/test/test_data.rb +5 -621
  107. data/test/test_helper.rb +24 -24
  108. metadata +60 -139
  109. data/README.rdoc +0 -68
  110. data/gemfiles/default-with-activesupport.gemfile +0 -10
  111. data/gemfiles/json.gemfile +0 -12
  112. data/gemfiles/yajl.gemfile +0 -12
  113. data/lib/stripe/api_operations/update.rb +0 -58
  114. data/lib/stripe/errors/api_connection_error.rb +0 -4
  115. data/lib/stripe/errors/api_error.rb +0 -4
  116. data/lib/stripe/errors/authentication_error.rb +0 -4
  117. data/lib/stripe/errors/card_error.rb +0 -12
  118. data/lib/stripe/errors/invalid_request_error.rb +0 -11
  119. data/lib/stripe/errors/rate_limit_error.rb +0 -4
  120. data/lib/stripe/errors/stripe_error.rb +0 -26
  121. data/test/stripe/charge_refund_test.rb +0 -55
  122. data/test/stripe/metadata_test.rb +0 -129
@@ -0,0 +1,1409 @@
1
+ {
2
+ "account": {
3
+ "active_payment_methods": [
4
+
5
+ ],
6
+ "bank_accounts": {
7
+ },
8
+ "business_logo": "",
9
+ "business_name": "",
10
+ "business_primary_color": "",
11
+ "business_url": "",
12
+ "charges_enabled": false,
13
+ "country": "US",
14
+ "debit_negative_balances": true,
15
+ "decline_charge_on": {
16
+ "avs_failure": false,
17
+ "cvc_failure": false
18
+ },
19
+ "default_currency": "usd",
20
+ "details_submitted": false,
21
+ "display_name": "",
22
+ "email": "foo+bnklon35vv@example.com",
23
+ "external_accounts": {
24
+ "data": [
25
+
26
+ ],
27
+ "has_more": false,
28
+ "object": "list",
29
+ "total_count": 0,
30
+ "url": "/v1/accounts/acct_19mq3gAXZ0PAB0qu/external_accounts"
31
+ },
32
+ "fake_account": false,
33
+ "id": "acct_19mq3gAXZ0PAB0qu",
34
+ "legal_entity": {
35
+ "additional_owners": null,
36
+ "address": {
37
+ "city": null,
38
+ "country": "US",
39
+ "line1": null,
40
+ "line2": null,
41
+ "postal_code": null,
42
+ "state": null
43
+ },
44
+ "business_name": null,
45
+ "business_name_kana": null,
46
+ "business_name_kanji": null,
47
+ "business_tax_id_provided": false,
48
+ "business_vat_id_provided": false,
49
+ "dob": {
50
+ "day": null,
51
+ "month": null,
52
+ "year": null
53
+ },
54
+ "first_name": null,
55
+ "first_name_kana": null,
56
+ "first_name_kanji": null,
57
+ "gender": null,
58
+ "last_name": null,
59
+ "last_name_kana": null,
60
+ "last_name_kanji": null,
61
+ "maiden_name": null,
62
+ "personal_address": {
63
+ "city": null,
64
+ "country": "US",
65
+ "line1": null,
66
+ "line2": null,
67
+ "postal_code": null,
68
+ "state": null
69
+ },
70
+ "personal_id_number_provided": false,
71
+ "phone_number": null,
72
+ "ssn_last_4_provided": false,
73
+ "type": null,
74
+ "verification": {
75
+ "details": null,
76
+ "details_code": null,
77
+ "document": null,
78
+ "status": "unverified"
79
+ }
80
+ },
81
+ "light": false,
82
+ "managed": true,
83
+ "mcc": "",
84
+ "metadata": {
85
+ },
86
+ "object": "account",
87
+ "orders": {
88
+ },
89
+ "product_description": "",
90
+ "risk_details": {
91
+ },
92
+ "statement_descriptor": "",
93
+ "support_address": {
94
+ },
95
+ "support_email": "",
96
+ "support_phone": "",
97
+ "support_url": "",
98
+ "timezone": "Etc/UTC",
99
+ "tos_acceptance": {
100
+ "date": null,
101
+ "ip": null,
102
+ "user_agent": null
103
+ },
104
+ "transfer_schedule": {
105
+ "delay_days": 7,
106
+ "interval": "daily"
107
+ },
108
+ "transfer_statement_descriptor": "",
109
+ "transfers_enabled": false,
110
+ "verification": {
111
+ "disabled_reason": "fields_needed",
112
+ "due_by": null,
113
+ "fields_needed": [
114
+ "business_url",
115
+ "external_account",
116
+ "product_description",
117
+ "support_phone",
118
+ "tos_acceptance.date",
119
+ "tos_acceptance.ip"
120
+ ]
121
+ }
122
+ },
123
+ "account_with_keys": {
124
+ "active_payment_methods": [
125
+
126
+ ],
127
+ "bank_accounts": {
128
+ },
129
+ "business_logo": "",
130
+ "business_name": "",
131
+ "business_primary_color": "",
132
+ "business_url": "",
133
+ "charges_enabled": false,
134
+ "country": "US",
135
+ "debit_negative_balances": false,
136
+ "decline_charge_on": {
137
+ },
138
+ "default_currency": "usd",
139
+ "details_submitted": false,
140
+ "display_name": "",
141
+ "email": "foo+bnklon35vv@example.com",
142
+ "external_accounts": {
143
+ },
144
+ "fake_account": false,
145
+ "id": "acct_19mq3gAXZ0PAB0qu",
146
+ "keys": {
147
+ },
148
+ "legal_entity": {
149
+ },
150
+ "light": false,
151
+ "managed": false,
152
+ "mcc": "",
153
+ "metadata": {
154
+ },
155
+ "object": "account",
156
+ "orders": {
157
+ },
158
+ "product_description": "",
159
+ "risk_details": {
160
+ },
161
+ "statement_descriptor": "",
162
+ "support_address": {
163
+ },
164
+ "support_email": "",
165
+ "support_phone": "",
166
+ "support_url": "",
167
+ "timezone": "Etc/UTC",
168
+ "tos_acceptance": {
169
+ },
170
+ "transfer_schedule": {
171
+ },
172
+ "transfer_statement_descriptor": "",
173
+ "transfers_enabled": false,
174
+ "verification": {
175
+ }
176
+ },
177
+ "alipay_account": {
178
+ "created": 1234567890,
179
+ "customer": "",
180
+ "fingerprint": "b6kmmo2KDWmL6NnE",
181
+ "id": "aliacc_19mq3pAXZ0PAB0qutSJIFvG1",
182
+ "livemode": false,
183
+ "metadata": {
184
+ },
185
+ "object": "alipay_account",
186
+ "payment_amount": 1000,
187
+ "payment_currency": "usd",
188
+ "reusable": false,
189
+ "used": false,
190
+ "username": "test@example.com"
191
+ },
192
+ "apple_pay_domain": {
193
+ "created": 1234567890,
194
+ "domain_name": "example.com",
195
+ "id": "apwc_19mq3lAXZ0PAB0qutk0Bbilz",
196
+ "livemode": true,
197
+ "object": "apple_pay_domain"
198
+ },
199
+ "balance": {
200
+ "available": [
201
+ {
202
+ "amount": 0,
203
+ "currency": "usd",
204
+ "source_types": {
205
+ "card": 0
206
+ }
207
+ }
208
+ ],
209
+ "connect_reserved": [
210
+
211
+ ],
212
+ "livemode": false,
213
+ "object": "balance",
214
+ "pending": [
215
+ {
216
+ "amount": 0,
217
+ "currency": "usd",
218
+ "source_types": {
219
+ "card": 0
220
+ }
221
+ }
222
+ ]
223
+ },
224
+ "balance_transaction": {
225
+ "amount": 100,
226
+ "automatic_transfer": {
227
+ },
228
+ "available_on": 1234567890,
229
+ "created": 1234567890,
230
+ "currency": "usd",
231
+ "description": "",
232
+ "fee": 0,
233
+ "fee_details": [
234
+
235
+ ],
236
+ "id": "txn_19mq3mAXZ0PAB0quuB601NdX",
237
+ "net": 100,
238
+ "object": "balance_transaction",
239
+ "source": "ch_19mq3mAXZ0PAB0quafODEaTb",
240
+ "sourced_transfers": {
241
+ },
242
+ "status": "pending",
243
+ "type": "charge"
244
+ },
245
+ "bitcoin_receiver": {
246
+ "active": false,
247
+ "amount": 100,
248
+ "amount_received": 0,
249
+ "bitcoin_amount": 1757908,
250
+ "bitcoin_amount_received": 0,
251
+ "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908",
252
+ "created": 1234567890,
253
+ "currency": "usd",
254
+ "customer": "",
255
+ "description": "Receiver for John Doe",
256
+ "email": "test@example.com",
257
+ "filled": false,
258
+ "id": "btcrcv_19mq3pAXZ0PAB0quysC4SOJn",
259
+ "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
260
+ "livemode": false,
261
+ "metadata": {
262
+ },
263
+ "object": "bitcoin_receiver",
264
+ "payment": "",
265
+ "refund_address": "",
266
+ "transactions": {
267
+ },
268
+ "uncaptured_funds": false,
269
+ "used_for_payment": false
270
+ },
271
+ "bitcoin_transaction": {
272
+ "amount": 100,
273
+ "bitcoin_amount": 1757908,
274
+ "created": 1234567890,
275
+ "currency": "usd",
276
+ "id": "btctxn_19mq3pAXZ0PAB0quo4NMSQ1P",
277
+ "object": "bitcoin_transaction",
278
+ "receiver": "btcrcv_19mq3pBFZK1NInhS7HqQ8daC"
279
+ },
280
+ "charge": {
281
+ "alternate_statement_descriptors": {
282
+ },
283
+ "amount": 100,
284
+ "amount_authorized": 0,
285
+ "amount_captured": 0,
286
+ "amount_refunded": 0,
287
+ "application": "",
288
+ "application_fee": "",
289
+ "application_fees_refunded": 0,
290
+ "authorization_code": "",
291
+ "balance_transaction": "txn_19mq3mAXZ0PAB0quuB601NdX",
292
+ "captured": true,
293
+ "card": {
294
+ },
295
+ "created": 1234567890,
296
+ "currency": "usd",
297
+ "customer": "",
298
+ "description": "My First Test Charge (created for API docs)",
299
+ "destination": "",
300
+ "dispute": "",
301
+ "failure_code": "",
302
+ "failure_message": "",
303
+ "fee_balance_transactions": {
304
+ },
305
+ "fraud_details": {
306
+ },
307
+ "id": "ch_19mq3mAXZ0PAB0quafODEaTb",
308
+ "invoice": "",
309
+ "level3": {
310
+ },
311
+ "livemode": false,
312
+ "metadata": {
313
+ },
314
+ "object": "charge",
315
+ "on_behalf_of": "",
316
+ "order": "",
317
+ "outcome": {
318
+ },
319
+ "paid": true,
320
+ "receipt_email": "",
321
+ "receipt_number": "",
322
+ "refunded": false,
323
+ "refunds": {
324
+ "data": [
325
+
326
+ ],
327
+ "has_more": false,
328
+ "object": "list",
329
+ "total_count": 0,
330
+ "url": "/v1/charges/ch_19mq3mAXZ0PAB0quafODEaTb/refunds"
331
+ },
332
+ "review": "",
333
+ "shipping": {
334
+ },
335
+ "source": {
336
+ "address_city": null,
337
+ "address_country": null,
338
+ "address_line1": null,
339
+ "address_line1_check": null,
340
+ "address_line2": null,
341
+ "address_state": null,
342
+ "address_zip": null,
343
+ "address_zip_check": null,
344
+ "brand": "Visa",
345
+ "country": null,
346
+ "customer": null,
347
+ "cvc_check": null,
348
+ "dynamic_last4": null,
349
+ "exp_month": 8,
350
+ "exp_year": 2018,
351
+ "funding": "unknown",
352
+ "id": "card_19mq3lAXZ0PAB0quo1Fi4kuG",
353
+ "last4": "4242",
354
+ "metadata": {
355
+ },
356
+ "name": null,
357
+ "object": "card",
358
+ "tokenization_method": null
359
+ },
360
+ "source_transfer": "",
361
+ "statement_descriptor": "",
362
+ "status": "succeeded",
363
+ "transfer": "",
364
+ "transfer_group": "",
365
+ "trust": {
366
+ }
367
+ },
368
+ "country_spec": {
369
+ "default_currency": "usd",
370
+ "field_schemas": {
371
+ },
372
+ "id": "US",
373
+ "object": "country_spec",
374
+ "supported_bank_account_currencies": {
375
+ "usd": [
376
+ "US"
377
+ ]
378
+ },
379
+ "supported_payment_currencies": [
380
+ "...",
381
+ "aed",
382
+ "afn",
383
+ "usd"
384
+ ],
385
+ "supported_payment_methods": [
386
+ "alipay",
387
+ "card",
388
+ "stripe"
389
+ ],
390
+ "verification_fields": {
391
+ "company": {
392
+ "additional": [
393
+
394
+ ],
395
+ "minimum": [
396
+
397
+ ]
398
+ },
399
+ "individual": {
400
+ "additional": [
401
+
402
+ ],
403
+ "minimum": [
404
+
405
+ ]
406
+ }
407
+ }
408
+ },
409
+ "coupon": {
410
+ "amount_off": 0,
411
+ "created": 1234567890,
412
+ "currency": "usd",
413
+ "duration": "repeating",
414
+ "duration_in_months": 3,
415
+ "id": "25OFF",
416
+ "livemode": false,
417
+ "max_redemptions": 0,
418
+ "metadata": {
419
+ },
420
+ "object": "coupon",
421
+ "percent_off": 25,
422
+ "redeem_by": 1234567890,
423
+ "times_redeemed": 0,
424
+ "valid": true
425
+ },
426
+ "customer": {
427
+ "account_balance": 0,
428
+ "alipay_accounts": {
429
+ },
430
+ "bank_accounts": {
431
+ },
432
+ "business_vat_id": "",
433
+ "cards": {
434
+ },
435
+ "created": 1234567890,
436
+ "currency": "usd",
437
+ "default_bank_account": "",
438
+ "default_card": "",
439
+ "default_source": "",
440
+ "default_source_type": "",
441
+ "delinquent": false,
442
+ "description": "",
443
+ "discount": {
444
+ },
445
+ "email": "",
446
+ "id": "cus_A74CGlAc6Xc9o8",
447
+ "livemode": false,
448
+ "metadata": {
449
+ },
450
+ "object": "customer",
451
+ "shipping": {
452
+ },
453
+ "sources": {
454
+ "data": [
455
+
456
+ ],
457
+ "has_more": false,
458
+ "object": "list",
459
+ "total_count": 0,
460
+ "url": "/v1/customers/cus_A74CGlAc6Xc9o8/sources"
461
+ },
462
+ "subscription": {
463
+ },
464
+ "subscriptions": {
465
+ "data": [
466
+
467
+ ],
468
+ "has_more": false,
469
+ "object": "list",
470
+ "total_count": 0,
471
+ "url": "/v1/customers/cus_A74CGlAc6Xc9o8/subscriptions"
472
+ },
473
+ "trust": {
474
+ }
475
+ },
476
+ "customer_source": {
477
+ "id": "ba_19mq3pAXZ0PAB0que2xYqubF",
478
+ "metadata": {
479
+ },
480
+ "object": "bank_account"
481
+ },
482
+ "discount": {
483
+ "coupon": {
484
+ "amount_off": null,
485
+ "created": 1487016273,
486
+ "currency": "usd",
487
+ "duration": "repeating",
488
+ "duration_in_months": 3,
489
+ "id": "25OFF",
490
+ "livemode": false,
491
+ "max_redemptions": null,
492
+ "metadata": {
493
+ },
494
+ "object": "coupon",
495
+ "percent_off": 25,
496
+ "redeem_by": null,
497
+ "times_redeemed": 0,
498
+ "valid": true
499
+ },
500
+ "customer": "cus_A74CGlAc6Xc9o8",
501
+ "end": 1234567890,
502
+ "object": "discount",
503
+ "start": 1234567890,
504
+ "subscription": ""
505
+ },
506
+ "dispute": {
507
+ "accepted_at": 1234567890,
508
+ "amount": 1000,
509
+ "balance_transaction": "",
510
+ "balance_transactions": [
511
+
512
+ ],
513
+ "charge": "ch_19mq3mAXZ0PAB0quafODEaTb",
514
+ "closed_at": 1234567890,
515
+ "created": 1234567890,
516
+ "currency": "usd",
517
+ "escalated_at": 1234567890,
518
+ "evidence": {
519
+ "access_activity_log": null,
520
+ "billing_address": null,
521
+ "cancellation_policy": null,
522
+ "cancellation_policy_disclosure": null,
523
+ "cancellation_rebuttal": null,
524
+ "customer_communication": null,
525
+ "customer_email_address": null,
526
+ "customer_name": null,
527
+ "customer_purchase_ip": null,
528
+ "customer_signature": null,
529
+ "duplicate_charge_documentation": null,
530
+ "duplicate_charge_explanation": null,
531
+ "duplicate_charge_id": null,
532
+ "product_description": null,
533
+ "receipt": null,
534
+ "refund_policy": null,
535
+ "refund_policy_disclosure": null,
536
+ "refund_refusal_explanation": null,
537
+ "service_date": null,
538
+ "service_documentation": null,
539
+ "shipping_address": null,
540
+ "shipping_carrier": null,
541
+ "shipping_date": null,
542
+ "shipping_documentation": null,
543
+ "shipping_tracking_number": null,
544
+ "uncategorized_file": null,
545
+ "uncategorized_text": null
546
+ },
547
+ "evidence_details": {
548
+ "due_by": 1488671999,
549
+ "has_evidence": false,
550
+ "past_due": false,
551
+ "submission_count": 0
552
+ },
553
+ "evidence_submitted_at": [
554
+
555
+ ],
556
+ "id": "dp_19mq3nAXZ0PAB0quWfu875gB",
557
+ "is_charge_refundable": false,
558
+ "is_protected": false,
559
+ "livemode": false,
560
+ "metadata": {
561
+ },
562
+ "network_reason_code": "",
563
+ "object": "dispute",
564
+ "reason": "general",
565
+ "status": "needs_response"
566
+ },
567
+ "event": {
568
+ "api_version": "",
569
+ "created": 1234567890,
570
+ "customer_email": "",
571
+ "data": {
572
+ "object": {
573
+ "amount": 2000,
574
+ "created": 1487016273,
575
+ "currency": "usd",
576
+ "id": "gold",
577
+ "interval": "month",
578
+ "interval_count": 1,
579
+ "livemode": false,
580
+ "metadata": {
581
+ },
582
+ "name": "Gold Special",
583
+ "object": "plan",
584
+ "statement_descriptor": null,
585
+ "trial_period_days": null
586
+ }
587
+ },
588
+ "id": "evt_19mq3pAXZ0PAB0qutMlKV6c3",
589
+ "livemode": false,
590
+ "object": "event",
591
+ "pending_webhooks": 0,
592
+ "recipient_best_description": "",
593
+ "request": "",
594
+ "type": "plan.created"
595
+ },
596
+ "external_account_source": {
597
+ "account": "acct_19mq3gAXZ0PAB0qu",
598
+ "address_city": "",
599
+ "address_line1": "",
600
+ "address_line2": "",
601
+ "address_state": "",
602
+ "address_zip": "",
603
+ "country": "US",
604
+ "currency": "usd",
605
+ "default_for_currency": false,
606
+ "fingerprint": "d23J1TFOicgP64nb",
607
+ "id": "ba_19mq3pAXZ0PAB0que2xYqubF",
608
+ "last4": "6789",
609
+ "metadata": {
610
+ },
611
+ "object": "bank_account"
612
+ },
613
+ "fee_refund": {
614
+ "amount": 100,
615
+ "balance_transaction": "",
616
+ "created": 1234567890,
617
+ "currency": "usd",
618
+ "fee": "fee_19mq3pAXZ0PAB0quKLPknTXJ",
619
+ "id": "fr_A74Ce1Bh7Kr6UC",
620
+ "metadata": {
621
+ },
622
+ "object": "fee_refund"
623
+ },
624
+ "invoice": {
625
+ "amount_due": 0,
626
+ "application_fee": 0,
627
+ "attempt_count": 0,
628
+ "attempted": false,
629
+ "billing": "",
630
+ "charge": "",
631
+ "closed": false,
632
+ "currency": "usd",
633
+ "customer": "cus_A74CGlAc6Xc9o8",
634
+ "date": 1234567890,
635
+ "description": "",
636
+ "discount": {
637
+ },
638
+ "due_date": 1234567890,
639
+ "ending_balance": 0,
640
+ "forgiven": false,
641
+ "id": "in_19mq3pAXZ0PAB0qupydNkllt",
642
+ "lines": {
643
+ "data": [
644
+ {
645
+ "amount": 2000,
646
+ "currency": "usd",
647
+ "description": null,
648
+ "discountable": true,
649
+ "id": "sub_A74CDfuKRtyn06",
650
+ "livemode": true,
651
+ "metadata": {
652
+ },
653
+ "object": "line_item",
654
+ "period": {
655
+ "end": 1492113872,
656
+ "start": 1489435472
657
+ },
658
+ "plan": {
659
+ "amount": 2000,
660
+ "created": 1487016273,
661
+ "currency": "usd",
662
+ "id": "gold",
663
+ "interval": "month",
664
+ "interval_count": 1,
665
+ "livemode": false,
666
+ "metadata": {
667
+ },
668
+ "name": "Gold Special",
669
+ "object": "plan",
670
+ "statement_descriptor": null,
671
+ "trial_period_days": null
672
+ },
673
+ "proration": false,
674
+ "quantity": 1,
675
+ "subscription": null,
676
+ "subscription_item": "si_19mq3oBFZK1NInhSuSpw3kRl",
677
+ "type": "subscription"
678
+ }
679
+ ],
680
+ "object": "list",
681
+ "total_count": 1,
682
+ "url": "/v1/invoices/in_19mq3pAXZ0PAB0qupydNkllt/lines"
683
+ },
684
+ "livemode": false,
685
+ "metadata": {
686
+ },
687
+ "next_payment_attempt": 1234567890,
688
+ "number": "",
689
+ "object": "invoice",
690
+ "paid": false,
691
+ "period_end": 1234567890,
692
+ "period_start": 1234567890,
693
+ "receipt_number": "",
694
+ "starting_balance": 0,
695
+ "statement_descriptor": "",
696
+ "subscription": "",
697
+ "subscription_proration_date": 0,
698
+ "subtotal": 0,
699
+ "tax": 0,
700
+ "tax_percent": 0.0,
701
+ "total": 0,
702
+ "webhooks_delivered_at": 1234567890
703
+ },
704
+ "invoice_item": {
705
+ "amount": 1000,
706
+ "currency": "usd",
707
+ "customer": "cus_A74CGlAc6Xc9o8",
708
+ "date": 1234567890,
709
+ "description": "My First Invoice Item (created for API docs)",
710
+ "discountable": true,
711
+ "id": "ii_19mq3pAXZ0PAB0quXd6LJkwP",
712
+ "invoice": "",
713
+ "livemode": false,
714
+ "metadata": {
715
+ },
716
+ "object": "invoiceitem",
717
+ "period": {
718
+ "end": 1487016273,
719
+ "start": 1487016273
720
+ },
721
+ "plan": {
722
+ },
723
+ "proration": false,
724
+ "quantity": 0,
725
+ "subscription": "",
726
+ "subscription_item": ""
727
+ },
728
+ "invoice_line_item": {
729
+ "amount": 1000,
730
+ "currency": "usd",
731
+ "description": "My First Invoice Item (created for API docs)",
732
+ "discountable": true,
733
+ "id": "ii_19mq3pAXZ0PAB0quXd6LJkwP",
734
+ "livemode": false,
735
+ "metadata": {
736
+ },
737
+ "object": "line_item",
738
+ "period": {
739
+ "end": 1487016273,
740
+ "start": 1487016273
741
+ },
742
+ "plan": {
743
+ },
744
+ "proration": false,
745
+ "quantity": 0,
746
+ "subscription": "",
747
+ "subscription_item": "",
748
+ "type": "invoiceitem"
749
+ },
750
+ "legacy_transfer": {
751
+ "amount": 1100,
752
+ "amount_reversed": 0,
753
+ "application_fee": "",
754
+ "auto": false,
755
+ "balance_transaction": "",
756
+ "bank_account": {
757
+ },
758
+ "card": {
759
+ },
760
+ "created": 1234567890,
761
+ "currency": "usd",
762
+ "date": 1234567890,
763
+ "delay_reason": "",
764
+ "description": "Transfer to test@example.com",
765
+ "destination": "ba_19mq3pAXZ0PAB0qurDV9Avlb",
766
+ "destination_payment": "",
767
+ "failure_code": "",
768
+ "failure_message": "",
769
+ "id": "tr_19mq3pAXZ0PAB0qubIKTrixZ",
770
+ "legacy_date": 1234567890,
771
+ "livemode": false,
772
+ "metadata": {
773
+ },
774
+ "method": "standard",
775
+ "object": "transfer",
776
+ "recipient": "rp_19mq3pAXZ0PAB0quySWBNl2v",
777
+ "reversals": {
778
+ "data": [
779
+
780
+ ],
781
+ "has_more": false,
782
+ "object": "list",
783
+ "total_count": 0,
784
+ "url": "/v1/transfers/tr_19mq3pAXZ0PAB0qubIKTrixZ/reversals"
785
+ },
786
+ "reversed": false,
787
+ "source_transaction": "",
788
+ "source_type": "card",
789
+ "statement_descriptor": "",
790
+ "status": "in_transit",
791
+ "transfer_group": "",
792
+ "type": "bank_account",
793
+ "user_visible_date": 1234567890
794
+ },
795
+ "order": {
796
+ "amount": 1500,
797
+ "amount_returned": 0,
798
+ "application": "",
799
+ "application_fee": 0,
800
+ "charge": "",
801
+ "created": 1234567890,
802
+ "currency": "usd",
803
+ "customer": "",
804
+ "email": "",
805
+ "external_coupon_code": "",
806
+ "external_sku_ids": [
807
+
808
+ ],
809
+ "id": "or_19mq3qAXZ0PAB0qua7xjbAdc",
810
+ "items": [
811
+ {
812
+ "amount": 1500,
813
+ "currency": "usd",
814
+ "description": "T-shirt",
815
+ "object": "order_item",
816
+ "parent": "sk_19mq3qAXZ0PAB0quLkoPCkNK",
817
+ "quantity": null,
818
+ "type": "sku"
819
+ }
820
+ ],
821
+ "livemode": false,
822
+ "metadata": {
823
+ },
824
+ "object": "order",
825
+ "returns": {
826
+ "data": [
827
+
828
+ ],
829
+ "has_more": false,
830
+ "object": "list",
831
+ "total_count": 0,
832
+ "url": "/v1/order_returns?order=or_19mq3qAXZ0PAB0qua7xjbAdc"
833
+ },
834
+ "selected_shipping_method": "",
835
+ "shipping": {
836
+ "address": {
837
+ "city": "Anytown",
838
+ "country": "US",
839
+ "line1": "1234 Main street",
840
+ "line2": null,
841
+ "postal_code": "123456",
842
+ "state": null
843
+ },
844
+ "carrier": null,
845
+ "name": "Jenny Rosen",
846
+ "phone": null,
847
+ "tracking_number": null
848
+ },
849
+ "shipping_methods": {
850
+ },
851
+ "signature": "",
852
+ "status": "created",
853
+ "status_transitions": {
854
+ },
855
+ "updated": 1234567890,
856
+ "upstream_id": ""
857
+ },
858
+ "order_return": {
859
+ "amount": 1500,
860
+ "created": 1234567890,
861
+ "currency": "usd",
862
+ "id": "orret_19mq3qAXZ0PAB0qu32DCGDSQ",
863
+ "items": [
864
+ {
865
+ "amount": 1500,
866
+ "currency": "usd",
867
+ "description": "T-shirt",
868
+ "object": "order_item",
869
+ "parent": "sk_19mq3qAXZ0PAB0quLkoPCkNK",
870
+ "quantity": null,
871
+ "type": "sku"
872
+ }
873
+ ],
874
+ "livemode": false,
875
+ "object": "order_return",
876
+ "order": "or_19mq3qAXZ0PAB0qu1Sr0vNrE",
877
+ "refund": "re_19mq3qAXZ0PAB0qu9txUplQ2"
878
+ },
879
+ "payment_bank_account": {
880
+ "account_holder_name": "Jane Austen",
881
+ "account_holder_type": "individual",
882
+ "address_city": "",
883
+ "address_line1": "",
884
+ "address_line2": "",
885
+ "address_state": "",
886
+ "address_zip": "",
887
+ "bank_name": "STRIPE TEST BANK",
888
+ "bank_phone_number": "",
889
+ "country": "US",
890
+ "currency": "usd",
891
+ "customer": "",
892
+ "customer_reference": "",
893
+ "fingerprint": "d23J1TFOicgP64nb",
894
+ "id": "ba_19mq3pAXZ0PAB0que2xYqubF",
895
+ "last4": "6789",
896
+ "metadata": {
897
+ },
898
+ "object": "bank_account",
899
+ "reusable": false,
900
+ "routing_number": "110000000",
901
+ "status": "new",
902
+ "used": false
903
+ },
904
+ "payment_card": {
905
+ "3d_secure": {
906
+ },
907
+ "address_city": "",
908
+ "address_country": "",
909
+ "address_line1": "",
910
+ "address_line1_check": "",
911
+ "address_line2": "",
912
+ "address_state": "",
913
+ "address_zip": "",
914
+ "address_zip_check": "",
915
+ "brand": "",
916
+ "country": "",
917
+ "customer": "",
918
+ "cvc_check": "",
919
+ "description": "",
920
+ "dynamic_last4": "",
921
+ "emv_auth_data": "",
922
+ "exp_month": 0,
923
+ "exp_year": 0,
924
+ "fingerprint": "",
925
+ "funding": "",
926
+ "google_reference": "",
927
+ "id": "tok_19mq3pAXZ0PAB0qucG7ckr0s",
928
+ "iin": "",
929
+ "issuer": "",
930
+ "last4": "",
931
+ "metadata": {
932
+ },
933
+ "name": "",
934
+ "object": "token",
935
+ "three_d_secure": {
936
+ },
937
+ "tokenization_method": ""
938
+ },
939
+ "plan": {
940
+ "amount": 2000,
941
+ "created": 1234567890,
942
+ "currency": "usd",
943
+ "id": "gold",
944
+ "interval": "month",
945
+ "interval_count": 1,
946
+ "livemode": false,
947
+ "metadata": {
948
+ },
949
+ "name": "Gold Special",
950
+ "object": "plan",
951
+ "statement_descriptor": "",
952
+ "trial_period_days": 0
953
+ },
954
+ "platform_earning": {
955
+ "account": "acct_19mq3gAXZ0PAB0qu",
956
+ "amount": 100,
957
+ "amount_refunded": 0,
958
+ "application": "ca_A74Cy7ZahkUTCBUvdzDMqtBz3n9zWjJw",
959
+ "balance_transaction": "txn_19mq3mAXZ0PAB0quuB601NdX",
960
+ "charge": "ch_19mq3mAXZ0PAB0quafODEaTb",
961
+ "created": 1234567890,
962
+ "currency": "usd",
963
+ "id": "fee_19mq3pAXZ0PAB0quKLPknTXJ",
964
+ "livemode": false,
965
+ "object": "application_fee",
966
+ "originating_transaction": "",
967
+ "refunded": false,
968
+ "refunds": {
969
+ "data": [
970
+
971
+ ],
972
+ "has_more": false,
973
+ "object": "list",
974
+ "total_count": 0,
975
+ "url": "/v1/application_fees/fee_19mq3pAXZ0PAB0quKLPknTXJ/refunds"
976
+ }
977
+ },
978
+ "product": {
979
+ "active": true,
980
+ "attributes": [
981
+ "gender",
982
+ "size"
983
+ ],
984
+ "caption": "",
985
+ "created": 1234567890,
986
+ "deactivate_on": [
987
+
988
+ ],
989
+ "description": "Comfortable gray cotton t-shirts",
990
+ "donation": false,
991
+ "id": "prod_A74CjbvJG198EF",
992
+ "images": [
993
+
994
+ ],
995
+ "livemode": false,
996
+ "metadata": {
997
+ },
998
+ "name": "T-shirt",
999
+ "object": "product",
1000
+ "package_dimensions": {
1001
+ },
1002
+ "reason_product_not_tweetable": "",
1003
+ "shippable": true,
1004
+ "skus": {
1005
+ "data": [
1006
+
1007
+ ],
1008
+ "has_more": false,
1009
+ "object": "list",
1010
+ "total_count": 0,
1011
+ "url": "/v1/skus?product=prod_A74CjbvJG198EF\u0026active=true"
1012
+ },
1013
+ "tweetable_url": "",
1014
+ "updated": 1234567890,
1015
+ "url": ""
1016
+ },
1017
+ "recipient_payout_card": {
1018
+ "address_city": "",
1019
+ "address_country": "",
1020
+ "address_line1": "",
1021
+ "address_line1_check": "",
1022
+ "address_line2": "",
1023
+ "address_state": "",
1024
+ "address_zip": "",
1025
+ "address_zip_check": "",
1026
+ "brand": "",
1027
+ "country": "",
1028
+ "cvc_check": "",
1029
+ "description": "",
1030
+ "dynamic_last4": "",
1031
+ "estimated_availability": "",
1032
+ "exp_month": 0,
1033
+ "exp_year": 0,
1034
+ "fingerprint": "",
1035
+ "funding": "",
1036
+ "google_reference": "",
1037
+ "id": "tok_19mq3pAXZ0PAB0qucG7ckr0s",
1038
+ "iin": "",
1039
+ "issuer": "",
1040
+ "last4": "",
1041
+ "metadata": {
1042
+ },
1043
+ "name": "",
1044
+ "object": "token",
1045
+ "recipient": "",
1046
+ "three_d_secure": {
1047
+ },
1048
+ "tokenization_method": ""
1049
+ },
1050
+ "refund": {
1051
+ "amount": 100,
1052
+ "balance_transaction": "",
1053
+ "charge": "ch_19mq3mAXZ0PAB0quafODEaTb",
1054
+ "created": 1234567890,
1055
+ "currency": "usd",
1056
+ "description": "",
1057
+ "fee_balance_transactions": {
1058
+ },
1059
+ "id": "re_19mq3nAXZ0PAB0quqH5KQOit",
1060
+ "metadata": {
1061
+ },
1062
+ "object": "refund",
1063
+ "reason": "",
1064
+ "receipt_number": "",
1065
+ "status": "succeeded",
1066
+ "type": ""
1067
+ },
1068
+ "sku": {
1069
+ "active": true,
1070
+ "attributes": {
1071
+ "gender": "Unisex",
1072
+ "size": "Medium"
1073
+ },
1074
+ "created": 1234567890,
1075
+ "currency": "usd",
1076
+ "id": "sku_A74CaPnn1qmjb1",
1077
+ "image": "",
1078
+ "inventory": {
1079
+ "quantity": 50,
1080
+ "type": "finite",
1081
+ "value": null
1082
+ },
1083
+ "livemode": false,
1084
+ "metadata": {
1085
+ },
1086
+ "object": "sku",
1087
+ "package_dimensions": {
1088
+ },
1089
+ "price": 1500,
1090
+ "product": "prod_A74CjbvJG198EF",
1091
+ "updated": 1234567890
1092
+ },
1093
+ "source": {
1094
+ "amount": 0,
1095
+ "client_secret": "",
1096
+ "code_verification": {
1097
+ },
1098
+ "created": 1234567890,
1099
+ "currency": "",
1100
+ "customer": "",
1101
+ "flow": "",
1102
+ "id": "card_19mq3pAXZ0PAB0quryDGMYFl",
1103
+ "livemode": false,
1104
+ "metadata": {
1105
+ },
1106
+ "object": "card",
1107
+ "order": "",
1108
+ "owner": {
1109
+ },
1110
+ "receiver": {
1111
+ },
1112
+ "redirect": {
1113
+ },
1114
+ "status": "",
1115
+ "type": "",
1116
+ "usage": ""
1117
+ },
1118
+ "subscription": {
1119
+ "account_balance": 0,
1120
+ "application_fee_percent": 0.0,
1121
+ "billing": "",
1122
+ "cancel_at_period_end": false,
1123
+ "canceled_at": 1234567890,
1124
+ "created": 1234567890,
1125
+ "current_period_end": 1234567890,
1126
+ "current_period_start": 1234567890,
1127
+ "customer": "cus_A74CD39bY4X367",
1128
+ "days_until_due": 0,
1129
+ "discount": {
1130
+ },
1131
+ "ended_at": 1234567890,
1132
+ "id": "sub_A74CDfuKRtyn06",
1133
+ "items": {
1134
+ "data": [
1135
+ {
1136
+ "created": 1487016273,
1137
+ "id": "si_19mq3oBFZK1NInhSuSpw3kRl",
1138
+ "object": "subscription_item",
1139
+ "plan": {
1140
+ "amount": 2000,
1141
+ "created": 1487016272,
1142
+ "currency": "usd",
1143
+ "id": "gold",
1144
+ "interval": "month",
1145
+ "interval_count": 1,
1146
+ "livemode": false,
1147
+ "metadata": {
1148
+ },
1149
+ "name": "Gold Special",
1150
+ "object": "plan",
1151
+ "statement_descriptor": null,
1152
+ "trial_period_days": null
1153
+ },
1154
+ "quantity": 1
1155
+ }
1156
+ ],
1157
+ "has_more": false,
1158
+ "object": "list",
1159
+ "total_count": 1,
1160
+ "url": "/v1/subscription_items?subscription=sub_A74CDfuKRtyn06"
1161
+ },
1162
+ "livemode": false,
1163
+ "max_occurrences": 0,
1164
+ "metadata": {
1165
+ },
1166
+ "object": "subscription",
1167
+ "plan": {
1168
+ "amount": 2000,
1169
+ "created": 1487016272,
1170
+ "currency": "usd",
1171
+ "id": "gold",
1172
+ "interval": "month",
1173
+ "interval_count": 1,
1174
+ "livemode": false,
1175
+ "metadata": {
1176
+ },
1177
+ "name": "Gold Special",
1178
+ "object": "plan",
1179
+ "statement_descriptor": null,
1180
+ "trial_period_days": null
1181
+ },
1182
+ "quantity": 1,
1183
+ "retains_own_balance": false,
1184
+ "start": 1234567890,
1185
+ "status": "active",
1186
+ "tax_percent": 0.0,
1187
+ "trial_end": 1234567890,
1188
+ "trial_start": 1234567890
1189
+ },
1190
+ "subscription_item": {
1191
+ "created": 1487016273,
1192
+ "id": "si_19mq3oBFZK1NInhS3ZhhdFF8",
1193
+ "object": "subscription_item",
1194
+ "plan": {
1195
+ "amount": 2000,
1196
+ "created": 1487016272,
1197
+ "currency": "usd",
1198
+ "id": "gold",
1199
+ "interval": "month",
1200
+ "interval_count": 1,
1201
+ "livemode": false,
1202
+ "metadata": {
1203
+ },
1204
+ "name": "Gold Special",
1205
+ "object": "plan",
1206
+ "statement_descriptor": null,
1207
+ "trial_period_days": null
1208
+ },
1209
+ "quantity": 1
1210
+ },
1211
+ "three_d_secure": {
1212
+ "amount": 1500,
1213
+ "authenticated": false,
1214
+ "card": {
1215
+ "address_city": null,
1216
+ "address_country": null,
1217
+ "address_line1": null,
1218
+ "address_line1_check": null,
1219
+ "address_line2": null,
1220
+ "address_state": null,
1221
+ "address_zip": null,
1222
+ "address_zip_check": null,
1223
+ "brand": "Visa",
1224
+ "country": null,
1225
+ "customer": null,
1226
+ "cvc_check": null,
1227
+ "dynamic_last4": null,
1228
+ "exp_month": 8,
1229
+ "exp_year": 2018,
1230
+ "funding": "unknown",
1231
+ "id": "card_19mq3pAXZ0PAB0quryDGMYFl",
1232
+ "last4": "4242",
1233
+ "metadata": {
1234
+ },
1235
+ "name": null,
1236
+ "object": "card",
1237
+ "tokenization_method": null
1238
+ },
1239
+ "created": 1234567890,
1240
+ "currency": "usd",
1241
+ "id": "tdsrc_A74Cn8dTJLosfe",
1242
+ "livemode": false,
1243
+ "object": "three_d_secure",
1244
+ "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_A74Cn8dTJLosfe",
1245
+ "status": "redirect_pending"
1246
+ },
1247
+ "token": {
1248
+ "account_details": {
1249
+ },
1250
+ "alipay_account": {
1251
+ },
1252
+ "bank_account": {
1253
+ },
1254
+ "card": {
1255
+ "address_city": null,
1256
+ "address_country": null,
1257
+ "address_line1": null,
1258
+ "address_line1_check": null,
1259
+ "address_line2": null,
1260
+ "address_state": null,
1261
+ "address_zip": null,
1262
+ "address_zip_check": null,
1263
+ "brand": "Visa",
1264
+ "country": null,
1265
+ "cvc_check": null,
1266
+ "dynamic_last4": null,
1267
+ "exp_month": 8,
1268
+ "exp_year": 2018,
1269
+ "funding": "unknown",
1270
+ "id": "card_19mq3pAXZ0PAB0quryDGMYFl",
1271
+ "last4": "4242",
1272
+ "metadata": {
1273
+ },
1274
+ "name": null,
1275
+ "object": "card",
1276
+ "tokenization_method": null
1277
+ },
1278
+ "client_ip": "",
1279
+ "created": 1234567890,
1280
+ "description": "",
1281
+ "email": "",
1282
+ "id": "tok_19mq3pAXZ0PAB0qucG7ckr0s",
1283
+ "livemode": false,
1284
+ "object": "token",
1285
+ "type": "card",
1286
+ "usage": "",
1287
+ "used": false
1288
+ },
1289
+ "transfer": {
1290
+ "amount": 1100,
1291
+ "amount_reversed": 0,
1292
+ "balance_transaction": "txn_19mq3mAXZ0PAB0quuB601NdX",
1293
+ "created": 1234567890,
1294
+ "currency": "usd",
1295
+ "destination": "ba_19mq3pAXZ0PAB0qurDV9Avlb",
1296
+ "destination_payment": "",
1297
+ "id": "tr_19mq3pAXZ0PAB0qubIKTrixZ",
1298
+ "livemode": false,
1299
+ "metadata": {
1300
+ },
1301
+ "object": "transfer",
1302
+ "reversals": {
1303
+ "data": [
1304
+
1305
+ ],
1306
+ "has_more": false,
1307
+ "object": "list",
1308
+ "total_count": 0,
1309
+ "url": "/v1/transfers/tr_19mq3pAXZ0PAB0qubIKTrixZ/reversals"
1310
+ },
1311
+ "reversed": false,
1312
+ "transfer_group": ""
1313
+ },
1314
+ "transfer_recipient": {
1315
+ "active_account": {
1316
+ },
1317
+ "address_city": "",
1318
+ "address_country": "",
1319
+ "address_line1": "",
1320
+ "address_line2": "",
1321
+ "address_state": "",
1322
+ "address_zip": "",
1323
+ "cards": {
1324
+ "data": [
1325
+
1326
+ ],
1327
+ "has_more": false,
1328
+ "object": "list",
1329
+ "total_count": 0,
1330
+ "url": "/v1/recipients/rp_19mq3pAXZ0PAB0quySWBNl2v/cards"
1331
+ },
1332
+ "country": "",
1333
+ "created": 1234567890,
1334
+ "default_card": "",
1335
+ "description": "Recipient for John Doe",
1336
+ "dob_day": "",
1337
+ "dob_month": "",
1338
+ "dob_year": "",
1339
+ "email": "test@example.com",
1340
+ "id": "rp_19mq3pAXZ0PAB0quySWBNl2v",
1341
+ "livemode": false,
1342
+ "metadata": {
1343
+ },
1344
+ "migrated_to": "",
1345
+ "name": "John Doe",
1346
+ "object": "recipient",
1347
+ "tin": "",
1348
+ "tin_verification_pending": false,
1349
+ "type": "individual",
1350
+ "verified": false
1351
+ },
1352
+ "transfer_reversal": {
1353
+ "amount": 1100,
1354
+ "balance_transaction": "",
1355
+ "created": 1234567890,
1356
+ "currency": "usd",
1357
+ "id": "trr_19mq3pAXZ0PAB0quDwZdcrSt",
1358
+ "metadata": {
1359
+ },
1360
+ "object": "transfer_reversal",
1361
+ "transfer": "tr_19mq3pAXZ0PAB0qubIKTrixZ"
1362
+ },
1363
+ "upcoming_invoice": {
1364
+ "amount_due": 0,
1365
+ "application_fee": 0,
1366
+ "attempt_count": 0,
1367
+ "attempted": false,
1368
+ "billing": "",
1369
+ "charge": "",
1370
+ "closed": false,
1371
+ "currency": "usd",
1372
+ "customer": "cus_A74CGlAc6Xc9o8",
1373
+ "date": 1234567890,
1374
+ "description": "",
1375
+ "discount": {
1376
+ },
1377
+ "due_date": 1234567890,
1378
+ "ending_balance": 0,
1379
+ "forgiven": false,
1380
+ "lines": {
1381
+ "data": [
1382
+
1383
+ ],
1384
+ "has_more": false,
1385
+ "object": "list",
1386
+ "total_count": 0,
1387
+ "url": "/v1/invoices/in_19mq3pAXZ0PAB0qupydNkllt/lines"
1388
+ },
1389
+ "livemode": false,
1390
+ "metadata": {
1391
+ },
1392
+ "next_payment_attempt": 1234567890,
1393
+ "number": "",
1394
+ "object": "invoice",
1395
+ "paid": false,
1396
+ "period_end": 1234567890,
1397
+ "period_start": 1234567890,
1398
+ "receipt_number": "",
1399
+ "starting_balance": 0,
1400
+ "statement_descriptor": "",
1401
+ "subscription": "",
1402
+ "subscription_proration_date": 0,
1403
+ "subtotal": 0,
1404
+ "tax": 0,
1405
+ "tax_percent": 0.0,
1406
+ "total": 0,
1407
+ "webhooks_delivered_at": 1234567890
1408
+ }
1409
+ }