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
  "reservation_token": {
@@ -461,7 +840,10 @@
461
840
  "type": "string"
462
841
  },
463
842
  "province": {
464
- "type": "string"
843
+ "type": [
844
+ "string",
845
+ "null"
846
+ ]
465
847
  },
466
848
  "country": {
467
849
  "type": "string"
@@ -470,16 +852,28 @@
470
852
  "type": "string"
471
853
  },
472
854
  "address2": {
473
- "type": "null"
855
+ "type": [
856
+ "string",
857
+ "null"
858
+ ]
474
859
  },
475
860
  "company": {
476
- "type": "string"
861
+ "type": [
862
+ "string",
863
+ "null"
864
+ ]
477
865
  },
478
866
  "latitude": {
479
- "type": "null"
867
+ "type": [
868
+ "number",
869
+ "null"
870
+ ]
480
871
  },
481
872
  "longitude": {
482
- "type": "null"
873
+ "type": [
874
+ "number",
875
+ "null"
876
+ ]
483
877
  },
484
878
  "name": {
485
879
  "type": "string"
@@ -488,7 +882,10 @@
488
882
  "type": "string"
489
883
  },
490
884
  "province_code": {
491
- "type": "string"
885
+ "type": [
886
+ "string",
887
+ "null"
888
+ ]
492
889
  }
493
890
  },
494
891
  "required": [
@@ -537,16 +934,28 @@
537
934
  "type": "string"
538
935
  },
539
936
  "address2": {
540
- "type": "null"
937
+ "type": [
938
+ "string",
939
+ "null"
940
+ ]
541
941
  },
542
942
  "company": {
543
- "type": "string"
943
+ "type": [
944
+ "string",
945
+ "null"
946
+ ]
544
947
  },
545
948
  "latitude": {
546
- "type": "null"
949
+ "type": [
950
+ "number",
951
+ "null"
952
+ ]
547
953
  },
548
954
  "longitude": {
549
- "type": "null"
955
+ "type": [
956
+ "number",
957
+ "null"
958
+ ]
550
959
  },
551
960
  "name": {
552
961
  "type": "string"
@@ -557,24 +966,7 @@
557
966
  "province_code": {
558
967
  "type": "string"
559
968
  }
560
- },
561
- "required": [
562
- "first_name",
563
- "address1",
564
- "phone",
565
- "city",
566
- "zip",
567
- "province",
568
- "country",
569
- "last_name",
570
- "address2",
571
- "company",
572
- "latitude",
573
- "longitude",
574
- "name",
575
- "country_code",
576
- "province_code"
577
- ]
969
+ }
578
970
  },
579
971
  "customer": {
580
972
  "type": "object",
@@ -583,14 +975,21 @@
583
975
  "type": "integer"
584
976
  },
585
977
  "email": {
586
- "type": "string",
587
- "format": "email"
978
+ "type": "string"
588
979
  },
589
980
  "created_at": {
590
- "type": "null"
981
+ "type": [
982
+ "string",
983
+ "null"
984
+ ],
985
+ "format": "date-time"
591
986
  },
592
987
  "updated_at": {
593
- "type": "null"
988
+ "type": [
989
+ "string",
990
+ "null"
991
+ ],
992
+ "format": "date-time"
594
993
  },
595
994
  "first_name": {
596
995
  "type": "string"
@@ -608,16 +1007,25 @@
608
1007
  "type": "string"
609
1008
  },
610
1009
  "last_order_id": {
611
- "type": "null"
1010
+ "type": [
1011
+ "integer",
1012
+ "null"
1013
+ ]
612
1014
  },
613
1015
  "note": {
614
- "type": "null"
1016
+ "type": [
1017
+ "string",
1018
+ "null"
1019
+ ]
615
1020
  },
616
1021
  "verified_email": {
617
1022
  "type": "boolean"
618
1023
  },
619
1024
  "multipass_identifier": {
620
- "type": "null"
1025
+ "type": [
1026
+ "string",
1027
+ "null"
1028
+ ]
621
1029
  },
622
1030
  "tax_exempt": {
623
1031
  "type": "boolean"
@@ -626,13 +1034,19 @@
626
1034
  "type": "string"
627
1035
  },
628
1036
  "last_order_name": {
629
- "type": "null"
1037
+ "type": [
1038
+ "string",
1039
+ "null"
1040
+ ]
630
1041
  },
631
1042
  "currency": {
632
1043
  "type": "string"
633
1044
  },
634
1045
  "phone": {
635
- "type": "null"
1046
+ "type": [
1047
+ "string",
1048
+ "null"
1049
+ ]
636
1050
  },
637
1051
  "tax_exemptions": {
638
1052
  "type": "array",
@@ -645,10 +1059,17 @@
645
1059
  "type": "string"
646
1060
  },
647
1061
  "opt_in_level": {
648
- "type": "null"
1062
+ "type": [
1063
+ "string",
1064
+ "null"
1065
+ ]
649
1066
  },
650
1067
  "consent_updated_at": {
651
- "type": "null"
1068
+ "type": [
1069
+ "string",
1070
+ "null"
1071
+ ],
1072
+ "format": "date-time"
652
1073
  }
653
1074
  },
654
1075
  "required": [
@@ -658,7 +1079,31 @@
658
1079
  ]
659
1080
  },
660
1081
  "sms_marketing_consent": {
661
- "type": "null"
1082
+ "type": [
1083
+ "object",
1084
+ "null"
1085
+ ],
1086
+ "properties": {
1087
+ "opt_in_level": {
1088
+ "type": "string"
1089
+ },
1090
+ "state": {
1091
+ "type": "string"
1092
+ },
1093
+ "consent_collected_from": {
1094
+ "type": "string"
1095
+ },
1096
+ "consent_updated_at": {
1097
+ "type": "string",
1098
+ "format": "date-time"
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "opt_in_level",
1103
+ "state",
1104
+ "consent_collected_from",
1105
+ "consent_updated_at"
1106
+ ]
662
1107
  },
663
1108
  "admin_graphql_api_id": {
664
1109
  "type": "string",
@@ -668,31 +1113,49 @@
668
1113
  "type": "object",
669
1114
  "properties": {
670
1115
  "id": {
671
- "type": "null"
1116
+ "type": [
1117
+ "integer",
1118
+ "null"
1119
+ ]
672
1120
  },
673
1121
  "customer_id": {
674
1122
  "type": "integer"
675
1123
  },
676
1124
  "first_name": {
677
- "type": "null"
1125
+ "type": [
1126
+ "string",
1127
+ "null"
1128
+ ]
678
1129
  },
679
1130
  "last_name": {
680
- "type": "null"
1131
+ "type": [
1132
+ "string",
1133
+ "null"
1134
+ ]
681
1135
  },
682
1136
  "company": {
683
- "type": "null"
1137
+ "type": [
1138
+ "string",
1139
+ "null"
1140
+ ]
684
1141
  },
685
1142
  "address1": {
686
1143
  "type": "string"
687
1144
  },
688
1145
  "address2": {
689
- "type": "null"
1146
+ "type": [
1147
+ "string",
1148
+ "null"
1149
+ ]
690
1150
  },
691
1151
  "city": {
692
1152
  "type": "string"
693
1153
  },
694
1154
  "province": {
695
- "type": "string"
1155
+ "type": [
1156
+ "string",
1157
+ "null"
1158
+ ]
696
1159
  },
697
1160
  "country": {
698
1161
  "type": "string"
@@ -701,13 +1164,19 @@
701
1164
  "type": "string"
702
1165
  },
703
1166
  "phone": {
704
- "type": "string"
1167
+ "type": [
1168
+ "string",
1169
+ "null"
1170
+ ]
705
1171
  },
706
1172
  "name": {
707
1173
  "type": "string"
708
1174
  },
709
1175
  "province_code": {
710
- "type": "string"
1176
+ "type": [
1177
+ "string",
1178
+ "null"
1179
+ ]
711
1180
  },
712
1181
  "country_code": {
713
1182
  "type": "string"
@@ -738,6 +1207,22 @@
738
1207
  "country_name",
739
1208
  "default"
740
1209
  ]
1210
+ },
1211
+ "marketing_opt_in_level": {
1212
+ "type": [
1213
+ "string",
1214
+ "null"
1215
+ ]
1216
+ },
1217
+ "accepts_marketing": {
1218
+ "type": "boolean"
1219
+ },
1220
+ "accepts_marketing_updated_at": {
1221
+ "type": [
1222
+ "string",
1223
+ "null"
1224
+ ],
1225
+ "format": "date-time"
741
1226
  }
742
1227
  },
743
1228
  "required": [