@shushed/helpers 0.0.8 → 0.0.9

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 (142) hide show
  1. package/dist/index.d.ts +29663 -3
  2. package/dist/index.js +348 -3
  3. package/dist/package.json +1 -3
  4. package/package.json +2 -4
  5. package/dist/dist-dereferenced/country.d.ts +0 -8
  6. package/dist/dist-dereferenced/country.js +0 -2
  7. package/dist/dist-dereferenced/currency.d.ts +0 -8
  8. package/dist/dist-dereferenced/currency.js +0 -2
  9. package/dist/dist-dereferenced/index.d.ts +0 -7
  10. package/dist/dist-dereferenced/index.js +0 -7
  11. package/dist/dist-dereferenced/messages/index.d.ts +0 -1
  12. package/dist/dist-dereferenced/messages/index.js +0 -1
  13. package/dist/dist-dereferenced/messages/order/delivered.d.ts +0 -3410
  14. package/dist/dist-dereferenced/messages/order/delivered.js +0 -2
  15. package/dist/dist-dereferenced/messages/order/index.d.ts +0 -6
  16. package/dist/dist-dereferenced/messages/order/index.js +0 -6
  17. package/dist/dist-dereferenced/messages/order/new.d.ts +0 -3410
  18. package/dist/dist-dereferenced/messages/order/new.js +0 -2
  19. package/dist/dist-dereferenced/messages/order/processed.d.ts +0 -3404
  20. package/dist/dist-dereferenced/messages/order/processed.js +0 -2
  21. package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3410
  22. package/dist/dist-dereferenced/messages/order/return-initiated.js +0 -2
  23. package/dist/dist-dereferenced/messages/order/returned.d.ts +0 -3410
  24. package/dist/dist-dereferenced/messages/order/returned.js +0 -2
  25. package/dist/dist-dereferenced/messages/order/shipped.d.ts +0 -3410
  26. package/dist/dist-dereferenced/messages/order/shipped.js +0 -2
  27. package/dist/dist-dereferenced/money.d.ts +0 -43
  28. package/dist/dist-dereferenced/money.js +0 -2
  29. package/dist/dist-dereferenced/order/address.d.ts +0 -51
  30. package/dist/dist-dereferenced/order/address.js +0 -2
  31. package/dist/dist-dereferenced/order/customer.d.ts +0 -10
  32. package/dist/dist-dereferenced/order/customer.js +0 -2
  33. package/dist/dist-dereferenced/order/index.d.ts +0 -7
  34. package/dist/dist-dereferenced/order/index.js +0 -7
  35. package/dist/dist-dereferenced/order/item.d.ts +0 -450
  36. package/dist/dist-dereferenced/order/item.js +0 -2
  37. package/dist/dist-dereferenced/order/orderMain.d.ts +0 -3394
  38. package/dist/dist-dereferenced/order/orderMain.js +0 -2
  39. package/dist/dist-dereferenced/order/payment.d.ts +0 -90
  40. package/dist/dist-dereferenced/order/payment.js +0 -2
  41. package/dist/dist-dereferenced/order/shipment/index.d.ts +0 -5
  42. package/dist/dist-dereferenced/order/shipment/index.js +0 -5
  43. package/dist/dist-dereferenced/order/shipment/item/index.d.ts +0 -3
  44. package/dist/dist-dereferenced/order/shipment/item/index.js +0 -3
  45. package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -19
  46. package/dist/dist-dereferenced/order/shipment/item/itemMain.js +0 -2
  47. package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +0 -38
  48. package/dist/dist-dereferenced/order/shipment/item/returned.js +0 -2
  49. package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +0 -4
  50. package/dist/dist-dereferenced/order/shipment/pos/index.js +0 -4
  51. package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -351
  52. package/dist/dist-dereferenced/order/shipment/pos/outbound.js +0 -2
  53. package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -308
  54. package/dist/dist-dereferenced/order/shipment/pos/posMain.js +0 -2
  55. package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +0 -365
  56. package/dist/dist-dereferenced/order/shipment/pos/return.js +0 -2
  57. package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -275
  58. package/dist/dist-dereferenced/order/shipment/shipmentMain.js +0 -2
  59. package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -4
  60. package/dist/dist-dereferenced/order/shipment/shipped/index.js +0 -4
  61. package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -348
  62. package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +0 -2
  63. package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -369
  64. package/dist/dist-dereferenced/order/shipment/shipped/return.js +0 -2
  65. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -307
  66. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -2
  67. package/dist/dist-dereferenced/productDraft.d.ts +0 -523
  68. package/dist/dist-dereferenced/productDraft.js +0 -2
  69. package/dist/dist-dereferenced/total.d.ts +0 -185
  70. package/dist/dist-dereferenced/total.js +0 -2
  71. package/dist/dist-types/country.d.ts +0 -2
  72. package/dist/dist-types/country.js +0 -1
  73. package/dist/dist-types/currency.d.ts +0 -2
  74. package/dist/dist-types/currency.js +0 -1
  75. package/dist/dist-types/index.d.ts +0 -7
  76. package/dist/dist-types/index.js +0 -2
  77. package/dist/dist-types/messages/index.d.ts +0 -1
  78. package/dist/dist-types/messages/index.js +0 -1
  79. package/dist/dist-types/messages/order/delivered.d.ts +0 -178
  80. package/dist/dist-types/messages/order/delivered.js +0 -1
  81. package/dist/dist-types/messages/order/index.d.ts +0 -6
  82. package/dist/dist-types/messages/order/index.js +0 -1
  83. package/dist/dist-types/messages/order/new.d.ts +0 -178
  84. package/dist/dist-types/messages/order/new.js +0 -1
  85. package/dist/dist-types/messages/order/processed.d.ts +0 -176
  86. package/dist/dist-types/messages/order/processed.js +0 -1
  87. package/dist/dist-types/messages/order/return-initiated.d.ts +0 -178
  88. package/dist/dist-types/messages/order/return-initiated.js +0 -1
  89. package/dist/dist-types/messages/order/returned.d.ts +0 -178
  90. package/dist/dist-types/messages/order/returned.js +0 -1
  91. package/dist/dist-types/messages/order/shipped.d.ts +0 -178
  92. package/dist/dist-types/messages/order/shipped.js +0 -1
  93. package/dist/dist-types/money.d.ts +0 -11
  94. package/dist/dist-types/money.js +0 -1
  95. package/dist/dist-types/order/address.d.ts +0 -12
  96. package/dist/dist-types/order/address.js +0 -1
  97. package/dist/dist-types/order/customer.d.ts +0 -3
  98. package/dist/dist-types/order/customer.js +0 -1
  99. package/dist/dist-types/order/index.d.ts +0 -7
  100. package/dist/dist-types/order/index.js +0 -1
  101. package/dist/dist-types/order/item.d.ts +0 -70
  102. package/dist/dist-types/order/item.js +0 -1
  103. package/dist/dist-types/order/orderMain.d.ts +0 -175
  104. package/dist/dist-types/order/orderMain.js +0 -1
  105. package/dist/dist-types/order/payment.d.ts +0 -25
  106. package/dist/dist-types/order/payment.js +0 -1
  107. package/dist/dist-types/order/shipment/index.d.ts +0 -5
  108. package/dist/dist-types/order/shipment/index.js +0 -3
  109. package/dist/dist-types/order/shipment/item/index.d.ts +0 -3
  110. package/dist/dist-types/order/shipment/item/index.js +0 -1
  111. package/dist/dist-types/order/shipment/item/itemMain.d.ts +0 -5
  112. package/dist/dist-types/order/shipment/item/itemMain.js +0 -1
  113. package/dist/dist-types/order/shipment/item/returned.d.ts +0 -9
  114. package/dist/dist-types/order/shipment/item/returned.js +0 -1
  115. package/dist/dist-types/order/shipment/pos/index.d.ts +0 -4
  116. package/dist/dist-types/order/shipment/pos/index.js +0 -1
  117. package/dist/dist-types/order/shipment/pos/outbound.d.ts +0 -71
  118. package/dist/dist-types/order/shipment/pos/outbound.js +0 -1
  119. package/dist/dist-types/order/shipment/pos/posMain.d.ts +0 -66
  120. package/dist/dist-types/order/shipment/pos/posMain.js +0 -1
  121. package/dist/dist-types/order/shipment/pos/return.d.ts +0 -70
  122. package/dist/dist-types/order/shipment/pos/return.js +0 -1
  123. package/dist/dist-types/order/shipment/shipmentMain.d.ts +0 -58
  124. package/dist/dist-types/order/shipment/shipmentMain.js +0 -1
  125. package/dist/dist-types/order/shipment/shipped/index.d.ts +0 -4
  126. package/dist/dist-types/order/shipment/shipped/index.js +0 -1
  127. package/dist/dist-types/order/shipment/shipped/outbound.d.ts +0 -71
  128. package/dist/dist-types/order/shipment/shipped/outbound.js +0 -1
  129. package/dist/dist-types/order/shipment/shipped/return.d.ts +0 -70
  130. package/dist/dist-types/order/shipment/shipped/return.js +0 -1
  131. package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -65
  132. package/dist/dist-types/order/shipment/shipped/shippedMain.js +0 -1
  133. package/dist/dist-types/productDraft.d.ts +0 -87
  134. package/dist/dist-types/productDraft.js +0 -1
  135. package/dist/dist-types/total.d.ts +0 -43
  136. package/dist/dist-types/total.js +0 -1
  137. package/dist/src-public/index.d.ts +0 -2
  138. package/dist/src-public/index.js +0 -2
  139. package/dist/src-public/sanitize.d.ts +0 -4
  140. package/dist/src-public/sanitize.js +0 -21
  141. package/dist/src-public/validate.d.ts +0 -9
  142. package/dist/src-public/validate.js +0 -28
@@ -1,348 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Order Shipment Shipped Outbound";
4
- readonly type: "object";
5
- readonly $id: "https://shushed.example.com/order/shipment/shipped/outbound.schema.json";
6
- readonly additionalProperties: false;
7
- readonly allOf: readonly [{
8
- readonly $schema: "http://json-schema.org/draft-07/schema#";
9
- readonly title: "Order Shipment Outbound";
10
- readonly type: "object";
11
- readonly $id: "https://shushed.example.com/order/shipment/shipped.schema.json";
12
- readonly additionalProperties: false;
13
- readonly allOf: readonly [{
14
- readonly $schema: "http://json-schema.org/draft-07/schema#";
15
- readonly title: "Shipment";
16
- readonly type: "object";
17
- readonly $id: "https://shushed.example.com/order/shipment.schema.json";
18
- readonly additionalProperties: false;
19
- readonly allOf: readonly [{
20
- readonly $schema: "http://json-schema.org/draft-07/schema#";
21
- readonly title: "Total";
22
- readonly type: "object";
23
- readonly $id: "https://shushed.example.com/total.schema.json";
24
- readonly additionalProperties: false;
25
- readonly properties: {
26
- readonly amount_net: {
27
- readonly title: "Amount Net";
28
- readonly $schema: "http://json-schema.org/draft-07/schema#";
29
- readonly type: "object";
30
- readonly additionalProperties: false;
31
- readonly $id: "https://shushed.example.com/money.schema.json";
32
- readonly properties: {
33
- readonly value: {
34
- readonly type: "integer";
35
- readonly minimum: 1;
36
- };
37
- readonly decimal_places: {
38
- readonly type: "integer";
39
- readonly minimum: 0;
40
- readonly maximum: 4;
41
- };
42
- readonly currency: {
43
- readonly title: "Currency";
44
- readonly $schema: "http://json-schema.org/draft-07/schema#";
45
- readonly $id: "https://shushed.example.com/currency.schema.json";
46
- readonly type: "string";
47
- 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"];
48
- };
49
- readonly lcy_value: {
50
- readonly type: "integer";
51
- readonly minimum: 1;
52
- };
53
- readonly lcy_currency: {
54
- readonly title: "LCY Currency";
55
- readonly $schema: "http://json-schema.org/draft-07/schema#";
56
- readonly $id: "https://shushed.example.com/currency.schema.json";
57
- readonly type: "string";
58
- 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"];
59
- };
60
- readonly lcy_decimal_places: {
61
- readonly type: "integer";
62
- readonly minimum: 0;
63
- readonly maximum: 4;
64
- };
65
- };
66
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
67
- };
68
- readonly amount_gross: {
69
- readonly title: "Amount gross";
70
- readonly $schema: "http://json-schema.org/draft-07/schema#";
71
- readonly type: "object";
72
- readonly additionalProperties: false;
73
- readonly $id: "https://shushed.example.com/money.schema.json";
74
- readonly properties: {
75
- readonly value: {
76
- readonly type: "integer";
77
- readonly minimum: 1;
78
- };
79
- readonly decimal_places: {
80
- readonly type: "integer";
81
- readonly minimum: 0;
82
- readonly maximum: 4;
83
- };
84
- readonly currency: {
85
- readonly title: "Currency";
86
- readonly $schema: "http://json-schema.org/draft-07/schema#";
87
- readonly $id: "https://shushed.example.com/currency.schema.json";
88
- readonly type: "string";
89
- 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"];
90
- };
91
- readonly lcy_value: {
92
- readonly type: "integer";
93
- readonly minimum: 1;
94
- };
95
- readonly lcy_currency: {
96
- readonly title: "LCY Currency";
97
- readonly $schema: "http://json-schema.org/draft-07/schema#";
98
- readonly $id: "https://shushed.example.com/currency.schema.json";
99
- readonly type: "string";
100
- 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"];
101
- };
102
- readonly lcy_decimal_places: {
103
- readonly type: "integer";
104
- readonly minimum: 0;
105
- readonly maximum: 4;
106
- };
107
- };
108
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
109
- };
110
- readonly discount_amount_net: {
111
- readonly title: "Discount Amount Net";
112
- readonly $schema: "http://json-schema.org/draft-07/schema#";
113
- readonly type: "object";
114
- readonly additionalProperties: false;
115
- readonly $id: "https://shushed.example.com/money.schema.json";
116
- readonly properties: {
117
- readonly value: {
118
- readonly type: "integer";
119
- readonly minimum: 1;
120
- };
121
- readonly decimal_places: {
122
- readonly type: "integer";
123
- readonly minimum: 0;
124
- readonly maximum: 4;
125
- };
126
- readonly currency: {
127
- readonly title: "Currency";
128
- readonly $schema: "http://json-schema.org/draft-07/schema#";
129
- readonly $id: "https://shushed.example.com/currency.schema.json";
130
- readonly type: "string";
131
- 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"];
132
- };
133
- readonly lcy_value: {
134
- readonly type: "integer";
135
- readonly minimum: 1;
136
- };
137
- readonly lcy_currency: {
138
- readonly title: "LCY Currency";
139
- readonly $schema: "http://json-schema.org/draft-07/schema#";
140
- readonly $id: "https://shushed.example.com/currency.schema.json";
141
- readonly type: "string";
142
- 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"];
143
- };
144
- readonly lcy_decimal_places: {
145
- readonly type: "integer";
146
- readonly minimum: 0;
147
- readonly maximum: 4;
148
- };
149
- };
150
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
151
- };
152
- readonly discount_amount_gross: {
153
- readonly title: "Discount Amount Gross";
154
- readonly $schema: "http://json-schema.org/draft-07/schema#";
155
- readonly type: "object";
156
- readonly additionalProperties: false;
157
- readonly $id: "https://shushed.example.com/money.schema.json";
158
- readonly properties: {
159
- readonly value: {
160
- readonly type: "integer";
161
- readonly minimum: 1;
162
- };
163
- readonly decimal_places: {
164
- readonly type: "integer";
165
- readonly minimum: 0;
166
- readonly maximum: 4;
167
- };
168
- readonly currency: {
169
- readonly title: "Currency";
170
- readonly $schema: "http://json-schema.org/draft-07/schema#";
171
- readonly $id: "https://shushed.example.com/currency.schema.json";
172
- readonly type: "string";
173
- 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"];
174
- };
175
- readonly lcy_value: {
176
- readonly type: "integer";
177
- readonly minimum: 1;
178
- };
179
- readonly lcy_currency: {
180
- readonly title: "LCY Currency";
181
- readonly $schema: "http://json-schema.org/draft-07/schema#";
182
- readonly $id: "https://shushed.example.com/currency.schema.json";
183
- readonly type: "string";
184
- 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"];
185
- };
186
- readonly lcy_decimal_places: {
187
- readonly type: "integer";
188
- readonly minimum: 0;
189
- readonly maximum: 4;
190
- };
191
- };
192
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
193
- };
194
- readonly discount_amount_percent: {
195
- readonly type: "number";
196
- readonly title: "Discount Amount Percent";
197
- readonly minimum: 0;
198
- readonly maximum: 100;
199
- };
200
- };
201
- readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
202
- }, {
203
- readonly type: "object";
204
- readonly additionalProperties: false;
205
- readonly properties: {
206
- readonly erp_id: {
207
- readonly type: readonly ["string"];
208
- };
209
- readonly type: {
210
- readonly type: readonly ["string"];
211
- readonly enum: readonly ["SHIPPED-OUTBOUND", "SHIPPED-RETURN", "POS-OUTBOUND", "POS-RETURN"];
212
- };
213
- readonly shipped_at: {
214
- readonly type: readonly ["string"];
215
- readonly format: "date-time";
216
- };
217
- readonly status: {
218
- readonly type: readonly ["string"];
219
- readonly enum: readonly ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"];
220
- };
221
- readonly items: {
222
- readonly type: readonly ["array"];
223
- readonly additionalProperties: false;
224
- readonly items: {
225
- readonly type: "object";
226
- readonly additionalProperties: false;
227
- readonly anyOf: readonly [{
228
- readonly $schema: "http://json-schema.org/draft-07/schema#";
229
- readonly title: "Order Shipment Item";
230
- readonly type: "object";
231
- readonly additionalProperties: false;
232
- readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
233
- readonly properties: {
234
- readonly lineNumber: {
235
- readonly type: readonly ["integer"];
236
- readonly minimum: 0;
237
- };
238
- readonly quantity: {
239
- readonly type: readonly ["integer"];
240
- readonly minimum: 1;
241
- };
242
- };
243
- readonly required: readonly ["lineNumber", "quantity"];
244
- }, {
245
- readonly $schema: "http://json-schema.org/draft-07/schema#";
246
- readonly title: "Order Shipment Item Returned";
247
- readonly type: "object";
248
- readonly additionalProperties: false;
249
- readonly $id: "https://shushed.example.com/order/shipment/item/returned.schema.json";
250
- readonly allOf: readonly [{
251
- readonly $schema: "http://json-schema.org/draft-07/schema#";
252
- readonly title: "Order Shipment Item";
253
- readonly type: "object";
254
- readonly additionalProperties: false;
255
- readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
256
- readonly properties: {
257
- readonly lineNumber: {
258
- readonly type: readonly ["integer"];
259
- readonly minimum: 0;
260
- };
261
- readonly quantity: {
262
- readonly type: readonly ["integer"];
263
- readonly minimum: 1;
264
- };
265
- };
266
- readonly required: readonly ["lineNumber", "quantity"];
267
- }, {
268
- readonly type: "object";
269
- readonly additionalProperties: false;
270
- readonly properties: {
271
- readonly returnReasonCode: {
272
- readonly type: readonly ["string"];
273
- };
274
- readonly returnReason: {
275
- readonly type: readonly ["string", "null"];
276
- };
277
- };
278
- readonly required: readonly ["returnReasonCode", "returnReason"];
279
- }];
280
- }];
281
- };
282
- };
283
- };
284
- readonly required: readonly ["erp_id", "shipped_at", "status", "items"];
285
- }];
286
- }, {
287
- readonly type: "object";
288
- readonly additionalProperties: false;
289
- readonly properties: {
290
- readonly type: {
291
- readonly type: readonly ["string"];
292
- readonly enum: readonly ["SHIPPED-OUTBOUND", "SHIPPED-RETURN"];
293
- };
294
- readonly shipped_by: {
295
- readonly type: readonly ["string"];
296
- readonly enum: readonly ["TORQUE", "GLOBALE", "CUSTOMER"];
297
- };
298
- readonly courier_name: {
299
- readonly type: readonly ["string", "null"];
300
- readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE"];
301
- };
302
- readonly tracking_code: {
303
- readonly type: readonly ["string", "null"];
304
- };
305
- readonly class_name: {
306
- readonly type: readonly ["string"];
307
- readonly enum: readonly ["STANDARD", "PRIORITY"];
308
- };
309
- };
310
- readonly required: readonly ["shipped_by", "courier_name", "tracking_code", "class_name"];
311
- }];
312
- }, {
313
- readonly type: "object";
314
- readonly properties: {
315
- readonly type: {
316
- readonly type: readonly ["string"];
317
- readonly enum: readonly ["SHIPPED-OUTBOUND"];
318
- };
319
- readonly shipped_by: {
320
- readonly type: readonly ["string"];
321
- readonly enum: readonly ["TORQUE", "GLOBALE"];
322
- };
323
- readonly items: {
324
- readonly type: "array";
325
- readonly additionalProperties: false;
326
- readonly items: {
327
- readonly $schema: "http://json-schema.org/draft-07/schema#";
328
- readonly title: "Order Shipment Item";
329
- readonly type: "object";
330
- readonly additionalProperties: false;
331
- readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
332
- readonly properties: {
333
- readonly lineNumber: {
334
- readonly type: readonly ["integer"];
335
- readonly minimum: 0;
336
- };
337
- readonly quantity: {
338
- readonly type: readonly ["integer"];
339
- readonly minimum: 1;
340
- };
341
- };
342
- readonly required: readonly ["lineNumber", "quantity"];
343
- };
344
- };
345
- };
346
- }];
347
- };
348
- export default schema;
@@ -1,2 +0,0 @@
1
- const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Shipped Outbound", "type": "object", "$id": "https://shushed.example.com/order/shipment/shipped/outbound.schema.json", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Outbound", "type": "object", "$id": "https://shushed.example.com/order/shipment/shipped.schema.json", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Shipment", "type": "object", "$id": "https://shushed.example.com/order/shipment.schema.json", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Total", "type": "object", "$id": "https://shushed.example.com/total.schema.json", "additionalProperties": false, "properties": { "amount_net": { "title": "Amount Net", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "amount_gross": { "title": "Amount gross", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_net": { "title": "Discount Amount Net", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_gross": { "title": "Discount Amount Gross", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_percent": { "type": "number", "title": "Discount Amount Percent", "minimum": 0, "maximum": 100 } }, "required": ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"] }, { "type": "object", "additionalProperties": false, "properties": { "erp_id": { "type": ["string"] }, "type": { "type": ["string"], "enum": ["SHIPPED-OUTBOUND", "SHIPPED-RETURN", "POS-OUTBOUND", "POS-RETURN"] }, "shipped_at": { "type": ["string"], "format": "date-time" }, "status": { "type": ["string"], "enum": ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"] }, "items": { "type": ["array"], "additionalProperties": false, "items": { "type": "object", "additionalProperties": false, "anyOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] }, { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item Returned", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item/returned.schema.json", "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] }, { "type": "object", "additionalProperties": false, "properties": { "returnReasonCode": { "type": ["string"] }, "returnReason": { "type": ["string", "null"] } }, "required": ["returnReasonCode", "returnReason"] }] }] } } }, "required": ["erp_id", "shipped_at", "status", "items"] }] }, { "type": "object", "additionalProperties": false, "properties": { "type": { "type": ["string"], "enum": ["SHIPPED-OUTBOUND", "SHIPPED-RETURN"] }, "shipped_by": { "type": ["string"], "enum": ["TORQUE", "GLOBALE", "CUSTOMER"] }, "courier_name": { "type": ["string", "null"], "enum": ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE"] }, "tracking_code": { "type": ["string", "null"] }, "class_name": { "type": ["string"], "enum": ["STANDARD", "PRIORITY"] } }, "required": ["shipped_by", "courier_name", "tracking_code", "class_name"] }] }, { "type": "object", "properties": { "type": { "type": ["string"], "enum": ["SHIPPED-OUTBOUND"] }, "shipped_by": { "type": ["string"], "enum": ["TORQUE", "GLOBALE"] }, "items": { "type": "array", "additionalProperties": false, "items": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] } } } }] };
2
- export default schema;