@shushed/helpers 0.0.289 → 0.0.291

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 (76) 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 +167 -154
  28. package/dist/cjs/src-public/pubsub.js +0 -1
  29. package/dist/package.json +1 -0
  30. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +117 -105
  31. package/dist/types/dist-dereferenced/messages/order/new.d.ts +117 -105
  32. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +117 -105
  33. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +117 -105
  34. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +117 -105
  35. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +117 -105
  36. package/dist/types/dist-dereferenced/order/address.d.ts +10 -14
  37. package/dist/types/dist-dereferenced/order/customer.d.ts +10 -14
  38. package/dist/types/dist-dereferenced/order/index.d.ts +117 -105
  39. package/dist/types/dist-dereferenced/order/item.d.ts +3 -0
  40. package/dist/types/dist-dereferenced/order/orderMain.d.ts +117 -105
  41. package/dist/types/dist-dereferenced/order/payment.d.ts +2 -2
  42. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +15 -1
  43. package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +4 -1
  44. package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +4 -1
  45. package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +4 -1
  46. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +15 -1
  47. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +15 -1
  48. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +15 -1
  49. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +15 -1
  50. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +15 -1
  51. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +15 -1
  52. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +15 -1
  53. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +15 -1
  54. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +15 -1
  55. package/dist/types/dist-types/messages/order/delivered.d.ts +14 -9
  56. package/dist/types/dist-types/messages/order/new.d.ts +14 -9
  57. package/dist/types/dist-types/messages/order/processed.d.ts +14 -9
  58. package/dist/types/dist-types/messages/order/return-initiated.d.ts +14 -9
  59. package/dist/types/dist-types/messages/order/returned.d.ts +14 -9
  60. package/dist/types/dist-types/messages/order/shipped.d.ts +14 -9
  61. package/dist/types/dist-types/order/address.d.ts +3 -3
  62. package/dist/types/dist-types/order/customer.d.ts +6 -6
  63. package/dist/types/dist-types/order/item.d.ts +1 -0
  64. package/dist/types/dist-types/order/orderMain.d.ts +14 -9
  65. package/dist/types/dist-types/order/payment.d.ts +2 -2
  66. package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +1 -0
  67. package/dist/types/dist-types/order/shipment/item/returned.d.ts +1 -0
  68. package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +4 -0
  69. package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +4 -0
  70. package/dist/types/dist-types/order/shipment/pos/return.d.ts +4 -0
  71. package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +4 -0
  72. package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +4 -0
  73. package/dist/types/dist-types/order/shipment/shipped/return.d.ts +4 -0
  74. package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +4 -0
  75. package/dist/types/src-public/pubsub.d.ts +0 -1
  76. package/package.json +2 -1
@@ -25,7 +25,6 @@ declare const schema: {
25
25
  };
26
26
  readonly sitoo_order_id: {
27
27
  readonly type: readonly ["string", "null"];
28
- readonly format: "uuid";
29
28
  };
30
29
  readonly system_created_by: {
31
30
  readonly type: "string";
@@ -59,7 +58,7 @@ declare const schema: {
59
58
  readonly enum: readonly ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"];
60
59
  };
61
60
  readonly transaction_id: {
62
- readonly type: readonly ["string"];
61
+ readonly type: readonly ["string", "null"];
63
62
  };
64
63
  readonly card_number: {
65
64
  readonly type: readonly ["string", "null"];
@@ -85,7 +84,7 @@ declare const schema: {
85
84
  readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM", null];
86
85
  };
87
86
  readonly psp_reference: {
88
- readonly type: "string";
87
+ readonly type: readonly ["string", "null"];
89
88
  };
90
89
  readonly card_brand: {
91
90
  readonly type: readonly ["string", "null"];
@@ -95,7 +94,7 @@ declare const schema: {
95
94
  readonly enum: readonly ["CAPTURED", "FAILED", "FAILED-3DS", "CANCELLED"];
96
95
  };
97
96
  readonly amount: {
98
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
97
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
99
98
  };
100
99
  readonly created_by: {
101
100
  readonly anyOf: readonly [{
@@ -114,16 +113,20 @@ declare const schema: {
114
113
  readonly created_at: "2024-12-25T15:35:00Z";
115
114
  readonly payment_method: "CREDIT-CARD";
116
115
  readonly transaction_id: "TR123456789";
117
- readonly card_number: "4111111111111111";
118
- readonly journey_label: "CHECKOUT";
119
- readonly psp_reference: "PSP987654321";
120
- readonly card_brand: "VISA";
116
+ readonly card_number: "XXXX-XXXX-XXXX-1234";
117
+ readonly journey_label: null;
118
+ readonly psp_reference: "TR123456789";
119
+ readonly card_brand: "Visa";
121
120
  readonly status: "CAPTURED";
122
121
  readonly amount: {
123
- readonly currency: "USD";
122
+ readonly currency: "GBP";
124
123
  readonly value: 15000;
124
+ readonly decimal_places: 2;
125
+ readonly lcy_value: 15000;
126
+ readonly lcy_currency: "GBP";
127
+ readonly lcy_decimal_places: 2;
125
128
  };
126
- readonly created_by: "CUSTOMER";
129
+ readonly created_by: "MOTO";
127
130
  }];
128
131
  };
129
132
  readonly is_anonymous: {
@@ -132,6 +135,9 @@ declare const schema: {
132
135
  readonly is_gift: {
133
136
  readonly type: readonly ["boolean"];
134
137
  };
138
+ readonly is_pos: {
139
+ readonly type: readonly ["boolean"];
140
+ };
135
141
  readonly customer: {
136
142
  readonly $schema: "http://json-schema.org/draft-07/schema#";
137
143
  readonly title: "Customer";
@@ -298,40 +304,36 @@ declare const schema: {
298
304
  };
299
305
  readonly company_name: {
300
306
  readonly type: "string";
301
- readonly maxLength: 30;
307
+ readonly maxLength: 100;
302
308
  };
303
309
  readonly first_name: {
304
- readonly type: "string";
305
- readonly maxLength: 30;
306
- readonly minLength: 1;
310
+ readonly type: readonly ["string", "null"];
311
+ readonly maxLength: 50;
307
312
  };
308
313
  readonly last_name: {
309
- readonly type: "string";
310
- readonly maxLength: 30;
311
- readonly minLength: 1;
314
+ readonly type: readonly ["string", "null"];
315
+ readonly maxLength: 50;
312
316
  };
313
317
  readonly address1: {
314
318
  readonly type: readonly ["string"];
315
319
  readonly minLength: 1;
316
- readonly maxLength: 30;
320
+ readonly maxLength: 100;
317
321
  };
318
322
  readonly address2: {
319
323
  readonly type: readonly ["string", "null"];
320
- readonly maxLength: 30;
324
+ readonly maxLength: 100;
321
325
  };
322
326
  readonly city: {
323
- readonly type: readonly ["string"];
324
- readonly maxLength: 30;
325
- readonly minLength: 1;
327
+ readonly type: readonly ["string", "null"];
328
+ readonly maxLength: 50;
326
329
  };
327
330
  readonly region: {
328
331
  readonly type: readonly ["string", "null"];
329
- readonly maxLength: 30;
332
+ readonly maxLength: 50;
330
333
  };
331
334
  readonly post_code: {
332
335
  readonly type: readonly ["string", "null"];
333
336
  readonly maxLength: 20;
334
- readonly pattern: "^[A-Z0-9 ]*$";
335
337
  };
336
338
  readonly country_code: {
337
339
  readonly $schema: "http://json-schema.org/draft-07/schema#";
@@ -364,11 +366,10 @@ declare const schema: {
364
366
  readonly last_name: "Johnson";
365
367
  readonly address1: "123 Main St";
366
368
  readonly address2: "Apt 4B";
367
- readonly city: "New York";
368
- readonly region: "NY";
369
- readonly post_code: "10001";
370
- readonly country_code: "US";
371
- readonly phone: "+1-202-555-0143";
369
+ readonly city: "London";
370
+ readonly post_code: "SW1A 1AA";
371
+ readonly country_code: "GB";
372
+ readonly phone: "+44 7700 900000";
372
373
  };
373
374
  };
374
375
  readonly shipping_address: {
@@ -382,19 +383,15 @@ declare const schema: {
382
383
  readonly last_name: "Johnson";
383
384
  readonly address1: "123 Main St";
384
385
  readonly address2: "Apt 4B";
385
- readonly city: "New York";
386
- readonly region: "NY";
387
- readonly post_code: "10001";
388
- readonly country_code: "US";
389
- readonly phone: "+1-202-555-0143";
386
+ readonly city: "London";
387
+ readonly post_code: "SW1A 1AA";
388
+ readonly country_code: "GB";
389
+ readonly phone: "+44 7700 900000";
390
390
  };
391
391
  };
392
392
  readonly collection_point_id: {
393
393
  readonly type: readonly ["string", "null"];
394
394
  };
395
- readonly is_pos: {
396
- readonly type: readonly ["boolean"];
397
- };
398
395
  readonly shipments: {
399
396
  readonly type: "array";
400
397
  readonly minItems: 1;
@@ -440,6 +437,17 @@ declare const schema: {
440
437
  readonly discount_campaign: {
441
438
  readonly type: readonly ["string", "null"];
442
439
  };
440
+ readonly courier_name: {
441
+ readonly type: readonly ["string", "null"];
442
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
443
+ };
444
+ readonly tracking_code: {
445
+ readonly type: readonly ["string", "null"];
446
+ };
447
+ readonly class_name: {
448
+ readonly type: readonly ["string"];
449
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
450
+ };
443
451
  readonly items: {
444
452
  readonly type: readonly ["array"];
445
453
  readonly items: {
@@ -476,12 +484,15 @@ declare const schema: {
476
484
  readonly type: readonly ["integer"];
477
485
  readonly minimum: 0;
478
486
  };
487
+ readonly sku: {
488
+ readonly type: readonly ["string"];
489
+ };
479
490
  readonly quantity: {
480
491
  readonly type: readonly ["integer"];
481
492
  readonly minimum: 1;
482
493
  };
483
494
  };
484
- readonly required: readonly ["lineNumber", "quantity"];
495
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
485
496
  };
486
497
  };
487
498
  };
@@ -616,17 +627,14 @@ declare const schema: {
616
627
  readonly type: "SHIPPED-OUTBOUND";
617
628
  readonly shipped_at: "2024-12-26T10:00:00Z";
618
629
  readonly status: "SHIPPED";
630
+ readonly shipped_by: "TORQUE";
631
+ readonly courier_name: "EVRI";
632
+ readonly tracking_code: "TRK002345678901";
633
+ readonly class_name: "PRIORITY";
619
634
  readonly items: readonly [{
620
- readonly sku: "SKU123";
635
+ readonly lineNumber: 1;
636
+ readonly sku: "PROD004-4001-14";
621
637
  readonly quantity: 1;
622
- readonly unit_price_net: {
623
- readonly currency: "USD";
624
- readonly value: 10000;
625
- };
626
- readonly unit_price_gross: {
627
- readonly currency: "USD";
628
- readonly value: 12000;
629
- };
630
638
  }];
631
639
  }];
632
640
  };
@@ -643,19 +651,52 @@ declare const schema: {
643
651
  readonly type: "object";
644
652
  readonly properties: {
645
653
  readonly amount_net: {
646
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
647
654
  readonly title: "Amount Net";
655
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
656
+ readonly type: "object";
657
+ readonly additionalProperties: false;
658
+ readonly properties: {
659
+ readonly value: {
660
+ readonly type: "integer";
661
+ readonly minimum: 0;
662
+ };
663
+ readonly decimal_places: {
664
+ readonly type: "integer";
665
+ readonly minimum: 0;
666
+ readonly maximum: 4;
667
+ };
668
+ readonly currency: {
669
+ readonly title: "Currency";
670
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
671
+ readonly type: "string";
672
+ 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"];
673
+ };
674
+ readonly lcy_value: {
675
+ readonly type: "integer";
676
+ readonly minimum: 0;
677
+ };
678
+ readonly lcy_currency: {
679
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net/properties/currency";
680
+ readonly title: "LCY Currency";
681
+ };
682
+ readonly lcy_decimal_places: {
683
+ readonly type: "integer";
684
+ readonly minimum: 0;
685
+ readonly maximum: 4;
686
+ };
687
+ };
688
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
648
689
  };
649
690
  readonly amount_gross: {
650
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
691
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
651
692
  readonly title: "Amount gross";
652
693
  };
653
694
  readonly discount_amount_net: {
654
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
695
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
655
696
  readonly title: "Discount Amount Net";
656
697
  };
657
698
  readonly discount_amount_gross: {
658
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
699
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
659
700
  readonly title: "Discount Amount Gross";
660
701
  };
661
702
  readonly discount_amount_percent: {
@@ -707,10 +748,10 @@ declare const schema: {
707
748
  readonly minimum: 0;
708
749
  };
709
750
  readonly unit_price_net: {
710
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
751
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
711
752
  };
712
753
  readonly unit_price_gross: {
713
- readonly $ref: "#/allOf/0/properties/items/items/allOf/1/properties/cost_net";
754
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
714
755
  };
715
756
  readonly discount_code: {
716
757
  readonly type: readonly ["string", "null"];
@@ -719,68 +760,39 @@ declare const schema: {
719
760
  readonly type: readonly ["string", "null"];
720
761
  };
721
762
  readonly cost_net: {
722
- readonly $schema: "http://json-schema.org/draft-07/schema#";
723
- readonly title: "Money";
724
- readonly type: "object";
725
- readonly additionalProperties: false;
726
- readonly properties: {
727
- readonly value: {
728
- readonly type: "integer";
729
- readonly minimum: 0;
730
- };
731
- readonly decimal_places: {
732
- readonly type: "integer";
733
- readonly minimum: 0;
734
- readonly maximum: 4;
735
- };
736
- readonly currency: {
737
- readonly title: "Currency";
738
- readonly $schema: "http://json-schema.org/draft-07/schema#";
739
- readonly type: "string";
740
- 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"];
741
- };
742
- readonly lcy_value: {
743
- readonly type: "integer";
744
- readonly minimum: 0;
745
- };
746
- readonly lcy_currency: {
747
- readonly $ref: "#/allOf/0/properties/total/properties/amount_net/properties/currency";
748
- readonly title: "LCY Currency";
749
- };
750
- readonly lcy_decimal_places: {
751
- readonly type: "integer";
752
- readonly minimum: 0;
753
- readonly maximum: 4;
754
- };
755
- };
756
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
763
+ readonly $ref: "#/allOf/0/properties/total/properties/amount_net";
764
+ };
765
+ readonly order_line_no: {
766
+ readonly type: readonly ["integer", "null"];
757
767
  };
758
768
  };
759
769
  readonly required: readonly ["sku", "colour_id", "style_id", "quantity", "unit_price_net", "unit_price_gross", "unit_price_status"];
760
770
  }];
761
771
  };
762
772
  readonly example: readonly [{
763
- readonly sku: "SKU123";
764
- readonly colour_id: "RED";
765
- readonly style_id: "STYLE1";
773
+ readonly sku: "PROD004-4001-14";
774
+ readonly colour_id: "4001";
775
+ readonly style_id: "PROD004";
776
+ readonly product_id: "PROD004-4001";
766
777
  readonly quantity: 1;
778
+ readonly returned_quantity: 0;
767
779
  readonly unit_price_net: {
768
- readonly currency: "USD";
769
- readonly value: 10000;
780
+ readonly currency: "GBP";
781
+ readonly value: 6584;
782
+ readonly decimal_places: 2;
783
+ readonly lcy_value: 6584;
784
+ readonly lcy_currency: "GBP";
785
+ readonly lcy_decimal_places: 2;
770
786
  };
771
787
  readonly unit_price_gross: {
772
- readonly currency: "USD";
773
- readonly value: 12000;
774
- };
775
- readonly unit_price_status: "rrp";
776
- readonly discount_amount_net: {
777
- readonly currency: "USD";
778
- readonly value: 0;
779
- };
780
- readonly discount_amount_gross: {
781
- readonly currency: "USD";
782
- readonly value: 0;
783
- };
788
+ readonly currency: "GBP";
789
+ readonly value: 7900;
790
+ readonly decimal_places: 2;
791
+ readonly lcy_value: 7900;
792
+ readonly lcy_currency: "GBP";
793
+ readonly lcy_decimal_places: 2;
794
+ };
795
+ readonly unit_price_status: "perm";
784
796
  }];
785
797
  };
786
798
  readonly total: {