@gofynd/fdk-client-javascript 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +562 -1270
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +15266 -17619
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3509 -4121
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3750 -5636
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/ApplicationConfig.js +1 -1
  44. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  45. package/sdk/application/Cart/CartApplicationClient.js +1058 -547
  46. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  47. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  48. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  49. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  50. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  51. package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
  52. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  53. package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
  54. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  55. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  56. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  57. package/sdk/application/Common/CommonApplicationClient.js +76 -36
  58. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  59. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  60. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  61. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  62. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  63. package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
  64. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  65. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  66. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  67. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  69. package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  71. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  73. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  74. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  75. package/sdk/application/Content/ContentApplicationClient.js +581 -213
  76. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
  77. package/sdk/application/Content/ContentApplicationModel.js +468 -875
  78. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  79. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  81. package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  83. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  85. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  86. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  87. package/sdk/application/Lead/LeadApplicationClient.js +230 -96
  88. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  89. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  90. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  91. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  92. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  93. package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
  94. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  95. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  96. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  97. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  98. package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
  99. package/sdk/application/Order/OrderApplicationClient.js +448 -215
  100. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  101. package/sdk/application/Order/OrderApplicationModel.js +357 -661
  102. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  103. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  104. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  105. package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
  106. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  107. package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
  108. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  109. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  110. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  111. package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
  112. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
  113. package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
  114. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  115. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  116. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  117. package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
  118. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  119. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  120. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  121. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  122. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  123. package/sdk/application/Share/ShareApplicationClient.js +221 -96
  124. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  125. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  126. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  127. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  128. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  129. package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
  130. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  131. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  132. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  133. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  134. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  135. package/sdk/application/User/UserApplicationClient.js +1201 -543
  136. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  137. package/sdk/application/User/UserApplicationModel.js +440 -689
  138. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  139. package/sdk/application/User/UserApplicationValidator.js +89 -89
  140. package/sdk/common/AxiosHelper.js +1 -1
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  144. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  145. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  146. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  147. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  148. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  152. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  153. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  154. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  155. package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
  156. package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
  157. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  158. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  159. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  160. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  161. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
  162. package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
  163. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  164. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  165. package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
  166. package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
  168. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
  169. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  170. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  171. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
  172. package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
  173. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
  174. package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
  175. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
  176. package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
  177. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
  178. package/sdk/platform/Common/CommonPlatformClient.js +80 -37
  179. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  180. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  181. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  182. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
  184. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
  185. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  186. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  187. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  188. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  189. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  190. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
  192. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
  193. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
  194. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
  195. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  196. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  197. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
  198. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
  199. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  200. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  201. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
  202. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
  203. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  204. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  205. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  206. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  207. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
  208. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
  209. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
  210. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
  211. package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
  212. package/sdk/platform/Content/ContentPlatformModel.js +486 -867
  213. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
  214. package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
  215. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  216. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  217. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  218. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  219. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
  220. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
  221. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  222. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  223. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
  224. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
  225. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  226. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  227. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  228. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  229. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
  230. package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
  231. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  232. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  233. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  234. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  235. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
  236. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
  237. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  238. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  239. package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
  240. package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
  241. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  242. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  243. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  244. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  245. package/sdk/platform/OAuthClient.js +8 -8
  246. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
  247. package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
  248. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  249. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  250. package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
  251. package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
  252. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
  253. package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
  254. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  255. package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
  256. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  257. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  258. package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
  259. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
  260. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
  261. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  262. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  263. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
  264. package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
  265. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  266. package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
  267. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  268. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  269. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
  270. package/sdk/platform/PlatformApplicationClient.js +1584 -13691
  271. package/sdk/platform/PlatformClient.d.ts +7918 -7666
  272. package/sdk/platform/PlatformClient.js +8701 -9926
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  279. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
  280. package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
  281. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  282. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  283. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  284. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  285. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
  286. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
  287. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  288. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  289. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  290. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  291. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
  292. package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
  293. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  294. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  295. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  296. package/sdk/platform/User/UserPlatformModel.js +440 -689
  297. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
  298. package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
  299. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  300. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  301. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  302. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  303. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  304. package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
  305. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  306. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  307. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  308. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  309. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  310. package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
  311. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  312. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  313. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  314. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  315. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
  316. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  317. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  318. package/tests/application/catalog.spec.js +7 -0
@@ -1,1515 +1,981 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class CartModel {
4
- static Ownership() {
4
+ static AbandonedCart() {
5
5
  return Joi.object({
6
- payable_category: Joi.string().allow("").required(),
7
-
8
- payable_by: Joi.string().allow("").required(),
6
+ _id: Joi.string().allow("").required(),
7
+ app_id: Joi.string().allow(""),
8
+ articles: Joi.array().items(Joi.any()).required(),
9
+ bulk_coupon_discount: Joi.number().allow(null),
10
+ buy_now: Joi.boolean(),
11
+ cart_value: Joi.number(),
12
+ cashback: Joi.any().required(),
13
+ checkout_mode: Joi.string().allow(""),
14
+ cod_charges: Joi.any(),
15
+ comment: Joi.string().allow("").allow(null),
16
+ coupon: Joi.any().allow(null),
17
+ created_on: Joi.string().allow("").required(),
18
+ delivery_charges: Joi.any(),
19
+ discount: Joi.number(),
20
+ expire_at: Joi.string().allow("").required(),
21
+ fc_index_map: Joi.array().items(Joi.number()),
22
+ fynd_credits: Joi.any(),
23
+ gstin: Joi.string().allow("").allow(null),
24
+ is_active: Joi.boolean(),
25
+ is_archive: Joi.boolean(),
26
+ is_default: Joi.boolean().required(),
27
+ last_modified: Joi.string().allow("").required(),
28
+ merge_qty: Joi.boolean().allow(null),
29
+ meta: Joi.any().allow(null),
30
+ order_id: Joi.string().allow(""),
31
+ payment_methods: Joi.array().items(Joi.any()),
32
+ payment_mode: Joi.string().allow("").allow(null),
33
+ payments: Joi.any().allow(null),
34
+ pick_up_customer_details: Joi.any().allow(null),
35
+ promotion: Joi.any(),
36
+ shipments: Joi.array().items(Joi.any()),
37
+ uid: Joi.number().required(),
38
+ user_id: Joi.string().allow("").required(),
9
39
  });
10
40
  }
11
-
12
- static DisplayMetaDict() {
41
+ static AbandonedCartResponse() {
13
42
  return Joi.object({
14
- title: Joi.string().allow(""),
15
-
16
- subtitle: Joi.string().allow(""),
43
+ items: Joi.array().items(CartModel.AbandonedCart()),
44
+ message: Joi.string().allow(""),
45
+ page: CartModel.Page(),
46
+ result: Joi.any(),
47
+ success: Joi.boolean(),
17
48
  });
18
49
  }
19
-
20
- static DisplayMeta() {
50
+ static ActionQuery() {
21
51
  return Joi.object({
22
- apply: CartModel.DisplayMetaDict(),
23
-
24
- description: Joi.string().allow(""),
25
-
26
- remove: CartModel.DisplayMetaDict(),
27
-
28
- title: Joi.string().allow(""),
29
-
30
- subtitle: Joi.string().allow(""),
31
-
32
- auto: CartModel.DisplayMetaDict(),
52
+ product_slug: Joi.array().items(Joi.string().allow("")),
33
53
  });
34
54
  }
35
-
36
- static Validity() {
55
+ static AddCartDetailResponse() {
37
56
  return Joi.object({
38
- priority: Joi.number(),
57
+ cart: CartModel.CartDetailResponse(),
58
+ message: Joi.string().allow(""),
59
+ partial: Joi.boolean(),
60
+ success: Joi.boolean(),
39
61
  });
40
62
  }
41
-
42
- static CouponSchedule() {
63
+ static AddCartRequest() {
43
64
  return Joi.object({
44
- start: Joi.string().allow(""),
45
-
46
- next_schedule: Joi.array().items(Joi.any()),
47
-
48
- duration: Joi.number().allow(null),
49
-
50
- end: Joi.string().allow("").allow(null),
51
-
52
- cron: Joi.string().allow("").allow(null),
65
+ items: Joi.array().items(CartModel.AddProductCart()),
53
66
  });
54
67
  }
55
-
56
- static Rule() {
68
+ static AddProductCart() {
57
69
  return Joi.object({
58
- max: Joi.number(),
59
-
60
- min: Joi.number(),
61
-
62
- discount_qty: Joi.number(),
63
-
64
- key: Joi.number(),
65
-
66
- value: Joi.number(),
70
+ _custom_json: Joi.any(),
71
+ article_assignment: Joi.any(),
72
+ article_id: Joi.string().allow(""),
73
+ display: Joi.string().allow(""),
74
+ extra_meta: Joi.any(),
75
+ item_id: Joi.number(),
76
+ item_size: Joi.string().allow(""),
77
+ parent_item_identifiers: Joi.any(),
78
+ pos: Joi.boolean(),
79
+ product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
80
+ quantity: Joi.number(),
81
+ seller_id: Joi.number(),
82
+ store_id: Joi.number(),
67
83
  });
68
84
  }
69
-
70
- static RuleDefinition() {
85
+ static AppliedPromotion() {
71
86
  return Joi.object({
72
- applicable_on: Joi.string().allow("").required(),
73
-
74
- is_exact: Joi.boolean(),
75
-
76
- currency_code: Joi.string().allow(""),
77
-
78
- value_type: Joi.string().allow("").required(),
79
-
80
- scope: Joi.array().items(Joi.string().allow("")),
81
-
82
- auto_apply: Joi.boolean(),
83
-
84
- calculate_on: Joi.string().allow("").required(),
85
-
86
- type: Joi.string().allow("").required(),
87
+ amount: Joi.number(),
88
+ article_quantity: Joi.number(),
89
+ mrp_promotion: Joi.boolean(),
90
+ offer_text: Joi.string().allow(""),
91
+ ownership: CartModel.Ownership2(),
92
+ promo_id: Joi.string().allow(""),
93
+ promotion_type: Joi.string().allow(""),
87
94
  });
88
95
  }
89
-
90
- static CouponAction() {
96
+ static ArticlePriceInfo() {
91
97
  return Joi.object({
92
- txn_mode: Joi.string().allow(""),
93
-
94
- action_date: Joi.string().allow("").allow(null),
98
+ base: CartModel.BasePrice(),
99
+ converted: CartModel.BasePrice(),
95
100
  });
96
101
  }
97
-
98
- static CouponDateMeta() {
102
+ static BaseInfo() {
99
103
  return Joi.object({
100
- modified_on: Joi.string().allow("").allow(null),
101
-
102
- created_on: Joi.string().allow("").allow(null),
104
+ name: Joi.string().allow(""),
105
+ uid: Joi.number(),
103
106
  });
104
107
  }
105
-
106
- static Identifier() {
108
+ static BasePrice() {
107
109
  return Joi.object({
108
- item_id: Joi.array().items(Joi.number()),
109
-
110
- user_id: Joi.array().items(Joi.string().allow("")),
111
-
112
- collection_id: Joi.array().items(Joi.string().allow("")),
113
-
114
- store_id: Joi.array().items(Joi.number()),
115
-
116
- brand_id: Joi.array().items(Joi.number()),
117
-
118
- category_id: Joi.array().items(Joi.number()),
119
-
120
- article_id: Joi.array().items(Joi.string().allow("")),
121
-
122
- exclude_brand_id: Joi.array().items(Joi.number()),
123
-
124
- company_id: Joi.array().items(Joi.number()),
110
+ currency_code: Joi.string().allow(""),
111
+ currency_symbol: Joi.string().allow(""),
112
+ effective: Joi.number(),
113
+ marked: Joi.number(),
125
114
  });
126
115
  }
127
-
128
- static PaymentAllowValue() {
116
+ static BulkBundleRestriction() {
129
117
  return Joi.object({
130
- max: Joi.number(),
118
+ multi_store_allowed: Joi.boolean().required(),
131
119
  });
132
120
  }
133
-
134
- static PaymentModes() {
121
+ static CartBreakup() {
135
122
  return Joi.object({
136
- codes: Joi.array().items(Joi.string().allow("")),
137
-
138
- uses: CartModel.PaymentAllowValue(),
139
-
140
- networks: Joi.array().items(Joi.string().allow("")),
141
-
142
- types: Joi.array().items(Joi.string().allow("")),
123
+ coupon: CartModel.CouponBreakup(),
124
+ display: Joi.array().items(CartModel.DisplayBreakup()),
125
+ loyalty_points: CartModel.LoyaltyPoints(),
126
+ raw: CartModel.RawBreakup(),
143
127
  });
144
128
  }
145
-
146
- static UsesRemaining() {
129
+ static CartCurrency() {
147
130
  return Joi.object({
148
- app: Joi.number(),
149
-
150
- total: Joi.number(),
151
-
152
- user: Joi.number(),
131
+ code: Joi.string().allow(""),
132
+ symbol: Joi.string().allow(""),
153
133
  });
154
134
  }
155
-
156
- static UsesRestriction() {
135
+ static CartDetailResponse() {
157
136
  return Joi.object({
158
- remaining: CartModel.UsesRemaining(),
159
-
160
- maximum: CartModel.UsesRemaining(),
137
+ applied_promo_details: Joi.array().items(CartModel.AppliedPromotion()),
138
+ breakup_values: CartModel.CartBreakup(),
139
+ buy_now: Joi.boolean(),
140
+ checkout_mode: Joi.string().allow(""),
141
+ comment: Joi.string().allow(""),
142
+ coupon_text: Joi.string().allow(""),
143
+ currency: CartModel.CartCurrency(),
144
+ delivery_charge_info: Joi.string().allow(""),
145
+ delivery_promise: CartModel.ShipmentPromise(),
146
+ gstin: Joi.string().allow(""),
147
+ id: Joi.string().allow(""),
148
+ is_valid: Joi.boolean(),
149
+ items: Joi.array().items(CartModel.CartProductInfo()),
150
+ last_modified: Joi.string().allow(""),
151
+ message: Joi.string().allow(""),
152
+ payment_selection_lock: CartModel.PaymentSelectionLock(),
153
+ restrict_checkout: Joi.boolean(),
161
154
  });
162
155
  }
163
-
164
- static PriceRange() {
156
+ static CartItem() {
165
157
  return Joi.object({
166
- min: Joi.number(),
167
-
168
- max: Joi.number(),
158
+ product_id: Joi.string().allow("").required(),
159
+ quantity: Joi.number(),
160
+ size: Joi.string().allow("").required(),
169
161
  });
170
162
  }
171
-
172
- static BulkBundleRestriction() {
163
+ static CartItemMeta() {
173
164
  return Joi.object({
174
- multi_store_allowed: Joi.boolean().required(),
165
+ group_id: Joi.string().allow(""),
166
+ primary_item: Joi.boolean(),
175
167
  });
176
168
  }
177
-
178
- static PostOrder() {
169
+ static CartProduct() {
179
170
  return Joi.object({
180
- return_allowed: Joi.boolean(),
181
-
182
- cancellation_allowed: Joi.boolean(),
171
+ action: CartModel.ProductAction(),
172
+ brand: CartModel.BaseInfo(),
173
+ categories: Joi.array().items(CartModel.CategoryInfo()),
174
+ images: Joi.array().items(CartModel.ProductImage()),
175
+ name: Joi.string().allow(""),
176
+ slug: Joi.string().allow(""),
177
+ type: Joi.string().allow(""),
178
+ uid: Joi.number(),
183
179
  });
184
180
  }
185
-
186
- static Restrictions() {
181
+ static CartProductIdentifer() {
187
182
  return Joi.object({
188
- ordering_stores: Joi.array().items(Joi.number()),
189
-
190
- user_groups: Joi.array().items(Joi.number()),
191
-
192
- payments: Joi.object().pattern(/\S/, this.PaymentModes()),
193
-
194
- platforms: Joi.array().items(Joi.string().allow("")),
195
-
196
- uses: CartModel.UsesRestriction(),
197
-
198
- price_range: CartModel.PriceRange(),
199
-
200
- coupon_allowed: Joi.boolean(),
201
-
202
- bulk_bundle: CartModel.BulkBundleRestriction(),
203
-
204
- post_order: CartModel.PostOrder(),
183
+ identifier: Joi.string().allow(""),
205
184
  });
206
185
  }
207
-
208
- static CouponAuthor() {
186
+ static CartProductInfo() {
209
187
  return Joi.object({
210
- created_by: Joi.string().allow("").allow(null),
211
-
212
- modified_by: Joi.string().allow("").allow(null),
188
+ article: CartModel.ProductArticle(),
189
+ availability: CartModel.ProductAvailability(),
190
+ bulk_offer: Joi.any(),
191
+ coupon_message: Joi.string().allow(""),
192
+ delivery_promise: CartModel.ShipmentPromise(),
193
+ discount: Joi.string().allow(""),
194
+ identifiers: CartModel.CartProductIdentifer().required(),
195
+ is_set: Joi.boolean(),
196
+ key: Joi.string().allow(""),
197
+ message: Joi.string().allow(""),
198
+ moq: Joi.any(),
199
+ parent_item_identifiers: Joi.any(),
200
+ price: CartModel.ProductPriceInfo(),
201
+ price_per_unit: CartModel.ProductPriceInfo(),
202
+ product: CartModel.CartProduct(),
203
+ promo_meta: CartModel.PromoMeta(),
204
+ promotions_applied: Joi.array().items(CartModel.AppliedPromotion()),
205
+ quantity: Joi.number(),
213
206
  });
214
207
  }
215
-
216
- static State() {
208
+ static CategoryInfo() {
217
209
  return Joi.object({
218
- is_public: Joi.boolean(),
219
-
220
- is_archived: Joi.boolean(),
221
-
222
- is_display: Joi.boolean(),
210
+ name: Joi.string().allow(""),
211
+ uid: Joi.number(),
223
212
  });
224
213
  }
225
-
226
- static Validation() {
214
+ static CompareObject() {
227
215
  return Joi.object({
228
- anonymous: Joi.boolean(),
229
-
230
- user_registered_after: Joi.string().allow("").allow(null),
231
-
232
- app_id: Joi.array().items(Joi.string().allow("")),
216
+ equals: Joi.number(),
217
+ greater_than: Joi.number(),
218
+ greater_than_equals: Joi.number(),
219
+ less_than: Joi.number(),
220
+ less_than_equals: Joi.number(),
221
+ });
222
+ }
223
+ static CouponAction() {
224
+ return Joi.object({
225
+ action_date: Joi.string().allow("").allow(null),
226
+ txn_mode: Joi.string().allow(""),
233
227
  });
234
228
  }
235
-
236
229
  static CouponAdd() {
237
230
  return Joi.object({
238
- ownership: CartModel.Ownership().required(),
239
-
240
- display_meta: CartModel.DisplayMeta().required(),
241
-
242
- validity: CartModel.Validity().required(),
243
-
244
231
  _schedule: CartModel.CouponSchedule(),
245
-
246
- rule: Joi.array().items(CartModel.Rule()).required(),
247
-
248
- rule_definition: CartModel.RuleDefinition().required(),
249
-
250
- code: Joi.string().allow("").required(),
251
-
252
232
  action: CartModel.CouponAction(),
253
-
233
+ author: CartModel.CouponAuthor(),
234
+ code: Joi.string().allow("").required(),
254
235
  date_meta: CartModel.CouponDateMeta(),
255
-
236
+ display_meta: CartModel.DisplayMeta().required(),
256
237
  identifiers: CartModel.Identifier().required(),
257
-
258
- type_slug: Joi.string().allow("").required(),
259
-
238
+ ownership: CartModel.Ownership().required(),
260
239
  restrictions: CartModel.Restrictions(),
261
-
262
- author: CartModel.CouponAuthor(),
263
-
240
+ rule: Joi.array().items(CartModel.Rule()).required(),
241
+ rule_definition: CartModel.RuleDefinition().required(),
264
242
  state: CartModel.State(),
265
-
266
- validation: CartModel.Validation(),
267
-
268
243
  tags: Joi.array().items(Joi.string().allow("")),
244
+ type_slug: Joi.string().allow("").required(),
245
+ validation: CartModel.Validation(),
246
+ validity: CartModel.Validity().required(),
269
247
  });
270
248
  }
271
-
272
- static Page() {
249
+ static CouponAuthor() {
273
250
  return Joi.object({
274
- item_total: Joi.number(),
275
-
276
- next_id: Joi.string().allow(""),
277
-
278
- has_previous: Joi.boolean(),
279
-
280
- has_next: Joi.boolean(),
281
-
282
- current: Joi.number(),
283
-
284
- type: Joi.string().allow("").required(),
285
-
286
- size: Joi.number(),
251
+ created_by: Joi.string().allow("").allow(null),
252
+ modified_by: Joi.string().allow("").allow(null),
287
253
  });
288
254
  }
289
-
290
- static CouponsResponse() {
255
+ static CouponBreakup() {
291
256
  return Joi.object({
292
- items: CartModel.CouponAdd(),
293
-
294
- page: CartModel.Page(),
257
+ code: Joi.string().allow(""),
258
+ is_applied: Joi.boolean(),
259
+ message: Joi.string().allow(""),
260
+ type: Joi.string().allow(""),
261
+ uid: Joi.string().allow(""),
262
+ value: Joi.number(),
295
263
  });
296
264
  }
297
-
298
- static SuccessMessage() {
265
+ static CouponDateMeta() {
299
266
  return Joi.object({
300
- success: Joi.boolean(),
301
-
302
- message: Joi.string().allow(""),
267
+ created_on: Joi.string().allow("").allow(null),
268
+ modified_on: Joi.string().allow("").allow(null),
303
269
  });
304
270
  }
305
-
306
- static OperationErrorResponse() {
271
+ static CouponPartialUpdate() {
307
272
  return Joi.object({
308
- success: Joi.boolean(),
309
-
310
- message: Joi.string().allow(""),
273
+ archive: Joi.boolean(),
274
+ schedule: CartModel.CouponSchedule(),
275
+ });
276
+ }
277
+ static CouponSchedule() {
278
+ return Joi.object({
279
+ cron: Joi.string().allow("").allow(null),
280
+ duration: Joi.number().allow(null),
281
+ end: Joi.string().allow("").allow(null),
282
+ next_schedule: Joi.array().items(Joi.any()),
283
+ start: Joi.string().allow(""),
284
+ });
285
+ }
286
+ static CouponsResponse() {
287
+ return Joi.object({
288
+ items: CartModel.CouponAdd(),
289
+ page: CartModel.Page(),
311
290
  });
312
291
  }
313
-
314
292
  static CouponUpdate() {
315
293
  return Joi.object({
316
- ownership: CartModel.Ownership().required(),
317
-
318
- display_meta: CartModel.DisplayMeta().required(),
319
-
320
- validity: CartModel.Validity().required(),
321
-
322
294
  _schedule: CartModel.CouponSchedule(),
323
-
324
- rule: Joi.array().items(CartModel.Rule()).required(),
325
-
326
- rule_definition: CartModel.RuleDefinition().required(),
327
-
328
- code: Joi.string().allow("").required(),
329
-
330
295
  action: CartModel.CouponAction(),
331
-
296
+ author: CartModel.CouponAuthor(),
297
+ code: Joi.string().allow("").required(),
332
298
  date_meta: CartModel.CouponDateMeta(),
333
-
299
+ display_meta: CartModel.DisplayMeta().required(),
334
300
  identifiers: CartModel.Identifier().required(),
335
-
336
- type_slug: Joi.string().allow("").required(),
337
-
301
+ ownership: CartModel.Ownership().required(),
338
302
  restrictions: CartModel.Restrictions(),
339
-
340
- author: CartModel.CouponAuthor(),
341
-
303
+ rule: Joi.array().items(CartModel.Rule()).required(),
304
+ rule_definition: CartModel.RuleDefinition().required(),
342
305
  state: CartModel.State(),
343
-
344
- validation: CartModel.Validation(),
345
-
346
306
  tags: Joi.array().items(Joi.string().allow("")),
307
+ type_slug: Joi.string().allow("").required(),
308
+ validation: CartModel.Validation(),
309
+ validity: CartModel.Validity().required(),
347
310
  });
348
311
  }
349
-
350
- static CouponPartialUpdate() {
312
+ static DiscountOffer() {
351
313
  return Joi.object({
352
- schedule: CartModel.CouponSchedule(),
353
-
354
- archive: Joi.boolean(),
314
+ code: Joi.string().allow(""),
315
+ discount_amount: Joi.number(),
316
+ discount_percentage: Joi.number(),
317
+ discount_price: Joi.number(),
318
+ max_discount_amount: Joi.number(),
319
+ max_offer_quantity: Joi.number(),
320
+ min_offer_quantity: Joi.number(),
355
321
  });
356
322
  }
357
-
358
- static PromotionSchedule() {
323
+ static DiscountRule() {
359
324
  return Joi.object({
360
- start: Joi.string().allow("").required(),
361
-
362
- next_schedule: Joi.array().items(Joi.any()),
363
-
364
- duration: Joi.number().allow(null),
365
-
366
- end: Joi.string().allow("").allow(null),
367
-
368
- published: Joi.boolean().required(),
369
-
370
- cron: Joi.string().allow("").allow(null),
325
+ buy_condition: Joi.string().allow("").required(),
326
+ discount_type: Joi.string().allow("").required(),
327
+ item_criteria: CartModel.ItemCriteria().required(),
328
+ offer: CartModel.DiscountOffer().required(),
371
329
  });
372
330
  }
373
-
374
- static PromotionAuthor() {
331
+ static DisplayBreakup() {
375
332
  return Joi.object({
376
- created_by: Joi.string().allow("").allow(null),
377
-
378
- modified_by: Joi.string().allow("").allow(null),
333
+ currency_code: Joi.string().allow(""),
334
+ currency_symbol: Joi.string().allow(""),
335
+ display: Joi.string().allow(""),
336
+ key: Joi.string().allow(""),
337
+ message: Joi.array().items(Joi.string().allow("")),
338
+ value: Joi.number(),
379
339
  });
380
340
  }
381
-
382
- static Visibility() {
341
+ static DisplayMeta() {
383
342
  return Joi.object({
384
- pdp: Joi.boolean().required(),
385
-
386
- coupon_list: Joi.boolean().required(),
343
+ apply: CartModel.DisplayMetaDict(),
344
+ auto: CartModel.DisplayMetaDict(),
345
+ description: Joi.string().allow(""),
346
+ remove: CartModel.DisplayMetaDict(),
347
+ subtitle: Joi.string().allow(""),
348
+ title: Joi.string().allow(""),
387
349
  });
388
350
  }
389
-
390
- static UserRegistered() {
351
+ static DisplayMeta1() {
391
352
  return Joi.object({
392
- start: Joi.string().allow("").allow(null),
393
-
394
- end: Joi.string().allow("").allow(null),
353
+ description: Joi.string().allow(""),
354
+ name: Joi.string().allow(""),
355
+ offer_text: Joi.string().allow(""),
395
356
  });
396
357
  }
397
-
398
- static PaymentAllowValue1() {
358
+ static DisplayMetaDict() {
399
359
  return Joi.object({
400
- max: Joi.number(),
360
+ subtitle: Joi.string().allow(""),
361
+ title: Joi.string().allow(""),
401
362
  });
402
363
  }
403
-
404
- static PromotionPaymentModes() {
364
+ static Identifier() {
405
365
  return Joi.object({
406
- codes: Joi.array().items(Joi.string().allow("")),
407
-
408
- uses: CartModel.PaymentAllowValue1(),
409
-
410
- type: Joi.string().allow("").required(),
366
+ article_id: Joi.array().items(Joi.string().allow("")),
367
+ brand_id: Joi.array().items(Joi.number()),
368
+ category_id: Joi.array().items(Joi.number()),
369
+ collection_id: Joi.array().items(Joi.string().allow("")),
370
+ company_id: Joi.array().items(Joi.number()),
371
+ exclude_brand_id: Joi.array().items(Joi.number()),
372
+ item_id: Joi.array().items(Joi.number()),
373
+ store_id: Joi.array().items(Joi.number()),
374
+ user_id: Joi.array().items(Joi.string().allow("")),
411
375
  });
412
376
  }
413
-
414
- static UsesRemaining1() {
377
+ static ItemCriteria() {
415
378
  return Joi.object({
416
- total: Joi.number(),
417
-
418
- user: Joi.number(),
379
+ all_items: Joi.boolean(),
380
+ buy_rules: Joi.array().items(Joi.string().allow("")),
381
+ cart_quantity: CartModel.CompareObject(),
382
+ cart_total: CartModel.CompareObject(),
383
+ item_brand: Joi.array().items(Joi.number()),
384
+ item_category: Joi.array().items(Joi.number()),
385
+ item_company: Joi.array().items(Joi.number()),
386
+ item_exclude_brand: Joi.array().items(Joi.number()),
387
+ item_exclude_category: Joi.array().items(Joi.number()),
388
+ item_exclude_company: Joi.array().items(Joi.number()),
389
+ item_exclude_sku: Joi.array().items(Joi.string().allow("")),
390
+ item_exclude_store: Joi.array().items(Joi.number()),
391
+ item_id: Joi.array().items(Joi.number()),
392
+ item_size: Joi.array().items(Joi.string().allow("")),
393
+ item_sku: Joi.array().items(Joi.string().allow("")),
394
+ item_store: Joi.array().items(Joi.number()),
419
395
  });
420
396
  }
421
-
422
- static UsesRestriction1() {
397
+ static LoyaltyPoints() {
423
398
  return Joi.object({
424
- remaining: CartModel.UsesRemaining1(),
425
-
426
- maximum: CartModel.UsesRemaining1(),
399
+ applicable: Joi.number(),
400
+ description: Joi.string().allow(""),
401
+ is_applied: Joi.boolean(),
402
+ total: Joi.number(),
427
403
  });
428
404
  }
429
-
430
- static PostOrder1() {
405
+ static MultiTenderPaymentMeta() {
431
406
  return Joi.object({
432
- return_allowed: Joi.boolean(),
433
-
434
- cancellation_allowed: Joi.boolean(),
407
+ current_status: Joi.string().allow("").allow(null),
408
+ extra_meta: Joi.any().allow(null),
409
+ order_id: Joi.string().allow("").allow(null),
410
+ payment_gateway: Joi.string().allow("").allow(null),
411
+ payment_id: Joi.string().allow("").allow(null),
435
412
  });
436
413
  }
437
-
438
- static Restrictions1() {
414
+ static MultiTenderPaymentMethod() {
439
415
  return Joi.object({
440
- user_registered: CartModel.UserRegistered(),
441
-
442
- user_groups: Joi.array().items(Joi.number()),
443
-
444
- user_id: Joi.array().items(Joi.string().allow("")),
445
-
446
- payments: Joi.array().items(CartModel.PromotionPaymentModes()),
447
-
448
- platforms: Joi.array().items(Joi.string().allow("")),
449
-
450
- uses: CartModel.UsesRestriction1().required(),
451
-
452
- order_quantity: Joi.number(),
453
-
454
- anonymous_users: Joi.boolean(),
455
-
456
- post_order: CartModel.PostOrder1(),
416
+ amount: Joi.number().required(),
417
+ meta: CartModel.MultiTenderPaymentMeta(),
418
+ mode: Joi.string().allow("").required(),
419
+ name: Joi.string().allow(""),
457
420
  });
458
421
  }
459
-
460
- static PromotionAction() {
422
+ static OpenapiCartDetailsRequest() {
461
423
  return Joi.object({
462
- action_type: Joi.string().allow("").required(),
463
-
464
- action_date: Joi.string().allow("").allow(null).required(),
424
+ cart_items: CartModel.CartItem(),
465
425
  });
466
426
  }
467
-
468
- static CompareObject() {
427
+ static OpenapiCartDetailsResponse() {
469
428
  return Joi.object({
470
- greater_than: Joi.number(),
471
-
472
- less_than: Joi.number(),
473
-
474
- equals: Joi.number(),
475
-
476
- greater_than_equals: Joi.number(),
477
-
478
- less_than_equals: Joi.number(),
429
+ breakup_values: CartModel.CartBreakup(),
430
+ is_valid: Joi.boolean(),
431
+ items: Joi.array().items(CartModel.CartProductInfo()),
432
+ message: Joi.string().allow(""),
479
433
  });
480
434
  }
481
-
482
- static ItemCriteria() {
435
+ static OpenApiCartServiceabilityRequest() {
483
436
  return Joi.object({
484
- cart_quantity: CartModel.CompareObject(),
485
-
486
- item_exclude_company: Joi.array().items(Joi.number()),
487
-
488
- item_brand: Joi.array().items(Joi.number()),
489
-
490
- item_sku: Joi.array().items(Joi.string().allow("")),
491
-
492
- item_id: Joi.array().items(Joi.number()),
493
-
494
- item_company: Joi.array().items(Joi.number()),
495
-
496
- item_exclude_sku: Joi.array().items(Joi.string().allow("")),
497
-
498
- buy_rules: Joi.array().items(Joi.string().allow("")),
499
-
500
- item_exclude_store: Joi.array().items(Joi.number()),
501
-
502
- item_size: Joi.array().items(Joi.string().allow("")),
503
-
504
- item_category: Joi.array().items(Joi.number()),
505
-
506
- item_exclude_category: Joi.array().items(Joi.number()),
507
-
508
- cart_total: CartModel.CompareObject(),
509
-
510
- all_items: Joi.boolean(),
511
-
512
- item_exclude_brand: Joi.array().items(Joi.number()),
513
-
514
- item_store: Joi.array().items(Joi.number()),
437
+ cart_items: CartModel.CartItem(),
438
+ shipping_address: CartModel.ShippingAddress().required(),
515
439
  });
516
440
  }
517
-
518
- static DiscountOffer() {
441
+ static OpenApiCartServiceabilityResponse() {
519
442
  return Joi.object({
520
- discount_percentage: Joi.number(),
521
-
522
- max_offer_quantity: Joi.number(),
523
-
524
- max_discount_amount: Joi.number(),
525
-
526
- code: Joi.string().allow(""),
527
-
528
- min_offer_quantity: Joi.number(),
529
-
530
- discount_amount: Joi.number(),
531
-
532
- discount_price: Joi.number(),
443
+ breakup_values: CartModel.CartBreakup(),
444
+ delivery_promise: CartModel.ShipmentPromise(),
445
+ is_valid: Joi.boolean(),
446
+ items: Joi.array().items(CartModel.CartProductInfo()),
447
+ message: Joi.string().allow(""),
533
448
  });
534
449
  }
535
-
536
- static DiscountRule() {
450
+ static OpenApiCheckoutResponse() {
537
451
  return Joi.object({
538
- item_criteria: CartModel.ItemCriteria().required(),
539
-
540
- buy_condition: Joi.string().allow("").required(),
541
-
542
- offer: CartModel.DiscountOffer().required(),
543
-
544
- discount_type: Joi.string().allow("").required(),
452
+ message: Joi.string().allow(""),
453
+ order_id: Joi.string().allow("").required(),
454
+ order_ref_id: Joi.string().allow(""),
455
+ success: Joi.boolean(),
545
456
  });
546
457
  }
547
-
548
- static PromotionDateMeta() {
458
+ static OpenApiErrorResponse() {
549
459
  return Joi.object({
550
- modified_on: Joi.string().allow("").allow(null),
551
-
552
- created_on: Joi.string().allow("").allow(null),
460
+ errors: Joi.any(),
461
+ message: Joi.string().allow(""),
462
+ success: Joi.boolean(),
553
463
  });
554
464
  }
555
-
556
- static Ownership1() {
465
+ static OpenApiFiles() {
557
466
  return Joi.object({
558
- payable_category: Joi.string().allow("").required(),
559
-
560
- payable_by: Joi.string().allow("").required(),
467
+ key: Joi.string().allow("").required(),
468
+ values: Joi.array().items(Joi.string().allow("")).required(),
561
469
  });
562
470
  }
563
-
564
- static DisplayMeta1() {
471
+ static OpenApiOrderItem() {
565
472
  return Joi.object({
566
- offer_text: Joi.string().allow(""),
567
-
568
- name: Joi.string().allow(""),
569
-
570
- description: Joi.string().allow(""),
473
+ amount_paid: Joi.number().required(),
474
+ cashback_applied: Joi.number().required(),
475
+ cod_charges: Joi.number().required(),
476
+ coupon_effective_discount: Joi.number().required(),
477
+ delivery_charges: Joi.number().required(),
478
+ discount: Joi.number().required(),
479
+ employee_discount: Joi.number(),
480
+ extra_meta: Joi.any(),
481
+ files: Joi.array().items(CartModel.OpenApiFiles()),
482
+ loyalty_discount: Joi.number(),
483
+ meta: CartModel.CartItemMeta(),
484
+ payment_methods: Joi.array()
485
+ .items(CartModel.MultiTenderPaymentMethod())
486
+ .required(),
487
+ price_effective: Joi.number().required(),
488
+ price_marked: Joi.number().required(),
489
+ product_id: Joi.number().required(),
490
+ quantity: Joi.number(),
491
+ size: Joi.string().allow("").required(),
571
492
  });
572
493
  }
573
-
574
- static PromotionListItem() {
494
+ static OpenApiPlatformCheckoutReq() {
575
495
  return Joi.object({
576
- _schedule: CartModel.PromotionSchedule(),
577
-
578
- apply_all_discount: Joi.boolean(),
579
-
580
- application_id: Joi.string().allow("").required(),
581
-
582
- author: CartModel.PromotionAuthor(),
583
-
584
- apply_priority: Joi.number(),
585
-
586
- stackable: Joi.boolean(),
587
-
588
- visiblility: CartModel.Visibility(),
589
-
590
- restrictions: CartModel.Restrictions1(),
591
-
592
- _custom_json: Joi.any(),
593
-
594
- mode: Joi.string().allow("").required(),
595
-
596
- post_order_action: CartModel.PromotionAction(),
597
-
598
- discount_rules: Joi.array().items(CartModel.DiscountRule()).required(),
599
-
600
- buy_rules: Joi.object().pattern(/\S/, this.ItemCriteria()).required(),
601
-
602
- code: Joi.string().allow(""),
603
-
604
- date_meta: CartModel.PromotionDateMeta(),
605
-
606
- ownership: CartModel.Ownership1().required(),
607
-
608
- display_meta: CartModel.DisplayMeta1().required(),
609
-
610
- currency: Joi.string().allow(""),
611
-
612
- promo_group: Joi.string().allow("").required(),
613
-
614
- apply_exclusive: Joi.string().allow("").allow(null),
615
-
616
- promotion_type: Joi.string().allow("").required(),
496
+ affiliate_order_id: Joi.string().allow(""),
497
+ billing_address: CartModel.ShippingAddress().required(),
498
+ cart_items: Joi.array().items(CartModel.OpenApiOrderItem()).required(),
499
+ cart_value: Joi.number().required(),
500
+ cashback_applied: Joi.number().required(),
501
+ cod_charges: Joi.number().required(),
502
+ comment: Joi.string().allow("").allow(null),
503
+ coupon: Joi.string().allow(""),
504
+ coupon_code: Joi.string().allow("").required(),
505
+ coupon_value: Joi.number().required(),
506
+ currency_code: Joi.string().allow(""),
507
+ delivery_charges: Joi.number().required(),
508
+ employee_discount: Joi.any(),
509
+ files: Joi.array().items(CartModel.OpenApiFiles()),
510
+ gstin: Joi.string().allow("").allow(null),
511
+ loyalty_discount: Joi.number(),
512
+ order_id: Joi.string().allow(""),
513
+ payment_methods: Joi.array()
514
+ .items(CartModel.MultiTenderPaymentMethod())
515
+ .required(),
516
+ payment_mode: Joi.string().allow(""),
517
+ shipping_address: CartModel.ShippingAddress(),
617
518
  });
618
519
  }
619
-
620
- static PromotionsResponse() {
520
+ static OperationErrorResponse() {
621
521
  return Joi.object({
622
- items: CartModel.PromotionListItem(),
623
-
624
- page: CartModel.Page(),
522
+ message: Joi.string().allow(""),
523
+ success: Joi.boolean(),
625
524
  });
626
525
  }
627
-
628
- static PromotionAdd() {
526
+ static Ownership() {
629
527
  return Joi.object({
630
- _schedule: CartModel.PromotionSchedule(),
631
-
632
- apply_all_discount: Joi.boolean(),
633
-
634
- application_id: Joi.string().allow("").required(),
635
-
636
- author: CartModel.PromotionAuthor(),
637
-
638
- apply_priority: Joi.number(),
639
-
640
- stackable: Joi.boolean(),
641
-
642
- visiblility: CartModel.Visibility(),
643
-
644
- restrictions: CartModel.Restrictions1(),
645
-
646
- _custom_json: Joi.any(),
647
-
648
- mode: Joi.string().allow("").required(),
649
-
650
- post_order_action: CartModel.PromotionAction(),
651
-
652
- discount_rules: Joi.array().items(CartModel.DiscountRule()).required(),
653
-
654
- buy_rules: Joi.object().pattern(/\S/, this.ItemCriteria()).required(),
655
-
656
- code: Joi.string().allow(""),
657
-
658
- date_meta: CartModel.PromotionDateMeta(),
659
-
660
- ownership: CartModel.Ownership1().required(),
661
-
662
- display_meta: CartModel.DisplayMeta1().required(),
663
-
664
- currency: Joi.string().allow(""),
665
-
666
- promo_group: Joi.string().allow("").required(),
667
-
668
- apply_exclusive: Joi.string().allow("").allow(null),
669
-
670
- promotion_type: Joi.string().allow("").required(),
528
+ payable_by: Joi.string().allow("").required(),
529
+ payable_category: Joi.string().allow("").required(),
671
530
  });
672
531
  }
673
-
674
- static PromotionUpdate() {
532
+ static Ownership1() {
675
533
  return Joi.object({
676
- _schedule: CartModel.PromotionSchedule(),
677
-
678
- apply_all_discount: Joi.boolean(),
679
-
680
- application_id: Joi.string().allow("").required(),
681
-
682
- author: CartModel.PromotionAuthor(),
683
-
684
- apply_priority: Joi.number(),
685
-
686
- stackable: Joi.boolean(),
687
-
688
- visiblility: CartModel.Visibility(),
689
-
690
- restrictions: CartModel.Restrictions1(),
691
-
692
- _custom_json: Joi.any(),
693
-
694
- mode: Joi.string().allow("").required(),
695
-
696
- post_order_action: CartModel.PromotionAction(),
697
-
698
- discount_rules: Joi.array().items(CartModel.DiscountRule()).required(),
699
-
700
- buy_rules: Joi.object().pattern(/\S/, this.ItemCriteria()).required(),
701
-
702
- code: Joi.string().allow(""),
703
-
704
- date_meta: CartModel.PromotionDateMeta(),
705
-
706
- ownership: CartModel.Ownership1().required(),
707
-
708
- display_meta: CartModel.DisplayMeta1().required(),
709
-
710
- currency: Joi.string().allow(""),
711
-
712
- promo_group: Joi.string().allow("").required(),
713
-
714
- apply_exclusive: Joi.string().allow("").allow(null),
715
-
716
- promotion_type: Joi.string().allow("").required(),
534
+ payable_by: Joi.string().allow("").required(),
535
+ payable_category: Joi.string().allow("").required(),
717
536
  });
718
537
  }
719
-
720
- static PromotionPartialUpdate() {
538
+ static Ownership2() {
721
539
  return Joi.object({
722
- schedule: CartModel.PromotionSchedule(),
723
-
724
- archive: Joi.boolean(),
540
+ payable_by: Joi.string().allow(""),
541
+ payable_category: Joi.string().allow(""),
725
542
  });
726
543
  }
727
-
728
- static CartItem() {
544
+ static Page() {
729
545
  return Joi.object({
730
- size: Joi.string().allow("").required(),
731
-
732
- quantity: Joi.number(),
733
-
734
- product_id: Joi.string().allow("").required(),
546
+ current: Joi.number(),
547
+ has_next: Joi.boolean(),
548
+ has_previous: Joi.boolean(),
549
+ item_total: Joi.number(),
550
+ next_id: Joi.string().allow(""),
551
+ size: Joi.number(),
552
+ type: Joi.string().allow("").required(),
735
553
  });
736
554
  }
737
-
738
- static OpenapiCartDetailsRequest() {
555
+ static PaymentAllowValue() {
739
556
  return Joi.object({
740
- cart_items: CartModel.CartItem(),
557
+ max: Joi.number(),
741
558
  });
742
559
  }
743
-
744
- static ProductPrice() {
560
+ static PaymentAllowValue1() {
745
561
  return Joi.object({
746
- currency_symbol: Joi.string().allow(""),
747
-
748
- marked: Joi.number(),
749
-
750
- currency_code: Joi.string().allow(""),
751
-
752
- add_on: Joi.number(),
753
-
754
- effective: Joi.number(),
755
-
756
- selling: Joi.number(),
562
+ max: Joi.number(),
757
563
  });
758
564
  }
759
-
760
- static ProductPriceInfo() {
565
+ static PaymentModes() {
761
566
  return Joi.object({
762
- converted: CartModel.ProductPrice(),
763
-
764
- base: CartModel.ProductPrice(),
567
+ codes: Joi.array().items(Joi.string().allow("")),
568
+ networks: Joi.array().items(Joi.string().allow("")),
569
+ types: Joi.array().items(Joi.string().allow("")),
570
+ uses: CartModel.PaymentAllowValue(),
765
571
  });
766
572
  }
767
-
768
- static Ownership2() {
573
+ static PaymentSelectionLock() {
769
574
  return Joi.object({
770
- payable_category: Joi.string().allow(""),
771
-
772
- payable_by: Joi.string().allow(""),
575
+ default_options: Joi.string().allow(""),
576
+ enabled: Joi.boolean(),
577
+ payment_identifier: Joi.string().allow(""),
773
578
  });
774
579
  }
775
-
776
- static AppliedPromotion() {
580
+ static PostOrder() {
777
581
  return Joi.object({
778
- article_quantity: Joi.number(),
779
-
780
- ownership: CartModel.Ownership2(),
781
-
782
- promo_id: Joi.string().allow(""),
783
-
784
- amount: Joi.number(),
785
-
786
- promotion_type: Joi.string().allow(""),
787
-
788
- mrp_promotion: Joi.boolean(),
789
-
790
- offer_text: Joi.string().allow(""),
582
+ cancellation_allowed: Joi.boolean(),
583
+ return_allowed: Joi.boolean(),
791
584
  });
792
585
  }
793
-
794
- static PromoMeta() {
586
+ static PostOrder1() {
795
587
  return Joi.object({
796
- message: Joi.string().allow(""),
588
+ cancellation_allowed: Joi.boolean(),
589
+ return_allowed: Joi.boolean(),
797
590
  });
798
591
  }
799
-
800
- static CartProductIdentifer() {
592
+ static PriceRange() {
801
593
  return Joi.object({
802
- identifier: Joi.string().allow(""),
594
+ max: Joi.number(),
595
+ min: Joi.number(),
803
596
  });
804
597
  }
805
-
806
- static BaseInfo() {
598
+ static ProductAction() {
807
599
  return Joi.object({
808
- name: Joi.string().allow(""),
809
-
810
- uid: Joi.number(),
600
+ query: CartModel.ActionQuery(),
601
+ type: Joi.string().allow(""),
602
+ url: Joi.string().allow(""),
811
603
  });
812
604
  }
813
-
814
- static BasePrice() {
815
- return Joi.object({
816
- effective: Joi.number(),
817
-
818
- currency_symbol: Joi.string().allow(""),
819
-
820
- marked: Joi.number(),
821
-
822
- currency_code: Joi.string().allow(""),
823
- });
824
- }
825
-
826
- static ArticlePriceInfo() {
827
- return Joi.object({
828
- converted: CartModel.BasePrice(),
829
-
830
- base: CartModel.BasePrice(),
831
- });
832
- }
833
-
834
- static ProductArticle() {
605
+ static ProductArticle() {
835
606
  return Joi.object({
607
+ _custom_json: Joi.any(),
836
608
  extra_meta: Joi.any(),
837
-
838
- quantity: Joi.number(),
839
-
609
+ parent_item_identifiers: Joi.any(),
610
+ price: CartModel.ArticlePriceInfo(),
840
611
  product_group_tags: Joi.array().items(Joi.string().allow("")),
841
-
842
- store: CartModel.BaseInfo(),
843
-
612
+ quantity: Joi.number(),
844
613
  seller: CartModel.BaseInfo(),
845
-
846
- price: CartModel.ArticlePriceInfo(),
847
-
848
614
  size: Joi.string().allow(""),
849
-
850
- uid: Joi.string().allow(""),
851
-
852
- _custom_json: Joi.any(),
853
-
854
- parent_item_identifiers: Joi.any(),
855
-
615
+ store: CartModel.BaseInfo(),
856
616
  type: Joi.string().allow(""),
617
+ uid: Joi.string().allow(""),
857
618
  });
858
619
  }
859
-
860
- static CategoryInfo() {
861
- return Joi.object({
862
- name: Joi.string().allow(""),
863
-
864
- uid: Joi.number(),
865
- });
866
- }
867
-
868
- static ActionQuery() {
620
+ static ProductAvailability() {
869
621
  return Joi.object({
870
- product_slug: Joi.array().items(Joi.string().allow("")),
622
+ available_sizes: Joi.array().items(CartModel.ProductAvailabilitySize()),
623
+ deliverable: Joi.boolean(),
624
+ is_valid: Joi.boolean(),
625
+ other_store_quantity: Joi.number(),
626
+ out_of_stock: Joi.boolean(),
627
+ sizes: Joi.array().items(Joi.string().allow("")),
871
628
  });
872
629
  }
873
-
874
- static ProductAction() {
630
+ static ProductAvailabilitySize() {
875
631
  return Joi.object({
876
- url: Joi.string().allow(""),
877
-
878
- query: CartModel.ActionQuery(),
879
-
880
- type: Joi.string().allow(""),
632
+ display: Joi.string().allow(""),
633
+ is_available: Joi.boolean(),
634
+ value: Joi.string().allow(""),
881
635
  });
882
636
  }
883
-
884
637
  static ProductImage() {
885
638
  return Joi.object({
886
- url: Joi.string().allow(""),
887
-
888
- secure_url: Joi.string().allow(""),
889
-
890
639
  aspect_ratio: Joi.string().allow(""),
640
+ secure_url: Joi.string().allow(""),
641
+ url: Joi.string().allow(""),
891
642
  });
892
643
  }
893
-
894
- static CartProduct() {
644
+ static ProductPrice() {
895
645
  return Joi.object({
896
- categories: Joi.array().items(CartModel.CategoryInfo()),
897
-
898
- action: CartModel.ProductAction(),
899
-
900
- images: Joi.array().items(CartModel.ProductImage()),
901
-
902
- slug: Joi.string().allow(""),
903
-
904
- uid: Joi.number(),
905
-
906
- name: Joi.string().allow(""),
907
-
908
- brand: CartModel.BaseInfo(),
909
-
910
- type: Joi.string().allow(""),
646
+ add_on: Joi.number(),
647
+ currency_code: Joi.string().allow(""),
648
+ currency_symbol: Joi.string().allow(""),
649
+ effective: Joi.number(),
650
+ marked: Joi.number(),
651
+ selling: Joi.number(),
911
652
  });
912
653
  }
913
-
914
- static ProductAvailability() {
654
+ static ProductPriceInfo() {
915
655
  return Joi.object({
916
- out_of_stock: Joi.boolean(),
917
-
918
- other_store_quantity: Joi.number(),
919
-
920
- deliverable: Joi.boolean(),
921
-
922
- is_valid: Joi.boolean(),
923
-
924
- sizes: Joi.array().items(Joi.string().allow("")),
656
+ base: CartModel.ProductPrice(),
657
+ converted: CartModel.ProductPrice(),
925
658
  });
926
659
  }
927
-
928
- static CartProductInfo() {
660
+ static PromiseFormatted() {
929
661
  return Joi.object({
930
- price_per_unit: CartModel.ProductPriceInfo(),
931
-
932
- coupon_message: Joi.string().allow(""),
933
-
934
- is_set: Joi.boolean(),
935
-
936
- promotions_applied: Joi.array().items(CartModel.AppliedPromotion()),
937
-
938
- quantity: Joi.number(),
939
-
940
- discount: Joi.string().allow(""),
941
-
942
- promo_meta: CartModel.PromoMeta(),
943
-
944
- price: CartModel.ProductPriceInfo(),
945
-
946
- identifiers: CartModel.CartProductIdentifer().required(),
947
-
948
- article: CartModel.ProductArticle(),
949
-
950
- message: Joi.string().allow(""),
951
-
952
- bulk_offer: Joi.any(),
953
-
954
- product: CartModel.CartProduct(),
955
-
956
- key: Joi.string().allow(""),
957
-
958
- parent_item_identifiers: Joi.any(),
959
-
960
- availability: CartModel.ProductAvailability(),
662
+ max: Joi.string().allow(""),
663
+ min: Joi.string().allow(""),
961
664
  });
962
665
  }
963
-
964
- static LoyaltyPoints() {
666
+ static PromiseTimestamp() {
965
667
  return Joi.object({
966
- is_applied: Joi.boolean(),
967
-
968
- applicable: Joi.number(),
969
-
970
- description: Joi.string().allow(""),
971
-
972
- total: Joi.number(),
668
+ max: Joi.number(),
669
+ min: Joi.number(),
973
670
  });
974
671
  }
975
-
976
- static DisplayBreakup() {
672
+ static PromoMeta() {
977
673
  return Joi.object({
978
- currency_symbol: Joi.string().allow(""),
979
-
980
- currency_code: Joi.string().allow(""),
981
-
982
- display: Joi.string().allow(""),
983
-
984
- message: Joi.array().items(Joi.string().allow("")),
985
-
986
- key: Joi.string().allow(""),
987
-
988
- value: Joi.number(),
674
+ message: Joi.string().allow(""),
989
675
  });
990
676
  }
991
-
992
- static RawBreakup() {
677
+ static PromotionAction() {
993
678
  return Joi.object({
994
- subtotal: Joi.number(),
995
-
996
- discount: Joi.number(),
997
-
998
- gst_charges: Joi.number(),
999
-
1000
- total: Joi.number(),
1001
-
1002
- vog: Joi.number(),
1003
-
1004
- you_saved: Joi.number(),
1005
-
1006
- fynd_cash: Joi.number(),
1007
-
1008
- coupon: Joi.number(),
1009
-
1010
- cod_charge: Joi.number(),
1011
-
1012
- delivery_charge: Joi.number(),
1013
-
1014
- mrp_total: Joi.number(),
1015
-
1016
- convenience_fee: Joi.number(),
679
+ action_date: Joi.string().allow("").allow(null).required(),
680
+ action_type: Joi.string().allow("").required(),
1017
681
  });
1018
682
  }
1019
-
1020
- static CouponBreakup() {
683
+ static PromotionAdd() {
1021
684
  return Joi.object({
685
+ _custom_json: Joi.any(),
686
+ _schedule: CartModel.PromotionSchedule(),
687
+ application_id: Joi.string().allow("").required(),
688
+ apply_all_discount: Joi.boolean(),
689
+ apply_exclusive: Joi.string().allow("").allow(null),
690
+ apply_priority: Joi.number(),
691
+ author: CartModel.PromotionAuthor(),
692
+ buy_rules: Joi.object()
693
+ .pattern(/\S/, CartModel.ItemCriteria())
694
+ .required(),
1022
695
  code: Joi.string().allow(""),
1023
-
1024
- message: Joi.string().allow(""),
1025
-
1026
- is_applied: Joi.boolean(),
1027
-
1028
- uid: Joi.string().allow(""),
1029
-
1030
- value: Joi.number(),
1031
-
1032
- type: Joi.string().allow(""),
696
+ currency: Joi.string().allow(""),
697
+ date_meta: CartModel.PromotionDateMeta(),
698
+ discount_rules: Joi.array().items(CartModel.DiscountRule()).required(),
699
+ display_meta: CartModel.DisplayMeta1().required(),
700
+ mode: Joi.string().allow("").required(),
701
+ ownership: CartModel.Ownership1().required(),
702
+ post_order_action: CartModel.PromotionAction(),
703
+ promo_group: Joi.string().allow("").required(),
704
+ promotion_type: Joi.string().allow("").required(),
705
+ restrictions: CartModel.Restrictions1(),
706
+ stackable: Joi.boolean(),
707
+ visiblility: CartModel.Visibility(),
1033
708
  });
1034
709
  }
1035
-
1036
- static CartBreakup() {
710
+ static PromotionAuthor() {
1037
711
  return Joi.object({
1038
- loyalty_points: CartModel.LoyaltyPoints(),
1039
-
1040
- display: Joi.array().items(CartModel.DisplayBreakup()),
1041
-
1042
- raw: CartModel.RawBreakup(),
1043
-
1044
- coupon: CartModel.CouponBreakup(),
712
+ created_by: Joi.string().allow("").allow(null),
713
+ modified_by: Joi.string().allow("").allow(null),
1045
714
  });
1046
715
  }
1047
-
1048
- static OpenapiCartDetailsResponse() {
716
+ static PromotionDateMeta() {
1049
717
  return Joi.object({
1050
- items: Joi.array().items(CartModel.CartProductInfo()),
1051
-
1052
- is_valid: Joi.boolean(),
1053
-
1054
- breakup_values: CartModel.CartBreakup(),
1055
-
1056
- message: Joi.string().allow(""),
718
+ created_on: Joi.string().allow("").allow(null),
719
+ modified_on: Joi.string().allow("").allow(null),
1057
720
  });
1058
721
  }
1059
-
1060
- static OpenApiErrorResponse() {
722
+ static PromotionListItem() {
1061
723
  return Joi.object({
1062
- success: Joi.boolean(),
1063
-
1064
- message: Joi.string().allow(""),
1065
-
1066
- errors: Joi.any(),
1067
- });
1068
- }
1069
-
1070
- static ShippingAddress() {
1071
- return Joi.object({
1072
- address_type: Joi.string().allow(""),
1073
-
1074
- phone: Joi.number(),
1075
-
1076
- pincode: Joi.number(),
1077
-
1078
- area: Joi.string().allow(""),
1079
-
1080
- country: Joi.string().allow("").allow(null),
1081
-
1082
- email: Joi.string().allow(""),
1083
-
1084
- meta: Joi.any(),
1085
-
1086
- landmark: Joi.string().allow(""),
1087
-
1088
- area_code_slug: Joi.string().allow(""),
1089
-
1090
- area_code: Joi.string().allow("").required(),
1091
-
1092
- city: Joi.string().allow("").allow(null),
1093
-
1094
- country_code: Joi.string().allow(""),
1095
-
1096
- state: Joi.string().allow("").allow(null),
1097
-
1098
- name: Joi.string().allow(""),
1099
-
1100
- address: Joi.string().allow(""),
1101
- });
1102
- }
1103
-
1104
- static OpenApiCartServiceabilityRequest() {
1105
- return Joi.object({
1106
- shipping_address: CartModel.ShippingAddress().required(),
1107
-
1108
- cart_items: CartModel.CartItem(),
1109
- });
1110
- }
1111
-
1112
- static PromiseTimestamp() {
1113
- return Joi.object({
1114
- min: Joi.number(),
1115
-
1116
- max: Joi.number(),
1117
- });
1118
- }
1119
-
1120
- static PromiseFormatted() {
1121
- return Joi.object({
1122
- min: Joi.string().allow(""),
1123
-
1124
- max: Joi.string().allow(""),
1125
- });
1126
- }
1127
-
1128
- static ShipmentPromise() {
1129
- return Joi.object({
1130
- timestamp: CartModel.PromiseTimestamp(),
1131
-
1132
- formatted: CartModel.PromiseFormatted(),
1133
- });
1134
- }
1135
-
1136
- static OpenApiCartServiceabilityResponse() {
1137
- return Joi.object({
1138
- items: Joi.array().items(CartModel.CartProductInfo()),
1139
-
1140
- delivery_promise: CartModel.ShipmentPromise(),
1141
-
1142
- message: Joi.string().allow(""),
1143
-
1144
- breakup_values: CartModel.CartBreakup(),
1145
-
1146
- is_valid: Joi.boolean(),
1147
- });
1148
- }
1149
-
1150
- static OpenApiFiles() {
1151
- return Joi.object({
1152
- key: Joi.string().allow("").required(),
1153
-
1154
- values: Joi.array().items(Joi.string().allow("")).required(),
1155
- });
1156
- }
1157
-
1158
- static MultiTenderPaymentMeta() {
1159
- return Joi.object({
1160
- payment_gateway: Joi.string().allow("").allow(null),
1161
-
1162
- extra_meta: Joi.any().allow(null),
1163
-
1164
- payment_id: Joi.string().allow("").allow(null),
1165
-
1166
- current_status: Joi.string().allow("").allow(null),
1167
-
1168
- order_id: Joi.string().allow("").allow(null),
1169
- });
1170
- }
1171
-
1172
- static MultiTenderPaymentMethod() {
1173
- return Joi.object({
1174
- name: Joi.string().allow(""),
1175
-
1176
- amount: Joi.number().required(),
1177
-
724
+ _custom_json: Joi.any(),
725
+ _schedule: CartModel.PromotionSchedule(),
726
+ application_id: Joi.string().allow("").required(),
727
+ apply_all_discount: Joi.boolean(),
728
+ apply_exclusive: Joi.string().allow("").allow(null),
729
+ apply_priority: Joi.number(),
730
+ author: CartModel.PromotionAuthor(),
731
+ buy_rules: Joi.object()
732
+ .pattern(/\S/, CartModel.ItemCriteria())
733
+ .required(),
734
+ code: Joi.string().allow(""),
735
+ currency: Joi.string().allow(""),
736
+ date_meta: CartModel.PromotionDateMeta(),
737
+ discount_rules: Joi.array().items(CartModel.DiscountRule()).required(),
738
+ display_meta: CartModel.DisplayMeta1().required(),
1178
739
  mode: Joi.string().allow("").required(),
1179
-
1180
- meta: CartModel.MultiTenderPaymentMeta(),
740
+ ownership: CartModel.Ownership1().required(),
741
+ post_order_action: CartModel.PromotionAction(),
742
+ promo_group: Joi.string().allow("").required(),
743
+ promotion_type: Joi.string().allow("").required(),
744
+ restrictions: CartModel.Restrictions1(),
745
+ stackable: Joi.boolean(),
746
+ visiblility: CartModel.Visibility(),
1181
747
  });
1182
748
  }
1183
-
1184
- static CartItemMeta() {
749
+ static PromotionPartialUpdate() {
1185
750
  return Joi.object({
1186
- primary_item: Joi.boolean(),
1187
-
1188
- group_id: Joi.string().allow(""),
751
+ archive: Joi.boolean(),
752
+ schedule: CartModel.PromotionSchedule(),
1189
753
  });
1190
754
  }
1191
-
1192
- static OpenApiOrderItem() {
755
+ static PromotionPaymentModes() {
1193
756
  return Joi.object({
1194
- coupon_effective_discount: Joi.number().required(),
1195
-
1196
- cashback_applied: Joi.number().required(),
1197
-
1198
- product_id: Joi.number().required(),
1199
-
1200
- files: Joi.array().items(CartModel.OpenApiFiles()),
1201
-
1202
- cod_charges: Joi.number().required(),
1203
-
1204
- extra_meta: Joi.any(),
1205
-
1206
- quantity: Joi.number(),
1207
-
1208
- discount: Joi.number().required(),
1209
-
1210
- size: Joi.string().allow("").required(),
1211
-
1212
- employee_discount: Joi.number(),
1213
-
1214
- meta: CartModel.CartItemMeta(),
1215
-
1216
- payment_methods: Joi.array()
1217
- .items(CartModel.MultiTenderPaymentMethod())
1218
- .required(),
1219
-
1220
- price_effective: Joi.number().required(),
1221
-
1222
- price_marked: Joi.number().required(),
1223
-
1224
- delivery_charges: Joi.number().required(),
1225
-
1226
- amount_paid: Joi.number().required(),
1227
-
1228
- loyalty_discount: Joi.number(),
757
+ codes: Joi.array().items(Joi.string().allow("")),
758
+ type: Joi.string().allow("").required(),
759
+ uses: CartModel.PaymentAllowValue1(),
1229
760
  });
1230
761
  }
1231
-
1232
- static OpenApiPlatformCheckoutReq() {
762
+ static PromotionSchedule() {
1233
763
  return Joi.object({
1234
- cod_charges: Joi.number().required(),
1235
-
1236
- affiliate_order_id: Joi.string().allow(""),
1237
-
1238
- comment: Joi.string().allow("").allow(null),
1239
-
1240
- coupon: Joi.string().allow(""),
1241
-
1242
- coupon_value: Joi.number().required(),
1243
-
1244
- shipping_address: CartModel.ShippingAddress(),
1245
-
1246
- gstin: Joi.string().allow("").allow(null),
1247
-
1248
- delivery_charges: Joi.number().required(),
1249
-
1250
- coupon_code: Joi.string().allow("").required(),
1251
-
1252
- loyalty_discount: Joi.number(),
1253
-
1254
- payment_mode: Joi.string().allow(""),
1255
-
1256
- cashback_applied: Joi.number().required(),
1257
-
1258
- files: Joi.array().items(CartModel.OpenApiFiles()),
1259
-
1260
- currency_code: Joi.string().allow(""),
1261
-
1262
- order_id: Joi.string().allow(""),
1263
-
1264
- cart_value: Joi.number().required(),
1265
-
1266
- employee_discount: Joi.any(),
1267
-
1268
- payment_methods: Joi.array()
1269
- .items(CartModel.MultiTenderPaymentMethod())
1270
- .required(),
1271
-
1272
- cart_items: Joi.array().items(CartModel.OpenApiOrderItem()).required(),
1273
-
1274
- billing_address: CartModel.ShippingAddress().required(),
764
+ cron: Joi.string().allow("").allow(null),
765
+ duration: Joi.number().allow(null),
766
+ end: Joi.string().allow("").allow(null),
767
+ next_schedule: Joi.array().items(Joi.any()),
768
+ published: Joi.boolean().required(),
769
+ start: Joi.string().allow("").required(),
1275
770
  });
1276
771
  }
1277
-
1278
- static OpenApiCheckoutResponse() {
772
+ static PromotionsResponse() {
1279
773
  return Joi.object({
1280
- success: Joi.boolean(),
1281
-
1282
- order_id: Joi.string().allow("").required(),
1283
-
1284
- message: Joi.string().allow(""),
1285
-
1286
- order_ref_id: Joi.string().allow(""),
774
+ items: CartModel.PromotionListItem(),
775
+ page: CartModel.Page(),
1287
776
  });
1288
777
  }
1289
-
1290
- static AbandonedCart() {
778
+ static PromotionUpdate() {
1291
779
  return Joi.object({
1292
- cod_charges: Joi.any(),
1293
-
1294
- checkout_mode: Joi.string().allow(""),
1295
-
1296
- coupon: Joi.any().allow(null),
1297
-
1298
- meta: Joi.any().allow(null),
1299
-
1300
- gstin: Joi.string().allow("").allow(null),
1301
-
1302
- user_id: Joi.string().allow("").required(),
1303
-
1304
- discount: Joi.number(),
1305
-
1306
- fynd_credits: Joi.any(),
1307
-
1308
- is_archive: Joi.boolean(),
1309
-
1310
- cart_value: Joi.number(),
1311
-
1312
- order_id: Joi.string().allow(""),
1313
-
1314
- expire_at: Joi.string().allow("").required(),
1315
-
1316
- app_id: Joi.string().allow(""),
1317
-
1318
- merge_qty: Joi.boolean().allow(null),
1319
-
1320
- last_modified: Joi.string().allow("").required(),
1321
-
1322
- _id: Joi.string().allow("").required(),
1323
-
1324
- created_on: Joi.string().allow("").required(),
1325
-
1326
- articles: Joi.array().items(Joi.any()).required(),
1327
-
1328
- comment: Joi.string().allow("").allow(null),
1329
-
1330
- is_active: Joi.boolean(),
1331
-
1332
- delivery_charges: Joi.any(),
1333
-
1334
- cashback: Joi.any().required(),
1335
-
1336
- payment_mode: Joi.string().allow("").allow(null),
1337
-
1338
- bulk_coupon_discount: Joi.number().allow(null),
1339
-
1340
- fc_index_map: Joi.array().items(Joi.number()),
1341
-
1342
- payments: Joi.any().allow(null),
1343
-
1344
- promotion: Joi.any(),
1345
-
1346
- payment_methods: Joi.array().items(Joi.any()),
1347
-
1348
- shipments: Joi.array().items(Joi.any()),
1349
-
1350
- uid: Joi.number().required(),
1351
-
1352
- pick_up_customer_details: Joi.any().allow(null),
1353
-
1354
- is_default: Joi.boolean().required(),
1355
-
1356
- buy_now: Joi.boolean(),
780
+ _custom_json: Joi.any(),
781
+ _schedule: CartModel.PromotionSchedule(),
782
+ application_id: Joi.string().allow("").required(),
783
+ apply_all_discount: Joi.boolean(),
784
+ apply_exclusive: Joi.string().allow("").allow(null),
785
+ apply_priority: Joi.number(),
786
+ author: CartModel.PromotionAuthor(),
787
+ buy_rules: Joi.object()
788
+ .pattern(/\S/, CartModel.ItemCriteria())
789
+ .required(),
790
+ code: Joi.string().allow(""),
791
+ currency: Joi.string().allow(""),
792
+ date_meta: CartModel.PromotionDateMeta(),
793
+ discount_rules: Joi.array().items(CartModel.DiscountRule()).required(),
794
+ display_meta: CartModel.DisplayMeta1().required(),
795
+ mode: Joi.string().allow("").required(),
796
+ ownership: CartModel.Ownership1().required(),
797
+ post_order_action: CartModel.PromotionAction(),
798
+ promo_group: Joi.string().allow("").required(),
799
+ promotion_type: Joi.string().allow("").required(),
800
+ restrictions: CartModel.Restrictions1(),
801
+ stackable: Joi.boolean(),
802
+ visiblility: CartModel.Visibility(),
1357
803
  });
1358
804
  }
1359
-
1360
- static AbandonedCartResponse() {
805
+ static RawBreakup() {
1361
806
  return Joi.object({
1362
- items: Joi.array().items(CartModel.AbandonedCart()),
1363
-
1364
- message: Joi.string().allow(""),
1365
-
1366
- page: CartModel.Page(),
1367
-
1368
- success: Joi.boolean(),
1369
-
1370
- result: Joi.any(),
807
+ cod_charge: Joi.number(),
808
+ convenience_fee: Joi.number(),
809
+ coupon: Joi.number(),
810
+ delivery_charge: Joi.number(),
811
+ discount: Joi.number(),
812
+ fynd_cash: Joi.number(),
813
+ gst_charges: Joi.number(),
814
+ mrp_total: Joi.number(),
815
+ subtotal: Joi.number(),
816
+ total: Joi.number(),
817
+ vog: Joi.number(),
818
+ you_saved: Joi.number(),
1371
819
  });
1372
820
  }
1373
-
1374
- static CartCurrency() {
821
+ static Restrictions() {
1375
822
  return Joi.object({
1376
- code: Joi.string().allow(""),
1377
-
1378
- symbol: Joi.string().allow(""),
823
+ bulk_bundle: CartModel.BulkBundleRestriction(),
824
+ coupon_allowed: Joi.boolean(),
825
+ ordering_stores: Joi.array().items(Joi.number()),
826
+ payments: Joi.object().pattern(/\S/, CartModel.PaymentModes()),
827
+ platforms: Joi.array().items(Joi.string().allow("")),
828
+ post_order: CartModel.PostOrder(),
829
+ price_range: CartModel.PriceRange(),
830
+ user_groups: Joi.array().items(Joi.number()),
831
+ uses: CartModel.UsesRestriction(),
1379
832
  });
1380
833
  }
1381
-
1382
- static PaymentSelectionLock() {
834
+ static Restrictions1() {
1383
835
  return Joi.object({
1384
- payment_identifier: Joi.string().allow(""),
1385
-
1386
- enabled: Joi.boolean(),
1387
-
1388
- default_options: Joi.string().allow(""),
836
+ anonymous_users: Joi.boolean(),
837
+ order_quantity: Joi.number(),
838
+ payments: Joi.array().items(CartModel.PromotionPaymentModes()),
839
+ platforms: Joi.array().items(Joi.string().allow("")),
840
+ post_order: CartModel.PostOrder1(),
841
+ user_groups: Joi.array().items(Joi.number()),
842
+ user_id: Joi.array().items(Joi.string().allow("")),
843
+ user_registered: CartModel.UserRegistered(),
844
+ uses: CartModel.UsesRestriction1().required(),
1389
845
  });
1390
846
  }
1391
-
1392
- static CartDetailResponse() {
847
+ static Rule() {
1393
848
  return Joi.object({
1394
- currency: CartModel.CartCurrency(),
1395
-
1396
- last_modified: Joi.string().allow(""),
1397
-
1398
- delivery_charge_info: Joi.string().allow(""),
1399
-
1400
- items: Joi.array().items(CartModel.CartProductInfo()),
1401
-
1402
- checkout_mode: Joi.string().allow(""),
1403
-
1404
- comment: Joi.string().allow(""),
1405
-
1406
- delivery_promise: CartModel.ShipmentPromise(),
1407
-
1408
- payment_selection_lock: CartModel.PaymentSelectionLock(),
1409
-
1410
- is_valid: Joi.boolean(),
1411
-
1412
- message: Joi.string().allow(""),
1413
-
1414
- restrict_checkout: Joi.boolean(),
1415
-
1416
- coupon_text: Joi.string().allow(""),
1417
-
1418
- breakup_values: CartModel.CartBreakup(),
1419
-
1420
- id: Joi.string().allow(""),
1421
-
1422
- gstin: Joi.string().allow(""),
1423
-
1424
- buy_now: Joi.boolean(),
849
+ discount_qty: Joi.number(),
850
+ key: Joi.number(),
851
+ max: Joi.number(),
852
+ min: Joi.number(),
853
+ value: Joi.number(),
1425
854
  });
1426
855
  }
1427
-
1428
- static AddProductCart() {
856
+ static RuleDefinition() {
1429
857
  return Joi.object({
1430
- seller_id: Joi.number(),
1431
-
1432
- item_id: Joi.number(),
1433
-
1434
- extra_meta: Joi.any(),
1435
-
1436
- quantity: Joi.number(),
1437
-
1438
- product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
1439
-
1440
- item_size: Joi.string().allow(""),
1441
-
1442
- display: Joi.string().allow(""),
1443
-
1444
- store_id: Joi.number(),
1445
-
1446
- _custom_json: Joi.any(),
1447
-
1448
- parent_item_identifiers: Joi.any(),
1449
-
1450
- article_id: Joi.string().allow(""),
1451
-
1452
- pos: Joi.boolean(),
1453
-
1454
- article_assignment: Joi.any(),
858
+ applicable_on: Joi.string().allow("").required(),
859
+ auto_apply: Joi.boolean(),
860
+ calculate_on: Joi.string().allow("").required(),
861
+ currency_code: Joi.string().allow(""),
862
+ is_exact: Joi.boolean(),
863
+ scope: Joi.array().items(Joi.string().allow("")),
864
+ type: Joi.string().allow("").required(),
865
+ value_type: Joi.string().allow("").required(),
1455
866
  });
1456
867
  }
1457
-
1458
- static AddCartRequest() {
868
+ static ShipmentPromise() {
1459
869
  return Joi.object({
1460
- items: Joi.array().items(CartModel.AddProductCart()),
870
+ formatted: CartModel.PromiseFormatted(),
871
+ timestamp: CartModel.PromiseTimestamp(),
1461
872
  });
1462
873
  }
1463
-
1464
- static AddCartDetailResponse() {
874
+ static ShippingAddress() {
875
+ return Joi.object({
876
+ address: Joi.string().allow(""),
877
+ address_type: Joi.string().allow(""),
878
+ area: Joi.string().allow(""),
879
+ area_code: Joi.string().allow("").required(),
880
+ area_code_slug: Joi.string().allow(""),
881
+ city: Joi.string().allow("").allow(null),
882
+ country: Joi.string().allow("").allow(null),
883
+ country_code: Joi.string().allow(""),
884
+ email: Joi.string().allow(""),
885
+ landmark: Joi.string().allow(""),
886
+ meta: Joi.any(),
887
+ name: Joi.string().allow(""),
888
+ phone: Joi.number(),
889
+ pincode: Joi.number(),
890
+ state: Joi.string().allow("").allow(null),
891
+ });
892
+ }
893
+ static State() {
894
+ return Joi.object({
895
+ is_archived: Joi.boolean(),
896
+ is_display: Joi.boolean(),
897
+ is_public: Joi.boolean(),
898
+ });
899
+ }
900
+ static SuccessMessage() {
1465
901
  return Joi.object({
902
+ message: Joi.string().allow(""),
1466
903
  success: Joi.boolean(),
1467
-
1468
- partial: Joi.boolean(),
1469
-
904
+ });
905
+ }
906
+ static UpdateCartDetailResponse() {
907
+ return Joi.object({
1470
908
  cart: CartModel.CartDetailResponse(),
1471
-
1472
909
  message: Joi.string().allow(""),
910
+ success: Joi.boolean(),
911
+ });
912
+ }
913
+ static UpdateCartRequest() {
914
+ return Joi.object({
915
+ items: Joi.array().items(CartModel.UpdateProductCart()),
916
+ operation: Joi.string().allow("").required(),
1473
917
  });
1474
918
  }
1475
-
1476
919
  static UpdateProductCart() {
1477
920
  return Joi.object({
1478
- item_id: Joi.number(),
1479
-
921
+ _custom_json: Joi.any(),
922
+ article_id: Joi.string().allow(""),
1480
923
  extra_meta: Joi.any(),
1481
-
1482
- quantity: Joi.number(),
1483
-
1484
- item_size: Joi.string().allow(""),
1485
-
1486
924
  identifiers: CartModel.CartProductIdentifer().required(),
1487
-
925
+ item_id: Joi.number(),
1488
926
  item_index: Joi.number(),
1489
-
1490
- _custom_json: Joi.any(),
1491
-
927
+ item_size: Joi.string().allow(""),
1492
928
  parent_item_identifiers: Joi.any(),
1493
-
1494
- article_id: Joi.string().allow(""),
929
+ quantity: Joi.number(),
1495
930
  });
1496
931
  }
1497
-
1498
- static UpdateCartRequest() {
932
+ static UserRegistered() {
1499
933
  return Joi.object({
1500
- items: Joi.array().items(CartModel.UpdateProductCart()),
1501
-
1502
- operation: Joi.string().allow("").required(),
934
+ end: Joi.string().allow("").allow(null),
935
+ start: Joi.string().allow("").allow(null),
1503
936
  });
1504
937
  }
1505
-
1506
- static UpdateCartDetailResponse() {
938
+ static UsesRemaining() {
1507
939
  return Joi.object({
1508
- success: Joi.boolean(),
1509
-
1510
- cart: CartModel.CartDetailResponse(),
1511
-
1512
- message: Joi.string().allow(""),
940
+ app: Joi.number(),
941
+ total: Joi.number(),
942
+ user: Joi.number(),
943
+ });
944
+ }
945
+ static UsesRemaining1() {
946
+ return Joi.object({
947
+ total: Joi.number(),
948
+ user: Joi.number(),
949
+ });
950
+ }
951
+ static UsesRestriction() {
952
+ return Joi.object({
953
+ maximum: CartModel.UsesRemaining(),
954
+ remaining: CartModel.UsesRemaining(),
955
+ });
956
+ }
957
+ static UsesRestriction1() {
958
+ return Joi.object({
959
+ maximum: CartModel.UsesRemaining1(),
960
+ remaining: CartModel.UsesRemaining1(),
961
+ });
962
+ }
963
+ static Validation() {
964
+ return Joi.object({
965
+ anonymous: Joi.boolean(),
966
+ app_id: Joi.array().items(Joi.string().allow("")),
967
+ user_registered_after: Joi.string().allow("").allow(null),
968
+ });
969
+ }
970
+ static Validity() {
971
+ return Joi.object({
972
+ priority: Joi.number(),
973
+ });
974
+ }
975
+ static Visibility() {
976
+ return Joi.object({
977
+ coupon_list: Joi.boolean().required(),
978
+ pdp: Joi.boolean().required(),
1513
979
  });
1514
980
  }
1515
981
  }