shopify-webhook-schemas 0.1.9 → 0.2.1

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.
Files changed (106) hide show
  1. package/dist/src/infer-schema.js +90 -0
  2. package/metadatas/2025-04/app_purchases_one_time/update.json +1 -1
  3. package/metadatas/2025-04/app_subscriptions/approaching_capped_amount.json +1 -1
  4. package/metadatas/2025-04/app_subscriptions/update.json +5 -2
  5. package/metadatas/2025-04/bulk_operations/finish.json +1 -1
  6. package/metadatas/2025-04/checkouts/create.json +6 -6
  7. package/metadatas/2025-04/checkouts/update.json +6 -6
  8. package/metadatas/2025-04/discounts/create.json +2 -2
  9. package/metadatas/2025-04/discounts/delete.json +1 -1
  10. package/metadatas/2025-04/discounts/redeemcode_added.json +1 -1
  11. package/metadatas/2025-04/discounts/redeemcode_removed.json +1 -1
  12. package/metadatas/2025-04/discounts/update.json +2 -2
  13. package/metadatas/2025-04/draft_orders/create.json +24 -24
  14. package/metadatas/2025-04/draft_orders/update.json +26 -26
  15. package/metadatas/2025-04/fulfillments/create.json +71 -24
  16. package/metadatas/2025-04/fulfillments/update.json +71 -24
  17. package/metadatas/2025-04/markets_backup_region/update.json +18 -0
  18. package/metadatas/2025-04/order_transactions/create.json +3 -3
  19. package/metadatas/2025-04/orders/cancelled.json +91 -41
  20. package/metadatas/2025-04/orders/create.json +91 -41
  21. package/metadatas/2025-04/orders/edited.json +1 -1
  22. package/metadatas/2025-04/orders/fulfilled.json +91 -41
  23. package/metadatas/2025-04/orders/paid.json +91 -41
  24. package/metadatas/2025-04/orders/partially_fulfilled.json +91 -41
  25. package/metadatas/2025-04/orders/updated.json +91 -41
  26. package/metadatas/2025-04/refunds/create.json +110 -34
  27. package/metadatas/2025-04/selling_plan_groups/create.json +2 -2
  28. package/metadatas/2025-04/selling_plan_groups/delete.json +2 -2
  29. package/metadatas/2025-04/selling_plan_groups/update.json +2 -2
  30. package/metadatas/2025-04/subscription_billing_attempts/challenged.json +2 -2
  31. package/metadatas/2025-04/subscription_billing_attempts/failure.json +2 -2
  32. package/metadatas/2025-04/subscription_billing_attempts/success.json +2 -2
  33. package/metadatas/2025-04/subscription_contracts/activate.json +4 -4
  34. package/metadatas/2025-04/subscription_contracts/cancel.json +4 -4
  35. package/metadatas/2025-04/subscription_contracts/create.json +4 -4
  36. package/metadatas/2025-04/subscription_contracts/expire.json +4 -4
  37. package/metadatas/2025-04/subscription_contracts/fail.json +4 -4
  38. package/metadatas/2025-04/subscription_contracts/pause.json +4 -4
  39. package/metadatas/2025-04/subscription_contracts/update.json +4 -4
  40. package/metadatas/2025-04/tender_transactions/create.json +1 -1
  41. package/package.json +1 -1
  42. package/schemas/2025-04/app_subscriptions/update.json +12 -0
  43. package/schemas/2025-04/carts/create.json +4 -1
  44. package/schemas/2025-04/carts/update.json +4 -1
  45. package/schemas/2025-04/checkouts/create.json +26 -16
  46. package/schemas/2025-04/checkouts/delete.json +3 -0
  47. package/schemas/2025-04/checkouts/update.json +26 -16
  48. package/schemas/2025-04/collections/create.json +20 -0
  49. package/schemas/2025-04/collections/update.json +20 -0
  50. package/schemas/2025-04/company_locations/create.json +37 -6
  51. package/schemas/2025-04/company_locations/delete.json +37 -6
  52. package/schemas/2025-04/company_locations/update.json +37 -6
  53. package/schemas/2025-04/customer_payment_methods/create.json +1 -1
  54. package/schemas/2025-04/customer_payment_methods/revoke.json +1 -1
  55. package/schemas/2025-04/customer_payment_methods/update.json +1 -1
  56. package/schemas/2025-04/customers/create.json +86 -4
  57. package/schemas/2025-04/customers/delete.json +78 -2
  58. package/schemas/2025-04/customers/disable.json +86 -4
  59. package/schemas/2025-04/customers/enable.json +86 -4
  60. package/schemas/2025-04/customers/update.json +86 -4
  61. package/schemas/2025-04/customers_email_marketing_consent/update.json +13 -3
  62. package/schemas/2025-04/customers_marketing_consent/update.json +13 -3
  63. package/schemas/2025-04/disputes/create.json +0 -1
  64. package/schemas/2025-04/disputes/update.json +0 -1
  65. package/schemas/2025-04/domains/create.json +4 -2
  66. package/schemas/2025-04/domains/destroy.json +4 -2
  67. package/schemas/2025-04/domains/update.json +4 -2
  68. package/schemas/2025-04/draft_orders/create.json +138 -4
  69. package/schemas/2025-04/draft_orders/update.json +138 -4
  70. package/schemas/2025-04/fulfillments/create.json +196 -66
  71. package/schemas/2025-04/fulfillments/update.json +196 -66
  72. package/schemas/2025-04/inventory_items/create.json +7 -3
  73. package/schemas/2025-04/inventory_items/update.json +7 -3
  74. package/schemas/2025-04/markets_backup_region/update.json +17 -0
  75. package/schemas/2025-04/order_transactions/create.json +15 -5
  76. package/schemas/2025-04/orders/cancelled.json +76 -4
  77. package/schemas/2025-04/orders/create.json +76 -4
  78. package/schemas/2025-04/orders/edited.json +8 -2
  79. package/schemas/2025-04/orders/fulfilled.json +76 -4
  80. package/schemas/2025-04/orders/paid.json +76 -4
  81. package/schemas/2025-04/orders/partially_fulfilled.json +76 -4
  82. package/schemas/2025-04/orders/risk_assessment_changed.json +9 -2
  83. package/schemas/2025-04/orders/shopify_protect_eligibility_changed.json +8 -1
  84. package/schemas/2025-04/orders/updated.json +76 -4
  85. package/schemas/2025-04/payment_terms/create.json +4 -1
  86. package/schemas/2025-04/payment_terms/update.json +4 -1
  87. package/schemas/2025-04/products/create.json +160 -64
  88. package/schemas/2025-04/products/update.json +160 -64
  89. package/schemas/2025-04/refunds/create.json +764 -17
  90. package/schemas/2025-04/selling_plan_groups/create.json +66 -10
  91. package/schemas/2025-04/selling_plan_groups/update.json +66 -10
  92. package/schemas/2025-04/shop/update.json +4 -3
  93. package/schemas/2025-04/subscription_billing_attempts/challenged.json +0 -1
  94. package/schemas/2025-04/subscription_billing_attempts/failure.json +0 -1
  95. package/schemas/2025-04/subscription_billing_attempts/success.json +0 -1
  96. package/schemas/2025-04/subscription_contracts/activate.json +8 -2
  97. package/schemas/2025-04/subscription_contracts/cancel.json +8 -2
  98. package/schemas/2025-04/subscription_contracts/create.json +8 -2
  99. package/schemas/2025-04/subscription_contracts/expire.json +8 -2
  100. package/schemas/2025-04/subscription_contracts/fail.json +8 -2
  101. package/schemas/2025-04/subscription_contracts/pause.json +8 -2
  102. package/schemas/2025-04/subscription_contracts/update.json +8 -2
  103. package/schemas/2025-04/tender_transactions/create.json +9 -16
  104. package/schemas/2025-04/themes/create.json +4 -1
  105. package/schemas/2025-04/themes/publish.json +4 -1
  106. package/schemas/2025-04/themes/update.json +4 -1
@@ -111,7 +111,10 @@
111
111
  "type": "string"
112
112
  },
113
113
  "fulfillment_status": {
114
- "type": "null"
114
+ "type": [
115
+ "null",
116
+ "string"
117
+ ]
115
118
  },
116
119
  "gift_card": {
117
120
  "type": "boolean"
@@ -125,6 +128,48 @@
125
128
  "name": {
126
129
  "type": "string"
127
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
+ },
128
173
  "price": {
129
174
  "type": "string"
130
175
  },
@@ -186,8 +231,73 @@
186
231
  "sku": {
187
232
  "type": "string"
188
233
  },
234
+ "tax_code": {
235
+ "type": "string"
236
+ },
189
237
  "tax_lines": {
190
- "items": false,
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
+ },
191
301
  "type": "array"
192
302
  },
193
303
  "taxable": {
@@ -239,16 +349,28 @@
239
349
  "type": "object"
240
350
  },
241
351
  "variant_id": {
242
- "type": "integer"
352
+ "type": [
353
+ "integer",
354
+ "null"
355
+ ]
243
356
  },
244
357
  "variant_inventory_management": {
245
- "type": "string"
358
+ "type": [
359
+ "null",
360
+ "string"
361
+ ]
246
362
  },
247
363
  "variant_title": {
248
- "type": "null"
364
+ "type": [
365
+ "null",
366
+ "string"
367
+ ]
249
368
  },
250
369
  "vendor": {
251
- "type": "null"
370
+ "type": [
371
+ "null",
372
+ "string"
373
+ ]
252
374
  }
253
375
  },
254
376
  "required": [
@@ -286,7 +408,10 @@
286
408
  "type": "integer"
287
409
  },
288
410
  "location_id": {
289
- "type": "null"
411
+ "type": [
412
+ "integer",
413
+ "null"
414
+ ]
290
415
  },
291
416
  "quantity": {
292
417
  "type": "integer"
@@ -295,7 +420,7 @@
295
420
  "type": "string"
296
421
  },
297
422
  "subtotal": {
298
- "type": "integer"
423
+ "type": "number"
299
424
  },
300
425
  "subtotal_set": {
301
426
  "properties": {
@@ -337,7 +462,7 @@
337
462
  "type": "object"
338
463
  },
339
464
  "total_tax": {
340
- "type": "integer"
465
+ "type": "number"
341
466
  },
342
467
  "total_tax_set": {
343
468
  "properties": {
@@ -458,20 +583,32 @@
458
583
  "type": "string"
459
584
  },
460
585
  "amount_rounding": {
461
- "type": "null"
586
+ "type": [
587
+ "null",
588
+ "string"
589
+ ]
462
590
  },
463
591
  "authorization": {
464
- "type": "null"
592
+ "type": [
593
+ "null",
594
+ "string"
595
+ ]
465
596
  },
466
597
  "created_at": {
467
598
  "format": "date-time",
468
599
  "type": "string"
469
600
  },
470
601
  "currency": {
471
- "type": "null"
602
+ "type": [
603
+ "null",
604
+ "string"
605
+ ]
472
606
  },
473
607
  "device_id": {
474
- "type": "null"
608
+ "type": [
609
+ "integer",
610
+ "null"
611
+ ]
475
612
  },
476
613
  "error_code": {
477
614
  "type": "null"
@@ -486,7 +623,10 @@
486
623
  "type": "string"
487
624
  },
488
625
  "location_id": {
489
- "type": "null"
626
+ "type": [
627
+ "integer",
628
+ "null"
629
+ ]
490
630
  },
491
631
  "manual_payment_gateway": {
492
632
  "type": "boolean"
@@ -501,15 +641,619 @@
501
641
  "type": "integer"
502
642
  },
503
643
  "parent_id": {
504
- "type": "null"
644
+ "type": [
645
+ "integer",
646
+ "null"
647
+ ]
648
+ },
649
+ "payment_details": {
650
+ "properties": {
651
+ "avs_result_code": {
652
+ "type": "string"
653
+ },
654
+ "buyer_action_info": {
655
+ "type": "null"
656
+ },
657
+ "credit_card_bin": {
658
+ "format": "date-time",
659
+ "type": "string"
660
+ },
661
+ "credit_card_company": {
662
+ "type": "string"
663
+ },
664
+ "credit_card_expiration_month": {
665
+ "type": "integer"
666
+ },
667
+ "credit_card_expiration_year": {
668
+ "type": "integer"
669
+ },
670
+ "credit_card_name": {
671
+ "type": "string"
672
+ },
673
+ "credit_card_number": {
674
+ "type": "string"
675
+ },
676
+ "credit_card_wallet": {
677
+ "type": "string"
678
+ },
679
+ "cvv_result_code": {
680
+ "type": "string"
681
+ },
682
+ "payment_method_name": {
683
+ "type": "string"
684
+ }
685
+ },
686
+ "required": [
687
+ "avs_result_code",
688
+ "buyer_action_info",
689
+ "credit_card_bin",
690
+ "credit_card_company",
691
+ "credit_card_expiration_month",
692
+ "credit_card_expiration_year",
693
+ "credit_card_name",
694
+ "credit_card_number",
695
+ "credit_card_wallet",
696
+ "cvv_result_code",
697
+ "payment_method_name"
698
+ ],
699
+ "type": "object"
505
700
  },
506
701
  "payment_id": {
507
702
  "type": "string"
508
703
  },
704
+ "payments_refund_attributes": {
705
+ "properties": {
706
+ "acquirer_reference_number": {
707
+ "type": "string"
708
+ },
709
+ "status": {
710
+ "type": "string"
711
+ }
712
+ },
713
+ "required": [
714
+ "acquirer_reference_number",
715
+ "status"
716
+ ],
717
+ "type": "object"
718
+ },
509
719
  "processed_at": {
510
- "type": "null"
720
+ "format": "date-time",
721
+ "type": [
722
+ "null",
723
+ "string"
724
+ ]
511
725
  },
512
726
  "receipt": {
727
+ "properties": {
728
+ "amount": {
729
+ "type": "integer"
730
+ },
731
+ "balance_transaction": {
732
+ "properties": {
733
+ "exchange_rate": {
734
+ "type": "null"
735
+ },
736
+ "id": {
737
+ "type": "string"
738
+ },
739
+ "object": {
740
+ "type": "string"
741
+ }
742
+ },
743
+ "required": [
744
+ "exchange_rate",
745
+ "id",
746
+ "object"
747
+ ],
748
+ "type": "object"
749
+ },
750
+ "charge": {
751
+ "properties": {
752
+ "amount": {
753
+ "type": "integer"
754
+ },
755
+ "application_fee": {
756
+ "type": "string"
757
+ },
758
+ "balance_transaction": {
759
+ "type": "string"
760
+ },
761
+ "captured": {
762
+ "type": "boolean"
763
+ },
764
+ "created": {
765
+ "type": "integer"
766
+ },
767
+ "currency": {
768
+ "type": "string"
769
+ },
770
+ "failure_code": {
771
+ "type": "null"
772
+ },
773
+ "failure_message": {
774
+ "type": "string"
775
+ },
776
+ "fraud_details": {
777
+ "type": "object"
778
+ },
779
+ "id": {
780
+ "type": "string"
781
+ },
782
+ "livemode": {
783
+ "type": "boolean"
784
+ },
785
+ "metadata": {
786
+ "properties": {
787
+ "email": {
788
+ "type": "string"
789
+ },
790
+ "manual_entry": {
791
+ "type": "string"
792
+ },
793
+ "order_id": {
794
+ "type": "string"
795
+ },
796
+ "order_transaction_id": {
797
+ "type": "string"
798
+ },
799
+ "payments_charge_id": {
800
+ "type": "string"
801
+ },
802
+ "shop_id": {
803
+ "type": "string"
804
+ },
805
+ "shop_name": {
806
+ "type": "string"
807
+ },
808
+ "shopify_payments_next": {
809
+ "type": "string"
810
+ }
811
+ },
812
+ "required": [
813
+ "email",
814
+ "manual_entry",
815
+ "order_id",
816
+ "order_transaction_id",
817
+ "payments_charge_id",
818
+ "shop_id",
819
+ "shop_name",
820
+ "shopify_payments_next"
821
+ ],
822
+ "type": "object"
823
+ },
824
+ "mit_params": {
825
+ "properties": {
826
+ "network_transaction_id": {
827
+ "type": "string"
828
+ }
829
+ },
830
+ "required": [
831
+ "network_transaction_id"
832
+ ],
833
+ "type": "object"
834
+ },
835
+ "object": {
836
+ "type": "string"
837
+ },
838
+ "outcome": {
839
+ "properties": {
840
+ "advice_code": {
841
+ "type": "null"
842
+ },
843
+ "network_advice_code": {
844
+ "type": "null"
845
+ },
846
+ "network_decline_code": {
847
+ "type": "null"
848
+ },
849
+ "network_status": {
850
+ "type": "string"
851
+ },
852
+ "reason": {
853
+ "type": "string"
854
+ },
855
+ "risk_level": {
856
+ "type": "string"
857
+ },
858
+ "seller_message": {
859
+ "type": "string"
860
+ },
861
+ "type": {
862
+ "type": "string"
863
+ }
864
+ },
865
+ "required": [
866
+ "advice_code",
867
+ "network_advice_code",
868
+ "network_decline_code",
869
+ "network_status",
870
+ "reason",
871
+ "risk_level",
872
+ "seller_message",
873
+ "type"
874
+ ],
875
+ "type": "object"
876
+ },
877
+ "paid": {
878
+ "type": "boolean"
879
+ },
880
+ "payment_intent": {
881
+ "type": "string"
882
+ },
883
+ "payment_method": {
884
+ "type": "string"
885
+ },
886
+ "payment_method_details": {
887
+ "properties": {
888
+ "card": {
889
+ "properties": {
890
+ "amount_authorized": {
891
+ "type": "integer"
892
+ },
893
+ "authorization_code": {
894
+ "format": "date-time",
895
+ "type": "string"
896
+ },
897
+ "brand": {
898
+ "type": "string"
899
+ },
900
+ "capture_before": {
901
+ "type": "integer"
902
+ },
903
+ "checks": {
904
+ "properties": {
905
+ "address_line1_check": {
906
+ "type": "string"
907
+ },
908
+ "address_postal_code_check": {
909
+ "type": "string"
910
+ },
911
+ "cvc_check": {
912
+ "type": "string"
913
+ }
914
+ },
915
+ "required": [
916
+ "address_line1_check",
917
+ "address_postal_code_check",
918
+ "cvc_check"
919
+ ],
920
+ "type": "object"
921
+ },
922
+ "country": {
923
+ "type": "string"
924
+ },
925
+ "description": {
926
+ "type": "string"
927
+ },
928
+ "ds_transaction_id": {
929
+ "type": "null"
930
+ },
931
+ "exp_month": {
932
+ "type": "integer"
933
+ },
934
+ "exp_year": {
935
+ "type": "integer"
936
+ },
937
+ "extended_authorization": {
938
+ "properties": {
939
+ "status": {
940
+ "type": "string"
941
+ }
942
+ },
943
+ "required": [
944
+ "status"
945
+ ],
946
+ "type": "object"
947
+ },
948
+ "fingerprint": {
949
+ "type": "string"
950
+ },
951
+ "funding": {
952
+ "type": "string"
953
+ },
954
+ "iin": {
955
+ "format": "date-time",
956
+ "type": "string"
957
+ },
958
+ "incremental_authorization": {
959
+ "properties": {
960
+ "status": {
961
+ "type": "string"
962
+ }
963
+ },
964
+ "required": [
965
+ "status"
966
+ ],
967
+ "type": "object"
968
+ },
969
+ "installments": {
970
+ "type": "null"
971
+ },
972
+ "issuer": {
973
+ "type": "string"
974
+ },
975
+ "last4": {
976
+ "format": "date-time",
977
+ "type": "string"
978
+ },
979
+ "mandate": {
980
+ "type": "null"
981
+ },
982
+ "moto": {
983
+ "type": "boolean"
984
+ },
985
+ "multicapture": {
986
+ "properties": {
987
+ "status": {
988
+ "type": "string"
989
+ }
990
+ },
991
+ "required": [
992
+ "status"
993
+ ],
994
+ "type": "object"
995
+ },
996
+ "network": {
997
+ "type": "string"
998
+ },
999
+ "network_token": {
1000
+ "properties": {
1001
+ "used": {
1002
+ "type": "boolean"
1003
+ }
1004
+ },
1005
+ "required": [
1006
+ "used"
1007
+ ],
1008
+ "type": "object"
1009
+ },
1010
+ "network_transaction_id": {
1011
+ "type": "string"
1012
+ },
1013
+ "overcapture": {
1014
+ "properties": {
1015
+ "maximum_amount_capturable": {
1016
+ "type": "integer"
1017
+ },
1018
+ "status": {
1019
+ "type": "string"
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "maximum_amount_capturable",
1024
+ "status"
1025
+ ],
1026
+ "type": "object"
1027
+ },
1028
+ "overcapture_supported": {
1029
+ "type": "boolean"
1030
+ },
1031
+ "payment_account_reference": {
1032
+ "type": "string"
1033
+ },
1034
+ "regulated_status": {
1035
+ "type": "string"
1036
+ },
1037
+ "three_d_secure": {
1038
+ "properties": {
1039
+ "authenticated": {
1040
+ "type": "boolean"
1041
+ },
1042
+ "authentication_flow": {
1043
+ "type": "string"
1044
+ },
1045
+ "electronic_commerce_indicator": {
1046
+ "type": "string"
1047
+ },
1048
+ "exemption_indicator": {
1049
+ "type": "string"
1050
+ },
1051
+ "result": {
1052
+ "type": "string"
1053
+ },
1054
+ "result_reason": {
1055
+ "type": "string"
1056
+ },
1057
+ "succeeded": {
1058
+ "type": "boolean"
1059
+ },
1060
+ "transaction_id": {
1061
+ "type": "string"
1062
+ },
1063
+ "version": {
1064
+ "type": "string"
1065
+ }
1066
+ },
1067
+ "required": [
1068
+ "authenticated",
1069
+ "authentication_flow",
1070
+ "electronic_commerce_indicator",
1071
+ "exemption_indicator",
1072
+ "result",
1073
+ "result_reason",
1074
+ "succeeded",
1075
+ "transaction_id",
1076
+ "version"
1077
+ ],
1078
+ "type": "object"
1079
+ },
1080
+ "wallet": {
1081
+ "properties": {
1082
+ "apple_pay": {
1083
+ "properties": {
1084
+ "type": {
1085
+ "type": "string"
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "type"
1090
+ ],
1091
+ "type": "object"
1092
+ },
1093
+ "dynamic_last4": {
1094
+ "format": "date-time",
1095
+ "type": "string"
1096
+ },
1097
+ "type": {
1098
+ "type": "string"
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "apple_pay",
1103
+ "dynamic_last4",
1104
+ "type"
1105
+ ],
1106
+ "type": "object"
1107
+ }
1108
+ },
1109
+ "required": [
1110
+ "amount_authorized",
1111
+ "authorization_code",
1112
+ "brand",
1113
+ "capture_before",
1114
+ "checks",
1115
+ "country",
1116
+ "description",
1117
+ "ds_transaction_id",
1118
+ "exp_month",
1119
+ "exp_year",
1120
+ "extended_authorization",
1121
+ "fingerprint",
1122
+ "funding",
1123
+ "iin",
1124
+ "incremental_authorization",
1125
+ "installments",
1126
+ "issuer",
1127
+ "last4",
1128
+ "mandate",
1129
+ "moto",
1130
+ "multicapture",
1131
+ "network",
1132
+ "network_token",
1133
+ "network_transaction_id",
1134
+ "overcapture",
1135
+ "overcapture_supported",
1136
+ "payment_account_reference",
1137
+ "regulated_status",
1138
+ "three_d_secure",
1139
+ "wallet"
1140
+ ],
1141
+ "type": "object"
1142
+ },
1143
+ "type": {
1144
+ "type": "string"
1145
+ }
1146
+ },
1147
+ "required": [
1148
+ "card",
1149
+ "type"
1150
+ ],
1151
+ "type": "object"
1152
+ },
1153
+ "refunded": {
1154
+ "type": "boolean"
1155
+ },
1156
+ "source": {
1157
+ "type": "string"
1158
+ },
1159
+ "status": {
1160
+ "type": "string"
1161
+ }
1162
+ },
1163
+ "required": [
1164
+ "amount",
1165
+ "application_fee",
1166
+ "balance_transaction",
1167
+ "captured",
1168
+ "created",
1169
+ "currency",
1170
+ "failure_code",
1171
+ "failure_message",
1172
+ "fraud_details",
1173
+ "id",
1174
+ "livemode",
1175
+ "metadata",
1176
+ "mit_params",
1177
+ "object",
1178
+ "outcome",
1179
+ "paid",
1180
+ "payment_intent",
1181
+ "payment_method",
1182
+ "payment_method_details",
1183
+ "refunded",
1184
+ "source",
1185
+ "status"
1186
+ ],
1187
+ "type": "object"
1188
+ },
1189
+ "created": {
1190
+ "type": "integer"
1191
+ },
1192
+ "currency": {
1193
+ "type": "string"
1194
+ },
1195
+ "id": {
1196
+ "type": "string"
1197
+ },
1198
+ "metadata": {
1199
+ "properties": {
1200
+ "order_transaction_id": {
1201
+ "type": "string"
1202
+ },
1203
+ "payments_refund_id": {
1204
+ "type": "string"
1205
+ },
1206
+ "shopify_payments_next": {
1207
+ "type": "string"
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "order_transaction_id",
1212
+ "payments_refund_id",
1213
+ "shopify_payments_next"
1214
+ ],
1215
+ "type": "object"
1216
+ },
1217
+ "mit_params": {
1218
+ "type": "object"
1219
+ },
1220
+ "object": {
1221
+ "type": "string"
1222
+ },
1223
+ "payment_method_details": {
1224
+ "properties": {
1225
+ "card": {
1226
+ "properties": {
1227
+ "acquirer_reference_number": {
1228
+ "type": "string"
1229
+ },
1230
+ "acquirer_reference_number_status": {
1231
+ "type": "string"
1232
+ }
1233
+ },
1234
+ "required": [
1235
+ "acquirer_reference_number",
1236
+ "acquirer_reference_number_status"
1237
+ ],
1238
+ "type": "object"
1239
+ },
1240
+ "type": {
1241
+ "type": "string"
1242
+ }
1243
+ },
1244
+ "required": [
1245
+ "card",
1246
+ "type"
1247
+ ],
1248
+ "type": "object"
1249
+ },
1250
+ "reason": {
1251
+ "type": "string"
1252
+ },
1253
+ "status": {
1254
+ "type": "string"
1255
+ }
1256
+ },
513
1257
  "type": "object"
514
1258
  },
515
1259
  "source_name": {
@@ -561,7 +1305,10 @@
561
1305
  "type": "object"
562
1306
  },
563
1307
  "user_id": {
564
- "type": "null"
1308
+ "type": [
1309
+ "integer",
1310
+ "null"
1311
+ ]
565
1312
  }
566
1313
  },
567
1314
  "required": [