@gofynd/fdk-client-javascript 1.0.2 → 1.0.3
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/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +557 -1279
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +14453 -17192
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3438 -4172
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3400 -5361
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +567 -567
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +38 -38
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +191 -191
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +467 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +100 -100
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +232 -232
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +352 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +84 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +581 -581
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +41 -41
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +484 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7965 -7885
- package/sdk/platform/PlatformClient.js +8672 -10105
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,871 +1,567 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class OrderModel {
|
|
4
|
-
static
|
|
4
|
+
static ApefaceApiError() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type: Joi.string().allow(""),
|
|
9
|
-
|
|
10
|
-
item_total: Joi.number(),
|
|
11
|
-
|
|
12
|
-
size: Joi.number(),
|
|
13
|
-
|
|
14
|
-
has_next: Joi.boolean(),
|
|
6
|
+
message: Joi.string().allow(""),
|
|
7
|
+
success: Joi.boolean(),
|
|
15
8
|
});
|
|
16
9
|
}
|
|
17
|
-
|
|
18
|
-
static OrderStatuses() {
|
|
10
|
+
static AppliedFreeArticles() {
|
|
19
11
|
return Joi.object({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
display: Joi.string().allow(""),
|
|
12
|
+
article_id: Joi.string().allow(""),
|
|
13
|
+
free_gift_item_details: Joi.any(),
|
|
14
|
+
parent_item_identifier: Joi.string().allow(""),
|
|
15
|
+
quantity: Joi.number(),
|
|
25
16
|
});
|
|
26
17
|
}
|
|
27
|
-
|
|
28
|
-
static OrderFilters() {
|
|
18
|
+
static AppliedPromos() {
|
|
29
19
|
return Joi.object({
|
|
30
|
-
|
|
20
|
+
amount: Joi.number(),
|
|
21
|
+
applied_free_articles: Joi.array().items(
|
|
22
|
+
OrderModel.AppliedFreeArticles()
|
|
23
|
+
),
|
|
24
|
+
article_quantity: Joi.number(),
|
|
25
|
+
mrp_promotion: Joi.boolean(),
|
|
26
|
+
promo_id: Joi.string().allow(""),
|
|
27
|
+
promotion_name: Joi.string().allow(""),
|
|
28
|
+
promotion_type: Joi.string().allow(""),
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
static BagsForReorderArticleAssignment() {
|
|
31
|
+
static BagReasonMeta() {
|
|
35
32
|
return Joi.object({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
show_text_area: Joi.boolean(),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static BagReasons() {
|
|
37
|
+
return Joi.object({
|
|
38
|
+
display_name: Joi.string().allow(""),
|
|
39
|
+
id: Joi.number(),
|
|
40
|
+
meta: OrderModel.BagReasonMeta(),
|
|
41
|
+
qc_type: Joi.array().items(Joi.string().allow("")),
|
|
42
|
+
question_set: Joi.array().items(OrderModel.QuestionSet()),
|
|
43
|
+
reasons: Joi.array().items(Joi.link("#BagReasons")),
|
|
44
|
+
}).id("BagReasons");
|
|
45
|
+
}
|
|
46
|
+
static Bags() {
|
|
47
|
+
return Joi.object({
|
|
48
|
+
applied_promos: Joi.array().items(OrderModel.AppliedPromos()),
|
|
49
|
+
can_cancel: Joi.boolean(),
|
|
50
|
+
can_return: Joi.boolean(),
|
|
51
|
+
current_status: OrderModel.CurrentStatus(),
|
|
52
|
+
delivery_date: Joi.string().allow(""),
|
|
53
|
+
financial_breakup: Joi.array().items(OrderModel.FinancialBreakup()),
|
|
54
|
+
id: Joi.number(),
|
|
55
|
+
item: OrderModel.Item(),
|
|
56
|
+
line_number: Joi.number(),
|
|
57
|
+
parent_promo_bags: Joi.any(),
|
|
58
|
+
prices: OrderModel.Prices(),
|
|
59
|
+
quantity: Joi.number(),
|
|
60
|
+
returnable_date: Joi.string().allow(""),
|
|
61
|
+
seller_identifier: Joi.string().allow(""),
|
|
39
62
|
});
|
|
40
63
|
}
|
|
41
|
-
|
|
42
64
|
static BagsForReorder() {
|
|
43
65
|
return Joi.object({
|
|
44
66
|
article_assignment: OrderModel.BagsForReorderArticleAssignment(),
|
|
45
|
-
|
|
46
|
-
quantity: Joi.number(),
|
|
47
|
-
|
|
67
|
+
item_id: Joi.number(),
|
|
48
68
|
item_size: Joi.string().allow(""),
|
|
49
|
-
|
|
69
|
+
quantity: Joi.number(),
|
|
50
70
|
seller_id: Joi.number(),
|
|
51
|
-
|
|
52
71
|
store_id: Joi.number(),
|
|
53
|
-
|
|
54
|
-
item_id: Joi.number(),
|
|
55
72
|
});
|
|
56
73
|
}
|
|
57
|
-
|
|
74
|
+
static BagsForReorderArticleAssignment() {
|
|
75
|
+
return Joi.object({
|
|
76
|
+
level: Joi.string().allow(""),
|
|
77
|
+
strategy: Joi.string().allow(""),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
58
80
|
static BreakupValues() {
|
|
59
81
|
return Joi.object({
|
|
82
|
+
display: Joi.string().allow(""),
|
|
60
83
|
name: Joi.string().allow(""),
|
|
61
|
-
|
|
62
84
|
value: Joi.number(),
|
|
63
|
-
|
|
64
|
-
display: Joi.string().allow(""),
|
|
65
85
|
});
|
|
66
86
|
}
|
|
67
|
-
|
|
68
|
-
static UserInfo() {
|
|
87
|
+
static CurrentStatus() {
|
|
69
88
|
return Joi.object({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
email: Joi.string().allow(""),
|
|
73
|
-
|
|
89
|
+
journey_type: Joi.string().allow(""),
|
|
74
90
|
name: Joi.string().allow(""),
|
|
75
|
-
|
|
76
|
-
|
|
91
|
+
status: Joi.string().allow(""),
|
|
92
|
+
updated_at: Joi.string().allow(""),
|
|
77
93
|
});
|
|
78
94
|
}
|
|
79
|
-
|
|
80
|
-
static ShipmentTotalDetails() {
|
|
95
|
+
static CustomerDetailsResponse() {
|
|
81
96
|
return Joi.object({
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
97
|
+
country: Joi.string().allow(""),
|
|
98
|
+
name: Joi.string().allow(""),
|
|
99
|
+
order_id: Joi.string().allow(""),
|
|
100
|
+
phone: Joi.string().allow(""),
|
|
101
|
+
shipment_id: Joi.string().allow(""),
|
|
87
102
|
});
|
|
88
103
|
}
|
|
89
|
-
|
|
90
|
-
static Prices() {
|
|
104
|
+
static DataUpdates() {
|
|
91
105
|
return Joi.object({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
brand_calculated_amount: Joi.number(),
|
|
95
|
-
|
|
96
|
-
cod_charges: Joi.number(),
|
|
97
|
-
|
|
98
|
-
amount_paid: Joi.number(),
|
|
99
|
-
|
|
100
|
-
discount: Joi.number(),
|
|
101
|
-
|
|
102
|
-
transfer_price: Joi.number(),
|
|
103
|
-
|
|
104
|
-
gst_tax_percentage: Joi.number(),
|
|
105
|
-
|
|
106
|
-
refund_amount: Joi.number(),
|
|
107
|
-
|
|
108
|
-
cashback_applied: Joi.number(),
|
|
109
|
-
|
|
110
|
-
price_marked: Joi.number(),
|
|
111
|
-
|
|
112
|
-
coupon_value: Joi.number(),
|
|
113
|
-
|
|
114
|
-
value_of_good: Joi.number(),
|
|
115
|
-
|
|
116
|
-
price_effective: Joi.number(),
|
|
117
|
-
|
|
118
|
-
added_to_fynd_cash: Joi.boolean(),
|
|
119
|
-
|
|
120
|
-
delivery_charge: Joi.number(),
|
|
121
|
-
|
|
122
|
-
cashback: Joi.number(),
|
|
123
|
-
|
|
124
|
-
fynd_credits: Joi.number(),
|
|
125
|
-
|
|
126
|
-
coupon_effective_discount: Joi.number(),
|
|
127
|
-
|
|
128
|
-
amount_paid_roundoff: Joi.number(),
|
|
129
|
-
|
|
130
|
-
promotion_effective_discount: Joi.number(),
|
|
106
|
+
entities: Joi.array().items(OrderModel.EntitiesDataUpdates()),
|
|
107
|
+
products: Joi.array().items(OrderModel.ProductsDataUpdates()),
|
|
131
108
|
});
|
|
132
109
|
}
|
|
133
|
-
|
|
134
|
-
static ShipmentPayment() {
|
|
110
|
+
static DeliveryAddress() {
|
|
135
111
|
return Joi.object({
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
112
|
+
address: Joi.string().allow(""),
|
|
113
|
+
address1: Joi.string().allow(""),
|
|
114
|
+
address2: Joi.string().allow(""),
|
|
115
|
+
address_category: Joi.string().allow(""),
|
|
116
|
+
address_type: Joi.string().allow(""),
|
|
117
|
+
area: Joi.string().allow(""),
|
|
118
|
+
city: Joi.string().allow(""),
|
|
119
|
+
contact_person: Joi.string().allow(""),
|
|
120
|
+
country: Joi.string().allow(""),
|
|
121
|
+
created_at: Joi.string().allow(""),
|
|
122
|
+
email: Joi.string().allow(""),
|
|
123
|
+
landmark: Joi.string().allow(""),
|
|
124
|
+
latitude: Joi.number(),
|
|
125
|
+
longitude: Joi.number(),
|
|
126
|
+
name: Joi.string().allow(""),
|
|
127
|
+
phone: Joi.string().allow(""),
|
|
128
|
+
pincode: Joi.string().allow(""),
|
|
129
|
+
state: Joi.string().allow(""),
|
|
130
|
+
updated_at: Joi.string().allow(""),
|
|
131
|
+
version: Joi.string().allow(""),
|
|
147
132
|
});
|
|
148
133
|
}
|
|
149
|
-
|
|
150
|
-
static Invoice() {
|
|
134
|
+
static EntitiesDataUpdates() {
|
|
151
135
|
return Joi.object({
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
invoice_url: Joi.string().allow(""),
|
|
155
|
-
|
|
156
|
-
updated_date: Joi.string().allow(""),
|
|
136
|
+
data: Joi.any(),
|
|
137
|
+
filters: Joi.array().items(Joi.any()),
|
|
157
138
|
});
|
|
158
139
|
}
|
|
159
|
-
|
|
160
|
-
static FulfillingStore() {
|
|
140
|
+
static EntitiesReasons() {
|
|
161
141
|
return Joi.object({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
name: Joi.string().allow(""),
|
|
165
|
-
|
|
166
|
-
id: Joi.number(),
|
|
167
|
-
|
|
168
|
-
company_name: Joi.string().allow(""),
|
|
169
|
-
|
|
170
|
-
company_id: Joi.number(),
|
|
142
|
+
data: OrderModel.EntityReasonData(),
|
|
143
|
+
filters: Joi.array().items(Joi.any()),
|
|
171
144
|
});
|
|
172
145
|
}
|
|
173
|
-
|
|
174
|
-
static NestedTrackingDetails() {
|
|
146
|
+
static EntityReasonData() {
|
|
175
147
|
return Joi.object({
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
is_passed: Joi.boolean(),
|
|
179
|
-
|
|
180
|
-
time: Joi.string().allow(""),
|
|
181
|
-
|
|
182
|
-
status: Joi.string().allow(""),
|
|
148
|
+
reason_id: Joi.number(),
|
|
149
|
+
reason_text: Joi.string().allow(""),
|
|
183
150
|
});
|
|
184
151
|
}
|
|
185
|
-
|
|
186
|
-
static TrackingDetails() {
|
|
152
|
+
static ErrorResponse() {
|
|
187
153
|
return Joi.object({
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
is_current: Joi.boolean(),
|
|
195
|
-
|
|
196
|
-
is_passed: Joi.boolean(),
|
|
154
|
+
code: Joi.string().allow("").allow(null),
|
|
155
|
+
exception: Joi.string().allow("").allow(null),
|
|
156
|
+
message: Joi.string().allow("").allow(null),
|
|
157
|
+
stack_trace: Joi.string().allow("").allow(null),
|
|
158
|
+
status: Joi.number(),
|
|
197
159
|
});
|
|
198
160
|
}
|
|
199
|
-
|
|
200
|
-
static DeliveryAddress() {
|
|
161
|
+
static FinancialBreakup() {
|
|
201
162
|
return Joi.object({
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
country: Joi.string().allow(""),
|
|
231
|
-
|
|
232
|
-
area: Joi.string().allow(""),
|
|
233
|
-
|
|
234
|
-
pincode: Joi.string().allow(""),
|
|
235
|
-
|
|
236
|
-
email: Joi.string().allow(""),
|
|
237
|
-
|
|
238
|
-
created_at: Joi.string().allow(""),
|
|
239
|
-
|
|
240
|
-
phone: Joi.string().allow(""),
|
|
163
|
+
added_to_fynd_cash: Joi.boolean(),
|
|
164
|
+
amount_paid: Joi.number(),
|
|
165
|
+
amount_paid_roundoff: Joi.number(),
|
|
166
|
+
brand_calculated_amount: Joi.number(),
|
|
167
|
+
cashback: Joi.number(),
|
|
168
|
+
cashback_applied: Joi.number(),
|
|
169
|
+
cod_charges: Joi.number(),
|
|
170
|
+
coupon_effective_discount: Joi.number(),
|
|
171
|
+
coupon_value: Joi.number(),
|
|
172
|
+
delivery_charge: Joi.number(),
|
|
173
|
+
discount: Joi.number(),
|
|
174
|
+
fynd_credits: Joi.number(),
|
|
175
|
+
gst_fee: Joi.number(),
|
|
176
|
+
gst_tag: Joi.string().allow(""),
|
|
177
|
+
gst_tax_percentage: Joi.number(),
|
|
178
|
+
hsn_code: Joi.string().allow(""),
|
|
179
|
+
identifiers: OrderModel.Identifiers(),
|
|
180
|
+
item_name: Joi.string().allow(""),
|
|
181
|
+
price_effective: Joi.number(),
|
|
182
|
+
price_marked: Joi.number(),
|
|
183
|
+
promotion_effective_discount: Joi.number(),
|
|
184
|
+
refund_amount: Joi.number(),
|
|
185
|
+
refund_credit: Joi.number(),
|
|
186
|
+
size: Joi.string().allow(""),
|
|
187
|
+
total_units: Joi.number(),
|
|
188
|
+
transfer_price: Joi.number(),
|
|
189
|
+
value_of_good: Joi.number(),
|
|
241
190
|
});
|
|
242
191
|
}
|
|
243
|
-
|
|
244
192
|
static FulfillingCompany() {
|
|
245
193
|
return Joi.object({
|
|
246
194
|
id: Joi.number(),
|
|
247
|
-
|
|
248
195
|
name: Joi.string().allow(""),
|
|
249
196
|
});
|
|
250
197
|
}
|
|
251
|
-
|
|
252
|
-
static ShipmentUserInfo() {
|
|
253
|
-
return Joi.object({
|
|
254
|
-
gender: Joi.string().allow(""),
|
|
255
|
-
|
|
256
|
-
last_name: Joi.string().allow(""),
|
|
257
|
-
|
|
258
|
-
first_name: Joi.string().allow(""),
|
|
259
|
-
|
|
260
|
-
mobile: Joi.string().allow(""),
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
static TimeStampData() {
|
|
265
|
-
return Joi.object({
|
|
266
|
-
min: Joi.string().allow(""),
|
|
267
|
-
|
|
268
|
-
max: Joi.string().allow(""),
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
static Promise() {
|
|
198
|
+
static FulfillingStore() {
|
|
273
199
|
return Joi.object({
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
200
|
+
code: Joi.string().allow(""),
|
|
201
|
+
company_id: Joi.number(),
|
|
202
|
+
company_name: Joi.string().allow(""),
|
|
203
|
+
id: Joi.number(),
|
|
204
|
+
name: Joi.string().allow(""),
|
|
277
205
|
});
|
|
278
206
|
}
|
|
279
|
-
|
|
280
|
-
static ShipmentStatus() {
|
|
207
|
+
static Identifiers() {
|
|
281
208
|
return Joi.object({
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hex_code: Joi.string().allow(""),
|
|
209
|
+
ean: Joi.string().allow(""),
|
|
210
|
+
sku_code: Joi.string().allow(""),
|
|
285
211
|
});
|
|
286
212
|
}
|
|
287
|
-
|
|
288
|
-
static ItemBrand() {
|
|
213
|
+
static Invoice() {
|
|
289
214
|
return Joi.object({
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
215
|
+
invoice_url: Joi.string().allow(""),
|
|
216
|
+
label_url: Joi.string().allow(""),
|
|
217
|
+
updated_date: Joi.string().allow(""),
|
|
293
218
|
});
|
|
294
219
|
}
|
|
295
|
-
|
|
296
220
|
static Item() {
|
|
297
221
|
return Joi.object({
|
|
298
|
-
slug_key: Joi.string().allow(""),
|
|
299
|
-
|
|
300
|
-
code: Joi.string().allow(""),
|
|
301
|
-
|
|
302
|
-
size: Joi.string().allow(""),
|
|
303
|
-
|
|
304
222
|
brand: OrderModel.ItemBrand(),
|
|
305
|
-
|
|
306
|
-
image: Joi.array().items(Joi.string().allow("")),
|
|
307
|
-
|
|
223
|
+
code: Joi.string().allow(""),
|
|
308
224
|
id: Joi.number(),
|
|
309
|
-
|
|
310
|
-
seller_identifier: Joi.string().allow(""),
|
|
311
|
-
|
|
225
|
+
image: Joi.array().items(Joi.string().allow("")),
|
|
312
226
|
name: Joi.string().allow(""),
|
|
227
|
+
seller_identifier: Joi.string().allow(""),
|
|
228
|
+
size: Joi.string().allow(""),
|
|
229
|
+
slug_key: Joi.string().allow(""),
|
|
313
230
|
});
|
|
314
231
|
}
|
|
315
|
-
|
|
316
|
-
static Identifiers() {
|
|
317
|
-
return Joi.object({
|
|
318
|
-
sku_code: Joi.string().allow(""),
|
|
319
|
-
|
|
320
|
-
ean: Joi.string().allow(""),
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
static FinancialBreakup() {
|
|
232
|
+
static ItemBrand() {
|
|
325
233
|
return Joi.object({
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
size: Joi.string().allow(""),
|
|
329
|
-
|
|
330
|
-
brand_calculated_amount: Joi.number(),
|
|
331
|
-
|
|
332
|
-
cod_charges: Joi.number(),
|
|
333
|
-
|
|
334
|
-
amount_paid: Joi.number(),
|
|
335
|
-
|
|
336
|
-
discount: Joi.number(),
|
|
337
|
-
|
|
338
|
-
identifiers: OrderModel.Identifiers(),
|
|
339
|
-
|
|
340
|
-
transfer_price: Joi.number(),
|
|
341
|
-
|
|
342
|
-
hsn_code: Joi.string().allow(""),
|
|
343
|
-
|
|
344
|
-
gst_tax_percentage: Joi.number(),
|
|
345
|
-
|
|
346
|
-
refund_amount: Joi.number(),
|
|
347
|
-
|
|
348
|
-
cashback_applied: Joi.number(),
|
|
349
|
-
|
|
350
|
-
coupon_value: Joi.number(),
|
|
351
|
-
|
|
352
|
-
price_marked: Joi.number(),
|
|
353
|
-
|
|
354
|
-
value_of_good: Joi.number(),
|
|
355
|
-
|
|
356
|
-
price_effective: Joi.number(),
|
|
357
|
-
|
|
358
|
-
added_to_fynd_cash: Joi.boolean(),
|
|
359
|
-
|
|
360
|
-
gst_tag: Joi.string().allow(""),
|
|
361
|
-
|
|
362
|
-
delivery_charge: Joi.number(),
|
|
363
|
-
|
|
364
|
-
gst_fee: Joi.number(),
|
|
365
|
-
|
|
366
|
-
item_name: Joi.string().allow(""),
|
|
367
|
-
|
|
368
|
-
cashback: Joi.number(),
|
|
369
|
-
|
|
370
|
-
fynd_credits: Joi.number(),
|
|
371
|
-
|
|
372
|
-
coupon_effective_discount: Joi.number(),
|
|
373
|
-
|
|
374
|
-
amount_paid_roundoff: Joi.number(),
|
|
375
|
-
|
|
376
|
-
promotion_effective_discount: Joi.number(),
|
|
377
|
-
|
|
378
|
-
total_units: Joi.number(),
|
|
234
|
+
logo: Joi.string().allow(""),
|
|
235
|
+
name: Joi.string().allow(""),
|
|
379
236
|
});
|
|
380
237
|
}
|
|
381
|
-
|
|
382
|
-
static AppliedFreeArticles() {
|
|
238
|
+
static NestedTrackingDetails() {
|
|
383
239
|
return Joi.object({
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
free_gift_item_details: Joi.any(),
|
|
389
|
-
|
|
390
|
-
parent_item_identifier: Joi.string().allow(""),
|
|
240
|
+
is_current: Joi.boolean(),
|
|
241
|
+
is_passed: Joi.boolean(),
|
|
242
|
+
status: Joi.string().allow(""),
|
|
243
|
+
time: Joi.string().allow(""),
|
|
391
244
|
});
|
|
392
245
|
}
|
|
393
|
-
|
|
394
|
-
static AppliedPromos() {
|
|
246
|
+
static OrderById() {
|
|
395
247
|
return Joi.object({
|
|
396
|
-
|
|
397
|
-
OrderModel.AppliedFreeArticles()
|
|
398
|
-
),
|
|
399
|
-
|
|
400
|
-
mrp_promotion: Joi.boolean(),
|
|
401
|
-
|
|
402
|
-
promo_id: Joi.string().allow(""),
|
|
403
|
-
|
|
404
|
-
promotion_type: Joi.string().allow(""),
|
|
405
|
-
|
|
406
|
-
article_quantity: Joi.number(),
|
|
407
|
-
|
|
408
|
-
amount: Joi.number(),
|
|
409
|
-
|
|
410
|
-
promotion_name: Joi.string().allow(""),
|
|
248
|
+
order: OrderModel.OrderSchema(),
|
|
411
249
|
});
|
|
412
250
|
}
|
|
413
|
-
|
|
414
|
-
static CurrentStatus() {
|
|
251
|
+
static OrderFilters() {
|
|
415
252
|
return Joi.object({
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
name: Joi.string().allow(""),
|
|
419
|
-
|
|
420
|
-
updated_at: Joi.string().allow(""),
|
|
421
|
-
|
|
422
|
-
status: Joi.string().allow(""),
|
|
253
|
+
statuses: Joi.array().items(OrderModel.OrderStatuses()),
|
|
423
254
|
});
|
|
424
255
|
}
|
|
425
|
-
|
|
426
|
-
static Bags() {
|
|
256
|
+
static OrderList() {
|
|
427
257
|
return Joi.object({
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
prices: OrderModel.Prices(),
|
|
433
|
-
|
|
434
|
-
quantity: Joi.number(),
|
|
435
|
-
|
|
436
|
-
financial_breakup: Joi.array().items(OrderModel.FinancialBreakup()),
|
|
437
|
-
|
|
438
|
-
parent_promo_bags: Joi.any(),
|
|
439
|
-
|
|
440
|
-
line_number: Joi.number(),
|
|
441
|
-
|
|
442
|
-
can_return: Joi.boolean(),
|
|
443
|
-
|
|
444
|
-
id: Joi.number(),
|
|
445
|
-
|
|
446
|
-
seller_identifier: Joi.string().allow(""),
|
|
447
|
-
|
|
448
|
-
applied_promos: Joi.array().items(OrderModel.AppliedPromos()),
|
|
449
|
-
|
|
450
|
-
can_cancel: Joi.boolean(),
|
|
451
|
-
|
|
452
|
-
delivery_date: Joi.string().allow(""),
|
|
453
|
-
|
|
454
|
-
current_status: OrderModel.CurrentStatus(),
|
|
258
|
+
filters: OrderModel.OrderFilters(),
|
|
259
|
+
items: Joi.array().items(OrderModel.OrderSchema()),
|
|
260
|
+
page: OrderModel.OrderPage(),
|
|
455
261
|
});
|
|
456
262
|
}
|
|
457
|
-
|
|
458
|
-
static Shipments() {
|
|
263
|
+
static OrderPage() {
|
|
459
264
|
return Joi.object({
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
payment: OrderModel.ShipmentPayment(),
|
|
467
|
-
|
|
468
|
-
can_return: Joi.boolean(),
|
|
469
|
-
|
|
470
|
-
order_id: Joi.string().allow(""),
|
|
471
|
-
|
|
472
|
-
awb_no: Joi.string().allow(""),
|
|
473
|
-
|
|
474
|
-
invoice: OrderModel.Invoice(),
|
|
475
|
-
|
|
476
|
-
shipment_created_at: Joi.string().allow(""),
|
|
477
|
-
|
|
478
|
-
fulfilling_store: OrderModel.FulfillingStore(),
|
|
479
|
-
|
|
480
|
-
show_track_link: Joi.boolean(),
|
|
481
|
-
|
|
482
|
-
need_help_url: Joi.string().allow(""),
|
|
483
|
-
|
|
484
|
-
order_type: Joi.string().allow(""),
|
|
485
|
-
|
|
486
|
-
dp_name: Joi.string().allow(""),
|
|
487
|
-
|
|
488
|
-
can_cancel: Joi.boolean(),
|
|
489
|
-
|
|
490
|
-
returnable_date: Joi.string().allow(""),
|
|
491
|
-
|
|
492
|
-
refund_details: Joi.any(),
|
|
493
|
-
|
|
494
|
-
breakup_values: Joi.array().items(OrderModel.BreakupValues()),
|
|
495
|
-
|
|
496
|
-
traking_no: Joi.string().allow(""),
|
|
497
|
-
|
|
498
|
-
tracking_details: Joi.array().items(OrderModel.TrackingDetails()),
|
|
499
|
-
|
|
500
|
-
delivery_address: OrderModel.DeliveryAddress(),
|
|
501
|
-
|
|
502
|
-
size_info: Joi.any(),
|
|
503
|
-
|
|
504
|
-
can_break: Joi.any(),
|
|
505
|
-
|
|
506
|
-
fulfilling_company: OrderModel.FulfillingCompany(),
|
|
507
|
-
|
|
508
|
-
track_url: Joi.string().allow(""),
|
|
509
|
-
|
|
510
|
-
user_info: OrderModel.ShipmentUserInfo(),
|
|
511
|
-
|
|
512
|
-
beneficiary_details: Joi.boolean(),
|
|
513
|
-
|
|
514
|
-
promise: OrderModel.Promise(),
|
|
515
|
-
|
|
516
|
-
total_bags: Joi.number(),
|
|
517
|
-
|
|
518
|
-
shipment_status: OrderModel.ShipmentStatus(),
|
|
519
|
-
|
|
520
|
-
show_download_invoice: Joi.boolean(),
|
|
521
|
-
|
|
522
|
-
bags: Joi.array().items(OrderModel.Bags()),
|
|
523
|
-
|
|
524
|
-
delivery_date: Joi.string().allow(""),
|
|
525
|
-
|
|
526
|
-
custom_meta: Joi.array().items(Joi.any()),
|
|
527
|
-
|
|
528
|
-
comment: Joi.string().allow(""),
|
|
265
|
+
current: Joi.number(),
|
|
266
|
+
has_next: Joi.boolean(),
|
|
267
|
+
item_total: Joi.number(),
|
|
268
|
+
size: Joi.number(),
|
|
269
|
+
type: Joi.string().allow(""),
|
|
529
270
|
});
|
|
530
271
|
}
|
|
531
|
-
|
|
532
272
|
static OrderSchema() {
|
|
533
273
|
return Joi.object({
|
|
534
274
|
bags_for_reorder: Joi.array().items(OrderModel.BagsForReorder()),
|
|
535
|
-
|
|
536
275
|
breakup_values: Joi.array().items(OrderModel.BreakupValues()),
|
|
537
|
-
|
|
538
|
-
user_info: OrderModel.UserInfo(),
|
|
539
|
-
|
|
540
|
-
order_id: Joi.string().allow(""),
|
|
541
|
-
|
|
542
|
-
total_shipments_in_order: Joi.number(),
|
|
543
|
-
|
|
544
276
|
order_created_time: Joi.string().allow(""),
|
|
545
|
-
|
|
277
|
+
order_id: Joi.string().allow(""),
|
|
546
278
|
shipments: Joi.array().items(OrderModel.Shipments()),
|
|
279
|
+
total_shipments_in_order: Joi.number(),
|
|
280
|
+
user_info: OrderModel.UserInfo(),
|
|
547
281
|
});
|
|
548
282
|
}
|
|
549
|
-
|
|
550
|
-
static OrderList() {
|
|
283
|
+
static OrderStatuses() {
|
|
551
284
|
return Joi.object({
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
items: Joi.array().items(OrderModel.OrderSchema()),
|
|
285
|
+
display: Joi.string().allow(""),
|
|
286
|
+
is_selected: Joi.boolean(),
|
|
287
|
+
value: Joi.number(),
|
|
557
288
|
});
|
|
558
289
|
}
|
|
559
|
-
|
|
560
|
-
static ApefaceApiError() {
|
|
290
|
+
static Prices() {
|
|
561
291
|
return Joi.object({
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
292
|
+
added_to_fynd_cash: Joi.boolean(),
|
|
293
|
+
amount_paid: Joi.number(),
|
|
294
|
+
amount_paid_roundoff: Joi.number(),
|
|
295
|
+
brand_calculated_amount: Joi.number(),
|
|
296
|
+
cashback: Joi.number(),
|
|
297
|
+
cashback_applied: Joi.number(),
|
|
298
|
+
cod_charges: Joi.number(),
|
|
299
|
+
coupon_effective_discount: Joi.number(),
|
|
300
|
+
coupon_value: Joi.number(),
|
|
301
|
+
delivery_charge: Joi.number(),
|
|
302
|
+
discount: Joi.number(),
|
|
303
|
+
fynd_credits: Joi.number(),
|
|
304
|
+
gst_tax_percentage: Joi.number(),
|
|
305
|
+
price_effective: Joi.number(),
|
|
306
|
+
price_marked: Joi.number(),
|
|
307
|
+
promotion_effective_discount: Joi.number(),
|
|
308
|
+
refund_amount: Joi.number(),
|
|
309
|
+
refund_credit: Joi.number(),
|
|
310
|
+
transfer_price: Joi.number(),
|
|
311
|
+
value_of_good: Joi.number(),
|
|
565
312
|
});
|
|
566
313
|
}
|
|
567
|
-
|
|
568
|
-
static OrderById() {
|
|
314
|
+
static Products() {
|
|
569
315
|
return Joi.object({
|
|
570
|
-
|
|
316
|
+
identifier: Joi.string().allow(""),
|
|
317
|
+
line_number: Joi.number(),
|
|
318
|
+
quantity: Joi.number(),
|
|
571
319
|
});
|
|
572
320
|
}
|
|
573
|
-
|
|
574
|
-
static ShipmentById() {
|
|
321
|
+
static ProductsDataUpdates() {
|
|
575
322
|
return Joi.object({
|
|
576
|
-
|
|
323
|
+
data: Joi.any(),
|
|
324
|
+
filters: Joi.array().items(OrderModel.ProductsDataUpdatesFilters()),
|
|
577
325
|
});
|
|
578
326
|
}
|
|
579
|
-
|
|
580
|
-
static ResponseGetInvoiceShipment() {
|
|
327
|
+
static ProductsDataUpdatesFilters() {
|
|
581
328
|
return Joi.object({
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
shipment_id: Joi.string().allow("").required(),
|
|
585
|
-
|
|
586
|
-
success: Joi.boolean().required(),
|
|
587
|
-
|
|
588
|
-
presigned_type: Joi.string().allow("").required(),
|
|
329
|
+
identifier: Joi.string().allow(""),
|
|
330
|
+
line_number: Joi.number(),
|
|
589
331
|
});
|
|
590
332
|
}
|
|
591
|
-
|
|
592
|
-
static Track() {
|
|
333
|
+
static ProductsReasons() {
|
|
593
334
|
return Joi.object({
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
reason: Joi.string().allow(""),
|
|
597
|
-
|
|
598
|
-
updated_time: Joi.string().allow(""),
|
|
599
|
-
|
|
600
|
-
account_name: Joi.string().allow(""),
|
|
601
|
-
|
|
602
|
-
updated_at: Joi.string().allow(""),
|
|
603
|
-
|
|
604
|
-
awb: Joi.string().allow(""),
|
|
605
|
-
|
|
606
|
-
status: Joi.string().allow(""),
|
|
607
|
-
|
|
608
|
-
shipment_type: Joi.string().allow(""),
|
|
335
|
+
data: OrderModel.ProductsReasonsData(),
|
|
336
|
+
filters: Joi.array().items(OrderModel.ProductsReasonsFilters()),
|
|
609
337
|
});
|
|
610
338
|
}
|
|
611
|
-
|
|
612
|
-
static ShipmentTrack() {
|
|
339
|
+
static ProductsReasonsData() {
|
|
613
340
|
return Joi.object({
|
|
614
|
-
|
|
341
|
+
reason_id: Joi.number(),
|
|
342
|
+
reason_text: Joi.string().allow(""),
|
|
615
343
|
});
|
|
616
344
|
}
|
|
617
|
-
|
|
618
|
-
static CustomerDetailsResponse() {
|
|
345
|
+
static ProductsReasonsFilters() {
|
|
619
346
|
return Joi.object({
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
order_id: Joi.string().allow(""),
|
|
625
|
-
|
|
626
|
-
phone: Joi.string().allow(""),
|
|
627
|
-
|
|
628
|
-
name: Joi.string().allow(""),
|
|
347
|
+
identifier: Joi.string().allow(""),
|
|
348
|
+
line_number: Joi.number(),
|
|
349
|
+
quantity: Joi.number(),
|
|
629
350
|
});
|
|
630
351
|
}
|
|
631
|
-
|
|
632
|
-
static SendOtpToCustomerResponse() {
|
|
352
|
+
static Promise() {
|
|
633
353
|
return Joi.object({
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
message: Joi.string().allow(""),
|
|
637
|
-
|
|
638
|
-
success: Joi.boolean(),
|
|
639
|
-
|
|
640
|
-
resend_timer: Joi.number(),
|
|
354
|
+
show_promise: Joi.boolean(),
|
|
355
|
+
timestamp: OrderModel.TimeStampData(),
|
|
641
356
|
});
|
|
642
357
|
}
|
|
643
|
-
|
|
644
|
-
static VerifyOtp() {
|
|
358
|
+
static QuestionSet() {
|
|
645
359
|
return Joi.object({
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
360
|
+
display_name: Joi.string().allow(""),
|
|
361
|
+
id: Joi.number(),
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
static ReasonsData() {
|
|
365
|
+
return Joi.object({
|
|
366
|
+
entities: Joi.array().items(OrderModel.EntitiesReasons()),
|
|
367
|
+
products: Joi.array().items(OrderModel.ProductsReasons()),
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
static ResponseGetInvoiceShipment() {
|
|
371
|
+
return Joi.object({
|
|
372
|
+
presigned_type: Joi.string().allow("").required(),
|
|
373
|
+
presigned_url: Joi.string().allow("").required(),
|
|
374
|
+
shipment_id: Joi.string().allow("").required(),
|
|
375
|
+
success: Joi.boolean().required(),
|
|
649
376
|
});
|
|
650
377
|
}
|
|
651
|
-
|
|
652
|
-
static VerifyOtpResponse() {
|
|
378
|
+
static SendOtpToCustomerResponse() {
|
|
653
379
|
return Joi.object({
|
|
380
|
+
message: Joi.string().allow(""),
|
|
381
|
+
request_id: Joi.string().allow(""),
|
|
382
|
+
resend_timer: Joi.number(),
|
|
654
383
|
success: Joi.boolean(),
|
|
655
384
|
});
|
|
656
385
|
}
|
|
657
|
-
|
|
658
|
-
static QuestionSet() {
|
|
386
|
+
static ShipmentApplicationStatusResponse() {
|
|
659
387
|
return Joi.object({
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
display_name: Joi.string().allow(""),
|
|
388
|
+
statuses: Joi.array().items(OrderModel.StatusesBodyResponse()),
|
|
663
389
|
});
|
|
664
390
|
}
|
|
665
|
-
|
|
666
|
-
static BagReasonMeta() {
|
|
391
|
+
static ShipmentBagReasons() {
|
|
667
392
|
return Joi.object({
|
|
668
|
-
|
|
393
|
+
reasons: Joi.array().items(OrderModel.BagReasons()),
|
|
394
|
+
success: Joi.boolean(),
|
|
669
395
|
});
|
|
670
396
|
}
|
|
671
|
-
|
|
672
|
-
static BagReasons() {
|
|
397
|
+
static ShipmentById() {
|
|
673
398
|
return Joi.object({
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
meta: OrderModel.BagReasonMeta(),
|
|
677
|
-
|
|
678
|
-
display_name: Joi.string().allow(""),
|
|
679
|
-
|
|
680
|
-
reasons: Joi.array().items(OrderModel.BagReasons()),
|
|
681
|
-
|
|
682
|
-
id: Joi.number(),
|
|
683
|
-
|
|
684
|
-
qc_type: Joi.array().items(Joi.string().allow("")),
|
|
399
|
+
shipment: OrderModel.Shipments(),
|
|
685
400
|
});
|
|
686
401
|
}
|
|
687
|
-
|
|
688
|
-
static ShipmentBagReasons() {
|
|
402
|
+
static ShipmentPayment() {
|
|
689
403
|
return Joi.object({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
404
|
+
display_name: Joi.string().allow(""),
|
|
405
|
+
logo: Joi.string().allow(""),
|
|
406
|
+
mode: Joi.string().allow(""),
|
|
407
|
+
mop: Joi.string().allow(""),
|
|
408
|
+
payment_mode: Joi.string().allow(""),
|
|
409
|
+
status: Joi.string().allow(""),
|
|
693
410
|
});
|
|
694
411
|
}
|
|
695
|
-
|
|
696
412
|
static ShipmentReason() {
|
|
697
413
|
return Joi.object({
|
|
698
|
-
reason_id: Joi.number(),
|
|
699
|
-
|
|
700
414
|
feedback_type: Joi.string().allow(""),
|
|
701
|
-
|
|
702
415
|
flow: Joi.string().allow(""),
|
|
703
|
-
|
|
416
|
+
priority: Joi.number(),
|
|
417
|
+
reason_id: Joi.number(),
|
|
704
418
|
reason_text: Joi.string().allow(""),
|
|
705
|
-
|
|
706
419
|
show_text_area: Joi.boolean(),
|
|
707
|
-
|
|
708
|
-
priority: Joi.number(),
|
|
709
420
|
});
|
|
710
421
|
}
|
|
711
|
-
|
|
712
422
|
static ShipmentReasons() {
|
|
713
423
|
return Joi.object({
|
|
714
424
|
reasons: Joi.array().items(OrderModel.ShipmentReason()),
|
|
715
425
|
});
|
|
716
426
|
}
|
|
717
|
-
|
|
718
|
-
static Products() {
|
|
719
|
-
return Joi.object({
|
|
720
|
-
line_number: Joi.number(),
|
|
721
|
-
|
|
722
|
-
identifier: Joi.string().allow(""),
|
|
723
|
-
|
|
724
|
-
quantity: Joi.number(),
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
static ProductsReasonsData() {
|
|
729
|
-
return Joi.object({
|
|
730
|
-
reason_text: Joi.string().allow(""),
|
|
731
|
-
|
|
732
|
-
reason_id: Joi.number(),
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
static ProductsReasonsFilters() {
|
|
427
|
+
static Shipments() {
|
|
737
428
|
return Joi.object({
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
429
|
+
awb_no: Joi.string().allow(""),
|
|
430
|
+
bags: Joi.array().items(OrderModel.Bags()),
|
|
431
|
+
beneficiary_details: Joi.boolean(),
|
|
432
|
+
breakup_values: Joi.array().items(OrderModel.BreakupValues()),
|
|
433
|
+
can_break: Joi.any(),
|
|
434
|
+
can_cancel: Joi.boolean(),
|
|
435
|
+
can_return: Joi.boolean(),
|
|
436
|
+
comment: Joi.string().allow(""),
|
|
437
|
+
custom_meta: Joi.array().items(Joi.any()),
|
|
438
|
+
delivery_address: OrderModel.DeliveryAddress(),
|
|
439
|
+
delivery_date: Joi.string().allow(""),
|
|
440
|
+
dp_name: Joi.string().allow(""),
|
|
441
|
+
fulfilling_company: OrderModel.FulfillingCompany(),
|
|
442
|
+
fulfilling_store: OrderModel.FulfillingStore(),
|
|
443
|
+
invoice: OrderModel.Invoice(),
|
|
444
|
+
need_help_url: Joi.string().allow(""),
|
|
445
|
+
order_id: Joi.string().allow(""),
|
|
446
|
+
order_type: Joi.string().allow(""),
|
|
447
|
+
payment: OrderModel.ShipmentPayment(),
|
|
448
|
+
prices: OrderModel.Prices(),
|
|
449
|
+
promise: OrderModel.Promise(),
|
|
450
|
+
refund_details: Joi.any(),
|
|
451
|
+
returnable_date: Joi.string().allow(""),
|
|
452
|
+
shipment_created_at: Joi.string().allow(""),
|
|
453
|
+
shipment_id: Joi.string().allow(""),
|
|
454
|
+
shipment_status: OrderModel.ShipmentStatus(),
|
|
455
|
+
show_download_invoice: Joi.boolean(),
|
|
456
|
+
show_track_link: Joi.boolean(),
|
|
457
|
+
size_info: Joi.any(),
|
|
458
|
+
total_bags: Joi.number(),
|
|
459
|
+
total_details: OrderModel.ShipmentTotalDetails(),
|
|
460
|
+
track_url: Joi.string().allow(""),
|
|
461
|
+
tracking_details: Joi.array().items(OrderModel.TrackingDetails()),
|
|
462
|
+
traking_no: Joi.string().allow(""),
|
|
463
|
+
user_info: OrderModel.ShipmentUserInfo(),
|
|
743
464
|
});
|
|
744
465
|
}
|
|
745
|
-
|
|
746
|
-
static ProductsReasons() {
|
|
466
|
+
static ShipmentsRequest() {
|
|
747
467
|
return Joi.object({
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
468
|
+
data_updates: OrderModel.DataUpdates(),
|
|
469
|
+
identifier: Joi.string().allow("").required(),
|
|
470
|
+
products: Joi.array().items(OrderModel.Products()),
|
|
471
|
+
reasons: OrderModel.ReasonsData(),
|
|
751
472
|
});
|
|
752
473
|
}
|
|
753
|
-
|
|
754
|
-
static EntityReasonData() {
|
|
474
|
+
static ShipmentStatus() {
|
|
755
475
|
return Joi.object({
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
reason_id: Joi.number(),
|
|
476
|
+
hex_code: Joi.string().allow(""),
|
|
477
|
+
title: Joi.string().allow(""),
|
|
759
478
|
});
|
|
760
479
|
}
|
|
761
|
-
|
|
762
|
-
static EntitiesReasons() {
|
|
480
|
+
static ShipmentTotalDetails() {
|
|
763
481
|
return Joi.object({
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
482
|
+
pieces: Joi.number(),
|
|
483
|
+
sizes: Joi.number(),
|
|
484
|
+
total_price: Joi.number(),
|
|
767
485
|
});
|
|
768
486
|
}
|
|
769
|
-
|
|
770
|
-
static ReasonsData() {
|
|
487
|
+
static ShipmentTrack() {
|
|
771
488
|
return Joi.object({
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
entities: Joi.array().items(OrderModel.EntitiesReasons()),
|
|
489
|
+
results: Joi.array().items(OrderModel.Track()),
|
|
775
490
|
});
|
|
776
491
|
}
|
|
777
|
-
|
|
778
|
-
static ProductsDataUpdatesFilters() {
|
|
492
|
+
static ShipmentUserInfo() {
|
|
779
493
|
return Joi.object({
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
494
|
+
first_name: Joi.string().allow(""),
|
|
495
|
+
gender: Joi.string().allow(""),
|
|
496
|
+
last_name: Joi.string().allow(""),
|
|
497
|
+
mobile: Joi.string().allow(""),
|
|
783
498
|
});
|
|
784
499
|
}
|
|
785
|
-
|
|
786
|
-
static ProductsDataUpdates() {
|
|
500
|
+
static StatuesRequest() {
|
|
787
501
|
return Joi.object({
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
502
|
+
exclude_bags_next_state: Joi.string().allow(""),
|
|
503
|
+
shipments: Joi.array().items(OrderModel.ShipmentsRequest()),
|
|
504
|
+
status: Joi.string().allow(""),
|
|
791
505
|
});
|
|
792
506
|
}
|
|
793
|
-
|
|
794
|
-
static EntitiesDataUpdates() {
|
|
507
|
+
static StatusesBodyResponse() {
|
|
795
508
|
return Joi.object({
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
filters: Joi.array().items(Joi.any()),
|
|
509
|
+
shipments: Joi.array().items(Joi.any()),
|
|
799
510
|
});
|
|
800
511
|
}
|
|
801
|
-
|
|
802
|
-
static DataUpdates() {
|
|
512
|
+
static TimeStampData() {
|
|
803
513
|
return Joi.object({
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
entities: Joi.array().items(OrderModel.EntitiesDataUpdates()),
|
|
514
|
+
max: Joi.string().allow(""),
|
|
515
|
+
min: Joi.string().allow(""),
|
|
807
516
|
});
|
|
808
517
|
}
|
|
809
|
-
|
|
810
|
-
static ShipmentsRequest() {
|
|
518
|
+
static Track() {
|
|
811
519
|
return Joi.object({
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
520
|
+
account_name: Joi.string().allow(""),
|
|
521
|
+
awb: Joi.string().allow(""),
|
|
522
|
+
last_location_recieved_at: Joi.string().allow(""),
|
|
523
|
+
reason: Joi.string().allow(""),
|
|
524
|
+
shipment_type: Joi.string().allow(""),
|
|
525
|
+
status: Joi.string().allow(""),
|
|
526
|
+
updated_at: Joi.string().allow(""),
|
|
527
|
+
updated_time: Joi.string().allow(""),
|
|
819
528
|
});
|
|
820
529
|
}
|
|
821
|
-
|
|
822
|
-
static StatuesRequest() {
|
|
530
|
+
static TrackingDetails() {
|
|
823
531
|
return Joi.object({
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
shipments: Joi.array().items(OrderModel.ShipmentsRequest()),
|
|
827
|
-
|
|
532
|
+
is_current: Joi.boolean(),
|
|
533
|
+
is_passed: Joi.boolean(),
|
|
828
534
|
status: Joi.string().allow(""),
|
|
535
|
+
time: Joi.string().allow(""),
|
|
536
|
+
tracking_details: Joi.array().items(OrderModel.NestedTrackingDetails()),
|
|
829
537
|
});
|
|
830
538
|
}
|
|
831
|
-
|
|
832
539
|
static UpdateShipmentStatusRequest() {
|
|
833
540
|
return Joi.object({
|
|
541
|
+
force_transition: Joi.boolean(),
|
|
542
|
+
lock_after_transition: Joi.boolean(),
|
|
834
543
|
statuses: Joi.array().items(OrderModel.StatuesRequest()),
|
|
835
|
-
|
|
836
544
|
task: Joi.boolean(),
|
|
837
|
-
|
|
838
545
|
unlock_before_transition: Joi.boolean(),
|
|
839
|
-
|
|
840
|
-
force_transition: Joi.boolean(),
|
|
841
|
-
|
|
842
|
-
lock_after_transition: Joi.boolean(),
|
|
843
546
|
});
|
|
844
547
|
}
|
|
845
|
-
|
|
846
|
-
static StatusesBodyResponse() {
|
|
548
|
+
static UserInfo() {
|
|
847
549
|
return Joi.object({
|
|
848
|
-
|
|
550
|
+
email: Joi.string().allow(""),
|
|
551
|
+
gender: Joi.string().allow(""),
|
|
552
|
+
mobile: Joi.string().allow(""),
|
|
553
|
+
name: Joi.string().allow(""),
|
|
849
554
|
});
|
|
850
555
|
}
|
|
851
|
-
|
|
852
|
-
static ShipmentApplicationStatusResponse() {
|
|
556
|
+
static VerifyOtp() {
|
|
853
557
|
return Joi.object({
|
|
854
|
-
|
|
558
|
+
otp_code: Joi.string().allow(""),
|
|
559
|
+
request_id: Joi.string().allow(""),
|
|
855
560
|
});
|
|
856
561
|
}
|
|
857
|
-
|
|
858
|
-
static ErrorResponse() {
|
|
562
|
+
static VerifyOtpResponse() {
|
|
859
563
|
return Joi.object({
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
code: Joi.string().allow("").allow(null),
|
|
863
|
-
|
|
864
|
-
message: Joi.string().allow("").allow(null),
|
|
865
|
-
|
|
866
|
-
exception: Joi.string().allow("").allow(null),
|
|
867
|
-
|
|
868
|
-
status: Joi.number(),
|
|
564
|
+
success: Joi.boolean(),
|
|
869
565
|
});
|
|
870
566
|
}
|
|
871
567
|
}
|