@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.
- package/dist/index.d.ts +29663 -3
- package/dist/index.js +348 -3
- package/dist/package.json +1 -3
- package/package.json +2 -4
- package/dist/dist-dereferenced/country.d.ts +0 -8
- package/dist/dist-dereferenced/country.js +0 -2
- package/dist/dist-dereferenced/currency.d.ts +0 -8
- package/dist/dist-dereferenced/currency.js +0 -2
- package/dist/dist-dereferenced/index.d.ts +0 -7
- package/dist/dist-dereferenced/index.js +0 -7
- package/dist/dist-dereferenced/messages/index.d.ts +0 -1
- package/dist/dist-dereferenced/messages/index.js +0 -1
- package/dist/dist-dereferenced/messages/order/delivered.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/delivered.js +0 -2
- package/dist/dist-dereferenced/messages/order/index.d.ts +0 -6
- package/dist/dist-dereferenced/messages/order/index.js +0 -6
- package/dist/dist-dereferenced/messages/order/new.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/new.js +0 -2
- package/dist/dist-dereferenced/messages/order/processed.d.ts +0 -3404
- package/dist/dist-dereferenced/messages/order/processed.js +0 -2
- package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/return-initiated.js +0 -2
- package/dist/dist-dereferenced/messages/order/returned.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/returned.js +0 -2
- package/dist/dist-dereferenced/messages/order/shipped.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/shipped.js +0 -2
- package/dist/dist-dereferenced/money.d.ts +0 -43
- package/dist/dist-dereferenced/money.js +0 -2
- package/dist/dist-dereferenced/order/address.d.ts +0 -51
- package/dist/dist-dereferenced/order/address.js +0 -2
- package/dist/dist-dereferenced/order/customer.d.ts +0 -10
- package/dist/dist-dereferenced/order/customer.js +0 -2
- package/dist/dist-dereferenced/order/index.d.ts +0 -7
- package/dist/dist-dereferenced/order/index.js +0 -7
- package/dist/dist-dereferenced/order/item.d.ts +0 -450
- package/dist/dist-dereferenced/order/item.js +0 -2
- package/dist/dist-dereferenced/order/orderMain.d.ts +0 -3394
- package/dist/dist-dereferenced/order/orderMain.js +0 -2
- package/dist/dist-dereferenced/order/payment.d.ts +0 -90
- package/dist/dist-dereferenced/order/payment.js +0 -2
- package/dist/dist-dereferenced/order/shipment/index.d.ts +0 -5
- package/dist/dist-dereferenced/order/shipment/index.js +0 -5
- package/dist/dist-dereferenced/order/shipment/item/index.d.ts +0 -3
- package/dist/dist-dereferenced/order/shipment/item/index.js +0 -3
- package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -19
- package/dist/dist-dereferenced/order/shipment/item/itemMain.js +0 -2
- package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +0 -38
- package/dist/dist-dereferenced/order/shipment/item/returned.js +0 -2
- package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +0 -4
- package/dist/dist-dereferenced/order/shipment/pos/index.js +0 -4
- package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -351
- package/dist/dist-dereferenced/order/shipment/pos/outbound.js +0 -2
- package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -308
- package/dist/dist-dereferenced/order/shipment/pos/posMain.js +0 -2
- package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +0 -365
- package/dist/dist-dereferenced/order/shipment/pos/return.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -275
- package/dist/dist-dereferenced/order/shipment/shipmentMain.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -4
- package/dist/dist-dereferenced/order/shipment/shipped/index.js +0 -4
- package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -348
- package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -369
- package/dist/dist-dereferenced/order/shipment/shipped/return.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -307
- package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -2
- package/dist/dist-dereferenced/productDraft.d.ts +0 -523
- package/dist/dist-dereferenced/productDraft.js +0 -2
- package/dist/dist-dereferenced/total.d.ts +0 -185
- package/dist/dist-dereferenced/total.js +0 -2
- package/dist/dist-types/country.d.ts +0 -2
- package/dist/dist-types/country.js +0 -1
- package/dist/dist-types/currency.d.ts +0 -2
- package/dist/dist-types/currency.js +0 -1
- package/dist/dist-types/index.d.ts +0 -7
- package/dist/dist-types/index.js +0 -2
- package/dist/dist-types/messages/index.d.ts +0 -1
- package/dist/dist-types/messages/index.js +0 -1
- package/dist/dist-types/messages/order/delivered.d.ts +0 -178
- package/dist/dist-types/messages/order/delivered.js +0 -1
- package/dist/dist-types/messages/order/index.d.ts +0 -6
- package/dist/dist-types/messages/order/index.js +0 -1
- package/dist/dist-types/messages/order/new.d.ts +0 -178
- package/dist/dist-types/messages/order/new.js +0 -1
- package/dist/dist-types/messages/order/processed.d.ts +0 -176
- package/dist/dist-types/messages/order/processed.js +0 -1
- package/dist/dist-types/messages/order/return-initiated.d.ts +0 -178
- package/dist/dist-types/messages/order/return-initiated.js +0 -1
- package/dist/dist-types/messages/order/returned.d.ts +0 -178
- package/dist/dist-types/messages/order/returned.js +0 -1
- package/dist/dist-types/messages/order/shipped.d.ts +0 -178
- package/dist/dist-types/messages/order/shipped.js +0 -1
- package/dist/dist-types/money.d.ts +0 -11
- package/dist/dist-types/money.js +0 -1
- package/dist/dist-types/order/address.d.ts +0 -12
- package/dist/dist-types/order/address.js +0 -1
- package/dist/dist-types/order/customer.d.ts +0 -3
- package/dist/dist-types/order/customer.js +0 -1
- package/dist/dist-types/order/index.d.ts +0 -7
- package/dist/dist-types/order/index.js +0 -1
- package/dist/dist-types/order/item.d.ts +0 -70
- package/dist/dist-types/order/item.js +0 -1
- package/dist/dist-types/order/orderMain.d.ts +0 -175
- package/dist/dist-types/order/orderMain.js +0 -1
- package/dist/dist-types/order/payment.d.ts +0 -25
- package/dist/dist-types/order/payment.js +0 -1
- package/dist/dist-types/order/shipment/index.d.ts +0 -5
- package/dist/dist-types/order/shipment/index.js +0 -3
- package/dist/dist-types/order/shipment/item/index.d.ts +0 -3
- package/dist/dist-types/order/shipment/item/index.js +0 -1
- package/dist/dist-types/order/shipment/item/itemMain.d.ts +0 -5
- package/dist/dist-types/order/shipment/item/itemMain.js +0 -1
- package/dist/dist-types/order/shipment/item/returned.d.ts +0 -9
- package/dist/dist-types/order/shipment/item/returned.js +0 -1
- package/dist/dist-types/order/shipment/pos/index.d.ts +0 -4
- package/dist/dist-types/order/shipment/pos/index.js +0 -1
- package/dist/dist-types/order/shipment/pos/outbound.d.ts +0 -71
- package/dist/dist-types/order/shipment/pos/outbound.js +0 -1
- package/dist/dist-types/order/shipment/pos/posMain.d.ts +0 -66
- package/dist/dist-types/order/shipment/pos/posMain.js +0 -1
- package/dist/dist-types/order/shipment/pos/return.d.ts +0 -70
- package/dist/dist-types/order/shipment/pos/return.js +0 -1
- package/dist/dist-types/order/shipment/shipmentMain.d.ts +0 -58
- package/dist/dist-types/order/shipment/shipmentMain.js +0 -1
- package/dist/dist-types/order/shipment/shipped/index.d.ts +0 -4
- package/dist/dist-types/order/shipment/shipped/index.js +0 -1
- package/dist/dist-types/order/shipment/shipped/outbound.d.ts +0 -71
- package/dist/dist-types/order/shipment/shipped/outbound.js +0 -1
- package/dist/dist-types/order/shipment/shipped/return.d.ts +0 -70
- package/dist/dist-types/order/shipment/shipped/return.js +0 -1
- package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -65
- package/dist/dist-types/order/shipment/shipped/shippedMain.js +0 -1
- package/dist/dist-types/productDraft.d.ts +0 -87
- package/dist/dist-types/productDraft.js +0 -1
- package/dist/dist-types/total.d.ts +0 -43
- package/dist/dist-types/total.js +0 -1
- package/dist/src-public/index.d.ts +0 -2
- package/dist/src-public/index.js +0 -2
- package/dist/src-public/sanitize.d.ts +0 -4
- package/dist/src-public/sanitize.js +0 -21
- package/dist/src-public/validate.d.ts +0 -9
- package/dist/src-public/validate.js +0 -28
|
@@ -1,307 +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/shipped.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 ["SHIPPED-OUTBOUND", "SHIPPED-RETURN"];
|
|
287
|
-
};
|
|
288
|
-
readonly shipped_by: {
|
|
289
|
-
readonly type: readonly ["string"];
|
|
290
|
-
readonly enum: readonly ["TORQUE", "GLOBALE", "CUSTOMER"];
|
|
291
|
-
};
|
|
292
|
-
readonly courier_name: {
|
|
293
|
-
readonly type: readonly ["string", "null"];
|
|
294
|
-
readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE"];
|
|
295
|
-
};
|
|
296
|
-
readonly tracking_code: {
|
|
297
|
-
readonly type: readonly ["string", "null"];
|
|
298
|
-
};
|
|
299
|
-
readonly class_name: {
|
|
300
|
-
readonly type: readonly ["string"];
|
|
301
|
-
readonly enum: readonly ["STANDARD", "PRIORITY"];
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
readonly required: readonly ["shipped_by", "courier_name", "tracking_code", "class_name"];
|
|
305
|
-
}];
|
|
306
|
-
};
|
|
307
|
-
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/shipped.schema.json", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Shipment", "type": "object", "$id": "https://shushed.example.com/order/shipment.schema.json", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Total", "type": "object", "$id": "https://shushed.example.com/total.schema.json", "additionalProperties": false, "properties": { "amount_net": { "title": "Amount Net", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "amount_gross": { "title": "Amount gross", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_net": { "title": "Discount Amount Net", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_gross": { "title": "Discount Amount Gross", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://shushed.example.com/currency.schema.json", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_percent": { "type": "number", "title": "Discount Amount Percent", "minimum": 0, "maximum": 100 } }, "required": ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"] }, { "type": "object", "additionalProperties": false, "properties": { "erp_id": { "type": ["string"] }, "type": { "type": ["string"], "enum": ["SHIPPED-OUTBOUND", "SHIPPED-RETURN", "POS-OUTBOUND", "POS-RETURN"] }, "shipped_at": { "type": ["string"], "format": "date-time" }, "status": { "type": ["string"], "enum": ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"] }, "items": { "type": ["array"], "additionalProperties": false, "items": { "type": "object", "additionalProperties": false, "anyOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] }, { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item Returned", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item/returned.schema.json", "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] }, { "type": "object", "additionalProperties": false, "properties": { "returnReasonCode": { "type": ["string"] }, "returnReason": { "type": ["string", "null"] } }, "required": ["returnReasonCode", "returnReason"] }] }] } } }, "required": ["erp_id", "shipped_at", "status", "items"] }] }, { "type": "object", "additionalProperties": false, "properties": { "type": { "type": ["string"], "enum": ["SHIPPED-OUTBOUND", "SHIPPED-RETURN"] }, "shipped_by": { "type": ["string"], "enum": ["TORQUE", "GLOBALE", "CUSTOMER"] }, "courier_name": { "type": ["string", "null"], "enum": ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE"] }, "tracking_code": { "type": ["string", "null"] }, "class_name": { "type": ["string"], "enum": ["STANDARD", "PRIORITY"] } }, "required": ["shipped_by", "courier_name", "tracking_code", "class_name"] }] };
|
|
2
|
-
export default schema;
|