@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,90 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Payment";
4
- readonly type: "object";
5
- readonly $id: "https://shushed.example.com/order/payment.schema.json";
6
- readonly additionalProperties: false;
7
- readonly properties: {
8
- readonly type: {
9
- readonly type: "string";
10
- readonly enum: readonly ["REFUND", "CHARGE"];
11
- };
12
- readonly additionalProperties: false;
13
- readonly created_at: {
14
- readonly type: "string";
15
- readonly format: "date-time";
16
- };
17
- readonly payment_method: {
18
- readonly type: "string";
19
- readonly enum: readonly ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"];
20
- };
21
- readonly transaction_id: {
22
- readonly type: readonly ["string"];
23
- };
24
- readonly card_number: {
25
- readonly type: readonly ["string", "null"];
26
- };
27
- readonly journey_label: {
28
- readonly type: readonly ["string"];
29
- readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"];
30
- };
31
- readonly psp_reference: {
32
- readonly type: readonly ["string"];
33
- };
34
- readonly card_brand: {
35
- readonly type: readonly ["string", "null"];
36
- };
37
- readonly status: {
38
- readonly type: readonly ["string"];
39
- readonly enum: readonly ["CAPTURED", "FAILED", "FAILED-3DS", "CANCELLED"];
40
- };
41
- readonly amount: {
42
- readonly $schema: "http://json-schema.org/draft-07/schema#";
43
- readonly title: "Money";
44
- readonly type: "object";
45
- readonly additionalProperties: false;
46
- readonly $id: "https://shushed.example.com/money.schema.json";
47
- readonly properties: {
48
- readonly value: {
49
- readonly type: "integer";
50
- readonly minimum: 1;
51
- };
52
- readonly decimal_places: {
53
- readonly type: "integer";
54
- readonly minimum: 0;
55
- readonly maximum: 4;
56
- };
57
- readonly currency: {
58
- readonly title: "Currency";
59
- readonly $schema: "http://json-schema.org/draft-07/schema#";
60
- readonly $id: "https://shushed.example.com/currency.schema.json";
61
- readonly type: "string";
62
- 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"];
63
- };
64
- readonly lcy_value: {
65
- readonly type: "integer";
66
- readonly minimum: 1;
67
- };
68
- readonly lcy_currency: {
69
- readonly title: "LCY Currency";
70
- readonly $schema: "http://json-schema.org/draft-07/schema#";
71
- readonly $id: "https://shushed.example.com/currency.schema.json";
72
- readonly type: "string";
73
- 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"];
74
- };
75
- readonly lcy_decimal_places: {
76
- readonly type: "integer";
77
- readonly minimum: 0;
78
- readonly maximum: 4;
79
- };
80
- };
81
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
82
- };
83
- readonly created_by: {
84
- readonly type: readonly ["string"];
85
- readonly enum: readonly ["CUSTOMER", "SYSTEM"];
86
- };
87
- };
88
- readonly required: readonly ["created_at", "payment_method", "transaction_id", "psp_reference", "status", "amount", "created_by", "journey_label"];
89
- };
90
- export default schema;
@@ -1,2 +0,0 @@
1
- const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Payment", "type": "object", "$id": "https://shushed.example.com/order/payment.schema.json", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["REFUND", "CHARGE"] }, "additionalProperties": false, "created_at": { "type": "string", "format": "date-time" }, "payment_method": { "type": "string", "enum": ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"] }, "transaction_id": { "type": ["string"] }, "card_number": { "type": ["string", "null"] }, "journey_label": { "type": ["string"], "enum": ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"] }, "psp_reference": { "type": ["string"] }, "card_brand": { "type": ["string", "null"] }, "status": { "type": ["string"], "enum": ["CAPTURED", "FAILED", "FAILED-3DS", "CANCELLED"] }, "amount": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Money", "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"] }, "created_by": { "type": ["string"], "enum": ["CUSTOMER", "SYSTEM"] } }, "required": ["created_at", "payment_method", "transaction_id", "psp_reference", "status", "amount", "created_by", "journey_label"] };
2
- export default schema;
@@ -1,5 +0,0 @@
1
- export * as Item from './item';
2
- export * as Pos from './pos';
3
- export * as Shipped from './shipped';
4
- import MainModule from './shipmentMain';
5
- export default MainModule;
@@ -1,5 +0,0 @@
1
- export * as Item from './item';
2
- export * as Pos from './pos';
3
- export * as Shipped from './shipped';
4
- import MainModule from './shipmentMain';
5
- export default MainModule;
@@ -1,3 +0,0 @@
1
- export { default as Returned } from './returned';
2
- import MainModule from './itemMain';
3
- export default MainModule;
@@ -1,3 +0,0 @@
1
- export { default as Returned } from './returned';
2
- import MainModule from './itemMain';
3
- export default MainModule;
@@ -1,19 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Order Shipment Item";
4
- readonly type: "object";
5
- readonly additionalProperties: false;
6
- readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
7
- readonly properties: {
8
- readonly lineNumber: {
9
- readonly type: readonly ["integer"];
10
- readonly minimum: 0;
11
- };
12
- readonly quantity: {
13
- readonly type: readonly ["integer"];
14
- readonly minimum: 1;
15
- };
16
- };
17
- readonly required: readonly ["lineNumber", "quantity"];
18
- };
19
- export default schema;
@@ -1,2 +0,0 @@
1
- const schema = { "$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;
@@ -1,38 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Order Shipment Item Returned";
4
- readonly type: "object";
5
- readonly additionalProperties: false;
6
- readonly $id: "https://shushed.example.com/order/shipment/item/returned.schema.json";
7
- readonly allOf: readonly [{
8
- readonly $schema: "http://json-schema.org/draft-07/schema#";
9
- readonly title: "Order Shipment Item";
10
- readonly type: "object";
11
- readonly additionalProperties: false;
12
- readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
13
- readonly properties: {
14
- readonly lineNumber: {
15
- readonly type: readonly ["integer"];
16
- readonly minimum: 0;
17
- };
18
- readonly quantity: {
19
- readonly type: readonly ["integer"];
20
- readonly minimum: 1;
21
- };
22
- };
23
- readonly required: readonly ["lineNumber", "quantity"];
24
- }, {
25
- readonly type: "object";
26
- readonly additionalProperties: false;
27
- readonly properties: {
28
- readonly returnReasonCode: {
29
- readonly type: readonly ["string"];
30
- };
31
- readonly returnReason: {
32
- readonly type: readonly ["string", "null"];
33
- };
34
- };
35
- readonly required: readonly ["returnReasonCode", "returnReason"];
36
- }];
37
- };
38
- export default schema;
@@ -1,2 +0,0 @@
1
- const schema = { "$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"] }] };
2
- export default schema;
@@ -1,4 +0,0 @@
1
- export { default as Outbound } from './outbound';
2
- export { default as Return } from './return';
3
- import MainModule from './posMain';
4
- export default MainModule;
@@ -1,4 +0,0 @@
1
- export { default as Outbound } from './outbound';
2
- export { default as Return } from './return';
3
- import MainModule from './posMain';
4
- export default MainModule;
@@ -1,351 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Order Shipment POS Outbound";
4
- readonly type: "object";
5
- readonly $id: "https://shushed.example.com/order/shipment/pos/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/pos.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 ["POS-OUTBOUND", "POS-RETURN"];
293
- };
294
- readonly status: {
295
- readonly type: readonly ["string"];
296
- readonly enum: readonly ["RECEIVED"];
297
- };
298
- readonly store_id: {
299
- readonly type: readonly ["string", "null"];
300
- };
301
- readonly store_name: {
302
- readonly type: readonly ["string", "null"];
303
- };
304
- readonly associate_id: {
305
- readonly type: readonly ["string", "null"];
306
- };
307
- readonly associate_name: {
308
- readonly type: readonly ["string", "null"];
309
- };
310
- };
311
- readonly required: readonly ["store_id", "store_name", "associate_id", "associate_name"];
312
- }];
313
- }, {
314
- readonly type: "object";
315
- readonly additionalProperties: false;
316
- readonly properties: {
317
- readonly type: {
318
- readonly type: readonly ["string"];
319
- readonly enum: readonly ["POS-OUTBOUND"];
320
- };
321
- readonly shipped_by: {
322
- readonly type: readonly ["string"];
323
- readonly enum: readonly ["TORQUE", "GLOBALE"];
324
- };
325
- readonly items: {
326
- readonly type: "array";
327
- readonly additionalProperties: false;
328
- readonly items: {
329
- readonly $schema: "http://json-schema.org/draft-07/schema#";
330
- readonly title: "Order Shipment Item";
331
- readonly type: "object";
332
- readonly additionalProperties: false;
333
- readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
334
- readonly properties: {
335
- readonly lineNumber: {
336
- readonly type: readonly ["integer"];
337
- readonly minimum: 0;
338
- };
339
- readonly quantity: {
340
- readonly type: readonly ["integer"];
341
- readonly minimum: 1;
342
- };
343
- };
344
- readonly required: readonly ["lineNumber", "quantity"];
345
- };
346
- };
347
- };
348
- readonly required: readonly ["type", "shipped_by", "items"];
349
- }];
350
- };
351
- export default schema;