@shushed/helpers 0.0.289 → 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.
Files changed (73) hide show
  1. package/dist/cjs/contracts/order/address.schema.json +14 -18
  2. package/dist/cjs/contracts/order/item.schema.json +6 -1
  3. package/dist/cjs/contracts/order/payment.schema.json +4 -4
  4. package/dist/cjs/contracts/order/shipment/item.schema.json +6 -1
  5. package/dist/cjs/contracts/order/shipment.schema.json +14 -0
  6. package/dist/cjs/contracts/order.schema.json +53 -53
  7. package/dist/cjs/dist-dereferenced/messages/order/delivered.js +1 -1
  8. package/dist/cjs/dist-dereferenced/messages/order/new.js +1 -1
  9. package/dist/cjs/dist-dereferenced/messages/order/processed.js +1 -1
  10. package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +1 -1
  11. package/dist/cjs/dist-dereferenced/messages/order/returned.js +1 -1
  12. package/dist/cjs/dist-dereferenced/messages/order/shipped.js +1 -1
  13. package/dist/cjs/dist-dereferenced/order/address.js +1 -1
  14. package/dist/cjs/dist-dereferenced/order/customer.js +1 -1
  15. package/dist/cjs/dist-dereferenced/order/item.js +1 -1
  16. package/dist/cjs/dist-dereferenced/order/orderMain.js +1 -1
  17. package/dist/cjs/dist-dereferenced/order/payment.js +1 -1
  18. package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +1 -1
  19. package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +1 -1
  20. package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
  21. package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +1 -1
  22. package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
  23. package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +1 -1
  24. package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +1 -1
  25. package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +1 -1
  26. package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +1 -1
  27. package/dist/cjs/src-public/bcOrder.js +125 -110
  28. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +117 -105
  29. package/dist/types/dist-dereferenced/messages/order/new.d.ts +117 -105
  30. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +117 -105
  31. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +117 -105
  32. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +117 -105
  33. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +117 -105
  34. package/dist/types/dist-dereferenced/order/address.d.ts +10 -14
  35. package/dist/types/dist-dereferenced/order/customer.d.ts +10 -14
  36. package/dist/types/dist-dereferenced/order/index.d.ts +117 -105
  37. package/dist/types/dist-dereferenced/order/item.d.ts +3 -0
  38. package/dist/types/dist-dereferenced/order/orderMain.d.ts +117 -105
  39. package/dist/types/dist-dereferenced/order/payment.d.ts +2 -2
  40. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +15 -1
  41. package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +4 -1
  42. package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +4 -1
  43. package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +4 -1
  44. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +15 -1
  45. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +15 -1
  46. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +15 -1
  47. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +15 -1
  48. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +15 -1
  49. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +15 -1
  50. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +15 -1
  51. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +15 -1
  52. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +15 -1
  53. package/dist/types/dist-types/messages/order/delivered.d.ts +14 -9
  54. package/dist/types/dist-types/messages/order/new.d.ts +14 -9
  55. package/dist/types/dist-types/messages/order/processed.d.ts +14 -9
  56. package/dist/types/dist-types/messages/order/return-initiated.d.ts +14 -9
  57. package/dist/types/dist-types/messages/order/returned.d.ts +14 -9
  58. package/dist/types/dist-types/messages/order/shipped.d.ts +14 -9
  59. package/dist/types/dist-types/order/address.d.ts +3 -3
  60. package/dist/types/dist-types/order/customer.d.ts +6 -6
  61. package/dist/types/dist-types/order/item.d.ts +1 -0
  62. package/dist/types/dist-types/order/orderMain.d.ts +14 -9
  63. package/dist/types/dist-types/order/payment.d.ts +2 -2
  64. package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +1 -0
  65. package/dist/types/dist-types/order/shipment/item/returned.d.ts +1 -0
  66. package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +4 -0
  67. package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +4 -0
  68. package/dist/types/dist-types/order/shipment/pos/return.d.ts +4 -0
  69. package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +4 -0
  70. package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +4 -0
  71. package/dist/types/dist-types/order/shipment/shipped/return.d.ts +4 -0
  72. package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +4 -0
  73. package/package.json +1 -1
@@ -21,7 +21,6 @@ declare const schema: {
21
21
  };
22
22
  readonly sitoo_order_id: {
23
23
  readonly type: readonly ["string", "null"];
24
- readonly format: "uuid";
25
24
  };
26
25
  readonly system_created_by: {
27
26
  readonly type: "string";
@@ -55,7 +54,7 @@ declare const schema: {
55
54
  readonly enum: readonly ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"];
56
55
  };
57
56
  readonly transaction_id: {
58
- readonly type: readonly ["string"];
57
+ readonly type: readonly ["string", "null"];
59
58
  };
60
59
  readonly card_number: {
61
60
  readonly type: readonly ["string", "null"];
@@ -81,7 +80,7 @@ declare const schema: {
81
80
  readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM", null];
82
81
  };
83
82
  readonly psp_reference: {
84
- readonly type: "string";
83
+ readonly type: readonly ["string", "null"];
85
84
  };
86
85
  readonly card_brand: {
87
86
  readonly type: readonly ["string", "null"];
@@ -91,7 +90,7 @@ declare const schema: {
91
90
  readonly enum: readonly ["CAPTURED", "FAILED", "FAILED-3DS", "CANCELLED"];
92
91
  };
93
92
  readonly amount: {
94
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
93
+ readonly $ref: "#/properties/total/properties/amount_net";
95
94
  };
96
95
  readonly created_by: {
97
96
  readonly anyOf: readonly [{
@@ -110,16 +109,20 @@ declare const schema: {
110
109
  readonly created_at: "2024-12-25T15:35:00Z";
111
110
  readonly payment_method: "CREDIT-CARD";
112
111
  readonly transaction_id: "TR123456789";
113
- readonly card_number: "4111111111111111";
114
- readonly journey_label: "CHECKOUT";
115
- readonly psp_reference: "PSP987654321";
116
- readonly card_brand: "VISA";
112
+ readonly card_number: "XXXX-XXXX-XXXX-1234";
113
+ readonly journey_label: null;
114
+ readonly psp_reference: "TR123456789";
115
+ readonly card_brand: "Visa";
117
116
  readonly status: "CAPTURED";
118
117
  readonly amount: {
119
- readonly currency: "USD";
118
+ readonly currency: "GBP";
120
119
  readonly value: 15000;
120
+ readonly decimal_places: 2;
121
+ readonly lcy_value: 15000;
122
+ readonly lcy_currency: "GBP";
123
+ readonly lcy_decimal_places: 2;
121
124
  };
122
- readonly created_by: "CUSTOMER";
125
+ readonly created_by: "MOTO";
123
126
  }];
124
127
  };
125
128
  readonly is_anonymous: {
@@ -128,6 +131,9 @@ declare const schema: {
128
131
  readonly is_gift: {
129
132
  readonly type: readonly ["boolean"];
130
133
  };
134
+ readonly is_pos: {
135
+ readonly type: readonly ["boolean"];
136
+ };
131
137
  readonly customer: {
132
138
  readonly $schema: "http://json-schema.org/draft-07/schema#";
133
139
  readonly title: "Customer";
@@ -294,40 +300,36 @@ declare const schema: {
294
300
  };
295
301
  readonly company_name: {
296
302
  readonly type: "string";
297
- readonly maxLength: 30;
303
+ readonly maxLength: 100;
298
304
  };
299
305
  readonly first_name: {
300
- readonly type: "string";
301
- readonly maxLength: 30;
302
- readonly minLength: 1;
306
+ readonly type: readonly ["string", "null"];
307
+ readonly maxLength: 50;
303
308
  };
304
309
  readonly last_name: {
305
- readonly type: "string";
306
- readonly maxLength: 30;
307
- readonly minLength: 1;
310
+ readonly type: readonly ["string", "null"];
311
+ readonly maxLength: 50;
308
312
  };
309
313
  readonly address1: {
310
314
  readonly type: readonly ["string"];
311
315
  readonly minLength: 1;
312
- readonly maxLength: 30;
316
+ readonly maxLength: 100;
313
317
  };
314
318
  readonly address2: {
315
319
  readonly type: readonly ["string", "null"];
316
- readonly maxLength: 30;
320
+ readonly maxLength: 100;
317
321
  };
318
322
  readonly city: {
319
- readonly type: readonly ["string"];
320
- readonly maxLength: 30;
321
- readonly minLength: 1;
323
+ readonly type: readonly ["string", "null"];
324
+ readonly maxLength: 50;
322
325
  };
323
326
  readonly region: {
324
327
  readonly type: readonly ["string", "null"];
325
- readonly maxLength: 30;
328
+ readonly maxLength: 50;
326
329
  };
327
330
  readonly post_code: {
328
331
  readonly type: readonly ["string", "null"];
329
332
  readonly maxLength: 20;
330
- readonly pattern: "^[A-Z0-9 ]*$";
331
333
  };
332
334
  readonly country_code: {
333
335
  readonly $schema: "http://json-schema.org/draft-07/schema#";
@@ -360,11 +362,10 @@ declare const schema: {
360
362
  readonly last_name: "Johnson";
361
363
  readonly address1: "123 Main St";
362
364
  readonly address2: "Apt 4B";
363
- readonly city: "New York";
364
- readonly region: "NY";
365
- readonly post_code: "10001";
366
- readonly country_code: "US";
367
- readonly phone: "+1-202-555-0143";
365
+ readonly city: "London";
366
+ readonly post_code: "SW1A 1AA";
367
+ readonly country_code: "GB";
368
+ readonly phone: "+44 7700 900000";
368
369
  };
369
370
  };
370
371
  readonly shipping_address: {
@@ -378,19 +379,15 @@ declare const schema: {
378
379
  readonly last_name: "Johnson";
379
380
  readonly address1: "123 Main St";
380
381
  readonly address2: "Apt 4B";
381
- readonly city: "New York";
382
- readonly region: "NY";
383
- readonly post_code: "10001";
384
- readonly country_code: "US";
385
- readonly phone: "+1-202-555-0143";
382
+ readonly city: "London";
383
+ readonly post_code: "SW1A 1AA";
384
+ readonly country_code: "GB";
385
+ readonly phone: "+44 7700 900000";
386
386
  };
387
387
  };
388
388
  readonly collection_point_id: {
389
389
  readonly type: readonly ["string", "null"];
390
390
  };
391
- readonly is_pos: {
392
- readonly type: readonly ["boolean"];
393
- };
394
391
  readonly shipments: {
395
392
  readonly type: "array";
396
393
  readonly minItems: 1;
@@ -436,6 +433,17 @@ declare const schema: {
436
433
  readonly discount_campaign: {
437
434
  readonly type: readonly ["string", "null"];
438
435
  };
436
+ readonly courier_name: {
437
+ readonly type: readonly ["string", "null"];
438
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
439
+ };
440
+ readonly tracking_code: {
441
+ readonly type: readonly ["string", "null"];
442
+ };
443
+ readonly class_name: {
444
+ readonly type: readonly ["string"];
445
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
446
+ };
439
447
  readonly items: {
440
448
  readonly type: readonly ["array"];
441
449
  readonly items: {
@@ -472,12 +480,15 @@ declare const schema: {
472
480
  readonly type: readonly ["integer"];
473
481
  readonly minimum: 0;
474
482
  };
483
+ readonly sku: {
484
+ readonly type: readonly ["string"];
485
+ };
475
486
  readonly quantity: {
476
487
  readonly type: readonly ["integer"];
477
488
  readonly minimum: 1;
478
489
  };
479
490
  };
480
- readonly required: readonly ["lineNumber", "quantity"];
491
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
481
492
  };
482
493
  };
483
494
  };
@@ -612,17 +623,14 @@ declare const schema: {
612
623
  readonly type: "SHIPPED-OUTBOUND";
613
624
  readonly shipped_at: "2024-12-26T10:00:00Z";
614
625
  readonly status: "SHIPPED";
626
+ readonly shipped_by: "TORQUE";
627
+ readonly courier_name: "EVRI";
628
+ readonly tracking_code: "TRK002345678901";
629
+ readonly class_name: "PRIORITY";
615
630
  readonly items: readonly [{
616
- readonly sku: "SKU123";
631
+ readonly lineNumber: 1;
632
+ readonly sku: "PROD004-4001-14";
617
633
  readonly quantity: 1;
618
- readonly unit_price_net: {
619
- readonly currency: "USD";
620
- readonly value: 10000;
621
- };
622
- readonly unit_price_gross: {
623
- readonly currency: "USD";
624
- readonly value: 12000;
625
- };
626
634
  }];
627
635
  }];
628
636
  };
@@ -639,19 +647,52 @@ declare const schema: {
639
647
  readonly type: "object";
640
648
  readonly properties: {
641
649
  readonly amount_net: {
642
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
643
650
  readonly title: "Amount Net";
651
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
652
+ readonly type: "object";
653
+ readonly additionalProperties: false;
654
+ readonly properties: {
655
+ readonly value: {
656
+ readonly type: "integer";
657
+ readonly minimum: 0;
658
+ };
659
+ readonly decimal_places: {
660
+ readonly type: "integer";
661
+ readonly minimum: 0;
662
+ readonly maximum: 4;
663
+ };
664
+ readonly currency: {
665
+ readonly title: "Currency";
666
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
667
+ readonly type: "string";
668
+ 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"];
669
+ };
670
+ readonly lcy_value: {
671
+ readonly type: "integer";
672
+ readonly minimum: 0;
673
+ };
674
+ readonly lcy_currency: {
675
+ readonly $ref: "#/properties/total/properties/amount_net/properties/currency";
676
+ readonly title: "LCY Currency";
677
+ };
678
+ readonly lcy_decimal_places: {
679
+ readonly type: "integer";
680
+ readonly minimum: 0;
681
+ readonly maximum: 4;
682
+ };
683
+ };
684
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
644
685
  };
645
686
  readonly amount_gross: {
646
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
687
+ readonly $ref: "#/properties/total/properties/amount_net";
647
688
  readonly title: "Amount gross";
648
689
  };
649
690
  readonly discount_amount_net: {
650
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
691
+ readonly $ref: "#/properties/total/properties/amount_net";
651
692
  readonly title: "Discount Amount Net";
652
693
  };
653
694
  readonly discount_amount_gross: {
654
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
695
+ readonly $ref: "#/properties/total/properties/amount_net";
655
696
  readonly title: "Discount Amount Gross";
656
697
  };
657
698
  readonly discount_amount_percent: {
@@ -703,10 +744,10 @@ declare const schema: {
703
744
  readonly minimum: 0;
704
745
  };
705
746
  readonly unit_price_net: {
706
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
747
+ readonly $ref: "#/properties/total/properties/amount_net";
707
748
  };
708
749
  readonly unit_price_gross: {
709
- readonly $ref: "#/properties/items/items/allOf/1/properties/cost_net";
750
+ readonly $ref: "#/properties/total/properties/amount_net";
710
751
  };
711
752
  readonly discount_code: {
712
753
  readonly type: readonly ["string", "null"];
@@ -715,68 +756,39 @@ declare const schema: {
715
756
  readonly type: readonly ["string", "null"];
716
757
  };
717
758
  readonly cost_net: {
718
- readonly $schema: "http://json-schema.org/draft-07/schema#";
719
- readonly title: "Money";
720
- readonly type: "object";
721
- readonly additionalProperties: false;
722
- readonly properties: {
723
- readonly value: {
724
- readonly type: "integer";
725
- readonly minimum: 0;
726
- };
727
- readonly decimal_places: {
728
- readonly type: "integer";
729
- readonly minimum: 0;
730
- readonly maximum: 4;
731
- };
732
- readonly currency: {
733
- readonly title: "Currency";
734
- readonly $schema: "http://json-schema.org/draft-07/schema#";
735
- readonly type: "string";
736
- 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"];
737
- };
738
- readonly lcy_value: {
739
- readonly type: "integer";
740
- readonly minimum: 0;
741
- };
742
- readonly lcy_currency: {
743
- readonly $ref: "#/properties/total/properties/amount_net/properties/currency";
744
- readonly title: "LCY Currency";
745
- };
746
- readonly lcy_decimal_places: {
747
- readonly type: "integer";
748
- readonly minimum: 0;
749
- readonly maximum: 4;
750
- };
751
- };
752
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
759
+ readonly $ref: "#/properties/total/properties/amount_net";
760
+ };
761
+ readonly order_line_no: {
762
+ readonly type: readonly ["integer", "null"];
753
763
  };
754
764
  };
755
765
  readonly required: readonly ["sku", "colour_id", "style_id", "quantity", "unit_price_net", "unit_price_gross", "unit_price_status"];
756
766
  }];
757
767
  };
758
768
  readonly example: readonly [{
759
- readonly sku: "SKU123";
760
- readonly colour_id: "RED";
761
- readonly style_id: "STYLE1";
769
+ readonly sku: "PROD004-4001-14";
770
+ readonly colour_id: "4001";
771
+ readonly style_id: "PROD004";
772
+ readonly product_id: "PROD004-4001";
762
773
  readonly quantity: 1;
774
+ readonly returned_quantity: 0;
763
775
  readonly unit_price_net: {
764
- readonly currency: "USD";
765
- readonly value: 10000;
776
+ readonly currency: "GBP";
777
+ readonly value: 6584;
778
+ readonly decimal_places: 2;
779
+ readonly lcy_value: 6584;
780
+ readonly lcy_currency: "GBP";
781
+ readonly lcy_decimal_places: 2;
766
782
  };
767
783
  readonly unit_price_gross: {
768
- readonly currency: "USD";
769
- readonly value: 12000;
770
- };
771
- readonly unit_price_status: "rrp";
772
- readonly discount_amount_net: {
773
- readonly currency: "USD";
774
- readonly value: 0;
775
- };
776
- readonly discount_amount_gross: {
777
- readonly currency: "USD";
778
- readonly value: 0;
779
- };
784
+ readonly currency: "GBP";
785
+ readonly value: 7900;
786
+ readonly decimal_places: 2;
787
+ readonly lcy_value: 7900;
788
+ readonly lcy_currency: "GBP";
789
+ readonly lcy_decimal_places: 2;
790
+ };
791
+ readonly unit_price_status: "perm";
780
792
  }];
781
793
  };
782
794
  readonly total: {
@@ -20,7 +20,7 @@ declare const schema: {
20
20
  readonly enum: readonly ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"];
21
21
  };
22
22
  readonly transaction_id: {
23
- readonly type: readonly ["string"];
23
+ readonly type: readonly ["string", "null"];
24
24
  };
25
25
  readonly card_number: {
26
26
  readonly type: readonly ["string", "null"];
@@ -46,7 +46,7 @@ declare const schema: {
46
46
  readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM", null];
47
47
  };
48
48
  readonly psp_reference: {
49
- readonly type: "string";
49
+ readonly type: readonly ["string", "null"];
50
50
  };
51
51
  readonly card_brand: {
52
52
  readonly type: readonly ["string", "null"];
@@ -91,6 +91,17 @@ declare const MainModuleObj: {
91
91
  readonly discount_campaign: {
92
92
  readonly type: readonly ["string", "null"];
93
93
  };
94
+ readonly courier_name: {
95
+ readonly type: readonly ["string", "null"];
96
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
97
+ };
98
+ readonly tracking_code: {
99
+ readonly type: readonly ["string", "null"];
100
+ };
101
+ readonly class_name: {
102
+ readonly type: readonly ["string"];
103
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
104
+ };
94
105
  readonly items: {
95
106
  readonly type: readonly ["array"];
96
107
  readonly items: {
@@ -104,12 +115,15 @@ declare const MainModuleObj: {
104
115
  readonly type: readonly ["integer"];
105
116
  readonly minimum: 0;
106
117
  };
118
+ readonly sku: {
119
+ readonly type: readonly ["string"];
120
+ };
107
121
  readonly quantity: {
108
122
  readonly type: readonly ["integer"];
109
123
  readonly minimum: 1;
110
124
  };
111
125
  };
112
- readonly required: readonly ["lineNumber", "quantity"];
126
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
113
127
  }, {
114
128
  readonly $schema: "http://json-schema.org/draft-07/schema#";
115
129
  readonly title: "Order Shipment Item Returned";
@@ -8,12 +8,15 @@ declare const MainModuleObj: {
8
8
  readonly type: readonly ["integer"];
9
9
  readonly minimum: 0;
10
10
  };
11
+ readonly sku: {
12
+ readonly type: readonly ["string"];
13
+ };
11
14
  readonly quantity: {
12
15
  readonly type: readonly ["integer"];
13
16
  readonly minimum: 1;
14
17
  };
15
18
  };
16
- readonly required: readonly ["lineNumber", "quantity"];
19
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
17
20
  readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
18
21
  };
19
22
  export default MainModuleObj;
@@ -7,12 +7,15 @@ declare const schema: {
7
7
  readonly type: readonly ["integer"];
8
8
  readonly minimum: 0;
9
9
  };
10
+ readonly sku: {
11
+ readonly type: readonly ["string"];
12
+ };
10
13
  readonly quantity: {
11
14
  readonly type: readonly ["integer"];
12
15
  readonly minimum: 1;
13
16
  };
14
17
  };
15
- readonly required: readonly ["lineNumber", "quantity"];
18
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
16
19
  readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
17
20
  };
18
21
  export default schema;
@@ -11,12 +11,15 @@ declare const schema: {
11
11
  readonly type: readonly ["integer"];
12
12
  readonly minimum: 0;
13
13
  };
14
+ readonly sku: {
15
+ readonly type: readonly ["string"];
16
+ };
14
17
  readonly quantity: {
15
18
  readonly type: readonly ["integer"];
16
19
  readonly minimum: 1;
17
20
  };
18
21
  };
19
- readonly required: readonly ["lineNumber", "quantity"];
22
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
20
23
  }, {
21
24
  readonly type: "object";
22
25
  readonly properties: {
@@ -94,6 +94,17 @@ declare const MainModuleObj: {
94
94
  readonly discount_campaign: {
95
95
  readonly type: readonly ["string", "null"];
96
96
  };
97
+ readonly courier_name: {
98
+ readonly type: readonly ["string", "null"];
99
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
100
+ };
101
+ readonly tracking_code: {
102
+ readonly type: readonly ["string", "null"];
103
+ };
104
+ readonly class_name: {
105
+ readonly type: readonly ["string"];
106
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
107
+ };
97
108
  readonly items: {
98
109
  readonly type: readonly ["array"];
99
110
  readonly items: {
@@ -107,12 +118,15 @@ declare const MainModuleObj: {
107
118
  readonly type: readonly ["integer"];
108
119
  readonly minimum: 0;
109
120
  };
121
+ readonly sku: {
122
+ readonly type: readonly ["string"];
123
+ };
110
124
  readonly quantity: {
111
125
  readonly type: readonly ["integer"];
112
126
  readonly minimum: 1;
113
127
  };
114
128
  };
115
- readonly required: readonly ["lineNumber", "quantity"];
129
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
116
130
  }, {
117
131
  readonly $schema: "http://json-schema.org/draft-07/schema#";
118
132
  readonly title: "Order Shipment Item Returned";
@@ -97,6 +97,17 @@ declare const schema: {
97
97
  readonly discount_campaign: {
98
98
  readonly type: readonly ["string", "null"];
99
99
  };
100
+ readonly courier_name: {
101
+ readonly type: readonly ["string", "null"];
102
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
103
+ };
104
+ readonly tracking_code: {
105
+ readonly type: readonly ["string", "null"];
106
+ };
107
+ readonly class_name: {
108
+ readonly type: readonly ["string"];
109
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
110
+ };
100
111
  readonly items: {
101
112
  readonly type: readonly ["array"];
102
113
  readonly items: {
@@ -176,12 +187,15 @@ declare const schema: {
176
187
  readonly type: readonly ["integer"];
177
188
  readonly minimum: 0;
178
189
  };
190
+ readonly sku: {
191
+ readonly type: readonly ["string"];
192
+ };
179
193
  readonly quantity: {
180
194
  readonly type: readonly ["integer"];
181
195
  readonly minimum: 1;
182
196
  };
183
197
  };
184
- readonly required: readonly ["lineNumber", "quantity"];
198
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
185
199
  };
186
200
  };
187
201
  };
@@ -92,6 +92,17 @@ declare const schema: {
92
92
  readonly discount_campaign: {
93
93
  readonly type: readonly ["string", "null"];
94
94
  };
95
+ readonly courier_name: {
96
+ readonly type: readonly ["string", "null"];
97
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
98
+ };
99
+ readonly tracking_code: {
100
+ readonly type: readonly ["string", "null"];
101
+ };
102
+ readonly class_name: {
103
+ readonly type: readonly ["string"];
104
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
105
+ };
95
106
  readonly items: {
96
107
  readonly type: readonly ["array"];
97
108
  readonly items: {
@@ -105,12 +116,15 @@ declare const schema: {
105
116
  readonly type: readonly ["integer"];
106
117
  readonly minimum: 0;
107
118
  };
119
+ readonly sku: {
120
+ readonly type: readonly ["string"];
121
+ };
108
122
  readonly quantity: {
109
123
  readonly type: readonly ["integer"];
110
124
  readonly minimum: 1;
111
125
  };
112
126
  };
113
- readonly required: readonly ["lineNumber", "quantity"];
127
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
114
128
  }, {
115
129
  readonly $schema: "http://json-schema.org/draft-07/schema#";
116
130
  readonly title: "Order Shipment Item Returned";
@@ -97,6 +97,17 @@ declare const schema: {
97
97
  readonly discount_campaign: {
98
98
  readonly type: readonly ["string", "null"];
99
99
  };
100
+ readonly courier_name: {
101
+ readonly type: readonly ["string", "null"];
102
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
103
+ };
104
+ readonly tracking_code: {
105
+ readonly type: readonly ["string", "null"];
106
+ };
107
+ readonly class_name: {
108
+ readonly type: readonly ["string"];
109
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
110
+ };
100
111
  readonly items: {
101
112
  readonly type: readonly ["array"];
102
113
  readonly items: {
@@ -160,12 +171,15 @@ declare const schema: {
160
171
  readonly type: readonly ["integer"];
161
172
  readonly minimum: 0;
162
173
  };
174
+ readonly sku: {
175
+ readonly type: readonly ["string"];
176
+ };
163
177
  readonly quantity: {
164
178
  readonly type: readonly ["integer"];
165
179
  readonly minimum: 1;
166
180
  };
167
181
  };
168
- readonly required: readonly ["lineNumber", "quantity"];
182
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
169
183
  }, {
170
184
  readonly type: "object";
171
185
  readonly properties: {