@gofynd/fdk-client-javascript 1.0.2 → 1.0.3

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