@shushed/helpers 0.0.288 → 0.0.290
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 +4 -0
- package/dist/cjs/contracts/order/address.schema.json +14 -18
- package/dist/cjs/contracts/order/item.schema.json +6 -1
- package/dist/cjs/contracts/order/payment.schema.json +4 -4
- package/dist/cjs/contracts/order/shipment/item.schema.json +6 -1
- package/dist/cjs/contracts/order/shipment.schema.json +14 -0
- package/dist/cjs/contracts/order.schema.json +53 -53
- package/dist/cjs/dist-dereferenced/asset.js +1 -1
- package/dist/cjs/dist-dereferenced/development-colour.js +1 -1
- 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/messages/product.js +1 -1
- package/dist/cjs/dist-dereferenced/order/address.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/item/itemMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +1 -1
- package/dist/cjs/dist-dereferenced/product.js +1 -1
- package/dist/cjs/src-public/bcOrder.js +125 -110
- package/dist/types/dist-dereferenced/asset.d.ts +3 -0
- package/dist/types/dist-dereferenced/development-colour.d.ts +3 -0
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +117 -105
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +117 -105
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +117 -105
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +117 -105
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +117 -105
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +117 -105
- package/dist/types/dist-dereferenced/messages/product.d.ts +3 -0
- package/dist/types/dist-dereferenced/order/address.d.ts +10 -14
- package/dist/types/dist-dereferenced/order/customer.d.ts +10 -14
- package/dist/types/dist-dereferenced/order/index.d.ts +117 -105
- package/dist/types/dist-dereferenced/order/item.d.ts +3 -0
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +117 -105
- package/dist/types/dist-dereferenced/order/payment.d.ts +2 -2
- package/dist/types/dist-dereferenced/order/shipment/index.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +4 -1
- package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +4 -1
- package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +4 -1
- package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +15 -1
- package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +15 -1
- package/dist/types/dist-dereferenced/product.d.ts +3 -0
- package/dist/types/dist-types/asset.d.ts +1 -0
- package/dist/types/dist-types/development-colour.d.ts +1 -0
- package/dist/types/dist-types/messages/order/delivered.d.ts +14 -9
- package/dist/types/dist-types/messages/order/new.d.ts +14 -9
- package/dist/types/dist-types/messages/order/processed.d.ts +14 -9
- package/dist/types/dist-types/messages/order/return-initiated.d.ts +14 -9
- package/dist/types/dist-types/messages/order/returned.d.ts +14 -9
- package/dist/types/dist-types/messages/order/shipped.d.ts +14 -9
- package/dist/types/dist-types/messages/product.d.ts +1 -0
- package/dist/types/dist-types/order/address.d.ts +3 -3
- package/dist/types/dist-types/order/customer.d.ts +6 -6
- package/dist/types/dist-types/order/item.d.ts +1 -0
- package/dist/types/dist-types/order/orderMain.d.ts +14 -9
- package/dist/types/dist-types/order/payment.d.ts +2 -2
- package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +1 -0
- package/dist/types/dist-types/order/shipment/item/returned.d.ts +1 -0
- package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/pos/return.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/shipped/return.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +4 -0
- package/dist/types/dist-types/product.d.ts +1 -0
- package/package.json +1 -1
|
@@ -24,7 +24,6 @@ declare const schema: {
|
|
|
24
24
|
};
|
|
25
25
|
readonly sitoo_order_id: {
|
|
26
26
|
readonly type: readonly ["string", "null"];
|
|
27
|
-
readonly format: "uuid";
|
|
28
27
|
};
|
|
29
28
|
readonly system_created_by: {
|
|
30
29
|
readonly type: "string";
|
|
@@ -58,7 +57,7 @@ declare const schema: {
|
|
|
58
57
|
readonly enum: readonly ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"];
|
|
59
58
|
};
|
|
60
59
|
readonly transaction_id: {
|
|
61
|
-
readonly type: readonly ["string"];
|
|
60
|
+
readonly type: readonly ["string", "null"];
|
|
62
61
|
};
|
|
63
62
|
readonly card_number: {
|
|
64
63
|
readonly type: readonly ["string", "null"];
|
|
@@ -84,7 +83,7 @@ declare const schema: {
|
|
|
84
83
|
readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM", null];
|
|
85
84
|
};
|
|
86
85
|
readonly psp_reference: {
|
|
87
|
-
readonly type: "string";
|
|
86
|
+
readonly type: readonly ["string", "null"];
|
|
88
87
|
};
|
|
89
88
|
readonly card_brand: {
|
|
90
89
|
readonly type: readonly ["string", "null"];
|
|
@@ -94,7 +93,7 @@ declare const schema: {
|
|
|
94
93
|
readonly enum: readonly ["CAPTURED", "FAILED", "FAILED-3DS", "CANCELLED"];
|
|
95
94
|
};
|
|
96
95
|
readonly amount: {
|
|
97
|
-
readonly $ref: "#/allOf/0/properties/
|
|
96
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
98
97
|
};
|
|
99
98
|
readonly created_by: {
|
|
100
99
|
readonly anyOf: readonly [{
|
|
@@ -113,16 +112,20 @@ declare const schema: {
|
|
|
113
112
|
readonly created_at: "2024-12-25T15:35:00Z";
|
|
114
113
|
readonly payment_method: "CREDIT-CARD";
|
|
115
114
|
readonly transaction_id: "TR123456789";
|
|
116
|
-
readonly card_number: "
|
|
117
|
-
readonly journey_label:
|
|
118
|
-
readonly psp_reference: "
|
|
119
|
-
readonly card_brand: "
|
|
115
|
+
readonly card_number: "XXXX-XXXX-XXXX-1234";
|
|
116
|
+
readonly journey_label: null;
|
|
117
|
+
readonly psp_reference: "TR123456789";
|
|
118
|
+
readonly card_brand: "Visa";
|
|
120
119
|
readonly status: "CAPTURED";
|
|
121
120
|
readonly amount: {
|
|
122
|
-
readonly currency: "
|
|
121
|
+
readonly currency: "GBP";
|
|
123
122
|
readonly value: 15000;
|
|
123
|
+
readonly decimal_places: 2;
|
|
124
|
+
readonly lcy_value: 15000;
|
|
125
|
+
readonly lcy_currency: "GBP";
|
|
126
|
+
readonly lcy_decimal_places: 2;
|
|
124
127
|
};
|
|
125
|
-
readonly created_by: "
|
|
128
|
+
readonly created_by: "MOTO";
|
|
126
129
|
}];
|
|
127
130
|
};
|
|
128
131
|
readonly is_anonymous: {
|
|
@@ -131,6 +134,9 @@ declare const schema: {
|
|
|
131
134
|
readonly is_gift: {
|
|
132
135
|
readonly type: readonly ["boolean"];
|
|
133
136
|
};
|
|
137
|
+
readonly is_pos: {
|
|
138
|
+
readonly type: readonly ["boolean"];
|
|
139
|
+
};
|
|
134
140
|
readonly customer: {
|
|
135
141
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
136
142
|
readonly title: "Customer";
|
|
@@ -297,40 +303,36 @@ declare const schema: {
|
|
|
297
303
|
};
|
|
298
304
|
readonly company_name: {
|
|
299
305
|
readonly type: "string";
|
|
300
|
-
readonly maxLength:
|
|
306
|
+
readonly maxLength: 100;
|
|
301
307
|
};
|
|
302
308
|
readonly first_name: {
|
|
303
|
-
readonly type: "string";
|
|
304
|
-
readonly maxLength:
|
|
305
|
-
readonly minLength: 1;
|
|
309
|
+
readonly type: readonly ["string", "null"];
|
|
310
|
+
readonly maxLength: 50;
|
|
306
311
|
};
|
|
307
312
|
readonly last_name: {
|
|
308
|
-
readonly type: "string";
|
|
309
|
-
readonly maxLength:
|
|
310
|
-
readonly minLength: 1;
|
|
313
|
+
readonly type: readonly ["string", "null"];
|
|
314
|
+
readonly maxLength: 50;
|
|
311
315
|
};
|
|
312
316
|
readonly address1: {
|
|
313
317
|
readonly type: readonly ["string"];
|
|
314
318
|
readonly minLength: 1;
|
|
315
|
-
readonly maxLength:
|
|
319
|
+
readonly maxLength: 100;
|
|
316
320
|
};
|
|
317
321
|
readonly address2: {
|
|
318
322
|
readonly type: readonly ["string", "null"];
|
|
319
|
-
readonly maxLength:
|
|
323
|
+
readonly maxLength: 100;
|
|
320
324
|
};
|
|
321
325
|
readonly city: {
|
|
322
|
-
readonly type: readonly ["string"];
|
|
323
|
-
readonly maxLength:
|
|
324
|
-
readonly minLength: 1;
|
|
326
|
+
readonly type: readonly ["string", "null"];
|
|
327
|
+
readonly maxLength: 50;
|
|
325
328
|
};
|
|
326
329
|
readonly region: {
|
|
327
330
|
readonly type: readonly ["string", "null"];
|
|
328
|
-
readonly maxLength:
|
|
331
|
+
readonly maxLength: 50;
|
|
329
332
|
};
|
|
330
333
|
readonly post_code: {
|
|
331
334
|
readonly type: readonly ["string", "null"];
|
|
332
335
|
readonly maxLength: 20;
|
|
333
|
-
readonly pattern: "^[A-Z0-9 ]*$";
|
|
334
336
|
};
|
|
335
337
|
readonly country_code: {
|
|
336
338
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
@@ -363,11 +365,10 @@ declare const schema: {
|
|
|
363
365
|
readonly last_name: "Johnson";
|
|
364
366
|
readonly address1: "123 Main St";
|
|
365
367
|
readonly address2: "Apt 4B";
|
|
366
|
-
readonly city: "
|
|
367
|
-
readonly
|
|
368
|
-
readonly
|
|
369
|
-
readonly
|
|
370
|
-
readonly phone: "+1-202-555-0143";
|
|
368
|
+
readonly city: "London";
|
|
369
|
+
readonly post_code: "SW1A 1AA";
|
|
370
|
+
readonly country_code: "GB";
|
|
371
|
+
readonly phone: "+44 7700 900000";
|
|
371
372
|
};
|
|
372
373
|
};
|
|
373
374
|
readonly shipping_address: {
|
|
@@ -381,19 +382,15 @@ declare const schema: {
|
|
|
381
382
|
readonly last_name: "Johnson";
|
|
382
383
|
readonly address1: "123 Main St";
|
|
383
384
|
readonly address2: "Apt 4B";
|
|
384
|
-
readonly city: "
|
|
385
|
-
readonly
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
readonly phone: "+1-202-555-0143";
|
|
385
|
+
readonly city: "London";
|
|
386
|
+
readonly post_code: "SW1A 1AA";
|
|
387
|
+
readonly country_code: "GB";
|
|
388
|
+
readonly phone: "+44 7700 900000";
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
391
|
readonly collection_point_id: {
|
|
392
392
|
readonly type: readonly ["string", "null"];
|
|
393
393
|
};
|
|
394
|
-
readonly is_pos: {
|
|
395
|
-
readonly type: readonly ["boolean"];
|
|
396
|
-
};
|
|
397
394
|
readonly shipments: {
|
|
398
395
|
readonly type: "array";
|
|
399
396
|
readonly minItems: 1;
|
|
@@ -439,6 +436,17 @@ declare const schema: {
|
|
|
439
436
|
readonly discount_campaign: {
|
|
440
437
|
readonly type: readonly ["string", "null"];
|
|
441
438
|
};
|
|
439
|
+
readonly courier_name: {
|
|
440
|
+
readonly type: readonly ["string", "null"];
|
|
441
|
+
readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
|
|
442
|
+
};
|
|
443
|
+
readonly tracking_code: {
|
|
444
|
+
readonly type: readonly ["string", "null"];
|
|
445
|
+
};
|
|
446
|
+
readonly class_name: {
|
|
447
|
+
readonly type: readonly ["string"];
|
|
448
|
+
readonly enum: readonly ["STANDARD", "PRIORITY"];
|
|
449
|
+
};
|
|
442
450
|
readonly items: {
|
|
443
451
|
readonly type: readonly ["array"];
|
|
444
452
|
readonly items: {
|
|
@@ -475,12 +483,15 @@ declare const schema: {
|
|
|
475
483
|
readonly type: readonly ["integer"];
|
|
476
484
|
readonly minimum: 0;
|
|
477
485
|
};
|
|
486
|
+
readonly sku: {
|
|
487
|
+
readonly type: readonly ["string"];
|
|
488
|
+
};
|
|
478
489
|
readonly quantity: {
|
|
479
490
|
readonly type: readonly ["integer"];
|
|
480
491
|
readonly minimum: 1;
|
|
481
492
|
};
|
|
482
493
|
};
|
|
483
|
-
readonly required: readonly ["lineNumber", "quantity"];
|
|
494
|
+
readonly required: readonly ["lineNumber", "sku", "quantity"];
|
|
484
495
|
};
|
|
485
496
|
};
|
|
486
497
|
};
|
|
@@ -615,17 +626,14 @@ declare const schema: {
|
|
|
615
626
|
readonly type: "SHIPPED-OUTBOUND";
|
|
616
627
|
readonly shipped_at: "2024-12-26T10:00:00Z";
|
|
617
628
|
readonly status: "SHIPPED";
|
|
629
|
+
readonly shipped_by: "TORQUE";
|
|
630
|
+
readonly courier_name: "EVRI";
|
|
631
|
+
readonly tracking_code: "TRK002345678901";
|
|
632
|
+
readonly class_name: "PRIORITY";
|
|
618
633
|
readonly items: readonly [{
|
|
619
|
-
readonly
|
|
634
|
+
readonly lineNumber: 1;
|
|
635
|
+
readonly sku: "PROD004-4001-14";
|
|
620
636
|
readonly quantity: 1;
|
|
621
|
-
readonly unit_price_net: {
|
|
622
|
-
readonly currency: "USD";
|
|
623
|
-
readonly value: 10000;
|
|
624
|
-
};
|
|
625
|
-
readonly unit_price_gross: {
|
|
626
|
-
readonly currency: "USD";
|
|
627
|
-
readonly value: 12000;
|
|
628
|
-
};
|
|
629
637
|
}];
|
|
630
638
|
}];
|
|
631
639
|
};
|
|
@@ -642,19 +650,52 @@ declare const schema: {
|
|
|
642
650
|
readonly type: "object";
|
|
643
651
|
readonly properties: {
|
|
644
652
|
readonly amount_net: {
|
|
645
|
-
readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
|
|
646
653
|
readonly title: "Amount Net";
|
|
654
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
655
|
+
readonly type: "object";
|
|
656
|
+
readonly additionalProperties: false;
|
|
657
|
+
readonly properties: {
|
|
658
|
+
readonly value: {
|
|
659
|
+
readonly type: "integer";
|
|
660
|
+
readonly minimum: 0;
|
|
661
|
+
};
|
|
662
|
+
readonly decimal_places: {
|
|
663
|
+
readonly type: "integer";
|
|
664
|
+
readonly minimum: 0;
|
|
665
|
+
readonly maximum: 4;
|
|
666
|
+
};
|
|
667
|
+
readonly currency: {
|
|
668
|
+
readonly title: "Currency";
|
|
669
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
670
|
+
readonly type: "string";
|
|
671
|
+
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
672
|
+
};
|
|
673
|
+
readonly lcy_value: {
|
|
674
|
+
readonly type: "integer";
|
|
675
|
+
readonly minimum: 0;
|
|
676
|
+
};
|
|
677
|
+
readonly lcy_currency: {
|
|
678
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net/properties/currency";
|
|
679
|
+
readonly title: "LCY Currency";
|
|
680
|
+
};
|
|
681
|
+
readonly lcy_decimal_places: {
|
|
682
|
+
readonly type: "integer";
|
|
683
|
+
readonly minimum: 0;
|
|
684
|
+
readonly maximum: 4;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
647
688
|
};
|
|
648
689
|
readonly amount_gross: {
|
|
649
|
-
readonly $ref: "#/allOf/0/properties/
|
|
690
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
650
691
|
readonly title: "Amount gross";
|
|
651
692
|
};
|
|
652
693
|
readonly discount_amount_net: {
|
|
653
|
-
readonly $ref: "#/allOf/0/properties/
|
|
694
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
654
695
|
readonly title: "Discount Amount Net";
|
|
655
696
|
};
|
|
656
697
|
readonly discount_amount_gross: {
|
|
657
|
-
readonly $ref: "#/allOf/0/properties/
|
|
698
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
658
699
|
readonly title: "Discount Amount Gross";
|
|
659
700
|
};
|
|
660
701
|
readonly discount_amount_percent: {
|
|
@@ -706,10 +747,10 @@ declare const schema: {
|
|
|
706
747
|
readonly minimum: 0;
|
|
707
748
|
};
|
|
708
749
|
readonly unit_price_net: {
|
|
709
|
-
readonly $ref: "#/allOf/0/properties/
|
|
750
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
710
751
|
};
|
|
711
752
|
readonly unit_price_gross: {
|
|
712
|
-
readonly $ref: "#/allOf/0/properties/
|
|
753
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
713
754
|
};
|
|
714
755
|
readonly discount_code: {
|
|
715
756
|
readonly type: readonly ["string", "null"];
|
|
@@ -718,68 +759,39 @@ declare const schema: {
|
|
|
718
759
|
readonly type: readonly ["string", "null"];
|
|
719
760
|
};
|
|
720
761
|
readonly cost_net: {
|
|
721
|
-
readonly $
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
readonly
|
|
725
|
-
readonly properties: {
|
|
726
|
-
readonly value: {
|
|
727
|
-
readonly type: "integer";
|
|
728
|
-
readonly minimum: 0;
|
|
729
|
-
};
|
|
730
|
-
readonly decimal_places: {
|
|
731
|
-
readonly type: "integer";
|
|
732
|
-
readonly minimum: 0;
|
|
733
|
-
readonly maximum: 4;
|
|
734
|
-
};
|
|
735
|
-
readonly currency: {
|
|
736
|
-
readonly title: "Currency";
|
|
737
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
738
|
-
readonly type: "string";
|
|
739
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
740
|
-
};
|
|
741
|
-
readonly lcy_value: {
|
|
742
|
-
readonly type: "integer";
|
|
743
|
-
readonly minimum: 0;
|
|
744
|
-
};
|
|
745
|
-
readonly lcy_currency: {
|
|
746
|
-
readonly $ref: "#/allOf/0/properties/total/properties/amount_net/properties/currency";
|
|
747
|
-
readonly title: "LCY Currency";
|
|
748
|
-
};
|
|
749
|
-
readonly lcy_decimal_places: {
|
|
750
|
-
readonly type: "integer";
|
|
751
|
-
readonly minimum: 0;
|
|
752
|
-
readonly maximum: 4;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
762
|
+
readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
|
|
763
|
+
};
|
|
764
|
+
readonly order_line_no: {
|
|
765
|
+
readonly type: readonly ["integer", "null"];
|
|
756
766
|
};
|
|
757
767
|
};
|
|
758
768
|
readonly required: readonly ["sku", "colour_id", "style_id", "quantity", "unit_price_net", "unit_price_gross", "unit_price_status"];
|
|
759
769
|
}];
|
|
760
770
|
};
|
|
761
771
|
readonly example: readonly [{
|
|
762
|
-
readonly sku: "
|
|
763
|
-
readonly colour_id: "
|
|
764
|
-
readonly style_id: "
|
|
772
|
+
readonly sku: "PROD004-4001-14";
|
|
773
|
+
readonly colour_id: "4001";
|
|
774
|
+
readonly style_id: "PROD004";
|
|
775
|
+
readonly product_id: "PROD004-4001";
|
|
765
776
|
readonly quantity: 1;
|
|
777
|
+
readonly returned_quantity: 0;
|
|
766
778
|
readonly unit_price_net: {
|
|
767
|
-
readonly currency: "
|
|
768
|
-
readonly value:
|
|
779
|
+
readonly currency: "GBP";
|
|
780
|
+
readonly value: 6584;
|
|
781
|
+
readonly decimal_places: 2;
|
|
782
|
+
readonly lcy_value: 6584;
|
|
783
|
+
readonly lcy_currency: "GBP";
|
|
784
|
+
readonly lcy_decimal_places: 2;
|
|
769
785
|
};
|
|
770
786
|
readonly unit_price_gross: {
|
|
771
|
-
readonly currency: "
|
|
772
|
-
readonly value:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
readonly
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
readonly discount_amount_gross: {
|
|
780
|
-
readonly currency: "USD";
|
|
781
|
-
readonly value: 0;
|
|
782
|
-
};
|
|
787
|
+
readonly currency: "GBP";
|
|
788
|
+
readonly value: 7900;
|
|
789
|
+
readonly decimal_places: 2;
|
|
790
|
+
readonly lcy_value: 7900;
|
|
791
|
+
readonly lcy_currency: "GBP";
|
|
792
|
+
readonly lcy_decimal_places: 2;
|
|
793
|
+
};
|
|
794
|
+
readonly unit_price_status: "perm";
|
|
783
795
|
}];
|
|
784
796
|
};
|
|
785
797
|
readonly total: {
|
|
@@ -110,6 +110,9 @@ declare const schema: {
|
|
|
110
110
|
readonly type: "string";
|
|
111
111
|
readonly pattern: "^[a-z0-9-.]+$";
|
|
112
112
|
};
|
|
113
|
+
readonly is_product: {
|
|
114
|
+
readonly type: "boolean";
|
|
115
|
+
};
|
|
113
116
|
};
|
|
114
117
|
readonly required: readonly ["source_url", "content_type", "last_modified_at"];
|
|
115
118
|
};
|
|
@@ -39,40 +39,36 @@ declare const schema: {
|
|
|
39
39
|
};
|
|
40
40
|
readonly company_name: {
|
|
41
41
|
readonly type: "string";
|
|
42
|
-
readonly maxLength:
|
|
42
|
+
readonly maxLength: 100;
|
|
43
43
|
};
|
|
44
44
|
readonly first_name: {
|
|
45
|
-
readonly type: "string";
|
|
46
|
-
readonly maxLength:
|
|
47
|
-
readonly minLength: 1;
|
|
45
|
+
readonly type: readonly ["string", "null"];
|
|
46
|
+
readonly maxLength: 50;
|
|
48
47
|
};
|
|
49
48
|
readonly last_name: {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly maxLength:
|
|
52
|
-
readonly minLength: 1;
|
|
49
|
+
readonly type: readonly ["string", "null"];
|
|
50
|
+
readonly maxLength: 50;
|
|
53
51
|
};
|
|
54
52
|
readonly address1: {
|
|
55
53
|
readonly type: readonly ["string"];
|
|
56
54
|
readonly minLength: 1;
|
|
57
|
-
readonly maxLength:
|
|
55
|
+
readonly maxLength: 100;
|
|
58
56
|
};
|
|
59
57
|
readonly address2: {
|
|
60
58
|
readonly type: readonly ["string", "null"];
|
|
61
|
-
readonly maxLength:
|
|
59
|
+
readonly maxLength: 100;
|
|
62
60
|
};
|
|
63
61
|
readonly city: {
|
|
64
|
-
readonly type: readonly ["string"];
|
|
65
|
-
readonly maxLength:
|
|
66
|
-
readonly minLength: 1;
|
|
62
|
+
readonly type: readonly ["string", "null"];
|
|
63
|
+
readonly maxLength: 50;
|
|
67
64
|
};
|
|
68
65
|
readonly region: {
|
|
69
66
|
readonly type: readonly ["string", "null"];
|
|
70
|
-
readonly maxLength:
|
|
67
|
+
readonly maxLength: 50;
|
|
71
68
|
};
|
|
72
69
|
readonly post_code: {
|
|
73
70
|
readonly type: readonly ["string", "null"];
|
|
74
71
|
readonly maxLength: 20;
|
|
75
|
-
readonly pattern: "^[A-Z0-9 ]*$";
|
|
76
72
|
};
|
|
77
73
|
readonly country_code: {
|
|
78
74
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
@@ -78,40 +78,36 @@ declare const schema: {
|
|
|
78
78
|
};
|
|
79
79
|
readonly company_name: {
|
|
80
80
|
readonly type: "string";
|
|
81
|
-
readonly maxLength:
|
|
81
|
+
readonly maxLength: 100;
|
|
82
82
|
};
|
|
83
83
|
readonly first_name: {
|
|
84
|
-
readonly type: "string";
|
|
85
|
-
readonly maxLength:
|
|
86
|
-
readonly minLength: 1;
|
|
84
|
+
readonly type: readonly ["string", "null"];
|
|
85
|
+
readonly maxLength: 50;
|
|
87
86
|
};
|
|
88
87
|
readonly last_name: {
|
|
89
|
-
readonly type: "string";
|
|
90
|
-
readonly maxLength:
|
|
91
|
-
readonly minLength: 1;
|
|
88
|
+
readonly type: readonly ["string", "null"];
|
|
89
|
+
readonly maxLength: 50;
|
|
92
90
|
};
|
|
93
91
|
readonly address1: {
|
|
94
92
|
readonly type: readonly ["string"];
|
|
95
93
|
readonly minLength: 1;
|
|
96
|
-
readonly maxLength:
|
|
94
|
+
readonly maxLength: 100;
|
|
97
95
|
};
|
|
98
96
|
readonly address2: {
|
|
99
97
|
readonly type: readonly ["string", "null"];
|
|
100
|
-
readonly maxLength:
|
|
98
|
+
readonly maxLength: 100;
|
|
101
99
|
};
|
|
102
100
|
readonly city: {
|
|
103
|
-
readonly type: readonly ["string"];
|
|
104
|
-
readonly maxLength:
|
|
105
|
-
readonly minLength: 1;
|
|
101
|
+
readonly type: readonly ["string", "null"];
|
|
102
|
+
readonly maxLength: 50;
|
|
106
103
|
};
|
|
107
104
|
readonly region: {
|
|
108
105
|
readonly type: readonly ["string", "null"];
|
|
109
|
-
readonly maxLength:
|
|
106
|
+
readonly maxLength: 50;
|
|
110
107
|
};
|
|
111
108
|
readonly post_code: {
|
|
112
109
|
readonly type: readonly ["string", "null"];
|
|
113
110
|
readonly maxLength: 20;
|
|
114
|
-
readonly pattern: "^[A-Z0-9 ]*$";
|
|
115
111
|
};
|
|
116
112
|
readonly country_code: {
|
|
117
113
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|