@shushed/helpers 0.0.199 → 0.0.200-dato-rate-limit2-20251126110330
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/cjs/dist-dereferenced/asset.js +4 -0
- package/dist/cjs/dist-dereferenced/category.js +4 -0
- package/dist/cjs/dist-dereferenced/country.js +4 -0
- package/dist/cjs/dist-dereferenced/currency.js +4 -0
- package/dist/cjs/dist-dereferenced/customer-segment.js +4 -0
- package/dist/cjs/dist-dereferenced/development-colour.js +4 -0
- package/dist/cjs/dist-dereferenced/index.js +69 -0
- package/dist/cjs/dist-dereferenced/marketing-preferences.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/ean-change.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/index.js +50 -0
- package/dist/cjs/dist-dereferenced/messages/order/delivered.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/index.js +18 -0
- package/dist/cjs/dist-dereferenced/messages/order/new.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/processed.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/returned.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/shipped.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/price-change.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/product-category.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/product-draft.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/product.js +4 -0
- package/dist/cjs/dist-dereferenced/money.js +4 -0
- package/dist/cjs/dist-dereferenced/order/address.js +4 -0
- package/dist/cjs/dist-dereferenced/order/customer.js +4 -0
- package/dist/cjs/dist-dereferenced/order/index.js +51 -0
- package/dist/cjs/dist-dereferenced/order/item.js +4 -0
- package/dist/cjs/dist-dereferenced/order/orderMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/payment.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/index.js +45 -0
- package/dist/cjs/dist-dereferenced/order/shipment/item/index.js +11 -0
- package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/index.js +13 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/index.js +13 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +4 -0
- package/dist/cjs/dist-dereferenced/price.js +4 -0
- package/dist/cjs/dist-dereferenced/product-category.js +4 -0
- package/dist/cjs/dist-dereferenced/product-draft.js +4 -0
- package/dist/cjs/dist-dereferenced/product.js +4 -0
- package/dist/cjs/dist-dereferenced/stock.js +4 -0
- package/dist/cjs/dist-dereferenced/total.js +4 -0
- package/dist/cjs/dist-types/asset.js +2 -0
- package/dist/cjs/dist-types/category.js +2 -0
- package/dist/cjs/dist-types/country.js +2 -0
- package/dist/cjs/dist-types/currency.js +2 -0
- package/dist/cjs/dist-types/customer-segment.js +2 -0
- package/dist/cjs/dist-types/development-colour.js +2 -0
- package/dist/cjs/dist-types/index.js +38 -0
- package/dist/cjs/dist-types/marketing-preferences.js +2 -0
- package/dist/cjs/dist-types/messages/ean-change.js +2 -0
- package/dist/cjs/dist-types/messages/index.js +37 -0
- package/dist/cjs/dist-types/messages/order/delivered.js +2 -0
- package/dist/cjs/dist-types/messages/order/index.js +2 -0
- package/dist/cjs/dist-types/messages/order/new.js +2 -0
- package/dist/cjs/dist-types/messages/order/processed.js +2 -0
- package/dist/cjs/dist-types/messages/order/return-initiated.js +2 -0
- package/dist/cjs/dist-types/messages/order/returned.js +2 -0
- package/dist/cjs/dist-types/messages/order/shipped.js +2 -0
- package/dist/cjs/dist-types/messages/price-change.js +2 -0
- package/dist/cjs/dist-types/messages/product-category.js +2 -0
- package/dist/cjs/dist-types/messages/product-draft.js +2 -0
- package/dist/cjs/dist-types/messages/product.js +2 -0
- package/dist/cjs/dist-types/money.js +2 -0
- package/dist/cjs/dist-types/order/address.js +2 -0
- package/dist/cjs/dist-types/order/customer.js +2 -0
- package/dist/cjs/dist-types/order/index.js +37 -0
- package/dist/cjs/dist-types/order/item.js +2 -0
- package/dist/cjs/dist-types/order/orderMain.js +2 -0
- package/dist/cjs/dist-types/order/payment.js +2 -0
- package/dist/cjs/dist-types/order/shipment/index.js +39 -0
- package/dist/cjs/dist-types/order/shipment/item/index.js +2 -0
- package/dist/cjs/dist-types/order/shipment/item/itemMain.js +2 -0
- package/dist/cjs/dist-types/order/shipment/item/returned.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/index.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/outbound.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/posMain.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/return.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipmentMain.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/index.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/outbound.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/return.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/shippedMain.js +2 -0
- package/dist/cjs/dist-types/price.js +2 -0
- package/dist/cjs/dist-types/product-category.js +2 -0
- package/dist/cjs/dist-types/product-draft.js +2 -0
- package/dist/cjs/dist-types/product.js +2 -0
- package/dist/cjs/dist-types/stock.js +2 -0
- package/dist/cjs/dist-types/total.js +2 -0
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/src-public/airtable.js +590 -0
- package/dist/cjs/src-public/bigquery.js +59 -0
- package/dist/cjs/src-public/cloudtasks.js +207 -0
- package/dist/cjs/src-public/dato.js +272 -0
- package/dist/cjs/src-public/env.js +897 -0
- package/dist/cjs/src-public/getEventTime.js +28 -0
- package/dist/cjs/src-public/index.js +50 -0
- package/dist/cjs/src-public/ipValidation.js +167 -0
- package/dist/cjs/src-public/jwks.js +108 -0
- package/dist/cjs/src-public/pubsub.js +423 -0
- package/dist/cjs/src-public/rateLimit.js +140 -0
- package/dist/cjs/src-public/redisClient.js +44 -0
- package/dist/cjs/src-public/runtime.js +135 -0
- package/dist/cjs/src-public/sanitize.js +25 -0
- package/dist/cjs/src-public/scheduler.js +247 -0
- package/dist/cjs/src-public/secret.js +16 -0
- package/dist/cjs/src-public/setHeaders.js +16 -0
- package/dist/cjs/src-public/types.js +2 -0
- package/dist/cjs/src-public/utils.js +454 -0
- package/dist/cjs/src-public/validate.js +40 -0
- package/dist/package.json +6 -3
- package/dist/types/dist-dereferenced/asset.d.ts +51 -0
- package/dist/types/dist-dereferenced/category.d.ts +58 -0
- package/dist/types/dist-dereferenced/country.d.ts +8 -0
- package/dist/types/dist-dereferenced/currency.d.ts +8 -0
- package/dist/types/dist-dereferenced/customer-segment.d.ts +26 -0
- package/dist/types/dist-dereferenced/development-colour.d.ts +114 -0
- package/dist/types/dist-dereferenced/index.d.ts +16 -0
- package/dist/types/dist-dereferenced/marketing-preferences.d.ts +31 -0
- package/dist/types/dist-dereferenced/messages/ean-change.d.ts +17 -0
- package/dist/types/dist-dereferenced/messages/index.d.ts +6 -0
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +3414 -0
- package/dist/types/dist-dereferenced/messages/order/index.d.ts +6 -0
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +3414 -0
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +3408 -0
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +3414 -0
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +3413 -0
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +3412 -0
- package/dist/types/dist-dereferenced/messages/price-change.d.ts +67 -0
- package/dist/types/dist-dereferenced/messages/product-category.d.ts +33 -0
- package/dist/types/dist-dereferenced/messages/product-draft.d.ts +589 -0
- package/dist/types/dist-dereferenced/messages/product.d.ts +628 -0
- package/dist/types/dist-dereferenced/money.d.ts +41 -0
- package/dist/types/dist-dereferenced/order/address.d.ts +98 -0
- package/dist/types/dist-dereferenced/order/customer.d.ts +309 -0
- package/dist/types/dist-dereferenced/order/index.d.ts +3404 -0
- package/dist/types/dist-dereferenced/order/item.d.ts +336 -0
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +3399 -0
- package/dist/types/dist-dereferenced/order/payment.d.ts +94 -0
- package/dist/types/dist-dereferenced/order/shipment/index.d.ts +253 -0
- package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +19 -0
- package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +18 -0
- package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +34 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +282 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +320 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +280 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +331 -0
- package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +250 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +288 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +286 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +287 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +286 -0
- package/dist/types/dist-dereferenced/price.d.ts +58 -0
- package/dist/types/dist-dereferenced/product-category.d.ts +24 -0
- package/dist/types/dist-dereferenced/product-draft.d.ts +580 -0
- package/dist/types/dist-dereferenced/product.d.ts +619 -0
- package/dist/types/dist-dereferenced/stock.d.ts +74 -0
- package/dist/types/dist-dereferenced/total.d.ts +172 -0
- package/dist/types/dist-types/asset.d.ts +16 -0
- package/dist/types/dist-types/category.d.ts +20 -0
- package/dist/types/dist-types/country.d.ts +2 -0
- package/dist/types/dist-types/currency.d.ts +2 -0
- package/dist/types/dist-types/customer-segment.d.ts +6 -0
- package/dist/types/dist-types/development-colour.d.ts +31 -0
- package/dist/types/dist-types/index.d.ts +16 -0
- package/dist/types/dist-types/marketing-preferences.d.ts +9 -0
- package/dist/types/dist-types/messages/ean-change.d.ts +5 -0
- package/dist/types/dist-types/messages/index.d.ts +6 -0
- package/dist/types/dist-types/messages/order/delivered.d.ts +292 -0
- package/dist/types/dist-types/messages/order/index.d.ts +6 -0
- package/dist/types/dist-types/messages/order/new.d.ts +292 -0
- package/dist/types/dist-types/messages/order/processed.d.ts +292 -0
- package/dist/types/dist-types/messages/order/return-initiated.d.ts +292 -0
- package/dist/types/dist-types/messages/order/returned.d.ts +293 -0
- package/dist/types/dist-types/messages/order/shipped.d.ts +293 -0
- package/dist/types/dist-types/messages/price-change.d.ts +16 -0
- package/dist/types/dist-types/messages/product-category.d.ts +7 -0
- package/dist/types/dist-types/messages/product-draft.d.ts +136 -0
- package/dist/types/dist-types/messages/product.d.ts +144 -0
- package/dist/types/dist-types/money.d.ts +11 -0
- package/dist/types/dist-types/order/address.d.ts +27 -0
- package/dist/types/dist-types/order/customer.d.ts +81 -0
- package/dist/types/dist-types/order/index.d.ts +8 -0
- package/dist/types/dist-types/order/item.d.ts +85 -0
- package/dist/types/dist-types/order/orderMain.d.ts +289 -0
- package/dist/types/dist-types/order/payment.d.ts +26 -0
- package/dist/types/dist-types/order/shipment/index.d.ts +6 -0
- package/dist/types/dist-types/order/shipment/item/index.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +6 -0
- package/dist/types/dist-types/order/shipment/item/returned.d.ts +11 -0
- package/dist/types/dist-types/order/shipment/pos/index.d.ts +5 -0
- package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +76 -0
- package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +71 -0
- package/dist/types/dist-types/order/shipment/pos/return.d.ts +75 -0
- package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +62 -0
- package/dist/types/dist-types/order/shipment/shipped/index.d.ts +5 -0
- package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +68 -0
- package/dist/types/dist-types/order/shipment/shipped/return.d.ts +68 -0
- package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +69 -0
- package/dist/types/dist-types/price.d.ts +15 -0
- package/dist/types/dist-types/product-category.d.ts +6 -0
- package/dist/types/dist-types/product-draft.d.ts +135 -0
- package/dist/types/dist-types/product.d.ts +143 -0
- package/dist/types/dist-types/stock.d.ts +19 -0
- package/dist/types/dist-types/total.d.ts +44 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src-public/airtable.d.ts +220 -0
- package/dist/types/src-public/bigquery.d.ts +17 -0
- package/dist/types/src-public/cloudtasks.d.ts +74 -0
- package/dist/types/src-public/dato.d.ts +61 -0
- package/dist/types/src-public/env.d.ts +144 -0
- package/dist/types/src-public/getEventTime.d.ts +1 -0
- package/dist/types/src-public/index.d.ts +16 -0
- package/dist/types/src-public/ipValidation.d.ts +15 -0
- package/dist/types/src-public/jwks.d.ts +15 -0
- package/dist/types/src-public/pubsub.d.ts +95 -0
- package/dist/types/src-public/rateLimit.d.ts +21 -0
- package/dist/types/src-public/redisClient.d.ts +6 -0
- package/dist/types/src-public/runtime.d.ts +56 -0
- package/dist/types/src-public/sanitize.d.ts +4 -0
- package/dist/types/src-public/scheduler.d.ts +71 -0
- package/dist/types/src-public/secret.d.ts +6 -0
- package/dist/types/src-public/setHeaders.d.ts +13 -0
- package/dist/types/src-public/types.d.ts +264 -0
- package/dist/types/src-public/utils.d.ts +101 -0
- package/dist/types/src-public/validate.d.ts +9 -0
- package/package.json +7 -4
- package/dist/index.d.ts +0 -34970
- package/dist/index.js +0 -112969
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare const schema: {
|
|
2
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
+
readonly title: "Payment";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly additionalProperties: true;
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly type: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly enum: readonly ["REFUND", "CHARGE"];
|
|
10
|
+
};
|
|
11
|
+
readonly additionalProperties: false;
|
|
12
|
+
readonly created_at: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly format: "date-time";
|
|
15
|
+
readonly example: "2024-07-09T14:30:00Z";
|
|
16
|
+
readonly nullable: true;
|
|
17
|
+
};
|
|
18
|
+
readonly payment_method: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly enum: readonly ["MOTO", "CREDIT-CARD", "GIFT-CARD", "PAYPAL", "APPLE-PAY", "OTHER"];
|
|
21
|
+
};
|
|
22
|
+
readonly transaction_id: {
|
|
23
|
+
readonly type: readonly ["string"];
|
|
24
|
+
};
|
|
25
|
+
readonly card_number: {
|
|
26
|
+
readonly type: readonly ["string", "null"];
|
|
27
|
+
};
|
|
28
|
+
readonly journey_label: {
|
|
29
|
+
readonly type: readonly ["string"];
|
|
30
|
+
readonly enum: readonly ["CHECKOUT", "POS", "EXPRESS", "MOTO", "SYSTEM"];
|
|
31
|
+
};
|
|
32
|
+
readonly psp_reference: {
|
|
33
|
+
readonly type: readonly ["string"];
|
|
34
|
+
};
|
|
35
|
+
readonly card_brand: {
|
|
36
|
+
readonly type: readonly ["string", "null"];
|
|
37
|
+
};
|
|
38
|
+
readonly status: {
|
|
39
|
+
readonly type: readonly ["string"];
|
|
40
|
+
readonly enum: readonly ["CAPTURED", "FAILED", "FAILED-3DS", "CANCELLED"];
|
|
41
|
+
};
|
|
42
|
+
readonly amount: {
|
|
43
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
44
|
+
readonly title: "Money";
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly additionalProperties: false;
|
|
47
|
+
readonly properties: {
|
|
48
|
+
readonly value: {
|
|
49
|
+
readonly type: "integer";
|
|
50
|
+
readonly minimum: 0;
|
|
51
|
+
};
|
|
52
|
+
readonly decimal_places: {
|
|
53
|
+
readonly type: "integer";
|
|
54
|
+
readonly minimum: 0;
|
|
55
|
+
readonly maximum: 4;
|
|
56
|
+
};
|
|
57
|
+
readonly currency: {
|
|
58
|
+
readonly title: "Currency";
|
|
59
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
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"];
|
|
62
|
+
};
|
|
63
|
+
readonly lcy_value: {
|
|
64
|
+
readonly type: "integer";
|
|
65
|
+
readonly minimum: 0;
|
|
66
|
+
};
|
|
67
|
+
readonly lcy_currency: {
|
|
68
|
+
readonly title: "LCY Currency";
|
|
69
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
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"];
|
|
72
|
+
};
|
|
73
|
+
readonly lcy_decimal_places: {
|
|
74
|
+
readonly type: "integer";
|
|
75
|
+
readonly minimum: 0;
|
|
76
|
+
readonly maximum: 4;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
80
|
+
};
|
|
81
|
+
readonly created_by: {
|
|
82
|
+
readonly anyOf: readonly [{
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly enum: readonly ["CUSTOMER", "SYSTEM"];
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly format: "email";
|
|
88
|
+
}];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly required: readonly ["created_at", "payment_method", "transaction_id", "psp_reference", "status", "amount", "created_by", "journey_label"];
|
|
92
|
+
readonly $id: "https://shushed.example.com/order/payment.schema.json";
|
|
93
|
+
};
|
|
94
|
+
export default schema;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export * as Item from './item';
|
|
2
|
+
export * as Pos from './pos';
|
|
3
|
+
export * as Shipped from './shipped';
|
|
4
|
+
declare const MainModuleObj: {
|
|
5
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
6
|
+
readonly title: "Shipment";
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly allOf: readonly [{
|
|
9
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
10
|
+
readonly title: "Total";
|
|
11
|
+
readonly type: "object";
|
|
12
|
+
readonly properties: {
|
|
13
|
+
readonly amount_net: {
|
|
14
|
+
readonly title: "Amount Net";
|
|
15
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
16
|
+
readonly type: "object";
|
|
17
|
+
readonly additionalProperties: false;
|
|
18
|
+
readonly properties: {
|
|
19
|
+
readonly value: {
|
|
20
|
+
readonly type: "integer";
|
|
21
|
+
readonly minimum: 0;
|
|
22
|
+
};
|
|
23
|
+
readonly decimal_places: {
|
|
24
|
+
readonly type: "integer";
|
|
25
|
+
readonly minimum: 0;
|
|
26
|
+
readonly maximum: 4;
|
|
27
|
+
};
|
|
28
|
+
readonly currency: {
|
|
29
|
+
readonly title: "Currency";
|
|
30
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
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"];
|
|
33
|
+
};
|
|
34
|
+
readonly lcy_value: {
|
|
35
|
+
readonly type: "integer";
|
|
36
|
+
readonly minimum: 0;
|
|
37
|
+
};
|
|
38
|
+
readonly lcy_currency: {
|
|
39
|
+
readonly title: "LCY Currency";
|
|
40
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
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"];
|
|
43
|
+
};
|
|
44
|
+
readonly lcy_decimal_places: {
|
|
45
|
+
readonly type: "integer";
|
|
46
|
+
readonly minimum: 0;
|
|
47
|
+
readonly maximum: 4;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
51
|
+
};
|
|
52
|
+
readonly amount_gross: {
|
|
53
|
+
readonly title: "Amount gross";
|
|
54
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly additionalProperties: false;
|
|
57
|
+
readonly properties: {
|
|
58
|
+
readonly value: {
|
|
59
|
+
readonly type: "integer";
|
|
60
|
+
readonly minimum: 0;
|
|
61
|
+
};
|
|
62
|
+
readonly decimal_places: {
|
|
63
|
+
readonly type: "integer";
|
|
64
|
+
readonly minimum: 0;
|
|
65
|
+
readonly maximum: 4;
|
|
66
|
+
};
|
|
67
|
+
readonly currency: {
|
|
68
|
+
readonly title: "Currency";
|
|
69
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
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"];
|
|
72
|
+
};
|
|
73
|
+
readonly lcy_value: {
|
|
74
|
+
readonly type: "integer";
|
|
75
|
+
readonly minimum: 0;
|
|
76
|
+
};
|
|
77
|
+
readonly lcy_currency: {
|
|
78
|
+
readonly title: "LCY Currency";
|
|
79
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
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"];
|
|
82
|
+
};
|
|
83
|
+
readonly lcy_decimal_places: {
|
|
84
|
+
readonly type: "integer";
|
|
85
|
+
readonly minimum: 0;
|
|
86
|
+
readonly maximum: 4;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
90
|
+
};
|
|
91
|
+
readonly discount_amount_net: {
|
|
92
|
+
readonly title: "Discount Amount Net";
|
|
93
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly additionalProperties: false;
|
|
96
|
+
readonly properties: {
|
|
97
|
+
readonly value: {
|
|
98
|
+
readonly type: "integer";
|
|
99
|
+
readonly minimum: 0;
|
|
100
|
+
};
|
|
101
|
+
readonly decimal_places: {
|
|
102
|
+
readonly type: "integer";
|
|
103
|
+
readonly minimum: 0;
|
|
104
|
+
readonly maximum: 4;
|
|
105
|
+
};
|
|
106
|
+
readonly currency: {
|
|
107
|
+
readonly title: "Currency";
|
|
108
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
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"];
|
|
111
|
+
};
|
|
112
|
+
readonly lcy_value: {
|
|
113
|
+
readonly type: "integer";
|
|
114
|
+
readonly minimum: 0;
|
|
115
|
+
};
|
|
116
|
+
readonly lcy_currency: {
|
|
117
|
+
readonly title: "LCY Currency";
|
|
118
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
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"];
|
|
121
|
+
};
|
|
122
|
+
readonly lcy_decimal_places: {
|
|
123
|
+
readonly type: "integer";
|
|
124
|
+
readonly minimum: 0;
|
|
125
|
+
readonly maximum: 4;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
129
|
+
};
|
|
130
|
+
readonly discount_amount_gross: {
|
|
131
|
+
readonly title: "Discount Amount Gross";
|
|
132
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
133
|
+
readonly type: "object";
|
|
134
|
+
readonly additionalProperties: false;
|
|
135
|
+
readonly properties: {
|
|
136
|
+
readonly value: {
|
|
137
|
+
readonly type: "integer";
|
|
138
|
+
readonly minimum: 0;
|
|
139
|
+
};
|
|
140
|
+
readonly decimal_places: {
|
|
141
|
+
readonly type: "integer";
|
|
142
|
+
readonly minimum: 0;
|
|
143
|
+
readonly maximum: 4;
|
|
144
|
+
};
|
|
145
|
+
readonly currency: {
|
|
146
|
+
readonly title: "Currency";
|
|
147
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
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"];
|
|
150
|
+
};
|
|
151
|
+
readonly lcy_value: {
|
|
152
|
+
readonly type: "integer";
|
|
153
|
+
readonly minimum: 0;
|
|
154
|
+
};
|
|
155
|
+
readonly lcy_currency: {
|
|
156
|
+
readonly title: "LCY Currency";
|
|
157
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
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"];
|
|
160
|
+
};
|
|
161
|
+
readonly lcy_decimal_places: {
|
|
162
|
+
readonly type: "integer";
|
|
163
|
+
readonly minimum: 0;
|
|
164
|
+
readonly maximum: 4;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
168
|
+
};
|
|
169
|
+
readonly discount_amount_percent: {
|
|
170
|
+
readonly type: "number";
|
|
171
|
+
readonly title: "Discount Amount Percent";
|
|
172
|
+
readonly minimum: 0;
|
|
173
|
+
readonly maximum: 100;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly properties: {
|
|
180
|
+
readonly erp_id: {
|
|
181
|
+
readonly type: readonly ["string"];
|
|
182
|
+
};
|
|
183
|
+
readonly type: {
|
|
184
|
+
readonly type: readonly ["string"];
|
|
185
|
+
readonly enum: readonly ["SHIPPED-OUTBOUND", "SHIPPED-RETURN", "POS-OUTBOUND", "POS-RETURN"];
|
|
186
|
+
};
|
|
187
|
+
readonly shipped_at: {
|
|
188
|
+
readonly type: readonly ["string"];
|
|
189
|
+
readonly format: "date-time";
|
|
190
|
+
};
|
|
191
|
+
readonly status: {
|
|
192
|
+
readonly type: readonly ["string"];
|
|
193
|
+
readonly enum: readonly ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"];
|
|
194
|
+
};
|
|
195
|
+
readonly items: {
|
|
196
|
+
readonly type: readonly ["array"];
|
|
197
|
+
readonly items: {
|
|
198
|
+
readonly type: "object";
|
|
199
|
+
readonly anyOf: readonly [{
|
|
200
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
201
|
+
readonly title: "Order Shipment Item";
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly lineNumber: {
|
|
205
|
+
readonly type: readonly ["integer"];
|
|
206
|
+
readonly minimum: 0;
|
|
207
|
+
};
|
|
208
|
+
readonly quantity: {
|
|
209
|
+
readonly type: readonly ["integer"];
|
|
210
|
+
readonly minimum: 1;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly required: readonly ["lineNumber", "quantity"];
|
|
214
|
+
}, {
|
|
215
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
216
|
+
readonly title: "Order Shipment Item Returned";
|
|
217
|
+
readonly type: "object";
|
|
218
|
+
readonly allOf: readonly [{
|
|
219
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
220
|
+
readonly title: "Order Shipment Item";
|
|
221
|
+
readonly type: "object";
|
|
222
|
+
readonly properties: {
|
|
223
|
+
readonly lineNumber: {
|
|
224
|
+
readonly type: readonly ["integer"];
|
|
225
|
+
readonly minimum: 0;
|
|
226
|
+
};
|
|
227
|
+
readonly quantity: {
|
|
228
|
+
readonly type: readonly ["integer"];
|
|
229
|
+
readonly minimum: 1;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
readonly required: readonly ["lineNumber", "quantity"];
|
|
233
|
+
}, {
|
|
234
|
+
readonly type: "object";
|
|
235
|
+
readonly properties: {
|
|
236
|
+
readonly returnReasonCode: {
|
|
237
|
+
readonly type: readonly ["string"];
|
|
238
|
+
};
|
|
239
|
+
readonly returnReason: {
|
|
240
|
+
readonly type: readonly ["string", "null"];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly required: readonly ["returnReasonCode", "returnReason"];
|
|
244
|
+
}];
|
|
245
|
+
}];
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
}];
|
|
250
|
+
readonly required: readonly ["erp_id", "shipped_at", "status", "items"];
|
|
251
|
+
readonly $id: "https://shushed.example.com/order/shipment.schema.json";
|
|
252
|
+
};
|
|
253
|
+
export default MainModuleObj;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { default as Returned } from './returned';
|
|
2
|
+
declare const MainModuleObj: {
|
|
3
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
4
|
+
readonly title: "Order Shipment Item";
|
|
5
|
+
readonly type: "object";
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly lineNumber: {
|
|
8
|
+
readonly type: readonly ["integer"];
|
|
9
|
+
readonly minimum: 0;
|
|
10
|
+
};
|
|
11
|
+
readonly quantity: {
|
|
12
|
+
readonly type: readonly ["integer"];
|
|
13
|
+
readonly minimum: 1;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly required: readonly ["lineNumber", "quantity"];
|
|
17
|
+
readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
|
|
18
|
+
};
|
|
19
|
+
export default MainModuleObj;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const schema: {
|
|
2
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
+
readonly title: "Order Shipment Item";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly properties: {
|
|
6
|
+
readonly lineNumber: {
|
|
7
|
+
readonly type: readonly ["integer"];
|
|
8
|
+
readonly minimum: 0;
|
|
9
|
+
};
|
|
10
|
+
readonly quantity: {
|
|
11
|
+
readonly type: readonly ["integer"];
|
|
12
|
+
readonly minimum: 1;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly required: readonly ["lineNumber", "quantity"];
|
|
16
|
+
readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
|
|
17
|
+
};
|
|
18
|
+
export default schema;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const schema: {
|
|
2
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
+
readonly title: "Order Shipment Item Returned";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly allOf: readonly [{
|
|
6
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
7
|
+
readonly title: "Order Shipment Item";
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly lineNumber: {
|
|
11
|
+
readonly type: readonly ["integer"];
|
|
12
|
+
readonly minimum: 0;
|
|
13
|
+
};
|
|
14
|
+
readonly quantity: {
|
|
15
|
+
readonly type: readonly ["integer"];
|
|
16
|
+
readonly minimum: 1;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly required: readonly ["lineNumber", "quantity"];
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly returnReasonCode: {
|
|
24
|
+
readonly type: readonly ["string"];
|
|
25
|
+
};
|
|
26
|
+
readonly returnReason: {
|
|
27
|
+
readonly type: readonly ["string", "null"];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
readonly required: readonly ["returnReasonCode", "returnReason"];
|
|
31
|
+
}];
|
|
32
|
+
readonly $id: "https://shushed.example.com/order/shipment/item/returned.schema.json";
|
|
33
|
+
};
|
|
34
|
+
export default schema;
|