shopify-webhook-schemas 0.2.5 → 0.2.7

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.
@@ -0,0 +1,1383 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "properties": {
4
+ "admin_graphql_api_id": {
5
+ "format": "uri",
6
+ "type": "string"
7
+ },
8
+ "created_at": {
9
+ "format": "date-time",
10
+ "type": "string"
11
+ },
12
+ "duties": {
13
+ "items": false,
14
+ "type": "array"
15
+ },
16
+ "id": {
17
+ "type": "integer"
18
+ },
19
+ "note": {
20
+ "type": "string"
21
+ },
22
+ "order_adjustments": {
23
+ "items": false,
24
+ "type": "array"
25
+ },
26
+ "order_id": {
27
+ "type": "integer"
28
+ },
29
+ "processed_at": {
30
+ "format": "date-time",
31
+ "type": "string"
32
+ },
33
+ "refund_line_items": {
34
+ "items": {
35
+ "properties": {
36
+ "id": {
37
+ "type": "integer"
38
+ },
39
+ "line_item": {
40
+ "properties": {
41
+ "admin_graphql_api_id": {
42
+ "format": "uri",
43
+ "type": "string"
44
+ },
45
+ "discount_allocations": {
46
+ "items": {
47
+ "properties": {
48
+ "amount": {
49
+ "type": "string"
50
+ },
51
+ "amount_set": {
52
+ "properties": {
53
+ "presentment_money": {
54
+ "properties": {
55
+ "amount": {
56
+ "type": "string"
57
+ },
58
+ "currency_code": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ "required": [
63
+ "amount",
64
+ "currency_code"
65
+ ],
66
+ "type": "object"
67
+ },
68
+ "shop_money": {
69
+ "properties": {
70
+ "amount": {
71
+ "type": "string"
72
+ },
73
+ "currency_code": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "required": [
78
+ "amount",
79
+ "currency_code"
80
+ ],
81
+ "type": "object"
82
+ }
83
+ },
84
+ "required": [
85
+ "presentment_money",
86
+ "shop_money"
87
+ ],
88
+ "type": "object"
89
+ },
90
+ "discount_application_index": {
91
+ "type": "integer"
92
+ }
93
+ },
94
+ "required": [
95
+ "amount",
96
+ "amount_set",
97
+ "discount_application_index"
98
+ ],
99
+ "type": "object"
100
+ },
101
+ "type": "array"
102
+ },
103
+ "duties": {
104
+ "items": false,
105
+ "type": "array"
106
+ },
107
+ "fulfillable_quantity": {
108
+ "type": "integer"
109
+ },
110
+ "fulfillment_service": {
111
+ "type": "string"
112
+ },
113
+ "fulfillment_status": {
114
+ "type": [
115
+ "null",
116
+ "string"
117
+ ]
118
+ },
119
+ "gift_card": {
120
+ "type": "boolean"
121
+ },
122
+ "grams": {
123
+ "type": "integer"
124
+ },
125
+ "id": {
126
+ "type": "integer"
127
+ },
128
+ "name": {
129
+ "type": "string"
130
+ },
131
+ "origin_location": {
132
+ "properties": {
133
+ "address1": {
134
+ "type": "string"
135
+ },
136
+ "address2": {
137
+ "type": "string"
138
+ },
139
+ "city": {
140
+ "type": "string"
141
+ },
142
+ "country_code": {
143
+ "type": "string"
144
+ },
145
+ "id": {
146
+ "type": "integer"
147
+ },
148
+ "name": {
149
+ "type": "string"
150
+ },
151
+ "province_code": {
152
+ "type": "string"
153
+ },
154
+ "zip": {
155
+ "type": "string"
156
+ }
157
+ },
158
+ "required": [
159
+ "address1",
160
+ "address2",
161
+ "city",
162
+ "country_code",
163
+ "id",
164
+ "name",
165
+ "province_code",
166
+ "zip"
167
+ ],
168
+ "type": "object"
169
+ },
170
+ "pre_tax_price": {
171
+ "type": "string"
172
+ },
173
+ "price": {
174
+ "type": "string"
175
+ },
176
+ "price_set": {
177
+ "properties": {
178
+ "presentment_money": {
179
+ "properties": {
180
+ "amount": {
181
+ "type": "string"
182
+ },
183
+ "currency_code": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "required": [
188
+ "amount",
189
+ "currency_code"
190
+ ],
191
+ "type": "object"
192
+ },
193
+ "shop_money": {
194
+ "properties": {
195
+ "amount": {
196
+ "type": "string"
197
+ },
198
+ "currency_code": {
199
+ "type": "string"
200
+ }
201
+ },
202
+ "required": [
203
+ "amount",
204
+ "currency_code"
205
+ ],
206
+ "type": "object"
207
+ }
208
+ },
209
+ "required": [
210
+ "presentment_money",
211
+ "shop_money"
212
+ ],
213
+ "type": "object"
214
+ },
215
+ "product_exists": {
216
+ "type": "boolean"
217
+ },
218
+ "product_id": {
219
+ "type": "integer"
220
+ },
221
+ "properties": {
222
+ "items": false,
223
+ "type": "array"
224
+ },
225
+ "quantity": {
226
+ "type": "integer"
227
+ },
228
+ "requires_shipping": {
229
+ "type": "boolean"
230
+ },
231
+ "sku": {
232
+ "type": "string"
233
+ },
234
+ "tax_code": {
235
+ "type": "string"
236
+ },
237
+ "tax_lines": {
238
+ "items": {
239
+ "properties": {
240
+ "channel_liable": {
241
+ "type": "boolean"
242
+ },
243
+ "price": {
244
+ "type": "string"
245
+ },
246
+ "price_set": {
247
+ "properties": {
248
+ "presentment_money": {
249
+ "properties": {
250
+ "amount": {
251
+ "type": "string"
252
+ },
253
+ "currency_code": {
254
+ "type": "string"
255
+ }
256
+ },
257
+ "required": [
258
+ "amount",
259
+ "currency_code"
260
+ ],
261
+ "type": "object"
262
+ },
263
+ "shop_money": {
264
+ "properties": {
265
+ "amount": {
266
+ "type": "string"
267
+ },
268
+ "currency_code": {
269
+ "type": "string"
270
+ }
271
+ },
272
+ "required": [
273
+ "amount",
274
+ "currency_code"
275
+ ],
276
+ "type": "object"
277
+ }
278
+ },
279
+ "required": [
280
+ "presentment_money",
281
+ "shop_money"
282
+ ],
283
+ "type": "object"
284
+ },
285
+ "rate": {
286
+ "type": "number"
287
+ },
288
+ "title": {
289
+ "type": "string"
290
+ }
291
+ },
292
+ "required": [
293
+ "channel_liable",
294
+ "price",
295
+ "price_set",
296
+ "rate",
297
+ "title"
298
+ ],
299
+ "type": "object"
300
+ },
301
+ "type": "array"
302
+ },
303
+ "taxable": {
304
+ "type": "boolean"
305
+ },
306
+ "title": {
307
+ "type": "string"
308
+ },
309
+ "total_discount": {
310
+ "type": "string"
311
+ },
312
+ "total_discount_set": {
313
+ "properties": {
314
+ "presentment_money": {
315
+ "properties": {
316
+ "amount": {
317
+ "type": "string"
318
+ },
319
+ "currency_code": {
320
+ "type": "string"
321
+ }
322
+ },
323
+ "required": [
324
+ "amount",
325
+ "currency_code"
326
+ ],
327
+ "type": "object"
328
+ },
329
+ "shop_money": {
330
+ "properties": {
331
+ "amount": {
332
+ "type": "string"
333
+ },
334
+ "currency_code": {
335
+ "type": "string"
336
+ }
337
+ },
338
+ "required": [
339
+ "amount",
340
+ "currency_code"
341
+ ],
342
+ "type": "object"
343
+ }
344
+ },
345
+ "required": [
346
+ "presentment_money",
347
+ "shop_money"
348
+ ],
349
+ "type": "object"
350
+ },
351
+ "variant_id": {
352
+ "type": [
353
+ "integer",
354
+ "null"
355
+ ]
356
+ },
357
+ "variant_inventory_management": {
358
+ "type": [
359
+ "null",
360
+ "string"
361
+ ]
362
+ },
363
+ "variant_title": {
364
+ "type": [
365
+ "null",
366
+ "string"
367
+ ]
368
+ },
369
+ "vendor": {
370
+ "type": [
371
+ "null",
372
+ "string"
373
+ ]
374
+ }
375
+ },
376
+ "required": [
377
+ "admin_graphql_api_id",
378
+ "discount_allocations",
379
+ "duties",
380
+ "fulfillable_quantity",
381
+ "fulfillment_service",
382
+ "fulfillment_status",
383
+ "gift_card",
384
+ "grams",
385
+ "id",
386
+ "name",
387
+ "price",
388
+ "price_set",
389
+ "product_exists",
390
+ "product_id",
391
+ "properties",
392
+ "quantity",
393
+ "requires_shipping",
394
+ "sku",
395
+ "tax_lines",
396
+ "taxable",
397
+ "title",
398
+ "total_discount",
399
+ "total_discount_set",
400
+ "variant_id",
401
+ "variant_inventory_management",
402
+ "variant_title",
403
+ "vendor"
404
+ ],
405
+ "type": "object"
406
+ },
407
+ "line_item_id": {
408
+ "type": "integer"
409
+ },
410
+ "location_id": {
411
+ "type": [
412
+ "integer",
413
+ "null"
414
+ ]
415
+ },
416
+ "quantity": {
417
+ "type": "integer"
418
+ },
419
+ "restock_type": {
420
+ "type": "string"
421
+ },
422
+ "subtotal": {
423
+ "type": "number"
424
+ },
425
+ "subtotal_set": {
426
+ "properties": {
427
+ "presentment_money": {
428
+ "properties": {
429
+ "amount": {
430
+ "type": "string"
431
+ },
432
+ "currency_code": {
433
+ "type": "string"
434
+ }
435
+ },
436
+ "required": [
437
+ "amount",
438
+ "currency_code"
439
+ ],
440
+ "type": "object"
441
+ },
442
+ "shop_money": {
443
+ "properties": {
444
+ "amount": {
445
+ "type": "string"
446
+ },
447
+ "currency_code": {
448
+ "type": "string"
449
+ }
450
+ },
451
+ "required": [
452
+ "amount",
453
+ "currency_code"
454
+ ],
455
+ "type": "object"
456
+ }
457
+ },
458
+ "required": [
459
+ "presentment_money",
460
+ "shop_money"
461
+ ],
462
+ "type": "object"
463
+ },
464
+ "total_tax": {
465
+ "type": "number"
466
+ },
467
+ "total_tax_set": {
468
+ "properties": {
469
+ "presentment_money": {
470
+ "properties": {
471
+ "amount": {
472
+ "type": "string"
473
+ },
474
+ "currency_code": {
475
+ "type": "string"
476
+ }
477
+ },
478
+ "required": [
479
+ "amount",
480
+ "currency_code"
481
+ ],
482
+ "type": "object"
483
+ },
484
+ "shop_money": {
485
+ "properties": {
486
+ "amount": {
487
+ "type": "string"
488
+ },
489
+ "currency_code": {
490
+ "type": "string"
491
+ }
492
+ },
493
+ "required": [
494
+ "amount",
495
+ "currency_code"
496
+ ],
497
+ "type": "object"
498
+ }
499
+ },
500
+ "required": [
501
+ "presentment_money",
502
+ "shop_money"
503
+ ],
504
+ "type": "object"
505
+ }
506
+ },
507
+ "required": [
508
+ "id",
509
+ "line_item",
510
+ "line_item_id",
511
+ "location_id",
512
+ "quantity",
513
+ "restock_type",
514
+ "subtotal",
515
+ "subtotal_set",
516
+ "total_tax",
517
+ "total_tax_set"
518
+ ],
519
+ "type": "object"
520
+ },
521
+ "type": "array"
522
+ },
523
+ "refund_shipping_lines": {
524
+ "items": false,
525
+ "type": "array"
526
+ },
527
+ "restock": {
528
+ "type": "boolean"
529
+ },
530
+ "return": {
531
+ "anyOf": [
532
+ {
533
+ "type": "null"
534
+ },
535
+ {
536
+ "properties": {
537
+ "admin_graphql_api_id": {
538
+ "format": "uri",
539
+ "type": "string"
540
+ },
541
+ "id": {
542
+ "type": "integer"
543
+ }
544
+ },
545
+ "required": [
546
+ "admin_graphql_api_id",
547
+ "id"
548
+ ],
549
+ "type": "object"
550
+ }
551
+ ]
552
+ },
553
+ "total_duties_set": {
554
+ "properties": {
555
+ "presentment_money": {
556
+ "properties": {
557
+ "amount": {
558
+ "type": "string"
559
+ },
560
+ "currency_code": {
561
+ "type": "string"
562
+ }
563
+ },
564
+ "required": [
565
+ "amount",
566
+ "currency_code"
567
+ ],
568
+ "type": "object"
569
+ },
570
+ "shop_money": {
571
+ "properties": {
572
+ "amount": {
573
+ "type": "string"
574
+ },
575
+ "currency_code": {
576
+ "type": "string"
577
+ }
578
+ },
579
+ "required": [
580
+ "amount",
581
+ "currency_code"
582
+ ],
583
+ "type": "object"
584
+ }
585
+ },
586
+ "required": [
587
+ "presentment_money",
588
+ "shop_money"
589
+ ],
590
+ "type": "object"
591
+ },
592
+ "transactions": {
593
+ "items": {
594
+ "properties": {
595
+ "admin_graphql_api_id": {
596
+ "format": "uri",
597
+ "type": "string"
598
+ },
599
+ "amount": {
600
+ "type": "string"
601
+ },
602
+ "amount_rounding": {
603
+ "type": [
604
+ "null",
605
+ "string"
606
+ ]
607
+ },
608
+ "authorization": {
609
+ "type": [
610
+ "null",
611
+ "string"
612
+ ]
613
+ },
614
+ "created_at": {
615
+ "format": "date-time",
616
+ "type": "string"
617
+ },
618
+ "currency": {
619
+ "type": [
620
+ "null",
621
+ "string"
622
+ ]
623
+ },
624
+ "device_id": {
625
+ "type": [
626
+ "integer",
627
+ "null"
628
+ ]
629
+ },
630
+ "error_code": {
631
+ "type": "null"
632
+ },
633
+ "gateway": {
634
+ "type": "string"
635
+ },
636
+ "id": {
637
+ "type": "integer"
638
+ },
639
+ "kind": {
640
+ "type": "string"
641
+ },
642
+ "location_id": {
643
+ "type": [
644
+ "integer",
645
+ "null"
646
+ ]
647
+ },
648
+ "manual_payment_gateway": {
649
+ "type": "boolean"
650
+ },
651
+ "message": {
652
+ "type": [
653
+ "null",
654
+ "string"
655
+ ]
656
+ },
657
+ "order_id": {
658
+ "type": "integer"
659
+ },
660
+ "parent_id": {
661
+ "type": [
662
+ "integer",
663
+ "null"
664
+ ]
665
+ },
666
+ "payment_details": {
667
+ "properties": {
668
+ "avs_result_code": {
669
+ "type": "string"
670
+ },
671
+ "buyer_action_info": {
672
+ "type": "null"
673
+ },
674
+ "credit_card_bin": {
675
+ "format": "date-time",
676
+ "type": "string"
677
+ },
678
+ "credit_card_company": {
679
+ "type": "string"
680
+ },
681
+ "credit_card_expiration_month": {
682
+ "type": "integer"
683
+ },
684
+ "credit_card_expiration_year": {
685
+ "type": "integer"
686
+ },
687
+ "credit_card_name": {
688
+ "type": "string"
689
+ },
690
+ "credit_card_number": {
691
+ "type": "string"
692
+ },
693
+ "credit_card_wallet": {
694
+ "type": "string"
695
+ },
696
+ "cvv_result_code": {
697
+ "type": "string"
698
+ },
699
+ "payment_method_name": {
700
+ "type": "string"
701
+ }
702
+ },
703
+ "required": [
704
+ "avs_result_code",
705
+ "buyer_action_info",
706
+ "credit_card_bin",
707
+ "credit_card_company",
708
+ "credit_card_expiration_month",
709
+ "credit_card_expiration_year",
710
+ "credit_card_name",
711
+ "credit_card_number",
712
+ "credit_card_wallet",
713
+ "cvv_result_code",
714
+ "payment_method_name"
715
+ ],
716
+ "type": "object"
717
+ },
718
+ "payment_id": {
719
+ "type": "string"
720
+ },
721
+ "payments_refund_attributes": {
722
+ "properties": {
723
+ "acquirer_reference_number": {
724
+ "type": "string"
725
+ },
726
+ "status": {
727
+ "type": "string"
728
+ }
729
+ },
730
+ "required": [
731
+ "acquirer_reference_number",
732
+ "status"
733
+ ],
734
+ "type": "object"
735
+ },
736
+ "processed_at": {
737
+ "format": "date-time",
738
+ "type": [
739
+ "null",
740
+ "string"
741
+ ]
742
+ },
743
+ "receipt": {
744
+ "properties": {
745
+ "amount": {
746
+ "type": "integer"
747
+ },
748
+ "balance_transaction": {
749
+ "properties": {
750
+ "exchange_rate": {
751
+ "type": "null"
752
+ },
753
+ "id": {
754
+ "type": "string"
755
+ },
756
+ "object": {
757
+ "type": "string"
758
+ }
759
+ },
760
+ "required": [
761
+ "exchange_rate",
762
+ "id",
763
+ "object"
764
+ ],
765
+ "type": "object"
766
+ },
767
+ "charge": {
768
+ "properties": {
769
+ "amount": {
770
+ "type": "integer"
771
+ },
772
+ "application_fee": {
773
+ "type": "string"
774
+ },
775
+ "balance_transaction": {
776
+ "type": "string"
777
+ },
778
+ "captured": {
779
+ "type": "boolean"
780
+ },
781
+ "created": {
782
+ "type": "integer"
783
+ },
784
+ "currency": {
785
+ "type": "string"
786
+ },
787
+ "failure_code": {
788
+ "type": "null"
789
+ },
790
+ "failure_message": {
791
+ "type": "string"
792
+ },
793
+ "fraud_details": {
794
+ "type": "object"
795
+ },
796
+ "id": {
797
+ "type": "string"
798
+ },
799
+ "livemode": {
800
+ "type": "boolean"
801
+ },
802
+ "metadata": {
803
+ "properties": {
804
+ "email": {
805
+ "type": "string"
806
+ },
807
+ "manual_entry": {
808
+ "type": "string"
809
+ },
810
+ "order_id": {
811
+ "type": "string"
812
+ },
813
+ "order_transaction_id": {
814
+ "type": "string"
815
+ },
816
+ "payments_charge_id": {
817
+ "type": "string"
818
+ },
819
+ "shop_id": {
820
+ "type": "string"
821
+ },
822
+ "shop_name": {
823
+ "type": "string"
824
+ },
825
+ "shopify_payments_next": {
826
+ "type": "string"
827
+ }
828
+ },
829
+ "required": [
830
+ "email",
831
+ "manual_entry",
832
+ "order_id",
833
+ "order_transaction_id",
834
+ "payments_charge_id",
835
+ "shop_id",
836
+ "shop_name",
837
+ "shopify_payments_next"
838
+ ],
839
+ "type": "object"
840
+ },
841
+ "mit_params": {
842
+ "properties": {
843
+ "network_transaction_id": {
844
+ "type": "string"
845
+ }
846
+ },
847
+ "required": [
848
+ "network_transaction_id"
849
+ ],
850
+ "type": "object"
851
+ },
852
+ "object": {
853
+ "type": "string"
854
+ },
855
+ "outcome": {
856
+ "properties": {
857
+ "advice_code": {
858
+ "type": "null"
859
+ },
860
+ "network_advice_code": {
861
+ "type": "null"
862
+ },
863
+ "network_decline_code": {
864
+ "type": "null"
865
+ },
866
+ "network_status": {
867
+ "type": "string"
868
+ },
869
+ "reason": {
870
+ "type": "string"
871
+ },
872
+ "risk_level": {
873
+ "type": "string"
874
+ },
875
+ "seller_message": {
876
+ "type": "string"
877
+ },
878
+ "type": {
879
+ "type": "string"
880
+ }
881
+ },
882
+ "required": [
883
+ "advice_code",
884
+ "network_advice_code",
885
+ "network_decline_code",
886
+ "network_status",
887
+ "reason",
888
+ "risk_level",
889
+ "seller_message",
890
+ "type"
891
+ ],
892
+ "type": "object"
893
+ },
894
+ "paid": {
895
+ "type": "boolean"
896
+ },
897
+ "payment_intent": {
898
+ "type": "string"
899
+ },
900
+ "payment_method": {
901
+ "type": "string"
902
+ },
903
+ "payment_method_details": {
904
+ "properties": {
905
+ "card": {
906
+ "properties": {
907
+ "amount_authorized": {
908
+ "type": "integer"
909
+ },
910
+ "authorization_code": {
911
+ "format": "date-time",
912
+ "type": "string"
913
+ },
914
+ "brand": {
915
+ "type": "string"
916
+ },
917
+ "capture_before": {
918
+ "type": "integer"
919
+ },
920
+ "checks": {
921
+ "properties": {
922
+ "address_line1_check": {
923
+ "type": "string"
924
+ },
925
+ "address_postal_code_check": {
926
+ "type": "string"
927
+ },
928
+ "cvc_check": {
929
+ "type": "string"
930
+ }
931
+ },
932
+ "required": [
933
+ "address_line1_check",
934
+ "address_postal_code_check",
935
+ "cvc_check"
936
+ ],
937
+ "type": "object"
938
+ },
939
+ "country": {
940
+ "type": "string"
941
+ },
942
+ "description": {
943
+ "type": "string"
944
+ },
945
+ "ds_transaction_id": {
946
+ "type": "null"
947
+ },
948
+ "exp_month": {
949
+ "type": "integer"
950
+ },
951
+ "exp_year": {
952
+ "type": "integer"
953
+ },
954
+ "extended_authorization": {
955
+ "properties": {
956
+ "status": {
957
+ "type": "string"
958
+ }
959
+ },
960
+ "required": [
961
+ "status"
962
+ ],
963
+ "type": "object"
964
+ },
965
+ "fingerprint": {
966
+ "type": "string"
967
+ },
968
+ "funding": {
969
+ "type": "string"
970
+ },
971
+ "iin": {
972
+ "format": "date-time",
973
+ "type": "string"
974
+ },
975
+ "incremental_authorization": {
976
+ "properties": {
977
+ "status": {
978
+ "type": "string"
979
+ }
980
+ },
981
+ "required": [
982
+ "status"
983
+ ],
984
+ "type": "object"
985
+ },
986
+ "installments": {
987
+ "type": "null"
988
+ },
989
+ "issuer": {
990
+ "type": "string"
991
+ },
992
+ "last4": {
993
+ "format": "date-time",
994
+ "type": "string"
995
+ },
996
+ "mandate": {
997
+ "type": "null"
998
+ },
999
+ "moto": {
1000
+ "type": "boolean"
1001
+ },
1002
+ "multicapture": {
1003
+ "properties": {
1004
+ "status": {
1005
+ "type": "string"
1006
+ }
1007
+ },
1008
+ "required": [
1009
+ "status"
1010
+ ],
1011
+ "type": "object"
1012
+ },
1013
+ "network": {
1014
+ "type": "string"
1015
+ },
1016
+ "network_token": {
1017
+ "properties": {
1018
+ "used": {
1019
+ "type": "boolean"
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "used"
1024
+ ],
1025
+ "type": "object"
1026
+ },
1027
+ "network_transaction_id": {
1028
+ "type": "string"
1029
+ },
1030
+ "overcapture": {
1031
+ "properties": {
1032
+ "maximum_amount_capturable": {
1033
+ "type": "integer"
1034
+ },
1035
+ "status": {
1036
+ "type": "string"
1037
+ }
1038
+ },
1039
+ "required": [
1040
+ "maximum_amount_capturable",
1041
+ "status"
1042
+ ],
1043
+ "type": "object"
1044
+ },
1045
+ "overcapture_supported": {
1046
+ "type": "boolean"
1047
+ },
1048
+ "payment_account_reference": {
1049
+ "type": "string"
1050
+ },
1051
+ "regulated_status": {
1052
+ "type": "string"
1053
+ },
1054
+ "three_d_secure": {
1055
+ "properties": {
1056
+ "authenticated": {
1057
+ "type": "boolean"
1058
+ },
1059
+ "authentication_flow": {
1060
+ "type": "string"
1061
+ },
1062
+ "electronic_commerce_indicator": {
1063
+ "type": "string"
1064
+ },
1065
+ "exemption_indicator": {
1066
+ "type": "string"
1067
+ },
1068
+ "result": {
1069
+ "type": "string"
1070
+ },
1071
+ "result_reason": {
1072
+ "type": "string"
1073
+ },
1074
+ "succeeded": {
1075
+ "type": "boolean"
1076
+ },
1077
+ "transaction_id": {
1078
+ "type": "string"
1079
+ },
1080
+ "version": {
1081
+ "type": "string"
1082
+ }
1083
+ },
1084
+ "required": [
1085
+ "authenticated",
1086
+ "authentication_flow",
1087
+ "electronic_commerce_indicator",
1088
+ "exemption_indicator",
1089
+ "result",
1090
+ "result_reason",
1091
+ "succeeded",
1092
+ "transaction_id",
1093
+ "version"
1094
+ ],
1095
+ "type": "object"
1096
+ },
1097
+ "wallet": {
1098
+ "properties": {
1099
+ "apple_pay": {
1100
+ "properties": {
1101
+ "type": {
1102
+ "type": "string"
1103
+ }
1104
+ },
1105
+ "required": [
1106
+ "type"
1107
+ ],
1108
+ "type": "object"
1109
+ },
1110
+ "dynamic_last4": {
1111
+ "format": "date-time",
1112
+ "type": "string"
1113
+ },
1114
+ "type": {
1115
+ "type": "string"
1116
+ }
1117
+ },
1118
+ "required": [
1119
+ "apple_pay",
1120
+ "dynamic_last4",
1121
+ "type"
1122
+ ],
1123
+ "type": "object"
1124
+ }
1125
+ },
1126
+ "required": [
1127
+ "amount_authorized",
1128
+ "authorization_code",
1129
+ "brand",
1130
+ "capture_before",
1131
+ "checks",
1132
+ "country",
1133
+ "description",
1134
+ "ds_transaction_id",
1135
+ "exp_month",
1136
+ "exp_year",
1137
+ "extended_authorization",
1138
+ "fingerprint",
1139
+ "funding",
1140
+ "iin",
1141
+ "incremental_authorization",
1142
+ "installments",
1143
+ "issuer",
1144
+ "last4",
1145
+ "mandate",
1146
+ "moto",
1147
+ "multicapture",
1148
+ "network",
1149
+ "network_token",
1150
+ "network_transaction_id",
1151
+ "overcapture",
1152
+ "overcapture_supported",
1153
+ "payment_account_reference",
1154
+ "regulated_status",
1155
+ "three_d_secure",
1156
+ "wallet"
1157
+ ],
1158
+ "type": "object"
1159
+ },
1160
+ "type": {
1161
+ "type": "string"
1162
+ }
1163
+ },
1164
+ "required": [
1165
+ "card",
1166
+ "type"
1167
+ ],
1168
+ "type": "object"
1169
+ },
1170
+ "refunded": {
1171
+ "type": "boolean"
1172
+ },
1173
+ "source": {
1174
+ "type": "string"
1175
+ },
1176
+ "status": {
1177
+ "type": "string"
1178
+ }
1179
+ },
1180
+ "required": [
1181
+ "amount",
1182
+ "application_fee",
1183
+ "balance_transaction",
1184
+ "captured",
1185
+ "created",
1186
+ "currency",
1187
+ "failure_code",
1188
+ "failure_message",
1189
+ "fraud_details",
1190
+ "id",
1191
+ "livemode",
1192
+ "metadata",
1193
+ "mit_params",
1194
+ "object",
1195
+ "outcome",
1196
+ "paid",
1197
+ "payment_intent",
1198
+ "payment_method",
1199
+ "payment_method_details",
1200
+ "refunded",
1201
+ "source",
1202
+ "status"
1203
+ ],
1204
+ "type": "object"
1205
+ },
1206
+ "created": {
1207
+ "type": "integer"
1208
+ },
1209
+ "currency": {
1210
+ "type": "string"
1211
+ },
1212
+ "id": {
1213
+ "type": "string"
1214
+ },
1215
+ "metadata": {
1216
+ "properties": {
1217
+ "order_transaction_id": {
1218
+ "type": "string"
1219
+ },
1220
+ "payments_refund_id": {
1221
+ "type": "string"
1222
+ },
1223
+ "shopify_payments_next": {
1224
+ "type": "string"
1225
+ }
1226
+ },
1227
+ "required": [
1228
+ "order_transaction_id",
1229
+ "payments_refund_id",
1230
+ "shopify_payments_next"
1231
+ ],
1232
+ "type": "object"
1233
+ },
1234
+ "mit_params": {
1235
+ "type": "object"
1236
+ },
1237
+ "object": {
1238
+ "type": "string"
1239
+ },
1240
+ "payment_method_details": {
1241
+ "properties": {
1242
+ "card": {
1243
+ "properties": {
1244
+ "acquirer_reference_number": {
1245
+ "type": "string"
1246
+ },
1247
+ "acquirer_reference_number_status": {
1248
+ "type": "string"
1249
+ }
1250
+ },
1251
+ "required": [
1252
+ "acquirer_reference_number",
1253
+ "acquirer_reference_number_status"
1254
+ ],
1255
+ "type": "object"
1256
+ },
1257
+ "type": {
1258
+ "type": "string"
1259
+ }
1260
+ },
1261
+ "required": [
1262
+ "card",
1263
+ "type"
1264
+ ],
1265
+ "type": "object"
1266
+ },
1267
+ "reason": {
1268
+ "type": "string"
1269
+ },
1270
+ "status": {
1271
+ "type": "string"
1272
+ }
1273
+ },
1274
+ "type": "object"
1275
+ },
1276
+ "source_name": {
1277
+ "type": "string"
1278
+ },
1279
+ "status": {
1280
+ "type": "string"
1281
+ },
1282
+ "test": {
1283
+ "type": "boolean"
1284
+ },
1285
+ "total_unsettled_set": {
1286
+ "properties": {
1287
+ "presentment_money": {
1288
+ "properties": {
1289
+ "amount": {
1290
+ "type": "string"
1291
+ },
1292
+ "currency": {
1293
+ "type": "string"
1294
+ }
1295
+ },
1296
+ "required": [
1297
+ "amount",
1298
+ "currency"
1299
+ ],
1300
+ "type": "object"
1301
+ },
1302
+ "shop_money": {
1303
+ "properties": {
1304
+ "amount": {
1305
+ "type": "string"
1306
+ },
1307
+ "currency": {
1308
+ "type": "string"
1309
+ }
1310
+ },
1311
+ "required": [
1312
+ "amount",
1313
+ "currency"
1314
+ ],
1315
+ "type": "object"
1316
+ }
1317
+ },
1318
+ "required": [
1319
+ "presentment_money",
1320
+ "shop_money"
1321
+ ],
1322
+ "type": "object"
1323
+ },
1324
+ "user_id": {
1325
+ "type": [
1326
+ "integer",
1327
+ "null"
1328
+ ]
1329
+ }
1330
+ },
1331
+ "required": [
1332
+ "admin_graphql_api_id",
1333
+ "amount",
1334
+ "amount_rounding",
1335
+ "authorization",
1336
+ "created_at",
1337
+ "currency",
1338
+ "device_id",
1339
+ "error_code",
1340
+ "gateway",
1341
+ "id",
1342
+ "kind",
1343
+ "location_id",
1344
+ "manual_payment_gateway",
1345
+ "message",
1346
+ "order_id",
1347
+ "parent_id",
1348
+ "payment_id",
1349
+ "processed_at",
1350
+ "receipt",
1351
+ "source_name",
1352
+ "status",
1353
+ "test",
1354
+ "total_unsettled_set",
1355
+ "user_id"
1356
+ ],
1357
+ "type": "object"
1358
+ },
1359
+ "type": "array"
1360
+ },
1361
+ "user_id": {
1362
+ "type": "integer"
1363
+ }
1364
+ },
1365
+ "required": [
1366
+ "admin_graphql_api_id",
1367
+ "created_at",
1368
+ "duties",
1369
+ "id",
1370
+ "note",
1371
+ "order_adjustments",
1372
+ "order_id",
1373
+ "processed_at",
1374
+ "refund_line_items",
1375
+ "refund_shipping_lines",
1376
+ "restock",
1377
+ "return",
1378
+ "total_duties_set",
1379
+ "transactions",
1380
+ "user_id"
1381
+ ],
1382
+ "type": "object"
1383
+ }