shopify-webhook-schemas 0.1.3 → 0.1.4

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 (155) hide show
  1. package/Readme.md +14 -2
  2. package/dist/src/anonymize-exemplars.d.ts +1 -0
  3. package/dist/src/anonymize-exemplars.js +51 -0
  4. package/dist/src/index.js +2 -2
  5. package/dist/src/scrape.js +501 -182
  6. package/metadatas/2024-07/app_purchases_one_time/update.json +1 -1
  7. package/metadatas/2024-07/app_subscriptions/approaching_capped_amount.json +1 -1
  8. package/metadatas/2024-07/app_subscriptions/update.json +1 -1
  9. package/metadatas/2024-07/bulk_operations/finish.json +2 -2
  10. package/metadatas/2024-07/checkouts/create.json +6 -6
  11. package/metadatas/2024-07/checkouts/update.json +6 -6
  12. package/metadatas/2024-07/draft_orders/create.json +20 -20
  13. package/metadatas/2024-07/draft_orders/update.json +20 -20
  14. package/metadatas/2024-07/orders/edited.json +1 -0
  15. package/metadatas/2024-07/product_listings/add.json +1 -13
  16. package/metadatas/2024-07/product_listings/update.json +1 -13
  17. package/metadatas/2024-07/scheduled_product_listings/add.json +1 -13
  18. package/metadatas/2024-07/scheduled_product_listings/update.json +1 -13
  19. package/metadatas/2024-07/selling_plan_groups/create.json +2 -2
  20. package/metadatas/2024-07/selling_plan_groups/delete.json +2 -2
  21. package/metadatas/2024-07/selling_plan_groups/update.json +2 -2
  22. package/metadatas/2024-07/subscription_billing_attempts/challenged.json +2 -2
  23. package/metadatas/2024-07/subscription_billing_attempts/failure.json +2 -2
  24. package/metadatas/2024-07/subscription_billing_attempts/success.json +2 -2
  25. package/metadatas/2024-07/subscription_billing_cycle_edits/create.json +1 -1
  26. package/metadatas/2024-07/subscription_billing_cycle_edits/delete.json +1 -1
  27. package/metadatas/2024-07/subscription_billing_cycle_edits/update.json +1 -1
  28. package/metadatas/2024-07/subscription_billing_cycles/skip.json +1 -1
  29. package/metadatas/2024-07/subscription_billing_cycles/unskip.json +1 -1
  30. package/metadatas/2024-07/subscription_contracts/activate.json +3 -3
  31. package/metadatas/2024-07/subscription_contracts/cancel.json +3 -3
  32. package/metadatas/2024-07/subscription_contracts/create.json +3 -3
  33. package/metadatas/2024-07/subscription_contracts/expire.json +3 -3
  34. package/metadatas/2024-07/subscription_contracts/fail.json +3 -3
  35. package/metadatas/2024-07/subscription_contracts/pause.json +3 -3
  36. package/metadatas/2024-07/subscription_contracts/update.json +3 -3
  37. package/package.json +9 -1
  38. package/schemas/2023-07/checkouts/create.json +578 -102
  39. package/schemas/2023-07/checkouts/delete.json +26 -4
  40. package/schemas/2023-07/checkouts/update.json +578 -102
  41. package/schemas/2023-07/collection_listings/add.json +9 -2
  42. package/schemas/2023-07/collection_listings/remove.json +7 -0
  43. package/schemas/2023-07/collection_listings/update.json +9 -2
  44. package/schemas/2023-07/company_locations/create.json +8 -2
  45. package/schemas/2023-07/company_locations/delete.json +8 -2
  46. package/schemas/2023-07/company_locations/update.json +8 -2
  47. package/schemas/2023-07/draft_orders/create.json +729 -126
  48. package/schemas/2023-07/draft_orders/update.json +729 -126
  49. package/schemas/2023-07/fulfillments/create.json +149 -30
  50. package/schemas/2023-07/fulfillments/update.json +149 -30
  51. package/schemas/2023-07/order_transactions/create.json +31 -9
  52. package/schemas/2023-07/orders/cancelled.json +966 -48
  53. package/schemas/2023-07/orders/create.json +966 -48
  54. package/schemas/2023-07/orders/fulfilled.json +966 -48
  55. package/schemas/2023-07/orders/paid.json +966 -48
  56. package/schemas/2023-07/orders/partially_fulfilled.json +966 -48
  57. package/schemas/2023-07/orders/updated.json +966 -48
  58. package/schemas/2023-07/products/create.json +191 -17
  59. package/schemas/2023-07/products/update.json +191 -17
  60. package/schemas/2023-10/checkouts/create.json +578 -102
  61. package/schemas/2023-10/checkouts/delete.json +26 -4
  62. package/schemas/2023-10/checkouts/update.json +578 -102
  63. package/schemas/2023-10/collection_listings/add.json +9 -2
  64. package/schemas/2023-10/collection_listings/remove.json +7 -0
  65. package/schemas/2023-10/collection_listings/update.json +9 -2
  66. package/schemas/2023-10/company_locations/create.json +8 -2
  67. package/schemas/2023-10/company_locations/delete.json +8 -2
  68. package/schemas/2023-10/company_locations/update.json +8 -2
  69. package/schemas/2023-10/draft_orders/create.json +729 -126
  70. package/schemas/2023-10/draft_orders/update.json +729 -126
  71. package/schemas/2023-10/fulfillments/create.json +149 -30
  72. package/schemas/2023-10/fulfillments/update.json +149 -30
  73. package/schemas/2023-10/order_transactions/create.json +28 -9
  74. package/schemas/2023-10/orders/cancelled.json +966 -48
  75. package/schemas/2023-10/orders/create.json +966 -48
  76. package/schemas/2023-10/orders/fulfilled.json +966 -48
  77. package/schemas/2023-10/orders/paid.json +966 -48
  78. package/schemas/2023-10/orders/partially_fulfilled.json +966 -48
  79. package/schemas/2023-10/orders/updated.json +966 -48
  80. package/schemas/2023-10/products/create.json +191 -17
  81. package/schemas/2023-10/products/update.json +191 -17
  82. package/schemas/2024-01/checkouts/create.json +585 -100
  83. package/schemas/2024-01/checkouts/delete.json +26 -4
  84. package/schemas/2024-01/checkouts/update.json +585 -100
  85. package/schemas/2024-01/collection_listings/add.json +9 -2
  86. package/schemas/2024-01/collection_listings/remove.json +7 -0
  87. package/schemas/2024-01/collection_listings/update.json +9 -2
  88. package/schemas/2024-01/company_locations/create.json +8 -2
  89. package/schemas/2024-01/company_locations/delete.json +8 -2
  90. package/schemas/2024-01/company_locations/update.json +8 -2
  91. package/schemas/2024-01/draft_orders/create.json +733 -124
  92. package/schemas/2024-01/draft_orders/update.json +733 -124
  93. package/schemas/2024-01/fulfillment_orders/split.json +237 -2
  94. package/schemas/2024-01/fulfillments/create.json +149 -30
  95. package/schemas/2024-01/fulfillments/update.json +149 -30
  96. package/schemas/2024-01/order_transactions/create.json +28 -9
  97. package/schemas/2024-01/orders/cancelled.json +970 -50
  98. package/schemas/2024-01/orders/create.json +970 -50
  99. package/schemas/2024-01/orders/fulfilled.json +970 -50
  100. package/schemas/2024-01/orders/paid.json +970 -50
  101. package/schemas/2024-01/orders/partially_fulfilled.json +970 -50
  102. package/schemas/2024-01/orders/updated.json +970 -50
  103. package/schemas/2024-01/products/create.json +191 -17
  104. package/schemas/2024-01/products/update.json +191 -17
  105. package/schemas/2024-04/checkouts/create.json +585 -100
  106. package/schemas/2024-04/checkouts/delete.json +26 -4
  107. package/schemas/2024-04/checkouts/update.json +585 -100
  108. package/schemas/2024-04/collection_listings/add.json +9 -2
  109. package/schemas/2024-04/collection_listings/remove.json +7 -0
  110. package/schemas/2024-04/collection_listings/update.json +9 -2
  111. package/schemas/2024-04/company_locations/create.json +8 -2
  112. package/schemas/2024-04/company_locations/delete.json +8 -2
  113. package/schemas/2024-04/company_locations/update.json +8 -2
  114. package/schemas/2024-04/draft_orders/create.json +733 -124
  115. package/schemas/2024-04/draft_orders/update.json +733 -124
  116. package/schemas/2024-04/fulfillment_orders/split.json +237 -2
  117. package/schemas/2024-04/fulfillments/create.json +149 -30
  118. package/schemas/2024-04/fulfillments/update.json +149 -30
  119. package/schemas/2024-04/order_transactions/create.json +28 -9
  120. package/schemas/2024-04/orders/cancelled.json +967 -50
  121. package/schemas/2024-04/orders/create.json +967 -50
  122. package/schemas/2024-04/orders/fulfilled.json +967 -50
  123. package/schemas/2024-04/orders/paid.json +967 -50
  124. package/schemas/2024-04/orders/partially_fulfilled.json +967 -50
  125. package/schemas/2024-04/orders/updated.json +967 -50
  126. package/schemas/2024-04/products/create.json +191 -17
  127. package/schemas/2024-04/products/update.json +191 -17
  128. package/schemas/2024-07/checkouts/create.json +585 -100
  129. package/schemas/2024-07/checkouts/delete.json +26 -4
  130. package/schemas/2024-07/checkouts/update.json +585 -100
  131. package/schemas/2024-07/collection_listings/add.json +9 -2
  132. package/schemas/2024-07/collection_listings/remove.json +7 -0
  133. package/schemas/2024-07/collection_listings/update.json +9 -2
  134. package/schemas/2024-07/company_locations/create.json +8 -2
  135. package/schemas/2024-07/company_locations/delete.json +8 -2
  136. package/schemas/2024-07/company_locations/update.json +8 -2
  137. package/schemas/2024-07/draft_orders/create.json +733 -124
  138. package/schemas/2024-07/draft_orders/update.json +733 -124
  139. package/schemas/2024-07/fulfillment_orders/split.json +237 -2
  140. package/schemas/2024-07/fulfillments/create.json +149 -30
  141. package/schemas/2024-07/fulfillments/update.json +149 -30
  142. package/schemas/2024-07/order_transactions/create.json +28 -9
  143. package/schemas/2024-07/orders/cancelled.json +967 -50
  144. package/schemas/2024-07/orders/create.json +967 -50
  145. package/schemas/2024-07/orders/edited.json +5 -0
  146. package/schemas/2024-07/orders/fulfilled.json +967 -50
  147. package/schemas/2024-07/orders/paid.json +967 -50
  148. package/schemas/2024-07/orders/partially_fulfilled.json +967 -50
  149. package/schemas/2024-07/orders/updated.json +967 -50
  150. package/schemas/2024-07/product_listings/add.json +1 -44
  151. package/schemas/2024-07/product_listings/update.json +1 -44
  152. package/schemas/2024-07/products/create.json +191 -17
  153. package/schemas/2024-07/products/update.json +191 -17
  154. package/schemas/2024-07/scheduled_product_listings/add.json +1 -44
  155. package/schemas/2024-07/scheduled_product_listings/update.json +1 -44
@@ -26,10 +26,16 @@
26
26
  "type": "boolean"
27
27
  },
28
28
  "cancel_reason": {
29
- "type": "string"
29
+ "type": [
30
+ "string",
31
+ "null"
32
+ ]
30
33
  },
31
34
  "cancelled_at": {
32
- "type": "string",
35
+ "type": [
36
+ "string",
37
+ "null"
38
+ ],
33
39
  "format": "date-time"
34
40
  },
35
41
  "cart_token": {
@@ -57,10 +63,32 @@
57
63
  ],
58
64
  "properties": {
59
65
  "accept_language": {
60
- "type": "string"
66
+ "type": [
67
+ "string",
68
+ "null"
69
+ ]
61
70
  },
62
71
  "browser_height": {
63
- "type": "integer"
72
+ "type": [
73
+ "integer",
74
+ "null"
75
+ ]
76
+ },
77
+ "browser_ip": {
78
+ "type": "string",
79
+ "format": "ipv4"
80
+ },
81
+ "browser_width": {
82
+ "type": [
83
+ "integer",
84
+ "null"
85
+ ]
86
+ },
87
+ "session_hash": {
88
+ "type": "null"
89
+ },
90
+ "user_agent": {
91
+ "type": "string"
64
92
  }
65
93
  },
66
94
  "required": [
@@ -348,7 +376,10 @@
348
376
  ]
349
377
  },
350
378
  "customer_locale": {
351
- "type": "string"
379
+ "type": [
380
+ "string",
381
+ "null"
382
+ ]
352
383
  },
353
384
  "device_id": {
354
385
  "type": [
@@ -358,7 +389,25 @@
358
389
  },
359
390
  "discount_codes": {
360
391
  "type": "array",
361
- "items": false
392
+ "items": {
393
+ "type": "object",
394
+ "properties": {
395
+ "amount": {
396
+ "type": "string"
397
+ },
398
+ "code": {
399
+ "type": "string"
400
+ },
401
+ "type": {
402
+ "type": "string"
403
+ }
404
+ },
405
+ "required": [
406
+ "amount",
407
+ "code",
408
+ "type"
409
+ ]
410
+ }
362
411
  },
363
412
  "email": {
364
413
  "type": "string",
@@ -371,14 +420,16 @@
371
420
  "type": "string"
372
421
  },
373
422
  "fulfillment_status": {
374
- "type": "string"
423
+ "type": [
424
+ "string",
425
+ "null"
426
+ ]
375
427
  },
376
428
  "landing_site": {
377
429
  "type": [
378
430
  "string",
379
431
  "null"
380
- ],
381
- "format": "uri"
432
+ ]
382
433
  },
383
434
  "landing_site_ref": {
384
435
  "type": [
@@ -410,7 +461,21 @@
410
461
  },
411
462
  "note_attributes": {
412
463
  "type": "array",
413
- "items": false
464
+ "items": {
465
+ "type": "object",
466
+ "properties": {
467
+ "name": {
468
+ "type": "string"
469
+ },
470
+ "value": {
471
+ "type": "string"
472
+ }
473
+ },
474
+ "required": [
475
+ "name",
476
+ "value"
477
+ ]
478
+ }
414
479
  },
415
480
  "number": {
416
481
  "type": "integer"
@@ -544,8 +609,7 @@
544
609
  "type": [
545
610
  "string",
546
611
  "null"
547
- ],
548
- "format": "uri"
612
+ ]
549
613
  },
550
614
  "source_identifier": {
551
615
  "type": [
@@ -613,7 +677,69 @@
613
677
  },
614
678
  "tax_lines": {
615
679
  "type": "array",
616
- "items": false
680
+ "items": {
681
+ "type": "object",
682
+ "properties": {
683
+ "price_set": {
684
+ "type": "object",
685
+ "properties": {
686
+ "presentment_money": {
687
+ "type": "object",
688
+ "properties": {
689
+ "currency_code": {
690
+ "type": "string"
691
+ },
692
+ "amount": {
693
+ "type": "string"
694
+ }
695
+ },
696
+ "required": [
697
+ "currency_code",
698
+ "amount"
699
+ ]
700
+ },
701
+ "shop_money": {
702
+ "type": "object",
703
+ "properties": {
704
+ "amount": {
705
+ "type": "string"
706
+ },
707
+ "currency_code": {
708
+ "type": "string"
709
+ }
710
+ },
711
+ "required": [
712
+ "amount",
713
+ "currency_code"
714
+ ]
715
+ }
716
+ },
717
+ "required": [
718
+ "presentment_money",
719
+ "shop_money"
720
+ ]
721
+ },
722
+ "rate": {
723
+ "type": "number"
724
+ },
725
+ "title": {
726
+ "type": "string"
727
+ },
728
+ "channel_liable": {
729
+ "type": "boolean"
730
+ },
731
+ "price": {
732
+ "type": "string"
733
+ }
734
+ },
735
+ "required": [
736
+ "price_set",
737
+ "rate",
738
+ "title",
739
+ "channel_liable",
740
+ "price"
741
+ ]
742
+ }
617
743
  },
618
744
  "taxes_included": {
619
745
  "type": "boolean"
@@ -878,16 +1004,28 @@
878
1004
  "type": "string"
879
1005
  },
880
1006
  "address2": {
881
- "type": "null"
1007
+ "type": [
1008
+ "string",
1009
+ "null"
1010
+ ]
882
1011
  },
883
1012
  "company": {
884
- "type": "string"
1013
+ "type": [
1014
+ "string",
1015
+ "null"
1016
+ ]
885
1017
  },
886
1018
  "latitude": {
887
- "type": "null"
1019
+ "type": [
1020
+ "number",
1021
+ "null"
1022
+ ]
888
1023
  },
889
1024
  "longitude": {
890
- "type": "null"
1025
+ "type": [
1026
+ "number",
1027
+ "null"
1028
+ ]
891
1029
  },
892
1030
  "name": {
893
1031
  "type": "string"
@@ -928,10 +1066,18 @@
928
1066
  "format": "email"
929
1067
  },
930
1068
  "created_at": {
931
- "type": "null"
1069
+ "type": [
1070
+ "string",
1071
+ "null"
1072
+ ],
1073
+ "format": "date-time"
932
1074
  },
933
1075
  "updated_at": {
934
- "type": "null"
1076
+ "type": [
1077
+ "string",
1078
+ "null"
1079
+ ],
1080
+ "format": "date-time"
935
1081
  },
936
1082
  "first_name": {
937
1083
  "type": "string"
@@ -943,19 +1089,28 @@
943
1089
  "type": "string"
944
1090
  },
945
1091
  "note": {
946
- "type": "null"
1092
+ "type": [
1093
+ "string",
1094
+ "null"
1095
+ ]
947
1096
  },
948
1097
  "verified_email": {
949
1098
  "type": "boolean"
950
1099
  },
951
1100
  "multipass_identifier": {
952
- "type": "null"
1101
+ "type": [
1102
+ "string",
1103
+ "null"
1104
+ ]
953
1105
  },
954
1106
  "tax_exempt": {
955
1107
  "type": "boolean"
956
1108
  },
957
1109
  "phone": {
958
- "type": "null"
1110
+ "type": [
1111
+ "string",
1112
+ "null"
1113
+ ]
959
1114
  },
960
1115
  "email_marketing_consent": {
961
1116
  "type": "object",
@@ -964,10 +1119,17 @@
964
1119
  "type": "string"
965
1120
  },
966
1121
  "opt_in_level": {
967
- "type": "null"
1122
+ "type": [
1123
+ "string",
1124
+ "null"
1125
+ ]
968
1126
  },
969
1127
  "consent_updated_at": {
970
- "type": "null"
1128
+ "type": [
1129
+ "string",
1130
+ "null"
1131
+ ],
1132
+ "format": "date-time"
971
1133
  }
972
1134
  },
973
1135
  "required": [
@@ -977,7 +1139,34 @@
977
1139
  ]
978
1140
  },
979
1141
  "sms_marketing_consent": {
980
- "type": "null"
1142
+ "type": [
1143
+ "object",
1144
+ "null"
1145
+ ],
1146
+ "properties": {
1147
+ "consent_collected_from": {
1148
+ "type": "string"
1149
+ },
1150
+ "consent_updated_at": {
1151
+ "type": [
1152
+ "string",
1153
+ "null"
1154
+ ],
1155
+ "format": "date-time"
1156
+ },
1157
+ "opt_in_level": {
1158
+ "type": "string"
1159
+ },
1160
+ "state": {
1161
+ "type": "string"
1162
+ }
1163
+ },
1164
+ "required": [
1165
+ "consent_collected_from",
1166
+ "consent_updated_at",
1167
+ "opt_in_level",
1168
+ "state"
1169
+ ]
981
1170
  },
982
1171
  "tags": {
983
1172
  "type": "string"
@@ -1003,19 +1192,31 @@
1003
1192
  "type": "integer"
1004
1193
  },
1005
1194
  "first_name": {
1006
- "type": "null"
1195
+ "type": [
1196
+ "string",
1197
+ "null"
1198
+ ]
1007
1199
  },
1008
1200
  "last_name": {
1009
- "type": "null"
1201
+ "type": [
1202
+ "string",
1203
+ "null"
1204
+ ]
1010
1205
  },
1011
1206
  "company": {
1012
- "type": "null"
1207
+ "type": [
1208
+ "string",
1209
+ "null"
1210
+ ]
1013
1211
  },
1014
1212
  "address1": {
1015
1213
  "type": "string"
1016
1214
  },
1017
1215
  "address2": {
1018
- "type": "null"
1216
+ "type": [
1217
+ "string",
1218
+ "null"
1219
+ ]
1019
1220
  },
1020
1221
  "city": {
1021
1222
  "type": "string"
@@ -1067,6 +1268,19 @@
1067
1268
  "country_name",
1068
1269
  "default"
1069
1270
  ]
1271
+ },
1272
+ "marketing_opt_in_level": {
1273
+ "type": "string"
1274
+ },
1275
+ "accepts_marketing_updated_at": {
1276
+ "type": [
1277
+ "string",
1278
+ "null"
1279
+ ],
1280
+ "format": "date-time"
1281
+ },
1282
+ "accepts_marketing": {
1283
+ "type": "boolean"
1070
1284
  }
1071
1285
  },
1072
1286
  "required": [
@@ -1093,11 +1307,448 @@
1093
1307
  },
1094
1308
  "discount_applications": {
1095
1309
  "type": "array",
1096
- "items": false
1310
+ "items": {
1311
+ "type": "object",
1312
+ "properties": {
1313
+ "type": {
1314
+ "type": "string"
1315
+ },
1316
+ "value": {
1317
+ "type": "string"
1318
+ },
1319
+ "value_type": {
1320
+ "type": "string"
1321
+ },
1322
+ "allocation_method": {
1323
+ "type": "string"
1324
+ },
1325
+ "target_selection": {
1326
+ "type": "string"
1327
+ },
1328
+ "target_type": {
1329
+ "type": "string"
1330
+ },
1331
+ "code": {
1332
+ "type": "string"
1333
+ },
1334
+ "description": {
1335
+ "type": "string"
1336
+ },
1337
+ "title": {
1338
+ "type": "string"
1339
+ }
1340
+ },
1341
+ "required": [
1342
+ "type",
1343
+ "value",
1344
+ "value_type",
1345
+ "allocation_method",
1346
+ "target_selection",
1347
+ "target_type"
1348
+ ]
1349
+ }
1097
1350
  },
1098
1351
  "fulfillments": {
1099
1352
  "type": "array",
1100
- "items": false
1353
+ "items": {
1354
+ "type": "object",
1355
+ "properties": {
1356
+ "tracking_number": {
1357
+ "type": [
1358
+ "string",
1359
+ "null"
1360
+ ]
1361
+ },
1362
+ "admin_graphql_api_id": {
1363
+ "type": "string",
1364
+ "format": "uri"
1365
+ },
1366
+ "status": {
1367
+ "type": "string"
1368
+ },
1369
+ "tracking_company": {
1370
+ "type": [
1371
+ "string",
1372
+ "null"
1373
+ ]
1374
+ },
1375
+ "tracking_url": {
1376
+ "type": [
1377
+ "string",
1378
+ "null"
1379
+ ],
1380
+ "format": "uri"
1381
+ },
1382
+ "service": {
1383
+ "type": "string"
1384
+ },
1385
+ "shipment_status": {
1386
+ "type": [
1387
+ "string",
1388
+ "null"
1389
+ ]
1390
+ },
1391
+ "tracking_numbers": {
1392
+ "type": "array",
1393
+ "items": {
1394
+ "type": "string"
1395
+ }
1396
+ },
1397
+ "origin_address": {
1398
+ "type": "object"
1399
+ },
1400
+ "receipt": {
1401
+ "type": "object"
1402
+ },
1403
+ "name": {
1404
+ "type": "string"
1405
+ },
1406
+ "tracking_urls": {
1407
+ "type": "array",
1408
+ "items": {
1409
+ "type": "string",
1410
+ "format": "uri"
1411
+ }
1412
+ },
1413
+ "id": {
1414
+ "type": "integer"
1415
+ },
1416
+ "updated_at": {
1417
+ "type": "string",
1418
+ "format": "date-time"
1419
+ },
1420
+ "line_items": {
1421
+ "type": "array",
1422
+ "items": {
1423
+ "type": "object",
1424
+ "properties": {
1425
+ "admin_graphql_api_id": {
1426
+ "type": "string",
1427
+ "format": "uri"
1428
+ },
1429
+ "duties": {
1430
+ "type": "array",
1431
+ "items": false
1432
+ },
1433
+ "fulfillment_service": {
1434
+ "type": "string"
1435
+ },
1436
+ "grams": {
1437
+ "type": "integer"
1438
+ },
1439
+ "sku": {
1440
+ "type": "string"
1441
+ },
1442
+ "price_set": {
1443
+ "type": "object",
1444
+ "properties": {
1445
+ "shop_money": {
1446
+ "type": "object",
1447
+ "properties": {
1448
+ "amount": {
1449
+ "type": "string"
1450
+ },
1451
+ "currency_code": {
1452
+ "type": "string"
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "amount",
1457
+ "currency_code"
1458
+ ]
1459
+ },
1460
+ "presentment_money": {
1461
+ "type": "object",
1462
+ "properties": {
1463
+ "amount": {
1464
+ "type": "string"
1465
+ },
1466
+ "currency_code": {
1467
+ "type": "string"
1468
+ }
1469
+ },
1470
+ "required": [
1471
+ "amount",
1472
+ "currency_code"
1473
+ ]
1474
+ }
1475
+ },
1476
+ "required": [
1477
+ "shop_money",
1478
+ "presentment_money"
1479
+ ]
1480
+ },
1481
+ "vendor": {
1482
+ "type": "string"
1483
+ },
1484
+ "fulfillable_quantity": {
1485
+ "type": "integer"
1486
+ },
1487
+ "fulfillment_status": {
1488
+ "type": "string"
1489
+ },
1490
+ "discount_allocations": {
1491
+ "type": "array",
1492
+ "items": {
1493
+ "type": "object",
1494
+ "properties": {
1495
+ "amount": {
1496
+ "type": "string"
1497
+ },
1498
+ "amount_set": {
1499
+ "type": "object",
1500
+ "properties": {
1501
+ "presentment_money": {
1502
+ "type": "object",
1503
+ "properties": {
1504
+ "amount": {
1505
+ "type": "string"
1506
+ },
1507
+ "currency_code": {
1508
+ "type": "string"
1509
+ }
1510
+ },
1511
+ "required": [
1512
+ "amount",
1513
+ "currency_code"
1514
+ ]
1515
+ },
1516
+ "shop_money": {
1517
+ "type": "object",
1518
+ "properties": {
1519
+ "amount": {
1520
+ "type": "string"
1521
+ },
1522
+ "currency_code": {
1523
+ "type": "string"
1524
+ }
1525
+ },
1526
+ "required": [
1527
+ "amount",
1528
+ "currency_code"
1529
+ ]
1530
+ }
1531
+ },
1532
+ "required": [
1533
+ "presentment_money",
1534
+ "shop_money"
1535
+ ]
1536
+ },
1537
+ "discount_application_index": {
1538
+ "type": "integer"
1539
+ }
1540
+ },
1541
+ "required": [
1542
+ "amount",
1543
+ "amount_set",
1544
+ "discount_application_index"
1545
+ ]
1546
+ }
1547
+ },
1548
+ "name": {
1549
+ "type": "string"
1550
+ },
1551
+ "tax_lines": {
1552
+ "type": "array",
1553
+ "items": false
1554
+ },
1555
+ "id": {
1556
+ "type": "integer"
1557
+ },
1558
+ "properties": {
1559
+ "type": "array",
1560
+ "items": false
1561
+ },
1562
+ "total_discount_set": {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "presentment_money": {
1566
+ "type": "object",
1567
+ "properties": {
1568
+ "currency_code": {
1569
+ "type": "string"
1570
+ },
1571
+ "amount": {
1572
+ "type": "string"
1573
+ }
1574
+ },
1575
+ "required": [
1576
+ "currency_code",
1577
+ "amount"
1578
+ ]
1579
+ },
1580
+ "shop_money": {
1581
+ "type": "object",
1582
+ "properties": {
1583
+ "amount": {
1584
+ "type": "string"
1585
+ },
1586
+ "currency_code": {
1587
+ "type": "string"
1588
+ }
1589
+ },
1590
+ "required": [
1591
+ "amount",
1592
+ "currency_code"
1593
+ ]
1594
+ }
1595
+ },
1596
+ "required": [
1597
+ "presentment_money",
1598
+ "shop_money"
1599
+ ]
1600
+ },
1601
+ "variant_inventory_management": {
1602
+ "type": [
1603
+ "string",
1604
+ "null"
1605
+ ]
1606
+ },
1607
+ "variant_title": {
1608
+ "type": [
1609
+ "string",
1610
+ "null"
1611
+ ]
1612
+ },
1613
+ "variant_id": {
1614
+ "type": "integer"
1615
+ },
1616
+ "quantity": {
1617
+ "type": "integer"
1618
+ },
1619
+ "price": {
1620
+ "type": "string"
1621
+ },
1622
+ "taxable": {
1623
+ "type": "boolean"
1624
+ },
1625
+ "total_discount": {
1626
+ "type": "string"
1627
+ },
1628
+ "requires_shipping": {
1629
+ "type": "boolean"
1630
+ },
1631
+ "gift_card": {
1632
+ "type": "boolean"
1633
+ },
1634
+ "product_exists": {
1635
+ "type": "boolean"
1636
+ },
1637
+ "product_id": {
1638
+ "type": "integer"
1639
+ },
1640
+ "title": {
1641
+ "type": "string"
1642
+ },
1643
+ "pre_tax_price": {
1644
+ "type": "string"
1645
+ },
1646
+ "pre_tax_price_set": {
1647
+ "type": "object",
1648
+ "properties": {
1649
+ "presentment_money": {
1650
+ "type": "object",
1651
+ "properties": {
1652
+ "currency_code": {
1653
+ "type": "string"
1654
+ },
1655
+ "amount": {
1656
+ "type": "string"
1657
+ }
1658
+ },
1659
+ "required": [
1660
+ "currency_code",
1661
+ "amount"
1662
+ ]
1663
+ },
1664
+ "shop_money": {
1665
+ "type": "object",
1666
+ "properties": {
1667
+ "amount": {
1668
+ "type": "string"
1669
+ },
1670
+ "currency_code": {
1671
+ "type": "string"
1672
+ }
1673
+ },
1674
+ "required": [
1675
+ "amount",
1676
+ "currency_code"
1677
+ ]
1678
+ }
1679
+ },
1680
+ "required": [
1681
+ "presentment_money",
1682
+ "shop_money"
1683
+ ]
1684
+ },
1685
+ "current_quantity": {
1686
+ "type": "integer"
1687
+ }
1688
+ },
1689
+ "required": [
1690
+ "admin_graphql_api_id",
1691
+ "duties",
1692
+ "fulfillment_service",
1693
+ "grams",
1694
+ "sku",
1695
+ "price_set",
1696
+ "vendor",
1697
+ "fulfillable_quantity",
1698
+ "fulfillment_status",
1699
+ "discount_allocations",
1700
+ "name",
1701
+ "tax_lines",
1702
+ "id",
1703
+ "properties",
1704
+ "total_discount_set",
1705
+ "variant_inventory_management",
1706
+ "variant_title",
1707
+ "variant_id",
1708
+ "quantity",
1709
+ "price",
1710
+ "taxable",
1711
+ "total_discount",
1712
+ "requires_shipping",
1713
+ "gift_card",
1714
+ "product_exists",
1715
+ "product_id",
1716
+ "title"
1717
+ ]
1718
+ }
1719
+ },
1720
+ "location_id": {
1721
+ "type": "integer"
1722
+ },
1723
+ "order_id": {
1724
+ "type": "integer"
1725
+ },
1726
+ "created_at": {
1727
+ "type": "string",
1728
+ "format": "date-time"
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "tracking_number",
1733
+ "admin_graphql_api_id",
1734
+ "status",
1735
+ "tracking_company",
1736
+ "tracking_url",
1737
+ "service",
1738
+ "shipment_status",
1739
+ "tracking_numbers",
1740
+ "origin_address",
1741
+ "receipt",
1742
+ "name",
1743
+ "tracking_urls",
1744
+ "id",
1745
+ "updated_at",
1746
+ "line_items",
1747
+ "location_id",
1748
+ "order_id",
1749
+ "created_at"
1750
+ ]
1751
+ }
1101
1752
  },
1102
1753
  "line_items": {
1103
1754
  "type": "array",
@@ -1130,9 +1781,6 @@
1130
1781
  ]
1131
1782
  }
1132
1783
  },
1133
- "current_quantity": {
1134
- "type": "integer"
1135
- },
1136
1784
  "fulfillable_quantity": {
1137
1785
  "type": "integer"
1138
1786
  },
@@ -1140,7 +1788,10 @@
1140
1788
  "type": "string"
1141
1789
  },
1142
1790
  "fulfillment_status": {
1143
- "type": "null"
1791
+ "type": [
1792
+ "string",
1793
+ "null"
1794
+ ]
1144
1795
  },
1145
1796
  "gift_card": {
1146
1797
  "type": "boolean"
@@ -1201,7 +1852,21 @@
1201
1852
  },
1202
1853
  "properties": {
1203
1854
  "type": "array",
1204
- "items": false
1855
+ "items": {
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "value": {
1859
+ "type": "string"
1860
+ },
1861
+ "name": {
1862
+ "type": "string"
1863
+ }
1864
+ },
1865
+ "required": [
1866
+ "value",
1867
+ "name"
1868
+ ]
1869
+ }
1205
1870
  },
1206
1871
  "quantity": {
1207
1872
  "type": "integer"
@@ -1264,17 +1929,88 @@
1264
1929
  "type": "integer"
1265
1930
  },
1266
1931
  "variant_inventory_management": {
1267
- "type": "string"
1932
+ "type": [
1933
+ "string",
1934
+ "null"
1935
+ ]
1268
1936
  },
1269
1937
  "variant_title": {
1270
- "type": "null"
1938
+ "type": [
1939
+ "string",
1940
+ "null"
1941
+ ]
1271
1942
  },
1272
1943
  "vendor": {
1273
- "type": "null"
1944
+ "type": [
1945
+ "string",
1946
+ "null"
1947
+ ]
1274
1948
  },
1275
1949
  "tax_lines": {
1276
1950
  "type": "array",
1277
- "items": false
1951
+ "items": {
1952
+ "type": "object",
1953
+ "properties": {
1954
+ "rate": {
1955
+ "type": "number"
1956
+ },
1957
+ "title": {
1958
+ "type": "string"
1959
+ },
1960
+ "channel_liable": {
1961
+ "type": "boolean"
1962
+ },
1963
+ "price": {
1964
+ "type": "string"
1965
+ },
1966
+ "price_set": {
1967
+ "type": "object",
1968
+ "properties": {
1969
+ "shop_money": {
1970
+ "type": "object",
1971
+ "properties": {
1972
+ "amount": {
1973
+ "type": "string"
1974
+ },
1975
+ "currency_code": {
1976
+ "type": "string"
1977
+ }
1978
+ },
1979
+ "required": [
1980
+ "amount",
1981
+ "currency_code"
1982
+ ]
1983
+ },
1984
+ "presentment_money": {
1985
+ "type": "object",
1986
+ "properties": {
1987
+ "amount": {
1988
+ "type": "string"
1989
+ },
1990
+ "currency_code": {
1991
+ "type": "string"
1992
+ }
1993
+ },
1994
+ "required": [
1995
+ "amount",
1996
+ "currency_code"
1997
+ ]
1998
+ }
1999
+ },
2000
+ "required": [
2001
+ "shop_money",
2002
+ "presentment_money"
2003
+ ]
2004
+ }
2005
+ },
2006
+ "required": [
2007
+ "rate",
2008
+ "title",
2009
+ "channel_liable",
2010
+ "price",
2011
+ "price_set"
2012
+ ]
2013
+ }
1278
2014
  },
1279
2015
  "duties": {
1280
2016
  "type": "array",
@@ -1282,14 +2018,112 @@
1282
2018
  },
1283
2019
  "discount_allocations": {
1284
2020
  "type": "array",
1285
- "items": false
2021
+ "items": {
2022
+ "type": "object",
2023
+ "properties": {
2024
+ "amount": {
2025
+ "type": "string"
2026
+ },
2027
+ "amount_set": {
2028
+ "type": "object",
2029
+ "properties": {
2030
+ "presentment_money": {
2031
+ "type": "object",
2032
+ "properties": {
2033
+ "currency_code": {
2034
+ "type": "string"
2035
+ },
2036
+ "amount": {
2037
+ "type": "string"
2038
+ }
2039
+ },
2040
+ "required": [
2041
+ "currency_code",
2042
+ "amount"
2043
+ ]
2044
+ },
2045
+ "shop_money": {
2046
+ "type": "object",
2047
+ "properties": {
2048
+ "currency_code": {
2049
+ "type": "string"
2050
+ },
2051
+ "amount": {
2052
+ "type": "string"
2053
+ }
2054
+ },
2055
+ "required": [
2056
+ "currency_code",
2057
+ "amount"
2058
+ ]
2059
+ }
2060
+ },
2061
+ "required": [
2062
+ "presentment_money",
2063
+ "shop_money"
2064
+ ]
2065
+ },
2066
+ "discount_application_index": {
2067
+ "type": "integer"
2068
+ }
2069
+ },
2070
+ "required": [
2071
+ "amount",
2072
+ "amount_set",
2073
+ "discount_application_index"
2074
+ ]
2075
+ }
2076
+ },
2077
+ "current_quantity": {
2078
+ "type": "integer"
2079
+ },
2080
+ "pre_tax_price": {
2081
+ "type": "string"
2082
+ },
2083
+ "pre_tax_price_set": {
2084
+ "type": "object",
2085
+ "properties": {
2086
+ "presentment_money": {
2087
+ "type": "object",
2088
+ "properties": {
2089
+ "amount": {
2090
+ "type": "string"
2091
+ },
2092
+ "currency_code": {
2093
+ "type": "string"
2094
+ }
2095
+ },
2096
+ "required": [
2097
+ "amount",
2098
+ "currency_code"
2099
+ ]
2100
+ },
2101
+ "shop_money": {
2102
+ "type": "object",
2103
+ "properties": {
2104
+ "amount": {
2105
+ "type": "string"
2106
+ },
2107
+ "currency_code": {
2108
+ "type": "string"
2109
+ }
2110
+ },
2111
+ "required": [
2112
+ "amount",
2113
+ "currency_code"
2114
+ ]
2115
+ }
2116
+ },
2117
+ "required": [
2118
+ "presentment_money",
2119
+ "shop_money"
2120
+ ]
1286
2121
  }
1287
2122
  },
1288
2123
  "required": [
1289
2124
  "id",
1290
2125
  "admin_graphql_api_id",
1291
2126
  "attributed_staffs",
1292
- "current_quantity",
1293
2127
  "fulfillable_quantity",
1294
2128
  "fulfillment_service",
1295
2129
  "fulfillment_status",
@@ -1356,16 +2190,28 @@
1356
2190
  "type": "string"
1357
2191
  },
1358
2192
  "address2": {
1359
- "type": "null"
2193
+ "type": [
2194
+ "string",
2195
+ "null"
2196
+ ]
1360
2197
  },
1361
2198
  "company": {
1362
- "type": "string"
2199
+ "type": [
2200
+ "string",
2201
+ "null"
2202
+ ]
1363
2203
  },
1364
2204
  "latitude": {
1365
- "type": "null"
2205
+ "type": [
2206
+ "number",
2207
+ "null"
2208
+ ]
1366
2209
  },
1367
2210
  "longitude": {
1368
- "type": "null"
2211
+ "type": [
2212
+ "number",
2213
+ "null"
2214
+ ]
1369
2215
  },
1370
2216
  "name": {
1371
2217
  "type": "string"
@@ -1404,10 +2250,16 @@
1404
2250
  "type": "integer"
1405
2251
  },
1406
2252
  "carrier_identifier": {
1407
- "type": "null"
2253
+ "type": [
2254
+ "string",
2255
+ "null"
2256
+ ]
1408
2257
  },
1409
2258
  "code": {
1410
- "type": "null"
2259
+ "type": [
2260
+ "string",
2261
+ "null"
2262
+ ]
1411
2263
  },
1412
2264
  "discounted_price": {
1413
2265
  "type": "string"
@@ -1503,14 +2355,79 @@
1503
2355
  "type": "null"
1504
2356
  },
1505
2357
  "source": {
1506
- "type": "string"
2358
+ "type": [
2359
+ "string",
2360
+ "null"
2361
+ ]
1507
2362
  },
1508
2363
  "title": {
1509
2364
  "type": "string"
1510
2365
  },
1511
2366
  "tax_lines": {
1512
2367
  "type": "array",
1513
- "items": false
2368
+ "items": {
2369
+ "type": "object",
2370
+ "properties": {
2371
+ "rate": {
2372
+ "type": "number"
2373
+ },
2374
+ "title": {
2375
+ "type": "string"
2376
+ },
2377
+ "channel_liable": {
2378
+ "type": "boolean"
2379
+ },
2380
+ "price": {
2381
+ "type": "string"
2382
+ },
2383
+ "price_set": {
2384
+ "type": "object",
2385
+ "properties": {
2386
+ "shop_money": {
2387
+ "type": "object",
2388
+ "properties": {
2389
+ "amount": {
2390
+ "type": "string"
2391
+ },
2392
+ "currency_code": {
2393
+ "type": "string"
2394
+ }
2395
+ },
2396
+ "required": [
2397
+ "amount",
2398
+ "currency_code"
2399
+ ]
2400
+ },
2401
+ "presentment_money": {
2402
+ "type": "object",
2403
+ "properties": {
2404
+ "amount": {
2405
+ "type": "string"
2406
+ },
2407
+ "currency_code": {
2408
+ "type": "string"
2409
+ }
2410
+ },
2411
+ "required": [
2412
+ "amount",
2413
+ "currency_code"
2414
+ ]
2415
+ }
2416
+ },
2417
+ "required": [
2418
+ "shop_money",
2419
+ "presentment_money"
2420
+ ]
2421
+ }
2422
+ },
2423
+ "required": [
2424
+ "rate",
2425
+ "title",
2426
+ "channel_liable",
2427
+ "price",
2428
+ "price_set"
2429
+ ]
2430
+ }
1514
2431
  },
1515
2432
  "discount_allocations": {
1516
2433
  "type": "array",