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