stripe 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/README.md +2 -2
- data/VERSION +1 -1
- data/lib/stripe.rb +1 -0
- data/lib/stripe/ephemeral_key.rb +18 -0
- data/lib/stripe/util.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/openapi/fixtures.json +508 -104
- data/openapi/fixtures.yaml +369 -92
- data/openapi/spec2.json +1210 -1015
- data/openapi/spec2.yaml +777 -605
- data/test/stripe/account_test.rb +1 -1
- data/test/stripe/api_resource_test.rb +2 -2
- data/test/stripe/ephemeral_key_test.rb +88 -0
- data/test/stripe/transfer_test.rb +0 -8
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138bd68271a0dcc818ac66088dfe0e1a21f5ca8c
|
4
|
+
data.tar.gz: ce99f078d8a0628f7626e46fd80e932be769713e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5df9b527715b1617a5944aef259c60125f5c1bfca2b70e226b728085b89d1c442e57205c993fd49185db170f8ff7ed299f33ea426d649499a1c5b007535c3114
|
7
|
+
data.tar.gz: 00543a1e6dc6678b5ba8fdafb50781394efafc9f6f2b1aa57565b3052c2e1fed97b664d5e238c2e7731aee66f80d694a5761daaac5800a802893d0b686e3065b
|
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -97,8 +97,8 @@ library use any client supported by [Faraday][faraday] by initializing a
|
|
97
97
|
``` ruby
|
98
98
|
conn = Faraday.new
|
99
99
|
client = Stripe::StripeClient.new(conn)
|
100
|
-
client.request do
|
101
|
-
|
100
|
+
charge, resp = client.request do
|
101
|
+
Stripe::Charge.retrieve(
|
102
102
|
"ch_18atAXCdGbJFKhCuBAa4532Z",
|
103
103
|
)
|
104
104
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.12.0
|
data/lib/stripe.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Stripe
|
2
|
+
class EphemeralKey < APIResource
|
3
|
+
extend Stripe::APIOperations::Create
|
4
|
+
include Stripe::APIOperations::Delete
|
5
|
+
|
6
|
+
OBJECT_NAME = 'ephemeral_key'
|
7
|
+
|
8
|
+
def self.resource_url
|
9
|
+
'/v1/ephemeral_keys'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.create(params={}, opts={})
|
13
|
+
opts = Util.normalize_opts(opts)
|
14
|
+
raise ArgumentError.new('stripe_version must be specified to create an ephemeral key') if !opts[:stripe_version]
|
15
|
+
super
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/stripe/util.rb
CHANGED
@@ -39,6 +39,7 @@ module Stripe
|
|
39
39
|
Coupon::OBJECT_NAME => Coupon,
|
40
40
|
Customer::OBJECT_NAME => Customer,
|
41
41
|
Dispute::OBJECT_NAME => Dispute,
|
42
|
+
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
42
43
|
Event::OBJECT_NAME => Event,
|
43
44
|
FileUpload::OBJECT_NAME => FileUpload,
|
44
45
|
Invoice::OBJECT_NAME => Invoice,
|
data/lib/stripe/version.rb
CHANGED
data/openapi/fixtures.json
CHANGED
@@ -60,13 +60,13 @@
|
|
60
60
|
"type": null,
|
61
61
|
"verification": {
|
62
62
|
"details": null,
|
63
|
-
"details_code":
|
63
|
+
"details_code": "failed_other",
|
64
64
|
"document": null,
|
65
65
|
"status": "unverified"
|
66
66
|
}
|
67
67
|
},
|
68
|
-
"
|
69
|
-
|
68
|
+
"login_links": {
|
69
|
+
},
|
70
70
|
"mcc": "",
|
71
71
|
"metadata": {
|
72
72
|
},
|
@@ -137,8 +137,8 @@
|
|
137
137
|
},
|
138
138
|
"legal_entity": {
|
139
139
|
},
|
140
|
-
"
|
141
|
-
|
140
|
+
"login_links": {
|
141
|
+
},
|
142
142
|
"mcc": "",
|
143
143
|
"metadata": {
|
144
144
|
},
|
@@ -195,10 +195,70 @@
|
|
195
195
|
"source_types": {
|
196
196
|
"card": 0
|
197
197
|
}
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"amount": 0,
|
201
|
+
"currency": "eur",
|
202
|
+
"source_types": {
|
203
|
+
"card": 0
|
204
|
+
}
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"amount": -102,
|
208
|
+
"currency": "gbp",
|
209
|
+
"source_types": {
|
210
|
+
"card": -102
|
211
|
+
}
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"amount": -40320,
|
215
|
+
"currency": "jpy",
|
216
|
+
"source_types": {
|
217
|
+
"card": -40320
|
218
|
+
}
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"amount": 0,
|
222
|
+
"currency": "nzd",
|
223
|
+
"source_types": {
|
224
|
+
"card": 0
|
225
|
+
}
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"amount": 17550857311,
|
229
|
+
"currency": "usd",
|
230
|
+
"source_types": {
|
231
|
+
"bank_account": 107213388,
|
232
|
+
"bitcoin_receiver": 1545182,
|
233
|
+
"card": 17442098741
|
234
|
+
}
|
198
235
|
}
|
199
236
|
],
|
200
237
|
"connect_reserved": [
|
201
|
-
|
238
|
+
{
|
239
|
+
"amount": 0,
|
240
|
+
"currency": "aud"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"amount": 0,
|
244
|
+
"currency": "eur"
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"amount": 0,
|
248
|
+
"currency": "gbp"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"amount": 0,
|
252
|
+
"currency": "jpy"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"amount": 0,
|
256
|
+
"currency": "nzd"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"amount": 0,
|
260
|
+
"currency": "usd"
|
261
|
+
}
|
202
262
|
],
|
203
263
|
"livemode": false,
|
204
264
|
"object": "balance",
|
@@ -209,6 +269,43 @@
|
|
209
269
|
"source_types": {
|
210
270
|
"card": 0
|
211
271
|
}
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"amount": -17109,
|
275
|
+
"currency": "eur",
|
276
|
+
"source_types": {
|
277
|
+
"card": -17109
|
278
|
+
}
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"amount": -81045,
|
282
|
+
"currency": "gbp",
|
283
|
+
"source_types": {
|
284
|
+
"card": -81045
|
285
|
+
}
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"amount": 0,
|
289
|
+
"currency": "jpy",
|
290
|
+
"source_types": {
|
291
|
+
"card": 0
|
292
|
+
}
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"amount": 1060,
|
296
|
+
"currency": "nzd",
|
297
|
+
"source_types": {
|
298
|
+
"card": 1060
|
299
|
+
}
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"amount": 11940215798,
|
303
|
+
"currency": "usd",
|
304
|
+
"source_types": {
|
305
|
+
"bank_account": 0,
|
306
|
+
"bitcoin_receiver": 6944,
|
307
|
+
"card": 11940208854
|
308
|
+
}
|
212
309
|
}
|
213
310
|
]
|
214
311
|
},
|
@@ -222,7 +319,13 @@
|
|
222
319
|
"description": "",
|
223
320
|
"fee": 0,
|
224
321
|
"fee_details": [
|
225
|
-
|
322
|
+
{
|
323
|
+
"amount": 90,
|
324
|
+
"application": null,
|
325
|
+
"currency": "usd",
|
326
|
+
"description": "Stripe processing fees",
|
327
|
+
"type": "stripe_fee"
|
328
|
+
}
|
226
329
|
],
|
227
330
|
"id": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
|
228
331
|
"net": 100,
|
@@ -284,7 +387,15 @@
|
|
284
387
|
"refund_address": "",
|
285
388
|
"transactions": {
|
286
389
|
"data": [
|
287
|
-
|
390
|
+
{
|
391
|
+
"amount": 300,
|
392
|
+
"bitcoin_amount": 3000000,
|
393
|
+
"created": 1497681357,
|
394
|
+
"currency": "usd",
|
395
|
+
"id": "btctxn_1AVaXJ2eZvKYlo2C5VpM5f5l",
|
396
|
+
"object": "bitcoin_transaction",
|
397
|
+
"receiver": "btcrcv_1AVaXF2eZvKYlo2CKSplb16t"
|
398
|
+
}
|
288
399
|
],
|
289
400
|
"has_more": false,
|
290
401
|
"object": "list",
|
@@ -383,6 +494,11 @@
|
|
383
494
|
"on_behalf_of": "",
|
384
495
|
"order": "",
|
385
496
|
"outcome": {
|
497
|
+
"network_status": "approved_by_network",
|
498
|
+
"reason": null,
|
499
|
+
"risk_level": "normal",
|
500
|
+
"seller_message": "Payment complete.",
|
501
|
+
"type": "authorized"
|
386
502
|
},
|
387
503
|
"paid": false,
|
388
504
|
"receipt_email": "",
|
@@ -410,8 +526,8 @@
|
|
410
526
|
"address_zip": null,
|
411
527
|
"address_zip_check": null,
|
412
528
|
"brand": "Visa",
|
413
|
-
"country":
|
414
|
-
"customer":
|
529
|
+
"country": "US",
|
530
|
+
"customer": "cus_9OO7KuH8wgmdfa",
|
415
531
|
"cvc_check": null,
|
416
532
|
"dynamic_last4": null,
|
417
533
|
"exp_month": 8,
|
@@ -422,7 +538,7 @@
|
|
422
538
|
"last4": "4242",
|
423
539
|
"metadata": {
|
424
540
|
},
|
425
|
-
"name":
|
541
|
+
"name": "nandkishor.webnware@gmail.com",
|
426
542
|
"object": "card",
|
427
543
|
"tokenization_method": null
|
428
544
|
},
|
@@ -459,6 +575,7 @@
|
|
459
575
|
"verification_fields": {
|
460
576
|
"company": {
|
461
577
|
"additional": [
|
578
|
+
"legal_entity.verification.document",
|
462
579
|
"legal_entity.verification.document"
|
463
580
|
],
|
464
581
|
"minimum": [
|
@@ -482,6 +599,7 @@
|
|
482
599
|
},
|
483
600
|
"individual": {
|
484
601
|
"additional": [
|
602
|
+
"legal_entity.verification.document",
|
485
603
|
"legal_entity.verification.document"
|
486
604
|
],
|
487
605
|
"minimum": [
|
@@ -547,7 +665,32 @@
|
|
547
665
|
},
|
548
666
|
"sources": {
|
549
667
|
"data": [
|
550
|
-
|
668
|
+
{
|
669
|
+
"address_city": null,
|
670
|
+
"address_country": null,
|
671
|
+
"address_line1": null,
|
672
|
+
"address_line1_check": null,
|
673
|
+
"address_line2": null,
|
674
|
+
"address_state": null,
|
675
|
+
"address_zip": null,
|
676
|
+
"address_zip_check": null,
|
677
|
+
"brand": "Visa",
|
678
|
+
"country": "US",
|
679
|
+
"customer": "cus_ArMWAboqL9MUMd",
|
680
|
+
"cvc_check": "pass",
|
681
|
+
"dynamic_last4": null,
|
682
|
+
"exp_month": 10,
|
683
|
+
"exp_year": 2017,
|
684
|
+
"fingerprint": "Xt5EWLLDS7FJjR1c",
|
685
|
+
"funding": "credit",
|
686
|
+
"id": "card_1AVdnB2eZvKYlo2CWAH5jK8Z",
|
687
|
+
"last4": "4242",
|
688
|
+
"metadata": {
|
689
|
+
},
|
690
|
+
"name": null,
|
691
|
+
"object": "card",
|
692
|
+
"tokenization_method": null
|
693
|
+
}
|
551
694
|
],
|
552
695
|
"has_more": false,
|
553
696
|
"object": "list",
|
@@ -579,9 +722,9 @@
|
|
579
722
|
"coupon": {
|
580
723
|
"amount_off": null,
|
581
724
|
"created": 1490133192,
|
582
|
-
"currency":
|
725
|
+
"currency": null,
|
583
726
|
"duration": "repeating",
|
584
|
-
"duration_in_months":
|
727
|
+
"duration_in_months": null,
|
585
728
|
"id": "25OFF",
|
586
729
|
"livemode": false,
|
587
730
|
"max_redemptions": null,
|
@@ -604,7 +747,29 @@
|
|
604
747
|
"amount": 1000,
|
605
748
|
"balance_transaction": "",
|
606
749
|
"balance_transactions": [
|
607
|
-
|
750
|
+
{
|
751
|
+
"amount": -1500,
|
752
|
+
"available_on": 1497484800,
|
753
|
+
"created": 1496903761,
|
754
|
+
"currency": "usd",
|
755
|
+
"description": "Chargeback withdrawal for ch_1ASKFR2eZvKYlo2CDLlVsM52",
|
756
|
+
"fee": 1500,
|
757
|
+
"fee_details": [
|
758
|
+
{
|
759
|
+
"amount": 1500,
|
760
|
+
"application": null,
|
761
|
+
"currency": "usd",
|
762
|
+
"description": "Dispute fee",
|
763
|
+
"type": "stripe_fee"
|
764
|
+
}
|
765
|
+
],
|
766
|
+
"id": "txn_1ASKFR2eZvKYlo2C1wu8o4hC",
|
767
|
+
"net": -3000,
|
768
|
+
"object": "balance_transaction",
|
769
|
+
"source": "dp_1ASKFR2eZvKYlo2CErSdTh43",
|
770
|
+
"status": "pending",
|
771
|
+
"type": "adjustment"
|
772
|
+
}
|
608
773
|
],
|
609
774
|
"case_details": {
|
610
775
|
},
|
@@ -654,7 +819,9 @@
|
|
654
819
|
"id": "dp_19zuuhDSlTMT26Mkp7PHaa4O",
|
655
820
|
"is_charge_refundable": false,
|
656
821
|
"is_protected": false,
|
822
|
+
"issuer": "",
|
657
823
|
"livemode": false,
|
824
|
+
"loss_reason": "",
|
658
825
|
"metadata": {
|
659
826
|
},
|
660
827
|
"network_reason_code": "",
|
@@ -662,44 +829,159 @@
|
|
662
829
|
"reason": "general",
|
663
830
|
"status": "needs_response"
|
664
831
|
},
|
832
|
+
"ephemeral_key": {
|
833
|
+
"associated_objects": [
|
834
|
+
{
|
835
|
+
"id": "cu_1AVdnC2eZvKYlo2C397mApcW",
|
836
|
+
"type": "customer"
|
837
|
+
}
|
838
|
+
],
|
839
|
+
"created": 1234567890,
|
840
|
+
"expires": 1234567890,
|
841
|
+
"id": "ephkey_1AWsWs2eZvKYlo2ChEEYmF12",
|
842
|
+
"livemode": false,
|
843
|
+
"object": "ephemeral_key"
|
844
|
+
},
|
845
|
+
"ephemeral_key_with_secret": {
|
846
|
+
"associated_objects": [
|
847
|
+
{
|
848
|
+
"id": "cu_1AVdnC2eZvKYlo2C397mApcW",
|
849
|
+
"type": "customer"
|
850
|
+
}
|
851
|
+
],
|
852
|
+
"created": 1234567890,
|
853
|
+
"expires": 1234567890,
|
854
|
+
"id": "ephkey_1AWsWs2eZvKYlo2ChEEYmF12",
|
855
|
+
"livemode": false,
|
856
|
+
"object": "ephemeral_key",
|
857
|
+
"secret": ""
|
858
|
+
},
|
665
859
|
"event": {
|
666
860
|
"api_version": "2017-02-14",
|
667
861
|
"created": 1234567890,
|
668
862
|
"customer_email": "",
|
669
863
|
"data": {
|
670
864
|
"object": {
|
671
|
-
"
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
865
|
+
"available": [
|
866
|
+
{
|
867
|
+
"amount": -88,
|
868
|
+
"currency": "aud",
|
869
|
+
"source_types": {
|
870
|
+
"card": -88
|
871
|
+
}
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"amount": 0,
|
875
|
+
"currency": "eur",
|
876
|
+
"source_types": {
|
877
|
+
"card": 0
|
878
|
+
}
|
879
|
+
},
|
880
|
+
{
|
881
|
+
"amount": -102,
|
882
|
+
"currency": "gbp",
|
883
|
+
"source_types": {
|
884
|
+
"card": -102
|
885
|
+
}
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"amount": -40320,
|
889
|
+
"currency": "jpy",
|
890
|
+
"source_types": {
|
891
|
+
"card": -40320
|
892
|
+
}
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"amount": 0,
|
896
|
+
"currency": "nzd",
|
897
|
+
"source_types": {
|
898
|
+
"card": 0
|
899
|
+
}
|
900
|
+
},
|
901
|
+
{
|
902
|
+
"amount": 17550857811,
|
903
|
+
"currency": "usd",
|
904
|
+
"source_types": {
|
905
|
+
"bank_account": 107213388,
|
906
|
+
"bitcoin_receiver": 1545182,
|
907
|
+
"card": 17442099241
|
908
|
+
}
|
909
|
+
}
|
910
|
+
],
|
911
|
+
"connect_reserved": [
|
912
|
+
{
|
913
|
+
"amount": 0,
|
914
|
+
"currency": "aud"
|
915
|
+
},
|
916
|
+
{
|
917
|
+
"amount": 0,
|
918
|
+
"currency": "eur"
|
919
|
+
},
|
920
|
+
{
|
921
|
+
"amount": 0,
|
922
|
+
"currency": "gbp"
|
923
|
+
},
|
924
|
+
{
|
925
|
+
"amount": 0,
|
926
|
+
"currency": "jpy"
|
927
|
+
},
|
928
|
+
{
|
929
|
+
"amount": 0,
|
930
|
+
"currency": "nzd"
|
931
|
+
},
|
932
|
+
{
|
933
|
+
"amount": 0,
|
934
|
+
"currency": "usd"
|
935
|
+
}
|
936
|
+
],
|
680
937
|
"livemode": false,
|
681
|
-
"metadata": {
|
682
|
-
},
|
683
938
|
"object": "customer",
|
684
|
-
"
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
939
|
+
"pending": [
|
940
|
+
{
|
941
|
+
"amount": 0,
|
942
|
+
"currency": "aud",
|
943
|
+
"source_types": {
|
944
|
+
"card": 0
|
945
|
+
}
|
946
|
+
},
|
947
|
+
{
|
948
|
+
"amount": -17109,
|
949
|
+
"currency": "eur",
|
950
|
+
"source_types": {
|
951
|
+
"card": -17109
|
952
|
+
}
|
953
|
+
},
|
954
|
+
{
|
955
|
+
"amount": -81045,
|
956
|
+
"currency": "gbp",
|
957
|
+
"source_types": {
|
958
|
+
"card": -81045
|
959
|
+
}
|
960
|
+
},
|
961
|
+
{
|
962
|
+
"amount": 0,
|
963
|
+
"currency": "jpy",
|
964
|
+
"source_types": {
|
965
|
+
"card": 0
|
966
|
+
}
|
967
|
+
},
|
968
|
+
{
|
969
|
+
"amount": 1060,
|
970
|
+
"currency": "nzd",
|
971
|
+
"source_types": {
|
972
|
+
"card": 1060
|
973
|
+
}
|
974
|
+
},
|
975
|
+
{
|
976
|
+
"amount": 11939932938,
|
977
|
+
"currency": "usd",
|
978
|
+
"source_types": {
|
979
|
+
"bank_account": 0,
|
980
|
+
"bitcoin_receiver": 6944,
|
981
|
+
"card": 11939925994
|
982
|
+
}
|
983
|
+
}
|
984
|
+
]
|
703
985
|
}
|
704
986
|
},
|
705
987
|
"id": "evt_19tLKfDSlTMT26MkKD3pohqX",
|
@@ -707,7 +989,10 @@
|
|
707
989
|
"object": "event",
|
708
990
|
"pending_webhooks": 0,
|
709
991
|
"recipient_best_description": "",
|
710
|
-
"request":
|
992
|
+
"request": {
|
993
|
+
"id": "req_ArJ9y3DcEShbw2",
|
994
|
+
"idempotency_key": null
|
995
|
+
},
|
711
996
|
"type": "customer.created"
|
712
997
|
},
|
713
998
|
"external_account_source": {
|
@@ -866,51 +1151,6 @@
|
|
866
1151
|
"subscription_item": "",
|
867
1152
|
"type": "invoiceitem"
|
868
1153
|
},
|
869
|
-
"legacy_transfer": {
|
870
|
-
"amount": 1100,
|
871
|
-
"amount_reversed": 0,
|
872
|
-
"application_fee": "",
|
873
|
-
"auto": false,
|
874
|
-
"balance_transaction": "",
|
875
|
-
"bank_account": {
|
876
|
-
},
|
877
|
-
"card": {
|
878
|
-
},
|
879
|
-
"created": 1234567890,
|
880
|
-
"currency": "usd",
|
881
|
-
"date": 1234567890,
|
882
|
-
"delay_reason": "",
|
883
|
-
"description": "Transfer to test@example.com",
|
884
|
-
"destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
|
885
|
-
"destination_payment": "",
|
886
|
-
"failure_code": "",
|
887
|
-
"failure_message": "",
|
888
|
-
"id": "tr_19zuujDSlTMT26Mk81npuLjT",
|
889
|
-
"legacy_date": 1234567890,
|
890
|
-
"livemode": false,
|
891
|
-
"metadata": {
|
892
|
-
},
|
893
|
-
"method": "standard",
|
894
|
-
"object": "transfer",
|
895
|
-
"recipient": "",
|
896
|
-
"reversals": {
|
897
|
-
"data": [
|
898
|
-
|
899
|
-
],
|
900
|
-
"has_more": false,
|
901
|
-
"object": "list",
|
902
|
-
"total_count": 0,
|
903
|
-
"url": "/v1/transfers/tr_19zuujDSlTMT26Mk81npuLjT/reversals"
|
904
|
-
},
|
905
|
-
"reversed": false,
|
906
|
-
"source_transaction": "",
|
907
|
-
"source_type": "card",
|
908
|
-
"statement_descriptor": "",
|
909
|
-
"status": "in_transit",
|
910
|
-
"transfer_group": "",
|
911
|
-
"type": "bank_account",
|
912
|
-
"user_visible_date": 1234567890
|
913
|
-
},
|
914
1154
|
"login_link": {
|
915
1155
|
"created": 1234567890,
|
916
1156
|
"object": "login_link",
|
@@ -938,8 +1178,26 @@
|
|
938
1178
|
"description": "T-shirt",
|
939
1179
|
"object": "order_item",
|
940
1180
|
"parent": "sk_19tLKeDSlTMT26MkWafeCAS4",
|
941
|
-
"quantity":
|
1181
|
+
"quantity": 1,
|
942
1182
|
"type": "sku"
|
1183
|
+
},
|
1184
|
+
{
|
1185
|
+
"amount": 0,
|
1186
|
+
"currency": "usd",
|
1187
|
+
"description": "Taxes (included)",
|
1188
|
+
"object": "order_item",
|
1189
|
+
"parent": null,
|
1190
|
+
"quantity": null,
|
1191
|
+
"type": "tax"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
"amount": 0,
|
1195
|
+
"currency": "usd",
|
1196
|
+
"description": "Free shipping",
|
1197
|
+
"object": "order_item",
|
1198
|
+
"parent": "ship_free-shipping",
|
1199
|
+
"quantity": null,
|
1200
|
+
"type": "shipping"
|
943
1201
|
}
|
944
1202
|
],
|
945
1203
|
"livemode": false,
|
@@ -948,7 +1206,45 @@
|
|
948
1206
|
"object": "order",
|
949
1207
|
"returns": {
|
950
1208
|
"data": [
|
951
|
-
|
1209
|
+
{
|
1210
|
+
"amount": 1500,
|
1211
|
+
"created": 1497681376,
|
1212
|
+
"currency": "usd",
|
1213
|
+
"id": "orret_1AVaXc2eZvKYlo2CtcXu3BxE",
|
1214
|
+
"items": [
|
1215
|
+
{
|
1216
|
+
"amount": 1500,
|
1217
|
+
"currency": "usd",
|
1218
|
+
"description": "T-shirt",
|
1219
|
+
"object": "order_item",
|
1220
|
+
"parent": "sku_ArJ9yltVsdN8Wb",
|
1221
|
+
"quantity": 1,
|
1222
|
+
"type": "sku"
|
1223
|
+
},
|
1224
|
+
{
|
1225
|
+
"amount": 0,
|
1226
|
+
"currency": "usd",
|
1227
|
+
"description": "Taxes (included)",
|
1228
|
+
"object": "order_item",
|
1229
|
+
"parent": null,
|
1230
|
+
"quantity": null,
|
1231
|
+
"type": "tax"
|
1232
|
+
},
|
1233
|
+
{
|
1234
|
+
"amount": 0,
|
1235
|
+
"currency": "usd",
|
1236
|
+
"description": "Free shipping",
|
1237
|
+
"object": "order_item",
|
1238
|
+
"parent": "ship_free-shipping",
|
1239
|
+
"quantity": null,
|
1240
|
+
"type": "shipping"
|
1241
|
+
}
|
1242
|
+
],
|
1243
|
+
"livemode": false,
|
1244
|
+
"object": "order_return",
|
1245
|
+
"order": "or_1AVaXR2eZvKYlo2CTES1kJ6N",
|
1246
|
+
"refund": null
|
1247
|
+
}
|
952
1248
|
],
|
953
1249
|
"has_more": false,
|
954
1250
|
"object": "list",
|
@@ -970,14 +1266,21 @@
|
|
970
1266
|
"phone": null,
|
971
1267
|
"tracking_number": null
|
972
1268
|
},
|
973
|
-
"shipping_methods":
|
974
|
-
|
1269
|
+
"shipping_methods": [
|
1270
|
+
{
|
1271
|
+
"amount": 0,
|
1272
|
+
"currency": "usd",
|
1273
|
+
"delivery_estimate": null,
|
1274
|
+
"description": "Free shipping",
|
1275
|
+
"id": "ship_free-shipping"
|
1276
|
+
}
|
1277
|
+
],
|
975
1278
|
"signature": "",
|
976
1279
|
"status": "created",
|
977
1280
|
"status_transitions": {
|
978
|
-
"canceled":
|
1281
|
+
"canceled": 1497681377,
|
979
1282
|
"fulfiled": null,
|
980
|
-
"paid":
|
1283
|
+
"paid": 1497681372,
|
981
1284
|
"returned": null
|
982
1285
|
},
|
983
1286
|
"updated": 1234567890,
|
@@ -995,8 +1298,26 @@
|
|
995
1298
|
"description": "T-shirt",
|
996
1299
|
"object": "order_item",
|
997
1300
|
"parent": "sk_19zuukDSlTMT26MkepWkJtmm",
|
998
|
-
"quantity":
|
1301
|
+
"quantity": 1,
|
999
1302
|
"type": "sku"
|
1303
|
+
},
|
1304
|
+
{
|
1305
|
+
"amount": 0,
|
1306
|
+
"currency": "usd",
|
1307
|
+
"description": "Taxes (included)",
|
1308
|
+
"object": "order_item",
|
1309
|
+
"parent": null,
|
1310
|
+
"quantity": null,
|
1311
|
+
"type": "tax"
|
1312
|
+
},
|
1313
|
+
{
|
1314
|
+
"amount": 0,
|
1315
|
+
"currency": "usd",
|
1316
|
+
"description": "Free shipping",
|
1317
|
+
"object": "order_item",
|
1318
|
+
"parent": "ship_free-shipping",
|
1319
|
+
"quantity": null,
|
1320
|
+
"type": "shipping"
|
1000
1321
|
}
|
1001
1322
|
],
|
1002
1323
|
"livemode": false,
|
@@ -1015,6 +1336,7 @@
|
|
1015
1336
|
},
|
1016
1337
|
"created": 1234567890,
|
1017
1338
|
"currency": "usd",
|
1339
|
+
"description": "",
|
1018
1340
|
"destination": "acct_19tLK7DSlTMT26Mk",
|
1019
1341
|
"failure_balance_transaction": "",
|
1020
1342
|
"failure_code": "",
|
@@ -1098,7 +1420,30 @@
|
|
1098
1420
|
"shippable": true,
|
1099
1421
|
"skus": {
|
1100
1422
|
"data": [
|
1101
|
-
|
1423
|
+
{
|
1424
|
+
"active": true,
|
1425
|
+
"attributes": {
|
1426
|
+
"gender": "Unisex",
|
1427
|
+
"size": "Medium"
|
1428
|
+
},
|
1429
|
+
"created": 1489796923,
|
1430
|
+
"currency": "usd",
|
1431
|
+
"id": "sku_AJ7g98gPhCjas3",
|
1432
|
+
"image": null,
|
1433
|
+
"inventory": {
|
1434
|
+
"quantity": 499,
|
1435
|
+
"type": "finite",
|
1436
|
+
"value": null
|
1437
|
+
},
|
1438
|
+
"livemode": false,
|
1439
|
+
"metadata": {
|
1440
|
+
},
|
1441
|
+
"object": "sku",
|
1442
|
+
"package_dimensions": null,
|
1443
|
+
"price": 1500,
|
1444
|
+
"product": "prod_AJ7gAXvktPRvvh",
|
1445
|
+
"updated": 1489796941
|
1446
|
+
}
|
1102
1447
|
],
|
1103
1448
|
"has_more": false,
|
1104
1449
|
"object": "list",
|
@@ -1120,6 +1465,7 @@
|
|
1120
1465
|
},
|
1121
1466
|
"id": "re_19zuuhDSlTMT26MkpLosorvD",
|
1122
1467
|
"metadata": {
|
1468
|
+
"reason": "2"
|
1123
1469
|
},
|
1124
1470
|
"object": "refund",
|
1125
1471
|
"reason": "",
|
@@ -1298,9 +1644,9 @@
|
|
1298
1644
|
"address_zip": null,
|
1299
1645
|
"address_zip_check": null,
|
1300
1646
|
"brand": "Visa",
|
1301
|
-
"country":
|
1647
|
+
"country": "US",
|
1302
1648
|
"customer": null,
|
1303
|
-
"cvc_check":
|
1649
|
+
"cvc_check": "unchecked",
|
1304
1650
|
"dynamic_last4": null,
|
1305
1651
|
"exp_month": 8,
|
1306
1652
|
"exp_year": 2018,
|
@@ -1339,7 +1685,7 @@
|
|
1339
1685
|
"address_zip": null,
|
1340
1686
|
"address_zip_check": null,
|
1341
1687
|
"brand": "Visa",
|
1342
|
-
"country":
|
1688
|
+
"country": "US",
|
1343
1689
|
"cvc_check": null,
|
1344
1690
|
"dynamic_last4": null,
|
1345
1691
|
"exp_month": 8,
|
@@ -1371,6 +1717,7 @@
|
|
1371
1717
|
"balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
|
1372
1718
|
"created": 1234567890,
|
1373
1719
|
"currency": "usd",
|
1720
|
+
"description": "",
|
1374
1721
|
"destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
|
1375
1722
|
"destination_payment": "",
|
1376
1723
|
"id": "tr_19zuujDSlTMT26Mk81npuLjT",
|
@@ -1380,7 +1727,17 @@
|
|
1380
1727
|
"object": "transfer",
|
1381
1728
|
"reversals": {
|
1382
1729
|
"data": [
|
1383
|
-
|
1730
|
+
{
|
1731
|
+
"amount": 100,
|
1732
|
+
"balance_transaction": "txn_1AF3y32eZvKYlo2CSgDInbEk",
|
1733
|
+
"created": 1493742915,
|
1734
|
+
"currency": "usd",
|
1735
|
+
"id": "trr_1AF3y32eZvKYlo2CtkDXeobp",
|
1736
|
+
"metadata": {
|
1737
|
+
},
|
1738
|
+
"object": "transfer_reversal",
|
1739
|
+
"transfer": "tr_164xRv2eZvKYlo2CZxJZWm1E"
|
1740
|
+
}
|
1384
1741
|
],
|
1385
1742
|
"has_more": false,
|
1386
1743
|
"object": "list",
|
@@ -1394,6 +1751,20 @@
|
|
1394
1751
|
},
|
1395
1752
|
"transfer_recipient": {
|
1396
1753
|
"active_account": {
|
1754
|
+
"account_holder_name": null,
|
1755
|
+
"account_holder_type": null,
|
1756
|
+
"bank_name": "STRIPE TEST BANK",
|
1757
|
+
"country": "US",
|
1758
|
+
"currency": "usd",
|
1759
|
+
"customer": null,
|
1760
|
+
"fingerprint": "1JWtPxqbdX5Gamtc",
|
1761
|
+
"id": "ba_19p5Ze2eZvKYlo2C1fs6Ar4u",
|
1762
|
+
"last4": "6789",
|
1763
|
+
"metadata": {
|
1764
|
+
},
|
1765
|
+
"object": "bank_account",
|
1766
|
+
"routing_number": "110000000",
|
1767
|
+
"status": "new"
|
1397
1768
|
},
|
1398
1769
|
"address_city": "",
|
1399
1770
|
"address_country": "",
|
@@ -1460,7 +1831,40 @@
|
|
1460
1831
|
"forgiven": false,
|
1461
1832
|
"lines": {
|
1462
1833
|
"data": [
|
1463
|
-
|
1834
|
+
{
|
1835
|
+
"amount": 1000,
|
1836
|
+
"currency": "usd",
|
1837
|
+
"description": null,
|
1838
|
+
"discountable": true,
|
1839
|
+
"id": "sub_3jtkr4OHgFoV5k",
|
1840
|
+
"livemode": false,
|
1841
|
+
"metadata": {
|
1842
|
+
},
|
1843
|
+
"object": "line_item",
|
1844
|
+
"period": {
|
1845
|
+
"end": 1430089038,
|
1846
|
+
"start": 1427410638
|
1847
|
+
},
|
1848
|
+
"plan": {
|
1849
|
+
"amount": 1000,
|
1850
|
+
"created": 1391206393,
|
1851
|
+
"currency": "usd",
|
1852
|
+
"id": "monthly",
|
1853
|
+
"interval": "month",
|
1854
|
+
"interval_count": 1,
|
1855
|
+
"livemode": false,
|
1856
|
+
"metadata": {
|
1857
|
+
},
|
1858
|
+
"name": "Monthly Plan",
|
1859
|
+
"object": "plan",
|
1860
|
+
"statement_descriptor": null,
|
1861
|
+
"trial_period_days": null
|
1862
|
+
},
|
1863
|
+
"proration": false,
|
1864
|
+
"quantity": 1,
|
1865
|
+
"subscription": null,
|
1866
|
+
"type": "subscription"
|
1867
|
+
}
|
1464
1868
|
],
|
1465
1869
|
"has_more": false,
|
1466
1870
|
"object": "list",
|