@shushed/helpers 0.0.8 → 0.0.10

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