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