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
@@ -9,11 +9,16 @@
9
9
  "type": "string"
10
10
  },
11
11
  "cart_token": {
12
- "type": "string"
12
+ "type": [
13
+ "string",
14
+ "null"
15
+ ]
13
16
  },
14
17
  "email": {
15
- "type": "string",
16
- "format": "email"
18
+ "type": [
19
+ "string",
20
+ "null"
21
+ ]
17
22
  },
18
23
  "gateway": {
19
24
  "type": [
@@ -25,19 +30,16 @@
25
30
  "type": "boolean"
26
31
  },
27
32
  "created_at": {
28
- "type": "string",
29
- "format": "date-time"
33
+ "type": "string"
30
34
  },
31
35
  "updated_at": {
32
- "type": "string",
33
- "format": "date-time"
36
+ "type": "string"
34
37
  },
35
38
  "landing_site": {
36
39
  "type": [
37
40
  "string",
38
41
  "null"
39
- ],
40
- "format": "uri"
42
+ ]
41
43
  },
42
44
  "note": {
43
45
  "type": [
@@ -47,18 +49,274 @@
47
49
  },
48
50
  "note_attributes": {
49
51
  "type": "array",
50
- "items": false
52
+ "items": {
53
+ "type": "object",
54
+ "properties": {
55
+ "value": {
56
+ "type": "string"
57
+ },
58
+ "name": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ "required": [
63
+ "value",
64
+ "name"
65
+ ]
66
+ }
51
67
  },
52
68
  "referring_site": {
53
69
  "type": [
54
70
  "string",
55
71
  "null"
56
- ],
57
- "format": "uri"
72
+ ]
58
73
  },
59
74
  "shipping_lines": {
60
75
  "type": "array",
61
- "items": false
76
+ "items": {
77
+ "type": "object",
78
+ "properties": {
79
+ "carrier_identifier": {
80
+ "type": [
81
+ "string",
82
+ "null"
83
+ ]
84
+ },
85
+ "delivery_expectation_range": {
86
+ "type": [
87
+ "array",
88
+ "null"
89
+ ],
90
+ "items": {
91
+ "type": "integer"
92
+ }
93
+ },
94
+ "price": {
95
+ "type": "string"
96
+ },
97
+ "api_client_id": {
98
+ "type": [
99
+ "string",
100
+ "null"
101
+ ],
102
+ "format": "date-time"
103
+ },
104
+ "delivery_category": {
105
+ "type": "null"
106
+ },
107
+ "source": {
108
+ "type": "string"
109
+ },
110
+ "original_shop_price": {
111
+ "type": [
112
+ "string",
113
+ "null"
114
+ ]
115
+ },
116
+ "delivery_expectation_type": {
117
+ "type": [
118
+ "string",
119
+ "null"
120
+ ]
121
+ },
122
+ "phone": {
123
+ "type": [
124
+ "string",
125
+ "null"
126
+ ]
127
+ },
128
+ "validation_context": {
129
+ "type": "null"
130
+ },
131
+ "original_shop_markup": {
132
+ "type": [
133
+ "string",
134
+ "null"
135
+ ]
136
+ },
137
+ "title": {
138
+ "type": "string"
139
+ },
140
+ "applied_discounts": {
141
+ "type": "array",
142
+ "items": false
143
+ },
144
+ "markup": {
145
+ "type": "string"
146
+ },
147
+ "id": {
148
+ "type": [
149
+ "string",
150
+ "null"
151
+ ]
152
+ },
153
+ "tax_lines": {
154
+ "type": "array",
155
+ "items": {
156
+ "type": "object",
157
+ "properties": {
158
+ "title": {
159
+ "type": "string"
160
+ },
161
+ "identifier": {
162
+ "type": "null"
163
+ },
164
+ "price": {
165
+ "type": "string"
166
+ },
167
+ "channel_liable": {
168
+ "type": "boolean"
169
+ },
170
+ "compare_at": {
171
+ "type": [
172
+ "number",
173
+ "null"
174
+ ]
175
+ },
176
+ "position": {
177
+ "type": "integer"
178
+ },
179
+ "source": {
180
+ "type": "string"
181
+ },
182
+ "rate": {
183
+ "type": "number"
184
+ },
185
+ "zone": {
186
+ "type": [
187
+ "string",
188
+ "null"
189
+ ]
190
+ },
191
+ "reporting_jurisdiction_code": {
192
+ "type": "null"
193
+ },
194
+ "reporting_non_taxable_amount": {
195
+ "type": "null"
196
+ },
197
+ "reporting_jurisdiction_name": {
198
+ "type": "null"
199
+ },
200
+ "reporting_jurisdiction_type": {
201
+ "type": "null"
202
+ },
203
+ "tax_type": {
204
+ "type": "null"
205
+ },
206
+ "reporting_taxable_amount": {
207
+ "type": "null"
208
+ },
209
+ "tax_calculation_price": {
210
+ "type": "string"
211
+ },
212
+ "tax_api_client_id": {
213
+ "type": [
214
+ "integer",
215
+ "null"
216
+ ]
217
+ },
218
+ "jurisdiction_source": {
219
+ "type": "null"
220
+ },
221
+ "jurisdiction_id": {
222
+ "type": "null"
223
+ },
224
+ "reporting_exempt_amount": {
225
+ "type": "null"
226
+ },
227
+ "jurisdiction_type": {
228
+ "type": "null"
229
+ }
230
+ },
231
+ "required": [
232
+ "title",
233
+ "identifier",
234
+ "price",
235
+ "channel_liable",
236
+ "compare_at",
237
+ "position",
238
+ "source",
239
+ "rate",
240
+ "zone"
241
+ ]
242
+ }
243
+ },
244
+ "custom_tax_lines": {
245
+ "type": "null"
246
+ },
247
+ "carrier_service_id": {
248
+ "type": [
249
+ "string",
250
+ "null"
251
+ ]
252
+ },
253
+ "requested_fulfillment_service_id": {
254
+ "type": "null"
255
+ },
256
+ "code": {
257
+ "type": "string"
258
+ },
259
+ "presentment_title": {
260
+ "type": [
261
+ "string",
262
+ "null"
263
+ ]
264
+ },
265
+ "estimated_delivery_time_range": {
266
+ "type": "null"
267
+ },
268
+ "original_rate_price": {
269
+ "type": [
270
+ "string",
271
+ "null"
272
+ ]
273
+ },
274
+ "delivery_option_group_type": {
275
+ "type": [
276
+ "string",
277
+ "null"
278
+ ]
279
+ },
280
+ "delivery_option_group": {
281
+ "type": "object",
282
+ "properties": {
283
+ "type": {
284
+ "type": "string"
285
+ },
286
+ "token": {
287
+ "type": "string"
288
+ }
289
+ },
290
+ "required": [
291
+ "type",
292
+ "token"
293
+ ]
294
+ }
295
+ },
296
+ "required": [
297
+ "carrier_identifier",
298
+ "delivery_expectation_range",
299
+ "price",
300
+ "api_client_id",
301
+ "delivery_category",
302
+ "source",
303
+ "original_shop_price",
304
+ "delivery_expectation_type",
305
+ "phone",
306
+ "validation_context",
307
+ "original_shop_markup",
308
+ "title",
309
+ "applied_discounts",
310
+ "markup",
311
+ "id",
312
+ "tax_lines",
313
+ "custom_tax_lines",
314
+ "carrier_service_id",
315
+ "requested_fulfillment_service_id",
316
+ "code",
317
+ "presentment_title"
318
+ ]
319
+ }
62
320
  },
63
321
  "taxes_included": {
64
322
  "type": "boolean"
@@ -135,15 +393,14 @@
135
393
  "type": "array",
136
394
  "items": false
137
395
  },
138
- "discount_allocations": {
139
- "type": "array",
140
- "items": false
141
- },
142
396
  "key": {
143
397
  "type": "string"
144
398
  },
145
399
  "destination_location_id": {
146
- "type": "integer"
400
+ "type": [
401
+ "integer",
402
+ "null"
403
+ ]
147
404
  },
148
405
  "fulfillment_service": {
149
406
  "type": "string"
@@ -155,7 +412,10 @@
155
412
  "type": "integer"
156
413
  },
157
414
  "origin_location_id": {
158
- "type": "integer"
415
+ "type": [
416
+ "integer",
417
+ "null"
418
+ ]
159
419
  },
160
420
  "presentment_title": {
161
421
  "type": "string"
@@ -167,7 +427,25 @@
167
427
  "type": "integer"
168
428
  },
169
429
  "properties": {
170
- "type": "null"
430
+ "type": [
431
+ "array",
432
+ "null"
433
+ ],
434
+ "items": {
435
+ "type": "object",
436
+ "properties": {
437
+ "name": {
438
+ "type": "string"
439
+ },
440
+ "value": {
441
+ "type": "string"
442
+ }
443
+ },
444
+ "required": [
445
+ "name",
446
+ "value"
447
+ ]
448
+ }
171
449
  },
172
450
  "quantity": {
173
451
  "type": "integer"
@@ -199,25 +477,61 @@
199
477
  "type": "string"
200
478
  },
201
479
  "zone": {
202
- "type": "string"
480
+ "type": [
481
+ "string",
482
+ "null"
483
+ ]
203
484
  },
204
- "jurisdiction_id": {
485
+ "compare_at": {
486
+ "type": [
487
+ "number",
488
+ "null"
489
+ ]
490
+ },
491
+ "channel_liable": {
492
+ "type": "boolean"
493
+ },
494
+ "identifier": {
205
495
  "type": "null"
206
496
  },
207
- "jurisdiction_type": {
497
+ "tax_type": {
208
498
  "type": "null"
209
499
  },
500
+ "jurisdiction_id": {
501
+ "type": [
502
+ "string",
503
+ "null"
504
+ ]
505
+ },
506
+ "jurisdiction_type": {
507
+ "type": [
508
+ "string",
509
+ "null"
510
+ ]
511
+ },
210
512
  "jurisdiction_source": {
211
- "type": "null"
513
+ "type": [
514
+ "string",
515
+ "null"
516
+ ]
212
517
  },
213
518
  "reporting_taxable_amount": {
214
- "type": "null"
519
+ "type": [
520
+ "string",
521
+ "null"
522
+ ]
215
523
  },
216
524
  "reporting_non_taxable_amount": {
217
- "type": "null"
525
+ "type": [
526
+ "string",
527
+ "null"
528
+ ]
218
529
  },
219
530
  "reporting_exempt_amount": {
220
- "type": "null"
531
+ "type": [
532
+ "string",
533
+ "null"
534
+ ]
221
535
  },
222
536
  "reporting_jurisdiction_name": {
223
537
  "type": "null"
@@ -229,16 +543,13 @@
229
543
  "type": "null"
230
544
  },
231
545
  "tax_api_client_id": {
232
- "type": "null"
546
+ "type": [
547
+ "integer",
548
+ "null"
549
+ ]
233
550
  },
234
551
  "tax_calculation_price": {
235
552
  "type": "string"
236
- },
237
- "compare_at": {
238
- "type": "number"
239
- },
240
- "channel_liable": {
241
- "type": "boolean"
242
553
  }
243
554
  },
244
555
  "required": [
@@ -248,17 +559,6 @@
248
559
  "title",
249
560
  "source",
250
561
  "zone",
251
- "jurisdiction_id",
252
- "jurisdiction_type",
253
- "jurisdiction_source",
254
- "reporting_taxable_amount",
255
- "reporting_non_taxable_amount",
256
- "reporting_exempt_amount",
257
- "reporting_jurisdiction_name",
258
- "reporting_jurisdiction_type",
259
- "reporting_jurisdiction_code",
260
- "tax_api_client_id",
261
- "tax_calculation_price",
262
562
  "compare_at",
263
563
  "channel_liable"
264
564
  ]
@@ -313,21 +613,63 @@
313
613
  ]
314
614
  },
315
615
  "rank": {
316
- "type": "null"
616
+ "type": [
617
+ "integer",
618
+ "null"
619
+ ]
317
620
  },
318
621
  "compare_at_price": {
319
- "type": "null"
622
+ "type": [
623
+ "string",
624
+ "null"
625
+ ]
320
626
  },
321
627
  "line_price": {
322
628
  "type": "string"
323
629
  },
324
630
  "price": {
325
631
  "type": "string"
632
+ },
633
+ "id": {
634
+ "type": "string"
635
+ },
636
+ "discount_allocations": {
637
+ "type": "array",
638
+ "items": {
639
+ "type": "object",
640
+ "properties": {
641
+ "id": {
642
+ "type": "null"
643
+ },
644
+ "amount": {
645
+ "type": "string"
646
+ },
647
+ "application_type": {
648
+ "type": "string"
649
+ },
650
+ "created_at": {
651
+ "type": "null"
652
+ },
653
+ "description": {
654
+ "type": "string"
655
+ },
656
+ "discount_class": {
657
+ "type": "string"
658
+ }
659
+ },
660
+ "required": [
661
+ "id",
662
+ "amount",
663
+ "application_type",
664
+ "created_at",
665
+ "description",
666
+ "discount_class"
667
+ ]
668
+ }
326
669
  }
327
670
  },
328
671
  "required": [
329
672
  "applied_discounts",
330
- "discount_allocations",
331
673
  "key",
332
674
  "destination_location_id",
333
675
  "fulfillment_service",
@@ -372,7 +714,25 @@
372
714
  },
373
715
  "discount_codes": {
374
716
  "type": "array",
375
- "items": false
717
+ "items": {
718
+ "type": "object",
719
+ "properties": {
720
+ "amount": {
721
+ "type": "string"
722
+ },
723
+ "code": {
724
+ "type": "string"
725
+ },
726
+ "type": {
727
+ "type": "string"
728
+ }
729
+ },
730
+ "required": [
731
+ "amount",
732
+ "code",
733
+ "type"
734
+ ]
735
+ }
376
736
  },
377
737
  "tax_lines": {
378
738
  "type": "array",
@@ -431,9 +791,28 @@
431
791
  "type": "string"
432
792
  },
433
793
  "total_duties": {
434
- "type": [
435
- "number",
436
- "null"
794
+ "anyOf": [
795
+ {
796
+ "type": "number"
797
+ },
798
+ {
799
+ "type": "string"
800
+ },
801
+ {
802
+ "type": "string"
803
+ },
804
+ {
805
+ "type": "string"
806
+ },
807
+ {
808
+ "type": "string"
809
+ },
810
+ {
811
+ "type": "string"
812
+ },
813
+ {
814
+ "type": "string"
815
+ }
437
816
  ]
438
817
  },
439
818
  "billing_address": {
@@ -455,7 +834,10 @@
455
834
  "type": "string"
456
835
  },
457
836
  "province": {
458
- "type": "string"
837
+ "type": [
838
+ "string",
839
+ "null"
840
+ ]
459
841
  },
460
842
  "country": {
461
843
  "type": "string"
@@ -464,16 +846,28 @@
464
846
  "type": "string"
465
847
  },
466
848
  "address2": {
467
- "type": "null"
849
+ "type": [
850
+ "string",
851
+ "null"
852
+ ]
468
853
  },
469
854
  "company": {
470
- "type": "string"
855
+ "type": [
856
+ "string",
857
+ "null"
858
+ ]
471
859
  },
472
860
  "latitude": {
473
- "type": "null"
861
+ "type": [
862
+ "number",
863
+ "null"
864
+ ]
474
865
  },
475
866
  "longitude": {
476
- "type": "null"
867
+ "type": [
868
+ "number",
869
+ "null"
870
+ ]
477
871
  },
478
872
  "name": {
479
873
  "type": "string"
@@ -482,7 +876,10 @@
482
876
  "type": "string"
483
877
  },
484
878
  "province_code": {
485
- "type": "string"
879
+ "type": [
880
+ "string",
881
+ "null"
882
+ ]
486
883
  }
487
884
  },
488
885
  "required": [
@@ -531,16 +928,28 @@
531
928
  "type": "string"
532
929
  },
533
930
  "address2": {
534
- "type": "null"
931
+ "type": [
932
+ "string",
933
+ "null"
934
+ ]
535
935
  },
536
936
  "company": {
537
- "type": "string"
937
+ "type": [
938
+ "string",
939
+ "null"
940
+ ]
538
941
  },
539
942
  "latitude": {
540
- "type": "null"
943
+ "type": [
944
+ "number",
945
+ "null"
946
+ ]
541
947
  },
542
948
  "longitude": {
543
- "type": "null"
949
+ "type": [
950
+ "number",
951
+ "null"
952
+ ]
544
953
  },
545
954
  "name": {
546
955
  "type": "string"
@@ -551,24 +960,7 @@
551
960
  "province_code": {
552
961
  "type": "string"
553
962
  }
554
- },
555
- "required": [
556
- "first_name",
557
- "address1",
558
- "phone",
559
- "city",
560
- "zip",
561
- "province",
562
- "country",
563
- "last_name",
564
- "address2",
565
- "company",
566
- "latitude",
567
- "longitude",
568
- "name",
569
- "country_code",
570
- "province_code"
571
- ]
963
+ }
572
964
  },
573
965
  "customer": {
574
966
  "type": "object",
@@ -577,14 +969,21 @@
577
969
  "type": "integer"
578
970
  },
579
971
  "email": {
580
- "type": "string",
581
- "format": "email"
972
+ "type": "string"
582
973
  },
583
974
  "created_at": {
584
- "type": "null"
975
+ "type": [
976
+ "string",
977
+ "null"
978
+ ],
979
+ "format": "date-time"
585
980
  },
586
981
  "updated_at": {
587
- "type": "null"
982
+ "type": [
983
+ "string",
984
+ "null"
985
+ ],
986
+ "format": "date-time"
588
987
  },
589
988
  "first_name": {
590
989
  "type": "string"
@@ -602,16 +1001,25 @@
602
1001
  "type": "string"
603
1002
  },
604
1003
  "last_order_id": {
605
- "type": "null"
1004
+ "type": [
1005
+ "integer",
1006
+ "null"
1007
+ ]
606
1008
  },
607
1009
  "note": {
608
- "type": "null"
1010
+ "type": [
1011
+ "string",
1012
+ "null"
1013
+ ]
609
1014
  },
610
1015
  "verified_email": {
611
1016
  "type": "boolean"
612
1017
  },
613
1018
  "multipass_identifier": {
614
- "type": "null"
1019
+ "type": [
1020
+ "string",
1021
+ "null"
1022
+ ]
615
1023
  },
616
1024
  "tax_exempt": {
617
1025
  "type": "boolean"
@@ -620,13 +1028,19 @@
620
1028
  "type": "string"
621
1029
  },
622
1030
  "last_order_name": {
623
- "type": "null"
1031
+ "type": [
1032
+ "string",
1033
+ "null"
1034
+ ]
624
1035
  },
625
1036
  "currency": {
626
1037
  "type": "string"
627
1038
  },
628
1039
  "phone": {
629
- "type": "null"
1040
+ "type": [
1041
+ "string",
1042
+ "null"
1043
+ ]
630
1044
  },
631
1045
  "tax_exemptions": {
632
1046
  "type": "array",
@@ -639,10 +1053,17 @@
639
1053
  "type": "string"
640
1054
  },
641
1055
  "opt_in_level": {
642
- "type": "null"
1056
+ "type": [
1057
+ "string",
1058
+ "null"
1059
+ ]
643
1060
  },
644
1061
  "consent_updated_at": {
645
- "type": "null"
1062
+ "type": [
1063
+ "string",
1064
+ "null"
1065
+ ],
1066
+ "format": "date-time"
646
1067
  }
647
1068
  },
648
1069
  "required": [
@@ -652,7 +1073,31 @@
652
1073
  ]
653
1074
  },
654
1075
  "sms_marketing_consent": {
655
- "type": "null"
1076
+ "type": [
1077
+ "object",
1078
+ "null"
1079
+ ],
1080
+ "properties": {
1081
+ "opt_in_level": {
1082
+ "type": "string"
1083
+ },
1084
+ "state": {
1085
+ "type": "string"
1086
+ },
1087
+ "consent_collected_from": {
1088
+ "type": "string"
1089
+ },
1090
+ "consent_updated_at": {
1091
+ "type": "string",
1092
+ "format": "date-time"
1093
+ }
1094
+ },
1095
+ "required": [
1096
+ "opt_in_level",
1097
+ "state",
1098
+ "consent_collected_from",
1099
+ "consent_updated_at"
1100
+ ]
656
1101
  },
657
1102
  "admin_graphql_api_id": {
658
1103
  "type": "string",
@@ -662,31 +1107,49 @@
662
1107
  "type": "object",
663
1108
  "properties": {
664
1109
  "id": {
665
- "type": "null"
1110
+ "type": [
1111
+ "integer",
1112
+ "null"
1113
+ ]
666
1114
  },
667
1115
  "customer_id": {
668
1116
  "type": "integer"
669
1117
  },
670
1118
  "first_name": {
671
- "type": "null"
1119
+ "type": [
1120
+ "string",
1121
+ "null"
1122
+ ]
672
1123
  },
673
1124
  "last_name": {
674
- "type": "null"
1125
+ "type": [
1126
+ "string",
1127
+ "null"
1128
+ ]
675
1129
  },
676
1130
  "company": {
677
- "type": "null"
1131
+ "type": [
1132
+ "string",
1133
+ "null"
1134
+ ]
678
1135
  },
679
1136
  "address1": {
680
1137
  "type": "string"
681
1138
  },
682
1139
  "address2": {
683
- "type": "null"
1140
+ "type": [
1141
+ "string",
1142
+ "null"
1143
+ ]
684
1144
  },
685
1145
  "city": {
686
1146
  "type": "string"
687
1147
  },
688
1148
  "province": {
689
- "type": "string"
1149
+ "type": [
1150
+ "string",
1151
+ "null"
1152
+ ]
690
1153
  },
691
1154
  "country": {
692
1155
  "type": "string"
@@ -695,13 +1158,19 @@
695
1158
  "type": "string"
696
1159
  },
697
1160
  "phone": {
698
- "type": "string"
1161
+ "type": [
1162
+ "string",
1163
+ "null"
1164
+ ]
699
1165
  },
700
1166
  "name": {
701
1167
  "type": "string"
702
1168
  },
703
1169
  "province_code": {
704
- "type": "string"
1170
+ "type": [
1171
+ "string",
1172
+ "null"
1173
+ ]
705
1174
  },
706
1175
  "country_code": {
707
1176
  "type": "string"
@@ -732,6 +1201,22 @@
732
1201
  "country_name",
733
1202
  "default"
734
1203
  ]
1204
+ },
1205
+ "marketing_opt_in_level": {
1206
+ "type": [
1207
+ "string",
1208
+ "null"
1209
+ ]
1210
+ },
1211
+ "accepts_marketing": {
1212
+ "type": "boolean"
1213
+ },
1214
+ "accepts_marketing_updated_at": {
1215
+ "type": [
1216
+ "string",
1217
+ "null"
1218
+ ],
1219
+ "format": "date-time"
735
1220
  }
736
1221
  },
737
1222
  "required": [