@gofynd/fdk-client-javascript 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +562 -1270
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +15266 -17619
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3509 -4121
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3750 -5636
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/ApplicationConfig.js +1 -1
  44. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  45. package/sdk/application/Cart/CartApplicationClient.js +1058 -547
  46. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  47. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  48. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  49. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  50. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  51. package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
  52. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  53. package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
  54. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  55. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  56. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  57. package/sdk/application/Common/CommonApplicationClient.js +76 -36
  58. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  59. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  60. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  61. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  62. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  63. package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
  64. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  65. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  66. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  67. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  69. package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  71. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  73. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  74. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  75. package/sdk/application/Content/ContentApplicationClient.js +581 -213
  76. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
  77. package/sdk/application/Content/ContentApplicationModel.js +468 -875
  78. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  79. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  81. package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  83. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  85. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  86. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  87. package/sdk/application/Lead/LeadApplicationClient.js +230 -96
  88. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  89. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  90. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  91. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  92. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  93. package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
  94. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  95. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  96. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  97. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  98. package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
  99. package/sdk/application/Order/OrderApplicationClient.js +448 -215
  100. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  101. package/sdk/application/Order/OrderApplicationModel.js +357 -661
  102. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  103. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  104. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  105. package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
  106. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  107. package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
  108. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  109. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  110. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  111. package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
  112. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
  113. package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
  114. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  115. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  116. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  117. package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
  118. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  119. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  120. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  121. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  122. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  123. package/sdk/application/Share/ShareApplicationClient.js +221 -96
  124. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  125. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  126. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  127. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  128. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  129. package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
  130. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  131. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  132. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  133. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  134. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  135. package/sdk/application/User/UserApplicationClient.js +1201 -543
  136. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  137. package/sdk/application/User/UserApplicationModel.js +440 -689
  138. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  139. package/sdk/application/User/UserApplicationValidator.js +89 -89
  140. package/sdk/common/AxiosHelper.js +1 -1
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  144. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  145. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  146. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  147. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  148. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  152. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  153. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  154. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  155. package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
  156. package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
  157. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  158. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  159. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  160. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  161. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
  162. package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
  163. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  164. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  165. package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
  166. package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
  168. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
  169. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  170. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  171. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
  172. package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
  173. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
  174. package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
  175. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
  176. package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
  177. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
  178. package/sdk/platform/Common/CommonPlatformClient.js +80 -37
  179. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  180. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  181. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  182. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
  184. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
  185. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  186. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  187. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  188. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  189. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  190. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
  192. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
  193. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
  194. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
  195. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  196. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  197. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
  198. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
  199. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  200. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  201. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
  202. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
  203. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  204. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  205. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  206. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  207. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
  208. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
  209. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
  210. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
  211. package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
  212. package/sdk/platform/Content/ContentPlatformModel.js +486 -867
  213. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
  214. package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
  215. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  216. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  217. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  218. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  219. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
  220. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
  221. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  222. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  223. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
  224. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
  225. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  226. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  227. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  228. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  229. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
  230. package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
  231. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  232. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  233. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  234. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  235. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
  236. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
  237. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  238. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  239. package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
  240. package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
  241. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  242. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  243. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  244. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  245. package/sdk/platform/OAuthClient.js +8 -8
  246. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
  247. package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
  248. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  249. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  250. package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
  251. package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
  252. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
  253. package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
  254. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  255. package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
  256. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  257. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  258. package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
  259. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
  260. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
  261. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  262. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  263. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
  264. package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
  265. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  266. package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
  267. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  268. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  269. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
  270. package/sdk/platform/PlatformApplicationClient.js +1584 -13691
  271. package/sdk/platform/PlatformClient.d.ts +7918 -7666
  272. package/sdk/platform/PlatformClient.js +8701 -9926
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  279. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
  280. package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
  281. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  282. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  283. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  284. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  285. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
  286. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
  287. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  288. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  289. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  290. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  291. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
  292. package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
  293. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  294. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  295. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  296. package/sdk/platform/User/UserPlatformModel.js +440 -689
  297. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
  298. package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
  299. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  300. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  301. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  302. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  303. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  304. package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
  305. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  306. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  307. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  308. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  309. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  310. package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
  311. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  312. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  313. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  314. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  315. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
  316. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  317. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  318. package/tests/application/catalog.spec.js +7 -0
@@ -1,3465 +1,2234 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class OrderModel {
4
- static FilterInfoOption() {
4
+ static ActionInfo() {
5
5
  return Joi.object({
6
- value: Joi.string().allow(""),
7
-
8
- text: Joi.string().allow("").required(),
9
-
10
- name: Joi.string().allow(""),
6
+ description: Joi.string().allow("").required(),
7
+ display_text: Joi.string().allow("").required(),
8
+ id: Joi.number().required(),
9
+ slug: Joi.string().allow("").required(),
11
10
  });
12
11
  }
13
-
14
- static FiltersInfo() {
12
+ static Affiliate() {
13
+ return Joi.object({
14
+ config: OrderModel.AffiliateConfig(),
15
+ id: Joi.string().allow("").required(),
16
+ token: Joi.string().allow("").required(),
17
+ });
18
+ }
19
+ static AffiliateAppConfig() {
20
+ return Joi.object({
21
+ created_at: Joi.string().allow("").required(),
22
+ description: Joi.string().allow(""),
23
+ id: Joi.string().allow("").required(),
24
+ meta: Joi.array().items(OrderModel.AffiliateAppConfigMeta()),
25
+ name: Joi.string().allow("").required(),
26
+ owner: Joi.string().allow("").required(),
27
+ secret: Joi.string().allow("").required(),
28
+ token: Joi.string().allow("").required(),
29
+ updated_at: Joi.string().allow("").required(),
30
+ });
31
+ }
32
+ static AffiliateAppConfigMeta() {
15
33
  return Joi.object({
34
+ name: Joi.string().allow("").required(),
16
35
  value: Joi.string().allow("").required(),
17
-
18
- text: Joi.string().allow("").required(),
19
-
20
- options: Joi.array().items(OrderModel.FilterInfoOption()),
21
-
22
- type: Joi.string().allow("").required(),
23
36
  });
24
37
  }
25
-
26
- static UserDataInfo() {
38
+ static AffiliateBag() {
27
39
  return Joi.object({
28
- email: Joi.string().allow(""),
29
-
30
- avis_user_id: Joi.string().allow(""),
31
-
32
- is_anonymous_user: Joi.boolean(),
33
-
34
- uid: Joi.number(),
35
-
36
- name: Joi.string().allow(""),
37
-
38
- last_name: Joi.string().allow(""),
39
-
40
- gender: Joi.string().allow(""),
41
-
42
- first_name: Joi.string().allow(""),
43
-
44
- mobile: Joi.string().allow(""),
40
+ _id: Joi.string().allow("").required(),
41
+ affiliate_meta: Joi.any().required(),
42
+ affiliate_store_id: Joi.string().allow("").required(),
43
+ amount_paid: Joi.number().required(),
44
+ avl_qty: Joi.number().required(),
45
+ company_id: Joi.number().required(),
46
+ delivery_charge: Joi.number().required(),
47
+ discount: Joi.number().required(),
48
+ fynd_store_id: Joi.string().allow("").required(),
49
+ hsn_code_id: Joi.string().allow("").required(),
50
+ identifier: Joi.any().required(),
51
+ item_id: Joi.number().required(),
52
+ item_size: Joi.string().allow("").required(),
53
+ modified_on: Joi.string().allow("").required(),
54
+ pdf_links: OrderModel.MarketPlacePdf(),
55
+ price_effective: Joi.number().required(),
56
+ price_marked: Joi.number().required(),
57
+ quantity: Joi.number().required(),
58
+ seller_identifier: Joi.string().allow("").required(),
59
+ sku: Joi.string().allow("").required(),
60
+ store_id: Joi.number().required(),
61
+ transfer_price: Joi.number().required(),
62
+ unit_price: Joi.number().required(),
45
63
  });
46
64
  }
47
-
48
- static PaymentModeInfo() {
65
+ static AffiliateBagDetails() {
49
66
  return Joi.object({
50
- type: Joi.string().allow("").required(),
51
-
52
- logo: Joi.string().allow("").required(),
67
+ affiliate_bag_id: Joi.string().allow("").required(),
68
+ affiliate_meta: OrderModel.AffiliateMeta().required(),
69
+ affiliate_order_id: Joi.string().allow("").required(),
70
+ employee_discount: Joi.number(),
71
+ loyalty_discount: Joi.number(),
53
72
  });
54
73
  }
55
-
56
- static ShipmentItemFulFillingStore() {
74
+ static AffiliateConfig() {
57
75
  return Joi.object({
58
- id: Joi.string().allow("").required(),
59
-
60
- code: Joi.string().allow("").required(),
76
+ app: OrderModel.AffiliateAppConfig(),
77
+ inventory: OrderModel.AffiliateInventoryConfig(),
61
78
  });
62
79
  }
63
-
64
- static Prices() {
80
+ static AffiliateDetails() {
65
81
  return Joi.object({
66
- cashback: Joi.number(),
67
-
68
- amount_paid: Joi.number(),
69
-
70
- amount_paid_roundoff: Joi.number(),
71
-
72
- transfer_price: Joi.number(),
73
-
74
- tax_collected_at_source: Joi.number(),
75
-
76
- promotion_effective_discount: Joi.number(),
77
-
78
- refund_amount: Joi.number(),
79
-
80
- cod_charges: Joi.number(),
81
-
82
- delivery_charge: Joi.number(),
83
-
84
- price_effective: Joi.number(),
85
-
86
- fynd_credits: Joi.number(),
87
-
88
- coupon_value: Joi.number(),
89
-
90
- value_of_good: Joi.number(),
91
-
92
- discount: Joi.number(),
93
-
94
- price_marked: Joi.number(),
95
-
96
- refund_credit: Joi.number(),
97
-
98
- cashback_applied: Joi.number(),
82
+ ad_id: Joi.string().allow(""),
83
+ affiliate_bag_id: Joi.string().allow("").required(),
84
+ affiliate_id: Joi.string().allow(""),
85
+ affiliate_meta: OrderModel.AffiliateMeta().required(),
86
+ affiliate_order_id: Joi.string().allow("").required(),
87
+ affiliate_shipment_id: Joi.string().allow("").required(),
88
+ affiliate_store_id: Joi.string().allow("").required(),
89
+ company_affiliate_tag: Joi.string().allow(""),
90
+ pdf_links: OrderModel.PDFLinks(),
91
+ shipment_meta: OrderModel.ShipmentMeta().required(),
99
92
  });
100
93
  }
101
-
102
- static ShipmentStatus() {
94
+ static AffiliateInventoryArticleAssignmentConfig() {
103
95
  return Joi.object({
104
- title: Joi.string().allow("").required(),
105
-
106
- status: Joi.string().allow("").required(),
107
-
108
- hex_code: Joi.string().allow("").required(),
109
-
110
- actual_status: Joi.string().allow("").required(),
111
-
112
- ops_status: Joi.string().allow("").required(),
96
+ post_order_reassignment: Joi.boolean(),
113
97
  });
114
98
  }
115
-
116
- static GSTDetailsData() {
99
+ static AffiliateInventoryConfig() {
117
100
  return Joi.object({
118
- gstin_code: Joi.string().allow("").required(),
119
-
120
- tax_collected_at_source: Joi.number().required(),
121
-
122
- gst_fee: Joi.number().required(),
123
-
124
- value_of_good: Joi.number().required(),
125
-
126
- brand_calculated_amount: Joi.number().required(),
101
+ article_assignment: OrderModel.AffiliateInventoryArticleAssignmentConfig(),
102
+ inventory: OrderModel.AffiliateInventoryStoreConfig(),
103
+ logistics: OrderModel.AffiliateInventoryLogisticsConfig(),
104
+ order: OrderModel.AffiliateInventoryOrderConfig(),
105
+ payment: OrderModel.AffiliateInventoryPaymentConfig(),
127
106
  });
128
107
  }
129
-
130
- static PlatformItem() {
108
+ static AffiliateInventoryLogisticsConfig() {
131
109
  return Joi.object({
132
- size: Joi.string().allow(""),
133
-
134
- images: Joi.array().items(Joi.string().allow("")),
135
-
136
- color: Joi.string().allow("").allow(null),
137
-
138
- name: Joi.string().allow(""),
139
-
140
- l3_category: Joi.number(),
141
-
142
- id: Joi.number(),
143
-
144
- l3_category_name: Joi.string().allow(""),
145
-
146
- can_return: Joi.boolean(),
147
-
148
- department_id: Joi.number(),
149
-
150
- can_cancel: Joi.boolean(),
151
-
152
- image: Joi.array().items(Joi.string().allow("")),
153
-
154
- l1_category: Joi.array().items(Joi.string().allow("")),
155
-
156
- code: Joi.string().allow(""),
110
+ dp_assignment: Joi.boolean(),
157
111
  });
158
112
  }
159
-
160
- static BagUnit() {
113
+ static AffiliateInventoryOrderConfig() {
161
114
  return Joi.object({
162
- shipment_id: Joi.string().allow("").required(),
163
-
164
- status: Joi.any().required(),
165
-
166
- gst: OrderModel.GSTDetailsData(),
167
-
168
- total_shipment_bags: Joi.number().required(),
169
-
170
- can_return: Joi.boolean(),
171
-
172
- prices: OrderModel.Prices(),
173
-
174
- can_cancel: Joi.boolean(),
175
-
176
- item: OrderModel.PlatformItem(),
177
-
178
- bag_id: Joi.number().required(),
179
-
180
- ordering_channel: Joi.string().allow("").required(),
181
-
182
- item_quantity: Joi.number().required(),
115
+ force_reassignment: Joi.boolean(),
183
116
  });
184
117
  }
185
-
186
- static ShipmentItem() {
118
+ static AffiliateInventoryPaymentConfig() {
187
119
  return Joi.object({
188
- user: OrderModel.UserDataInfo(),
189
-
190
- payment_mode_info: OrderModel.PaymentModeInfo(),
191
-
192
- created_at: Joi.string().allow("").required(),
193
-
194
- application: Joi.any(),
195
-
196
- shipment_id: Joi.string().allow(""),
197
-
198
- fulfilling_store: OrderModel.ShipmentItemFulFillingStore(),
199
-
200
- shipment_created_at: Joi.string().allow("").required(),
201
-
202
- total_bags_count: Joi.number().required(),
203
-
204
- id: Joi.string().allow("").required(),
205
-
206
- channel: Joi.any(),
207
-
208
- prices: OrderModel.Prices(),
209
-
210
- fulfilling_centre: Joi.string().allow("").required(),
211
-
212
- payment_methods: Joi.any(),
213
-
214
- total_shipments_in_order: Joi.number().required(),
215
-
216
- shipment_status: OrderModel.ShipmentStatus(),
217
-
218
- bags: Joi.array().items(OrderModel.BagUnit()),
219
-
220
- sla: Joi.any(),
120
+ mode_of_payment: Joi.string().allow(""),
121
+ source: Joi.string().allow(""),
221
122
  });
222
123
  }
223
-
224
- static ShipmentInternalPlatformViewResponse() {
124
+ static AffiliateInventoryStoreConfig() {
225
125
  return Joi.object({
226
- applied_filters: Joi.any(),
227
-
228
- filters: Joi.array().items(OrderModel.FiltersInfo()),
229
-
230
- page: Joi.any(),
231
-
232
- items: Joi.array().items(OrderModel.ShipmentItem()),
126
+ store: Joi.any(),
233
127
  });
234
128
  }
235
-
236
- static Error() {
129
+ static AffiliateMeta() {
237
130
  return Joi.object({
238
- success: Joi.boolean(),
239
-
240
- message: Joi.string().allow(""),
131
+ box_type: Joi.string().allow("").allow(null),
132
+ channel_order_id: Joi.string().allow("").allow(null),
133
+ channel_shipment_id: Joi.string().allow("").allow(null),
134
+ coupon_code: Joi.string().allow("").allow(null),
135
+ due_date: Joi.string().allow("").allow(null),
136
+ employee_discount: Joi.number(),
137
+ is_priority: Joi.boolean(),
138
+ loyalty_discount: Joi.number(),
139
+ order_item_id: Joi.string().allow(""),
140
+ quantity: Joi.number(),
141
+ size_level_total_qty: Joi.number().allow(null),
241
142
  });
242
143
  }
243
-
244
- static BagStateMapper() {
144
+ static AffiliateStoreIdMapping() {
245
145
  return Joi.object({
246
- state_type: Joi.string().allow("").required(),
247
-
248
- is_active: Joi.boolean(),
249
-
250
- app_state_name: Joi.string().allow(""),
251
-
252
- name: Joi.string().allow("").required(),
253
-
254
- bs_id: Joi.number().required(),
255
-
256
- display_name: Joi.string().allow("").required(),
257
-
258
- notify_customer: Joi.boolean(),
259
-
260
- journey_type: Joi.string().allow("").required(),
261
-
262
- app_facing: Joi.boolean(),
263
-
264
- app_display_name: Joi.string().allow(""),
146
+ marketplace_store_id: Joi.string().allow("").required(),
147
+ store_id: Joi.number().required(),
265
148
  });
266
149
  }
267
-
268
- static BagStatusHistory() {
150
+ static AnnouncementResponse() {
269
151
  return Joi.object({
270
- bag_state_mapper: OrderModel.BagStateMapper(),
271
-
272
- updated_at: Joi.string().allow(""),
273
-
274
- state_type: Joi.string().allow(""),
275
-
152
+ company_id: Joi.number(),
276
153
  created_at: Joi.string().allow(""),
277
-
278
- delivery_partner_id: Joi.number().allow(null),
279
-
280
- shipment_id: Joi.string().allow(""),
281
-
282
- delivery_awb_number: Joi.string().allow("").allow(null),
283
-
284
- reasons: Joi.array().items(Joi.any()),
285
-
286
- status: Joi.string().allow("").required(),
287
-
288
- bsh_id: Joi.number(),
289
-
290
- forward: Joi.boolean().allow(null),
291
-
292
- display_name: Joi.string().allow(""),
293
-
294
- state_id: Joi.number(),
295
-
296
- store_id: Joi.number(),
297
-
298
- bag_id: Joi.number(),
299
-
300
- kafka_sync: Joi.boolean(),
301
-
302
- app_display_name: Joi.string().allow(""),
154
+ description: Joi.string().allow(""),
155
+ from_datetime: Joi.string().allow(""),
156
+ id: Joi.number().required(),
157
+ logo_url: Joi.string().allow(""),
158
+ platform_id: Joi.string().allow(""),
159
+ platform_name: Joi.string().allow(""),
160
+ title: Joi.string().allow(""),
161
+ to_datetime: Joi.string().allow(""),
303
162
  });
304
163
  }
305
-
306
- static TrackingList() {
164
+ static AnnouncementsResponse() {
307
165
  return Joi.object({
308
- text: Joi.string().allow("").required(),
309
-
310
- status: Joi.string().allow("").required(),
311
-
312
- time: Joi.string().allow(""),
313
-
314
- is_passed: Joi.boolean(),
315
-
316
- is_current: Joi.boolean(),
166
+ announcements: Joi.array().items(OrderModel.AnnouncementResponse()),
317
167
  });
318
168
  }
319
-
320
- static DPDetailsData() {
169
+ static AppliedPromos() {
321
170
  return Joi.object({
322
- pincode: Joi.string().allow(""),
323
-
324
- name: Joi.string().allow(""),
325
-
326
- id: Joi.number(),
327
-
328
- gst_tag: Joi.string().allow(""),
329
-
330
- country: Joi.string().allow(""),
331
-
332
- track_url: Joi.string().allow("").allow(null),
333
-
334
- eway_bill_id: Joi.string().allow("").allow(null),
335
-
336
- awb_no: Joi.string().allow(""),
171
+ amount: Joi.number(),
172
+ article_quantity: Joi.number(),
173
+ buy_rules: Joi.array().items(OrderModel.BuyRules()),
174
+ discount_rules: Joi.array().items(OrderModel.DiscountRules()),
175
+ mrp_promotion: Joi.boolean(),
176
+ promo_id: Joi.string().allow(""),
177
+ promotion_name: Joi.string().allow(""),
178
+ promotion_type: Joi.string().allow(""),
337
179
  });
338
180
  }
339
-
340
- static Dimensions() {
181
+ static Article() {
341
182
  return Joi.object({
342
- width: Joi.number(),
343
-
344
- length: Joi.number(),
345
-
346
- is_default: Joi.boolean(),
347
-
348
- height: Joi.number(),
349
-
350
- unit: Joi.string().allow(""),
183
+ _id: Joi.string().allow("").required(),
184
+ a_set: Joi.any().allow(null),
185
+ child_details: Joi.any().allow(null),
186
+ code: Joi.string().allow(""),
187
+ dimensions: OrderModel.Dimensions(),
188
+ esp_modified: Joi.any(),
189
+ identifiers: OrderModel.Identifier().required(),
190
+ is_set: Joi.boolean(),
191
+ raw_meta: Joi.any(),
192
+ return_config: OrderModel.ReturnConfig(),
193
+ seller_identifier: Joi.string().allow("").required(),
194
+ size: Joi.string().allow("").required(),
195
+ uid: Joi.string().allow("").required(),
196
+ weight: OrderModel.Weight(),
351
197
  });
352
198
  }
353
-
354
- static Meta() {
199
+ static ArticleDetails() {
355
200
  return Joi.object({
356
- dimension: OrderModel.Dimensions(),
201
+ status: Joi.any(),
357
202
  });
358
203
  }
359
-
360
- static ShipmentPayments() {
204
+ static ArticleDetails1() {
361
205
  return Joi.object({
362
- mode: Joi.string().allow(""),
363
-
364
- logo: Joi.string().allow(""),
365
-
366
- source: Joi.string().allow(""),
206
+ _id: Joi.string().allow("").required(),
207
+ attributes: Joi.any().required(),
208
+ brand_id: Joi.number().required(),
209
+ category: Joi.any().required(),
210
+ dimension: Joi.any().required(),
211
+ quantity: Joi.number().required(),
212
+ weight: Joi.any().required(),
367
213
  });
368
214
  }
369
-
370
- static InvoiceInfo() {
215
+ static Attributes() {
371
216
  return Joi.object({
372
- updated_date: Joi.string().allow(""),
373
-
374
- invoice_url: Joi.string().allow(""),
375
-
376
- label_url: Joi.string().allow(""),
377
-
378
- credit_note_id: Joi.string().allow(""),
379
-
380
- store_invoice_id: Joi.string().allow(""),
217
+ brand_name: Joi.string().allow(""),
218
+ essential: Joi.string().allow(""),
219
+ gender: Joi.array().items(Joi.string().allow("")),
220
+ marketer_address: Joi.string().allow(""),
221
+ marketer_name: Joi.string().allow(""),
222
+ name: Joi.string().allow(""),
223
+ primary_color: Joi.string().allow(""),
224
+ primary_color_hex: Joi.string().allow(""),
225
+ primary_material: Joi.string().allow(""),
381
226
  });
382
227
  }
383
-
384
- static ShipmentStatusData() {
228
+ static B2BPODetails() {
385
229
  return Joi.object({
386
- created_at: Joi.string().allow("").allow(null),
387
-
388
- shipment_id: Joi.string().allow(""),
389
-
390
- status: Joi.string().allow(""),
391
-
392
- bag_list: Joi.array().items(Joi.string().allow("")),
393
-
394
- id: Joi.number(),
230
+ docker_number: Joi.string().allow(""),
231
+ item_base_price: Joi.number(),
232
+ partial_can_ret: Joi.boolean(),
233
+ po_line_amount: Joi.number(),
234
+ po_tax_amount: Joi.number(),
235
+ total_gst_percentage: Joi.number(),
395
236
  });
396
237
  }
397
-
398
- static CurrentStatus() {
238
+ static BagConfigs() {
399
239
  return Joi.object({
400
- bag_state_mapper: OrderModel.BagStateMapper(),
401
-
402
- state_type: Joi.string().allow(""),
403
-
404
- created_at: Joi.string().allow("").allow(null),
405
-
406
- updated_at: Joi.string().allow(""),
407
-
408
- delivery_awb_number: Joi.string().allow(""),
409
-
410
- delivery_partner_id: Joi.number(),
411
-
412
- shipment_id: Joi.string().allow(""),
413
-
414
- status: Joi.string().allow(""),
415
-
416
- current_status_id: Joi.number().required(),
417
-
418
- state_id: Joi.number(),
419
-
420
- store_id: Joi.number(),
421
-
422
- bag_id: Joi.number(),
423
-
424
- kafka_sync: Joi.boolean(),
425
- });
426
- }
427
-
428
- static Identifier() {
429
- return Joi.object({
430
- ean: Joi.string().allow(""),
240
+ allow_force_return: Joi.boolean().required(),
241
+ can_be_cancelled: Joi.boolean().required(),
242
+ enable_tracking: Joi.boolean().required(),
243
+ is_active: Joi.boolean().required(),
244
+ is_customer_return_allowed: Joi.boolean().required(),
245
+ is_returnable: Joi.boolean().required(),
431
246
  });
432
247
  }
433
-
434
- static FinancialBreakup() {
248
+ static BagDetailsPlatformResponse() {
435
249
  return Joi.object({
436
- item_name: Joi.string().allow("").required(),
437
-
438
- cod_charges: Joi.number().required(),
439
-
440
- fynd_credits: Joi.number().required(),
441
-
442
- added_to_fynd_cash: Joi.boolean().required(),
443
-
444
- hsn_code: Joi.string().allow("").required(),
445
-
446
- gst_tax_percentage: Joi.number().required(),
447
-
448
- gst_fee: Joi.number().required(),
449
-
450
- brand_calculated_amount: Joi.number().required(),
451
-
452
- coupon_value: Joi.number().required(),
453
-
454
- cashback_applied: Joi.number().required(),
455
-
456
- amount_paid: Joi.number().required(),
457
-
458
- amount_paid_roundoff: Joi.number(),
459
-
460
- promotion_effective_discount: Joi.number().required(),
461
-
462
- delivery_charge: Joi.number().required(),
463
-
464
- gst_tag: Joi.string().allow("").required(),
465
-
466
- discount: Joi.number().required(),
467
-
468
- price_marked: Joi.number().required(),
469
-
470
- refund_credit: Joi.number().required(),
471
-
472
- coupon_effective_discount: Joi.number().required(),
473
-
474
- size: Joi.string().allow("").required(),
475
-
476
- cashback: Joi.number().required(),
477
-
478
- transfer_price: Joi.number().required(),
479
-
480
- tax_collected_at_source: Joi.number(),
481
-
482
- identifiers: OrderModel.Identifier().required(),
483
-
484
- total_units: Joi.number().required(),
485
-
486
- price_effective: Joi.number().required(),
487
-
488
- value_of_good: Joi.number().required(),
250
+ affiliate_bag_details: OrderModel.AffiliateBagDetails().required(),
251
+ affiliate_details: OrderModel.AffiliateDetails(),
252
+ applied_promos: Joi.array().items(Joi.any()),
253
+ article: OrderModel.Article().required(),
254
+ article_details: OrderModel.ArticleDetails(),
255
+ b_id: Joi.number().required(),
256
+ b_type: Joi.string().allow(""),
257
+ bag_status: Joi.array().items(OrderModel.BagStatusHistory()).required(),
258
+ bag_status_history: OrderModel.BagStatusHistory(),
259
+ bag_update_time: Joi.number(),
260
+ brand: OrderModel.Brand().required(),
261
+ current_operational_status: OrderModel.BagStatusHistory().required(),
262
+ current_status: OrderModel.BagStatusHistory().required(),
263
+ dates: OrderModel.Dates(),
264
+ display_name: Joi.string().allow(""),
265
+ entity_type: Joi.string().allow(""),
266
+ financial_breakup: Joi.array()
267
+ .items(OrderModel.FinancialBreakup())
268
+ .required(),
269
+ gst_details: OrderModel.BagGSTDetails().required(),
270
+ identifier: Joi.string().allow(""),
271
+ item: OrderModel.Item().required(),
272
+ journey_type: Joi.string().allow("").required(),
273
+ line_number: Joi.number(),
274
+ meta: OrderModel.BagMeta(),
275
+ no_of_bags_order: Joi.number(),
276
+ operational_status: Joi.string().allow(""),
277
+ order_integration_id: Joi.string().allow("").allow(null),
278
+ ordering_store: OrderModel.Store(),
279
+ original_bag_list: Joi.array().items(Joi.number()),
280
+ parent_promo_bags: Joi.any(),
281
+ prices: OrderModel.Prices().required(),
282
+ qc_required: Joi.any(),
283
+ quantity: Joi.number(),
284
+ reasons: Joi.array().items(Joi.any()),
285
+ restore_coupon: Joi.boolean(),
286
+ restore_promos: Joi.any(),
287
+ seller_identifier: Joi.string().allow(""),
288
+ shipment_id: Joi.string().allow(""),
289
+ status: OrderModel.BagReturnableCancelableStatus().required(),
290
+ tags: Joi.array().items(Joi.string().allow("")),
489
291
  });
490
292
  }
491
-
492
293
  static BagGST() {
493
294
  return Joi.object({
494
- gstin_code: Joi.string().allow(""),
495
-
496
- hsn_code: Joi.string().allow(""),
497
-
498
- gst_tax_percentage: Joi.number(),
499
-
295
+ brand_calculated_amount: Joi.number(),
500
296
  gst_fee: Joi.number(),
501
-
502
297
  gst_tag: Joi.string().allow(""),
503
-
504
- value_of_good: Joi.number(),
505
-
506
- brand_calculated_amount: Joi.number(),
507
-
298
+ gst_tax_percentage: Joi.number(),
299
+ gstin_code: Joi.string().allow(""),
300
+ hsn_code: Joi.string().allow(""),
508
301
  is_default_hsn_code: Joi.boolean(),
302
+ value_of_good: Joi.number(),
509
303
  });
510
304
  }
511
-
512
- static OrderBagArticle() {
305
+ static BagGSTDetails() {
513
306
  return Joi.object({
514
- return_config: Joi.any(),
515
-
516
- uid: Joi.string().allow(""),
517
-
518
- identifiers: Joi.any(),
307
+ brand_calculated_amount: Joi.number().required(),
308
+ cgst_gst_fee: Joi.string().allow("").required(),
309
+ cgst_tax_percentage: Joi.number().required(),
310
+ gst_fee: Joi.number().required(),
311
+ gst_tag: Joi.string().allow("").required(),
312
+ gst_tax_percentage: Joi.number().required(),
313
+ gstin_code: Joi.string().allow("").allow(null),
314
+ hsn_code: Joi.string().allow("").required(),
315
+ hsn_code_id: Joi.string().allow("").required(),
316
+ igst_gst_fee: Joi.string().allow("").required(),
317
+ igst_tax_percentage: Joi.number().required(),
318
+ is_default_hsn_code: Joi.boolean(),
319
+ sgst_gst_fee: Joi.string().allow("").required(),
320
+ sgst_tax_percentage: Joi.number().required(),
321
+ tax_collected_at_source: Joi.number().required(),
322
+ value_of_good: Joi.number().required(),
519
323
  });
520
324
  }
521
-
522
- static PlatformDeliveryAddress() {
325
+ static BagMeta() {
523
326
  return Joi.object({
524
- latitude: Joi.number(),
525
-
526
- phone: Joi.string().allow(""),
527
-
528
- created_at: Joi.string().allow(""),
529
-
530
- email: Joi.string().allow(""),
531
-
532
- updated_at: Joi.string().allow(""),
533
-
534
- pincode: Joi.string().allow(""),
535
-
536
- version: Joi.string().allow(""),
537
-
538
- address1: Joi.string().allow(""),
539
-
540
- contact_person: Joi.string().allow(""),
541
-
542
- landmark: Joi.string().allow(""),
543
-
544
- address2: Joi.string().allow(""),
545
-
546
- area: Joi.string().allow(""),
547
-
548
- state: Joi.string().allow(""),
549
-
550
- country: Joi.string().allow(""),
551
-
552
- address_type: Joi.string().allow(""),
553
-
554
- longitude: Joi.number(),
555
-
556
- address_category: Joi.string().allow(""),
557
-
558
- city: Joi.string().allow(""),
327
+ b2b_po_details: OrderModel.B2BPODetails(),
559
328
  });
560
329
  }
561
-
562
- static BagConfigs() {
330
+ static BagReturnableCancelableStatus() {
563
331
  return Joi.object({
332
+ can_be_cancelled: Joi.boolean().required(),
333
+ enable_tracking: Joi.boolean().required(),
564
334
  is_active: Joi.boolean().required(),
565
-
566
335
  is_customer_return_allowed: Joi.boolean().required(),
567
-
568
- can_be_cancelled: Joi.boolean().required(),
569
-
570
- allow_force_return: Joi.boolean().required(),
571
-
572
336
  is_returnable: Joi.boolean().required(),
573
-
574
- enable_tracking: Joi.boolean().required(),
575
- });
576
- }
577
-
578
- static ItemCriterias() {
579
- return Joi.object({
580
- item_brand: Joi.array().items(Joi.number()),
581
337
  });
582
338
  }
583
-
584
- static BuyRules() {
339
+ static Bags() {
585
340
  return Joi.object({
586
- item_criteria: OrderModel.ItemCriterias(),
587
-
588
- cart_conditions: Joi.any(),
341
+ affiliate_bag_id: Joi.string().allow(""),
342
+ affiliate_order_id: Joi.string().allow(""),
343
+ bag_id: Joi.number(),
344
+ is_locked: Joi.boolean(),
589
345
  });
590
346
  }
591
-
592
- static DiscountRules() {
347
+ static BagStateMapper() {
593
348
  return Joi.object({
594
- value: Joi.number(),
595
-
596
- type: Joi.string().allow(""),
349
+ app_display_name: Joi.string().allow(""),
350
+ app_facing: Joi.boolean(),
351
+ app_state_name: Joi.string().allow(""),
352
+ bs_id: Joi.number().required(),
353
+ display_name: Joi.string().allow("").required(),
354
+ is_active: Joi.boolean(),
355
+ journey_type: Joi.string().allow("").required(),
356
+ name: Joi.string().allow("").required(),
357
+ notify_customer: Joi.boolean(),
358
+ state_type: Joi.string().allow("").required(),
597
359
  });
598
360
  }
599
-
600
- static AppliedPromos() {
361
+ static BagStatusHistory() {
601
362
  return Joi.object({
602
- promotion_type: Joi.string().allow(""),
603
-
604
- promotion_name: Joi.string().allow(""),
605
-
606
- promo_id: Joi.string().allow(""),
607
-
608
- article_quantity: Joi.number(),
609
-
610
- mrp_promotion: Joi.boolean(),
611
-
612
- amount: Joi.number(),
613
-
614
- buy_rules: Joi.array().items(OrderModel.BuyRules()),
615
-
616
- discount_rules: Joi.array().items(OrderModel.DiscountRules()),
617
- });
618
- }
619
-
620
- static OrderBrandName() {
621
- return Joi.object({
622
- created_on: Joi.string().allow("").required(),
623
-
624
- modified_on: Joi.string().allow(""),
625
-
626
- id: Joi.number().required(),
627
-
628
- brand_name: Joi.string().allow("").required(),
629
-
630
- company: Joi.string().allow("").allow(null).required(),
631
-
632
- logo: Joi.string().allow("").required(),
363
+ app_display_name: Joi.string().allow(""),
364
+ bag_id: Joi.number(),
365
+ bag_state_mapper: OrderModel.BagStateMapper(),
366
+ bsh_id: Joi.number(),
367
+ created_at: Joi.string().allow(""),
368
+ delivery_awb_number: Joi.string().allow("").allow(null),
369
+ delivery_partner_id: Joi.number().allow(null),
370
+ display_name: Joi.string().allow(""),
371
+ forward: Joi.boolean().allow(null),
372
+ kafka_sync: Joi.boolean(),
373
+ reasons: Joi.array().items(Joi.any()),
374
+ shipment_id: Joi.string().allow(""),
375
+ state_id: Joi.number(),
376
+ state_type: Joi.string().allow(""),
377
+ status: Joi.string().allow("").required(),
378
+ store_id: Joi.number(),
379
+ updated_at: Joi.string().allow(""),
633
380
  });
634
381
  }
635
-
636
- static OrderBags() {
382
+ static BagUnit() {
637
383
  return Joi.object({
638
- display_name: Joi.string().allow(""),
639
-
640
- current_status: OrderModel.CurrentStatus(),
641
-
642
- financial_breakup: OrderModel.FinancialBreakup(),
643
-
644
- gst_details: OrderModel.BagGST(),
645
-
646
- seller_identifier: Joi.string().allow(""),
647
-
648
- article: OrderModel.OrderBagArticle(),
649
-
650
- can_return: Joi.boolean(),
651
-
652
- delivery_address: OrderModel.PlatformDeliveryAddress(),
653
-
654
- bag_configs: OrderModel.BagConfigs(),
655
-
656
- quantity: Joi.number(),
657
-
658
- applied_promos: Joi.array().items(OrderModel.AppliedPromos()),
659
-
660
- parent_promo_bags: Joi.any(),
661
-
384
+ bag_id: Joi.number().required(),
662
385
  can_cancel: Joi.boolean(),
663
-
664
- brand: OrderModel.OrderBrandName(),
665
-
666
- entity_type: Joi.string().allow(""),
667
-
668
- prices: OrderModel.Prices(),
669
-
670
- line_number: Joi.number(),
671
-
386
+ can_return: Joi.boolean(),
387
+ gst: OrderModel.GSTDetailsData(),
672
388
  item: OrderModel.PlatformItem(),
673
-
674
- bag_id: Joi.number().required(),
675
-
676
- identifier: Joi.string().allow(""),
389
+ item_quantity: Joi.number().required(),
390
+ ordering_channel: Joi.string().allow("").required(),
391
+ prices: OrderModel.Prices(),
392
+ shipment_id: Joi.string().allow("").required(),
393
+ status: Joi.any().required(),
394
+ total_shipment_bags: Joi.number().required(),
677
395
  });
678
396
  }
679
-
680
- static OrderingStoreDetails() {
397
+ static BaseResponse() {
681
398
  return Joi.object({
682
- phone: Joi.string().allow("").required(),
683
-
684
- meta: Joi.any().required(),
685
-
686
- pincode: Joi.string().allow("").required(),
687
-
688
- address: Joi.string().allow("").required(),
689
-
690
- contact_person: Joi.string().allow("").required(),
691
-
692
- ordering_store_id: Joi.number().required(),
693
-
694
- country: Joi.string().allow("").required(),
695
-
696
- state: Joi.string().allow("").required(),
697
-
698
- store_name: Joi.string().allow("").required(),
699
-
700
- city: Joi.string().allow("").required(),
701
-
702
- code: Joi.string().allow("").required(),
399
+ message: Joi.string().allow("").required(),
400
+ success: Joi.boolean().required(),
703
401
  });
704
402
  }
705
-
706
- static UserDetailsData() {
403
+ static BillingInfo() {
707
404
  return Joi.object({
708
- phone: Joi.string().allow("").required(),
709
-
710
- email: Joi.string().allow(""),
711
-
712
- pincode: Joi.string().allow("").required(),
713
-
714
- address: Joi.string().allow("").required(),
715
-
716
- name: Joi.string().allow("").required(),
717
-
718
- country: Joi.string().allow("").required(),
719
-
720
- state: Joi.string().allow("").required(),
721
-
405
+ address1: Joi.string().allow("").required(),
406
+ address2: Joi.string().allow(""),
407
+ alternate_email: Joi.string().allow(""),
408
+ alternate_mobile_number: Joi.string().allow(""),
722
409
  city: Joi.string().allow("").required(),
723
- });
724
- }
725
-
726
- static FulfillingStore() {
727
- return Joi.object({
728
- phone: Joi.string().allow("").required(),
729
-
730
- meta: Joi.any().required(),
731
-
732
- pincode: Joi.string().allow("").required(),
733
-
734
- fulfillment_channel: Joi.string().allow("").required(),
735
-
736
- address: Joi.string().allow("").required(),
737
-
738
- contact_person: Joi.string().allow("").required(),
739
-
740
- id: Joi.number().required(),
741
-
742
410
  country: Joi.string().allow("").required(),
743
-
411
+ country_code: Joi.string().allow(""),
412
+ customer_code: Joi.string().allow(""),
413
+ external_customer_code: Joi.string().allow(""),
414
+ first_name: Joi.string().allow("").required(),
415
+ floor_no: Joi.string().allow(""),
416
+ gender: Joi.string().allow(""),
417
+ house_no: Joi.string().allow(""),
418
+ last_name: Joi.string().allow(""),
419
+ middle_name: Joi.string().allow(""),
420
+ pincode: Joi.string().allow("").required(),
421
+ primary_email: Joi.string().allow("").required(),
422
+ primary_mobile_number: Joi.string().allow("").required(),
744
423
  state: Joi.string().allow("").required(),
745
-
746
- store_name: Joi.string().allow("").required(),
747
-
748
- city: Joi.string().allow("").required(),
749
-
750
- code: Joi.string().allow("").required(),
424
+ state_code: Joi.string().allow(""),
425
+ title: Joi.string().allow(""),
751
426
  });
752
427
  }
753
-
754
- static ShipmentTimeStamp() {
428
+ static BillingStaffDetails() {
755
429
  return Joi.object({
756
- t_min: Joi.string().allow(""),
757
-
758
- t_max: Joi.string().allow(""),
430
+ employee_code: Joi.string().allow(""),
431
+ first_name: Joi.string().allow(""),
432
+ last_name: Joi.string().allow(""),
433
+ staff_id: Joi.number(),
434
+ user: Joi.string().allow(""),
759
435
  });
760
436
  }
761
-
762
- static LockData() {
437
+ static Brand() {
763
438
  return Joi.object({
764
- locked: Joi.boolean(),
765
-
766
- lock_message: Joi.string().allow(""),
767
-
768
- mto: Joi.boolean(),
439
+ brand_id: Joi.number().required(),
440
+ brand_name: Joi.string().allow("").required(),
441
+ company: Joi.string().allow("").required(),
442
+ created_on: Joi.number(),
443
+ credit_note_allowed: Joi.boolean(),
444
+ credit_note_expiry_days: Joi.number().allow(null),
445
+ invoice_prefix: Joi.string().allow("").allow(null),
446
+ is_virtual_invoice: Joi.boolean().allow(null),
447
+ logo: Joi.string().allow(""),
448
+ modified_on: Joi.number(),
449
+ pickup_location: Joi.string().allow("").allow(null),
450
+ script_last_ran: Joi.string().allow("").allow(null),
451
+ start_date: Joi.string().allow("").allow(null),
769
452
  });
770
453
  }
771
-
772
- static DebugInfo() {
454
+ static BulkActionDetailsDataField() {
773
455
  return Joi.object({
774
- stormbreaker_uuid: Joi.string().allow(""),
456
+ batch_id: Joi.string().allow(""),
457
+ company_id: Joi.string().allow(""),
458
+ failed_shipments_count: Joi.number(),
459
+ processing_shipments_count: Joi.number(),
460
+ successful_shipment_ids: Joi.array().items(Joi.string().allow("")),
461
+ successful_shipments_count: Joi.number(),
462
+ total_shipments_count: Joi.number(),
775
463
  });
776
464
  }
777
-
778
- static EInvoice() {
465
+ static BulkActionDetailsResponse() {
779
466
  return Joi.object({
780
- error_code: Joi.string().allow(""),
781
-
782
- irn: Joi.string().allow(""),
783
-
784
- acknowledge_no: Joi.number(),
785
-
786
- error_message: Joi.string().allow(""),
787
-
788
- acknowledge_date: Joi.string().allow(""),
789
-
790
- signed_invoice: Joi.string().allow(""),
791
-
792
- signed_qr_code: Joi.string().allow(""),
467
+ data: Joi.array().items(OrderModel.BulkActionDetailsDataField()),
468
+ error: Joi.array().items(Joi.string().allow("")),
469
+ failed_records: Joi.array().items(Joi.string().allow("")),
470
+ message: Joi.string().allow(""),
471
+ status: Joi.boolean(),
472
+ success: Joi.string().allow(""),
473
+ uploaded_by: Joi.string().allow(""),
474
+ uploaded_on: Joi.string().allow(""),
475
+ user_id: Joi.string().allow(""),
793
476
  });
794
477
  }
795
-
796
- static EinvoiceInfo() {
478
+ static BulkActionPayload() {
797
479
  return Joi.object({
798
- credit_note: OrderModel.EInvoice(),
799
-
800
- invoice: OrderModel.EInvoice(),
480
+ url: Joi.string().allow("").required(),
801
481
  });
802
482
  }
803
-
804
- static BuyerDetails() {
483
+ static BulkActionResponse() {
805
484
  return Joi.object({
806
- pincode: Joi.number().required(),
807
-
808
- address: Joi.string().allow("").allow(null).required(),
809
-
810
- name: Joi.string().allow("").required(),
811
-
812
- ajio_site_id: Joi.string().allow(""),
813
-
814
- gstin: Joi.string().allow("").required(),
815
-
816
- state: Joi.string().allow("").required(),
817
-
818
- city: Joi.string().allow("").required(),
485
+ message: Joi.string().allow(""),
486
+ status: Joi.boolean(),
819
487
  });
820
488
  }
821
-
822
- static Formatted() {
489
+ static BulkInvoiceLabelResponse() {
823
490
  return Joi.object({
824
- f_min: Joi.string().allow(""),
825
-
826
- f_max: Joi.string().allow(""),
827
- });
828
- }
829
-
830
- static ShipmentMeta() {
831
- return Joi.object({
832
- dp_name: Joi.string().allow(""),
833
-
834
- order_type: Joi.string().allow("").allow(null),
835
-
836
- return_awb_number: Joi.string().allow(""),
837
-
838
- ewaybill_info: Joi.any().allow(null),
839
-
840
- packaging_name: Joi.string().allow(""),
841
-
842
- return_details: Joi.any(),
843
-
844
- same_store_available: Joi.boolean().required(),
845
-
846
- due_date: Joi.string().allow(""),
847
-
848
- marketplace_store_id: Joi.string().allow(""),
849
-
850
- return_affiliate_shipment_id: Joi.string().allow(""),
851
-
852
- dp_options: Joi.any(),
853
-
854
- timestamp: OrderModel.ShipmentTimeStamp(),
855
-
856
- auto_trigger_dp_assignment_acf: Joi.boolean().required(),
857
-
858
- forward_affiliate_order_id: Joi.string().allow(""),
859
-
860
- dp_id: Joi.string().allow("").allow(null),
861
-
862
- shipment_weight: Joi.number(),
863
-
864
- box_type: Joi.string().allow("").allow(null),
865
-
866
- return_affiliate_order_id: Joi.string().allow(""),
867
-
868
- assign_dp_from_sb: Joi.boolean(),
869
-
870
- weight: Joi.number().required(),
871
-
872
- bag_weight: Joi.any(),
873
-
874
- lock_data: OrderModel.LockData(),
875
-
876
- b2c_buyer_details: Joi.any().allow(null),
877
-
878
- debug_info: OrderModel.DebugInfo(),
879
-
880
- awb_number: Joi.string().allow(""),
881
-
882
- po_number: Joi.string().allow(""),
883
-
884
- return_store_node: Joi.number(),
885
-
886
- store_invoice_updated_date: Joi.string().allow(""),
887
-
888
- shipment_volumetric_weight: Joi.number(),
889
-
890
- einvoice_info: OrderModel.EinvoiceInfo(),
891
-
892
- b2b_buyer_details: OrderModel.BuyerDetails(),
893
-
894
- forward_affiliate_shipment_id: Joi.string().allow(""),
895
-
896
- external: Joi.any(),
897
-
898
- formatted: OrderModel.Formatted(),
899
-
900
- fulfilment_priority_text: Joi.string().allow("").allow(null),
901
-
902
- dp_sort_key: Joi.string().allow(""),
903
- });
904
- }
905
-
906
- static PDFLinks() {
907
- return Joi.object({
908
- label_a4: Joi.string().allow(""),
909
-
910
- invoice: Joi.string().allow(""),
911
-
912
- b2b: Joi.string().allow(""),
913
-
914
- label: Joi.string().allow(""),
915
-
916
- invoice_type: Joi.string().allow("").required(),
917
-
918
- po_invoice: Joi.string().allow(""),
919
-
920
- label_a6: Joi.string().allow(""),
921
-
922
- credit_note_url: Joi.string().allow(""),
923
-
924
- delivery_challan_a4: Joi.string().allow(""),
925
-
926
- invoice_pos: Joi.string().allow(""),
927
-
928
- label_type: Joi.string().allow("").required(),
929
-
930
- label_pos: Joi.string().allow(""),
931
-
932
- invoice_a4: Joi.string().allow(""),
933
-
934
- invoice_a6: Joi.string().allow(""),
935
- });
936
- }
937
-
938
- static AffiliateMeta() {
939
- return Joi.object({
940
- size_level_total_qty: Joi.number().allow(null),
941
-
942
- order_item_id: Joi.string().allow(""),
943
-
944
- loyalty_discount: Joi.number(),
945
-
946
- is_priority: Joi.boolean(),
947
-
948
- quantity: Joi.number(),
949
-
950
- box_type: Joi.string().allow("").allow(null),
951
-
952
- employee_discount: Joi.number(),
953
-
954
- channel_shipment_id: Joi.string().allow("").allow(null),
955
-
956
- due_date: Joi.string().allow("").allow(null),
957
-
958
- channel_order_id: Joi.string().allow("").allow(null),
959
-
960
- coupon_code: Joi.string().allow("").allow(null),
961
- });
962
- }
963
-
964
- static AffiliateDetails() {
965
- return Joi.object({
966
- affiliate_store_id: Joi.string().allow("").required(),
967
-
968
- ad_id: Joi.string().allow(""),
969
-
970
- company_affiliate_tag: Joi.string().allow(""),
971
-
972
- shipment_meta: OrderModel.ShipmentMeta().required(),
973
-
974
- affiliate_bag_id: Joi.string().allow("").required(),
975
-
976
- pdf_links: OrderModel.PDFLinks(),
977
-
978
- affiliate_meta: OrderModel.AffiliateMeta().required(),
979
-
980
- affiliate_id: Joi.string().allow(""),
981
-
982
- affiliate_order_id: Joi.string().allow("").required(),
983
-
984
- affiliate_shipment_id: Joi.string().allow("").required(),
985
- });
986
- }
987
-
988
- static OrderDetailsData() {
989
- return Joi.object({
990
- order_date: Joi.string().allow(""),
991
-
992
- order_value: Joi.string().allow(""),
993
-
994
- cod_charges: Joi.string().allow(""),
995
-
996
- ordering_channel_logo: Joi.any(),
997
-
998
- affiliate_id: Joi.string().allow(""),
999
-
1000
- source: Joi.string().allow(""),
1001
-
1002
- tax_details: Joi.any(),
1003
-
1004
- fynd_order_id: Joi.string().allow("").required(),
1005
-
1006
- ordering_channel: Joi.string().allow(""),
1007
- });
1008
- }
1009
-
1010
- static PlatformShipment() {
1011
- return Joi.object({
1012
- shipment_id: Joi.string().allow("").required(),
1013
-
1014
- custom_meta: Joi.array().items(Joi.any()),
1015
-
1016
- shipment_quantity: Joi.number(),
1017
-
1018
- bag_status_history: Joi.array().items(OrderModel.BagStatusHistory()),
1019
-
1020
- tracking_list: Joi.array().items(OrderModel.TrackingList()),
1021
-
1022
- dp_details: OrderModel.DPDetailsData(),
1023
-
1024
- vertical: Joi.string().allow("").allow(null),
1025
-
1026
- priority_text: Joi.string().allow("").allow(null),
1027
-
1028
- gst_details: OrderModel.GSTDetailsData(),
1029
-
1030
- meta: OrderModel.Meta(),
1031
-
1032
- payments: OrderModel.ShipmentPayments(),
1033
-
1034
- delivery_slot: Joi.any(),
1035
-
1036
- invoice: OrderModel.InvoiceInfo(),
1037
-
1038
- picked_date: Joi.string().allow(""),
1039
-
1040
- status: OrderModel.ShipmentStatusData(),
1041
-
1042
- platform_logo: Joi.string().allow(""),
1043
-
1044
- shipment_status: Joi.string().allow(""),
1045
-
1046
- bags: Joi.array().items(OrderModel.OrderBags()),
1047
-
1048
- ordering_store: OrderModel.OrderingStoreDetails(),
1049
-
1050
- delivery_details: OrderModel.UserDetailsData(),
1051
-
1052
- shipment_images: Joi.array().items(Joi.string().allow("")),
1053
-
1054
- user_agent: Joi.string().allow(""),
1055
-
1056
- fulfilling_store: OrderModel.FulfillingStore(),
1057
-
1058
- lock_status: Joi.boolean(),
1059
-
1060
- operational_status: Joi.string().allow(""),
1061
-
1062
- affiliate_details: OrderModel.AffiliateDetails(),
1063
-
1064
- packaging_type: Joi.string().allow(""),
1065
-
1066
- payment_methods: Joi.any(),
1067
-
1068
- journey_type: Joi.string().allow(""),
1069
-
1070
- payment_mode: Joi.string().allow(""),
1071
-
1072
- total_items: Joi.number(),
1073
-
1074
- forward_shipment_id: Joi.string().allow(""),
1075
-
1076
- order: OrderModel.OrderDetailsData(),
1077
-
1078
- total_bags: Joi.number(),
1079
-
1080
- enable_dp_tracking: Joi.boolean(),
1081
-
1082
- prices: OrderModel.Prices(),
1083
-
1084
- billing_details: OrderModel.UserDetailsData(),
1085
-
1086
- fulfilment_priority: Joi.number(),
1087
-
1088
- invoice_id: Joi.string().allow(""),
1089
-
1090
- coupon: Joi.any(),
491
+ batch_id: Joi.string().allow("").required(),
492
+ company_id: Joi.string().allow(""),
493
+ data: Joi.any(),
494
+ do_invoice_label_generated: Joi.boolean().required(),
495
+ invoice: Joi.any(),
496
+ invoice_status: Joi.string().allow(""),
497
+ label: Joi.any(),
498
+ store_code: Joi.string().allow(""),
499
+ store_id: Joi.string().allow(""),
500
+ store_name: Joi.string().allow(""),
1091
501
  });
1092
502
  }
1093
-
1094
- static ShipmentInfoResponse() {
503
+ static BulkInvoicingResponse() {
1095
504
  return Joi.object({
1096
- shipments: Joi.array().items(OrderModel.PlatformShipment()),
1097
-
1098
- success: Joi.boolean().required(),
1099
-
1100
505
  message: Joi.string().allow(""),
1101
- });
1102
- }
1103
-
1104
- static OrderMeta() {
1105
- return Joi.object({
1106
- customer_note: Joi.string().allow(""),
1107
-
1108
- files: Joi.array().items(Joi.any()),
1109
-
1110
- payment_type: Joi.string().allow(""),
1111
-
1112
- order_child_entities: Joi.array().items(Joi.string().allow("")),
1113
-
1114
- currency_symbol: Joi.string().allow(""),
1115
-
1116
- order_platform: Joi.string().allow(""),
1117
-
1118
- order_tags: Joi.array().items(Joi.any()),
1119
-
1120
- order_type: Joi.string().allow(""),
1121
-
1122
- ordering_store: Joi.number(),
1123
-
1124
- comment: Joi.string().allow(""),
1125
-
1126
- cart_id: Joi.number(),
1127
-
1128
- extra_meta: Joi.any(),
1129
-
1130
- employee_id: Joi.number(),
1131
-
1132
- staff: Joi.any(),
1133
-
1134
- mongo_cart_id: Joi.number(),
1135
- });
1136
- }
1137
-
1138
- static OrderDict() {
1139
- return Joi.object({
1140
- meta: OrderModel.OrderMeta(),
1141
-
1142
- fynd_order_id: Joi.string().allow("").required(),
1143
-
1144
- prices: OrderModel.Prices(),
1145
-
1146
- payment_methods: Joi.any(),
1147
-
1148
- tax_details: Joi.any(),
1149
-
1150
- order_date: Joi.string().allow("").required(),
1151
- });
1152
- }
1153
-
1154
- static ShipmentDetailsResponse() {
1155
- return Joi.object({
1156
506
  success: Joi.boolean().required(),
1157
-
1158
- shipments: Joi.array().items(OrderModel.PlatformShipment()),
1159
-
1160
- order: OrderModel.OrderDict(),
1161
- });
1162
- }
1163
-
1164
- static SubLane() {
1165
- return Joi.object({
1166
- text: Joi.string().allow(""),
1167
-
1168
- index: Joi.number(),
1169
-
1170
- total_items: Joi.number(),
1171
-
1172
- actions: Joi.array().items(Joi.any()),
1173
-
1174
- value: Joi.string().allow(""),
1175
- });
1176
- }
1177
-
1178
- static SuperLane() {
1179
- return Joi.object({
1180
- value: Joi.string().allow("").required(),
1181
-
1182
- text: Joi.string().allow("").required(),
1183
-
1184
- options: Joi.array().items(OrderModel.SubLane()),
1185
-
1186
- total_items: Joi.number(),
1187
507
  });
1188
508
  }
1189
-
1190
- static LaneConfigResponse() {
509
+ static bulkListingData() {
1191
510
  return Joi.object({
1192
- super_lanes: Joi.array().items(OrderModel.SuperLane()),
511
+ batch_id: Joi.string().allow(""),
512
+ company_id: Joi.number(),
513
+ excel_url: Joi.string().allow(""),
514
+ failed: Joi.number(),
515
+ failed_shipments: Joi.array().items(Joi.any()),
516
+ file_name: Joi.string().allow(""),
517
+ id: Joi.string().allow(""),
518
+ processing: Joi.number(),
519
+ processing_shipments: Joi.array().items(Joi.string().allow("")),
520
+ status: Joi.string().allow(""),
521
+ store_code: Joi.string().allow(""),
522
+ store_id: Joi.number(),
523
+ store_name: Joi.string().allow(""),
524
+ successful: Joi.number(),
525
+ successful_shipments: Joi.array().items(Joi.any()),
526
+ total: Joi.number(),
527
+ uploaded_on: Joi.string().allow(""),
528
+ user_id: Joi.string().allow(""),
529
+ user_name: Joi.string().allow(""),
1193
530
  });
1194
531
  }
1195
-
1196
- static Page() {
532
+ static BulkListingPage() {
1197
533
  return Joi.object({
1198
- item_total: Joi.number(),
1199
-
1200
- next_id: Joi.string().allow(""),
1201
-
1202
- has_previous: Joi.boolean(),
1203
-
1204
- has_next: Joi.boolean(),
1205
-
1206
534
  current: Joi.number(),
1207
-
1208
- type: Joi.string().allow("").required(),
1209
-
535
+ has_next: Joi.boolean(),
536
+ has_previous: Joi.boolean(),
1210
537
  size: Joi.number(),
538
+ total: Joi.number(),
539
+ type: Joi.string().allow(""),
1211
540
  });
1212
541
  }
1213
-
1214
- static PlatformBreakupValues() {
1215
- return Joi.object({
1216
- value: Joi.string().allow(""),
1217
-
1218
- name: Joi.string().allow(""),
1219
-
1220
- display: Joi.string().allow(""),
1221
- });
1222
- }
1223
-
1224
- static PlatformChannel() {
1225
- return Joi.object({
1226
- name: Joi.string().allow(""),
1227
-
1228
- logo: Joi.string().allow(""),
1229
- });
1230
- }
1231
-
1232
- static PlatformOrderItems() {
1233
- return Joi.object({
1234
- meta: Joi.any(),
1235
-
1236
- payment_mode: Joi.string().allow(""),
1237
-
1238
- shipments: Joi.array().items(OrderModel.PlatformShipment()),
1239
-
1240
- breakup_values: Joi.array().items(OrderModel.PlatformBreakupValues()),
1241
-
1242
- order_created_time: Joi.string().allow(""),
1243
-
1244
- order_value: Joi.number(),
1245
-
1246
- channel: OrderModel.PlatformChannel(),
1247
-
1248
- total_order_value: Joi.number(),
1249
-
1250
- user_info: OrderModel.UserDataInfo(),
1251
-
1252
- order_id: Joi.string().allow(""),
1253
- });
1254
- }
1255
-
1256
- static OrderListingResponse() {
542
+ static BulkListingResponse() {
1257
543
  return Joi.object({
1258
- total_count: Joi.number(),
1259
-
1260
- page: OrderModel.Page(),
1261
-
1262
- message: Joi.string().allow(""),
1263
-
544
+ data: Joi.array().items(OrderModel.bulkListingData()),
545
+ error: Joi.string().allow(""),
546
+ page: OrderModel.BulkListingPage(),
1264
547
  success: Joi.boolean(),
1265
-
1266
- lane: Joi.string().allow(""),
1267
-
1268
- items: Joi.array().items(OrderModel.PlatformOrderItems()),
1269
548
  });
1270
549
  }
1271
-
1272
- static Options() {
550
+ static BuyerDetails() {
1273
551
  return Joi.object({
1274
- value: Joi.number(),
1275
-
1276
- text: Joi.string().allow(""),
552
+ address: Joi.string().allow("").allow(null).required(),
553
+ ajio_site_id: Joi.string().allow(""),
554
+ city: Joi.string().allow("").required(),
555
+ gstin: Joi.string().allow("").required(),
556
+ name: Joi.string().allow("").required(),
557
+ pincode: Joi.number().required(),
558
+ state: Joi.string().allow("").required(),
1277
559
  });
1278
560
  }
1279
-
1280
- static MetricsCount() {
561
+ static BuyRules() {
1281
562
  return Joi.object({
1282
- value: Joi.number().required(),
1283
-
1284
- text: Joi.string().allow("").required(),
1285
-
1286
- options: Joi.array().items(OrderModel.Options()),
1287
-
1288
- key: Joi.string().allow("").required(),
563
+ cart_conditions: Joi.any(),
564
+ item_criteria: OrderModel.ItemCriterias(),
1289
565
  });
1290
566
  }
1291
-
1292
- static MetricCountResponse() {
567
+ static Charge() {
1293
568
  return Joi.object({
1294
- items: Joi.array().items(OrderModel.MetricsCount()),
569
+ amount: Joi.any().required(),
570
+ code: Joi.string().allow(""),
571
+ name: Joi.string().allow("").required(),
572
+ tax: OrderModel.Tax(),
573
+ type: Joi.string().allow("").required(),
1295
574
  });
1296
575
  }
1297
-
1298
- static PlatformTrack() {
576
+ static CheckResponse() {
1299
577
  return Joi.object({
1300
- meta: Joi.any(),
1301
-
1302
- updated_at: Joi.string().allow(""),
1303
-
1304
- status: Joi.string().allow(""),
1305
-
1306
- last_location_recieved_at: Joi.string().allow(""),
1307
-
1308
- raw_status: Joi.string().allow(""),
1309
-
1310
- updated_time: Joi.string().allow(""),
1311
-
1312
- account_name: Joi.string().allow(""),
1313
-
1314
- awb: Joi.string().allow(""),
1315
-
1316
- reason: Joi.string().allow(""),
1317
-
1318
- shipment_type: Joi.string().allow(""),
578
+ affiliate_id: Joi.string().allow(""),
579
+ affiliate_shipment_id: Joi.string().allow(""),
580
+ bags: Joi.array().items(OrderModel.Bags()),
581
+ is_bag_locked: Joi.boolean(),
582
+ is_shipment_locked: Joi.boolean(),
583
+ lock_status: Joi.boolean().allow(null),
584
+ original_filter: OrderModel.OriginalFilter(),
585
+ shipment_id: Joi.string().allow(""),
586
+ status: Joi.string().allow(""),
1319
587
  });
1320
588
  }
1321
-
1322
- static PlatformShipmentTrack() {
589
+ static Click2CallResponse() {
1323
590
  return Joi.object({
1324
- meta: Joi.any(),
1325
-
1326
- results: Joi.array().items(OrderModel.PlatformTrack()),
591
+ call_id: Joi.string().allow("").required(),
592
+ status: Joi.boolean().required(),
1327
593
  });
1328
594
  }
1329
-
1330
- static FiltersResponse() {
595
+ static CompanyDetails() {
1331
596
  return Joi.object({
1332
- advance: Joi.array().items(Joi.any()),
597
+ address: Joi.any(),
598
+ company_cin: Joi.string().allow(""),
599
+ company_contact: OrderModel.ContactDetails(),
600
+ company_gst: Joi.string().allow(""),
601
+ company_id: Joi.number(),
602
+ company_name: Joi.string().allow(""),
1333
603
  });
1334
604
  }
1335
-
1336
- static Success() {
605
+ static ContactDetails() {
1337
606
  return Joi.object({
1338
- success: Joi.boolean(),
1339
-
1340
- message: Joi.string().allow(""),
607
+ emails: Joi.array().items(Joi.string().allow("")),
608
+ phone: Joi.array().items(OrderModel.PhoneDetails()),
1341
609
  });
1342
610
  }
1343
-
1344
- static OmsReports() {
611
+ static CreateChannelConfig() {
1345
612
  return Joi.object({
1346
- report_created_at: Joi.string().allow("").allow(null),
1347
-
1348
- status: Joi.string().allow(""),
1349
-
1350
- report_name: Joi.string().allow(""),
1351
-
1352
- request_details: Joi.any(),
1353
-
1354
- report_id: Joi.string().allow(""),
1355
-
1356
- display_name: Joi.string().allow(""),
1357
-
1358
- report_requested_at: Joi.string().allow("").allow(null),
1359
-
1360
- s3_key: Joi.string().allow(""),
1361
-
1362
- report_type: Joi.string().allow(""),
613
+ dp_configuration: OrderModel.DpConfiguration(),
614
+ location_reassignment: Joi.boolean(),
615
+ lock_states: Joi.array().items(Joi.string().allow("")),
616
+ logo_url: Joi.any(),
617
+ payment_info: OrderModel.CreateChannelPaymentInfo(),
618
+ shipment_assignment: Joi.string().allow(""),
1363
619
  });
1364
620
  }
1365
-
1366
- static JioCodeUpsertDataSet() {
621
+ static CreateChannelConfigData() {
1367
622
  return Joi.object({
1368
- company_id: Joi.string().allow(""),
1369
-
1370
- item_id: Joi.string().allow(""),
1371
-
1372
- article_id: Joi.string().allow(""),
1373
-
1374
- jio_code: Joi.string().allow(""),
623
+ config_data: OrderModel.CreateChannelConfig(),
1375
624
  });
1376
625
  }
1377
-
1378
- static JioCodeUpsertPayload() {
626
+ static CreateChannelConfigResponse() {
1379
627
  return Joi.object({
1380
- data: Joi.array().items(OrderModel.JioCodeUpsertDataSet()),
628
+ acknowledged: Joi.boolean(),
629
+ is_inserted: Joi.boolean(),
630
+ is_upserted: Joi.boolean(),
1381
631
  });
1382
632
  }
1383
-
1384
- static NestedErrorSchemaDataSet() {
633
+ static CreateChannelConifgErrorResponse() {
1385
634
  return Joi.object({
1386
- value: Joi.string().allow(""),
1387
-
1388
- type: Joi.string().allow(""),
1389
-
1390
- message: Joi.string().allow(""),
635
+ error: Joi.string().allow(""),
1391
636
  });
1392
637
  }
1393
-
1394
- static JioCodeUpsertResponse() {
638
+ static CreateChannelPaymentInfo() {
1395
639
  return Joi.object({
1396
- data: Joi.array().items(Joi.any()),
1397
-
1398
- success: Joi.boolean(),
1399
-
1400
- trace_id: Joi.string().allow(""),
1401
-
1402
- identifier: Joi.string().allow(""),
1403
-
1404
- error: Joi.array().items(OrderModel.NestedErrorSchemaDataSet()),
640
+ mode_of_payment: Joi.string().allow(""),
641
+ payment_methods: Joi.array().items(OrderModel.PaymentMethods()),
642
+ source: Joi.string().allow(""),
1405
643
  });
1406
644
  }
1407
-
1408
- static BulkInvoicingResponse() {
645
+ static CreateOrderAPI() {
1409
646
  return Joi.object({
1410
- success: Joi.boolean().required(),
1411
-
1412
- message: Joi.string().allow(""),
647
+ billing_info: OrderModel.BillingInfo().required(),
648
+ charges: Joi.array().items(OrderModel.Charge()),
649
+ config: Joi.any(),
650
+ currency_info: Joi.any(),
651
+ external_creation_date: Joi.string().allow(""),
652
+ external_order_id: Joi.string().allow(""),
653
+ meta: Joi.any(),
654
+ payment_info: OrderModel.PaymentInfo().required(),
655
+ shipments: Joi.array().items(OrderModel.Shipment()).required(),
656
+ shipping_info: OrderModel.ShippingInfo().required(),
657
+ tax_info: OrderModel.TaxInfo(),
1413
658
  });
1414
659
  }
1415
-
1416
- static BulkInvoiceLabelResponse() {
660
+ static CreateOrderErrorReponse() {
1417
661
  return Joi.object({
1418
- invoice: Joi.any(),
1419
-
1420
- data: Joi.any(),
1421
-
1422
- label: Joi.any(),
1423
-
1424
- company_id: Joi.string().allow(""),
1425
-
1426
- store_id: Joi.string().allow(""),
1427
-
1428
- store_code: Joi.string().allow(""),
1429
-
1430
- do_invoice_label_generated: Joi.boolean().required(),
1431
-
1432
- store_name: Joi.string().allow(""),
1433
-
1434
- batch_id: Joi.string().allow("").required(),
1435
-
1436
- invoice_status: Joi.string().allow(""),
662
+ code: Joi.string().allow("").allow(null),
663
+ exception: Joi.string().allow("").allow(null),
664
+ info: Joi.any(),
665
+ message: Joi.string().allow("").required(),
666
+ meta: Joi.string().allow("").allow(null),
667
+ request_id: Joi.string().allow("").allow(null),
668
+ stack_trace: Joi.string().allow("").allow(null),
669
+ status: Joi.number().required(),
1437
670
  });
1438
671
  }
1439
-
1440
- static FileUploadResponse() {
672
+ static CreateOrderPayload() {
1441
673
  return Joi.object({
1442
- url: Joi.string().allow(""),
1443
-
1444
- expiry: Joi.number(),
674
+ affiliate_id: Joi.string().allow("").required(),
675
+ order_config: OrderModel.OrderConfig().required(),
676
+ order_info: OrderModel.OrderInfo().required(),
1445
677
  });
1446
678
  }
1447
-
1448
- static URL() {
679
+ static CreateOrderResponse() {
1449
680
  return Joi.object({
1450
- url: Joi.string().allow(""),
681
+ fynd_order_id: Joi.string().allow("").required(),
1451
682
  });
1452
683
  }
1453
-
1454
- static FileResponse() {
684
+ static CurrentStatus() {
1455
685
  return Joi.object({
1456
- upload: OrderModel.FileUploadResponse(),
1457
-
1458
- method: Joi.string().allow(""),
1459
-
1460
- tags: Joi.array().items(Joi.string().allow("")),
1461
-
1462
- file_path: Joi.string().allow(""),
1463
-
1464
- file_name: Joi.string().allow(""),
1465
-
1466
- operation: Joi.string().allow(""),
1467
-
1468
- cdn: OrderModel.URL(),
1469
-
1470
- namespace: Joi.string().allow(""),
1471
-
1472
- content_type: Joi.string().allow(""),
1473
-
1474
- size: Joi.number(),
686
+ bag_id: Joi.number(),
687
+ bag_state_mapper: OrderModel.BagStateMapper(),
688
+ created_at: Joi.string().allow("").allow(null),
689
+ current_status_id: Joi.number().required(),
690
+ delivery_awb_number: Joi.string().allow(""),
691
+ delivery_partner_id: Joi.number(),
692
+ kafka_sync: Joi.boolean(),
693
+ shipment_id: Joi.string().allow(""),
694
+ state_id: Joi.number(),
695
+ state_type: Joi.string().allow(""),
696
+ status: Joi.string().allow(""),
697
+ store_id: Joi.number(),
698
+ updated_at: Joi.string().allow(""),
1475
699
  });
1476
700
  }
1477
-
1478
- static BulkListingPage() {
701
+ static DataUpdates() {
1479
702
  return Joi.object({
1480
- has_previous: Joi.boolean(),
1481
-
1482
- total: Joi.number(),
1483
-
1484
- current: Joi.number(),
1485
-
1486
- type: Joi.string().allow(""),
1487
-
1488
- has_next: Joi.boolean(),
1489
-
1490
- size: Joi.number(),
703
+ entities: Joi.array().items(OrderModel.EntitiesDataUpdates()),
704
+ products: Joi.array().items(OrderModel.ProductsDataUpdates()),
1491
705
  });
1492
706
  }
1493
-
1494
- static bulkListingData() {
707
+ static Dates() {
1495
708
  return Joi.object({
1496
- failed_shipments: Joi.array().items(Joi.any()),
1497
-
1498
- successful_shipments: Joi.array().items(Joi.any()),
1499
-
1500
- file_name: Joi.string().allow(""),
1501
-
1502
- total: Joi.number(),
1503
-
1504
- store_code: Joi.string().allow(""),
1505
-
1506
- user_id: Joi.string().allow(""),
1507
-
1508
- processing: Joi.number(),
1509
-
1510
- excel_url: Joi.string().allow(""),
1511
-
1512
- status: Joi.string().allow(""),
1513
-
1514
- id: Joi.string().allow(""),
1515
-
1516
- uploaded_on: Joi.string().allow(""),
1517
-
1518
- failed: Joi.number(),
1519
-
1520
- store_id: Joi.number(),
1521
-
1522
- batch_id: Joi.string().allow(""),
1523
-
1524
- user_name: Joi.string().allow(""),
1525
-
1526
- company_id: Joi.number(),
1527
-
1528
- successful: Joi.number(),
1529
-
1530
- store_name: Joi.string().allow(""),
1531
-
1532
- processing_shipments: Joi.array().items(Joi.string().allow("")),
709
+ delivery_date: Joi.any(),
710
+ order_created: Joi.string().allow(""),
711
+ });
712
+ }
713
+ static DebugInfo() {
714
+ return Joi.object({
715
+ stormbreaker_uuid: Joi.string().allow(""),
716
+ });
717
+ }
718
+ static Dimensions() {
719
+ return Joi.object({
720
+ height: Joi.number(),
721
+ is_default: Joi.boolean(),
722
+ length: Joi.number(),
723
+ unit: Joi.string().allow(""),
724
+ width: Joi.number(),
1533
725
  });
1534
726
  }
1535
-
1536
- static BulkListingResponse() {
727
+ static DiscountRules() {
1537
728
  return Joi.object({
1538
- success: Joi.boolean(),
1539
-
1540
- error: Joi.string().allow(""),
1541
-
1542
- page: OrderModel.BulkListingPage(),
1543
-
1544
- data: Joi.array().items(OrderModel.bulkListingData()),
729
+ type: Joi.string().allow(""),
730
+ value: Joi.number(),
1545
731
  });
1546
732
  }
1547
-
1548
- static QuestionSet() {
733
+ static DispatchManifest() {
1549
734
  return Joi.object({
1550
- display_name: Joi.string().allow(""),
1551
-
1552
- id: Joi.number(),
735
+ manifest_id: Joi.string().allow("").required(),
1553
736
  });
1554
737
  }
1555
-
1556
- static Reason() {
738
+ static Document() {
1557
739
  return Joi.object({
1558
- question_set: Joi.array().items(OrderModel.QuestionSet()),
1559
-
1560
- display_name: Joi.string().allow(""),
1561
-
740
+ ds_type: Joi.string().allow("").required(),
741
+ legal_name: Joi.string().allow("").required(),
742
+ url: Joi.string().allow(""),
743
+ value: Joi.string().allow("").required(),
744
+ verified: Joi.boolean().required(),
745
+ });
746
+ }
747
+ static DpConfiguration() {
748
+ return Joi.object({
749
+ shipping_by: Joi.string().allow(""),
750
+ });
751
+ }
752
+ static DPDetailsData() {
753
+ return Joi.object({
754
+ awb_no: Joi.string().allow(""),
755
+ country: Joi.string().allow(""),
756
+ eway_bill_id: Joi.string().allow("").allow(null),
757
+ gst_tag: Joi.string().allow(""),
1562
758
  id: Joi.number(),
1563
-
1564
- qc_type: Joi.array().items(Joi.string().allow("")),
759
+ name: Joi.string().allow(""),
760
+ pincode: Joi.string().allow(""),
761
+ track_url: Joi.string().allow("").allow(null),
1565
762
  });
1566
763
  }
1567
-
1568
- static PlatformShipmentReasonsResponse() {
764
+ static EinvoiceInfo() {
1569
765
  return Joi.object({
1570
- success: Joi.boolean(),
1571
-
1572
- reasons: Joi.array().items(OrderModel.Reason()),
766
+ credit_note: Joi.any(),
767
+ invoice: Joi.any(),
1573
768
  });
1574
769
  }
1575
-
1576
- static BulkActionPayload() {
770
+ static EInvoicePortalDetails() {
1577
771
  return Joi.object({
1578
- url: Joi.string().allow("").required(),
772
+ password: Joi.string().allow(""),
773
+ user: Joi.string().allow(""),
774
+ username: Joi.string().allow(""),
1579
775
  });
1580
776
  }
1581
-
1582
- static BulkActionResponse() {
777
+ static Entities() {
1583
778
  return Joi.object({
1584
- status: Joi.boolean(),
1585
-
1586
- message: Joi.string().allow(""),
779
+ affiliate_bag_id: Joi.string().allow(""),
780
+ affiliate_id: Joi.string().allow(""),
781
+ affiliate_order_id: Joi.string().allow(""),
782
+ affiliate_shipment_id: Joi.string().allow(""),
783
+ id: Joi.string().allow(""),
784
+ reason_text: Joi.string().allow("").required(),
1587
785
  });
1588
786
  }
1589
-
1590
- static BulkActionDetailsDataField() {
787
+ static EntitiesDataUpdates() {
1591
788
  return Joi.object({
1592
- failed_shipments_count: Joi.number(),
1593
-
1594
- successful_shipment_ids: Joi.array().items(Joi.string().allow("")),
1595
-
1596
- processing_shipments_count: Joi.number(),
1597
-
1598
- company_id: Joi.string().allow(""),
1599
-
1600
- successful_shipments_count: Joi.number(),
1601
-
1602
- batch_id: Joi.string().allow(""),
1603
-
1604
- total_shipments_count: Joi.number(),
789
+ data: Joi.any(),
790
+ filters: Joi.array().items(Joi.any()),
1605
791
  });
1606
792
  }
1607
-
1608
- static BulkActionDetailsResponse() {
793
+ static EntitiesReasons() {
1609
794
  return Joi.object({
1610
- uploaded_by: Joi.string().allow(""),
1611
-
1612
- user_id: Joi.string().allow(""),
1613
-
1614
- data: Joi.array().items(OrderModel.BulkActionDetailsDataField()),
1615
-
1616
- status: Joi.boolean(),
1617
-
1618
- failed_records: Joi.array().items(Joi.string().allow("")),
1619
-
1620
- message: Joi.string().allow(""),
1621
-
1622
- success: Joi.string().allow(""),
1623
-
1624
- error: Joi.array().items(Joi.string().allow("")),
1625
-
1626
- uploaded_on: Joi.string().allow(""),
795
+ data: OrderModel.EntityReasonData(),
796
+ filters: Joi.array().items(Joi.any()),
1627
797
  });
1628
798
  }
1629
-
1630
- static BagGSTDetails() {
799
+ static EntityReasonData() {
1631
800
  return Joi.object({
1632
- gstin_code: Joi.string().allow("").allow(null),
1633
-
1634
- hsn_code: Joi.string().allow("").required(),
1635
-
1636
- gst_tax_percentage: Joi.number().required(),
1637
-
1638
- igst_gst_fee: Joi.string().allow("").required(),
1639
-
1640
- tax_collected_at_source: Joi.number().required(),
1641
-
1642
- gst_fee: Joi.number().required(),
1643
-
1644
- igst_tax_percentage: Joi.number().required(),
1645
-
1646
- gst_tag: Joi.string().allow("").required(),
1647
-
1648
- value_of_good: Joi.number().required(),
1649
-
1650
- brand_calculated_amount: Joi.number().required(),
1651
-
1652
- sgst_tax_percentage: Joi.number().required(),
1653
-
1654
- hsn_code_id: Joi.string().allow("").required(),
1655
-
1656
- cgst_tax_percentage: Joi.number().required(),
1657
-
1658
- sgst_gst_fee: Joi.string().allow("").required(),
1659
-
1660
- is_default_hsn_code: Joi.boolean(),
1661
-
1662
- cgst_gst_fee: Joi.string().allow("").required(),
801
+ reason_id: Joi.number(),
802
+ reason_text: Joi.string().allow(""),
1663
803
  });
1664
804
  }
1665
-
1666
- static B2BPODetails() {
805
+ static Error() {
1667
806
  return Joi.object({
1668
- po_tax_amount: Joi.number(),
1669
-
1670
- docker_number: Joi.string().allow(""),
1671
-
1672
- total_gst_percentage: Joi.number(),
1673
-
1674
- po_line_amount: Joi.number(),
1675
-
1676
- item_base_price: Joi.number(),
1677
-
1678
- partial_can_ret: Joi.boolean(),
807
+ message: Joi.string().allow(""),
808
+ success: Joi.boolean(),
1679
809
  });
1680
810
  }
1681
-
1682
- static BagMeta() {
811
+ static ErrorDetail() {
1683
812
  return Joi.object({
1684
- b2b_po_details: OrderModel.B2BPODetails(),
813
+ message: Joi.string().allow(""),
814
+ success: Joi.boolean(),
1685
815
  });
1686
816
  }
1687
-
1688
- static ReturnConfig() {
817
+ static ErrorResponse() {
1689
818
  return Joi.object({
1690
- time: Joi.number(),
1691
-
1692
- returnable: Joi.boolean(),
1693
-
1694
- unit: Joi.string().allow(""),
819
+ error: Joi.string().allow("").required(),
820
+ message: Joi.string().allow("").required(),
1695
821
  });
1696
822
  }
1697
-
1698
- static Weight() {
823
+ static ErrorResponse1() {
1699
824
  return Joi.object({
1700
- is_default: Joi.boolean(),
1701
-
1702
- shipping: Joi.number(),
1703
-
1704
- unit: Joi.string().allow(""),
825
+ error_trace: Joi.string().allow(""),
826
+ message: Joi.string().allow("").required(),
827
+ status: Joi.number().required(),
1705
828
  });
1706
829
  }
1707
-
1708
- static Article() {
830
+ static FileResponse() {
1709
831
  return Joi.object({
1710
- a_set: Joi.any().allow(null),
1711
-
1712
- _id: Joi.string().allow("").required(),
1713
-
1714
- raw_meta: Joi.any(),
1715
-
1716
- identifiers: OrderModel.Identifier().required(),
1717
-
1718
- seller_identifier: Joi.string().allow("").required(),
1719
-
1720
- uid: Joi.string().allow("").required(),
1721
-
1722
- child_details: Joi.any().allow(null),
1723
-
1724
- return_config: OrderModel.ReturnConfig(),
1725
-
1726
- dimensions: OrderModel.Dimensions(),
1727
-
1728
- weight: OrderModel.Weight(),
1729
-
1730
- esp_modified: Joi.any(),
1731
-
1732
- is_set: Joi.boolean(),
1733
-
1734
- size: Joi.string().allow("").required(),
1735
-
1736
- code: Joi.string().allow(""),
832
+ cdn: OrderModel.URL(),
833
+ content_type: Joi.string().allow(""),
834
+ file_name: Joi.string().allow(""),
835
+ file_path: Joi.string().allow(""),
836
+ method: Joi.string().allow(""),
837
+ namespace: Joi.string().allow(""),
838
+ operation: Joi.string().allow(""),
839
+ size: Joi.number(),
840
+ tags: Joi.array().items(Joi.string().allow("")),
841
+ upload: OrderModel.FileUploadResponse(),
1737
842
  });
1738
843
  }
1739
-
1740
- static BagReturnableCancelableStatus() {
844
+ static FileUploadResponse() {
1741
845
  return Joi.object({
1742
- is_active: Joi.boolean().required(),
1743
-
1744
- is_customer_return_allowed: Joi.boolean().required(),
1745
-
1746
- can_be_cancelled: Joi.boolean().required(),
1747
-
1748
- is_returnable: Joi.boolean().required(),
1749
-
1750
- enable_tracking: Joi.boolean().required(),
846
+ expiry: Joi.number(),
847
+ url: Joi.string().allow(""),
848
+ });
849
+ }
850
+ static FilterInfoOption() {
851
+ return Joi.object({
852
+ name: Joi.string().allow(""),
853
+ text: Joi.string().allow("").required(),
854
+ value: Joi.string().allow(""),
1751
855
  });
1752
856
  }
1753
-
1754
- static ArticleDetails() {
857
+ static FiltersInfo() {
1755
858
  return Joi.object({
1756
- status: Joi.any(),
859
+ options: Joi.array().items(OrderModel.FilterInfoOption()),
860
+ text: Joi.string().allow("").required(),
861
+ type: Joi.string().allow("").required(),
862
+ value: Joi.string().allow("").required(),
1757
863
  });
1758
864
  }
1759
-
1760
- static Document() {
865
+ static FiltersResponse() {
1761
866
  return Joi.object({
1762
- ds_type: Joi.string().allow("").required(),
1763
-
1764
- legal_name: Joi.string().allow("").required(),
1765
-
1766
- url: Joi.string().allow(""),
1767
-
1768
- verified: Joi.boolean().required(),
1769
-
1770
- value: Joi.string().allow("").required(),
867
+ advance: Joi.array().items(Joi.any()),
1771
868
  });
1772
869
  }
1773
-
1774
- static StoreDocuments() {
870
+ static FinancialBreakup() {
1775
871
  return Joi.object({
1776
- gst: OrderModel.Document(),
872
+ added_to_fynd_cash: Joi.boolean().required(),
873
+ amount_paid: Joi.number().required(),
874
+ amount_paid_roundoff: Joi.number(),
875
+ brand_calculated_amount: Joi.number().required(),
876
+ cashback: Joi.number().required(),
877
+ cashback_applied: Joi.number().required(),
878
+ cod_charges: Joi.number().required(),
879
+ coupon_effective_discount: Joi.number().required(),
880
+ coupon_value: Joi.number().required(),
881
+ delivery_charge: Joi.number().required(),
882
+ discount: Joi.number().required(),
883
+ fynd_credits: Joi.number().required(),
884
+ gst_fee: Joi.number().required(),
885
+ gst_tag: Joi.string().allow("").required(),
886
+ gst_tax_percentage: Joi.number().required(),
887
+ hsn_code: Joi.string().allow("").required(),
888
+ identifiers: OrderModel.Identifier().required(),
889
+ item_name: Joi.string().allow("").required(),
890
+ price_effective: Joi.number().required(),
891
+ price_marked: Joi.number().required(),
892
+ promotion_effective_discount: Joi.number().required(),
893
+ refund_credit: Joi.number().required(),
894
+ size: Joi.string().allow("").required(),
895
+ tax_collected_at_source: Joi.number(),
896
+ total_units: Joi.number().required(),
897
+ transfer_price: Joi.number().required(),
898
+ value_of_good: Joi.number().required(),
1777
899
  });
1778
900
  }
1779
-
1780
- static EInvoicePortalDetails() {
901
+ static Formatted() {
1781
902
  return Joi.object({
1782
- user: Joi.string().allow(""),
1783
-
1784
- password: Joi.string().allow(""),
1785
-
1786
- username: Joi.string().allow(""),
903
+ f_max: Joi.string().allow(""),
904
+ f_min: Joi.string().allow(""),
1787
905
  });
1788
906
  }
1789
-
1790
- static StoreEwaybill() {
907
+ static FulfillingStore() {
1791
908
  return Joi.object({
1792
- enabled: Joi.boolean(),
909
+ address: Joi.string().allow("").required(),
910
+ city: Joi.string().allow("").required(),
911
+ code: Joi.string().allow("").required(),
912
+ contact_person: Joi.string().allow("").required(),
913
+ country: Joi.string().allow("").required(),
914
+ fulfillment_channel: Joi.string().allow("").required(),
915
+ id: Joi.number().required(),
916
+ meta: Joi.any().required(),
917
+ phone: Joi.string().allow("").required(),
918
+ pincode: Joi.string().allow("").required(),
919
+ state: Joi.string().allow("").required(),
920
+ store_name: Joi.string().allow("").required(),
1793
921
  });
1794
922
  }
1795
-
1796
- static StoreEinvoice() {
923
+ static FyndOrderIdList() {
1797
924
  return Joi.object({
1798
- user: Joi.string().allow(""),
1799
-
1800
- password: Joi.string().allow(""),
1801
-
1802
- enabled: Joi.boolean().required(),
1803
-
1804
- username: Joi.string().allow(""),
925
+ fynd_order_id: Joi.array().items(Joi.string().allow("")),
1805
926
  });
1806
927
  }
1807
-
1808
- static StoreGstCredentials() {
928
+ static GetActionsResponse() {
1809
929
  return Joi.object({
1810
- e_waybill: OrderModel.StoreEwaybill(),
1811
-
1812
- e_invoice: OrderModel.StoreEinvoice(),
930
+ permissions: OrderModel.ActionInfo().required(),
1813
931
  });
1814
932
  }
1815
-
1816
- static StoreMeta() {
933
+ static GetBagsPlatformResponse() {
1817
934
  return Joi.object({
1818
- documents: OrderModel.StoreDocuments(),
1819
-
1820
- einvoice_portal_details: OrderModel.EInvoicePortalDetails(),
1821
-
1822
- timing: Joi.array().items(Joi.any()),
1823
-
1824
- notification_emails: Joi.array().items(Joi.string().allow("")),
1825
-
1826
- additional_contact_details: Joi.any(),
1827
-
1828
- gst_number: Joi.string().allow(""),
1829
-
1830
- product_return_config: Joi.any(),
1831
-
1832
- ewaybill_portal_details: Joi.any(),
1833
-
1834
- display_name: Joi.string().allow("").required(),
1835
-
1836
- gst_credentials: OrderModel.StoreGstCredentials().required(),
1837
-
1838
- stage: Joi.string().allow("").required(),
935
+ items: Joi.array()
936
+ .items(OrderModel.BagDetailsPlatformResponse())
937
+ .required(),
938
+ page: OrderModel.Page1().required(),
1839
939
  });
1840
940
  }
1841
-
1842
- static StoreAddress() {
941
+ static GSTDetailsData() {
1843
942
  return Joi.object({
1844
- phone: Joi.string().allow("").allow(null).required(),
1845
-
1846
- email: Joi.string().allow(""),
1847
-
1848
- pincode: Joi.number().required(),
1849
-
1850
- country_code: Joi.string().allow("").required(),
1851
-
1852
- updated_at: Joi.string().allow("").required(),
1853
-
1854
- version: Joi.string().allow(""),
1855
-
1856
- contact_person: Joi.string().allow("").required(),
1857
-
1858
- area: Joi.string().allow(""),
1859
-
1860
- address_type: Joi.string().allow("").required(),
1861
-
1862
- state: Joi.string().allow("").required(),
1863
-
1864
- address_category: Joi.string().allow("").required(),
1865
-
1866
- address1: Joi.string().allow("").required(),
1867
-
1868
- address2: Joi.string().allow(""),
1869
-
1870
- longitude: Joi.number().required(),
1871
-
1872
- city: Joi.string().allow("").required(),
1873
-
1874
- latitude: Joi.number().required(),
1875
-
1876
- created_at: Joi.string().allow("").required(),
1877
-
1878
- landmark: Joi.string().allow(""),
1879
-
1880
- country: Joi.string().allow("").required(),
943
+ brand_calculated_amount: Joi.number().required(),
944
+ gst_fee: Joi.number().required(),
945
+ gstin_code: Joi.string().allow("").required(),
946
+ tax_collected_at_source: Joi.number().required(),
947
+ value_of_good: Joi.number().required(),
1881
948
  });
1882
949
  }
1883
-
1884
- static Store() {
950
+ static HistoryDict() {
1885
951
  return Joi.object({
1886
- phone: Joi.number().required(),
1887
-
1888
- pincode: Joi.string().allow("").required(),
1889
-
1890
- name: Joi.string().allow("").required(),
1891
-
1892
- meta: OrderModel.StoreMeta().required(),
1893
-
1894
- updated_at: Joi.string().allow("").allow(null),
1895
-
1896
- fulfillment_channel: Joi.string().allow("").required(),
1897
-
1898
- order_integration_id: Joi.string().allow(""),
1899
-
1900
- contact_person: Joi.string().allow("").required(),
1901
-
1902
- parent_store_id: Joi.number(),
1903
-
1904
- store_address_json: OrderModel.StoreAddress(),
1905
-
1906
- state: Joi.string().allow("").required(),
1907
-
1908
- alohomora_user_id: Joi.number(),
1909
-
1910
- is_archived: Joi.boolean(),
1911
-
1912
- is_active: Joi.boolean(),
1913
-
1914
- address1: Joi.string().allow("").required(),
1915
-
1916
- address2: Joi.string().allow(""),
1917
-
1918
- brand_store_tags: Joi.array().items(Joi.string().allow("")),
1919
-
1920
- s_id: Joi.string().allow("").required(),
1921
-
1922
- longitude: Joi.number().required(),
1923
-
1924
- packaging_material_count: Joi.number(),
1925
-
1926
- city: Joi.string().allow("").required(),
1927
-
1928
- code: Joi.string().allow(""),
1929
-
1930
- is_enabled_for_recon: Joi.boolean(),
1931
-
1932
- latitude: Joi.number().required(),
1933
-
1934
- created_at: Joi.string().allow("").required(),
1935
-
1936
- login_username: Joi.string().allow("").required(),
1937
-
1938
- location_type: Joi.string().allow("").required(),
1939
-
1940
- mall_name: Joi.string().allow("").allow(null),
1941
-
1942
- company_id: Joi.number().required(),
1943
-
1944
- country: Joi.string().allow("").required(),
1945
-
1946
- mall_area: Joi.string().allow("").allow(null),
1947
-
1948
- brand_id: Joi.any(),
1949
-
1950
- store_active_from: Joi.string().allow("").allow(null),
1951
-
1952
- store_email: Joi.string().allow("").required(),
1953
-
1954
- vat_no: Joi.string().allow("").allow(null),
952
+ bag_id: Joi.number(),
953
+ createdat: Joi.string().allow("").required(),
954
+ l1_detail: Joi.string().allow(""),
955
+ l2_detail: Joi.string().allow(""),
956
+ l3_detail: Joi.string().allow(""),
957
+ message: Joi.string().allow("").required(),
958
+ ticket_id: Joi.string().allow(""),
959
+ ticket_url: Joi.string().allow(""),
960
+ type: Joi.string().allow("").required(),
961
+ user: Joi.string().allow("").required(),
962
+ });
963
+ }
964
+ static Identifier() {
965
+ return Joi.object({
966
+ ean: Joi.string().allow(""),
1955
967
  });
1956
968
  }
1957
-
1958
- static AffiliateBagDetails() {
969
+ static InvalidateShipmentCacheNestedResponse() {
1959
970
  return Joi.object({
1960
- affiliate_bag_id: Joi.string().allow("").required(),
1961
-
1962
- loyalty_discount: Joi.number(),
1963
-
1964
- affiliate_meta: OrderModel.AffiliateMeta().required(),
1965
-
1966
- employee_discount: Joi.number(),
1967
-
1968
- affiliate_order_id: Joi.string().allow("").required(),
971
+ error: Joi.string().allow(""),
972
+ message: Joi.string().allow(""),
973
+ shipment_id: Joi.string().allow(""),
974
+ status: Joi.number(),
1969
975
  });
1970
976
  }
1971
-
1972
- static Dates() {
977
+ static InvalidateShipmentCachePayload() {
1973
978
  return Joi.object({
1974
- delivery_date: Joi.any(),
1975
-
1976
- order_created: Joi.string().allow(""),
979
+ shipment_ids: Joi.array().items(Joi.string().allow("")).required(),
1977
980
  });
1978
981
  }
1979
-
1980
- static Brand() {
982
+ static InvalidateShipmentCacheResponse() {
1981
983
  return Joi.object({
1982
- created_on: Joi.number(),
1983
-
1984
- credit_note_expiry_days: Joi.number().allow(null),
1985
-
1986
- script_last_ran: Joi.string().allow("").allow(null),
1987
-
1988
- invoice_prefix: Joi.string().allow("").allow(null),
1989
-
1990
- modified_on: Joi.number(),
1991
-
1992
- pickup_location: Joi.string().allow("").allow(null),
1993
-
1994
- start_date: Joi.string().allow("").allow(null),
1995
-
1996
- brand_name: Joi.string().allow("").required(),
1997
-
1998
- company: Joi.string().allow("").required(),
1999
-
2000
- logo: Joi.string().allow(""),
2001
-
2002
- brand_id: Joi.number().required(),
2003
-
2004
- credit_note_allowed: Joi.boolean(),
2005
-
2006
- is_virtual_invoice: Joi.boolean().allow(null),
984
+ response: Joi.array().items(
985
+ OrderModel.InvalidateShipmentCacheNestedResponse()
986
+ ),
2007
987
  });
2008
988
  }
2009
-
2010
- static Attributes() {
989
+ static InvoiceInfo() {
2011
990
  return Joi.object({
2012
- name: Joi.string().allow(""),
2013
-
2014
- marketer_address: Joi.string().allow(""),
2015
-
2016
- gender: Joi.array().items(Joi.string().allow("")),
2017
-
2018
- primary_color: Joi.string().allow(""),
2019
-
2020
- brand_name: Joi.string().allow(""),
2021
-
2022
- marketer_name: Joi.string().allow(""),
2023
-
2024
- primary_material: Joi.string().allow(""),
2025
-
2026
- essential: Joi.string().allow(""),
2027
-
2028
- primary_color_hex: Joi.string().allow(""),
991
+ credit_note_id: Joi.string().allow(""),
992
+ invoice_url: Joi.string().allow(""),
993
+ label_url: Joi.string().allow(""),
994
+ store_invoice_id: Joi.string().allow(""),
995
+ updated_date: Joi.string().allow(""),
2029
996
  });
2030
997
  }
2031
-
2032
998
  static Item() {
2033
999
  return Joi.object({
1000
+ attributes: OrderModel.Attributes().required(),
1001
+ branch_url: Joi.string().allow("").allow(null),
1002
+ brand: Joi.string().allow("").required(),
1003
+ brand_id: Joi.number().required(),
1004
+ can_cancel: Joi.boolean(),
1005
+ can_return: Joi.boolean(),
1006
+ code: Joi.string().allow(""),
2034
1007
  color: Joi.string().allow("").allow(null),
2035
-
2036
- name: Joi.string().allow("").required(),
2037
-
2038
- last_updated_at: Joi.string().allow(""),
2039
-
2040
1008
  department_id: Joi.number(),
2041
-
2042
- l2_category: Joi.array().items(Joi.string().allow("")),
2043
-
2044
- webstore_product_url: Joi.string().allow("").allow(null),
2045
-
2046
- l1_category_id: Joi.number(),
2047
-
2048
- meta: Joi.any(),
2049
-
2050
1009
  gender: Joi.string().allow("").allow(null),
2051
-
2052
- can_return: Joi.boolean(),
2053
-
2054
- attributes: OrderModel.Attributes().required(),
2055
-
2056
- item_id: Joi.number().required(),
2057
-
2058
- can_cancel: Joi.boolean(),
2059
-
2060
1010
  image: Joi.array().items(Joi.string().allow("")).required(),
2061
-
1011
+ item_id: Joi.number().required(),
1012
+ l1_category: Joi.array().items(Joi.string().allow("")),
1013
+ l1_category_id: Joi.number(),
1014
+ l2_category: Joi.array().items(Joi.string().allow("")),
1015
+ l2_category_id: Joi.number(),
2062
1016
  l3_category: Joi.number(),
2063
-
2064
- brand: Joi.string().allow("").required(),
2065
-
2066
- code: Joi.string().allow(""),
2067
-
2068
- size: Joi.string().allow("").required(),
2069
-
2070
- branch_url: Joi.string().allow("").allow(null),
2071
-
2072
1017
  l3_category_name: Joi.string().allow(""),
2073
-
2074
- l2_category_id: Joi.number(),
2075
-
1018
+ last_updated_at: Joi.string().allow(""),
1019
+ meta: Joi.any(),
1020
+ name: Joi.string().allow("").required(),
1021
+ size: Joi.string().allow("").required(),
2076
1022
  slug_key: Joi.string().allow("").required(),
2077
-
2078
- brand_id: Joi.number().required(),
2079
-
2080
- l1_category: Joi.array().items(Joi.string().allow("")),
1023
+ webstore_product_url: Joi.string().allow("").allow(null),
2081
1024
  });
2082
1025
  }
2083
-
2084
- static BagDetailsPlatformResponse() {
1026
+ static ItemCriterias() {
2085
1027
  return Joi.object({
2086
- shipment_id: Joi.string().allow(""),
2087
-
2088
- b_id: Joi.number().required(),
2089
-
2090
- bag_status_history: OrderModel.BagStatusHistory(),
2091
-
2092
- display_name: Joi.string().allow(""),
2093
-
2094
- current_status: OrderModel.BagStatusHistory().required(),
2095
-
2096
- financial_breakup: Joi.array()
2097
- .items(OrderModel.FinancialBreakup())
2098
- .required(),
2099
-
2100
- gst_details: OrderModel.BagGSTDetails().required(),
2101
-
2102
- meta: OrderModel.BagMeta(),
2103
-
2104
- bag_status: Joi.array().items(OrderModel.BagStatusHistory()).required(),
2105
-
2106
- reasons: Joi.array().items(Joi.any()),
2107
-
2108
- seller_identifier: Joi.string().allow(""),
2109
-
2110
- order_integration_id: Joi.string().allow("").allow(null),
2111
-
2112
- article: OrderModel.Article().required(),
2113
-
2114
- status: OrderModel.BagReturnableCancelableStatus().required(),
2115
-
2116
- article_details: OrderModel.ArticleDetails(),
2117
-
2118
- bag_update_time: Joi.number(),
2119
-
2120
- quantity: Joi.number(),
2121
-
2122
- restore_coupon: Joi.boolean(),
2123
-
2124
- no_of_bags_order: Joi.number(),
2125
-
2126
- restore_promos: Joi.any(),
2127
-
2128
- b_type: Joi.string().allow(""),
2129
-
2130
- applied_promos: Joi.array().items(Joi.any()),
2131
-
2132
- ordering_store: OrderModel.Store(),
2133
-
2134
- affiliate_bag_details: OrderModel.AffiliateBagDetails().required(),
2135
-
2136
- parent_promo_bags: Joi.any(),
2137
-
2138
- tags: Joi.array().items(Joi.string().allow("")),
2139
-
2140
- operational_status: Joi.string().allow(""),
2141
-
2142
- affiliate_details: OrderModel.AffiliateDetails(),
2143
-
2144
- current_operational_status: OrderModel.BagStatusHistory().required(),
2145
-
2146
- journey_type: Joi.string().allow("").required(),
2147
-
2148
- dates: OrderModel.Dates(),
2149
-
2150
- brand: OrderModel.Brand().required(),
2151
-
2152
- original_bag_list: Joi.array().items(Joi.number()),
2153
-
2154
- qc_required: Joi.any(),
2155
-
2156
- entity_type: Joi.string().allow(""),
2157
-
2158
- prices: OrderModel.Prices().required(),
2159
-
2160
- line_number: Joi.number(),
2161
-
2162
- item: OrderModel.Item().required(),
2163
-
1028
+ item_brand: Joi.array().items(Joi.number()),
1029
+ });
1030
+ }
1031
+ static JioCodeUpsertDataSet() {
1032
+ return Joi.object({
1033
+ article_id: Joi.string().allow(""),
1034
+ company_id: Joi.string().allow(""),
1035
+ item_id: Joi.string().allow(""),
1036
+ jio_code: Joi.string().allow(""),
1037
+ });
1038
+ }
1039
+ static JioCodeUpsertPayload() {
1040
+ return Joi.object({
1041
+ data: Joi.array().items(OrderModel.JioCodeUpsertDataSet()),
1042
+ });
1043
+ }
1044
+ static JioCodeUpsertResponse() {
1045
+ return Joi.object({
1046
+ data: Joi.array().items(Joi.any()),
1047
+ error: Joi.array().items(OrderModel.NestedErrorSchemaDataSet()),
2164
1048
  identifier: Joi.string().allow(""),
1049
+ success: Joi.boolean(),
1050
+ trace_id: Joi.string().allow(""),
1051
+ });
1052
+ }
1053
+ static LaneConfigResponse() {
1054
+ return Joi.object({
1055
+ super_lanes: Joi.array().items(OrderModel.SuperLane()),
1056
+ });
1057
+ }
1058
+ static LineItem() {
1059
+ return Joi.object({
1060
+ charges: Joi.array().items(OrderModel.Charge()),
1061
+ custom_messasge: Joi.string().allow(""),
1062
+ external_line_id: Joi.string().allow(""),
1063
+ meta: Joi.any(),
1064
+ quantity: Joi.number(),
1065
+ seller_identifier: Joi.string().allow("").required(),
2165
1066
  });
2166
1067
  }
2167
-
2168
- static ErrorResponse() {
1068
+ static LocationDetails() {
2169
1069
  return Joi.object({
2170
- error: Joi.string().allow("").required(),
2171
-
2172
- message: Joi.string().allow("").required(),
1070
+ articles: Joi.array().items(OrderModel.ArticleDetails1()).required(),
1071
+ fulfillment_id: Joi.number().required(),
1072
+ fulfillment_type: Joi.string().allow("").required(),
2173
1073
  });
2174
1074
  }
2175
-
2176
- static Page1() {
1075
+ static LockData() {
2177
1076
  return Joi.object({
2178
- page_type: Joi.string().allow("").required(),
2179
-
2180
- current: Joi.number().required(),
2181
-
2182
- item_total: Joi.number().required(),
2183
-
2184
- has_next: Joi.boolean().required(),
2185
-
2186
- size: Joi.number().required(),
1077
+ lock_message: Joi.string().allow(""),
1078
+ locked: Joi.boolean(),
1079
+ mto: Joi.boolean(),
2187
1080
  });
2188
1081
  }
2189
-
2190
- static GetBagsPlatformResponse() {
1082
+ static ManualAssignDPToShipment() {
2191
1083
  return Joi.object({
2192
- page: OrderModel.Page1().required(),
2193
-
2194
- items: Joi.array()
2195
- .items(OrderModel.BagDetailsPlatformResponse())
2196
- .required(),
1084
+ dp_id: Joi.number().required(),
1085
+ order_type: Joi.string().allow("").required(),
1086
+ qc_required: Joi.string().allow("").required(),
1087
+ shipment_ids: Joi.array().items(Joi.string().allow("")),
2197
1088
  });
2198
1089
  }
2199
-
2200
- static InvalidateShipmentCachePayload() {
1090
+ static ManualAssignDPToShipmentResponse() {
2201
1091
  return Joi.object({
2202
- shipment_ids: Joi.array().items(Joi.string().allow("")).required(),
1092
+ errors: Joi.array().items(Joi.string().allow("")),
1093
+ success: Joi.string().allow("").required(),
2203
1094
  });
2204
1095
  }
2205
-
2206
- static InvalidateShipmentCacheNestedResponse() {
1096
+ static MarketPlacePdf() {
2207
1097
  return Joi.object({
2208
- message: Joi.string().allow(""),
2209
-
2210
- shipment_id: Joi.string().allow(""),
2211
-
2212
- status: Joi.number(),
2213
-
2214
- error: Joi.string().allow(""),
1098
+ invoice: Joi.string().allow("").allow(null),
1099
+ label: Joi.string().allow("").allow(null),
2215
1100
  });
2216
1101
  }
2217
-
2218
- static InvalidateShipmentCacheResponse() {
1102
+ static Meta() {
2219
1103
  return Joi.object({
2220
- response: Joi.array().items(
2221
- OrderModel.InvalidateShipmentCacheNestedResponse()
2222
- ),
1104
+ dimension: OrderModel.Dimensions(),
2223
1105
  });
2224
1106
  }
2225
-
2226
- static ErrorResponse1() {
1107
+ static Meta1() {
2227
1108
  return Joi.object({
2228
- message: Joi.string().allow("").required(),
2229
-
2230
- error_trace: Joi.string().allow(""),
2231
-
2232
- status: Joi.number().required(),
1109
+ kafka_emission_status: Joi.number(),
1110
+ state_manager_used: Joi.string().allow(""),
2233
1111
  });
2234
1112
  }
2235
-
2236
- static StoreReassign() {
1113
+ static MetricCountResponse() {
2237
1114
  return Joi.object({
2238
- set_id: Joi.string().allow("").allow(null),
2239
-
2240
- reason_ids: Joi.array().items(Joi.number()),
2241
-
2242
- affiliate_order_id: Joi.string().allow("").allow(null),
2243
-
2244
- affiliate_id: Joi.string().allow("").allow(null),
2245
-
2246
- bag_id: Joi.number().allow(null),
2247
-
2248
- fynd_order_id: Joi.string().allow("").allow(null),
2249
-
2250
- item_id: Joi.string().allow("").allow(null),
2251
-
2252
- mongo_article_id: Joi.string().allow("").allow(null),
2253
-
2254
- store_id: Joi.number().required(),
2255
-
2256
- affiliate_bag_id: Joi.string().allow("").allow(null),
1115
+ items: Joi.array().items(OrderModel.MetricsCount()),
2257
1116
  });
2258
1117
  }
2259
-
2260
- static StoreReassignResponse() {
1118
+ static MetricsCount() {
1119
+ return Joi.object({
1120
+ key: Joi.string().allow("").required(),
1121
+ options: Joi.array().items(OrderModel.Options()),
1122
+ text: Joi.string().allow("").required(),
1123
+ value: Joi.number().required(),
1124
+ });
1125
+ }
1126
+ static NestedErrorSchemaDataSet() {
2261
1127
  return Joi.object({
2262
1128
  message: Joi.string().allow(""),
2263
-
2264
- success: Joi.boolean(),
1129
+ type: Joi.string().allow(""),
1130
+ value: Joi.string().allow(""),
2265
1131
  });
2266
1132
  }
2267
-
2268
- static Entities() {
1133
+ static OmsReports() {
1134
+ return Joi.object({
1135
+ display_name: Joi.string().allow(""),
1136
+ report_created_at: Joi.string().allow("").allow(null),
1137
+ report_id: Joi.string().allow(""),
1138
+ report_name: Joi.string().allow(""),
1139
+ report_requested_at: Joi.string().allow("").allow(null),
1140
+ report_type: Joi.string().allow(""),
1141
+ request_details: Joi.any(),
1142
+ s3_key: Joi.string().allow(""),
1143
+ status: Joi.string().allow(""),
1144
+ });
1145
+ }
1146
+ static Options() {
1147
+ return Joi.object({
1148
+ text: Joi.string().allow(""),
1149
+ value: Joi.number(),
1150
+ });
1151
+ }
1152
+ static OrderBagArticle() {
1153
+ return Joi.object({
1154
+ identifiers: Joi.any(),
1155
+ return_config: Joi.any(),
1156
+ uid: Joi.string().allow(""),
1157
+ });
1158
+ }
1159
+ static OrderBags() {
1160
+ return Joi.object({
1161
+ applied_promos: Joi.array().items(OrderModel.AppliedPromos()),
1162
+ article: OrderModel.OrderBagArticle(),
1163
+ bag_configs: OrderModel.BagConfigs(),
1164
+ bag_id: Joi.number().required(),
1165
+ brand: OrderModel.OrderBrandName(),
1166
+ can_cancel: Joi.boolean(),
1167
+ can_return: Joi.boolean(),
1168
+ current_status: OrderModel.CurrentStatus(),
1169
+ delivery_address: OrderModel.PlatformDeliveryAddress(),
1170
+ display_name: Joi.string().allow(""),
1171
+ entity_type: Joi.string().allow(""),
1172
+ financial_breakup: OrderModel.FinancialBreakup(),
1173
+ gst_details: OrderModel.BagGST(),
1174
+ identifier: Joi.string().allow(""),
1175
+ item: OrderModel.PlatformItem(),
1176
+ line_number: Joi.number(),
1177
+ parent_promo_bags: Joi.any(),
1178
+ prices: OrderModel.Prices(),
1179
+ quantity: Joi.number(),
1180
+ seller_identifier: Joi.string().allow(""),
1181
+ });
1182
+ }
1183
+ static OrderBrandName() {
1184
+ return Joi.object({
1185
+ brand_name: Joi.string().allow("").required(),
1186
+ company: Joi.string().allow("").allow(null).required(),
1187
+ created_on: Joi.string().allow("").required(),
1188
+ id: Joi.number().required(),
1189
+ logo: Joi.string().allow("").required(),
1190
+ modified_on: Joi.string().allow(""),
1191
+ });
1192
+ }
1193
+ static OrderConfig() {
1194
+ return Joi.object({
1195
+ affiliate: OrderModel.Affiliate().required(),
1196
+ affiliate_store_id_mapping: Joi.array()
1197
+ .items(OrderModel.AffiliateStoreIdMapping())
1198
+ .required(),
1199
+ article_lookup: Joi.string().allow(""),
1200
+ bag_end_state: Joi.string().allow(""),
1201
+ create_user: Joi.boolean(),
1202
+ store_lookup: Joi.string().allow(""),
1203
+ });
1204
+ }
1205
+ static OrderDetails() {
1206
+ return Joi.object({
1207
+ created_at: Joi.string().allow(""),
1208
+ fynd_order_id: Joi.string().allow(""),
1209
+ });
1210
+ }
1211
+ static OrderDetailsData() {
2269
1212
  return Joi.object({
2270
- reason_text: Joi.string().allow("").required(),
2271
-
2272
- affiliate_order_id: Joi.string().allow(""),
2273
-
2274
1213
  affiliate_id: Joi.string().allow(""),
2275
-
2276
- affiliate_shipment_id: Joi.string().allow(""),
2277
-
2278
- id: Joi.string().allow(""),
2279
-
2280
- affiliate_bag_id: Joi.string().allow(""),
1214
+ cod_charges: Joi.string().allow(""),
1215
+ fynd_order_id: Joi.string().allow("").required(),
1216
+ order_date: Joi.string().allow(""),
1217
+ order_value: Joi.string().allow(""),
1218
+ ordering_channel: Joi.string().allow(""),
1219
+ ordering_channel_logo: Joi.any(),
1220
+ source: Joi.string().allow(""),
1221
+ tax_details: Joi.any(),
2281
1222
  });
2282
1223
  }
2283
-
2284
- static UpdateShipmentLockPayload() {
1224
+ static OrderDict() {
2285
1225
  return Joi.object({
2286
- entities: Joi.array().items(OrderModel.Entities()).required(),
2287
-
2288
- action: Joi.string().allow("").required(),
2289
-
2290
- entity_type: Joi.string().allow("").required(),
2291
-
2292
- action_type: Joi.string().allow("").required(),
1226
+ fynd_order_id: Joi.string().allow("").required(),
1227
+ meta: OrderModel.OrderMeta(),
1228
+ order_date: Joi.string().allow("").required(),
1229
+ payment_methods: Joi.any(),
1230
+ prices: OrderModel.Prices(),
1231
+ tax_details: OrderModel.TaxDetails(),
1232
+ });
1233
+ }
1234
+ static OrderInfo() {
1235
+ return Joi.object({
1236
+ affiliate_order_id: Joi.string().allow(""),
1237
+ bags: Joi.array().items(OrderModel.AffiliateBag()).required(),
1238
+ billing_address: OrderModel.OrderUser().required(),
1239
+ cod_charges: Joi.number().required(),
1240
+ coupon: Joi.string().allow("").allow(null),
1241
+ delivery_charges: Joi.number().required(),
1242
+ discount: Joi.number().required(),
1243
+ items: Joi.any().required(),
1244
+ order_priority: OrderModel.OrderPriority(),
1245
+ order_value: Joi.number().required(),
1246
+ payment: Joi.any(),
1247
+ payment_mode: Joi.string().allow("").required(),
1248
+ shipment: OrderModel.ShipmentData(),
1249
+ shipping_address: OrderModel.OrderUser().required(),
1250
+ user: OrderModel.UserData().required(),
1251
+ });
1252
+ }
1253
+ static OrderingStoreDetails() {
1254
+ return Joi.object({
1255
+ address: Joi.string().allow("").required(),
1256
+ city: Joi.string().allow("").required(),
1257
+ code: Joi.string().allow("").required(),
1258
+ contact_person: Joi.string().allow("").required(),
1259
+ country: Joi.string().allow("").required(),
1260
+ meta: Joi.any().required(),
1261
+ ordering_store_id: Joi.number().required(),
1262
+ phone: Joi.string().allow("").required(),
1263
+ pincode: Joi.string().allow("").required(),
1264
+ state: Joi.string().allow("").required(),
1265
+ store_name: Joi.string().allow("").required(),
2293
1266
  });
2294
1267
  }
2295
-
2296
- static OriginalFilter() {
1268
+ static OrderListingResponse() {
2297
1269
  return Joi.object({
2298
- affiliate_id: Joi.string().allow(""),
2299
-
2300
- affiliate_shipment_id: Joi.string().allow(""),
1270
+ items: Joi.array().items(OrderModel.PlatformOrderItems()),
1271
+ lane: Joi.string().allow(""),
1272
+ message: Joi.string().allow(""),
1273
+ page: OrderModel.Page(),
1274
+ success: Joi.boolean(),
1275
+ total_count: Joi.number(),
2301
1276
  });
2302
1277
  }
2303
-
2304
- static Bags() {
1278
+ static OrderMeta() {
2305
1279
  return Joi.object({
2306
- is_locked: Joi.boolean(),
2307
-
2308
- bag_id: Joi.number(),
2309
-
2310
- affiliate_bag_id: Joi.string().allow(""),
2311
-
2312
- affiliate_order_id: Joi.string().allow(""),
1280
+ billing_staff_details: OrderModel.BillingStaffDetails(),
1281
+ cart_id: Joi.number(),
1282
+ comment: Joi.string().allow(""),
1283
+ company_logo: Joi.string().allow(""),
1284
+ currency_symbol: Joi.string().allow(""),
1285
+ customer_note: Joi.string().allow(""),
1286
+ employee_id: Joi.number(),
1287
+ extra_meta: Joi.any(),
1288
+ files: Joi.array().items(Joi.any()),
1289
+ mongo_cart_id: Joi.number(),
1290
+ order_child_entities: Joi.array().items(Joi.string().allow("")),
1291
+ order_platform: Joi.string().allow(""),
1292
+ order_tags: Joi.array().items(Joi.any()),
1293
+ order_type: Joi.string().allow(""),
1294
+ ordering_store: Joi.number(),
1295
+ payment_type: Joi.string().allow(""),
1296
+ platform_user_details: OrderModel.PlatformUserDetails(),
1297
+ staff: Joi.any(),
1298
+ transaction_data: OrderModel.TransactionData(),
2313
1299
  });
2314
1300
  }
2315
-
2316
- static CheckResponse() {
1301
+ static OrderPriority() {
2317
1302
  return Joi.object({
2318
- shipment_id: Joi.string().allow(""),
2319
-
2320
- is_bag_locked: Joi.boolean(),
2321
-
2322
- affiliate_id: Joi.string().allow(""),
2323
-
2324
- affiliate_shipment_id: Joi.string().allow(""),
2325
-
2326
- is_shipment_locked: Joi.boolean(),
2327
-
2328
- original_filter: OrderModel.OriginalFilter(),
2329
-
2330
- bags: Joi.array().items(OrderModel.Bags()),
2331
-
2332
- status: Joi.string().allow(""),
2333
-
2334
- lock_status: Joi.boolean().allow(null),
1303
+ affiliate_priority_code: Joi.string().allow("").allow(null),
1304
+ fulfilment_priority: Joi.number().allow(null),
1305
+ fulfilment_priority_text: Joi.string().allow(""),
2335
1306
  });
2336
1307
  }
2337
-
2338
- static UpdateShipmentLockResponse() {
1308
+ static OrderStatus() {
2339
1309
  return Joi.object({
2340
- message: Joi.string().allow(""),
2341
-
2342
- check_response: Joi.array().items(OrderModel.CheckResponse()),
2343
-
2344
- success: Joi.boolean(),
1310
+ end_date: Joi.string().allow("").required(),
1311
+ mobile: Joi.number().required(),
1312
+ order_details: Joi.array().items(OrderModel.FyndOrderIdList()),
1313
+ start_date: Joi.string().allow("").required(),
2345
1314
  });
2346
1315
  }
2347
-
2348
- static AnnouncementResponse() {
1316
+ static OrderStatusData() {
2349
1317
  return Joi.object({
2350
- from_datetime: Joi.string().allow(""),
2351
-
2352
- logo_url: Joi.string().allow(""),
2353
-
2354
- title: Joi.string().allow(""),
2355
-
2356
- created_at: Joi.string().allow(""),
2357
-
2358
- platform_id: Joi.string().allow(""),
2359
-
2360
- company_id: Joi.number(),
2361
-
2362
- id: Joi.number().required(),
2363
-
2364
- platform_name: Joi.string().allow(""),
2365
-
2366
- to_datetime: Joi.string().allow(""),
2367
-
2368
- description: Joi.string().allow(""),
1318
+ errors: Joi.array().items(Joi.string().allow("")),
1319
+ order_details: OrderModel.OrderDetails().required(),
1320
+ shipment_details: Joi.array().items(OrderModel.ShipmentDetail()),
2369
1321
  });
2370
1322
  }
2371
-
2372
- static AnnouncementsResponse() {
1323
+ static OrderStatusResult() {
2373
1324
  return Joi.object({
2374
- announcements: Joi.array().items(OrderModel.AnnouncementResponse()),
1325
+ result: Joi.array().items(OrderModel.OrderStatusData()),
1326
+ success: Joi.string().allow("").required(),
2375
1327
  });
2376
1328
  }
2377
-
2378
- static BaseResponse() {
1329
+ static OrderUser() {
2379
1330
  return Joi.object({
2380
- message: Joi.string().allow("").required(),
2381
-
2382
- success: Joi.boolean().required(),
1331
+ address1: Joi.string().allow("").allow(null),
1332
+ address2: Joi.string().allow("").allow(null),
1333
+ city: Joi.string().allow("").required(),
1334
+ country: Joi.string().allow("").required(),
1335
+ email: Joi.string().allow("").required(),
1336
+ first_name: Joi.string().allow("").required(),
1337
+ last_name: Joi.string().allow("").required(),
1338
+ mobile: Joi.number().required(),
1339
+ phone: Joi.number().required(),
1340
+ pincode: Joi.string().allow("").required(),
1341
+ state: Joi.string().allow("").required(),
2383
1342
  });
2384
1343
  }
2385
-
2386
- static Click2CallResponse() {
1344
+ static OriginalFilter() {
2387
1345
  return Joi.object({
2388
- call_id: Joi.string().allow("").required(),
2389
-
2390
- status: Joi.boolean().required(),
1346
+ affiliate_id: Joi.string().allow(""),
1347
+ affiliate_shipment_id: Joi.string().allow(""),
2391
1348
  });
2392
1349
  }
2393
-
2394
- static ProductsDataUpdatesFilters() {
1350
+ static Page() {
2395
1351
  return Joi.object({
2396
- line_number: Joi.number(),
2397
-
2398
- identifier: Joi.string().allow(""),
1352
+ current: Joi.number(),
1353
+ has_next: Joi.boolean(),
1354
+ has_previous: Joi.boolean(),
1355
+ item_total: Joi.number(),
1356
+ next_id: Joi.string().allow(""),
1357
+ size: Joi.number(),
1358
+ type: Joi.string().allow("").required(),
2399
1359
  });
2400
1360
  }
2401
-
2402
- static ProductsDataUpdates() {
1361
+ static Page1() {
2403
1362
  return Joi.object({
2404
- data: Joi.any(),
2405
-
2406
- filters: Joi.array().items(OrderModel.ProductsDataUpdatesFilters()),
1363
+ current: Joi.number().required(),
1364
+ has_next: Joi.boolean().required(),
1365
+ item_total: Joi.number().required(),
1366
+ page_type: Joi.string().allow("").required(),
1367
+ size: Joi.number().required(),
2407
1368
  });
2408
1369
  }
2409
-
2410
- static EntitiesDataUpdates() {
1370
+ static PaymentInfo() {
2411
1371
  return Joi.object({
2412
- data: Joi.any(),
2413
-
2414
- filters: Joi.array().items(Joi.any()),
1372
+ payment_methods: Joi.array().items(OrderModel.PaymentMethod()),
1373
+ primary_mode: Joi.string().allow("").required(),
2415
1374
  });
2416
1375
  }
2417
-
2418
- static DataUpdates() {
1376
+ static PaymentMethod() {
2419
1377
  return Joi.object({
2420
- products: Joi.array().items(OrderModel.ProductsDataUpdates()),
2421
-
2422
- entities: Joi.array().items(OrderModel.EntitiesDataUpdates()),
1378
+ amount: Joi.number().required(),
1379
+ collect_by: Joi.string().allow("").required(),
1380
+ meta: Joi.any(),
1381
+ mode: Joi.string().allow("").required(),
1382
+ name: Joi.string().allow("").required(),
1383
+ refund_by: Joi.string().allow("").required(),
1384
+ transaction_data: Joi.any(),
2423
1385
  });
2424
1386
  }
2425
-
2426
- static Products() {
1387
+ static PaymentMethods() {
2427
1388
  return Joi.object({
2428
- line_number: Joi.number(),
2429
-
2430
- quantity: Joi.number(),
2431
-
2432
- identifier: Joi.string().allow(""),
1389
+ collect_by: Joi.string().allow(""),
1390
+ mode: Joi.string().allow(""),
1391
+ refund_by: Joi.string().allow(""),
2433
1392
  });
2434
1393
  }
2435
-
2436
- static ProductsReasonsData() {
1394
+ static PaymentModeInfo() {
2437
1395
  return Joi.object({
2438
- reason_text: Joi.string().allow(""),
2439
-
2440
- reason_id: Joi.number(),
1396
+ logo: Joi.string().allow("").required(),
1397
+ type: Joi.string().allow("").required(),
2441
1398
  });
2442
1399
  }
2443
-
2444
- static ProductsReasonsFilters() {
1400
+ static PDFLinks() {
2445
1401
  return Joi.object({
2446
- line_number: Joi.number(),
2447
-
2448
- quantity: Joi.number(),
2449
-
2450
- identifier: Joi.string().allow(""),
1402
+ b2b: Joi.string().allow(""),
1403
+ credit_note_url: Joi.string().allow(""),
1404
+ delivery_challan_a4: Joi.string().allow(""),
1405
+ invoice: Joi.string().allow(""),
1406
+ invoice_a4: Joi.string().allow(""),
1407
+ invoice_a6: Joi.string().allow(""),
1408
+ invoice_pos: Joi.string().allow(""),
1409
+ invoice_type: Joi.string().allow("").required(),
1410
+ label: Joi.string().allow(""),
1411
+ label_a4: Joi.string().allow(""),
1412
+ label_a6: Joi.string().allow(""),
1413
+ label_pos: Joi.string().allow(""),
1414
+ label_type: Joi.string().allow("").required(),
1415
+ po_invoice: Joi.string().allow(""),
2451
1416
  });
2452
1417
  }
2453
-
2454
- static ProductsReasons() {
1418
+ static PhoneDetails() {
2455
1419
  return Joi.object({
2456
- data: OrderModel.ProductsReasonsData(),
2457
-
2458
- filters: Joi.array().items(OrderModel.ProductsReasonsFilters()),
1420
+ country_code: Joi.number(),
1421
+ mobile_number: Joi.string().allow(""),
2459
1422
  });
2460
1423
  }
2461
-
2462
- static EntityReasonData() {
1424
+ static PlatformBreakupValues() {
2463
1425
  return Joi.object({
2464
- reason_text: Joi.string().allow(""),
2465
-
2466
- reason_id: Joi.number(),
1426
+ display: Joi.string().allow(""),
1427
+ name: Joi.string().allow(""),
1428
+ value: Joi.string().allow(""),
2467
1429
  });
2468
1430
  }
2469
-
2470
- static EntitiesReasons() {
1431
+ static PlatformChannel() {
2471
1432
  return Joi.object({
2472
- data: OrderModel.EntityReasonData(),
2473
-
2474
- filters: Joi.array().items(Joi.any()),
1433
+ logo: Joi.string().allow(""),
1434
+ name: Joi.string().allow(""),
2475
1435
  });
2476
1436
  }
2477
-
2478
- static ReasonsData() {
1437
+ static PlatformDeliveryAddress() {
2479
1438
  return Joi.object({
2480
- products: Joi.array().items(OrderModel.ProductsReasons()),
2481
-
2482
- entities: Joi.array().items(OrderModel.EntitiesReasons()),
1439
+ address1: Joi.string().allow(""),
1440
+ address2: Joi.string().allow(""),
1441
+ address_category: Joi.string().allow(""),
1442
+ address_type: Joi.string().allow(""),
1443
+ area: Joi.string().allow(""),
1444
+ city: Joi.string().allow(""),
1445
+ contact_person: Joi.string().allow(""),
1446
+ country: Joi.string().allow(""),
1447
+ created_at: Joi.string().allow(""),
1448
+ email: Joi.string().allow(""),
1449
+ landmark: Joi.string().allow(""),
1450
+ latitude: Joi.number(),
1451
+ longitude: Joi.number(),
1452
+ phone: Joi.string().allow(""),
1453
+ pincode: Joi.string().allow(""),
1454
+ state: Joi.string().allow(""),
1455
+ updated_at: Joi.string().allow(""),
1456
+ version: Joi.string().allow(""),
2483
1457
  });
2484
1458
  }
2485
-
2486
- static ShipmentsRequest() {
1459
+ static PlatformItem() {
2487
1460
  return Joi.object({
2488
- data_updates: OrderModel.DataUpdates(),
2489
-
2490
- products: Joi.array().items(OrderModel.Products()),
2491
-
2492
- reasons: OrderModel.ReasonsData(),
2493
-
2494
- identifier: Joi.string().allow("").required(),
1461
+ can_cancel: Joi.boolean(),
1462
+ can_return: Joi.boolean(),
1463
+ code: Joi.string().allow(""),
1464
+ color: Joi.string().allow("").allow(null),
1465
+ department_id: Joi.number(),
1466
+ id: Joi.number(),
1467
+ image: Joi.array().items(Joi.string().allow("")),
1468
+ images: Joi.array().items(Joi.string().allow("")),
1469
+ l1_category: Joi.array().items(Joi.string().allow("")),
1470
+ l3_category: Joi.number(),
1471
+ l3_category_name: Joi.string().allow(""),
1472
+ name: Joi.string().allow(""),
1473
+ size: Joi.string().allow(""),
2495
1474
  });
2496
1475
  }
2497
-
2498
- static StatuesRequest() {
1476
+ static PlatformOrderItems() {
2499
1477
  return Joi.object({
2500
- shipments: Joi.array().items(OrderModel.ShipmentsRequest()),
2501
-
2502
- status: Joi.string().allow(""),
2503
-
2504
- exclude_bags_next_state: Joi.string().allow(""),
1478
+ breakup_values: Joi.array().items(OrderModel.PlatformBreakupValues()),
1479
+ channel: OrderModel.PlatformChannel(),
1480
+ meta: Joi.any(),
1481
+ order_created_time: Joi.string().allow(""),
1482
+ order_id: Joi.string().allow(""),
1483
+ order_value: Joi.number(),
1484
+ payment_mode: Joi.string().allow(""),
1485
+ shipments: Joi.array().items(OrderModel.PlatformShipment()),
1486
+ total_order_value: Joi.number(),
1487
+ user_info: OrderModel.UserDataInfo(),
2505
1488
  });
2506
1489
  }
2507
-
2508
- static UpdateShipmentStatusRequest() {
1490
+ static PlatformOrderUpdate() {
2509
1491
  return Joi.object({
2510
- unlock_before_transition: Joi.boolean(),
2511
-
2512
- lock_after_transition: Joi.boolean(),
2513
-
2514
- force_transition: Joi.boolean(),
2515
-
2516
- task: Joi.boolean(),
2517
-
2518
- statuses: Joi.array().items(OrderModel.StatuesRequest()),
1492
+ order_id: Joi.string().allow("").required(),
2519
1493
  });
2520
1494
  }
2521
-
2522
- static ShipmentsResponse() {
1495
+ static PlatformShipment() {
2523
1496
  return Joi.object({
2524
- final_state: Joi.any(),
2525
-
2526
- identifier: Joi.string().allow(""),
2527
-
2528
- exception: Joi.string().allow(""),
2529
-
2530
- meta: Joi.any(),
2531
-
2532
- message: Joi.string().allow(""),
2533
-
2534
- status: Joi.number(),
2535
-
2536
- code: Joi.string().allow(""),
2537
-
2538
- stack_trace: Joi.string().allow(""),
1497
+ affiliate_details: OrderModel.AffiliateDetails(),
1498
+ bag_status_history: Joi.array().items(OrderModel.BagStatusHistory()),
1499
+ bags: Joi.array().items(OrderModel.OrderBags()),
1500
+ billing_details: OrderModel.UserDetailsData(),
1501
+ company_details: OrderModel.CompanyDetails(),
1502
+ coupon: Joi.any(),
1503
+ custom_meta: Joi.array().items(Joi.any()),
1504
+ delivery_details: OrderModel.UserDetailsData(),
1505
+ delivery_slot: Joi.any(),
1506
+ dp_details: OrderModel.DPDetailsData(),
1507
+ enable_dp_tracking: Joi.boolean(),
1508
+ forward_shipment_id: Joi.string().allow(""),
1509
+ fulfilling_store: OrderModel.FulfillingStore(),
1510
+ fulfilment_priority: Joi.number(),
1511
+ gst_details: OrderModel.GSTDetailsData(),
1512
+ invoice: OrderModel.InvoiceInfo(),
1513
+ invoice_id: Joi.string().allow(""),
1514
+ journey_type: Joi.string().allow(""),
1515
+ lock_status: Joi.boolean(),
1516
+ meta: OrderModel.Meta(),
1517
+ operational_status: Joi.string().allow(""),
1518
+ order: OrderModel.OrderDetailsData(),
1519
+ ordering_store: OrderModel.OrderingStoreDetails(),
1520
+ packaging_type: Joi.string().allow(""),
1521
+ payment_methods: Joi.any(),
1522
+ payment_mode: Joi.string().allow(""),
1523
+ payments: OrderModel.ShipmentPayments(),
1524
+ picked_date: Joi.string().allow(""),
1525
+ platform_logo: Joi.string().allow(""),
1526
+ prices: OrderModel.Prices(),
1527
+ priority_text: Joi.string().allow("").allow(null),
1528
+ shipment_id: Joi.string().allow("").required(),
1529
+ shipment_images: Joi.array().items(Joi.string().allow("")),
1530
+ shipment_quantity: Joi.number(),
1531
+ shipment_status: Joi.string().allow(""),
1532
+ status: OrderModel.ShipmentStatusData(),
1533
+ total_bags: Joi.number(),
1534
+ total_items: Joi.number(),
1535
+ tracking_list: Joi.array().items(OrderModel.TrackingList()),
1536
+ user: OrderModel.UserDataInfo(),
1537
+ user_agent: Joi.string().allow(""),
1538
+ vertical: Joi.string().allow("").allow(null),
2539
1539
  });
2540
1540
  }
2541
-
2542
- static StatuesResponse() {
1541
+ static PlatformShipmentReasonsResponse() {
2543
1542
  return Joi.object({
2544
- shipments: Joi.array().items(OrderModel.ShipmentsResponse()),
1543
+ reasons: Joi.array().items(OrderModel.Reason()),
1544
+ success: Joi.boolean(),
2545
1545
  });
2546
1546
  }
2547
-
2548
- static UpdateShipmentStatusResponseBody() {
1547
+ static PlatformShipmentTrack() {
2549
1548
  return Joi.object({
2550
- statuses: Joi.array().items(OrderModel.StatuesResponse()),
1549
+ meta: Joi.any(),
1550
+ results: Joi.array().items(OrderModel.PlatformTrack()),
2551
1551
  });
2552
1552
  }
2553
-
2554
- static AffiliateAppConfigMeta() {
1553
+ static PlatformTrack() {
2555
1554
  return Joi.object({
2556
- name: Joi.string().allow("").required(),
2557
-
2558
- value: Joi.string().allow("").required(),
1555
+ account_name: Joi.string().allow(""),
1556
+ awb: Joi.string().allow(""),
1557
+ last_location_recieved_at: Joi.string().allow(""),
1558
+ meta: Joi.any(),
1559
+ raw_status: Joi.string().allow(""),
1560
+ reason: Joi.string().allow(""),
1561
+ shipment_type: Joi.string().allow(""),
1562
+ status: Joi.string().allow(""),
1563
+ updated_at: Joi.string().allow(""),
1564
+ updated_time: Joi.string().allow(""),
2559
1565
  });
2560
1566
  }
2561
-
2562
- static AffiliateAppConfig() {
1567
+ static PlatformUserDetails() {
2563
1568
  return Joi.object({
2564
- updated_at: Joi.string().allow("").required(),
2565
-
2566
- meta: Joi.array().items(OrderModel.AffiliateAppConfigMeta()),
2567
-
2568
- owner: Joi.string().allow("").required(),
2569
-
2570
- created_at: Joi.string().allow("").required(),
2571
-
2572
- token: Joi.string().allow("").required(),
2573
-
2574
- name: Joi.string().allow("").required(),
2575
-
2576
- id: Joi.string().allow("").required(),
2577
-
2578
- secret: Joi.string().allow("").required(),
2579
-
2580
- description: Joi.string().allow(""),
1569
+ platform_user_employee_code: Joi.string().allow(""),
1570
+ platform_user_first_name: Joi.string().allow(""),
1571
+ platform_user_id: Joi.string().allow(""),
1572
+ platform_user_last_name: Joi.string().allow(""),
2581
1573
  });
2582
1574
  }
2583
-
2584
- static AffiliateInventoryArticleAssignmentConfig() {
1575
+ static PostActivityHistory() {
2585
1576
  return Joi.object({
2586
- post_order_reassignment: Joi.boolean(),
1577
+ data: OrderModel.PostHistoryData().required(),
1578
+ filters: Joi.array().items(OrderModel.PostHistoryFilters()).required(),
2587
1579
  });
2588
1580
  }
2589
-
2590
- static AffiliateInventoryPaymentConfig() {
1581
+ static PostHistoryData() {
2591
1582
  return Joi.object({
2592
- mode_of_payment: Joi.string().allow(""),
2593
-
2594
- source: Joi.string().allow(""),
1583
+ message: Joi.string().allow("").required(),
1584
+ user_name: Joi.string().allow("").required(),
2595
1585
  });
2596
1586
  }
2597
-
2598
- static AffiliateInventoryStoreConfig() {
1587
+ static PostHistoryDict() {
2599
1588
  return Joi.object({
2600
- store: Joi.any(),
1589
+ activity_history: OrderModel.PostActivityHistory().required(),
2601
1590
  });
2602
1591
  }
2603
-
2604
- static AffiliateInventoryOrderConfig() {
1592
+ static PostHistoryFilters() {
2605
1593
  return Joi.object({
2606
- force_reassignment: Joi.boolean(),
1594
+ identifier: Joi.string().allow(""),
1595
+ line_number: Joi.string().allow(""),
1596
+ shipment_id: Joi.string().allow("").required(),
2607
1597
  });
2608
1598
  }
2609
-
2610
- static AffiliateInventoryLogisticsConfig() {
1599
+ static PostShipmentHistory() {
2611
1600
  return Joi.object({
2612
- dp_assignment: Joi.boolean(),
1601
+ activity_history: Joi.array().items(OrderModel.PostHistoryDict()),
2613
1602
  });
2614
1603
  }
2615
-
2616
- static AffiliateInventoryConfig() {
1604
+ static Prices() {
2617
1605
  return Joi.object({
2618
- article_assignment: OrderModel.AffiliateInventoryArticleAssignmentConfig(),
2619
-
2620
- payment: OrderModel.AffiliateInventoryPaymentConfig(),
2621
-
2622
- inventory: OrderModel.AffiliateInventoryStoreConfig(),
2623
-
2624
- order: OrderModel.AffiliateInventoryOrderConfig(),
2625
-
2626
- logistics: OrderModel.AffiliateInventoryLogisticsConfig(),
1606
+ amount_paid: Joi.number(),
1607
+ amount_paid_roundoff: Joi.number(),
1608
+ cashback: Joi.number(),
1609
+ cashback_applied: Joi.number(),
1610
+ cod_charges: Joi.number(),
1611
+ coupon_value: Joi.number(),
1612
+ delivery_charge: Joi.number(),
1613
+ discount: Joi.number(),
1614
+ fynd_credits: Joi.number(),
1615
+ price_effective: Joi.number(),
1616
+ price_marked: Joi.number(),
1617
+ promotion_effective_discount: Joi.number(),
1618
+ refund_amount: Joi.number(),
1619
+ refund_credit: Joi.number(),
1620
+ tax_collected_at_source: Joi.number(),
1621
+ transfer_price: Joi.number(),
1622
+ value_of_good: Joi.number(),
2627
1623
  });
2628
1624
  }
2629
-
2630
- static AffiliateConfig() {
1625
+ static ProcessingDates() {
2631
1626
  return Joi.object({
2632
- app: OrderModel.AffiliateAppConfig(),
2633
-
2634
- inventory: OrderModel.AffiliateInventoryConfig(),
1627
+ confirm_by_date: Joi.string().allow(""),
1628
+ customer_pickup_slot: Joi.any(),
1629
+ dispatch_after_date: Joi.string().allow(""),
1630
+ dispatch_by_date: Joi.string().allow(""),
1631
+ dp_pickup_slot: Joi.any(),
1632
+ pack_by_date: Joi.string().allow(""),
2635
1633
  });
2636
1634
  }
2637
-
2638
- static Affiliate() {
1635
+ static Products() {
2639
1636
  return Joi.object({
2640
- config: OrderModel.AffiliateConfig(),
2641
-
2642
- id: Joi.string().allow("").required(),
2643
-
2644
- token: Joi.string().allow("").required(),
1637
+ identifier: Joi.string().allow(""),
1638
+ line_number: Joi.number(),
1639
+ quantity: Joi.number(),
2645
1640
  });
2646
1641
  }
2647
-
2648
- static AffiliateStoreIdMapping() {
1642
+ static ProductsDataUpdates() {
2649
1643
  return Joi.object({
2650
- store_id: Joi.number().required(),
2651
-
2652
- marketplace_store_id: Joi.string().allow("").required(),
1644
+ data: Joi.any(),
1645
+ filters: Joi.array().items(OrderModel.ProductsDataUpdatesFilters()),
2653
1646
  });
2654
1647
  }
2655
-
2656
- static OrderConfig() {
1648
+ static ProductsDataUpdatesFilters() {
2657
1649
  return Joi.object({
2658
- affiliate: OrderModel.Affiliate().required(),
2659
-
2660
- bag_end_state: Joi.string().allow(""),
2661
-
2662
- affiliate_store_id_mapping: Joi.array()
2663
- .items(OrderModel.AffiliateStoreIdMapping())
2664
- .required(),
2665
-
2666
- article_lookup: Joi.string().allow(""),
2667
-
2668
- create_user: Joi.boolean(),
2669
-
2670
- store_lookup: Joi.string().allow(""),
1650
+ identifier: Joi.string().allow(""),
1651
+ line_number: Joi.number(),
2671
1652
  });
2672
1653
  }
2673
-
2674
- static OrderUser() {
1654
+ static ProductsReasons() {
2675
1655
  return Joi.object({
2676
- city: Joi.string().allow("").required(),
2677
-
2678
- mobile: Joi.number().required(),
2679
-
2680
- last_name: Joi.string().allow("").required(),
2681
-
2682
- pincode: Joi.string().allow("").required(),
2683
-
2684
- phone: Joi.number().required(),
2685
-
2686
- state: Joi.string().allow("").required(),
2687
-
2688
- address1: Joi.string().allow("").allow(null),
2689
-
2690
- first_name: Joi.string().allow("").required(),
2691
-
2692
- address2: Joi.string().allow("").allow(null),
2693
-
2694
- email: Joi.string().allow("").required(),
2695
-
2696
- country: Joi.string().allow("").required(),
1656
+ data: OrderModel.ProductsReasonsData(),
1657
+ filters: Joi.array().items(OrderModel.ProductsReasonsFilters()),
2697
1658
  });
2698
1659
  }
2699
-
2700
- static UserData() {
1660
+ static ProductsReasonsData() {
2701
1661
  return Joi.object({
2702
- shipping_user: OrderModel.OrderUser(),
2703
-
2704
- billing_user: OrderModel.OrderUser(),
1662
+ reason_id: Joi.number(),
1663
+ reason_text: Joi.string().allow(""),
2705
1664
  });
2706
1665
  }
2707
-
2708
- static ArticleDetails1() {
1666
+ static ProductsReasonsFilters() {
2709
1667
  return Joi.object({
2710
- category: Joi.any().required(),
2711
-
2712
- _id: Joi.string().allow("").required(),
2713
-
2714
- quantity: Joi.number().required(),
2715
-
2716
- dimension: Joi.any().required(),
2717
-
2718
- weight: Joi.any().required(),
2719
-
2720
- attributes: Joi.any().required(),
2721
-
2722
- brand_id: Joi.number().required(),
1668
+ identifier: Joi.string().allow(""),
1669
+ line_number: Joi.number(),
1670
+ quantity: Joi.number(),
2723
1671
  });
2724
1672
  }
2725
-
2726
- static LocationDetails() {
1673
+ static QuestionSet() {
2727
1674
  return Joi.object({
2728
- fulfillment_id: Joi.number().required(),
2729
-
2730
- fulfillment_type: Joi.string().allow("").required(),
2731
-
2732
- articles: Joi.array().items(OrderModel.ArticleDetails1()).required(),
1675
+ display_name: Joi.string().allow(""),
1676
+ id: Joi.number(),
2733
1677
  });
2734
1678
  }
2735
-
2736
- static ShipmentDetails() {
1679
+ static Reason() {
2737
1680
  return Joi.object({
2738
- fulfillment_id: Joi.number().required(),
2739
-
2740
- dp_id: Joi.number().allow(null),
2741
-
2742
- affiliate_shipment_id: Joi.string().allow("").required(),
2743
-
2744
- meta: Joi.any(),
2745
-
2746
- articles: Joi.array().items(OrderModel.ArticleDetails1()).required(),
2747
-
2748
- shipments: Joi.number().required(),
2749
-
2750
- box_type: Joi.string().allow("").allow(null),
1681
+ display_name: Joi.string().allow(""),
1682
+ id: Joi.number(),
1683
+ qc_type: Joi.array().items(Joi.string().allow("")),
1684
+ question_set: Joi.array().items(OrderModel.QuestionSet()),
2751
1685
  });
2752
1686
  }
2753
-
2754
- static ShipmentConfig() {
1687
+ static ReasonsData() {
2755
1688
  return Joi.object({
2756
- location_details: OrderModel.LocationDetails(),
2757
-
2758
- action: Joi.string().allow("").required(),
2759
-
2760
- identifier: Joi.string().allow("").required(),
2761
-
2762
- shipment: Joi.array().items(OrderModel.ShipmentDetails()).required(),
2763
-
2764
- source: Joi.string().allow("").required(),
2765
-
2766
- payment_mode: Joi.string().allow("").required(),
2767
-
2768
- journey: Joi.string().allow("").required(),
2769
-
2770
- to_pincode: Joi.string().allow("").required(),
1689
+ entities: Joi.array().items(OrderModel.EntitiesReasons()),
1690
+ products: Joi.array().items(OrderModel.ProductsReasons()),
2771
1691
  });
2772
1692
  }
2773
-
2774
- static ShipmentData() {
1693
+ static ResponseDetail() {
2775
1694
  return Joi.object({
2776
- shipment_data: OrderModel.ShipmentConfig().required(),
1695
+ message: Joi.array().items(Joi.string().allow("")),
1696
+ success: Joi.boolean(),
2777
1697
  });
2778
1698
  }
2779
-
2780
- static MarketPlacePdf() {
1699
+ static ReturnConfig() {
2781
1700
  return Joi.object({
2782
- label: Joi.string().allow("").allow(null),
2783
-
2784
- invoice: Joi.string().allow("").allow(null),
1701
+ returnable: Joi.boolean(),
1702
+ time: Joi.number(),
1703
+ unit: Joi.string().allow(""),
2785
1704
  });
2786
1705
  }
2787
-
2788
- static AffiliateBag() {
1706
+ static SendSmsPayload() {
2789
1707
  return Joi.object({
2790
- avl_qty: Joi.number().required(),
2791
-
2792
- quantity: Joi.number().required(),
2793
-
2794
- amount_paid: Joi.number().required(),
2795
-
2796
- discount: Joi.number().required(),
2797
-
2798
- affiliate_store_id: Joi.string().allow("").required(),
2799
-
2800
- seller_identifier: Joi.string().allow("").required(),
2801
-
2802
- store_id: Joi.number().required(),
2803
-
2804
- fynd_store_id: Joi.string().allow("").required(),
2805
-
2806
- transfer_price: Joi.number().required(),
2807
-
2808
- item_size: Joi.string().allow("").required(),
2809
-
2810
- price_effective: Joi.number().required(),
2811
-
2812
- modified_on: Joi.string().allow("").required(),
2813
-
2814
- affiliate_meta: Joi.any().required(),
2815
-
2816
- hsn_code_id: Joi.string().allow("").required(),
2817
-
2818
- _id: Joi.string().allow("").required(),
2819
-
2820
- price_marked: Joi.number().required(),
2821
-
2822
- company_id: Joi.number().required(),
2823
-
2824
- delivery_charge: Joi.number().required(),
2825
-
2826
- item_id: Joi.number().required(),
2827
-
2828
- sku: Joi.string().allow("").required(),
2829
-
2830
- identifier: Joi.any().required(),
2831
-
2832
- pdf_links: OrderModel.MarketPlacePdf(),
2833
-
2834
- unit_price: Joi.number().required(),
1708
+ bag_id: Joi.number().required(),
1709
+ data: OrderModel.SmsDataPayload(),
1710
+ slug: Joi.string().allow("").required(),
2835
1711
  });
2836
1712
  }
2837
-
2838
- static OrderPriority() {
1713
+ static Shipment() {
2839
1714
  return Joi.object({
2840
- fulfilment_priority_text: Joi.string().allow(""),
2841
-
2842
- fulfilment_priority: Joi.number().allow(null),
2843
-
2844
- affiliate_priority_code: Joi.string().allow("").allow(null),
1715
+ external_shipment_id: Joi.string().allow(""),
1716
+ line_items: Joi.array().items(OrderModel.LineItem()).required(),
1717
+ location_id: Joi.number().required(),
1718
+ meta: Joi.any(),
1719
+ priority: Joi.number(),
1720
+ processing_dates: OrderModel.ProcessingDates(),
2845
1721
  });
2846
1722
  }
2847
-
2848
- static OrderInfo() {
1723
+ static ShipmentConfig() {
2849
1724
  return Joi.object({
2850
- payment: Joi.any(),
2851
-
2852
- affiliate_order_id: Joi.string().allow(""),
2853
-
2854
- user: OrderModel.UserData().required(),
2855
-
2856
- shipping_address: OrderModel.OrderUser().required(),
2857
-
2858
- billing_address: OrderModel.OrderUser().required(),
2859
-
2860
- shipment: OrderModel.ShipmentData(),
2861
-
2862
- discount: Joi.number().required(),
2863
-
1725
+ action: Joi.string().allow("").required(),
1726
+ identifier: Joi.string().allow("").required(),
1727
+ journey: Joi.string().allow("").required(),
1728
+ location_details: OrderModel.LocationDetails(),
2864
1729
  payment_mode: Joi.string().allow("").required(),
2865
-
2866
- bags: Joi.array().items(OrderModel.AffiliateBag()).required(),
2867
-
2868
- coupon: Joi.string().allow("").allow(null),
2869
-
2870
- cod_charges: Joi.number().required(),
2871
-
2872
- delivery_charges: Joi.number().required(),
2873
-
2874
- order_value: Joi.number().required(),
2875
-
2876
- items: Joi.any().required(),
2877
-
2878
- order_priority: OrderModel.OrderPriority(),
1730
+ shipment: Joi.array().items(OrderModel.ShipmentDetails()).required(),
1731
+ source: Joi.string().allow("").required(),
1732
+ to_pincode: Joi.string().allow("").required(),
2879
1733
  });
2880
1734
  }
2881
-
2882
- static CreateOrderPayload() {
1735
+ static ShipmentData() {
2883
1736
  return Joi.object({
2884
- affiliate_id: Joi.string().allow("").required(),
2885
-
2886
- order_config: OrderModel.OrderConfig().required(),
2887
-
2888
- order_info: OrderModel.OrderInfo().required(),
1737
+ shipment_data: OrderModel.ShipmentConfig().required(),
2889
1738
  });
2890
1739
  }
2891
-
2892
- static CreateOrderResponse() {
1740
+ static ShipmentDetail() {
2893
1741
  return Joi.object({
2894
- fynd_order_id: Joi.string().allow("").required(),
1742
+ bag_list: Joi.array().items(Joi.number()),
1743
+ id: Joi.number().required(),
1744
+ meta: OrderModel.Meta1().required(),
1745
+ remarks: Joi.string().allow(""),
1746
+ shipment_id: Joi.string().allow(""),
1747
+ status: Joi.string().allow(""),
2895
1748
  });
2896
1749
  }
2897
-
2898
- static DispatchManifest() {
1750
+ static ShipmentDetails() {
2899
1751
  return Joi.object({
2900
- manifest_id: Joi.string().allow("").required(),
1752
+ affiliate_shipment_id: Joi.string().allow("").required(),
1753
+ articles: Joi.array().items(OrderModel.ArticleDetails1()).required(),
1754
+ box_type: Joi.string().allow("").allow(null),
1755
+ dp_id: Joi.number().allow(null),
1756
+ fulfillment_id: Joi.number().required(),
1757
+ meta: Joi.any(),
1758
+ shipments: Joi.number().required(),
2901
1759
  });
2902
1760
  }
2903
-
2904
- static SuccessResponse() {
1761
+ static ShipmentDetailsResponse() {
2905
1762
  return Joi.object({
2906
- message: Joi.string().allow(""),
2907
-
2908
- success: Joi.boolean(),
1763
+ order: OrderModel.OrderDict(),
1764
+ shipments: Joi.array().items(OrderModel.PlatformShipment()),
1765
+ success: Joi.boolean().required(),
2909
1766
  });
2910
1767
  }
2911
-
2912
- static ActionInfo() {
1768
+ static ShipmentHistoryResponse() {
2913
1769
  return Joi.object({
2914
- display_text: Joi.string().allow("").required(),
2915
-
2916
- slug: Joi.string().allow("").required(),
2917
-
2918
- id: Joi.number().required(),
2919
-
2920
- description: Joi.string().allow("").required(),
1770
+ activity_history: Joi.array().items(OrderModel.HistoryDict()).required(),
2921
1771
  });
2922
1772
  }
2923
-
2924
- static GetActionsResponse() {
1773
+ static ShipmentInfoResponse() {
2925
1774
  return Joi.object({
2926
- permissions: OrderModel.ActionInfo().required(),
1775
+ message: Joi.string().allow(""),
1776
+ shipments: Joi.array().items(OrderModel.PlatformShipment()),
1777
+ success: Joi.boolean().required(),
2927
1778
  });
2928
1779
  }
2929
-
2930
- static HistoryDict() {
1780
+ static ShipmentInternalPlatformViewResponse() {
2931
1781
  return Joi.object({
2932
- type: Joi.string().allow("").required(),
2933
-
2934
- user: Joi.string().allow("").required(),
2935
-
2936
- l2_detail: Joi.string().allow(""),
2937
-
2938
- bag_id: Joi.number(),
2939
-
2940
- ticket_id: Joi.string().allow(""),
2941
-
2942
- message: Joi.string().allow("").required(),
2943
-
2944
- createdat: Joi.string().allow("").required(),
2945
-
2946
- ticket_url: Joi.string().allow(""),
2947
-
2948
- l1_detail: Joi.string().allow(""),
2949
-
2950
- l3_detail: Joi.string().allow(""),
1782
+ applied_filters: Joi.any(),
1783
+ filters: Joi.array().items(OrderModel.FiltersInfo()),
1784
+ items: Joi.array().items(OrderModel.ShipmentItem()),
1785
+ page: Joi.any(),
2951
1786
  });
2952
1787
  }
2953
-
2954
- static ShipmentHistoryResponse() {
1788
+ static ShipmentItem() {
2955
1789
  return Joi.object({
2956
- activity_history: Joi.array().items(OrderModel.HistoryDict()).required(),
1790
+ application: Joi.any(),
1791
+ bags: Joi.array().items(OrderModel.BagUnit()),
1792
+ channel: Joi.any(),
1793
+ created_at: Joi.string().allow("").required(),
1794
+ fulfilling_centre: Joi.string().allow("").required(),
1795
+ fulfilling_store: OrderModel.ShipmentItemFulFillingStore(),
1796
+ id: Joi.string().allow("").required(),
1797
+ payment_methods: Joi.any(),
1798
+ payment_mode_info: OrderModel.PaymentModeInfo(),
1799
+ prices: OrderModel.Prices(),
1800
+ shipment_created_at: Joi.string().allow("").required(),
1801
+ shipment_id: Joi.string().allow(""),
1802
+ shipment_status: OrderModel.ShipmentStatus(),
1803
+ sla: Joi.any(),
1804
+ total_bags_count: Joi.number().required(),
1805
+ total_shipments_in_order: Joi.number().required(),
1806
+ user: OrderModel.UserDataInfo(),
2957
1807
  });
2958
1808
  }
2959
-
2960
- static ErrorDetail() {
1809
+ static ShipmentItemFulFillingStore() {
2961
1810
  return Joi.object({
2962
- message: Joi.string().allow(""),
2963
-
2964
- success: Joi.boolean(),
1811
+ code: Joi.string().allow("").required(),
1812
+ id: Joi.string().allow("").required(),
2965
1813
  });
2966
1814
  }
2967
-
2968
- static PostHistoryData() {
1815
+ static ShipmentMeta() {
2969
1816
  return Joi.object({
2970
- message: Joi.string().allow("").required(),
2971
-
2972
- user_name: Joi.string().allow("").required(),
1817
+ assign_dp_from_sb: Joi.boolean(),
1818
+ auto_trigger_dp_assignment_acf: Joi.boolean().required(),
1819
+ awb_number: Joi.string().allow(""),
1820
+ b2b_buyer_details: OrderModel.BuyerDetails(),
1821
+ b2c_buyer_details: Joi.any().allow(null),
1822
+ bag_weight: Joi.any(),
1823
+ box_type: Joi.string().allow("").allow(null),
1824
+ debug_info: OrderModel.DebugInfo(),
1825
+ dp_id: Joi.string().allow("").allow(null),
1826
+ dp_name: Joi.string().allow(""),
1827
+ dp_options: Joi.any(),
1828
+ dp_sort_key: Joi.string().allow(""),
1829
+ due_date: Joi.string().allow(""),
1830
+ einvoice_info: OrderModel.EinvoiceInfo(),
1831
+ ewaybill_info: Joi.any().allow(null),
1832
+ external: Joi.any(),
1833
+ formatted: OrderModel.Formatted(),
1834
+ forward_affiliate_order_id: Joi.string().allow(""),
1835
+ forward_affiliate_shipment_id: Joi.string().allow(""),
1836
+ fulfilment_priority_text: Joi.string().allow("").allow(null),
1837
+ lock_data: OrderModel.LockData(),
1838
+ marketplace_store_id: Joi.string().allow(""),
1839
+ order_type: Joi.string().allow("").allow(null),
1840
+ packaging_name: Joi.string().allow(""),
1841
+ po_number: Joi.string().allow(""),
1842
+ return_affiliate_order_id: Joi.string().allow(""),
1843
+ return_affiliate_shipment_id: Joi.string().allow(""),
1844
+ return_awb_number: Joi.string().allow(""),
1845
+ return_details: Joi.any(),
1846
+ return_store_node: Joi.number(),
1847
+ same_store_available: Joi.boolean().required(),
1848
+ shipment_volumetric_weight: Joi.number(),
1849
+ shipment_weight: Joi.number(),
1850
+ store_invoice_updated_date: Joi.string().allow(""),
1851
+ timestamp: OrderModel.ShipmentTimeStamp(),
1852
+ weight: Joi.number().required(),
2973
1853
  });
2974
1854
  }
2975
-
2976
- static PostHistoryFilters() {
1855
+ static ShipmentPayments() {
2977
1856
  return Joi.object({
2978
- shipment_id: Joi.string().allow("").required(),
2979
-
2980
- line_number: Joi.string().allow(""),
2981
-
2982
- identifier: Joi.string().allow(""),
1857
+ logo: Joi.string().allow(""),
1858
+ mode: Joi.string().allow(""),
1859
+ source: Joi.string().allow(""),
2983
1860
  });
2984
1861
  }
2985
-
2986
- static PostActivityHistory() {
1862
+ static ShipmentsRequest() {
2987
1863
  return Joi.object({
2988
- data: OrderModel.PostHistoryData().required(),
2989
-
2990
- filters: Joi.array().items(OrderModel.PostHistoryFilters()).required(),
1864
+ data_updates: OrderModel.DataUpdates(),
1865
+ identifier: Joi.string().allow("").required(),
1866
+ products: Joi.array().items(OrderModel.Products()),
1867
+ reasons: OrderModel.ReasonsData(),
2991
1868
  });
2992
1869
  }
2993
-
2994
- static PostHistoryDict() {
1870
+ static ShipmentsResponse() {
2995
1871
  return Joi.object({
2996
- activity_history: OrderModel.PostActivityHistory().required(),
1872
+ code: Joi.string().allow(""),
1873
+ exception: Joi.string().allow(""),
1874
+ final_state: Joi.any(),
1875
+ identifier: Joi.string().allow(""),
1876
+ message: Joi.string().allow(""),
1877
+ meta: Joi.any(),
1878
+ stack_trace: Joi.string().allow(""),
1879
+ status: Joi.number(),
2997
1880
  });
2998
1881
  }
2999
-
3000
- static PostShipmentHistory() {
1882
+ static ShipmentStatus() {
3001
1883
  return Joi.object({
3002
- activity_history: Joi.array().items(OrderModel.PostHistoryDict()),
1884
+ actual_status: Joi.string().allow("").required(),
1885
+ hex_code: Joi.string().allow("").required(),
1886
+ ops_status: Joi.string().allow("").required(),
1887
+ status: Joi.string().allow("").required(),
1888
+ title: Joi.string().allow("").required(),
3003
1889
  });
3004
1890
  }
3005
-
3006
- static SmsDataPayload() {
1891
+ static ShipmentStatusData() {
3007
1892
  return Joi.object({
3008
- order_id: Joi.string().allow("").required(),
3009
-
3010
- shipment_id: Joi.number().required(),
3011
-
3012
- amount_paid: Joi.number().required(),
3013
-
3014
- payment_mode: Joi.string().allow("").required(),
3015
-
3016
- phone_number: Joi.number().required(),
3017
-
3018
- message: Joi.string().allow("").required(),
3019
-
3020
- customer_name: Joi.string().allow("").required(),
3021
-
3022
- country_code: Joi.string().allow("").required(),
3023
-
3024
- brand_name: Joi.string().allow("").required(),
1893
+ bag_list: Joi.array().items(Joi.string().allow("")),
1894
+ created_at: Joi.string().allow("").allow(null),
1895
+ id: Joi.number(),
1896
+ shipment_id: Joi.string().allow(""),
1897
+ status: Joi.string().allow(""),
3025
1898
  });
3026
1899
  }
3027
-
3028
- static SendSmsPayload() {
1900
+ static ShipmentTimeStamp() {
3029
1901
  return Joi.object({
3030
- slug: Joi.string().allow("").required(),
3031
-
3032
- bag_id: Joi.number().required(),
3033
-
3034
- data: OrderModel.SmsDataPayload(),
1902
+ t_max: Joi.string().allow(""),
1903
+ t_min: Joi.string().allow(""),
3035
1904
  });
3036
1905
  }
3037
-
3038
- static OrderDetails() {
1906
+ static ShippingInfo() {
3039
1907
  return Joi.object({
3040
- created_at: Joi.string().allow(""),
3041
-
3042
- fynd_order_id: Joi.string().allow(""),
1908
+ address1: Joi.string().allow("").required(),
1909
+ address2: Joi.string().allow(""),
1910
+ address_type: Joi.string().allow(""),
1911
+ alternate_email: Joi.string().allow(""),
1912
+ alternate_mobile_number: Joi.string().allow(""),
1913
+ city: Joi.string().allow("").required(),
1914
+ country: Joi.string().allow("").required(),
1915
+ country_code: Joi.string().allow(""),
1916
+ customer_code: Joi.string().allow(""),
1917
+ external_customer_code: Joi.string().allow(""),
1918
+ first_name: Joi.string().allow("").required(),
1919
+ floor_no: Joi.string().allow(""),
1920
+ gender: Joi.string().allow(""),
1921
+ geo_location: Joi.any(),
1922
+ house_no: Joi.string().allow(""),
1923
+ landmark: Joi.string().allow(""),
1924
+ last_name: Joi.string().allow(""),
1925
+ middle_name: Joi.string().allow(""),
1926
+ pincode: Joi.string().allow("").required(),
1927
+ primary_email: Joi.string().allow("").required(),
1928
+ primary_mobile_number: Joi.string().allow("").required(),
1929
+ shipping_type: Joi.string().allow(""),
1930
+ slot: Joi.array().items(Joi.any()),
1931
+ state: Joi.string().allow("").required(),
1932
+ state_code: Joi.string().allow(""),
1933
+ title: Joi.string().allow(""),
3043
1934
  });
3044
1935
  }
3045
-
3046
- static Meta1() {
1936
+ static SmsDataPayload() {
3047
1937
  return Joi.object({
3048
- state_manager_used: Joi.string().allow(""),
3049
-
3050
- kafka_emission_status: Joi.number(),
1938
+ amount_paid: Joi.number().required(),
1939
+ brand_name: Joi.string().allow("").required(),
1940
+ country_code: Joi.string().allow("").required(),
1941
+ customer_name: Joi.string().allow("").required(),
1942
+ message: Joi.string().allow("").required(),
1943
+ order_id: Joi.string().allow("").required(),
1944
+ payment_mode: Joi.string().allow("").required(),
1945
+ phone_number: Joi.number().required(),
1946
+ shipment_id: Joi.number().required(),
3051
1947
  });
3052
1948
  }
3053
-
3054
- static ShipmentDetail() {
1949
+ static StatuesRequest() {
3055
1950
  return Joi.object({
3056
- shipment_id: Joi.string().allow(""),
3057
-
3058
- remarks: Joi.string().allow(""),
3059
-
3060
- bag_list: Joi.array().items(Joi.number()),
3061
-
3062
- meta: OrderModel.Meta1().required(),
3063
-
1951
+ exclude_bags_next_state: Joi.string().allow(""),
1952
+ shipments: Joi.array().items(OrderModel.ShipmentsRequest()),
3064
1953
  status: Joi.string().allow(""),
3065
-
3066
- id: Joi.number().required(),
3067
1954
  });
3068
1955
  }
3069
-
3070
- static OrderStatusData() {
1956
+ static StatuesResponse() {
3071
1957
  return Joi.object({
3072
- errors: Joi.array().items(Joi.string().allow("")),
3073
-
3074
- order_details: OrderModel.OrderDetails().required(),
3075
-
3076
- shipment_details: Joi.array().items(OrderModel.ShipmentDetail()),
1958
+ shipments: Joi.array().items(OrderModel.ShipmentsResponse()),
3077
1959
  });
3078
1960
  }
3079
-
3080
- static OrderStatusResult() {
1961
+ static Store() {
3081
1962
  return Joi.object({
3082
- result: Joi.array().items(OrderModel.OrderStatusData()),
3083
-
3084
- success: Joi.string().allow("").required(),
1963
+ address1: Joi.string().allow("").required(),
1964
+ address2: Joi.string().allow(""),
1965
+ alohomora_user_id: Joi.number(),
1966
+ brand_id: Joi.any(),
1967
+ brand_store_tags: Joi.array().items(Joi.string().allow("")),
1968
+ city: Joi.string().allow("").required(),
1969
+ code: Joi.string().allow(""),
1970
+ company_id: Joi.number().required(),
1971
+ contact_person: Joi.string().allow("").required(),
1972
+ country: Joi.string().allow("").required(),
1973
+ created_at: Joi.string().allow("").required(),
1974
+ fulfillment_channel: Joi.string().allow("").required(),
1975
+ is_active: Joi.boolean(),
1976
+ is_archived: Joi.boolean(),
1977
+ is_enabled_for_recon: Joi.boolean(),
1978
+ latitude: Joi.number().required(),
1979
+ location_type: Joi.string().allow("").required(),
1980
+ login_username: Joi.string().allow("").required(),
1981
+ longitude: Joi.number().required(),
1982
+ mall_area: Joi.string().allow("").allow(null),
1983
+ mall_name: Joi.string().allow("").allow(null),
1984
+ meta: OrderModel.StoreMeta().required(),
1985
+ name: Joi.string().allow("").required(),
1986
+ order_integration_id: Joi.string().allow(""),
1987
+ packaging_material_count: Joi.number(),
1988
+ parent_store_id: Joi.number(),
1989
+ phone: Joi.number().required(),
1990
+ pincode: Joi.string().allow("").required(),
1991
+ s_id: Joi.string().allow("").required(),
1992
+ state: Joi.string().allow("").required(),
1993
+ store_active_from: Joi.string().allow("").allow(null),
1994
+ store_address_json: OrderModel.StoreAddress(),
1995
+ store_email: Joi.string().allow("").required(),
1996
+ updated_at: Joi.string().allow("").allow(null),
1997
+ vat_no: Joi.string().allow("").allow(null),
3085
1998
  });
3086
1999
  }
3087
-
3088
- static ManualAssignDPToShipment() {
2000
+ static StoreAddress() {
3089
2001
  return Joi.object({
3090
- shipment_ids: Joi.array().items(Joi.string().allow("")),
3091
-
3092
- dp_id: Joi.number().required(),
3093
-
3094
- order_type: Joi.string().allow("").required(),
3095
-
3096
- qc_required: Joi.string().allow("").required(),
2002
+ address1: Joi.string().allow("").required(),
2003
+ address2: Joi.string().allow(""),
2004
+ address_category: Joi.string().allow("").required(),
2005
+ address_type: Joi.string().allow("").required(),
2006
+ area: Joi.string().allow(""),
2007
+ city: Joi.string().allow("").required(),
2008
+ contact_person: Joi.string().allow("").required(),
2009
+ country: Joi.string().allow("").required(),
2010
+ country_code: Joi.string().allow("").required(),
2011
+ created_at: Joi.string().allow("").required(),
2012
+ email: Joi.string().allow(""),
2013
+ landmark: Joi.string().allow(""),
2014
+ latitude: Joi.number().required(),
2015
+ longitude: Joi.number().required(),
2016
+ phone: Joi.string().allow("").allow(null).required(),
2017
+ pincode: Joi.number().required(),
2018
+ state: Joi.string().allow("").required(),
2019
+ updated_at: Joi.string().allow("").required(),
2020
+ version: Joi.string().allow(""),
3097
2021
  });
3098
2022
  }
3099
-
3100
- static ManualAssignDPToShipmentResponse() {
2023
+ static StoreDocuments() {
3101
2024
  return Joi.object({
3102
- errors: Joi.array().items(Joi.string().allow("")),
3103
-
3104
- success: Joi.string().allow("").required(),
2025
+ gst: OrderModel.Document(),
3105
2026
  });
3106
2027
  }
3107
-
3108
- static TaxInfo() {
2028
+ static StoreEinvoice() {
3109
2029
  return Joi.object({
3110
- gstin: Joi.string().allow(""),
3111
-
3112
- b2b_gstin_number: Joi.string().allow(""),
2030
+ enabled: Joi.boolean().required(),
2031
+ password: Joi.string().allow(""),
2032
+ user: Joi.string().allow(""),
2033
+ username: Joi.string().allow(""),
3113
2034
  });
3114
2035
  }
3115
-
3116
- static BillingInfo() {
2036
+ static StoreEwaybill() {
3117
2037
  return Joi.object({
3118
- state_code: Joi.string().allow(""),
3119
-
3120
- pincode: Joi.string().allow("").required(),
3121
-
3122
- customer_code: Joi.string().allow(""),
3123
-
3124
- alternate_mobile_number: Joi.string().allow(""),
3125
-
3126
- middle_name: Joi.string().allow(""),
3127
-
3128
- title: Joi.string().allow(""),
3129
-
3130
- house_no: Joi.string().allow(""),
3131
-
3132
- first_name: Joi.string().allow("").required(),
3133
-
3134
- gender: Joi.string().allow(""),
3135
-
3136
- last_name: Joi.string().allow(""),
3137
-
3138
- city: Joi.string().allow("").required(),
3139
-
3140
- alternate_email: Joi.string().allow(""),
3141
-
3142
- primary_email: Joi.string().allow("").required(),
3143
-
3144
- address2: Joi.string().allow(""),
3145
-
3146
- primary_mobile_number: Joi.string().allow("").required(),
3147
-
3148
- external_customer_code: Joi.string().allow(""),
3149
-
3150
- state: Joi.string().allow("").required(),
3151
-
3152
- address1: Joi.string().allow("").required(),
3153
-
3154
- floor_no: Joi.string().allow(""),
3155
-
3156
- country_code: Joi.string().allow(""),
3157
-
3158
- country: Joi.string().allow("").required(),
2038
+ enabled: Joi.boolean(),
3159
2039
  });
3160
2040
  }
3161
-
3162
- static ShippingInfo() {
2041
+ static StoreGstCredentials() {
3163
2042
  return Joi.object({
3164
- state_code: Joi.string().allow(""),
3165
-
3166
- pincode: Joi.string().allow("").required(),
3167
-
3168
- shipping_type: Joi.string().allow(""),
3169
-
3170
- customer_code: Joi.string().allow(""),
3171
-
3172
- alternate_mobile_number: Joi.string().allow(""),
3173
-
3174
- address_type: Joi.string().allow(""),
3175
-
3176
- middle_name: Joi.string().allow(""),
3177
-
3178
- geo_location: Joi.any(),
3179
-
3180
- title: Joi.string().allow(""),
3181
-
3182
- house_no: Joi.string().allow(""),
3183
-
3184
- first_name: Joi.string().allow("").required(),
3185
-
3186
- gender: Joi.string().allow(""),
3187
-
3188
- last_name: Joi.string().allow(""),
3189
-
3190
- slot: Joi.array().items(Joi.any()),
3191
-
3192
- city: Joi.string().allow("").required(),
3193
-
3194
- alternate_email: Joi.string().allow(""),
3195
-
3196
- primary_email: Joi.string().allow("").required(),
3197
-
3198
- address2: Joi.string().allow(""),
3199
-
3200
- primary_mobile_number: Joi.string().allow("").required(),
3201
-
3202
- external_customer_code: Joi.string().allow(""),
3203
-
3204
- state: Joi.string().allow("").required(),
3205
-
3206
- address1: Joi.string().allow("").required(),
3207
-
3208
- floor_no: Joi.string().allow(""),
3209
-
3210
- landmark: Joi.string().allow(""),
3211
-
3212
- country_code: Joi.string().allow(""),
3213
-
3214
- country: Joi.string().allow("").required(),
2043
+ e_invoice: OrderModel.StoreEinvoice(),
2044
+ e_waybill: OrderModel.StoreEwaybill(),
3215
2045
  });
3216
2046
  }
3217
-
3218
- static PaymentMethod() {
2047
+ static StoreMeta() {
3219
2048
  return Joi.object({
3220
- refund_by: Joi.string().allow("").required(),
3221
-
3222
- mode: Joi.string().allow("").required(),
3223
-
3224
- meta: Joi.any(),
3225
-
3226
- amount: Joi.number().required(),
3227
-
3228
- name: Joi.string().allow("").required(),
3229
-
3230
- transaction_data: Joi.any(),
3231
-
3232
- collect_by: Joi.string().allow("").required(),
2049
+ additional_contact_details: Joi.any(),
2050
+ display_name: Joi.string().allow("").required(),
2051
+ documents: OrderModel.StoreDocuments(),
2052
+ einvoice_portal_details: OrderModel.EInvoicePortalDetails(),
2053
+ ewaybill_portal_details: Joi.any(),
2054
+ gst_credentials: OrderModel.StoreGstCredentials().required(),
2055
+ gst_number: Joi.string().allow(""),
2056
+ notification_emails: Joi.array().items(Joi.string().allow("")),
2057
+ product_return_config: Joi.any(),
2058
+ stage: Joi.string().allow("").required(),
2059
+ timing: Joi.array().items(Joi.any()),
3233
2060
  });
3234
2061
  }
3235
-
3236
- static PaymentInfo() {
2062
+ static StoreReassign() {
3237
2063
  return Joi.object({
3238
- payment_methods: Joi.array().items(OrderModel.PaymentMethod()),
3239
-
3240
- primary_mode: Joi.string().allow("").required(),
2064
+ affiliate_bag_id: Joi.string().allow("").allow(null),
2065
+ affiliate_id: Joi.string().allow("").allow(null),
2066
+ affiliate_order_id: Joi.string().allow("").allow(null),
2067
+ bag_id: Joi.number().allow(null),
2068
+ fynd_order_id: Joi.string().allow("").allow(null),
2069
+ item_id: Joi.string().allow("").allow(null),
2070
+ mongo_article_id: Joi.string().allow("").allow(null),
2071
+ reason_ids: Joi.array().items(Joi.number()),
2072
+ set_id: Joi.string().allow("").allow(null),
2073
+ store_id: Joi.number().required(),
3241
2074
  });
3242
2075
  }
3243
-
3244
- static Tax() {
2076
+ static StoreReassignResponse() {
3245
2077
  return Joi.object({
3246
- name: Joi.string().allow("").required(),
3247
-
3248
- breakup: Joi.array().items(Joi.any()),
3249
-
3250
- amount: Joi.any().required(),
3251
-
3252
- rate: Joi.number().required(),
2078
+ message: Joi.string().allow(""),
2079
+ success: Joi.boolean(),
3253
2080
  });
3254
2081
  }
3255
-
3256
- static Charge() {
2082
+ static SubLane() {
3257
2083
  return Joi.object({
3258
- type: Joi.string().allow("").required(),
3259
-
3260
- tax: OrderModel.Tax(),
3261
-
3262
- amount: Joi.any().required(),
3263
-
3264
- name: Joi.string().allow("").required(),
3265
-
3266
- code: Joi.string().allow(""),
2084
+ actions: Joi.array().items(Joi.any()),
2085
+ index: Joi.number(),
2086
+ text: Joi.string().allow(""),
2087
+ total_items: Joi.number(),
2088
+ value: Joi.string().allow(""),
3267
2089
  });
3268
2090
  }
3269
-
3270
- static ProcessingDates() {
2091
+ static Success() {
3271
2092
  return Joi.object({
3272
- pack_by_date: Joi.string().allow(""),
3273
-
3274
- dispatch_by_date: Joi.string().allow(""),
3275
-
3276
- confirm_by_date: Joi.string().allow(""),
3277
-
3278
- customer_pickup_slot: Joi.any(),
3279
-
3280
- dp_pickup_slot: Joi.any(),
3281
-
3282
- dispatch_after_date: Joi.string().allow(""),
2093
+ message: Joi.string().allow(""),
2094
+ success: Joi.boolean(),
3283
2095
  });
3284
2096
  }
3285
-
3286
- static LineItem() {
2097
+ static SuccessResponse() {
3287
2098
  return Joi.object({
3288
- external_line_id: Joi.string().allow(""),
3289
-
3290
- meta: Joi.any(),
3291
-
3292
- quantity: Joi.number(),
3293
-
3294
- seller_identifier: Joi.string().allow("").required(),
3295
-
3296
- charges: Joi.array().items(OrderModel.Charge()),
3297
-
3298
- custom_messasge: Joi.string().allow(""),
2099
+ message: Joi.string().allow(""),
2100
+ success: Joi.boolean(),
3299
2101
  });
3300
2102
  }
3301
-
3302
- static Shipment() {
2103
+ static SuperLane() {
3303
2104
  return Joi.object({
3304
- processing_dates: OrderModel.ProcessingDates(),
3305
-
3306
- meta: Joi.any(),
3307
-
3308
- external_shipment_id: Joi.string().allow(""),
3309
-
3310
- location_id: Joi.number().required(),
3311
-
3312
- line_items: Joi.array().items(OrderModel.LineItem()).required(),
3313
-
3314
- priority: Joi.number(),
2105
+ options: Joi.array().items(OrderModel.SubLane()),
2106
+ text: Joi.string().allow("").required(),
2107
+ total_items: Joi.number(),
2108
+ value: Joi.string().allow("").required(),
3315
2109
  });
3316
2110
  }
3317
-
3318
- static CreateOrderAPI() {
2111
+ static Tax() {
3319
2112
  return Joi.object({
3320
- tax_info: OrderModel.TaxInfo(),
3321
-
3322
- billing_info: OrderModel.BillingInfo().required(),
3323
-
3324
- shipping_info: OrderModel.ShippingInfo().required(),
3325
-
3326
- meta: Joi.any(),
3327
-
3328
- external_creation_date: Joi.string().allow(""),
3329
-
3330
- payment_info: OrderModel.PaymentInfo().required(),
3331
-
3332
- charges: Joi.array().items(OrderModel.Charge()),
3333
-
3334
- currency_info: Joi.any(),
3335
-
3336
- shipments: Joi.array().items(OrderModel.Shipment()).required(),
3337
-
3338
- external_order_id: Joi.string().allow(""),
2113
+ amount: Joi.any().required(),
2114
+ breakup: Joi.array().items(Joi.any()),
2115
+ name: Joi.string().allow("").required(),
2116
+ rate: Joi.number().required(),
3339
2117
  });
3340
2118
  }
3341
-
3342
- static CreateOrderErrorReponse() {
2119
+ static TaxDetails() {
3343
2120
  return Joi.object({
3344
- request_id: Joi.string().allow("").allow(null),
3345
-
3346
- exception: Joi.string().allow("").allow(null),
3347
-
3348
- meta: Joi.string().allow("").allow(null),
3349
-
3350
- message: Joi.string().allow("").required(),
3351
-
3352
- status: Joi.number().required(),
3353
-
3354
- code: Joi.string().allow("").allow(null),
3355
-
3356
- info: Joi.any(),
3357
-
3358
- stack_trace: Joi.string().allow("").allow(null),
2121
+ gstin: Joi.string().allow(""),
2122
+ pan_no: Joi.string().allow(""),
3359
2123
  });
3360
2124
  }
3361
-
3362
- static PaymentMethods() {
2125
+ static TaxInfo() {
3363
2126
  return Joi.object({
3364
- collect_by: Joi.string().allow(""),
3365
-
3366
- mode: Joi.string().allow(""),
3367
-
3368
- refund_by: Joi.string().allow(""),
2127
+ b2b_gstin_number: Joi.string().allow(""),
2128
+ gstin: Joi.string().allow(""),
3369
2129
  });
3370
2130
  }
3371
-
3372
- static CreateChannelPaymentInfo() {
2131
+ static TrackingList() {
3373
2132
  return Joi.object({
3374
- mode_of_payment: Joi.string().allow(""),
3375
-
3376
- source: Joi.string().allow(""),
3377
-
3378
- payment_methods: Joi.array().items(OrderModel.PaymentMethods()),
2133
+ is_current: Joi.boolean(),
2134
+ is_passed: Joi.boolean(),
2135
+ status: Joi.string().allow("").required(),
2136
+ text: Joi.string().allow("").required(),
2137
+ time: Joi.string().allow(""),
3379
2138
  });
3380
2139
  }
3381
-
3382
- static DpConfiguration() {
2140
+ static TransactionData() {
3383
2141
  return Joi.object({
3384
- shipping_by: Joi.string().allow(""),
2142
+ amount_paid: Joi.string().allow(""),
2143
+ currency: Joi.string().allow(""),
2144
+ entity: Joi.string().allow(""),
2145
+ payment_id: Joi.string().allow(""),
2146
+ status: Joi.string().allow(""),
2147
+ terminal_id: Joi.string().allow(""),
2148
+ transaction_id: Joi.string().allow(""),
2149
+ unique_reference_number: Joi.string().allow(""),
3385
2150
  });
3386
2151
  }
3387
-
3388
- static CreateChannelConfig() {
2152
+ static UpdateShipmentLockPayload() {
3389
2153
  return Joi.object({
3390
- lock_states: Joi.array().items(Joi.string().allow("")),
3391
-
3392
- logo_url: Joi.any(),
3393
-
3394
- location_reassignment: Joi.boolean(),
3395
-
3396
- shipment_assignment: Joi.string().allow(""),
3397
-
3398
- payment_info: OrderModel.CreateChannelPaymentInfo(),
3399
-
3400
- dp_configuration: OrderModel.DpConfiguration(),
2154
+ action: Joi.string().allow("").required(),
2155
+ action_type: Joi.string().allow("").required(),
2156
+ entities: Joi.array().items(OrderModel.Entities()).required(),
2157
+ entity_type: Joi.string().allow("").required(),
3401
2158
  });
3402
2159
  }
3403
-
3404
- static CreateChannelConfigData() {
2160
+ static UpdateShipmentLockResponse() {
3405
2161
  return Joi.object({
3406
- config_data: OrderModel.CreateChannelConfig(),
2162
+ check_response: Joi.array().items(OrderModel.CheckResponse()),
2163
+ message: Joi.string().allow(""),
2164
+ success: Joi.boolean(),
3407
2165
  });
3408
2166
  }
3409
-
3410
- static CreateChannelConifgErrorResponse() {
2167
+ static UpdateShipmentStatusRequest() {
3411
2168
  return Joi.object({
3412
- error: Joi.string().allow(""),
2169
+ force_transition: Joi.boolean(),
2170
+ lock_after_transition: Joi.boolean(),
2171
+ statuses: Joi.array().items(OrderModel.StatuesRequest()),
2172
+ task: Joi.boolean(),
2173
+ unlock_before_transition: Joi.boolean(),
3413
2174
  });
3414
2175
  }
3415
-
3416
- static CreateChannelConfigResponse() {
2176
+ static UpdateShipmentStatusResponseBody() {
3417
2177
  return Joi.object({
3418
- is_upserted: Joi.boolean(),
3419
-
3420
- is_inserted: Joi.boolean(),
3421
-
3422
- acknowledged: Joi.boolean(),
2178
+ statuses: Joi.array().items(OrderModel.StatuesResponse()),
3423
2179
  });
3424
2180
  }
3425
-
3426
2181
  static UploadConsent() {
3427
2182
  return Joi.object({
3428
2183
  consent_url: Joi.string().allow("").required(),
3429
-
3430
2184
  manifest_id: Joi.string().allow("").required(),
3431
2185
  });
3432
2186
  }
3433
-
3434
- static PlatformOrderUpdate() {
2187
+ static URL() {
3435
2188
  return Joi.object({
3436
- order_id: Joi.string().allow("").required(),
2189
+ url: Joi.string().allow(""),
3437
2190
  });
3438
2191
  }
3439
-
3440
- static ResponseDetail() {
2192
+ static UserData() {
3441
2193
  return Joi.object({
3442
- message: Joi.array().items(Joi.string().allow("")),
3443
-
3444
- success: Joi.boolean(),
2194
+ billing_user: OrderModel.OrderUser(),
2195
+ shipping_user: OrderModel.OrderUser(),
3445
2196
  });
3446
2197
  }
3447
-
3448
- static FyndOrderIdList() {
2198
+ static UserDataInfo() {
3449
2199
  return Joi.object({
3450
- fynd_order_id: Joi.array().items(Joi.string().allow("")),
2200
+ avis_user_id: Joi.string().allow(""),
2201
+ email: Joi.string().allow(""),
2202
+ first_name: Joi.string().allow(""),
2203
+ gender: Joi.string().allow(""),
2204
+ is_anonymous_user: Joi.boolean(),
2205
+ last_name: Joi.string().allow(""),
2206
+ mobile: Joi.string().allow(""),
2207
+ name: Joi.string().allow(""),
2208
+ uid: Joi.number(),
3451
2209
  });
3452
2210
  }
3453
-
3454
- static OrderStatus() {
2211
+ static UserDetailsData() {
3455
2212
  return Joi.object({
3456
- end_date: Joi.string().allow("").required(),
3457
-
3458
- mobile: Joi.number().required(),
3459
-
3460
- order_details: Joi.array().items(OrderModel.FyndOrderIdList()),
3461
-
3462
- start_date: Joi.string().allow("").required(),
2213
+ address: Joi.string().allow("").required(),
2214
+ address1: Joi.string().allow(""),
2215
+ address_type: Joi.string().allow(""),
2216
+ area: Joi.string().allow(""),
2217
+ city: Joi.string().allow("").required(),
2218
+ country: Joi.string().allow("").required(),
2219
+ email: Joi.string().allow(""),
2220
+ landmark: Joi.string().allow(""),
2221
+ name: Joi.string().allow("").required(),
2222
+ phone: Joi.string().allow("").required(),
2223
+ pincode: Joi.string().allow("").required(),
2224
+ state: Joi.string().allow("").required(),
2225
+ });
2226
+ }
2227
+ static Weight() {
2228
+ return Joi.object({
2229
+ is_default: Joi.boolean(),
2230
+ shipping: Joi.number(),
2231
+ unit: Joi.string().allow(""),
3463
2232
  });
3464
2233
  }
3465
2234
  }