@gofynd/fdk-client-javascript 1.0.2 → 1.0.4

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