@gofynd/fdk-client-javascript 1.4.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.
Files changed (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,212 +1,178 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef ApefaceApiError
5
- * @property {string} [message]
6
- * @property {boolean} [success]
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 BagReasons
35
- * @property {string} [display_name]
36
- * @property {number} [id]
37
- * @property {BagReasonMeta} [meta]
38
- * @property {string[]} [qc_type]
39
- * @property {QuestionSet[]} [question_set]
40
- * @property {BagReasons[]} [reasons]
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 Bags
45
- * @property {AppliedPromos[]} [applied_promos]
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 {CurrentStatus} [current_status]
51
- * @property {string} [delivery_date]
52
- * @property {FinancialBreakup[]} [financial_breakup]
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 BagsForReorderArticleAssignment
76
- * @property {string} [level]
77
- * @property {string} [strategy]
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 BreakupValues
82
- * @property {string} [currency_code]
83
- * @property {string} [currency_symbol]
84
- * @property {string} [display]
42
+ * @typedef ShipmentUserInfo
43
+ * @property {string} [first_name]
44
+ * @property {string} [gender]
85
45
  * @property {string} [name]
86
- * @property {number} [value]
46
+ * @property {string} [last_name]
47
+ * @property {string} [mobile]
48
+ * @property {string} [email]
87
49
  */
88
50
 
89
51
  /**
90
- * @typedef CurrentStatus
91
- * @property {string} [journey_type]
52
+ * @typedef FulfillingStore
53
+ * @property {number} [id]
54
+ * @property {string} [code]
92
55
  * @property {string} [name]
93
- * @property {string} [status]
94
- * @property {string} [updated_at]
56
+ * @property {string} [company_name]
57
+ * @property {number} [company_id]
95
58
  */
96
59
 
97
60
  /**
98
- * @typedef CustomerDetailsResponse
99
- * @property {string} [country]
100
- * @property {string} [name]
101
- * @property {string} [order_id]
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 DataUpdates
108
- * @property {EntitiesDataUpdates[]} [entities]
109
- * @property {ProductsDataUpdates[]} [products]
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 DeliveryAddress
114
- * @property {string} [address]
115
- * @property {string} [address_category]
116
- * @property {string} [address_type]
117
- * @property {string} [address1]
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 EntitiesDataUpdates
141
- * @property {Object} [data]
142
- * @property {Object[]} [filters]
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 EntitiesReasons
147
- * @property {EntityReasonData} [data]
148
- * @property {Object[]} [filters]
93
+ * @typedef TimeStampData
94
+ * @property {string} [min]
95
+ * @property {string} [max]
149
96
  */
150
97
 
151
98
  /**
152
- * @typedef EntityReasonData
153
- * @property {number} [reason_id]
154
- * @property {string} [reason_text]
99
+ * @typedef Promise
100
+ * @property {boolean} [show_promise]
101
+ * @property {TimeStampData} [timestamp]
155
102
  */
156
103
 
157
104
  /**
158
- * @typedef ErrorResponse
159
- * @property {string} [code]
160
- * @property {string} [exception]
161
- * @property {string} [message]
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 FinancialBreakup
168
- * @property {boolean} [added_to_fynd_cash]
169
- * @property {number} [amount_paid]
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} [cashback]
173
- * @property {number} [cashback_applied]
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 {number} [coupon_value]
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 {string} [hsn_code]
184
- * @property {Identifiers} [identifiers]
185
- * @property {string} [item_name]
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} [price_marked]
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 {number} [refund_credit]
191
- * @property {string} [size]
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 FulfillingCompany
199
- * @property {number} [id]
138
+ * @typedef ItemBrand
139
+ * @property {string} [logo]
200
140
  * @property {string} [name]
201
141
  */
202
142
 
203
143
  /**
204
- * @typedef FulfillingStore
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 Invoice
220
- * @property {string} [invoice_url]
221
- * @property {string} [label_url]
222
- * @property {string} [updated_date]
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 Item
227
- * @property {Object} [attributes]
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} [seller_identifier]
237
- * @property {string} [size]
238
- * @property {string} [slug_key]
219
+ * @property {string} [status]
220
+ * @property {string} [journey_type]
239
221
  */
240
222
 
241
223
  /**
242
- * @typedef ItemBrand
243
- * @property {string} [logo]
244
- * @property {string} [name]
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 NestedTrackingDetails
249
- * @property {boolean} [is_current]
250
- * @property {boolean} [is_passed]
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 OrderById
257
- * @property {OrderSchema} [order]
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 OrderFilters
262
- * @property {OrderStatuses[]} [statuses]
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 OrderList
267
- * @property {OrderFilters} [filters]
268
- * @property {OrderSchema[]} [items]
269
- * @property {OrderPage} [page]
317
+ * @typedef BagsForReorderArticleAssignment
318
+ * @property {string} [strategy]
319
+ * @property {string} [level]
270
320
  */
271
321
 
272
322
  /**
273
- * @typedef OrderPage
274
- * @property {number} [current]
275
- * @property {boolean} [has_next]
276
- * @property {number} [item_total]
277
- * @property {number} [size]
278
- * @property {string} [type]
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 {BagsForReorder[]} [bags_for_reorder]
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 {number} [total_shipments_in_order]
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 Prices
302
- * @property {boolean} [added_to_fynd_cash]
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 ProductsDataUpdatesFilters
341
- * @property {string} [identifier]
342
- * @property {number} [line_number]
356
+ * @typedef OrderList
357
+ * @property {OrderPage} [page]
358
+ * @property {OrderSchema[]} [items]
359
+ * @property {OrderFilters} [filters]
343
360
  */
344
361
 
345
362
  /**
346
- * @typedef ProductsReasons
347
- * @property {ProductsReasonsData} [data]
348
- * @property {ProductsReasonsFilters[]} [filters]
363
+ * @typedef ApefaceApiError
364
+ * @property {string} [message]
365
+ * @property {boolean} [success]
349
366
  */
350
367
 
351
368
  /**
352
- * @typedef ProductsReasonsData
353
- * @property {number} [reason_id]
354
- * @property {string} [reason_text]
369
+ * @typedef OrderById
370
+ * @property {OrderSchema} [order]
355
371
  */
356
372
 
357
373
  /**
358
- * @typedef ProductsReasonsFilters
359
- * @property {string} [identifier]
360
- * @property {number} [line_number]
361
- * @property {number} [quantity]
374
+ * @typedef ShipmentById
375
+ * @property {Shipments} [shipment]
362
376
  */
363
377
 
364
378
  /**
365
- * @typedef Promise
366
- * @property {boolean} [show_promise]
367
- * @property {TimeStampData} [timestamp]
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 QuestionSet
372
- * @property {string} [display_name]
373
- * @property {number} [id]
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 ReasonsData
378
- * @property {EntitiesReasons[]} [entities]
379
- * @property {ProductsReasons[]} [products]
399
+ * @typedef ShipmentTrack
400
+ * @property {Track[]} [results]
380
401
  */
381
402
 
382
403
  /**
383
- * @typedef ResponseGetInvoiceShipment
384
- * @property {string} presigned_type
385
- * @property {string} presigned_url
386
- * @property {string} shipment_id
387
- * @property {boolean} success
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 {number} [resend_timer]
415
+ * @property {string} [message]
395
416
  * @property {boolean} [success]
417
+ * @property {number} [resend_timer]
396
418
  */
397
419
 
398
420
  /**
399
- * @typedef ShipmentApplicationStatusResponse
400
- * @property {StatusesBodyResponse[]} [statuses]
421
+ * @typedef VerifyOtp
422
+ * @property {string} [otp_code]
423
+ * @property {string} [request_id]
401
424
  */
402
425
 
403
426
  /**
404
- * @typedef ShipmentBagReasons
405
- * @property {BagReasons[]} [reasons]
427
+ * @typedef VerifyOtpResponse
406
428
  * @property {boolean} [success]
407
429
  */
408
430
 
409
431
  /**
410
- * @typedef ShipmentById
411
- * @property {Shipments} [shipment]
432
+ * @typedef BagReasonMeta
433
+ * @property {boolean} [show_text_area]
412
434
  */
413
435
 
414
436
  /**
415
- * @typedef ShipmentPayment
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 ShipmentReason
426
- * @property {string} [feedback_type]
427
- * @property {string} [flow]
428
- * @property {number} [priority]
429
- * @property {number} [reason_id]
430
- * @property {string} [reason_text]
431
- * @property {boolean} [show_text_area]
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 ShipmentReasons
436
- * @property {ShipmentReason[]} [reasons]
453
+ * @typedef ShipmentBagReasons
454
+ * @property {BagReasons[]} [reasons]
455
+ * @property {boolean} [success]
437
456
  */
438
457
 
439
458
  /**
440
- * @typedef Shipments
441
- * @property {string} [awb_no]
442
- * @property {Bags[]} [bags]
443
- * @property {boolean} [beneficiary_details]
444
- * @property {BreakupValues[]} [breakup_values]
445
- * @property {Object} [can_break]
446
- * @property {boolean} [can_cancel]
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 ShipmentsRequest
482
- * @property {DataUpdates} [data_updates]
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 ShipmentStatus
490
- * @property {string} [hex_code]
491
- * @property {string} [title]
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 ShipmentTotalDetails
497
- * @property {number} [pieces]
498
- * @property {number} [sizes]
499
- * @property {number} [total_price]
480
+ * @typedef ProductsReasonsFilters
481
+ * @property {number} [line_number]
482
+ * @property {number} [quantity]
483
+ * @property {string} [identifier]
500
484
  */
501
485
 
502
486
  /**
503
- * @typedef ShipmentTrack
504
- * @property {Track[]} [results]
487
+ * @typedef ProductsReasons
488
+ * @property {ProductsReasonsData} [data]
489
+ * @property {ProductsReasonsFilters[]} [filters]
505
490
  */
506
491
 
507
492
  /**
508
- * @typedef ShipmentUserInfo
509
- * @property {string} [email]
510
- * @property {string} [first_name]
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 StatuesRequest
519
- * @property {string} [exclude_bags_next_state]
520
- * @property {ShipmentsRequest[]} [shipments]
521
- * @property {string} [status]
499
+ * @typedef EntitiesReasons
500
+ * @property {EntityReasonData} [data]
501
+ * @property {Object[]} [filters]
522
502
  */
523
503
 
524
504
  /**
525
- * @typedef StatusesBodyResponse
526
- * @property {Object[]} [shipments]
505
+ * @typedef ReasonsData
506
+ * @property {ProductsReasons[]} [products]
507
+ * @property {EntitiesReasons[]} [entities]
527
508
  */
528
509
 
529
510
  /**
530
- * @typedef TimeStampData
531
- * @property {string} [max]
532
- * @property {string} [min]
511
+ * @typedef Products
512
+ * @property {number} [line_number]
513
+ * @property {number} [quantity]
514
+ * @property {string} [identifier]
533
515
  */
534
516
 
535
517
  /**
536
- * @typedef Track
537
- * @property {string} [account_name]
538
- * @property {string} [awb]
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 TrackingDetails
549
- * @property {string} [created_ts]
550
- * @property {boolean} [is_current]
551
- * @property {boolean} [is_passed]
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 UserInfo
569
- * @property {string} [email]
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 VerifyOtp
579
- * @property {string} [otp_code]
580
- * @property {string} [request_id]
571
+ * @typedef ShipmentApplicationStatusResponse
572
+ * @property {StatusesBodyResponse[]} [statuses]
581
573
  */
582
574
 
583
575
  /**
584
- * @typedef VerifyOtpResponse
585
- * @property {boolean} [success]
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 {ApefaceApiError} */
590
- static ApefaceApiError() {
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
- amount: Joi.number(),
611
- applied_free_articles: Joi.array().items(
612
- OrderApplicationModel.AppliedFreeArticles()
613
- ),
614
- article_quantity: Joi.number(),
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 {BagReasonMeta} */
623
- static BagReasonMeta() {
596
+ /** @returns {UserInfo} */
597
+ static UserInfo() {
624
598
  return Joi.object({
625
- show_text_area: Joi.boolean(),
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 {BagReasons} */
630
- static BagReasons() {
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
- applied_promos: Joi.array().items(OrderApplicationModel.AppliedPromos()),
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
- current_status: OrderApplicationModel.CurrentStatus(),
650
- delivery_date: Joi.string().allow("").allow(null),
651
- financial_breakup: Joi.array().items(
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 {BagsForReorderArticleAssignment} */
679
- static BagsForReorderArticleAssignment() {
619
+ /** @returns {ShipmentPayment} */
620
+ static ShipmentPayment() {
680
621
  return Joi.object({
681
- level: Joi.string().allow(""),
682
- strategy: Joi.string().allow(""),
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 {BreakupValues} */
687
- static BreakupValues() {
631
+ /** @returns {ShipmentUserInfo} */
632
+ static ShipmentUserInfo() {
688
633
  return Joi.object({
689
- currency_code: Joi.string().allow(""),
690
- currency_symbol: Joi.string().allow(""),
691
- display: Joi.string().allow(""),
634
+ first_name: Joi.string().allow(""),
635
+ gender: Joi.string().allow(""),
692
636
  name: Joi.string().allow(""),
693
- value: Joi.number(),
637
+ last_name: Joi.string().allow(""),
638
+ mobile: Joi.string().allow(""),
639
+ email: Joi.string().allow(""),
694
640
  });
695
641
  }
696
642
 
697
- /** @returns {CurrentStatus} */
698
- static CurrentStatus() {
643
+ /** @returns {FulfillingStore} */
644
+ static FulfillingStore() {
699
645
  return Joi.object({
700
- journey_type: Joi.string().allow("").allow(null),
646
+ id: Joi.number(),
647
+ code: Joi.string().allow(""),
701
648
  name: Joi.string().allow(""),
702
- status: Joi.string().allow(""),
703
- updated_at: Joi.string().allow(""),
649
+ company_name: Joi.string().allow(""),
650
+ company_id: Joi.number(),
704
651
  });
705
652
  }
706
653
 
707
- /** @returns {CustomerDetailsResponse} */
708
- static CustomerDetailsResponse() {
654
+ /** @returns {ShipmentStatus} */
655
+ static ShipmentStatus() {
709
656
  return Joi.object({
710
- country: Joi.string().allow(""),
711
- name: Joi.string().allow(""),
712
- order_id: Joi.string().allow(""),
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 {DataUpdates} */
719
- static DataUpdates() {
663
+ /** @returns {Invoice} */
664
+ static Invoice() {
720
665
  return Joi.object({
721
- entities: Joi.array().items(OrderApplicationModel.EntitiesDataUpdates()),
722
- products: Joi.array().items(OrderApplicationModel.ProductsDataUpdates()),
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 {DeliveryAddress} */
727
- static DeliveryAddress() {
672
+ /** @returns {NestedTrackingDetails} */
673
+ static NestedTrackingDetails() {
728
674
  return Joi.object({
729
- address: Joi.string().allow(""),
730
- address_category: Joi.string().allow(""),
731
- address_type: Joi.string().allow(""),
732
- address1: Joi.string().allow(""),
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 {EntitiesDataUpdates} */
756
- static EntitiesDataUpdates() {
682
+ /** @returns {TrackingDetails} */
683
+ static TrackingDetails() {
757
684
  return Joi.object({
758
- data: Joi.any(),
759
- filters: Joi.array().items(Joi.any()),
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 {EntitiesReasons} */
764
- static EntitiesReasons() {
696
+ /** @returns {TimeStampData} */
697
+ static TimeStampData() {
765
698
  return Joi.object({
766
- data: OrderApplicationModel.EntityReasonData(),
767
- filters: Joi.array().items(Joi.any()),
699
+ min: Joi.string().allow(""),
700
+ max: Joi.string().allow(""),
768
701
  });
769
702
  }
770
703
 
771
- /** @returns {EntityReasonData} */
772
- static EntityReasonData() {
704
+ /** @returns {Promise} */
705
+ static Promise() {
773
706
  return Joi.object({
774
- reason_id: Joi.number(),
775
- reason_text: Joi.string().allow(""),
707
+ show_promise: Joi.boolean(),
708
+ timestamp: OrderApplicationModel.TimeStampData(),
776
709
  });
777
710
  }
778
711
 
779
- /** @returns {ErrorResponse} */
780
- static ErrorResponse() {
712
+ /** @returns {ShipmentTotalDetails} */
713
+ static ShipmentTotalDetails() {
781
714
  return Joi.object({
782
- code: Joi.string().allow("").allow(null),
783
- exception: Joi.string().allow("").allow(null),
784
- message: Joi.string().allow("").allow(null),
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 {FinancialBreakup} */
791
- static FinancialBreakup() {
721
+ /** @returns {Prices} */
722
+ static Prices() {
792
723
  return Joi.object({
793
- added_to_fynd_cash: Joi.boolean(),
794
- amount_paid: Joi.number(),
795
- amount_paid_roundoff: Joi.number(),
724
+ delivery_charge: Joi.number(),
725
+ coupon_value: Joi.number(),
796
726
  brand_calculated_amount: Joi.number(),
797
- cashback: Joi.number(),
798
- cashback_applied: Joi.number(),
799
- cod_charges: Joi.number(),
727
+ value_of_good: Joi.number(),
728
+ price_marked: Joi.number(),
800
729
  coupon_effective_discount: Joi.number(),
801
- coupon_value: Joi.number(),
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
- hsn_code: Joi.string().allow(""),
809
- identifiers: OrderApplicationModel.Identifiers(),
810
- item_name: Joi.string().allow(""),
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
- price_marked: Joi.number(),
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
- refund_credit: Joi.number(),
816
- size: Joi.string().allow(""),
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 {FulfillingCompany} */
824
- static FulfillingCompany() {
749
+ /** @returns {ItemBrand} */
750
+ static ItemBrand() {
825
751
  return Joi.object({
826
- id: Joi.number(),
752
+ logo: Joi.string().allow(""),
827
753
  name: Joi.string().allow(""),
828
754
  });
829
755
  }
830
756
 
831
- /** @returns {FulfillingStore} */
832
- static FulfillingStore() {
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 {Invoice} */
851
- static Invoice() {
808
+ /** @returns {FinancialBreakup} */
809
+ static FinancialBreakup() {
852
810
  return Joi.object({
853
- invoice_url: Joi.string().allow(""),
854
- label_url: Joi.string().allow(""),
855
- updated_date: Joi.string().allow(""),
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 {Item} */
860
- static Item() {
841
+ /** @returns {CurrentStatus} */
842
+ static CurrentStatus() {
861
843
  return Joi.object({
862
- attributes: Joi.object().pattern(/\S/, Joi.any()),
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
- size: Joi.string().allow(""),
873
- slug_key: Joi.string().allow(""),
872
+ current_status: OrderApplicationModel.CurrentStatus(),
874
873
  });
875
874
  }
876
875
 
877
- /** @returns {ItemBrand} */
878
- static ItemBrand() {
876
+ /** @returns {FulfillingCompany} */
877
+ static FulfillingCompany() {
879
878
  return Joi.object({
880
- logo: Joi.string().allow(""),
879
+ id: Joi.number(),
881
880
  name: Joi.string().allow(""),
882
881
  });
883
882
  }
884
883
 
885
- /** @returns {NestedTrackingDetails} */
886
- static NestedTrackingDetails() {
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
- order: OrderApplicationModel.OrderSchema(),
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 {OrderFilters} */
903
- static OrderFilters() {
912
+ /** @returns {Shipments} */
913
+ static Shipments() {
904
914
  return Joi.object({
905
- statuses: Joi.array().items(OrderApplicationModel.OrderStatuses()),
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 {OrderList} */
910
- static OrderList() {
956
+ /** @returns {BagsForReorderArticleAssignment} */
957
+ static BagsForReorderArticleAssignment() {
911
958
  return Joi.object({
912
- filters: OrderApplicationModel.OrderFilters(),
913
- items: Joi.array().items(OrderApplicationModel.OrderSchema()),
914
- page: OrderApplicationModel.OrderPage(),
959
+ strategy: Joi.string().allow(""),
960
+ level: Joi.string().allow(""),
915
961
  });
916
962
  }
917
963
 
918
- /** @returns {OrderPage} */
919
- static OrderPage() {
964
+ /** @returns {BagsForReorder} */
965
+ static BagsForReorder() {
920
966
  return Joi.object({
921
- current: Joi.number(),
922
- has_next: Joi.boolean(),
923
- item_total: Joi.number(),
924
- size: Joi.number(),
925
- type: Joi.string().allow(""),
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
- bags_for_reorder: Joi.array().items(
933
- OrderApplicationModel.BagsForReorder()
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
- total_shipments_in_order: Joi.number(),
941
- user_info: OrderApplicationModel.UserInfo(),
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 {Prices} */
955
- static Prices() {
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
- data: Joi.any(),
995
- filters: Joi.array().items(
996
- OrderApplicationModel.ProductsDataUpdatesFilters()
997
- ),
1003
+ statuses: Joi.array().items(OrderApplicationModel.OrderStatuses()),
998
1004
  });
999
1005
  }
1000
1006
 
1001
- /** @returns {ProductsDataUpdatesFilters} */
1002
- static ProductsDataUpdatesFilters() {
1007
+ /** @returns {OrderList} */
1008
+ static OrderList() {
1003
1009
  return Joi.object({
1004
- identifier: Joi.string().allow(""),
1005
- line_number: Joi.number(),
1010
+ page: OrderApplicationModel.OrderPage(),
1011
+ items: Joi.array().items(OrderApplicationModel.OrderSchema()),
1012
+ filters: OrderApplicationModel.OrderFilters(),
1006
1013
  });
1007
1014
  }
1008
1015
 
1009
- /** @returns {ProductsReasons} */
1010
- static ProductsReasons() {
1016
+ /** @returns {ApefaceApiError} */
1017
+ static ApefaceApiError() {
1011
1018
  return Joi.object({
1012
- data: OrderApplicationModel.ProductsReasonsData(),
1013
- filters: Joi.array().items(
1014
- OrderApplicationModel.ProductsReasonsFilters()
1015
- ),
1019
+ message: Joi.string().allow(""),
1020
+ success: Joi.boolean(),
1016
1021
  });
1017
1022
  }
1018
1023
 
1019
- /** @returns {ProductsReasonsData} */
1020
- static ProductsReasonsData() {
1024
+ /** @returns {OrderById} */
1025
+ static OrderById() {
1021
1026
  return Joi.object({
1022
- reason_id: Joi.number(),
1023
- reason_text: Joi.string().allow(""),
1027
+ order: OrderApplicationModel.OrderSchema(),
1024
1028
  });
1025
1029
  }
1026
1030
 
1027
- /** @returns {ProductsReasonsFilters} */
1028
- static ProductsReasonsFilters() {
1031
+ /** @returns {ShipmentById} */
1032
+ static ShipmentById() {
1029
1033
  return Joi.object({
1030
- identifier: Joi.string().allow(""),
1031
- line_number: Joi.number(),
1032
- quantity: Joi.number(),
1034
+ shipment: OrderApplicationModel.Shipments(),
1033
1035
  });
1034
1036
  }
1035
1037
 
1036
- /** @returns {Promise} */
1037
- static Promise() {
1038
+ /** @returns {ResponseGetInvoiceShipment} */
1039
+ static ResponseGetInvoiceShipment() {
1038
1040
  return Joi.object({
1039
- show_promise: Joi.boolean(),
1040
- timestamp: OrderApplicationModel.TimeStampData(),
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 {QuestionSet} */
1045
- static QuestionSet() {
1048
+ /** @returns {Track} */
1049
+ static Track() {
1046
1050
  return Joi.object({
1047
- display_name: Joi.string().allow(""),
1048
- id: Joi.number(),
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 {ReasonsData} */
1053
- static ReasonsData() {
1062
+ /** @returns {ShipmentTrack} */
1063
+ static ShipmentTrack() {
1054
1064
  return Joi.object({
1055
- entities: Joi.array().items(OrderApplicationModel.EntitiesReasons()),
1056
- products: Joi.array().items(OrderApplicationModel.ProductsReasons()),
1065
+ results: Joi.array().items(OrderApplicationModel.Track()),
1057
1066
  });
1058
1067
  }
1059
1068
 
1060
- /** @returns {ResponseGetInvoiceShipment} */
1061
- static ResponseGetInvoiceShipment() {
1069
+ /** @returns {CustomerDetailsResponse} */
1070
+ static CustomerDetailsResponse() {
1062
1071
  return Joi.object({
1063
- presigned_type: Joi.string().allow("").required(),
1064
- presigned_url: Joi.string().allow("").required(),
1065
- shipment_id: Joi.string().allow("").required(),
1066
- success: Joi.boolean().required(),
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
- resend_timer: Joi.number(),
1084
+ message: Joi.string().allow(""),
1076
1085
  success: Joi.boolean(),
1086
+ resend_timer: Joi.number(),
1077
1087
  });
1078
1088
  }
1079
1089
 
1080
- /** @returns {ShipmentApplicationStatusResponse} */
1081
- static ShipmentApplicationStatusResponse() {
1090
+ /** @returns {VerifyOtp} */
1091
+ static VerifyOtp() {
1082
1092
  return Joi.object({
1083
- statuses: Joi.array().items(OrderApplicationModel.StatusesBodyResponse()),
1093
+ otp_code: Joi.string().allow(""),
1094
+ request_id: Joi.string().allow(""),
1084
1095
  });
1085
1096
  }
1086
1097
 
1087
- /** @returns {ShipmentBagReasons} */
1088
- static ShipmentBagReasons() {
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 {ShipmentById} */
1096
- static ShipmentById() {
1105
+ /** @returns {BagReasonMeta} */
1106
+ static BagReasonMeta() {
1097
1107
  return Joi.object({
1098
- shipment: OrderApplicationModel.Shipments(),
1108
+ show_text_area: Joi.boolean(),
1099
1109
  });
1100
1110
  }
1101
1111
 
1102
- /** @returns {ShipmentPayment} */
1103
- static ShipmentPayment() {
1112
+ /** @returns {QuestionSet} */
1113
+ static QuestionSet() {
1104
1114
  return Joi.object({
1115
+ id: Joi.number(),
1105
1116
  display_name: Joi.string().allow(""),
1106
- logo: Joi.string().allow(""),
1107
- mode: Joi.string().allow(""),
1108
- mop: Joi.string().allow(""),
1109
- payment_mode: Joi.string().allow(""),
1110
- status: Joi.string().allow(""),
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
- show_text_area: Joi.boolean(),
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 {Shipments} */
1134
- static Shipments() {
1159
+ /** @returns {ProductsReasonsData} */
1160
+ static ProductsReasonsData() {
1135
1161
  return Joi.object({
1136
- awb_no: Joi.string().allow(""),
1137
- bags: Joi.array().items(OrderApplicationModel.Bags()),
1138
- beneficiary_details: Joi.boolean(),
1139
- breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
1140
- can_break: Joi.any(),
1141
- can_cancel: Joi.boolean(),
1142
- can_return: Joi.boolean(),
1143
- comment: Joi.string().allow(""),
1144
- custom_meta: Joi.array().items(Joi.any()),
1145
- delivery_address: OrderApplicationModel.DeliveryAddress(),
1146
- delivery_date: Joi.string().allow("").allow(null),
1147
- dp_name: Joi.string().allow(""),
1148
- fulfilling_company: OrderApplicationModel.FulfillingCompany(),
1149
- fulfilling_store: OrderApplicationModel.FulfillingStore(),
1150
- invoice: OrderApplicationModel.Invoice(),
1151
- need_help_url: Joi.string().allow(""),
1152
- order_id: Joi.string().allow(""),
1153
- order_type: Joi.string().allow("").allow(null),
1154
- payment: OrderApplicationModel.ShipmentPayment(),
1155
- prices: OrderApplicationModel.Prices(),
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 {ShipmentsRequest} */
1179
- static ShipmentsRequest() {
1186
+ /** @returns {EntityReasonData} */
1187
+ static EntityReasonData() {
1180
1188
  return Joi.object({
1181
- data_updates: OrderApplicationModel.DataUpdates(),
1182
- identifier: Joi.string().allow("").required(),
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 {ShipmentStatus} */
1189
- static ShipmentStatus() {
1194
+ /** @returns {EntitiesReasons} */
1195
+ static EntitiesReasons() {
1190
1196
  return Joi.object({
1191
- hex_code: Joi.string().allow(""),
1192
- title: Joi.string().allow(""),
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 {ShipmentTotalDetails} */
1198
- static ShipmentTotalDetails() {
1202
+ /** @returns {ReasonsData} */
1203
+ static ReasonsData() {
1199
1204
  return Joi.object({
1200
- pieces: Joi.number(),
1201
- sizes: Joi.number(),
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 {ShipmentTrack} */
1207
- static ShipmentTrack() {
1210
+ /** @returns {Products} */
1211
+ static Products() {
1208
1212
  return Joi.object({
1209
- results: Joi.array().items(OrderApplicationModel.Track()),
1213
+ line_number: Joi.number(),
1214
+ quantity: Joi.number(),
1215
+ identifier: Joi.string().allow(""),
1210
1216
  });
1211
1217
  }
1212
1218
 
1213
- /** @returns {ShipmentUserInfo} */
1214
- static ShipmentUserInfo() {
1219
+ /** @returns {ProductsDataUpdatesFilters} */
1220
+ static ProductsDataUpdatesFilters() {
1215
1221
  return Joi.object({
1216
- email: Joi.string().allow(""),
1217
- first_name: Joi.string().allow(""),
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 {StatuesRequest} */
1226
- static StatuesRequest() {
1227
+ /** @returns {ProductsDataUpdates} */
1228
+ static ProductsDataUpdates() {
1227
1229
  return Joi.object({
1228
- exclude_bags_next_state: Joi.string().allow(""),
1229
- shipments: Joi.array().items(OrderApplicationModel.ShipmentsRequest()),
1230
- status: Joi.string().allow(""),
1230
+ data: Joi.any(),
1231
+ filters: Joi.array().items(
1232
+ OrderApplicationModel.ProductsDataUpdatesFilters()
1233
+ ),
1231
1234
  });
1232
1235
  }
1233
1236
 
1234
- /** @returns {StatusesBodyResponse} */
1235
- static StatusesBodyResponse() {
1237
+ /** @returns {EntitiesDataUpdates} */
1238
+ static EntitiesDataUpdates() {
1236
1239
  return Joi.object({
1237
- shipments: Joi.array().items(Joi.any()),
1240
+ data: Joi.any(),
1241
+ filters: Joi.array().items(Joi.any()),
1238
1242
  });
1239
1243
  }
1240
1244
 
1241
- /** @returns {TimeStampData} */
1242
- static TimeStampData() {
1245
+ /** @returns {DataUpdates} */
1246
+ static DataUpdates() {
1243
1247
  return Joi.object({
1244
- max: Joi.string().allow(""),
1245
- min: Joi.string().allow(""),
1248
+ products: Joi.array().items(OrderApplicationModel.ProductsDataUpdates()),
1249
+ entities: Joi.array().items(OrderApplicationModel.EntitiesDataUpdates()),
1246
1250
  });
1247
1251
  }
1248
1252
 
1249
- /** @returns {Track} */
1250
- static Track() {
1253
+ /** @returns {ShipmentsRequest} */
1254
+ static ShipmentsRequest() {
1251
1255
  return Joi.object({
1252
- account_name: Joi.string().allow(""),
1253
- awb: Joi.string().allow(""),
1254
- last_location_recieved_at: Joi.string().allow(""),
1255
- reason: Joi.string().allow(""),
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 {TrackingDetails} */
1264
- static TrackingDetails() {
1263
+ /** @returns {StatuesRequest} */
1264
+ static StatuesRequest() {
1265
1265
  return Joi.object({
1266
- created_ts: Joi.string().allow(""),
1267
- is_current: Joi.boolean(),
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 {UserInfo} */
1290
- static UserInfo() {
1283
+ /** @returns {StatusesBodyResponse} */
1284
+ static StatusesBodyResponse() {
1291
1285
  return Joi.object({
1292
- email: Joi.string().allow(""),
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 {VerifyOtp} */
1302
- static VerifyOtp() {
1290
+ /** @returns {ShipmentApplicationStatusResponse} */
1291
+ static ShipmentApplicationStatusResponse() {
1303
1292
  return Joi.object({
1304
- otp_code: Joi.string().allow(""),
1305
- request_id: Joi.string().allow(""),
1293
+ statuses: Joi.array().items(OrderApplicationModel.StatusesBodyResponse()),
1306
1294
  });
1307
1295
  }
1308
1296
 
1309
- /** @returns {VerifyOtpResponse} */
1310
- static VerifyOtpResponse() {
1297
+ /** @returns {ErrorResponse} */
1298
+ static ErrorResponse() {
1311
1299
  return Joi.object({
1312
- success: Joi.boolean(),
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
  }