stripe 2.0.3 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08477fe3a7d16944c6bb51978cfb8490fa353951
4
- data.tar.gz: 8ded44a9360759b46bbe1624284e48c238795cb0
3
+ metadata.gz: f7d907c3a718dd38a82e29ad6f16b5e3cd094e47
4
+ data.tar.gz: 91085d626fac5258df86df165554cfd307791d76
5
5
  SHA512:
6
- metadata.gz: 5485338b4e399f6fd47f77e73995764d73fbfe75cbec8e67bb3650650972104a6b86d12b9ab3bcd32826574e211078bf9f12106eae0f156cccd8f383c08af37e
7
- data.tar.gz: f4f25a6d1ccae7103d8c3ff3f2289dbb127f7246895fffa9d80d02da3c32a629f41894e5541f19dcc0f1c515f5912048d6ef970b2a7026427bc8d9dc2bbfc5cd
6
+ metadata.gz: 97ac39759887972f5c8acee1b71be19b1d55a5faf3b423617159f15c1708fc0adfe7ee2965f715e117e33946e0c75cea8550bc9400d58d1885e50ddf1587fc8f
7
+ data.tar.gz: 931a85a7ad7ccac15e9c4f6b424639ca730555befb04c1117ce952529a7dc046e2d9c9af7b61ab87d6311672540842bfe9790bb866f109c387563adb9c38f4e5
@@ -1,3 +1,7 @@
1
+ === 2.1.0 2017-03-17
2
+
3
+ * Support for detaching sources from customers
4
+
1
5
  === 2.0.3 2017-03-16
2
6
 
3
7
  * Fix marshalling of `StripeObjects` that have an embedded client
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.3
1
+ 2.1.0
@@ -5,11 +5,11 @@ module Stripe
5
5
  extend Stripe::APIOperations::List
6
6
 
7
7
  def resource_url
8
- if respond_to?(:recipient)
8
+ if respond_to?(:recipient) && !recipient.nil? && !recipient.empty?
9
9
  "#{Recipient.resource_url}/#{CGI.escape(recipient)}/cards/#{CGI.escape(id)}"
10
- elsif respond_to?(:customer)
10
+ elsif respond_to?(:customer) && !customer.nil? && !customer.empty?
11
11
  "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
12
- elsif respond_to?(:account)
12
+ elsif respond_to?(:account) && !account.nil? && !account.empty?
13
13
  "#{Account.resource_url}/#{CGI.escape(account)}/external_accounts/#{CGI.escape(id)}"
14
14
  end
15
15
  end
@@ -3,8 +3,18 @@ module Stripe
3
3
  extend Stripe::APIOperations::Create
4
4
  include Stripe::APIOperations::Save
5
5
 
6
+ def delete(params={}, opts={})
7
+ if respond_to?(:customer) && !customer.nil? && !customer.empty?
8
+ url = "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
9
+ resp, opts = request(:delete, url, params, Util.normalize_opts(opts))
10
+ initialize_from(resp.data, opts)
11
+ else
12
+ raise NotImplementedError.new("Source objects cannot be deleted, they can only be detached from customer objects. This source object does not appear to be currently attached to a customer object.")
13
+ end
14
+ end
15
+
6
16
  def verify(params={}, opts={})
7
- resp, opts = request(:post, resource_url + '/verify', params, opts)
17
+ resp, opts = request(:post, resource_url + '/verify', params, Util.normalize_opts(opts))
8
18
  initialize_from(resp.data, opts)
9
19
  end
10
20
  end
@@ -50,6 +50,7 @@ module Stripe
50
50
  'recipient' => Recipient,
51
51
  'refund' => Refund,
52
52
  'sku' => SKU,
53
+ 'source' => Source,
53
54
  'subscription' => Subscription,
54
55
  'subscription_item' => SubscriptionItem,
55
56
  'three_d_secure' => ThreeDSecure,
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '2.0.3'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -19,7 +19,7 @@
19
19
  "default_currency": "usd",
20
20
  "details_submitted": false,
21
21
  "display_name": "",
22
- "email": "foo+ujebwko0fp@example.com",
22
+ "email": "foo+os4pphkove@example.com",
23
23
  "external_accounts": {
24
24
  "data": [
25
25
 
@@ -27,10 +27,10 @@
27
27
  "has_more": false,
28
28
  "object": "list",
29
29
  "total_count": 0,
30
- "url": "/v1/accounts/acct_19xOmSA6KsQaPpsx/external_accounts"
30
+ "url": "/v1/accounts/acct_19y6HAAylotNGqt3/external_accounts"
31
31
  },
32
32
  "fake_account": false,
33
- "id": "acct_19xOmSA6KsQaPpsx",
33
+ "id": "acct_19y6HAAylotNGqt3",
34
34
  "legal_entity": {
35
35
  "additional_owners": null,
36
36
  "address": {
@@ -138,11 +138,11 @@
138
138
  "default_currency": "usd",
139
139
  "details_submitted": false,
140
140
  "display_name": "",
141
- "email": "foo+ujebwko0fp@example.com",
141
+ "email": "foo+os4pphkove@example.com",
142
142
  "external_accounts": {
143
143
  },
144
144
  "fake_account": false,
145
- "id": "acct_19xOmSA6KsQaPpsx",
145
+ "id": "acct_19y6HAAylotNGqt3",
146
146
  "keys": {
147
147
  },
148
148
  "legal_entity": {
@@ -177,8 +177,8 @@
177
177
  "alipay_account": {
178
178
  "created": 1234567890,
179
179
  "customer": "",
180
- "fingerprint": "NmrPSTwAXOffguOu",
181
- "id": "aliacc_19xOmZA6KsQaPpsx8SQGAn0E",
180
+ "fingerprint": "eiRpjVAne6V7vzjH",
181
+ "id": "aliacc_19y6HIAylotNGqt3CWxIarua",
182
182
  "livemode": false,
183
183
  "metadata": {
184
184
  },
@@ -192,7 +192,7 @@
192
192
  "apple_pay_domain": {
193
193
  "created": 1234567890,
194
194
  "domain_name": "example.com",
195
- "id": "apwc_19xOmYA6KsQaPpsxDX3zqwLL",
195
+ "id": "apwc_19y6HHAylotNGqt3514QiFTd",
196
196
  "livemode": true,
197
197
  "object": "apple_pay_domain"
198
198
  },
@@ -233,17 +233,17 @@
233
233
  "fee_details": [
234
234
 
235
235
  ],
236
- "id": "txn_19xOmYA6KsQaPpsxgSCbKQ3d",
236
+ "id": "txn_19y6HHAylotNGqt33AMqhSaS",
237
237
  "net": 100,
238
238
  "object": "balance_transaction",
239
- "source": "ch_19xOmYA6KsQaPpsxRpMRzREK",
239
+ "source": "ch_19y6HHAylotNGqt3dguVG1mI",
240
240
  "sourced_transfers": {
241
241
  },
242
242
  "status": "pending",
243
243
  "type": "charge"
244
244
  },
245
245
  "bank_account": {
246
- "account": "acct_19xOmSA6KsQaPpsx",
246
+ "account": "acct_19y6HAAylotNGqt3",
247
247
  "account_holder_name": "Jane Austen",
248
248
  "account_holder_type": "individual",
249
249
  "address_city": "",
@@ -259,8 +259,8 @@
259
259
  "customer": "",
260
260
  "customer_reference": "",
261
261
  "default_for_currency": false,
262
- "fingerprint": "rhUqyC2EcjMewT6o",
263
- "id": "ba_19xOmZA6KsQaPpsx7DTyLvtT",
262
+ "fingerprint": "G8AlCiZpIixKrovm",
263
+ "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
264
264
  "last4": "6789",
265
265
  "metadata": {
266
266
  },
@@ -283,7 +283,7 @@
283
283
  "description": "Receiver for John Doe",
284
284
  "email": "test@example.com",
285
285
  "filled": false,
286
- "id": "btcrcv_19xOmZA6KsQaPpsx8TtHgMVX",
286
+ "id": "btcrcv_19y6HIAylotNGqt3PPrzs2zr",
287
287
  "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
288
288
  "livemode": false,
289
289
  "metadata": {
@@ -301,9 +301,9 @@
301
301
  "bitcoin_amount": 1757908,
302
302
  "created": 1234567890,
303
303
  "currency": "usd",
304
- "id": "btctxn_19xOmZA6KsQaPpsx5FnHoZis",
304
+ "id": "btctxn_19y6HIAylotNGqt3ufx7IrFQ",
305
305
  "object": "bitcoin_transaction",
306
- "receiver": "btcrcv_19xOmZB4YnRyKoofPMbLFiZa"
306
+ "receiver": "btcrcv_19y6HIBBq8Um5VVVjcO0R7nU"
307
307
  },
308
308
  "card": {
309
309
  "3d_secure": {
@@ -335,7 +335,7 @@
335
335
  "fingerprint": "",
336
336
  "funding": "unknown",
337
337
  "google_reference": "",
338
- "id": "card_19xOmYA6KsQaPpsx93IwBRHM",
338
+ "id": "card_19y6HHAylotNGqt3SvYv7I1c",
339
339
  "iin": "",
340
340
  "issuer": "",
341
341
  "last4": "4242",
@@ -359,7 +359,7 @@
359
359
  "application_fee": "",
360
360
  "application_fees_refunded": 0,
361
361
  "authorization_code": "",
362
- "balance_transaction": "txn_19xOmYA6KsQaPpsxgSCbKQ3d",
362
+ "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
363
363
  "captured": true,
364
364
  "card": {
365
365
  },
@@ -375,7 +375,7 @@
375
375
  },
376
376
  "fraud_details": {
377
377
  },
378
- "id": "ch_19xOmYA6KsQaPpsxRpMRzREK",
378
+ "id": "ch_19y6HHAylotNGqt3dguVG1mI",
379
379
  "invoice": "",
380
380
  "level3": {
381
381
  },
@@ -398,7 +398,7 @@
398
398
  "has_more": false,
399
399
  "object": "list",
400
400
  "total_count": 0,
401
- "url": "/v1/charges/ch_19xOmYA6KsQaPpsxRpMRzREK/refunds"
401
+ "url": "/v1/charges/ch_19y6HHAylotNGqt3dguVG1mI/refunds"
402
402
  },
403
403
  "review": "",
404
404
  "shipping": {
@@ -420,7 +420,7 @@
420
420
  "exp_month": 8,
421
421
  "exp_year": 2018,
422
422
  "funding": "unknown",
423
- "id": "card_19xOmYA6KsQaPpsx93IwBRHM",
423
+ "id": "card_19y6HHAylotNGqt3SvYv7I1c",
424
424
  "last4": "4242",
425
425
  "metadata": {
426
426
  },
@@ -514,7 +514,7 @@
514
514
  "discount": {
515
515
  },
516
516
  "email": "",
517
- "id": "cus_AHykWO1tNrvBO2",
517
+ "id": "cus_AIhgCDhEsqLqXq",
518
518
  "livemode": false,
519
519
  "metadata": {
520
520
  },
@@ -528,7 +528,7 @@
528
528
  "has_more": false,
529
529
  "object": "list",
530
530
  "total_count": 0,
531
- "url": "/v1/customers/cus_AHykWO1tNrvBO2/sources"
531
+ "url": "/v1/customers/cus_AIhgCDhEsqLqXq/sources"
532
532
  },
533
533
  "subscription": {
534
534
  },
@@ -539,7 +539,7 @@
539
539
  },
540
540
  "customer_source": {
541
541
  "customer": "",
542
- "id": "ba_19xOmZA6KsQaPpsx7DTyLvtT",
542
+ "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
543
543
  "metadata": {
544
544
  },
545
545
  "object": "bank_account"
@@ -547,7 +547,7 @@
547
547
  "discount": {
548
548
  "coupon": {
549
549
  "amount_off": null,
550
- "created": 1489533023,
550
+ "created": 1489700220,
551
551
  "currency": "usd",
552
552
  "duration": "repeating",
553
553
  "duration_in_months": 3,
@@ -562,7 +562,7 @@
562
562
  "times_redeemed": 0,
563
563
  "valid": true
564
564
  },
565
- "customer": "cus_AHykWO1tNrvBO2",
565
+ "customer": "cus_AIhgCDhEsqLqXq",
566
566
  "end": 1234567890,
567
567
  "object": "discount",
568
568
  "start": 1234567890,
@@ -575,7 +575,7 @@
575
575
  "balance_transactions": [
576
576
 
577
577
  ],
578
- "charge": "ch_19xOmYA6KsQaPpsxRpMRzREK",
578
+ "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
579
579
  "closed_at": 1234567890,
580
580
  "created": 1234567890,
581
581
  "currency": "usd",
@@ -610,7 +610,7 @@
610
610
  "uncategorized_text": null
611
611
  },
612
612
  "evidence_details": {
613
- "due_by": 1491177599,
613
+ "due_by": 1491350399,
614
614
  "has_evidence": false,
615
615
  "past_due": false,
616
616
  "submission_count": 0
@@ -618,7 +618,7 @@
618
618
  "evidence_submitted_at": [
619
619
 
620
620
  ],
621
- "id": "dp_19xOmYA6KsQaPpsxF27xl8iJ",
621
+ "id": "dp_19y6HHAylotNGqt3bvR7ZOnH",
622
622
  "is_charge_refundable": false,
623
623
  "is_protected": false,
624
624
  "livemode": false,
@@ -636,7 +636,7 @@
636
636
  "data": {
637
637
  "object": {
638
638
  "amount": 2000,
639
- "created": 1489533023,
639
+ "created": 1489700220,
640
640
  "currency": "usd",
641
641
  "id": "gold",
642
642
  "interval": "month",
@@ -650,7 +650,7 @@
650
650
  "trial_period_days": null
651
651
  }
652
652
  },
653
- "id": "evt_19xOmZA6KsQaPpsxg3PnM6Ax",
653
+ "id": "evt_19y6HIAylotNGqt349zSXYCk",
654
654
  "livemode": false,
655
655
  "object": "event",
656
656
  "pending_webhooks": 0,
@@ -659,7 +659,7 @@
659
659
  "type": "plan.created"
660
660
  },
661
661
  "external_account_source": {
662
- "account": "acct_19xOmSA6KsQaPpsx",
662
+ "account": "acct_19y6HAAylotNGqt3",
663
663
  "address_city": "",
664
664
  "address_line1": "",
665
665
  "address_line2": "",
@@ -669,8 +669,8 @@
669
669
  "currency": "usd",
670
670
  "customer": "",
671
671
  "default_for_currency": false,
672
- "fingerprint": "rhUqyC2EcjMewT6o",
673
- "id": "ba_19xOmZA6KsQaPpsx7DTyLvtT",
672
+ "fingerprint": "G8AlCiZpIixKrovm",
673
+ "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
674
674
  "last4": "6789",
675
675
  "metadata": {
676
676
  },
@@ -681,8 +681,8 @@
681
681
  "balance_transaction": "",
682
682
  "created": 1234567890,
683
683
  "currency": "usd",
684
- "fee": "fee_19xOmZA6KsQaPpsxZCoZI7Ep",
685
- "id": "fr_AHykVrc8RYtq3K",
684
+ "fee": "fee_19y6HIAylotNGqt3iEVMbEmJ",
685
+ "id": "fr_AIhghI4mXRpLEw",
686
686
  "metadata": {
687
687
  },
688
688
  "object": "fee_refund"
@@ -696,7 +696,7 @@
696
696
  "charge": "",
697
697
  "closed": false,
698
698
  "currency": "usd",
699
- "customer": "cus_AHykWO1tNrvBO2",
699
+ "customer": "cus_AIhgCDhEsqLqXq",
700
700
  "date": 1234567890,
701
701
  "description": "",
702
702
  "discount": {
@@ -704,7 +704,7 @@
704
704
  "due_date": 1234567890,
705
705
  "ending_balance": 0,
706
706
  "forgiven": false,
707
- "id": "in_19xOmZA6KsQaPpsxpXZEk0Jl",
707
+ "id": "in_19y6HIAylotNGqt3Kq1NUy5r",
708
708
  "lines": {
709
709
  "data": [
710
710
  {
@@ -712,18 +712,18 @@
712
712
  "currency": "usd",
713
713
  "description": null,
714
714
  "discountable": true,
715
- "id": "sub_AHyk2EXaU2gAEV",
715
+ "id": "sub_AIhgP3KgCUJMuh",
716
716
  "livemode": true,
717
717
  "metadata": {
718
718
  },
719
719
  "object": "line_item",
720
720
  "period": {
721
- "end": 1494803422,
722
- "start": 1492211422
721
+ "end": 1494970619,
722
+ "start": 1492378619
723
723
  },
724
724
  "plan": {
725
725
  "amount": 2000,
726
- "created": 1489533023,
726
+ "created": 1489700220,
727
727
  "currency": "usd",
728
728
  "id": "gold",
729
729
  "interval": "month",
@@ -739,13 +739,13 @@
739
739
  "proration": false,
740
740
  "quantity": 1,
741
741
  "subscription": null,
742
- "subscription_item": "si_19xOmYB4YnRyKoofnPXr05OV",
742
+ "subscription_item": "si_19y6HHBBq8Um5VVVeabmVesw",
743
743
  "type": "subscription"
744
744
  }
745
745
  ],
746
746
  "object": "list",
747
747
  "total_count": 1,
748
- "url": "/v1/invoices/in_19xOmZA6KsQaPpsxpXZEk0Jl/lines"
748
+ "url": "/v1/invoices/in_19y6HIAylotNGqt3Kq1NUy5r/lines"
749
749
  },
750
750
  "livemode": false,
751
751
  "metadata": {
@@ -770,19 +770,19 @@
770
770
  "invoice_item": {
771
771
  "amount": 1000,
772
772
  "currency": "usd",
773
- "customer": "cus_AHykWO1tNrvBO2",
773
+ "customer": "cus_AIhgCDhEsqLqXq",
774
774
  "date": 1234567890,
775
775
  "description": "My First Invoice Item (created for API docs)",
776
776
  "discountable": true,
777
- "id": "ii_19xOmZA6KsQaPpsxw92LOZet",
777
+ "id": "ii_19y6HIAylotNGqt36BYYgGHq",
778
778
  "invoice": "",
779
779
  "livemode": false,
780
780
  "metadata": {
781
781
  },
782
782
  "object": "invoiceitem",
783
783
  "period": {
784
- "end": 1489533023,
785
- "start": 1489533023
784
+ "end": 1489700220,
785
+ "start": 1489700220
786
786
  },
787
787
  "plan": {
788
788
  },
@@ -796,14 +796,14 @@
796
796
  "currency": "usd",
797
797
  "description": "My First Invoice Item (created for API docs)",
798
798
  "discountable": true,
799
- "id": "ii_19xOmZA6KsQaPpsxw92LOZet",
799
+ "id": "ii_19y6HIAylotNGqt36BYYgGHq",
800
800
  "livemode": false,
801
801
  "metadata": {
802
802
  },
803
803
  "object": "line_item",
804
804
  "period": {
805
- "end": 1489533023,
806
- "start": 1489533023
805
+ "end": 1489700220,
806
+ "start": 1489700220
807
807
  },
808
808
  "plan": {
809
809
  },
@@ -828,11 +828,11 @@
828
828
  "date": 1234567890,
829
829
  "delay_reason": "",
830
830
  "description": "Transfer to test@example.com",
831
- "destination": "ba_19xOmZA6KsQaPpsxBhLhCCLJ",
831
+ "destination": "ba_19y6HIAylotNGqt3Tk6btLgn",
832
832
  "destination_payment": "",
833
833
  "failure_code": "",
834
834
  "failure_message": "",
835
- "id": "tr_19xOmZA6KsQaPpsxxTnirGHq",
835
+ "id": "tr_19y6HIAylotNGqt3ph4EjS38",
836
836
  "legacy_date": 1234567890,
837
837
  "livemode": false,
838
838
  "metadata": {
@@ -847,7 +847,7 @@
847
847
  "has_more": false,
848
848
  "object": "list",
849
849
  "total_count": 0,
850
- "url": "/v1/transfers/tr_19xOmZA6KsQaPpsxxTnirGHq/reversals"
850
+ "url": "/v1/transfers/tr_19y6HIAylotNGqt3ph4EjS38/reversals"
851
851
  },
852
852
  "reversed": false,
853
853
  "source_transaction": "",
@@ -872,14 +872,14 @@
872
872
  "external_sku_ids": [
873
873
 
874
874
  ],
875
- "id": "or_19xOmbA6KsQaPpsxdJuNEqnx",
875
+ "id": "or_19y6HJAylotNGqt3bov4Z4DC",
876
876
  "items": [
877
877
  {
878
878
  "amount": 1500,
879
879
  "currency": "usd",
880
880
  "description": "T-shirt",
881
881
  "object": "order_item",
882
- "parent": "sk_19xOmbA6KsQaPpsx0niGDfiM",
882
+ "parent": "sk_19y6HJAylotNGqt3oddcLh9L",
883
883
  "quantity": null,
884
884
  "type": "sku"
885
885
  }
@@ -895,7 +895,7 @@
895
895
  "has_more": false,
896
896
  "object": "list",
897
897
  "total_count": 0,
898
- "url": "/v1/order_returns?order=or_19xOmbA6KsQaPpsxdJuNEqnx"
898
+ "url": "/v1/order_returns?order=or_19y6HJAylotNGqt3bov4Z4DC"
899
899
  },
900
900
  "selected_shipping_method": "",
901
901
  "shipping": {
@@ -925,22 +925,22 @@
925
925
  "amount": 1500,
926
926
  "created": 1234567890,
927
927
  "currency": "usd",
928
- "id": "orret_19xOmbA6KsQaPpsxFhO0lEnm",
928
+ "id": "orret_19y6HJAylotNGqt3bd5YsAXz",
929
929
  "items": [
930
930
  {
931
931
  "amount": 1500,
932
932
  "currency": "usd",
933
933
  "description": "T-shirt",
934
934
  "object": "order_item",
935
- "parent": "sk_19xOmbA6KsQaPpsx0niGDfiM",
935
+ "parent": "sk_19y6HJAylotNGqt3oddcLh9L",
936
936
  "quantity": null,
937
937
  "type": "sku"
938
938
  }
939
939
  ],
940
940
  "livemode": false,
941
941
  "object": "order_return",
942
- "order": "or_19xOmbA6KsQaPpsxcibE2Kys",
943
- "refund": "re_19xOmbA6KsQaPpsxweFlRcU7"
942
+ "order": "or_19y6HJAylotNGqt36m18HzRj",
943
+ "refund": "re_19y6HJAylotNGqt3rTe2A05C"
944
944
  },
945
945
  "plan": {
946
946
  "amount": 2000,
@@ -958,15 +958,15 @@
958
958
  "trial_period_days": 0
959
959
  },
960
960
  "platform_earning": {
961
- "account": "acct_19xOmSA6KsQaPpsx",
961
+ "account": "acct_19y6HAAylotNGqt3",
962
962
  "amount": 100,
963
963
  "amount_refunded": 0,
964
- "application": "ca_AHykjKaDnL4KjnMmmkLzuwqk9hkgJA5M",
965
- "balance_transaction": "txn_19xOmYA6KsQaPpsxgSCbKQ3d",
966
- "charge": "ch_19xOmYA6KsQaPpsxRpMRzREK",
964
+ "application": "ca_AIhgFq8kWIDlYSeaCcuycCoERZL0J0ls",
965
+ "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
966
+ "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
967
967
  "created": 1234567890,
968
968
  "currency": "usd",
969
- "id": "fee_19xOmZA6KsQaPpsxZCoZI7Ep",
969
+ "id": "fee_19y6HIAylotNGqt3iEVMbEmJ",
970
970
  "livemode": false,
971
971
  "object": "application_fee",
972
972
  "originating_transaction": "",
@@ -978,7 +978,7 @@
978
978
  "has_more": false,
979
979
  "object": "list",
980
980
  "total_count": 0,
981
- "url": "/v1/application_fees/fee_19xOmZA6KsQaPpsxZCoZI7Ep/refunds"
981
+ "url": "/v1/application_fees/fee_19y6HIAylotNGqt3iEVMbEmJ/refunds"
982
982
  }
983
983
  },
984
984
  "product": {
@@ -994,7 +994,7 @@
994
994
  ],
995
995
  "description": "Comfortable gray cotton t-shirts",
996
996
  "donation": false,
997
- "id": "prod_AHyk8gTS1wCWqa",
997
+ "id": "prod_AIhgWPx5D86mh1",
998
998
  "images": [
999
999
 
1000
1000
  ],
@@ -1014,7 +1014,7 @@
1014
1014
  "has_more": false,
1015
1015
  "object": "list",
1016
1016
  "total_count": 0,
1017
- "url": "/v1/skus?product=prod_AHyk8gTS1wCWqa\u0026active=true"
1017
+ "url": "/v1/skus?product=prod_AIhgWPx5D86mh1\u0026active=true"
1018
1018
  },
1019
1019
  "tweetable_url": "",
1020
1020
  "updated": 1234567890,
@@ -1023,13 +1023,13 @@
1023
1023
  "refund": {
1024
1024
  "amount": 100,
1025
1025
  "balance_transaction": "",
1026
- "charge": "ch_19xOmYA6KsQaPpsxRpMRzREK",
1026
+ "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
1027
1027
  "created": 1234567890,
1028
1028
  "currency": "usd",
1029
1029
  "description": "",
1030
1030
  "fee_balance_transactions": {
1031
1031
  },
1032
- "id": "re_19xOmYA6KsQaPpsxnI34WZGS",
1032
+ "id": "re_19y6HHAylotNGqt3o9CUC2fJ",
1033
1033
  "metadata": {
1034
1034
  },
1035
1035
  "object": "refund",
@@ -1046,7 +1046,7 @@
1046
1046
  },
1047
1047
  "created": 1234567890,
1048
1048
  "currency": "usd",
1049
- "id": "sku_AHyktKapJTzgmX",
1049
+ "id": "sku_AIhgANg1XshOPI",
1050
1050
  "image": "",
1051
1051
  "inventory": {
1052
1052
  "quantity": 50,
@@ -1060,33 +1060,47 @@
1060
1060
  "package_dimensions": {
1061
1061
  },
1062
1062
  "price": 1500,
1063
- "product": "prod_AHyk8gTS1wCWqa",
1063
+ "product": "prod_AIhgWPx5D86mh1",
1064
1064
  "updated": 1234567890
1065
1065
  },
1066
1066
  "source": {
1067
- "amount": 0,
1068
- "client_secret": "",
1067
+ "amount": 1000,
1068
+ "client_secret": "src_client_secret_UxYHcfjreLYKMVWptfFyAsxp",
1069
1069
  "code_verification": {
1070
1070
  },
1071
1071
  "created": 1234567890,
1072
- "currency": "",
1072
+ "currency": "usd",
1073
1073
  "customer": "",
1074
- "flow": "",
1075
- "id": "card_19xOmYA6KsQaPpsx93IwBRHM",
1074
+ "flow": "receiver",
1075
+ "id": "src_19y6HJAylotNGqt3wfuVnNWw",
1076
1076
  "livemode": false,
1077
1077
  "metadata": {
1078
1078
  },
1079
- "object": "card",
1079
+ "object": "source",
1080
1080
  "order": "",
1081
1081
  "owner": {
1082
+ "address": null,
1083
+ "email": "jenny.rosen@example.com",
1084
+ "name": null,
1085
+ "phone": null,
1086
+ "verified_address": null,
1087
+ "verified_email": null,
1088
+ "verified_name": null,
1089
+ "verified_phone": null
1082
1090
  },
1083
1091
  "receiver": {
1092
+ "address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N",
1093
+ "amount_charged": 0,
1094
+ "amount_received": 0,
1095
+ "amount_returned": 0,
1096
+ "refund_attributes_method": "email",
1097
+ "refund_attributes_status": "missing"
1084
1098
  },
1085
1099
  "redirect": {
1086
1100
  },
1087
- "status": "",
1088
- "type": "",
1089
- "usage": ""
1101
+ "status": "pending",
1102
+ "type": "bitcoin",
1103
+ "usage": "single_use"
1090
1104
  },
1091
1105
  "subscription": {
1092
1106
  "account_balance": 0,
@@ -1097,21 +1111,21 @@
1097
1111
  "created": 1234567890,
1098
1112
  "current_period_end": 1234567890,
1099
1113
  "current_period_start": 1234567890,
1100
- "customer": "cus_AHykJG3Ru2BgKh",
1114
+ "customer": "cus_AIhg2AZ0oZn9hq",
1101
1115
  "days_until_due": 0,
1102
1116
  "discount": {
1103
1117
  },
1104
1118
  "ended_at": 1234567890,
1105
- "id": "sub_AHyk2EXaU2gAEV",
1119
+ "id": "sub_AIhgP3KgCUJMuh",
1106
1120
  "items": {
1107
1121
  "data": [
1108
1122
  {
1109
- "created": 1489533023,
1110
- "id": "si_19xOmYB4YnRyKoofnPXr05OV",
1123
+ "created": 1489700220,
1124
+ "id": "si_19y6HHBBq8Um5VVVeabmVesw",
1111
1125
  "object": "subscription_item",
1112
1126
  "plan": {
1113
1127
  "amount": 2000,
1114
- "created": 1489533022,
1128
+ "created": 1489700219,
1115
1129
  "currency": "usd",
1116
1130
  "id": "gold",
1117
1131
  "interval": "month",
@@ -1130,7 +1144,7 @@
1130
1144
  "has_more": false,
1131
1145
  "object": "list",
1132
1146
  "total_count": 1,
1133
- "url": "/v1/subscription_items?subscription=sub_AHyk2EXaU2gAEV"
1147
+ "url": "/v1/subscription_items?subscription=sub_AIhgP3KgCUJMuh"
1134
1148
  },
1135
1149
  "livemode": false,
1136
1150
  "max_occurrences": 0,
@@ -1140,7 +1154,7 @@
1140
1154
  "on_behalf_of": "",
1141
1155
  "plan": {
1142
1156
  "amount": 2000,
1143
- "created": 1489533022,
1157
+ "created": 1489700219,
1144
1158
  "currency": "usd",
1145
1159
  "id": "gold",
1146
1160
  "interval": "month",
@@ -1162,12 +1176,12 @@
1162
1176
  "trial_start": 1234567890
1163
1177
  },
1164
1178
  "subscription_item": {
1165
- "created": 1489533023,
1166
- "id": "si_19xOmZB4YnRyKoofmmqQD542",
1179
+ "created": 1489700220,
1180
+ "id": "si_19y6HHBBq8Um5VVVWtAse22Z",
1167
1181
  "object": "subscription_item",
1168
1182
  "plan": {
1169
1183
  "amount": 2000,
1170
- "created": 1489533022,
1184
+ "created": 1489700219,
1171
1185
  "currency": "usd",
1172
1186
  "id": "gold",
1173
1187
  "interval": "month",
@@ -1202,7 +1216,7 @@
1202
1216
  "exp_month": 8,
1203
1217
  "exp_year": 2018,
1204
1218
  "funding": "unknown",
1205
- "id": "card_19xOmZA6KsQaPpsx1TPW9v1Z",
1219
+ "id": "card_19y6HIAylotNGqt3tSobdlid",
1206
1220
  "last4": "4242",
1207
1221
  "metadata": {
1208
1222
  },
@@ -1212,10 +1226,10 @@
1212
1226
  },
1213
1227
  "created": 1234567890,
1214
1228
  "currency": "usd",
1215
- "id": "tdsrc_AHyk0Ny8jTjJoy",
1229
+ "id": "tdsrc_AIhge8Euw6YKbc",
1216
1230
  "livemode": false,
1217
1231
  "object": "three_d_secure",
1218
- "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AHyk0Ny8jTjJoy",
1232
+ "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AIhge8Euw6YKbc",
1219
1233
  "status": "redirect_pending"
1220
1234
  },
1221
1235
  "token": {
@@ -1241,7 +1255,7 @@
1241
1255
  "exp_month": 8,
1242
1256
  "exp_year": 2018,
1243
1257
  "funding": "unknown",
1244
- "id": "card_19xOmZA6KsQaPpsx1TPW9v1Z",
1258
+ "id": "card_19y6HIAylotNGqt3tSobdlid",
1245
1259
  "last4": "4242",
1246
1260
  "metadata": {
1247
1261
  },
@@ -1253,7 +1267,7 @@
1253
1267
  "created": 1234567890,
1254
1268
  "description": "",
1255
1269
  "email": "",
1256
- "id": "tok_19xOmZA6KsQaPpsxwCla8HhZ",
1270
+ "id": "tok_19y6HIAylotNGqt3RgAWCZVp",
1257
1271
  "livemode": false,
1258
1272
  "object": "token",
1259
1273
  "type": "card",
@@ -1263,12 +1277,12 @@
1263
1277
  "transfer": {
1264
1278
  "amount": 1100,
1265
1279
  "amount_reversed": 0,
1266
- "balance_transaction": "txn_19xOmYA6KsQaPpsxgSCbKQ3d",
1280
+ "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
1267
1281
  "created": 1234567890,
1268
1282
  "currency": "usd",
1269
- "destination": "ba_19xOmZA6KsQaPpsxBhLhCCLJ",
1283
+ "destination": "ba_19y6HIAylotNGqt3Tk6btLgn",
1270
1284
  "destination_payment": "",
1271
- "id": "tr_19xOmZA6KsQaPpsxxTnirGHq",
1285
+ "id": "tr_19y6HIAylotNGqt3ph4EjS38",
1272
1286
  "livemode": false,
1273
1287
  "metadata": {
1274
1288
  },
@@ -1280,7 +1294,7 @@
1280
1294
  "has_more": false,
1281
1295
  "object": "list",
1282
1296
  "total_count": 0,
1283
- "url": "/v1/transfers/tr_19xOmZA6KsQaPpsxxTnirGHq/reversals"
1297
+ "url": "/v1/transfers/tr_19y6HIAylotNGqt3ph4EjS38/reversals"
1284
1298
  },
1285
1299
  "reversed": false,
1286
1300
  "transfer_group": ""
@@ -1301,7 +1315,7 @@
1301
1315
  "has_more": false,
1302
1316
  "object": "list",
1303
1317
  "total_count": 0,
1304
- "url": "/v1/recipients/rp_19xOmZA6KsQaPpsxz5JlUIpQ/cards"
1318
+ "url": "/v1/recipients/rp_19y6HIAylotNGqt3CTykthsz/cards"
1305
1319
  },
1306
1320
  "country": "",
1307
1321
  "created": 1234567890,
@@ -1311,7 +1325,7 @@
1311
1325
  "dob_month": "",
1312
1326
  "dob_year": "",
1313
1327
  "email": "test@example.com",
1314
- "id": "rp_19xOmZA6KsQaPpsxz5JlUIpQ",
1328
+ "id": "rp_19y6HIAylotNGqt3CTykthsz",
1315
1329
  "livemode": false,
1316
1330
  "metadata": {
1317
1331
  },
@@ -1328,11 +1342,11 @@
1328
1342
  "balance_transaction": "",
1329
1343
  "created": 1234567890,
1330
1344
  "currency": "usd",
1331
- "id": "trr_19xOmZA6KsQaPpsxg8vF5JSH",
1345
+ "id": "trr_19y6HIAylotNGqt3nITPrdUW",
1332
1346
  "metadata": {
1333
1347
  },
1334
1348
  "object": "transfer_reversal",
1335
- "transfer": "tr_19xOmZA6KsQaPpsxxTnirGHq"
1349
+ "transfer": "tr_19y6HIAylotNGqt3ph4EjS38"
1336
1350
  },
1337
1351
  "upcoming_invoice": {
1338
1352
  "amount_due": 0,
@@ -1343,7 +1357,7 @@
1343
1357
  "charge": "",
1344
1358
  "closed": false,
1345
1359
  "currency": "usd",
1346
- "customer": "cus_AHykWO1tNrvBO2",
1360
+ "customer": "cus_AIhgCDhEsqLqXq",
1347
1361
  "date": 1234567890,
1348
1362
  "description": "",
1349
1363
  "discount": {
@@ -1358,7 +1372,7 @@
1358
1372
  "has_more": false,
1359
1373
  "object": "list",
1360
1374
  "total_count": 0,
1361
- "url": "/v1/invoices/in_19xOmZA6KsQaPpsxpXZEk0Jl/lines"
1375
+ "url": "/v1/invoices/in_19y6HIAylotNGqt3Kq1NUy5r/lines"
1362
1376
  },
1363
1377
  "livemode": false,
1364
1378
  "metadata": {