@shushed/helpers 0.0.202-v2-20251208085030 → 0.0.202
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.
- package/dist/cjs/contracts/asset.schema.json +78 -0
- package/dist/cjs/contracts/category.schema.json +86 -0
- package/dist/cjs/contracts/country.schema.json +258 -0
- package/dist/cjs/contracts/currency.schema.json +177 -0
- package/dist/cjs/contracts/customer-segment.schema.json +32 -0
- package/dist/cjs/contracts/development-colour.schema.json +97 -0
- package/dist/cjs/contracts/index.js +48 -0
- package/dist/cjs/contracts/marketing-preferences.schema.json +41 -0
- package/dist/cjs/contracts/messages/ean-change.schema.json +22 -0
- package/dist/cjs/contracts/messages/index.js +29 -0
- package/dist/cjs/contracts/messages/order/delivered.schema.json +26 -0
- package/dist/cjs/contracts/messages/order/index.js +18 -0
- package/dist/cjs/contracts/messages/order/new.schema.json +32 -0
- package/dist/cjs/contracts/messages/order/processed.schema.json +15 -0
- package/dist/cjs/contracts/messages/order/return-initiated.schema.json +26 -0
- package/dist/cjs/contracts/messages/order/returned.schema.json +25 -0
- package/dist/cjs/contracts/messages/order/shipped.schema.json +26 -0
- package/dist/cjs/contracts/messages/product-category.schema.json +21 -0
- package/dist/cjs/contracts/messages/product-draft.schema.json +66 -0
- package/dist/cjs/contracts/messages/product.schema.json +29 -0
- package/dist/cjs/contracts/money.schema.json +54 -0
- package/dist/cjs/contracts/order/address.schema.json +127 -0
- package/dist/cjs/contracts/order/customer.schema.json +149 -0
- package/dist/cjs/contracts/order/index.js +31 -0
- package/dist/cjs/contracts/order/item.schema.json +98 -0
- package/dist/cjs/contracts/order/payment.schema.json +115 -0
- package/dist/cjs/contracts/order/shipment/index.js +29 -0
- package/dist/cjs/contracts/order/shipment/item/index.js +8 -0
- package/dist/cjs/contracts/order/shipment/item/returned.schema.json +30 -0
- package/dist/cjs/contracts/order/shipment/item.schema.json +22 -0
- package/dist/cjs/contracts/order/shipment/pos/index.js +10 -0
- package/dist/cjs/contracts/order/shipment/pos/outbound.schema.json +37 -0
- package/dist/cjs/contracts/order/shipment/pos/return.schema.json +31 -0
- package/dist/cjs/contracts/order/shipment/pos.schema.json +48 -0
- package/dist/cjs/contracts/order/shipment/shipped/index.js +10 -0
- package/dist/cjs/contracts/order/shipment/shipped/outbound.schema.json +34 -0
- package/dist/cjs/contracts/order/shipment/shipped/return.schema.json +43 -0
- package/dist/cjs/contracts/order/shipment/shipped.schema.json +52 -0
- package/dist/cjs/contracts/order/shipment.schema.json +58 -0
- package/dist/cjs/contracts/order.schema.json +231 -0
- package/dist/cjs/contracts/product-category.schema.json +34 -0
- package/dist/cjs/contracts/product-draft.schema.json +782 -0
- package/dist/cjs/contracts/product.schema.json +816 -0
- package/dist/cjs/contracts/total.schema.json +41 -0
- package/dist/cjs/dist-dereferenced/messages/order/delivered.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/new.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/processed.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/returned.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/shipped.js +1 -1
- package/dist/cjs/dist-dereferenced/order/customer.js +1 -1
- package/dist/cjs/dist-dereferenced/order/item.js +1 -1
- package/dist/cjs/dist-dereferenced/order/orderMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/payment.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
- package/dist/cjs/src-public/bcOrder.js +943 -0
- package/dist/cjs/src-public/dato.js +10 -287
- package/dist/cjs/src-public/index.js +3 -1
- package/dist/cjs/src-public/validate.js +34 -0
- package/dist/types/contracts/index.d.ts +15 -0
- package/dist/types/contracts/messages/index.d.ts +5 -0
- package/dist/types/contracts/messages/order/index.d.ts +6 -0
- package/dist/types/contracts/order/index.d.ts +6 -0
- package/dist/types/contracts/order/shipment/index.d.ts +6 -0
- package/dist/types/contracts/order/shipment/item/index.d.ts +1 -0
- package/dist/types/contracts/order/shipment/pos/index.d.ts +2 -0
- package/dist/types/contracts/order/shipment/shipped/index.d.ts +2 -0
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +34 -10
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +34 -10
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +34 -10
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +34 -10
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +34 -10
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +34 -10
- package/dist/types/dist-dereferenced/order/customer.d.ts +3 -0
- package/dist/types/dist-dereferenced/order/index.d.ts +34 -10
- package/dist/types/dist-dereferenced/order/item.d.ts +6 -3
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +34 -10
- package/dist/types/dist-dereferenced/order/payment.d.ts +16 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -1
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +0 -1
- package/dist/types/dist-types/messages/order/delivered.d.ts +13 -5
- package/dist/types/dist-types/messages/order/new.d.ts +13 -5
- package/dist/types/dist-types/messages/order/processed.d.ts +13 -5
- package/dist/types/dist-types/messages/order/return-initiated.d.ts +13 -5
- package/dist/types/dist-types/messages/order/returned.d.ts +13 -5
- package/dist/types/dist-types/messages/order/shipped.d.ts +13 -5
- package/dist/types/dist-types/order/customer.d.ts +1 -0
- package/dist/types/dist-types/order/item.d.ts +4 -3
- package/dist/types/dist-types/order/orderMain.d.ts +13 -5
- package/dist/types/dist-types/order/payment.d.ts +4 -0
- package/dist/types/src-public/bcOrder.d.ts +84 -0
- package/dist/types/src-public/dato.d.ts +1 -34
- package/dist/types/src-public/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14,13 +14,12 @@ declare const schema: {
|
|
|
14
14
|
readonly type: "string";
|
|
15
15
|
};
|
|
16
16
|
readonly centra_order_id: {
|
|
17
|
-
readonly type: readonly ["
|
|
18
|
-
readonly format: "uuid";
|
|
17
|
+
readonly type: readonly ["integer", "null"];
|
|
19
18
|
};
|
|
20
19
|
readonly sfcc_order_id: {
|
|
21
20
|
readonly type: readonly ["string", "null"];
|
|
22
21
|
};
|
|
23
|
-
readonly
|
|
22
|
+
readonly globale_order_id: {
|
|
24
23
|
readonly type: readonly ["string", "null"];
|
|
25
24
|
};
|
|
26
25
|
readonly sitoo_order_id: {
|
|
@@ -64,6 +63,22 @@ declare const schema: {
|
|
|
64
63
|
readonly card_number: {
|
|
65
64
|
readonly type: readonly ["string", "null"];
|
|
66
65
|
};
|
|
66
|
+
readonly card_holder: {
|
|
67
|
+
readonly type: readonly ["string", "null"];
|
|
68
|
+
};
|
|
69
|
+
readonly card_token: {
|
|
70
|
+
readonly type: readonly ["string", "null"];
|
|
71
|
+
};
|
|
72
|
+
readonly expiration_month: {
|
|
73
|
+
readonly type: readonly ["integer", "null"];
|
|
74
|
+
readonly minimum: 1;
|
|
75
|
+
readonly maximum: 12;
|
|
76
|
+
};
|
|
77
|
+
readonly expiration_year: {
|
|
78
|
+
readonly type: readonly ["integer", "null"];
|
|
79
|
+
readonly minimum: 2023;
|
|
80
|
+
readonly maximum: 2085;
|
|
81
|
+
};
|
|
67
82
|
readonly journey_label: {
|
|
68
83
|
readonly type: readonly ["string"];
|
|
69
84
|
readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"];
|
|
@@ -384,6 +399,9 @@ declare const schema: {
|
|
|
384
399
|
};
|
|
385
400
|
readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
|
|
386
401
|
};
|
|
402
|
+
readonly phone: {
|
|
403
|
+
readonly type: readonly ["string", "null"];
|
|
404
|
+
};
|
|
387
405
|
readonly email: {
|
|
388
406
|
readonly type: readonly ["string", "null"];
|
|
389
407
|
readonly format: "email";
|
|
@@ -681,6 +699,9 @@ declare const schema: {
|
|
|
681
699
|
readonly phone: "+1-202-555-0143";
|
|
682
700
|
};
|
|
683
701
|
};
|
|
702
|
+
readonly collection_point_id: {
|
|
703
|
+
readonly type: readonly ["string", "null"];
|
|
704
|
+
};
|
|
684
705
|
readonly is_pos: {
|
|
685
706
|
readonly type: readonly ["boolean"];
|
|
686
707
|
};
|
|
@@ -1267,7 +1288,6 @@ declare const schema: {
|
|
|
1267
1288
|
};
|
|
1268
1289
|
readonly items: {
|
|
1269
1290
|
readonly type: "array";
|
|
1270
|
-
readonly additionalProperties: false;
|
|
1271
1291
|
readonly items: {
|
|
1272
1292
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
1273
1293
|
readonly title: "Order Shipment Item";
|
|
@@ -2154,7 +2174,6 @@ declare const schema: {
|
|
|
2154
2174
|
};
|
|
2155
2175
|
readonly items: {
|
|
2156
2176
|
readonly type: "array";
|
|
2157
|
-
readonly additionalProperties: false;
|
|
2158
2177
|
readonly items: {
|
|
2159
2178
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2160
2179
|
readonly title: "Order Shipment Item";
|
|
@@ -2467,7 +2486,6 @@ declare const schema: {
|
|
|
2467
2486
|
};
|
|
2468
2487
|
readonly items: {
|
|
2469
2488
|
readonly type: "array";
|
|
2470
|
-
readonly additionalProperties: false;
|
|
2471
2489
|
readonly items: {
|
|
2472
2490
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2473
2491
|
readonly title: "Order Shipment Item Returned";
|
|
@@ -2710,10 +2728,13 @@ declare const schema: {
|
|
|
2710
2728
|
readonly type: readonly ["string", "null"];
|
|
2711
2729
|
};
|
|
2712
2730
|
readonly colour_id: {
|
|
2713
|
-
readonly type: readonly ["string"];
|
|
2731
|
+
readonly type: readonly ["string", "null"];
|
|
2714
2732
|
};
|
|
2715
2733
|
readonly style_id: {
|
|
2716
|
-
readonly type: readonly ["string"];
|
|
2734
|
+
readonly type: readonly ["string", "null"];
|
|
2735
|
+
};
|
|
2736
|
+
readonly product_id: {
|
|
2737
|
+
readonly type: readonly ["string", "null"];
|
|
2717
2738
|
};
|
|
2718
2739
|
readonly colour_name: {
|
|
2719
2740
|
readonly type: readonly ["string"];
|
|
@@ -2731,7 +2752,7 @@ declare const schema: {
|
|
|
2731
2752
|
};
|
|
2732
2753
|
readonly unit_price_status: {
|
|
2733
2754
|
readonly type: "string";
|
|
2734
|
-
readonly enum: readonly ["
|
|
2755
|
+
readonly enum: readonly ["rrp", "perm", "pos"];
|
|
2735
2756
|
};
|
|
2736
2757
|
readonly returned_quantity: {
|
|
2737
2758
|
readonly type: readonly ["integer"];
|
|
@@ -2874,7 +2895,7 @@ declare const schema: {
|
|
|
2874
2895
|
readonly currency: "USD";
|
|
2875
2896
|
readonly value: 12000;
|
|
2876
2897
|
};
|
|
2877
|
-
readonly unit_price_status: "
|
|
2898
|
+
readonly unit_price_status: "rrp";
|
|
2878
2899
|
readonly discount_amount_net: {
|
|
2879
2900
|
readonly currency: "USD";
|
|
2880
2901
|
readonly value: 0;
|
|
@@ -3395,6 +3416,9 @@ declare const schema: {
|
|
|
3395
3416
|
};
|
|
3396
3417
|
readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
|
|
3397
3418
|
};
|
|
3419
|
+
readonly shipping_method: {
|
|
3420
|
+
readonly type: readonly ["string", "null"];
|
|
3421
|
+
};
|
|
3398
3422
|
};
|
|
3399
3423
|
readonly required: readonly ["erp_order_id", "status", "ordered_at", "items", "total"];
|
|
3400
3424
|
}, {
|
|
@@ -230,6 +230,9 @@ declare const schema: {
|
|
|
230
230
|
};
|
|
231
231
|
readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
|
|
232
232
|
};
|
|
233
|
+
readonly phone: {
|
|
234
|
+
readonly type: readonly ["string", "null"];
|
|
235
|
+
};
|
|
233
236
|
readonly email: {
|
|
234
237
|
readonly type: readonly ["string", "null"];
|
|
235
238
|
readonly format: "email";
|
|
@@ -16,13 +16,12 @@ declare const MainModuleObj: {
|
|
|
16
16
|
readonly type: "string";
|
|
17
17
|
};
|
|
18
18
|
readonly centra_order_id: {
|
|
19
|
-
readonly type: readonly ["
|
|
20
|
-
readonly format: "uuid";
|
|
19
|
+
readonly type: readonly ["integer", "null"];
|
|
21
20
|
};
|
|
22
21
|
readonly sfcc_order_id: {
|
|
23
22
|
readonly type: readonly ["string", "null"];
|
|
24
23
|
};
|
|
25
|
-
readonly
|
|
24
|
+
readonly globale_order_id: {
|
|
26
25
|
readonly type: readonly ["string", "null"];
|
|
27
26
|
};
|
|
28
27
|
readonly sitoo_order_id: {
|
|
@@ -66,6 +65,22 @@ declare const MainModuleObj: {
|
|
|
66
65
|
readonly card_number: {
|
|
67
66
|
readonly type: readonly ["string", "null"];
|
|
68
67
|
};
|
|
68
|
+
readonly card_holder: {
|
|
69
|
+
readonly type: readonly ["string", "null"];
|
|
70
|
+
};
|
|
71
|
+
readonly card_token: {
|
|
72
|
+
readonly type: readonly ["string", "null"];
|
|
73
|
+
};
|
|
74
|
+
readonly expiration_month: {
|
|
75
|
+
readonly type: readonly ["integer", "null"];
|
|
76
|
+
readonly minimum: 1;
|
|
77
|
+
readonly maximum: 12;
|
|
78
|
+
};
|
|
79
|
+
readonly expiration_year: {
|
|
80
|
+
readonly type: readonly ["integer", "null"];
|
|
81
|
+
readonly minimum: 2023;
|
|
82
|
+
readonly maximum: 2085;
|
|
83
|
+
};
|
|
69
84
|
readonly journey_label: {
|
|
70
85
|
readonly type: readonly ["string"];
|
|
71
86
|
readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"];
|
|
@@ -386,6 +401,9 @@ declare const MainModuleObj: {
|
|
|
386
401
|
};
|
|
387
402
|
readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
|
|
388
403
|
};
|
|
404
|
+
readonly phone: {
|
|
405
|
+
readonly type: readonly ["string", "null"];
|
|
406
|
+
};
|
|
389
407
|
readonly email: {
|
|
390
408
|
readonly type: readonly ["string", "null"];
|
|
391
409
|
readonly format: "email";
|
|
@@ -683,6 +701,9 @@ declare const MainModuleObj: {
|
|
|
683
701
|
readonly phone: "+1-202-555-0143";
|
|
684
702
|
};
|
|
685
703
|
};
|
|
704
|
+
readonly collection_point_id: {
|
|
705
|
+
readonly type: readonly ["string", "null"];
|
|
706
|
+
};
|
|
686
707
|
readonly is_pos: {
|
|
687
708
|
readonly type: readonly ["boolean"];
|
|
688
709
|
};
|
|
@@ -1269,7 +1290,6 @@ declare const MainModuleObj: {
|
|
|
1269
1290
|
};
|
|
1270
1291
|
readonly items: {
|
|
1271
1292
|
readonly type: "array";
|
|
1272
|
-
readonly additionalProperties: false;
|
|
1273
1293
|
readonly items: {
|
|
1274
1294
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
1275
1295
|
readonly title: "Order Shipment Item";
|
|
@@ -2156,7 +2176,6 @@ declare const MainModuleObj: {
|
|
|
2156
2176
|
};
|
|
2157
2177
|
readonly items: {
|
|
2158
2178
|
readonly type: "array";
|
|
2159
|
-
readonly additionalProperties: false;
|
|
2160
2179
|
readonly items: {
|
|
2161
2180
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2162
2181
|
readonly title: "Order Shipment Item";
|
|
@@ -2469,7 +2488,6 @@ declare const MainModuleObj: {
|
|
|
2469
2488
|
};
|
|
2470
2489
|
readonly items: {
|
|
2471
2490
|
readonly type: "array";
|
|
2472
|
-
readonly additionalProperties: false;
|
|
2473
2491
|
readonly items: {
|
|
2474
2492
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2475
2493
|
readonly title: "Order Shipment Item Returned";
|
|
@@ -2712,10 +2730,13 @@ declare const MainModuleObj: {
|
|
|
2712
2730
|
readonly type: readonly ["string", "null"];
|
|
2713
2731
|
};
|
|
2714
2732
|
readonly colour_id: {
|
|
2715
|
-
readonly type: readonly ["string"];
|
|
2733
|
+
readonly type: readonly ["string", "null"];
|
|
2716
2734
|
};
|
|
2717
2735
|
readonly style_id: {
|
|
2718
|
-
readonly type: readonly ["string"];
|
|
2736
|
+
readonly type: readonly ["string", "null"];
|
|
2737
|
+
};
|
|
2738
|
+
readonly product_id: {
|
|
2739
|
+
readonly type: readonly ["string", "null"];
|
|
2719
2740
|
};
|
|
2720
2741
|
readonly colour_name: {
|
|
2721
2742
|
readonly type: readonly ["string"];
|
|
@@ -2733,7 +2754,7 @@ declare const MainModuleObj: {
|
|
|
2733
2754
|
};
|
|
2734
2755
|
readonly unit_price_status: {
|
|
2735
2756
|
readonly type: "string";
|
|
2736
|
-
readonly enum: readonly ["
|
|
2757
|
+
readonly enum: readonly ["rrp", "perm", "pos"];
|
|
2737
2758
|
};
|
|
2738
2759
|
readonly returned_quantity: {
|
|
2739
2760
|
readonly type: readonly ["integer"];
|
|
@@ -2876,7 +2897,7 @@ declare const MainModuleObj: {
|
|
|
2876
2897
|
readonly currency: "USD";
|
|
2877
2898
|
readonly value: 12000;
|
|
2878
2899
|
};
|
|
2879
|
-
readonly unit_price_status: "
|
|
2900
|
+
readonly unit_price_status: "rrp";
|
|
2880
2901
|
readonly discount_amount_net: {
|
|
2881
2902
|
readonly currency: "USD";
|
|
2882
2903
|
readonly value: 0;
|
|
@@ -3397,6 +3418,9 @@ declare const MainModuleObj: {
|
|
|
3397
3418
|
};
|
|
3398
3419
|
readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
|
|
3399
3420
|
};
|
|
3421
|
+
readonly shipping_method: {
|
|
3422
|
+
readonly type: readonly ["string", "null"];
|
|
3423
|
+
};
|
|
3400
3424
|
};
|
|
3401
3425
|
readonly required: readonly ["erp_order_id", "status", "ordered_at", "items", "total"];
|
|
3402
3426
|
readonly $id: "https://shushed.example.com/order.schema.json";
|
|
@@ -181,10 +181,13 @@ declare const schema: {
|
|
|
181
181
|
readonly type: readonly ["string", "null"];
|
|
182
182
|
};
|
|
183
183
|
readonly colour_id: {
|
|
184
|
-
readonly type: readonly ["string"];
|
|
184
|
+
readonly type: readonly ["string", "null"];
|
|
185
185
|
};
|
|
186
186
|
readonly style_id: {
|
|
187
|
-
readonly type: readonly ["string"];
|
|
187
|
+
readonly type: readonly ["string", "null"];
|
|
188
|
+
};
|
|
189
|
+
readonly product_id: {
|
|
190
|
+
readonly type: readonly ["string", "null"];
|
|
188
191
|
};
|
|
189
192
|
readonly colour_name: {
|
|
190
193
|
readonly type: readonly ["string"];
|
|
@@ -202,7 +205,7 @@ declare const schema: {
|
|
|
202
205
|
};
|
|
203
206
|
readonly unit_price_status: {
|
|
204
207
|
readonly type: "string";
|
|
205
|
-
readonly enum: readonly ["
|
|
208
|
+
readonly enum: readonly ["rrp", "perm", "pos"];
|
|
206
209
|
};
|
|
207
210
|
readonly returned_quantity: {
|
|
208
211
|
readonly type: readonly ["integer"];
|
|
@@ -11,13 +11,12 @@ declare const schema: {
|
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
};
|
|
13
13
|
readonly centra_order_id: {
|
|
14
|
-
readonly type: readonly ["
|
|
15
|
-
readonly format: "uuid";
|
|
14
|
+
readonly type: readonly ["integer", "null"];
|
|
16
15
|
};
|
|
17
16
|
readonly sfcc_order_id: {
|
|
18
17
|
readonly type: readonly ["string", "null"];
|
|
19
18
|
};
|
|
20
|
-
readonly
|
|
19
|
+
readonly globale_order_id: {
|
|
21
20
|
readonly type: readonly ["string", "null"];
|
|
22
21
|
};
|
|
23
22
|
readonly sitoo_order_id: {
|
|
@@ -61,6 +60,22 @@ declare const schema: {
|
|
|
61
60
|
readonly card_number: {
|
|
62
61
|
readonly type: readonly ["string", "null"];
|
|
63
62
|
};
|
|
63
|
+
readonly card_holder: {
|
|
64
|
+
readonly type: readonly ["string", "null"];
|
|
65
|
+
};
|
|
66
|
+
readonly card_token: {
|
|
67
|
+
readonly type: readonly ["string", "null"];
|
|
68
|
+
};
|
|
69
|
+
readonly expiration_month: {
|
|
70
|
+
readonly type: readonly ["integer", "null"];
|
|
71
|
+
readonly minimum: 1;
|
|
72
|
+
readonly maximum: 12;
|
|
73
|
+
};
|
|
74
|
+
readonly expiration_year: {
|
|
75
|
+
readonly type: readonly ["integer", "null"];
|
|
76
|
+
readonly minimum: 2023;
|
|
77
|
+
readonly maximum: 2085;
|
|
78
|
+
};
|
|
64
79
|
readonly journey_label: {
|
|
65
80
|
readonly type: readonly ["string"];
|
|
66
81
|
readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"];
|
|
@@ -381,6 +396,9 @@ declare const schema: {
|
|
|
381
396
|
};
|
|
382
397
|
readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
|
|
383
398
|
};
|
|
399
|
+
readonly phone: {
|
|
400
|
+
readonly type: readonly ["string", "null"];
|
|
401
|
+
};
|
|
384
402
|
readonly email: {
|
|
385
403
|
readonly type: readonly ["string", "null"];
|
|
386
404
|
readonly format: "email";
|
|
@@ -678,6 +696,9 @@ declare const schema: {
|
|
|
678
696
|
readonly phone: "+1-202-555-0143";
|
|
679
697
|
};
|
|
680
698
|
};
|
|
699
|
+
readonly collection_point_id: {
|
|
700
|
+
readonly type: readonly ["string", "null"];
|
|
701
|
+
};
|
|
681
702
|
readonly is_pos: {
|
|
682
703
|
readonly type: readonly ["boolean"];
|
|
683
704
|
};
|
|
@@ -1264,7 +1285,6 @@ declare const schema: {
|
|
|
1264
1285
|
};
|
|
1265
1286
|
readonly items: {
|
|
1266
1287
|
readonly type: "array";
|
|
1267
|
-
readonly additionalProperties: false;
|
|
1268
1288
|
readonly items: {
|
|
1269
1289
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
1270
1290
|
readonly title: "Order Shipment Item";
|
|
@@ -2151,7 +2171,6 @@ declare const schema: {
|
|
|
2151
2171
|
};
|
|
2152
2172
|
readonly items: {
|
|
2153
2173
|
readonly type: "array";
|
|
2154
|
-
readonly additionalProperties: false;
|
|
2155
2174
|
readonly items: {
|
|
2156
2175
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2157
2176
|
readonly title: "Order Shipment Item";
|
|
@@ -2464,7 +2483,6 @@ declare const schema: {
|
|
|
2464
2483
|
};
|
|
2465
2484
|
readonly items: {
|
|
2466
2485
|
readonly type: "array";
|
|
2467
|
-
readonly additionalProperties: false;
|
|
2468
2486
|
readonly items: {
|
|
2469
2487
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2470
2488
|
readonly title: "Order Shipment Item Returned";
|
|
@@ -2707,10 +2725,13 @@ declare const schema: {
|
|
|
2707
2725
|
readonly type: readonly ["string", "null"];
|
|
2708
2726
|
};
|
|
2709
2727
|
readonly colour_id: {
|
|
2710
|
-
readonly type: readonly ["string"];
|
|
2728
|
+
readonly type: readonly ["string", "null"];
|
|
2711
2729
|
};
|
|
2712
2730
|
readonly style_id: {
|
|
2713
|
-
readonly type: readonly ["string"];
|
|
2731
|
+
readonly type: readonly ["string", "null"];
|
|
2732
|
+
};
|
|
2733
|
+
readonly product_id: {
|
|
2734
|
+
readonly type: readonly ["string", "null"];
|
|
2714
2735
|
};
|
|
2715
2736
|
readonly colour_name: {
|
|
2716
2737
|
readonly type: readonly ["string"];
|
|
@@ -2728,7 +2749,7 @@ declare const schema: {
|
|
|
2728
2749
|
};
|
|
2729
2750
|
readonly unit_price_status: {
|
|
2730
2751
|
readonly type: "string";
|
|
2731
|
-
readonly enum: readonly ["
|
|
2752
|
+
readonly enum: readonly ["rrp", "perm", "pos"];
|
|
2732
2753
|
};
|
|
2733
2754
|
readonly returned_quantity: {
|
|
2734
2755
|
readonly type: readonly ["integer"];
|
|
@@ -2871,7 +2892,7 @@ declare const schema: {
|
|
|
2871
2892
|
readonly currency: "USD";
|
|
2872
2893
|
readonly value: 12000;
|
|
2873
2894
|
};
|
|
2874
|
-
readonly unit_price_status: "
|
|
2895
|
+
readonly unit_price_status: "rrp";
|
|
2875
2896
|
readonly discount_amount_net: {
|
|
2876
2897
|
readonly currency: "USD";
|
|
2877
2898
|
readonly value: 0;
|
|
@@ -3392,6 +3413,9 @@ declare const schema: {
|
|
|
3392
3413
|
};
|
|
3393
3414
|
readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
|
|
3394
3415
|
};
|
|
3416
|
+
readonly shipping_method: {
|
|
3417
|
+
readonly type: readonly ["string", "null"];
|
|
3418
|
+
};
|
|
3395
3419
|
};
|
|
3396
3420
|
readonly required: readonly ["erp_order_id", "status", "ordered_at", "items", "total"];
|
|
3397
3421
|
readonly $id: "https://shushed.example.com/order.schema.json";
|
|
@@ -25,6 +25,22 @@ declare const schema: {
|
|
|
25
25
|
readonly card_number: {
|
|
26
26
|
readonly type: readonly ["string", "null"];
|
|
27
27
|
};
|
|
28
|
+
readonly card_holder: {
|
|
29
|
+
readonly type: readonly ["string", "null"];
|
|
30
|
+
};
|
|
31
|
+
readonly card_token: {
|
|
32
|
+
readonly type: readonly ["string", "null"];
|
|
33
|
+
};
|
|
34
|
+
readonly expiration_month: {
|
|
35
|
+
readonly type: readonly ["integer", "null"];
|
|
36
|
+
readonly minimum: 1;
|
|
37
|
+
readonly maximum: 12;
|
|
38
|
+
};
|
|
39
|
+
readonly expiration_year: {
|
|
40
|
+
readonly type: readonly ["integer", "null"];
|
|
41
|
+
readonly minimum: 2023;
|
|
42
|
+
readonly maximum: 2085;
|
|
43
|
+
};
|
|
28
44
|
readonly journey_label: {
|
|
29
45
|
readonly type: readonly ["string"];
|
|
30
46
|
readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"];
|
|
@@ -290,7 +290,6 @@ declare const schema: {
|
|
|
290
290
|
};
|
|
291
291
|
readonly items: {
|
|
292
292
|
readonly type: "array";
|
|
293
|
-
readonly additionalProperties: false;
|
|
294
293
|
readonly items: {
|
|
295
294
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
296
295
|
readonly title: "Order Shipment Item Returned";
|
|
@@ -51,13 +51,14 @@ export type OrderShipmentPOSReturn = (OrderShipmentOutbound & {
|
|
|
51
51
|
export type Item = (Total & {
|
|
52
52
|
sku: string;
|
|
53
53
|
linked_style_id?: (string | null);
|
|
54
|
-
colour_id: string;
|
|
55
|
-
style_id: string;
|
|
54
|
+
colour_id: (string | null);
|
|
55
|
+
style_id: (string | null);
|
|
56
|
+
product_id?: (string | null);
|
|
56
57
|
colour_name?: string;
|
|
57
58
|
size_name?: string;
|
|
58
59
|
preorder_date?: (string | null);
|
|
59
60
|
quantity: number;
|
|
60
|
-
unit_price_status: ("
|
|
61
|
+
unit_price_status: ("rrp" | "perm" | "pos");
|
|
61
62
|
returned_quantity?: number;
|
|
62
63
|
unit_price_net: Money1;
|
|
63
64
|
unit_price_gross: Money2;
|
|
@@ -68,9 +69,9 @@ export type Item = (Total & {
|
|
|
68
69
|
export interface Order {
|
|
69
70
|
status: ("NEW" | "PENDING" | "CONFIRMED" | "PROCESSING" | "PROCESSED" | "PACKED" | "SHIPPED" | "DELIVERED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED" | "ARCHIVED" | "FAILED");
|
|
70
71
|
erp_order_id: string;
|
|
71
|
-
centra_order_id?: (
|
|
72
|
+
centra_order_id?: (number | null);
|
|
72
73
|
sfcc_order_id?: (string | null);
|
|
73
|
-
|
|
74
|
+
globale_order_id?: (string | null);
|
|
74
75
|
sitoo_order_id?: (string | null);
|
|
75
76
|
system_created_by?: ("POS" | "ECOMMERCE" | "SYSTEM");
|
|
76
77
|
ordered_at: string;
|
|
@@ -80,6 +81,7 @@ export interface Order {
|
|
|
80
81
|
customer?: Customer;
|
|
81
82
|
billing_address?: (Address | null);
|
|
82
83
|
shipping_address?: (Address | null);
|
|
84
|
+
collection_point_id?: (string | null);
|
|
83
85
|
is_pos?: boolean;
|
|
84
86
|
shipments?: [
|
|
85
87
|
(OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
|
|
@@ -92,6 +94,7 @@ export interface Order {
|
|
|
92
94
|
total: Total1;
|
|
93
95
|
return_total?: Total2;
|
|
94
96
|
net_total?: Total3;
|
|
97
|
+
shipping_method?: (string | null);
|
|
95
98
|
[k: string]: unknown;
|
|
96
99
|
}
|
|
97
100
|
export interface Payment {
|
|
@@ -101,6 +104,10 @@ export interface Payment {
|
|
|
101
104
|
payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
|
|
102
105
|
transaction_id: string;
|
|
103
106
|
card_number?: (string | null);
|
|
107
|
+
card_holder?: (string | null);
|
|
108
|
+
card_token?: (string | null);
|
|
109
|
+
expiration_month?: (number | null);
|
|
110
|
+
expiration_year?: (number | null);
|
|
104
111
|
journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
|
|
105
112
|
psp_reference: string;
|
|
106
113
|
card_brand?: (string | null);
|
|
@@ -128,6 +135,7 @@ export interface Customer {
|
|
|
128
135
|
scv_customer_id?: string;
|
|
129
136
|
addresses?: Address[];
|
|
130
137
|
default_shipping_address?: Address1;
|
|
138
|
+
phone?: (string | null);
|
|
131
139
|
email: (string | null);
|
|
132
140
|
opt_in_email?: boolean;
|
|
133
141
|
opt_in_phone?: boolean;
|
|
@@ -51,13 +51,14 @@ export type OrderShipmentPOSReturn = (OrderShipmentOutbound & {
|
|
|
51
51
|
export type Item = (Total & {
|
|
52
52
|
sku: string;
|
|
53
53
|
linked_style_id?: (string | null);
|
|
54
|
-
colour_id: string;
|
|
55
|
-
style_id: string;
|
|
54
|
+
colour_id: (string | null);
|
|
55
|
+
style_id: (string | null);
|
|
56
|
+
product_id?: (string | null);
|
|
56
57
|
colour_name?: string;
|
|
57
58
|
size_name?: string;
|
|
58
59
|
preorder_date?: (string | null);
|
|
59
60
|
quantity: number;
|
|
60
|
-
unit_price_status: ("
|
|
61
|
+
unit_price_status: ("rrp" | "perm" | "pos");
|
|
61
62
|
returned_quantity?: number;
|
|
62
63
|
unit_price_net: Money1;
|
|
63
64
|
unit_price_gross: Money2;
|
|
@@ -68,9 +69,9 @@ export type Item = (Total & {
|
|
|
68
69
|
export interface Order {
|
|
69
70
|
status: ("NEW" | "PENDING" | "CONFIRMED" | "PROCESSING" | "PROCESSED" | "PACKED" | "SHIPPED" | "DELIVERED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED" | "ARCHIVED" | "FAILED");
|
|
70
71
|
erp_order_id: string;
|
|
71
|
-
centra_order_id?: (
|
|
72
|
+
centra_order_id?: (number | null);
|
|
72
73
|
sfcc_order_id?: (string | null);
|
|
73
|
-
|
|
74
|
+
globale_order_id?: (string | null);
|
|
74
75
|
sitoo_order_id?: (string | null);
|
|
75
76
|
system_created_by?: ("POS" | "ECOMMERCE" | "SYSTEM");
|
|
76
77
|
ordered_at: string;
|
|
@@ -80,6 +81,7 @@ export interface Order {
|
|
|
80
81
|
customer?: Customer;
|
|
81
82
|
billing_address?: (Address | null);
|
|
82
83
|
shipping_address?: (Address | null);
|
|
84
|
+
collection_point_id?: (string | null);
|
|
83
85
|
is_pos?: boolean;
|
|
84
86
|
shipments?: [
|
|
85
87
|
(OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
|
|
@@ -92,6 +94,7 @@ export interface Order {
|
|
|
92
94
|
total: Total1;
|
|
93
95
|
return_total?: Total2;
|
|
94
96
|
net_total?: Total3;
|
|
97
|
+
shipping_method?: (string | null);
|
|
95
98
|
[k: string]: unknown;
|
|
96
99
|
}
|
|
97
100
|
export interface Payment {
|
|
@@ -101,6 +104,10 @@ export interface Payment {
|
|
|
101
104
|
payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
|
|
102
105
|
transaction_id: string;
|
|
103
106
|
card_number?: (string | null);
|
|
107
|
+
card_holder?: (string | null);
|
|
108
|
+
card_token?: (string | null);
|
|
109
|
+
expiration_month?: (number | null);
|
|
110
|
+
expiration_year?: (number | null);
|
|
104
111
|
journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
|
|
105
112
|
psp_reference: string;
|
|
106
113
|
card_brand?: (string | null);
|
|
@@ -128,6 +135,7 @@ export interface Customer {
|
|
|
128
135
|
scv_customer_id?: string;
|
|
129
136
|
addresses?: Address[];
|
|
130
137
|
default_shipping_address?: Address1;
|
|
138
|
+
phone?: (string | null);
|
|
131
139
|
email: (string | null);
|
|
132
140
|
opt_in_email?: boolean;
|
|
133
141
|
opt_in_phone?: boolean;
|
|
@@ -51,13 +51,14 @@ export type OrderShipmentPOSReturn = (OrderShipmentOutbound & {
|
|
|
51
51
|
export type Item = (Total & {
|
|
52
52
|
sku: string;
|
|
53
53
|
linked_style_id?: (string | null);
|
|
54
|
-
colour_id: string;
|
|
55
|
-
style_id: string;
|
|
54
|
+
colour_id: (string | null);
|
|
55
|
+
style_id: (string | null);
|
|
56
|
+
product_id?: (string | null);
|
|
56
57
|
colour_name?: string;
|
|
57
58
|
size_name?: string;
|
|
58
59
|
preorder_date?: (string | null);
|
|
59
60
|
quantity: number;
|
|
60
|
-
unit_price_status: ("
|
|
61
|
+
unit_price_status: ("rrp" | "perm" | "pos");
|
|
61
62
|
returned_quantity?: number;
|
|
62
63
|
unit_price_net: Money1;
|
|
63
64
|
unit_price_gross: Money2;
|
|
@@ -68,9 +69,9 @@ export type Item = (Total & {
|
|
|
68
69
|
export interface Order {
|
|
69
70
|
status: ("NEW" | "PENDING" | "CONFIRMED" | "PROCESSING" | "PROCESSED" | "PACKED" | "SHIPPED" | "DELIVERED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED" | "ARCHIVED" | "FAILED");
|
|
70
71
|
erp_order_id: string;
|
|
71
|
-
centra_order_id?: (
|
|
72
|
+
centra_order_id?: (number | null);
|
|
72
73
|
sfcc_order_id?: (string | null);
|
|
73
|
-
|
|
74
|
+
globale_order_id?: (string | null);
|
|
74
75
|
sitoo_order_id?: (string | null);
|
|
75
76
|
system_created_by?: ("POS" | "ECOMMERCE" | "SYSTEM");
|
|
76
77
|
ordered_at: string;
|
|
@@ -80,6 +81,7 @@ export interface Order {
|
|
|
80
81
|
customer?: Customer;
|
|
81
82
|
billing_address?: (Address | null);
|
|
82
83
|
shipping_address?: (Address | null);
|
|
84
|
+
collection_point_id?: (string | null);
|
|
83
85
|
is_pos?: boolean;
|
|
84
86
|
shipments?: [
|
|
85
87
|
(OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
|
|
@@ -92,6 +94,7 @@ export interface Order {
|
|
|
92
94
|
total: Total1;
|
|
93
95
|
return_total?: Total2;
|
|
94
96
|
net_total?: Total3;
|
|
97
|
+
shipping_method?: (string | null);
|
|
95
98
|
[k: string]: unknown;
|
|
96
99
|
}
|
|
97
100
|
export interface Payment {
|
|
@@ -101,6 +104,10 @@ export interface Payment {
|
|
|
101
104
|
payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
|
|
102
105
|
transaction_id: string;
|
|
103
106
|
card_number?: (string | null);
|
|
107
|
+
card_holder?: (string | null);
|
|
108
|
+
card_token?: (string | null);
|
|
109
|
+
expiration_month?: (number | null);
|
|
110
|
+
expiration_year?: (number | null);
|
|
104
111
|
journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
|
|
105
112
|
psp_reference: string;
|
|
106
113
|
card_brand?: (string | null);
|
|
@@ -128,6 +135,7 @@ export interface Customer {
|
|
|
128
135
|
scv_customer_id?: string;
|
|
129
136
|
addresses?: Address[];
|
|
130
137
|
default_shipping_address?: Address1;
|
|
138
|
+
phone?: (string | null);
|
|
131
139
|
email: (string | null);
|
|
132
140
|
opt_in_email?: boolean;
|
|
133
141
|
opt_in_phone?: boolean;
|