@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,212 +1,178 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string} [
|
|
6
|
-
* @property {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @typedef AppliedFreeArticles
|
|
11
|
-
* @property {string} [article_id]
|
|
12
|
-
* @property {Object} [free_gift_item_details]
|
|
13
|
-
* @property {string} [parent_item_identifier]
|
|
14
|
-
* @property {number} [quantity]
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @typedef AppliedPromos
|
|
19
|
-
* @property {number} [amount]
|
|
20
|
-
* @property {AppliedFreeArticles[]} [applied_free_articles]
|
|
21
|
-
* @property {number} [article_quantity]
|
|
22
|
-
* @property {boolean} [mrp_promotion]
|
|
23
|
-
* @property {string} [promo_id]
|
|
24
|
-
* @property {string} [promotion_name]
|
|
25
|
-
* @property {string} [promotion_type]
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @typedef BagReasonMeta
|
|
30
|
-
* @property {boolean} [show_text_area]
|
|
4
|
+
* @typedef OrderPage
|
|
5
|
+
* @property {string} [type]
|
|
6
|
+
* @property {number} [item_total]
|
|
7
|
+
* @property {number} [current]
|
|
8
|
+
* @property {number} [size]
|
|
9
|
+
* @property {boolean} [has_next]
|
|
31
10
|
*/
|
|
32
11
|
|
|
33
12
|
/**
|
|
34
|
-
* @typedef
|
|
35
|
-
* @property {string} [
|
|
36
|
-
* @property {
|
|
37
|
-
* @property {
|
|
38
|
-
* @property {string
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {
|
|
13
|
+
* @typedef UserInfo
|
|
14
|
+
* @property {string} [first_name]
|
|
15
|
+
* @property {string} [gender]
|
|
16
|
+
* @property {string} [name]
|
|
17
|
+
* @property {string} [last_name]
|
|
18
|
+
* @property {string} [mobile]
|
|
19
|
+
* @property {string} [email]
|
|
41
20
|
*/
|
|
42
21
|
|
|
43
22
|
/**
|
|
44
|
-
* @typedef
|
|
45
|
-
* @property {
|
|
46
|
-
* @property {boolean} [can_cancel]
|
|
47
|
-
* @property {boolean} [can_return]
|
|
48
|
-
* @property {string} [currency_code]
|
|
23
|
+
* @typedef BreakupValues
|
|
24
|
+
* @property {number} [value]
|
|
49
25
|
* @property {string} [currency_symbol]
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {string} [
|
|
52
|
-
* @property {
|
|
53
|
-
* @property {number} [id]
|
|
54
|
-
* @property {Item} [item]
|
|
55
|
-
* @property {number} [line_number]
|
|
56
|
-
* @property {Object} [meta]
|
|
57
|
-
* @property {Object} [parent_promo_bags]
|
|
58
|
-
* @property {Prices} [prices]
|
|
59
|
-
* @property {number} [quantity]
|
|
60
|
-
* @property {string} [returnable_date]
|
|
61
|
-
* @property {string} [seller_identifier]
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @typedef BagsForReorder
|
|
66
|
-
* @property {BagsForReorderArticleAssignment} [article_assignment]
|
|
67
|
-
* @property {number} [item_id]
|
|
68
|
-
* @property {string} [item_size]
|
|
69
|
-
* @property {number} [quantity]
|
|
70
|
-
* @property {number} [seller_id]
|
|
71
|
-
* @property {number} [store_id]
|
|
26
|
+
* @property {string} [name]
|
|
27
|
+
* @property {string} [display]
|
|
28
|
+
* @property {string} [currency_code]
|
|
72
29
|
*/
|
|
73
30
|
|
|
74
31
|
/**
|
|
75
|
-
* @typedef
|
|
76
|
-
* @property {string} [
|
|
77
|
-
* @property {string} [
|
|
32
|
+
* @typedef ShipmentPayment
|
|
33
|
+
* @property {string} [mop]
|
|
34
|
+
* @property {string} [payment_mode]
|
|
35
|
+
* @property {string} [status]
|
|
36
|
+
* @property {string} [mode]
|
|
37
|
+
* @property {string} [logo]
|
|
38
|
+
* @property {string} [display_name]
|
|
78
39
|
*/
|
|
79
40
|
|
|
80
41
|
/**
|
|
81
|
-
* @typedef
|
|
82
|
-
* @property {string} [
|
|
83
|
-
* @property {string} [
|
|
84
|
-
* @property {string} [display]
|
|
42
|
+
* @typedef ShipmentUserInfo
|
|
43
|
+
* @property {string} [first_name]
|
|
44
|
+
* @property {string} [gender]
|
|
85
45
|
* @property {string} [name]
|
|
86
|
-
* @property {
|
|
46
|
+
* @property {string} [last_name]
|
|
47
|
+
* @property {string} [mobile]
|
|
48
|
+
* @property {string} [email]
|
|
87
49
|
*/
|
|
88
50
|
|
|
89
51
|
/**
|
|
90
|
-
* @typedef
|
|
91
|
-
* @property {
|
|
52
|
+
* @typedef FulfillingStore
|
|
53
|
+
* @property {number} [id]
|
|
54
|
+
* @property {string} [code]
|
|
92
55
|
* @property {string} [name]
|
|
93
|
-
* @property {string} [
|
|
94
|
-
* @property {
|
|
56
|
+
* @property {string} [company_name]
|
|
57
|
+
* @property {number} [company_id]
|
|
95
58
|
*/
|
|
96
59
|
|
|
97
60
|
/**
|
|
98
|
-
* @typedef
|
|
99
|
-
* @property {string} [
|
|
100
|
-
* @property {string} [
|
|
101
|
-
* @property {string} [
|
|
102
|
-
* @property {string} [phone]
|
|
103
|
-
* @property {string} [shipment_id]
|
|
61
|
+
* @typedef ShipmentStatus
|
|
62
|
+
* @property {string} [value]
|
|
63
|
+
* @property {string} [title]
|
|
64
|
+
* @property {string} [hex_code]
|
|
104
65
|
*/
|
|
105
66
|
|
|
106
67
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {
|
|
109
|
-
* @property {
|
|
68
|
+
* @typedef Invoice
|
|
69
|
+
* @property {string} [invoice_url]
|
|
70
|
+
* @property {string} [updated_date]
|
|
71
|
+
* @property {string} [label_url]
|
|
110
72
|
*/
|
|
111
73
|
|
|
112
74
|
/**
|
|
113
|
-
* @typedef
|
|
114
|
-
* @property {
|
|
115
|
-
* @property {string} [
|
|
116
|
-
* @property {
|
|
117
|
-
* @property {string} [
|
|
118
|
-
* @property {string} [address2]
|
|
119
|
-
* @property {string} [area]
|
|
120
|
-
* @property {string} [city]
|
|
121
|
-
* @property {string} [contact_person]
|
|
122
|
-
* @property {string} [country]
|
|
123
|
-
* @property {string} [country_iso_code]
|
|
124
|
-
* @property {string} [country_phone_code]
|
|
125
|
-
* @property {string} [created_at]
|
|
126
|
-
* @property {string} [display_address]
|
|
127
|
-
* @property {string} [email]
|
|
128
|
-
* @property {string} [landmark]
|
|
129
|
-
* @property {number} [latitude]
|
|
130
|
-
* @property {number} [longitude]
|
|
131
|
-
* @property {string} [name]
|
|
132
|
-
* @property {string} [phone]
|
|
133
|
-
* @property {string} [pincode]
|
|
134
|
-
* @property {string} [state]
|
|
135
|
-
* @property {string} [updated_at]
|
|
136
|
-
* @property {string} [version]
|
|
75
|
+
* @typedef NestedTrackingDetails
|
|
76
|
+
* @property {boolean} [is_passed]
|
|
77
|
+
* @property {string} [time]
|
|
78
|
+
* @property {boolean} [is_current]
|
|
79
|
+
* @property {string} [status]
|
|
137
80
|
*/
|
|
138
81
|
|
|
139
82
|
/**
|
|
140
|
-
* @typedef
|
|
141
|
-
* @property {
|
|
142
|
-
* @property {
|
|
83
|
+
* @typedef TrackingDetails
|
|
84
|
+
* @property {string} [value]
|
|
85
|
+
* @property {boolean} [is_current]
|
|
86
|
+
* @property {boolean} [is_passed]
|
|
87
|
+
* @property {string} [status]
|
|
88
|
+
* @property {string} [time]
|
|
89
|
+
* @property {NestedTrackingDetails[]} [tracking_details]
|
|
143
90
|
*/
|
|
144
91
|
|
|
145
92
|
/**
|
|
146
|
-
* @typedef
|
|
147
|
-
* @property {
|
|
148
|
-
* @property {
|
|
93
|
+
* @typedef TimeStampData
|
|
94
|
+
* @property {string} [min]
|
|
95
|
+
* @property {string} [max]
|
|
149
96
|
*/
|
|
150
97
|
|
|
151
98
|
/**
|
|
152
|
-
* @typedef
|
|
153
|
-
* @property {
|
|
154
|
-
* @property {
|
|
99
|
+
* @typedef Promise
|
|
100
|
+
* @property {boolean} [show_promise]
|
|
101
|
+
* @property {TimeStampData} [timestamp]
|
|
155
102
|
*/
|
|
156
103
|
|
|
157
104
|
/**
|
|
158
|
-
* @typedef
|
|
159
|
-
* @property {
|
|
160
|
-
* @property {
|
|
161
|
-
* @property {
|
|
162
|
-
* @property {string} [stack_trace]
|
|
163
|
-
* @property {number} [status]
|
|
105
|
+
* @typedef ShipmentTotalDetails
|
|
106
|
+
* @property {number} [pieces]
|
|
107
|
+
* @property {number} [total_price]
|
|
108
|
+
* @property {number} [sizes]
|
|
164
109
|
*/
|
|
165
110
|
|
|
166
111
|
/**
|
|
167
|
-
* @typedef
|
|
168
|
-
* @property {
|
|
169
|
-
* @property {number} [
|
|
170
|
-
* @property {number} [amount_paid_roundoff]
|
|
112
|
+
* @typedef Prices
|
|
113
|
+
* @property {number} [delivery_charge]
|
|
114
|
+
* @property {number} [coupon_value]
|
|
171
115
|
* @property {number} [brand_calculated_amount]
|
|
172
|
-
* @property {number} [
|
|
173
|
-
* @property {number} [
|
|
174
|
-
* @property {number} [cod_charges]
|
|
116
|
+
* @property {number} [value_of_good]
|
|
117
|
+
* @property {number} [price_marked]
|
|
175
118
|
* @property {number} [coupon_effective_discount]
|
|
176
|
-
* @property {
|
|
177
|
-
* @property {number} [delivery_charge]
|
|
119
|
+
* @property {string} [currency_symbol]
|
|
178
120
|
* @property {number} [discount]
|
|
179
|
-
* @property {number} [fynd_credits]
|
|
180
|
-
* @property {number} [gst_fee]
|
|
181
|
-
* @property {string} [gst_tag]
|
|
182
121
|
* @property {number} [gst_tax_percentage]
|
|
183
|
-
* @property {
|
|
184
|
-
* @property {
|
|
185
|
-
* @property {
|
|
122
|
+
* @property {number} [cod_charges]
|
|
123
|
+
* @property {number} [amount_paid]
|
|
124
|
+
* @property {boolean} [added_to_fynd_cash]
|
|
125
|
+
* @property {number} [transfer_price]
|
|
126
|
+
* @property {number} [cashback_applied]
|
|
186
127
|
* @property {number} [price_effective]
|
|
187
|
-
* @property {number} [
|
|
128
|
+
* @property {number} [cashback]
|
|
129
|
+
* @property {number} [refund_credit]
|
|
130
|
+
* @property {number} [amount_paid_roundoff]
|
|
188
131
|
* @property {number} [promotion_effective_discount]
|
|
189
132
|
* @property {number} [refund_amount]
|
|
190
|
-
* @property {
|
|
191
|
-
* @property {
|
|
192
|
-
* @property {number} [total_units]
|
|
193
|
-
* @property {number} [transfer_price]
|
|
194
|
-
* @property {number} [value_of_good]
|
|
133
|
+
* @property {string} [currency_code]
|
|
134
|
+
* @property {number} [fynd_credits]
|
|
195
135
|
*/
|
|
196
136
|
|
|
197
137
|
/**
|
|
198
|
-
* @typedef
|
|
199
|
-
* @property {
|
|
138
|
+
* @typedef ItemBrand
|
|
139
|
+
* @property {string} [logo]
|
|
200
140
|
* @property {string} [name]
|
|
201
141
|
*/
|
|
202
142
|
|
|
203
143
|
/**
|
|
204
|
-
* @typedef
|
|
144
|
+
* @typedef Item
|
|
145
|
+
* @property {string[]} [image]
|
|
146
|
+
* @property {string[]} [l1_categories]
|
|
147
|
+
* @property {ItemBrand} [brand]
|
|
148
|
+
* @property {string} [seller_identifier]
|
|
205
149
|
* @property {string} [code]
|
|
206
|
-
* @property {number} [company_id]
|
|
207
|
-
* @property {string} [company_name]
|
|
208
150
|
* @property {number} [id]
|
|
209
151
|
* @property {string} [name]
|
|
152
|
+
* @property {string} [l3_category_name]
|
|
153
|
+
* @property {string} [slug_key]
|
|
154
|
+
* @property {string[]} [l2_categories]
|
|
155
|
+
* @property {string} [size]
|
|
156
|
+
* @property {Object} [attributes]
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @typedef AppliedFreeArticles
|
|
161
|
+
* @property {string} [article_id]
|
|
162
|
+
* @property {Object} [free_gift_item_details]
|
|
163
|
+
* @property {string} [parent_item_identifier]
|
|
164
|
+
* @property {number} [quantity]
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @typedef AppliedPromos
|
|
169
|
+
* @property {boolean} [mrp_promotion]
|
|
170
|
+
* @property {string} [promotion_name]
|
|
171
|
+
* @property {number} [article_quantity]
|
|
172
|
+
* @property {string} [promo_id]
|
|
173
|
+
* @property {number} [amount]
|
|
174
|
+
* @property {string} [promotion_type]
|
|
175
|
+
* @property {AppliedFreeArticles[]} [applied_free_articles]
|
|
210
176
|
*/
|
|
211
177
|
|
|
212
178
|
/**
|
|
@@ -216,626 +182,618 @@ const Joi = require("joi");
|
|
|
216
182
|
*/
|
|
217
183
|
|
|
218
184
|
/**
|
|
219
|
-
* @typedef
|
|
220
|
-
* @property {
|
|
221
|
-
* @property {
|
|
222
|
-
* @property {
|
|
185
|
+
* @typedef FinancialBreakup
|
|
186
|
+
* @property {number} [coupon_value]
|
|
187
|
+
* @property {number} [delivery_charge]
|
|
188
|
+
* @property {number} [brand_calculated_amount]
|
|
189
|
+
* @property {number} [value_of_good]
|
|
190
|
+
* @property {number} [price_marked]
|
|
191
|
+
* @property {number} [coupon_effective_discount]
|
|
192
|
+
* @property {string} [hsn_code]
|
|
193
|
+
* @property {number} [discount]
|
|
194
|
+
* @property {number} [gst_tax_percentage]
|
|
195
|
+
* @property {number} [cod_charges]
|
|
196
|
+
* @property {number} [amount_paid]
|
|
197
|
+
* @property {boolean} [added_to_fynd_cash]
|
|
198
|
+
* @property {string} [size]
|
|
199
|
+
* @property {number} [transfer_price]
|
|
200
|
+
* @property {number} [cashback_applied]
|
|
201
|
+
* @property {number} [price_effective]
|
|
202
|
+
* @property {number} [cashback]
|
|
203
|
+
* @property {number} [refund_credit]
|
|
204
|
+
* @property {number} [amount_paid_roundoff]
|
|
205
|
+
* @property {number} [total_units]
|
|
206
|
+
* @property {Identifiers} [identifiers]
|
|
207
|
+
* @property {string} [gst_tag]
|
|
208
|
+
* @property {string} [item_name]
|
|
209
|
+
* @property {number} [promotion_effective_discount]
|
|
210
|
+
* @property {number} [gst_fee]
|
|
211
|
+
* @property {number} [refund_amount]
|
|
212
|
+
* @property {number} [fynd_credits]
|
|
223
213
|
*/
|
|
224
214
|
|
|
225
215
|
/**
|
|
226
|
-
* @typedef
|
|
227
|
-
* @property {
|
|
228
|
-
* @property {ItemBrand} [brand]
|
|
229
|
-
* @property {string} [code]
|
|
230
|
-
* @property {number} [id]
|
|
231
|
-
* @property {string[]} [image]
|
|
232
|
-
* @property {string[]} [l1_categories]
|
|
233
|
-
* @property {string[]} [l2_categories]
|
|
234
|
-
* @property {string} [l3_category_name]
|
|
216
|
+
* @typedef CurrentStatus
|
|
217
|
+
* @property {string} [updated_at]
|
|
235
218
|
* @property {string} [name]
|
|
236
|
-
* @property {string} [
|
|
237
|
-
* @property {string} [
|
|
238
|
-
* @property {string} [slug_key]
|
|
219
|
+
* @property {string} [status]
|
|
220
|
+
* @property {string} [journey_type]
|
|
239
221
|
*/
|
|
240
222
|
|
|
241
223
|
/**
|
|
242
|
-
* @typedef
|
|
243
|
-
* @property {string} [
|
|
244
|
-
* @property {
|
|
224
|
+
* @typedef Bags
|
|
225
|
+
* @property {string} [delivery_date]
|
|
226
|
+
* @property {number} [line_number]
|
|
227
|
+
* @property {string} [currency_symbol]
|
|
228
|
+
* @property {Item} [item]
|
|
229
|
+
* @property {AppliedPromos[]} [applied_promos]
|
|
230
|
+
* @property {number} [quantity]
|
|
231
|
+
* @property {Prices} [prices]
|
|
232
|
+
* @property {boolean} [can_cancel]
|
|
233
|
+
* @property {boolean} [can_return]
|
|
234
|
+
* @property {number} [id]
|
|
235
|
+
* @property {string} [returnable_date]
|
|
236
|
+
* @property {FinancialBreakup[]} [financial_breakup]
|
|
237
|
+
* @property {Object} [parent_promo_bags]
|
|
238
|
+
* @property {Object} [meta]
|
|
239
|
+
* @property {string} [currency_code]
|
|
240
|
+
* @property {string} [seller_identifier]
|
|
241
|
+
* @property {CurrentStatus} [current_status]
|
|
245
242
|
*/
|
|
246
243
|
|
|
247
244
|
/**
|
|
248
|
-
* @typedef
|
|
249
|
-
* @property {
|
|
250
|
-
* @property {
|
|
251
|
-
* @property {string} [status]
|
|
252
|
-
* @property {string} [time]
|
|
245
|
+
* @typedef FulfillingCompany
|
|
246
|
+
* @property {number} [id]
|
|
247
|
+
* @property {string} [name]
|
|
253
248
|
*/
|
|
254
249
|
|
|
255
250
|
/**
|
|
256
|
-
* @typedef
|
|
257
|
-
* @property {
|
|
251
|
+
* @typedef DeliveryAddress
|
|
252
|
+
* @property {string} [pincode]
|
|
253
|
+
* @property {string} [phone]
|
|
254
|
+
* @property {number} [latitude]
|
|
255
|
+
* @property {string} [address2]
|
|
256
|
+
* @property {string} [landmark]
|
|
257
|
+
* @property {string} [area]
|
|
258
|
+
* @property {string} [city]
|
|
259
|
+
* @property {string} [address]
|
|
260
|
+
* @property {string} [address_type]
|
|
261
|
+
* @property {number} [longitude]
|
|
262
|
+
* @property {string} [country_iso_code]
|
|
263
|
+
* @property {string} [state]
|
|
264
|
+
* @property {string} [created_at]
|
|
265
|
+
* @property {string} [address1]
|
|
266
|
+
* @property {string} [name]
|
|
267
|
+
* @property {string} [contact_person]
|
|
268
|
+
* @property {string} [address_category]
|
|
269
|
+
* @property {string} [email]
|
|
270
|
+
* @property {string} [country_phone_code]
|
|
271
|
+
* @property {string} [version]
|
|
272
|
+
* @property {string} [updated_at]
|
|
273
|
+
* @property {string} [country]
|
|
258
274
|
*/
|
|
259
275
|
|
|
260
276
|
/**
|
|
261
|
-
* @typedef
|
|
262
|
-
* @property {
|
|
277
|
+
* @typedef Shipments
|
|
278
|
+
* @property {ShipmentPayment} [payment]
|
|
279
|
+
* @property {string} [order_type]
|
|
280
|
+
* @property {boolean} [show_download_invoice]
|
|
281
|
+
* @property {boolean} [can_cancel]
|
|
282
|
+
* @property {ShipmentUserInfo} [user_info]
|
|
283
|
+
* @property {string} [shipment_id]
|
|
284
|
+
* @property {FulfillingStore} [fulfilling_store]
|
|
285
|
+
* @property {Object[]} [custom_meta]
|
|
286
|
+
* @property {ShipmentStatus} [shipment_status]
|
|
287
|
+
* @property {string} [comment]
|
|
288
|
+
* @property {Invoice} [invoice]
|
|
289
|
+
* @property {boolean} [show_track_link]
|
|
290
|
+
* @property {Object} [refund_details]
|
|
291
|
+
* @property {BreakupValues[]} [breakup_values]
|
|
292
|
+
* @property {Object} [can_break]
|
|
293
|
+
* @property {string} [traking_no]
|
|
294
|
+
* @property {TrackingDetails[]} [tracking_details]
|
|
295
|
+
* @property {Promise} [promise]
|
|
296
|
+
* @property {number} [total_bags]
|
|
297
|
+
* @property {ShipmentTotalDetails} [total_details]
|
|
298
|
+
* @property {Prices} [prices]
|
|
299
|
+
* @property {string} [returnable_date]
|
|
300
|
+
* @property {string} [shipment_created_at]
|
|
301
|
+
* @property {Object} [size_info]
|
|
302
|
+
* @property {Bags[]} [bags]
|
|
303
|
+
* @property {string} [dp_name]
|
|
304
|
+
* @property {string} [awb_no]
|
|
305
|
+
* @property {boolean} [beneficiary_details]
|
|
306
|
+
* @property {FulfillingCompany} [fulfilling_company]
|
|
307
|
+
* @property {boolean} [can_return]
|
|
308
|
+
* @property {DeliveryAddress} [delivery_address]
|
|
309
|
+
* @property {string} [track_url]
|
|
310
|
+
* @property {string} [order_id]
|
|
311
|
+
* @property {string} [need_help_url]
|
|
312
|
+
* @property {Object} [return_meta]
|
|
313
|
+
* @property {string} [delivery_date]
|
|
263
314
|
*/
|
|
264
315
|
|
|
265
316
|
/**
|
|
266
|
-
* @typedef
|
|
267
|
-
* @property {
|
|
268
|
-
* @property {
|
|
269
|
-
* @property {OrderPage} [page]
|
|
317
|
+
* @typedef BagsForReorderArticleAssignment
|
|
318
|
+
* @property {string} [strategy]
|
|
319
|
+
* @property {string} [level]
|
|
270
320
|
*/
|
|
271
321
|
|
|
272
322
|
/**
|
|
273
|
-
* @typedef
|
|
274
|
-
* @property {
|
|
275
|
-
* @property {
|
|
276
|
-
* @property {number} [
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {
|
|
323
|
+
* @typedef BagsForReorder
|
|
324
|
+
* @property {string} [item_size]
|
|
325
|
+
* @property {number} [quantity]
|
|
326
|
+
* @property {number} [store_id]
|
|
327
|
+
* @property {BagsForReorderArticleAssignment} [article_assignment]
|
|
328
|
+
* @property {number} [seller_id]
|
|
329
|
+
* @property {number} [item_id]
|
|
279
330
|
*/
|
|
280
331
|
|
|
281
332
|
/**
|
|
282
333
|
* @typedef OrderSchema
|
|
283
|
-
* @property {
|
|
334
|
+
* @property {number} [total_shipments_in_order]
|
|
335
|
+
* @property {UserInfo} [user_info]
|
|
284
336
|
* @property {BreakupValues[]} [breakup_values]
|
|
285
337
|
* @property {string} [order_created_time]
|
|
286
|
-
* @property {string} [order_created_ts]
|
|
287
338
|
* @property {string} [order_id]
|
|
288
339
|
* @property {Shipments[]} [shipments]
|
|
289
|
-
* @property {
|
|
290
|
-
* @property {UserInfo} [user_info]
|
|
340
|
+
* @property {BagsForReorder[]} [bags_for_reorder]
|
|
291
341
|
*/
|
|
292
342
|
|
|
293
343
|
/**
|
|
294
344
|
* @typedef OrderStatuses
|
|
295
|
-
* @property {string} [display]
|
|
296
|
-
* @property {boolean} [is_selected]
|
|
297
345
|
* @property {number} [value]
|
|
346
|
+
* @property {boolean} [is_selected]
|
|
347
|
+
* @property {string} [display]
|
|
298
348
|
*/
|
|
299
349
|
|
|
300
350
|
/**
|
|
301
|
-
* @typedef
|
|
302
|
-
* @property {
|
|
303
|
-
* @property {number} [amount_paid]
|
|
304
|
-
* @property {number} [amount_paid_roundoff]
|
|
305
|
-
* @property {number} [brand_calculated_amount]
|
|
306
|
-
* @property {number} [cashback]
|
|
307
|
-
* @property {number} [cashback_applied]
|
|
308
|
-
* @property {number} [cod_charges]
|
|
309
|
-
* @property {number} [coupon_effective_discount]
|
|
310
|
-
* @property {number} [coupon_value]
|
|
311
|
-
* @property {string} [currency_code]
|
|
312
|
-
* @property {string} [currency_symbol]
|
|
313
|
-
* @property {number} [delivery_charge]
|
|
314
|
-
* @property {number} [discount]
|
|
315
|
-
* @property {number} [fynd_credits]
|
|
316
|
-
* @property {number} [gst_tax_percentage]
|
|
317
|
-
* @property {number} [price_effective]
|
|
318
|
-
* @property {number} [price_marked]
|
|
319
|
-
* @property {number} [promotion_effective_discount]
|
|
320
|
-
* @property {number} [refund_amount]
|
|
321
|
-
* @property {number} [refund_credit]
|
|
322
|
-
* @property {number} [transfer_price]
|
|
323
|
-
* @property {number} [value_of_good]
|
|
324
|
-
*/
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @typedef Products
|
|
328
|
-
* @property {string} [identifier]
|
|
329
|
-
* @property {number} [line_number]
|
|
330
|
-
* @property {number} [quantity]
|
|
331
|
-
*/
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* @typedef ProductsDataUpdates
|
|
335
|
-
* @property {Object} [data]
|
|
336
|
-
* @property {ProductsDataUpdatesFilters[]} [filters]
|
|
351
|
+
* @typedef OrderFilters
|
|
352
|
+
* @property {OrderStatuses[]} [statuses]
|
|
337
353
|
*/
|
|
338
354
|
|
|
339
355
|
/**
|
|
340
|
-
* @typedef
|
|
341
|
-
* @property {
|
|
342
|
-
* @property {
|
|
356
|
+
* @typedef OrderList
|
|
357
|
+
* @property {OrderPage} [page]
|
|
358
|
+
* @property {OrderSchema[]} [items]
|
|
359
|
+
* @property {OrderFilters} [filters]
|
|
343
360
|
*/
|
|
344
361
|
|
|
345
362
|
/**
|
|
346
|
-
* @typedef
|
|
347
|
-
* @property {
|
|
348
|
-
* @property {
|
|
363
|
+
* @typedef ApefaceApiError
|
|
364
|
+
* @property {string} [message]
|
|
365
|
+
* @property {boolean} [success]
|
|
349
366
|
*/
|
|
350
367
|
|
|
351
368
|
/**
|
|
352
|
-
* @typedef
|
|
353
|
-
* @property {
|
|
354
|
-
* @property {string} [reason_text]
|
|
369
|
+
* @typedef OrderById
|
|
370
|
+
* @property {OrderSchema} [order]
|
|
355
371
|
*/
|
|
356
372
|
|
|
357
373
|
/**
|
|
358
|
-
* @typedef
|
|
359
|
-
* @property {
|
|
360
|
-
* @property {number} [line_number]
|
|
361
|
-
* @property {number} [quantity]
|
|
374
|
+
* @typedef ShipmentById
|
|
375
|
+
* @property {Shipments} [shipment]
|
|
362
376
|
*/
|
|
363
377
|
|
|
364
378
|
/**
|
|
365
|
-
* @typedef
|
|
366
|
-
* @property {
|
|
367
|
-
* @property {
|
|
379
|
+
* @typedef ResponseGetInvoiceShipment
|
|
380
|
+
* @property {string} presigned_type
|
|
381
|
+
* @property {boolean} success
|
|
382
|
+
* @property {string} shipment_id
|
|
383
|
+
* @property {string} presigned_url
|
|
368
384
|
*/
|
|
369
385
|
|
|
370
386
|
/**
|
|
371
|
-
* @typedef
|
|
372
|
-
* @property {string} [
|
|
373
|
-
* @property {
|
|
387
|
+
* @typedef Track
|
|
388
|
+
* @property {string} [account_name]
|
|
389
|
+
* @property {string} [shipment_type]
|
|
390
|
+
* @property {string} [status]
|
|
391
|
+
* @property {string} [last_location_recieved_at]
|
|
392
|
+
* @property {string} [updated_time]
|
|
393
|
+
* @property {string} [updated_at]
|
|
394
|
+
* @property {string} [reason]
|
|
395
|
+
* @property {string} [awb]
|
|
374
396
|
*/
|
|
375
397
|
|
|
376
398
|
/**
|
|
377
|
-
* @typedef
|
|
378
|
-
* @property {
|
|
379
|
-
* @property {ProductsReasons[]} [products]
|
|
399
|
+
* @typedef ShipmentTrack
|
|
400
|
+
* @property {Track[]} [results]
|
|
380
401
|
*/
|
|
381
402
|
|
|
382
403
|
/**
|
|
383
|
-
* @typedef
|
|
384
|
-
* @property {string}
|
|
385
|
-
* @property {string}
|
|
386
|
-
* @property {string}
|
|
387
|
-
* @property {
|
|
404
|
+
* @typedef CustomerDetailsResponse
|
|
405
|
+
* @property {string} [phone]
|
|
406
|
+
* @property {string} [shipment_id]
|
|
407
|
+
* @property {string} [name]
|
|
408
|
+
* @property {string} [order_id]
|
|
409
|
+
* @property {string} [country]
|
|
388
410
|
*/
|
|
389
411
|
|
|
390
412
|
/**
|
|
391
413
|
* @typedef SendOtpToCustomerResponse
|
|
392
|
-
* @property {string} [message]
|
|
393
414
|
* @property {string} [request_id]
|
|
394
|
-
* @property {
|
|
415
|
+
* @property {string} [message]
|
|
395
416
|
* @property {boolean} [success]
|
|
417
|
+
* @property {number} [resend_timer]
|
|
396
418
|
*/
|
|
397
419
|
|
|
398
420
|
/**
|
|
399
|
-
* @typedef
|
|
400
|
-
* @property {
|
|
421
|
+
* @typedef VerifyOtp
|
|
422
|
+
* @property {string} [otp_code]
|
|
423
|
+
* @property {string} [request_id]
|
|
401
424
|
*/
|
|
402
425
|
|
|
403
426
|
/**
|
|
404
|
-
* @typedef
|
|
405
|
-
* @property {BagReasons[]} [reasons]
|
|
427
|
+
* @typedef VerifyOtpResponse
|
|
406
428
|
* @property {boolean} [success]
|
|
407
429
|
*/
|
|
408
430
|
|
|
409
431
|
/**
|
|
410
|
-
* @typedef
|
|
411
|
-
* @property {
|
|
432
|
+
* @typedef BagReasonMeta
|
|
433
|
+
* @property {boolean} [show_text_area]
|
|
412
434
|
*/
|
|
413
435
|
|
|
414
436
|
/**
|
|
415
|
-
* @typedef
|
|
437
|
+
* @typedef QuestionSet
|
|
438
|
+
* @property {number} [id]
|
|
416
439
|
* @property {string} [display_name]
|
|
417
|
-
* @property {string} [logo]
|
|
418
|
-
* @property {string} [mode]
|
|
419
|
-
* @property {string} [mop]
|
|
420
|
-
* @property {string} [payment_mode]
|
|
421
|
-
* @property {string} [status]
|
|
422
440
|
*/
|
|
423
441
|
|
|
424
442
|
/**
|
|
425
|
-
* @typedef
|
|
426
|
-
* @property {string} [
|
|
427
|
-
* @property {
|
|
428
|
-
* @property {
|
|
429
|
-
* @property {
|
|
430
|
-
* @property {
|
|
431
|
-
* @property {
|
|
443
|
+
* @typedef BagReasons
|
|
444
|
+
* @property {string[]} [qc_type]
|
|
445
|
+
* @property {number} [id]
|
|
446
|
+
* @property {string} [display_name]
|
|
447
|
+
* @property {BagReasonMeta} [meta]
|
|
448
|
+
* @property {QuestionSet[]} [question_set]
|
|
449
|
+
* @property {BagReasons[]} [reasons]
|
|
432
450
|
*/
|
|
433
451
|
|
|
434
452
|
/**
|
|
435
|
-
* @typedef
|
|
436
|
-
* @property {
|
|
453
|
+
* @typedef ShipmentBagReasons
|
|
454
|
+
* @property {BagReasons[]} [reasons]
|
|
455
|
+
* @property {boolean} [success]
|
|
437
456
|
*/
|
|
438
457
|
|
|
439
458
|
/**
|
|
440
|
-
* @typedef
|
|
441
|
-
* @property {
|
|
442
|
-
* @property {
|
|
443
|
-
* @property {
|
|
444
|
-
* @property {
|
|
445
|
-
* @property {
|
|
446
|
-
* @property {
|
|
447
|
-
* @property {boolean} [can_return]
|
|
448
|
-
* @property {string} [comment]
|
|
449
|
-
* @property {Object[]} [custom_meta]
|
|
450
|
-
* @property {DeliveryAddress} [delivery_address]
|
|
451
|
-
* @property {string} [delivery_date]
|
|
452
|
-
* @property {string} [dp_name]
|
|
453
|
-
* @property {FulfillingCompany} [fulfilling_company]
|
|
454
|
-
* @property {FulfillingStore} [fulfilling_store]
|
|
455
|
-
* @property {Invoice} [invoice]
|
|
456
|
-
* @property {string} [need_help_url]
|
|
457
|
-
* @property {string} [order_id]
|
|
458
|
-
* @property {string} [order_type]
|
|
459
|
-
* @property {ShipmentPayment} [payment]
|
|
460
|
-
* @property {Prices} [prices]
|
|
461
|
-
* @property {Promise} [promise]
|
|
462
|
-
* @property {Object} [refund_details]
|
|
463
|
-
* @property {Object} [return_meta]
|
|
464
|
-
* @property {string} [returnable_date]
|
|
465
|
-
* @property {string} [shipment_created_at]
|
|
466
|
-
* @property {string} [shipment_created_ts]
|
|
467
|
-
* @property {string} [shipment_id]
|
|
468
|
-
* @property {ShipmentStatus} [shipment_status]
|
|
469
|
-
* @property {boolean} [show_download_invoice]
|
|
470
|
-
* @property {boolean} [show_track_link]
|
|
471
|
-
* @property {Object} [size_info]
|
|
472
|
-
* @property {number} [total_bags]
|
|
473
|
-
* @property {ShipmentTotalDetails} [total_details]
|
|
474
|
-
* @property {string} [track_url]
|
|
475
|
-
* @property {TrackingDetails[]} [tracking_details]
|
|
476
|
-
* @property {string} [traking_no]
|
|
477
|
-
* @property {ShipmentUserInfo} [user_info]
|
|
459
|
+
* @typedef ShipmentReason
|
|
460
|
+
* @property {number} [priority]
|
|
461
|
+
* @property {boolean} [show_text_area]
|
|
462
|
+
* @property {number} [reason_id]
|
|
463
|
+
* @property {string} [feedback_type]
|
|
464
|
+
* @property {string} [reason_text]
|
|
465
|
+
* @property {string} [flow]
|
|
478
466
|
*/
|
|
479
467
|
|
|
480
468
|
/**
|
|
481
|
-
* @typedef
|
|
482
|
-
* @property {
|
|
483
|
-
* @property {string} identifier
|
|
484
|
-
* @property {Products[]} [products]
|
|
485
|
-
* @property {ReasonsData} [reasons]
|
|
469
|
+
* @typedef ShipmentReasons
|
|
470
|
+
* @property {ShipmentReason[]} [reasons]
|
|
486
471
|
*/
|
|
487
472
|
|
|
488
473
|
/**
|
|
489
|
-
* @typedef
|
|
490
|
-
* @property {
|
|
491
|
-
* @property {string} [
|
|
492
|
-
* @property {string} [value]
|
|
474
|
+
* @typedef ProductsReasonsData
|
|
475
|
+
* @property {number} [reason_id]
|
|
476
|
+
* @property {string} [reason_text]
|
|
493
477
|
*/
|
|
494
478
|
|
|
495
479
|
/**
|
|
496
|
-
* @typedef
|
|
497
|
-
* @property {number} [
|
|
498
|
-
* @property {number} [
|
|
499
|
-
* @property {
|
|
480
|
+
* @typedef ProductsReasonsFilters
|
|
481
|
+
* @property {number} [line_number]
|
|
482
|
+
* @property {number} [quantity]
|
|
483
|
+
* @property {string} [identifier]
|
|
500
484
|
*/
|
|
501
485
|
|
|
502
486
|
/**
|
|
503
|
-
* @typedef
|
|
504
|
-
* @property {
|
|
487
|
+
* @typedef ProductsReasons
|
|
488
|
+
* @property {ProductsReasonsData} [data]
|
|
489
|
+
* @property {ProductsReasonsFilters[]} [filters]
|
|
505
490
|
*/
|
|
506
491
|
|
|
507
492
|
/**
|
|
508
|
-
* @typedef
|
|
509
|
-
* @property {
|
|
510
|
-
* @property {string} [
|
|
511
|
-
* @property {string} [gender]
|
|
512
|
-
* @property {string} [last_name]
|
|
513
|
-
* @property {string} [mobile]
|
|
514
|
-
* @property {string} [name]
|
|
493
|
+
* @typedef EntityReasonData
|
|
494
|
+
* @property {number} [reason_id]
|
|
495
|
+
* @property {string} [reason_text]
|
|
515
496
|
*/
|
|
516
497
|
|
|
517
498
|
/**
|
|
518
|
-
* @typedef
|
|
519
|
-
* @property {
|
|
520
|
-
* @property {
|
|
521
|
-
* @property {string} [status]
|
|
499
|
+
* @typedef EntitiesReasons
|
|
500
|
+
* @property {EntityReasonData} [data]
|
|
501
|
+
* @property {Object[]} [filters]
|
|
522
502
|
*/
|
|
523
503
|
|
|
524
504
|
/**
|
|
525
|
-
* @typedef
|
|
526
|
-
* @property {
|
|
505
|
+
* @typedef ReasonsData
|
|
506
|
+
* @property {ProductsReasons[]} [products]
|
|
507
|
+
* @property {EntitiesReasons[]} [entities]
|
|
527
508
|
*/
|
|
528
509
|
|
|
529
510
|
/**
|
|
530
|
-
* @typedef
|
|
531
|
-
* @property {
|
|
532
|
-
* @property {
|
|
511
|
+
* @typedef Products
|
|
512
|
+
* @property {number} [line_number]
|
|
513
|
+
* @property {number} [quantity]
|
|
514
|
+
* @property {string} [identifier]
|
|
533
515
|
*/
|
|
534
516
|
|
|
535
517
|
/**
|
|
536
|
-
* @typedef
|
|
537
|
-
* @property {
|
|
538
|
-
* @property {string} [
|
|
539
|
-
* @property {string} [last_location_recieved_at]
|
|
540
|
-
* @property {string} [reason]
|
|
541
|
-
* @property {string} [shipment_type]
|
|
542
|
-
* @property {string} [status]
|
|
543
|
-
* @property {string} [updated_at]
|
|
544
|
-
* @property {string} [updated_time]
|
|
518
|
+
* @typedef ProductsDataUpdatesFilters
|
|
519
|
+
* @property {number} [line_number]
|
|
520
|
+
* @property {string} [identifier]
|
|
545
521
|
*/
|
|
546
522
|
|
|
547
523
|
/**
|
|
548
|
-
* @typedef
|
|
549
|
-
* @property {
|
|
550
|
-
* @property {
|
|
551
|
-
|
|
524
|
+
* @typedef ProductsDataUpdates
|
|
525
|
+
* @property {Object} [data]
|
|
526
|
+
* @property {ProductsDataUpdatesFilters[]} [filters]
|
|
527
|
+
*/
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @typedef EntitiesDataUpdates
|
|
531
|
+
* @property {Object} [data]
|
|
532
|
+
* @property {Object[]} [filters]
|
|
533
|
+
*/
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @typedef DataUpdates
|
|
537
|
+
* @property {ProductsDataUpdates[]} [products]
|
|
538
|
+
* @property {EntitiesDataUpdates[]} [entities]
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @typedef ShipmentsRequest
|
|
543
|
+
* @property {ReasonsData} [reasons]
|
|
544
|
+
* @property {Products[]} [products]
|
|
545
|
+
* @property {DataUpdates} [data_updates]
|
|
546
|
+
* @property {string} identifier
|
|
547
|
+
*/
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* @typedef StatuesRequest
|
|
551
|
+
* @property {ShipmentsRequest[]} [shipments]
|
|
552
|
+
* @property {string} [exclude_bags_next_state]
|
|
552
553
|
* @property {string} [status]
|
|
553
|
-
* @property {string} [time]
|
|
554
|
-
* @property {NestedTrackingDetails[]} [tracking_details]
|
|
555
|
-
* @property {string} [value]
|
|
556
554
|
*/
|
|
557
555
|
|
|
558
556
|
/**
|
|
559
557
|
* @typedef UpdateShipmentStatusRequest
|
|
560
|
-
* @property {boolean} [force_transition]
|
|
561
|
-
* @property {boolean} [lock_after_transition]
|
|
562
558
|
* @property {StatuesRequest[]} [statuses]
|
|
563
559
|
* @property {boolean} [task]
|
|
560
|
+
* @property {boolean} [lock_after_transition]
|
|
561
|
+
* @property {boolean} [force_transition]
|
|
564
562
|
* @property {boolean} [unlock_before_transition]
|
|
565
563
|
*/
|
|
566
564
|
|
|
567
565
|
/**
|
|
568
|
-
* @typedef
|
|
569
|
-
* @property {
|
|
570
|
-
* @property {string} [first_name]
|
|
571
|
-
* @property {string} [gender]
|
|
572
|
-
* @property {string} [last_name]
|
|
573
|
-
* @property {string} [mobile]
|
|
574
|
-
* @property {string} [name]
|
|
566
|
+
* @typedef StatusesBodyResponse
|
|
567
|
+
* @property {Object[]} [shipments]
|
|
575
568
|
*/
|
|
576
569
|
|
|
577
570
|
/**
|
|
578
|
-
* @typedef
|
|
579
|
-
* @property {
|
|
580
|
-
* @property {string} [request_id]
|
|
571
|
+
* @typedef ShipmentApplicationStatusResponse
|
|
572
|
+
* @property {StatusesBodyResponse[]} [statuses]
|
|
581
573
|
*/
|
|
582
574
|
|
|
583
575
|
/**
|
|
584
|
-
* @typedef
|
|
585
|
-
* @property {
|
|
576
|
+
* @typedef ErrorResponse
|
|
577
|
+
* @property {string} [code]
|
|
578
|
+
* @property {string} [message]
|
|
579
|
+
* @property {number} [status]
|
|
580
|
+
* @property {string} [exception]
|
|
581
|
+
* @property {string} [stack_trace]
|
|
586
582
|
*/
|
|
587
583
|
|
|
588
584
|
class OrderApplicationModel {
|
|
589
|
-
/** @returns {
|
|
590
|
-
static
|
|
591
|
-
return Joi.object({
|
|
592
|
-
message: Joi.string().allow(""),
|
|
593
|
-
success: Joi.boolean(),
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/** @returns {AppliedFreeArticles} */
|
|
598
|
-
static AppliedFreeArticles() {
|
|
599
|
-
return Joi.object({
|
|
600
|
-
article_id: Joi.string().allow(""),
|
|
601
|
-
free_gift_item_details: Joi.any(),
|
|
602
|
-
parent_item_identifier: Joi.string().allow(""),
|
|
603
|
-
quantity: Joi.number(),
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/** @returns {AppliedPromos} */
|
|
608
|
-
static AppliedPromos() {
|
|
585
|
+
/** @returns {OrderPage} */
|
|
586
|
+
static OrderPage() {
|
|
609
587
|
return Joi.object({
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
),
|
|
614
|
-
|
|
615
|
-
mrp_promotion: Joi.boolean(),
|
|
616
|
-
promo_id: Joi.string().allow(""),
|
|
617
|
-
promotion_name: Joi.string().allow(""),
|
|
618
|
-
promotion_type: Joi.string().allow(""),
|
|
588
|
+
type: Joi.string().allow(""),
|
|
589
|
+
item_total: Joi.number(),
|
|
590
|
+
current: Joi.number(),
|
|
591
|
+
size: Joi.number(),
|
|
592
|
+
has_next: Joi.boolean(),
|
|
619
593
|
});
|
|
620
594
|
}
|
|
621
595
|
|
|
622
|
-
/** @returns {
|
|
623
|
-
static
|
|
596
|
+
/** @returns {UserInfo} */
|
|
597
|
+
static UserInfo() {
|
|
624
598
|
return Joi.object({
|
|
625
|
-
|
|
599
|
+
first_name: Joi.string().allow(""),
|
|
600
|
+
gender: Joi.string().allow(""),
|
|
601
|
+
name: Joi.string().allow(""),
|
|
602
|
+
last_name: Joi.string().allow(""),
|
|
603
|
+
mobile: Joi.string().allow(""),
|
|
604
|
+
email: Joi.string().allow(""),
|
|
626
605
|
});
|
|
627
606
|
}
|
|
628
607
|
|
|
629
|
-
/** @returns {
|
|
630
|
-
static
|
|
631
|
-
return Joi.object({
|
|
632
|
-
display_name: Joi.string().allow(""),
|
|
633
|
-
id: Joi.number(),
|
|
634
|
-
meta: OrderApplicationModel.BagReasonMeta(),
|
|
635
|
-
qc_type: Joi.array().items(Joi.string().allow("")),
|
|
636
|
-
question_set: Joi.array().items(OrderApplicationModel.QuestionSet()),
|
|
637
|
-
reasons: Joi.array().items(Joi.link("#BagReasons")),
|
|
638
|
-
}).id("BagReasons");
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
/** @returns {Bags} */
|
|
642
|
-
static Bags() {
|
|
608
|
+
/** @returns {BreakupValues} */
|
|
609
|
+
static BreakupValues() {
|
|
643
610
|
return Joi.object({
|
|
644
|
-
|
|
645
|
-
can_cancel: Joi.boolean(),
|
|
646
|
-
can_return: Joi.boolean(),
|
|
647
|
-
currency_code: Joi.string().allow(""),
|
|
611
|
+
value: Joi.number(),
|
|
648
612
|
currency_symbol: Joi.string().allow(""),
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
OrderApplicationModel.FinancialBreakup()
|
|
653
|
-
),
|
|
654
|
-
id: Joi.number(),
|
|
655
|
-
item: OrderApplicationModel.Item(),
|
|
656
|
-
line_number: Joi.number(),
|
|
657
|
-
meta: Joi.any(),
|
|
658
|
-
parent_promo_bags: Joi.any(),
|
|
659
|
-
prices: OrderApplicationModel.Prices(),
|
|
660
|
-
quantity: Joi.number(),
|
|
661
|
-
returnable_date: Joi.string().allow("").allow(null),
|
|
662
|
-
seller_identifier: Joi.string().allow(""),
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
/** @returns {BagsForReorder} */
|
|
667
|
-
static BagsForReorder() {
|
|
668
|
-
return Joi.object({
|
|
669
|
-
article_assignment: OrderApplicationModel.BagsForReorderArticleAssignment(),
|
|
670
|
-
item_id: Joi.number(),
|
|
671
|
-
item_size: Joi.string().allow(""),
|
|
672
|
-
quantity: Joi.number(),
|
|
673
|
-
seller_id: Joi.number(),
|
|
674
|
-
store_id: Joi.number(),
|
|
613
|
+
name: Joi.string().allow(""),
|
|
614
|
+
display: Joi.string().allow(""),
|
|
615
|
+
currency_code: Joi.string().allow(""),
|
|
675
616
|
});
|
|
676
617
|
}
|
|
677
618
|
|
|
678
|
-
/** @returns {
|
|
679
|
-
static
|
|
619
|
+
/** @returns {ShipmentPayment} */
|
|
620
|
+
static ShipmentPayment() {
|
|
680
621
|
return Joi.object({
|
|
681
|
-
|
|
682
|
-
|
|
622
|
+
mop: Joi.string().allow(""),
|
|
623
|
+
payment_mode: Joi.string().allow(""),
|
|
624
|
+
status: Joi.string().allow(""),
|
|
625
|
+
mode: Joi.string().allow(""),
|
|
626
|
+
logo: Joi.string().allow(""),
|
|
627
|
+
display_name: Joi.string().allow(""),
|
|
683
628
|
});
|
|
684
629
|
}
|
|
685
630
|
|
|
686
|
-
/** @returns {
|
|
687
|
-
static
|
|
631
|
+
/** @returns {ShipmentUserInfo} */
|
|
632
|
+
static ShipmentUserInfo() {
|
|
688
633
|
return Joi.object({
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
display: Joi.string().allow(""),
|
|
634
|
+
first_name: Joi.string().allow(""),
|
|
635
|
+
gender: Joi.string().allow(""),
|
|
692
636
|
name: Joi.string().allow(""),
|
|
693
|
-
|
|
637
|
+
last_name: Joi.string().allow(""),
|
|
638
|
+
mobile: Joi.string().allow(""),
|
|
639
|
+
email: Joi.string().allow(""),
|
|
694
640
|
});
|
|
695
641
|
}
|
|
696
642
|
|
|
697
|
-
/** @returns {
|
|
698
|
-
static
|
|
643
|
+
/** @returns {FulfillingStore} */
|
|
644
|
+
static FulfillingStore() {
|
|
699
645
|
return Joi.object({
|
|
700
|
-
|
|
646
|
+
id: Joi.number(),
|
|
647
|
+
code: Joi.string().allow(""),
|
|
701
648
|
name: Joi.string().allow(""),
|
|
702
|
-
|
|
703
|
-
|
|
649
|
+
company_name: Joi.string().allow(""),
|
|
650
|
+
company_id: Joi.number(),
|
|
704
651
|
});
|
|
705
652
|
}
|
|
706
653
|
|
|
707
|
-
/** @returns {
|
|
708
|
-
static
|
|
654
|
+
/** @returns {ShipmentStatus} */
|
|
655
|
+
static ShipmentStatus() {
|
|
709
656
|
return Joi.object({
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
phone: Joi.string().allow(""),
|
|
714
|
-
shipment_id: Joi.string().allow(""),
|
|
657
|
+
value: Joi.string().allow("").allow(null),
|
|
658
|
+
title: Joi.string().allow(""),
|
|
659
|
+
hex_code: Joi.string().allow(""),
|
|
715
660
|
});
|
|
716
661
|
}
|
|
717
662
|
|
|
718
|
-
/** @returns {
|
|
719
|
-
static
|
|
663
|
+
/** @returns {Invoice} */
|
|
664
|
+
static Invoice() {
|
|
720
665
|
return Joi.object({
|
|
721
|
-
|
|
722
|
-
|
|
666
|
+
invoice_url: Joi.string().allow(""),
|
|
667
|
+
updated_date: Joi.string().allow(""),
|
|
668
|
+
label_url: Joi.string().allow(""),
|
|
723
669
|
});
|
|
724
670
|
}
|
|
725
671
|
|
|
726
|
-
/** @returns {
|
|
727
|
-
static
|
|
672
|
+
/** @returns {NestedTrackingDetails} */
|
|
673
|
+
static NestedTrackingDetails() {
|
|
728
674
|
return Joi.object({
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
address2: Joi.string().allow(""),
|
|
734
|
-
area: Joi.string().allow(""),
|
|
735
|
-
city: Joi.string().allow(""),
|
|
736
|
-
contact_person: Joi.string().allow(""),
|
|
737
|
-
country: Joi.string().allow(""),
|
|
738
|
-
country_iso_code: Joi.string().allow(""),
|
|
739
|
-
country_phone_code: Joi.string().allow(""),
|
|
740
|
-
created_at: Joi.string().allow(""),
|
|
741
|
-
display_address: Joi.string().allow(""),
|
|
742
|
-
email: Joi.string().allow(""),
|
|
743
|
-
landmark: Joi.string().allow(""),
|
|
744
|
-
latitude: Joi.number().allow(null),
|
|
745
|
-
longitude: Joi.number().allow(null),
|
|
746
|
-
name: Joi.string().allow(""),
|
|
747
|
-
phone: Joi.string().allow(""),
|
|
748
|
-
pincode: Joi.string().allow(""),
|
|
749
|
-
state: Joi.string().allow(""),
|
|
750
|
-
updated_at: Joi.string().allow(""),
|
|
751
|
-
version: Joi.string().allow(""),
|
|
675
|
+
is_passed: Joi.boolean(),
|
|
676
|
+
time: Joi.string().allow(""),
|
|
677
|
+
is_current: Joi.boolean(),
|
|
678
|
+
status: Joi.string().allow(""),
|
|
752
679
|
});
|
|
753
680
|
}
|
|
754
681
|
|
|
755
|
-
/** @returns {
|
|
756
|
-
static
|
|
682
|
+
/** @returns {TrackingDetails} */
|
|
683
|
+
static TrackingDetails() {
|
|
757
684
|
return Joi.object({
|
|
758
|
-
|
|
759
|
-
|
|
685
|
+
value: Joi.string().allow("").allow(null),
|
|
686
|
+
is_current: Joi.boolean(),
|
|
687
|
+
is_passed: Joi.boolean(),
|
|
688
|
+
status: Joi.string().allow(""),
|
|
689
|
+
time: Joi.string().allow(""),
|
|
690
|
+
tracking_details: Joi.array().items(
|
|
691
|
+
OrderApplicationModel.NestedTrackingDetails()
|
|
692
|
+
),
|
|
760
693
|
});
|
|
761
694
|
}
|
|
762
695
|
|
|
763
|
-
/** @returns {
|
|
764
|
-
static
|
|
696
|
+
/** @returns {TimeStampData} */
|
|
697
|
+
static TimeStampData() {
|
|
765
698
|
return Joi.object({
|
|
766
|
-
|
|
767
|
-
|
|
699
|
+
min: Joi.string().allow(""),
|
|
700
|
+
max: Joi.string().allow(""),
|
|
768
701
|
});
|
|
769
702
|
}
|
|
770
703
|
|
|
771
|
-
/** @returns {
|
|
772
|
-
static
|
|
704
|
+
/** @returns {Promise} */
|
|
705
|
+
static Promise() {
|
|
773
706
|
return Joi.object({
|
|
774
|
-
|
|
775
|
-
|
|
707
|
+
show_promise: Joi.boolean(),
|
|
708
|
+
timestamp: OrderApplicationModel.TimeStampData(),
|
|
776
709
|
});
|
|
777
710
|
}
|
|
778
711
|
|
|
779
|
-
/** @returns {
|
|
780
|
-
static
|
|
712
|
+
/** @returns {ShipmentTotalDetails} */
|
|
713
|
+
static ShipmentTotalDetails() {
|
|
781
714
|
return Joi.object({
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
stack_trace: Joi.string().allow("").allow(null),
|
|
786
|
-
status: Joi.number(),
|
|
715
|
+
pieces: Joi.number(),
|
|
716
|
+
total_price: Joi.number(),
|
|
717
|
+
sizes: Joi.number(),
|
|
787
718
|
});
|
|
788
719
|
}
|
|
789
720
|
|
|
790
|
-
/** @returns {
|
|
791
|
-
static
|
|
721
|
+
/** @returns {Prices} */
|
|
722
|
+
static Prices() {
|
|
792
723
|
return Joi.object({
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
amount_paid_roundoff: Joi.number(),
|
|
724
|
+
delivery_charge: Joi.number(),
|
|
725
|
+
coupon_value: Joi.number(),
|
|
796
726
|
brand_calculated_amount: Joi.number(),
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
cod_charges: Joi.number(),
|
|
727
|
+
value_of_good: Joi.number(),
|
|
728
|
+
price_marked: Joi.number(),
|
|
800
729
|
coupon_effective_discount: Joi.number(),
|
|
801
|
-
|
|
802
|
-
delivery_charge: Joi.number(),
|
|
730
|
+
currency_symbol: Joi.string().allow(""),
|
|
803
731
|
discount: Joi.number(),
|
|
804
|
-
fynd_credits: Joi.number(),
|
|
805
|
-
gst_fee: Joi.number(),
|
|
806
|
-
gst_tag: Joi.string().allow(""),
|
|
807
732
|
gst_tax_percentage: Joi.number(),
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
733
|
+
cod_charges: Joi.number(),
|
|
734
|
+
amount_paid: Joi.number(),
|
|
735
|
+
added_to_fynd_cash: Joi.boolean(),
|
|
736
|
+
transfer_price: Joi.number(),
|
|
737
|
+
cashback_applied: Joi.number(),
|
|
811
738
|
price_effective: Joi.number(),
|
|
812
|
-
|
|
739
|
+
cashback: Joi.number(),
|
|
740
|
+
refund_credit: Joi.number(),
|
|
741
|
+
amount_paid_roundoff: Joi.number(),
|
|
813
742
|
promotion_effective_discount: Joi.number(),
|
|
814
743
|
refund_amount: Joi.number(),
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
total_units: Joi.number(),
|
|
818
|
-
transfer_price: Joi.number(),
|
|
819
|
-
value_of_good: Joi.number(),
|
|
744
|
+
currency_code: Joi.string().allow(""),
|
|
745
|
+
fynd_credits: Joi.number(),
|
|
820
746
|
});
|
|
821
747
|
}
|
|
822
748
|
|
|
823
|
-
/** @returns {
|
|
824
|
-
static
|
|
749
|
+
/** @returns {ItemBrand} */
|
|
750
|
+
static ItemBrand() {
|
|
825
751
|
return Joi.object({
|
|
826
|
-
|
|
752
|
+
logo: Joi.string().allow(""),
|
|
827
753
|
name: Joi.string().allow(""),
|
|
828
754
|
});
|
|
829
755
|
}
|
|
830
756
|
|
|
831
|
-
/** @returns {
|
|
832
|
-
static
|
|
757
|
+
/** @returns {Item} */
|
|
758
|
+
static Item() {
|
|
833
759
|
return Joi.object({
|
|
760
|
+
image: Joi.array().items(Joi.string().allow("")),
|
|
761
|
+
l1_categories: Joi.array().items(Joi.string().allow("")),
|
|
762
|
+
brand: OrderApplicationModel.ItemBrand(),
|
|
763
|
+
seller_identifier: Joi.string().allow(""),
|
|
834
764
|
code: Joi.string().allow(""),
|
|
835
|
-
company_id: Joi.number(),
|
|
836
|
-
company_name: Joi.string().allow(""),
|
|
837
765
|
id: Joi.number(),
|
|
838
766
|
name: Joi.string().allow(""),
|
|
767
|
+
l3_category_name: Joi.string().allow(""),
|
|
768
|
+
slug_key: Joi.string().allow(""),
|
|
769
|
+
l2_categories: Joi.array().items(Joi.string().allow("")),
|
|
770
|
+
size: Joi.string().allow(""),
|
|
771
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** @returns {AppliedFreeArticles} */
|
|
776
|
+
static AppliedFreeArticles() {
|
|
777
|
+
return Joi.object({
|
|
778
|
+
article_id: Joi.string().allow(""),
|
|
779
|
+
free_gift_item_details: Joi.any(),
|
|
780
|
+
parent_item_identifier: Joi.string().allow(""),
|
|
781
|
+
quantity: Joi.number(),
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/** @returns {AppliedPromos} */
|
|
786
|
+
static AppliedPromos() {
|
|
787
|
+
return Joi.object({
|
|
788
|
+
mrp_promotion: Joi.boolean(),
|
|
789
|
+
promotion_name: Joi.string().allow(""),
|
|
790
|
+
article_quantity: Joi.number(),
|
|
791
|
+
promo_id: Joi.string().allow(""),
|
|
792
|
+
amount: Joi.number(),
|
|
793
|
+
promotion_type: Joi.string().allow(""),
|
|
794
|
+
applied_free_articles: Joi.array().items(
|
|
795
|
+
OrderApplicationModel.AppliedFreeArticles()
|
|
796
|
+
),
|
|
839
797
|
});
|
|
840
798
|
}
|
|
841
799
|
|
|
@@ -847,279 +805,347 @@ class OrderApplicationModel {
|
|
|
847
805
|
});
|
|
848
806
|
}
|
|
849
807
|
|
|
850
|
-
/** @returns {
|
|
851
|
-
static
|
|
808
|
+
/** @returns {FinancialBreakup} */
|
|
809
|
+
static FinancialBreakup() {
|
|
852
810
|
return Joi.object({
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
811
|
+
coupon_value: Joi.number(),
|
|
812
|
+
delivery_charge: Joi.number(),
|
|
813
|
+
brand_calculated_amount: Joi.number(),
|
|
814
|
+
value_of_good: Joi.number(),
|
|
815
|
+
price_marked: Joi.number(),
|
|
816
|
+
coupon_effective_discount: Joi.number(),
|
|
817
|
+
hsn_code: Joi.string().allow(""),
|
|
818
|
+
discount: Joi.number(),
|
|
819
|
+
gst_tax_percentage: Joi.number(),
|
|
820
|
+
cod_charges: Joi.number(),
|
|
821
|
+
amount_paid: Joi.number(),
|
|
822
|
+
added_to_fynd_cash: Joi.boolean(),
|
|
823
|
+
size: Joi.string().allow(""),
|
|
824
|
+
transfer_price: Joi.number(),
|
|
825
|
+
cashback_applied: Joi.number(),
|
|
826
|
+
price_effective: Joi.number(),
|
|
827
|
+
cashback: Joi.number(),
|
|
828
|
+
refund_credit: Joi.number(),
|
|
829
|
+
amount_paid_roundoff: Joi.number(),
|
|
830
|
+
total_units: Joi.number(),
|
|
831
|
+
identifiers: OrderApplicationModel.Identifiers(),
|
|
832
|
+
gst_tag: Joi.string().allow(""),
|
|
833
|
+
item_name: Joi.string().allow(""),
|
|
834
|
+
promotion_effective_discount: Joi.number(),
|
|
835
|
+
gst_fee: Joi.number(),
|
|
836
|
+
refund_amount: Joi.number(),
|
|
837
|
+
fynd_credits: Joi.number(),
|
|
856
838
|
});
|
|
857
839
|
}
|
|
858
840
|
|
|
859
|
-
/** @returns {
|
|
860
|
-
static
|
|
841
|
+
/** @returns {CurrentStatus} */
|
|
842
|
+
static CurrentStatus() {
|
|
861
843
|
return Joi.object({
|
|
862
|
-
|
|
863
|
-
brand: OrderApplicationModel.ItemBrand(),
|
|
864
|
-
code: Joi.string().allow(""),
|
|
865
|
-
id: Joi.number(),
|
|
866
|
-
image: Joi.array().items(Joi.string().allow("")),
|
|
867
|
-
l1_categories: Joi.array().items(Joi.string().allow("")),
|
|
868
|
-
l2_categories: Joi.array().items(Joi.string().allow("")),
|
|
869
|
-
l3_category_name: Joi.string().allow(""),
|
|
844
|
+
updated_at: Joi.string().allow(""),
|
|
870
845
|
name: Joi.string().allow(""),
|
|
846
|
+
status: Joi.string().allow(""),
|
|
847
|
+
journey_type: Joi.string().allow("").allow(null),
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/** @returns {Bags} */
|
|
852
|
+
static Bags() {
|
|
853
|
+
return Joi.object({
|
|
854
|
+
delivery_date: Joi.string().allow("").allow(null),
|
|
855
|
+
line_number: Joi.number(),
|
|
856
|
+
currency_symbol: Joi.string().allow(""),
|
|
857
|
+
item: OrderApplicationModel.Item(),
|
|
858
|
+
applied_promos: Joi.array().items(OrderApplicationModel.AppliedPromos()),
|
|
859
|
+
quantity: Joi.number(),
|
|
860
|
+
prices: OrderApplicationModel.Prices(),
|
|
861
|
+
can_cancel: Joi.boolean(),
|
|
862
|
+
can_return: Joi.boolean(),
|
|
863
|
+
id: Joi.number(),
|
|
864
|
+
returnable_date: Joi.string().allow("").allow(null),
|
|
865
|
+
financial_breakup: Joi.array().items(
|
|
866
|
+
OrderApplicationModel.FinancialBreakup()
|
|
867
|
+
),
|
|
868
|
+
parent_promo_bags: Joi.any(),
|
|
869
|
+
meta: Joi.any(),
|
|
870
|
+
currency_code: Joi.string().allow(""),
|
|
871
871
|
seller_identifier: Joi.string().allow(""),
|
|
872
|
-
|
|
873
|
-
slug_key: Joi.string().allow(""),
|
|
872
|
+
current_status: OrderApplicationModel.CurrentStatus(),
|
|
874
873
|
});
|
|
875
874
|
}
|
|
876
875
|
|
|
877
|
-
/** @returns {
|
|
878
|
-
static
|
|
876
|
+
/** @returns {FulfillingCompany} */
|
|
877
|
+
static FulfillingCompany() {
|
|
879
878
|
return Joi.object({
|
|
880
|
-
|
|
879
|
+
id: Joi.number(),
|
|
881
880
|
name: Joi.string().allow(""),
|
|
882
881
|
});
|
|
883
882
|
}
|
|
884
883
|
|
|
885
|
-
/** @returns {
|
|
886
|
-
static
|
|
887
|
-
return Joi.object({
|
|
888
|
-
is_current: Joi.boolean(),
|
|
889
|
-
is_passed: Joi.boolean(),
|
|
890
|
-
status: Joi.string().allow(""),
|
|
891
|
-
time: Joi.string().allow(""),
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
/** @returns {OrderById} */
|
|
896
|
-
static OrderById() {
|
|
884
|
+
/** @returns {DeliveryAddress} */
|
|
885
|
+
static DeliveryAddress() {
|
|
897
886
|
return Joi.object({
|
|
898
|
-
|
|
887
|
+
pincode: Joi.string().allow(""),
|
|
888
|
+
phone: Joi.string().allow(""),
|
|
889
|
+
latitude: Joi.number().allow(null),
|
|
890
|
+
address2: Joi.string().allow(""),
|
|
891
|
+
landmark: Joi.string().allow(""),
|
|
892
|
+
area: Joi.string().allow(""),
|
|
893
|
+
city: Joi.string().allow(""),
|
|
894
|
+
address: Joi.string().allow(""),
|
|
895
|
+
address_type: Joi.string().allow(""),
|
|
896
|
+
longitude: Joi.number().allow(null),
|
|
897
|
+
country_iso_code: Joi.string().allow(""),
|
|
898
|
+
state: Joi.string().allow(""),
|
|
899
|
+
created_at: Joi.string().allow(""),
|
|
900
|
+
address1: Joi.string().allow(""),
|
|
901
|
+
name: Joi.string().allow(""),
|
|
902
|
+
contact_person: Joi.string().allow(""),
|
|
903
|
+
address_category: Joi.string().allow(""),
|
|
904
|
+
email: Joi.string().allow(""),
|
|
905
|
+
country_phone_code: Joi.string().allow(""),
|
|
906
|
+
version: Joi.string().allow(""),
|
|
907
|
+
updated_at: Joi.string().allow(""),
|
|
908
|
+
country: Joi.string().allow(""),
|
|
899
909
|
});
|
|
900
910
|
}
|
|
901
911
|
|
|
902
|
-
/** @returns {
|
|
903
|
-
static
|
|
912
|
+
/** @returns {Shipments} */
|
|
913
|
+
static Shipments() {
|
|
904
914
|
return Joi.object({
|
|
905
|
-
|
|
915
|
+
payment: OrderApplicationModel.ShipmentPayment(),
|
|
916
|
+
order_type: Joi.string().allow("").allow(null),
|
|
917
|
+
show_download_invoice: Joi.boolean(),
|
|
918
|
+
can_cancel: Joi.boolean(),
|
|
919
|
+
user_info: OrderApplicationModel.ShipmentUserInfo(),
|
|
920
|
+
shipment_id: Joi.string().allow(""),
|
|
921
|
+
fulfilling_store: OrderApplicationModel.FulfillingStore(),
|
|
922
|
+
custom_meta: Joi.array().items(Joi.any()),
|
|
923
|
+
shipment_status: OrderApplicationModel.ShipmentStatus(),
|
|
924
|
+
comment: Joi.string().allow(""),
|
|
925
|
+
invoice: OrderApplicationModel.Invoice(),
|
|
926
|
+
show_track_link: Joi.boolean(),
|
|
927
|
+
refund_details: Joi.any(),
|
|
928
|
+
breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
|
|
929
|
+
can_break: Joi.any(),
|
|
930
|
+
traking_no: Joi.string().allow(""),
|
|
931
|
+
tracking_details: Joi.array().items(
|
|
932
|
+
OrderApplicationModel.TrackingDetails()
|
|
933
|
+
),
|
|
934
|
+
promise: OrderApplicationModel.Promise(),
|
|
935
|
+
total_bags: Joi.number(),
|
|
936
|
+
total_details: OrderApplicationModel.ShipmentTotalDetails(),
|
|
937
|
+
prices: OrderApplicationModel.Prices(),
|
|
938
|
+
returnable_date: Joi.string().allow("").allow(null),
|
|
939
|
+
shipment_created_at: Joi.string().allow(""),
|
|
940
|
+
size_info: Joi.any(),
|
|
941
|
+
bags: Joi.array().items(OrderApplicationModel.Bags()),
|
|
942
|
+
dp_name: Joi.string().allow(""),
|
|
943
|
+
awb_no: Joi.string().allow(""),
|
|
944
|
+
beneficiary_details: Joi.boolean(),
|
|
945
|
+
fulfilling_company: OrderApplicationModel.FulfillingCompany(),
|
|
946
|
+
can_return: Joi.boolean(),
|
|
947
|
+
delivery_address: OrderApplicationModel.DeliveryAddress(),
|
|
948
|
+
track_url: Joi.string().allow(""),
|
|
949
|
+
order_id: Joi.string().allow(""),
|
|
950
|
+
need_help_url: Joi.string().allow(""),
|
|
951
|
+
return_meta: Joi.any(),
|
|
952
|
+
delivery_date: Joi.string().allow("").allow(null),
|
|
906
953
|
});
|
|
907
954
|
}
|
|
908
955
|
|
|
909
|
-
/** @returns {
|
|
910
|
-
static
|
|
956
|
+
/** @returns {BagsForReorderArticleAssignment} */
|
|
957
|
+
static BagsForReorderArticleAssignment() {
|
|
911
958
|
return Joi.object({
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
page: OrderApplicationModel.OrderPage(),
|
|
959
|
+
strategy: Joi.string().allow(""),
|
|
960
|
+
level: Joi.string().allow(""),
|
|
915
961
|
});
|
|
916
962
|
}
|
|
917
963
|
|
|
918
|
-
/** @returns {
|
|
919
|
-
static
|
|
964
|
+
/** @returns {BagsForReorder} */
|
|
965
|
+
static BagsForReorder() {
|
|
920
966
|
return Joi.object({
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
967
|
+
item_size: Joi.string().allow(""),
|
|
968
|
+
quantity: Joi.number(),
|
|
969
|
+
store_id: Joi.number(),
|
|
970
|
+
article_assignment: OrderApplicationModel.BagsForReorderArticleAssignment(),
|
|
971
|
+
seller_id: Joi.number(),
|
|
972
|
+
item_id: Joi.number(),
|
|
926
973
|
});
|
|
927
974
|
}
|
|
928
975
|
|
|
929
976
|
/** @returns {OrderSchema} */
|
|
930
977
|
static OrderSchema() {
|
|
931
978
|
return Joi.object({
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
),
|
|
979
|
+
total_shipments_in_order: Joi.number(),
|
|
980
|
+
user_info: OrderApplicationModel.UserInfo(),
|
|
935
981
|
breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
|
|
936
982
|
order_created_time: Joi.string().allow(""),
|
|
937
|
-
order_created_ts: Joi.string().allow(""),
|
|
938
983
|
order_id: Joi.string().allow(""),
|
|
939
984
|
shipments: Joi.array().items(OrderApplicationModel.Shipments()),
|
|
940
|
-
|
|
941
|
-
|
|
985
|
+
bags_for_reorder: Joi.array().items(
|
|
986
|
+
OrderApplicationModel.BagsForReorder()
|
|
987
|
+
),
|
|
942
988
|
});
|
|
943
989
|
}
|
|
944
990
|
|
|
945
991
|
/** @returns {OrderStatuses} */
|
|
946
992
|
static OrderStatuses() {
|
|
947
993
|
return Joi.object({
|
|
948
|
-
display: Joi.string().allow(""),
|
|
949
|
-
is_selected: Joi.boolean(),
|
|
950
994
|
value: Joi.number(),
|
|
995
|
+
is_selected: Joi.boolean(),
|
|
996
|
+
display: Joi.string().allow(""),
|
|
951
997
|
});
|
|
952
998
|
}
|
|
953
999
|
|
|
954
|
-
/** @returns {
|
|
955
|
-
static
|
|
956
|
-
return Joi.object({
|
|
957
|
-
added_to_fynd_cash: Joi.boolean(),
|
|
958
|
-
amount_paid: Joi.number(),
|
|
959
|
-
amount_paid_roundoff: Joi.number(),
|
|
960
|
-
brand_calculated_amount: Joi.number(),
|
|
961
|
-
cashback: Joi.number(),
|
|
962
|
-
cashback_applied: Joi.number(),
|
|
963
|
-
cod_charges: Joi.number(),
|
|
964
|
-
coupon_effective_discount: Joi.number(),
|
|
965
|
-
coupon_value: Joi.number(),
|
|
966
|
-
currency_code: Joi.string().allow(""),
|
|
967
|
-
currency_symbol: Joi.string().allow(""),
|
|
968
|
-
delivery_charge: Joi.number(),
|
|
969
|
-
discount: Joi.number(),
|
|
970
|
-
fynd_credits: Joi.number(),
|
|
971
|
-
gst_tax_percentage: Joi.number(),
|
|
972
|
-
price_effective: Joi.number(),
|
|
973
|
-
price_marked: Joi.number(),
|
|
974
|
-
promotion_effective_discount: Joi.number(),
|
|
975
|
-
refund_amount: Joi.number(),
|
|
976
|
-
refund_credit: Joi.number(),
|
|
977
|
-
transfer_price: Joi.number(),
|
|
978
|
-
value_of_good: Joi.number(),
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
/** @returns {Products} */
|
|
983
|
-
static Products() {
|
|
984
|
-
return Joi.object({
|
|
985
|
-
identifier: Joi.string().allow(""),
|
|
986
|
-
line_number: Joi.number(),
|
|
987
|
-
quantity: Joi.number(),
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
/** @returns {ProductsDataUpdates} */
|
|
992
|
-
static ProductsDataUpdates() {
|
|
1000
|
+
/** @returns {OrderFilters} */
|
|
1001
|
+
static OrderFilters() {
|
|
993
1002
|
return Joi.object({
|
|
994
|
-
|
|
995
|
-
filters: Joi.array().items(
|
|
996
|
-
OrderApplicationModel.ProductsDataUpdatesFilters()
|
|
997
|
-
),
|
|
1003
|
+
statuses: Joi.array().items(OrderApplicationModel.OrderStatuses()),
|
|
998
1004
|
});
|
|
999
1005
|
}
|
|
1000
1006
|
|
|
1001
|
-
/** @returns {
|
|
1002
|
-
static
|
|
1007
|
+
/** @returns {OrderList} */
|
|
1008
|
+
static OrderList() {
|
|
1003
1009
|
return Joi.object({
|
|
1004
|
-
|
|
1005
|
-
|
|
1010
|
+
page: OrderApplicationModel.OrderPage(),
|
|
1011
|
+
items: Joi.array().items(OrderApplicationModel.OrderSchema()),
|
|
1012
|
+
filters: OrderApplicationModel.OrderFilters(),
|
|
1006
1013
|
});
|
|
1007
1014
|
}
|
|
1008
1015
|
|
|
1009
|
-
/** @returns {
|
|
1010
|
-
static
|
|
1016
|
+
/** @returns {ApefaceApiError} */
|
|
1017
|
+
static ApefaceApiError() {
|
|
1011
1018
|
return Joi.object({
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
OrderApplicationModel.ProductsReasonsFilters()
|
|
1015
|
-
),
|
|
1019
|
+
message: Joi.string().allow(""),
|
|
1020
|
+
success: Joi.boolean(),
|
|
1016
1021
|
});
|
|
1017
1022
|
}
|
|
1018
1023
|
|
|
1019
|
-
/** @returns {
|
|
1020
|
-
static
|
|
1024
|
+
/** @returns {OrderById} */
|
|
1025
|
+
static OrderById() {
|
|
1021
1026
|
return Joi.object({
|
|
1022
|
-
|
|
1023
|
-
reason_text: Joi.string().allow(""),
|
|
1027
|
+
order: OrderApplicationModel.OrderSchema(),
|
|
1024
1028
|
});
|
|
1025
1029
|
}
|
|
1026
1030
|
|
|
1027
|
-
/** @returns {
|
|
1028
|
-
static
|
|
1031
|
+
/** @returns {ShipmentById} */
|
|
1032
|
+
static ShipmentById() {
|
|
1029
1033
|
return Joi.object({
|
|
1030
|
-
|
|
1031
|
-
line_number: Joi.number(),
|
|
1032
|
-
quantity: Joi.number(),
|
|
1034
|
+
shipment: OrderApplicationModel.Shipments(),
|
|
1033
1035
|
});
|
|
1034
1036
|
}
|
|
1035
1037
|
|
|
1036
|
-
/** @returns {
|
|
1037
|
-
static
|
|
1038
|
+
/** @returns {ResponseGetInvoiceShipment} */
|
|
1039
|
+
static ResponseGetInvoiceShipment() {
|
|
1038
1040
|
return Joi.object({
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
+
presigned_type: Joi.string().allow("").required(),
|
|
1042
|
+
success: Joi.boolean().required(),
|
|
1043
|
+
shipment_id: Joi.string().allow("").required(),
|
|
1044
|
+
presigned_url: Joi.string().allow("").required(),
|
|
1041
1045
|
});
|
|
1042
1046
|
}
|
|
1043
1047
|
|
|
1044
|
-
/** @returns {
|
|
1045
|
-
static
|
|
1048
|
+
/** @returns {Track} */
|
|
1049
|
+
static Track() {
|
|
1046
1050
|
return Joi.object({
|
|
1047
|
-
|
|
1048
|
-
|
|
1051
|
+
account_name: Joi.string().allow(""),
|
|
1052
|
+
shipment_type: Joi.string().allow(""),
|
|
1053
|
+
status: Joi.string().allow(""),
|
|
1054
|
+
last_location_recieved_at: Joi.string().allow(""),
|
|
1055
|
+
updated_time: Joi.string().allow(""),
|
|
1056
|
+
updated_at: Joi.string().allow(""),
|
|
1057
|
+
reason: Joi.string().allow(""),
|
|
1058
|
+
awb: Joi.string().allow(""),
|
|
1049
1059
|
});
|
|
1050
1060
|
}
|
|
1051
1061
|
|
|
1052
|
-
/** @returns {
|
|
1053
|
-
static
|
|
1062
|
+
/** @returns {ShipmentTrack} */
|
|
1063
|
+
static ShipmentTrack() {
|
|
1054
1064
|
return Joi.object({
|
|
1055
|
-
|
|
1056
|
-
products: Joi.array().items(OrderApplicationModel.ProductsReasons()),
|
|
1065
|
+
results: Joi.array().items(OrderApplicationModel.Track()),
|
|
1057
1066
|
});
|
|
1058
1067
|
}
|
|
1059
1068
|
|
|
1060
|
-
/** @returns {
|
|
1061
|
-
static
|
|
1069
|
+
/** @returns {CustomerDetailsResponse} */
|
|
1070
|
+
static CustomerDetailsResponse() {
|
|
1062
1071
|
return Joi.object({
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1072
|
+
phone: Joi.string().allow(""),
|
|
1073
|
+
shipment_id: Joi.string().allow(""),
|
|
1074
|
+
name: Joi.string().allow(""),
|
|
1075
|
+
order_id: Joi.string().allow(""),
|
|
1076
|
+
country: Joi.string().allow(""),
|
|
1067
1077
|
});
|
|
1068
1078
|
}
|
|
1069
1079
|
|
|
1070
1080
|
/** @returns {SendOtpToCustomerResponse} */
|
|
1071
1081
|
static SendOtpToCustomerResponse() {
|
|
1072
1082
|
return Joi.object({
|
|
1073
|
-
message: Joi.string().allow(""),
|
|
1074
1083
|
request_id: Joi.string().allow(""),
|
|
1075
|
-
|
|
1084
|
+
message: Joi.string().allow(""),
|
|
1076
1085
|
success: Joi.boolean(),
|
|
1086
|
+
resend_timer: Joi.number(),
|
|
1077
1087
|
});
|
|
1078
1088
|
}
|
|
1079
1089
|
|
|
1080
|
-
/** @returns {
|
|
1081
|
-
static
|
|
1090
|
+
/** @returns {VerifyOtp} */
|
|
1091
|
+
static VerifyOtp() {
|
|
1082
1092
|
return Joi.object({
|
|
1083
|
-
|
|
1093
|
+
otp_code: Joi.string().allow(""),
|
|
1094
|
+
request_id: Joi.string().allow(""),
|
|
1084
1095
|
});
|
|
1085
1096
|
}
|
|
1086
1097
|
|
|
1087
|
-
/** @returns {
|
|
1088
|
-
static
|
|
1098
|
+
/** @returns {VerifyOtpResponse} */
|
|
1099
|
+
static VerifyOtpResponse() {
|
|
1089
1100
|
return Joi.object({
|
|
1090
|
-
reasons: Joi.array().items(OrderApplicationModel.BagReasons()),
|
|
1091
1101
|
success: Joi.boolean(),
|
|
1092
1102
|
});
|
|
1093
1103
|
}
|
|
1094
1104
|
|
|
1095
|
-
/** @returns {
|
|
1096
|
-
static
|
|
1105
|
+
/** @returns {BagReasonMeta} */
|
|
1106
|
+
static BagReasonMeta() {
|
|
1097
1107
|
return Joi.object({
|
|
1098
|
-
|
|
1108
|
+
show_text_area: Joi.boolean(),
|
|
1099
1109
|
});
|
|
1100
1110
|
}
|
|
1101
1111
|
|
|
1102
|
-
/** @returns {
|
|
1103
|
-
static
|
|
1112
|
+
/** @returns {QuestionSet} */
|
|
1113
|
+
static QuestionSet() {
|
|
1104
1114
|
return Joi.object({
|
|
1115
|
+
id: Joi.number(),
|
|
1105
1116
|
display_name: Joi.string().allow(""),
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
/** @returns {BagReasons} */
|
|
1121
|
+
static BagReasons() {
|
|
1122
|
+
return Joi.object({
|
|
1123
|
+
qc_type: Joi.array().items(Joi.string().allow("")),
|
|
1124
|
+
id: Joi.number(),
|
|
1125
|
+
display_name: Joi.string().allow(""),
|
|
1126
|
+
meta: OrderApplicationModel.BagReasonMeta(),
|
|
1127
|
+
question_set: Joi.array().items(OrderApplicationModel.QuestionSet()),
|
|
1128
|
+
reasons: Joi.array().items(Joi.link("#BagReasons")),
|
|
1129
|
+
}).id("BagReasons");
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/** @returns {ShipmentBagReasons} */
|
|
1133
|
+
static ShipmentBagReasons() {
|
|
1134
|
+
return Joi.object({
|
|
1135
|
+
reasons: Joi.array().items(OrderApplicationModel.BagReasons()),
|
|
1136
|
+
success: Joi.boolean(),
|
|
1111
1137
|
});
|
|
1112
1138
|
}
|
|
1113
1139
|
|
|
1114
1140
|
/** @returns {ShipmentReason} */
|
|
1115
1141
|
static ShipmentReason() {
|
|
1116
1142
|
return Joi.object({
|
|
1117
|
-
feedback_type: Joi.string().allow(""),
|
|
1118
|
-
flow: Joi.string().allow(""),
|
|
1119
1143
|
priority: Joi.number(),
|
|
1144
|
+
show_text_area: Joi.boolean(),
|
|
1120
1145
|
reason_id: Joi.number(),
|
|
1146
|
+
feedback_type: Joi.string().allow(""),
|
|
1121
1147
|
reason_text: Joi.string().allow(""),
|
|
1122
|
-
|
|
1148
|
+
flow: Joi.string().allow(""),
|
|
1123
1149
|
});
|
|
1124
1150
|
}
|
|
1125
1151
|
|
|
@@ -1130,186 +1156,152 @@ class OrderApplicationModel {
|
|
|
1130
1156
|
});
|
|
1131
1157
|
}
|
|
1132
1158
|
|
|
1133
|
-
/** @returns {
|
|
1134
|
-
static
|
|
1159
|
+
/** @returns {ProductsReasonsData} */
|
|
1160
|
+
static ProductsReasonsData() {
|
|
1135
1161
|
return Joi.object({
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
promise: OrderApplicationModel.Promise(),
|
|
1157
|
-
refund_details: Joi.any(),
|
|
1158
|
-
return_meta: Joi.any(),
|
|
1159
|
-
returnable_date: Joi.string().allow("").allow(null),
|
|
1160
|
-
shipment_created_at: Joi.string().allow(""),
|
|
1161
|
-
shipment_created_ts: Joi.string().allow(""),
|
|
1162
|
-
shipment_id: Joi.string().allow(""),
|
|
1163
|
-
shipment_status: OrderApplicationModel.ShipmentStatus(),
|
|
1164
|
-
show_download_invoice: Joi.boolean(),
|
|
1165
|
-
show_track_link: Joi.boolean(),
|
|
1166
|
-
size_info: Joi.any(),
|
|
1167
|
-
total_bags: Joi.number(),
|
|
1168
|
-
total_details: OrderApplicationModel.ShipmentTotalDetails(),
|
|
1169
|
-
track_url: Joi.string().allow(""),
|
|
1170
|
-
tracking_details: Joi.array().items(
|
|
1171
|
-
OrderApplicationModel.TrackingDetails()
|
|
1162
|
+
reason_id: Joi.number(),
|
|
1163
|
+
reason_text: Joi.string().allow(""),
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/** @returns {ProductsReasonsFilters} */
|
|
1168
|
+
static ProductsReasonsFilters() {
|
|
1169
|
+
return Joi.object({
|
|
1170
|
+
line_number: Joi.number(),
|
|
1171
|
+
quantity: Joi.number(),
|
|
1172
|
+
identifier: Joi.string().allow(""),
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/** @returns {ProductsReasons} */
|
|
1177
|
+
static ProductsReasons() {
|
|
1178
|
+
return Joi.object({
|
|
1179
|
+
data: OrderApplicationModel.ProductsReasonsData(),
|
|
1180
|
+
filters: Joi.array().items(
|
|
1181
|
+
OrderApplicationModel.ProductsReasonsFilters()
|
|
1172
1182
|
),
|
|
1173
|
-
traking_no: Joi.string().allow(""),
|
|
1174
|
-
user_info: OrderApplicationModel.ShipmentUserInfo(),
|
|
1175
1183
|
});
|
|
1176
1184
|
}
|
|
1177
1185
|
|
|
1178
|
-
/** @returns {
|
|
1179
|
-
static
|
|
1186
|
+
/** @returns {EntityReasonData} */
|
|
1187
|
+
static EntityReasonData() {
|
|
1180
1188
|
return Joi.object({
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
products: Joi.array().items(OrderApplicationModel.Products()),
|
|
1184
|
-
reasons: OrderApplicationModel.ReasonsData(),
|
|
1189
|
+
reason_id: Joi.number(),
|
|
1190
|
+
reason_text: Joi.string().allow(""),
|
|
1185
1191
|
});
|
|
1186
1192
|
}
|
|
1187
1193
|
|
|
1188
|
-
/** @returns {
|
|
1189
|
-
static
|
|
1194
|
+
/** @returns {EntitiesReasons} */
|
|
1195
|
+
static EntitiesReasons() {
|
|
1190
1196
|
return Joi.object({
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
value: Joi.string().allow("").allow(null),
|
|
1197
|
+
data: OrderApplicationModel.EntityReasonData(),
|
|
1198
|
+
filters: Joi.array().items(Joi.any()),
|
|
1194
1199
|
});
|
|
1195
1200
|
}
|
|
1196
1201
|
|
|
1197
|
-
/** @returns {
|
|
1198
|
-
static
|
|
1202
|
+
/** @returns {ReasonsData} */
|
|
1203
|
+
static ReasonsData() {
|
|
1199
1204
|
return Joi.object({
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
total_price: Joi.number(),
|
|
1205
|
+
products: Joi.array().items(OrderApplicationModel.ProductsReasons()),
|
|
1206
|
+
entities: Joi.array().items(OrderApplicationModel.EntitiesReasons()),
|
|
1203
1207
|
});
|
|
1204
1208
|
}
|
|
1205
1209
|
|
|
1206
|
-
/** @returns {
|
|
1207
|
-
static
|
|
1210
|
+
/** @returns {Products} */
|
|
1211
|
+
static Products() {
|
|
1208
1212
|
return Joi.object({
|
|
1209
|
-
|
|
1213
|
+
line_number: Joi.number(),
|
|
1214
|
+
quantity: Joi.number(),
|
|
1215
|
+
identifier: Joi.string().allow(""),
|
|
1210
1216
|
});
|
|
1211
1217
|
}
|
|
1212
1218
|
|
|
1213
|
-
/** @returns {
|
|
1214
|
-
static
|
|
1219
|
+
/** @returns {ProductsDataUpdatesFilters} */
|
|
1220
|
+
static ProductsDataUpdatesFilters() {
|
|
1215
1221
|
return Joi.object({
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
gender: Joi.string().allow(""),
|
|
1219
|
-
last_name: Joi.string().allow(""),
|
|
1220
|
-
mobile: Joi.string().allow(""),
|
|
1221
|
-
name: Joi.string().allow(""),
|
|
1222
|
+
line_number: Joi.number(),
|
|
1223
|
+
identifier: Joi.string().allow(""),
|
|
1222
1224
|
});
|
|
1223
1225
|
}
|
|
1224
1226
|
|
|
1225
|
-
/** @returns {
|
|
1226
|
-
static
|
|
1227
|
+
/** @returns {ProductsDataUpdates} */
|
|
1228
|
+
static ProductsDataUpdates() {
|
|
1227
1229
|
return Joi.object({
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1230
|
+
data: Joi.any(),
|
|
1231
|
+
filters: Joi.array().items(
|
|
1232
|
+
OrderApplicationModel.ProductsDataUpdatesFilters()
|
|
1233
|
+
),
|
|
1231
1234
|
});
|
|
1232
1235
|
}
|
|
1233
1236
|
|
|
1234
|
-
/** @returns {
|
|
1235
|
-
static
|
|
1237
|
+
/** @returns {EntitiesDataUpdates} */
|
|
1238
|
+
static EntitiesDataUpdates() {
|
|
1236
1239
|
return Joi.object({
|
|
1237
|
-
|
|
1240
|
+
data: Joi.any(),
|
|
1241
|
+
filters: Joi.array().items(Joi.any()),
|
|
1238
1242
|
});
|
|
1239
1243
|
}
|
|
1240
1244
|
|
|
1241
|
-
/** @returns {
|
|
1242
|
-
static
|
|
1245
|
+
/** @returns {DataUpdates} */
|
|
1246
|
+
static DataUpdates() {
|
|
1243
1247
|
return Joi.object({
|
|
1244
|
-
|
|
1245
|
-
|
|
1248
|
+
products: Joi.array().items(OrderApplicationModel.ProductsDataUpdates()),
|
|
1249
|
+
entities: Joi.array().items(OrderApplicationModel.EntitiesDataUpdates()),
|
|
1246
1250
|
});
|
|
1247
1251
|
}
|
|
1248
1252
|
|
|
1249
|
-
/** @returns {
|
|
1250
|
-
static
|
|
1253
|
+
/** @returns {ShipmentsRequest} */
|
|
1254
|
+
static ShipmentsRequest() {
|
|
1251
1255
|
return Joi.object({
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
shipment_type: Joi.string().allow(""),
|
|
1257
|
-
status: Joi.string().allow(""),
|
|
1258
|
-
updated_at: Joi.string().allow(""),
|
|
1259
|
-
updated_time: Joi.string().allow(""),
|
|
1256
|
+
reasons: OrderApplicationModel.ReasonsData(),
|
|
1257
|
+
products: Joi.array().items(OrderApplicationModel.Products()),
|
|
1258
|
+
data_updates: OrderApplicationModel.DataUpdates(),
|
|
1259
|
+
identifier: Joi.string().allow("").required(),
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
-
/** @returns {
|
|
1264
|
-
static
|
|
1263
|
+
/** @returns {StatuesRequest} */
|
|
1264
|
+
static StatuesRequest() {
|
|
1265
1265
|
return Joi.object({
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
is_passed: Joi.boolean(),
|
|
1266
|
+
shipments: Joi.array().items(OrderApplicationModel.ShipmentsRequest()),
|
|
1267
|
+
exclude_bags_next_state: Joi.string().allow(""),
|
|
1269
1268
|
status: Joi.string().allow(""),
|
|
1270
|
-
time: Joi.string().allow(""),
|
|
1271
|
-
tracking_details: Joi.array().items(
|
|
1272
|
-
OrderApplicationModel.NestedTrackingDetails()
|
|
1273
|
-
),
|
|
1274
|
-
value: Joi.string().allow("").allow(null),
|
|
1275
1269
|
});
|
|
1276
1270
|
}
|
|
1277
1271
|
|
|
1278
1272
|
/** @returns {UpdateShipmentStatusRequest} */
|
|
1279
1273
|
static UpdateShipmentStatusRequest() {
|
|
1280
1274
|
return Joi.object({
|
|
1281
|
-
force_transition: Joi.boolean(),
|
|
1282
|
-
lock_after_transition: Joi.boolean(),
|
|
1283
1275
|
statuses: Joi.array().items(OrderApplicationModel.StatuesRequest()),
|
|
1284
1276
|
task: Joi.boolean(),
|
|
1277
|
+
lock_after_transition: Joi.boolean(),
|
|
1278
|
+
force_transition: Joi.boolean(),
|
|
1285
1279
|
unlock_before_transition: Joi.boolean(),
|
|
1286
1280
|
});
|
|
1287
1281
|
}
|
|
1288
1282
|
|
|
1289
|
-
/** @returns {
|
|
1290
|
-
static
|
|
1283
|
+
/** @returns {StatusesBodyResponse} */
|
|
1284
|
+
static StatusesBodyResponse() {
|
|
1291
1285
|
return Joi.object({
|
|
1292
|
-
|
|
1293
|
-
first_name: Joi.string().allow(""),
|
|
1294
|
-
gender: Joi.string().allow(""),
|
|
1295
|
-
last_name: Joi.string().allow(""),
|
|
1296
|
-
mobile: Joi.string().allow(""),
|
|
1297
|
-
name: Joi.string().allow(""),
|
|
1286
|
+
shipments: Joi.array().items(Joi.any()),
|
|
1298
1287
|
});
|
|
1299
1288
|
}
|
|
1300
1289
|
|
|
1301
|
-
/** @returns {
|
|
1302
|
-
static
|
|
1290
|
+
/** @returns {ShipmentApplicationStatusResponse} */
|
|
1291
|
+
static ShipmentApplicationStatusResponse() {
|
|
1303
1292
|
return Joi.object({
|
|
1304
|
-
|
|
1305
|
-
request_id: Joi.string().allow(""),
|
|
1293
|
+
statuses: Joi.array().items(OrderApplicationModel.StatusesBodyResponse()),
|
|
1306
1294
|
});
|
|
1307
1295
|
}
|
|
1308
1296
|
|
|
1309
|
-
/** @returns {
|
|
1310
|
-
static
|
|
1297
|
+
/** @returns {ErrorResponse} */
|
|
1298
|
+
static ErrorResponse() {
|
|
1311
1299
|
return Joi.object({
|
|
1312
|
-
|
|
1300
|
+
code: Joi.string().allow("").allow(null),
|
|
1301
|
+
message: Joi.string().allow("").allow(null),
|
|
1302
|
+
status: Joi.number(),
|
|
1303
|
+
exception: Joi.string().allow("").allow(null),
|
|
1304
|
+
stack_trace: Joi.string().allow("").allow(null),
|
|
1313
1305
|
});
|
|
1314
1306
|
}
|
|
1315
1307
|
}
|