stripe 3.0.3 → 3.1.0

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