@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,1131 +1,735 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class PosCartModel {
4
- static CouponBreakup() {
5
- return Joi.object({
6
- code: Joi.string().allow(""),
7
-
8
- type: Joi.string().allow(""),
9
-
10
- message: Joi.string().allow(""),
11
-
12
- uid: Joi.string().allow(""),
13
-
14
- value: Joi.number(),
15
-
16
- is_applied: Joi.boolean(),
17
- });
18
- }
19
-
20
- static DisplayBreakup() {
4
+ static ActionQuery() {
21
5
  return Joi.object({
22
- currency_code: Joi.string().allow(""),
23
-
24
- message: Joi.array().items(Joi.string().allow("")),
25
-
26
- key: Joi.string().allow(""),
27
-
28
- currency_symbol: Joi.string().allow(""),
29
-
30
- value: Joi.number(),
31
-
32
- display: Joi.string().allow(""),
6
+ product_slug: Joi.array().items(Joi.string().allow("")),
33
7
  });
34
8
  }
35
-
36
- static LoyaltyPoints() {
9
+ static AddCartDetailResponse() {
37
10
  return Joi.object({
38
- is_applied: Joi.boolean(),
39
-
40
- applicable: Joi.number(),
41
-
42
- total: Joi.number(),
43
-
44
- description: Joi.string().allow(""),
11
+ cart: PosCartModel.CartDetailResponse(),
12
+ message: Joi.string().allow(""),
13
+ partial: Joi.boolean(),
14
+ success: Joi.boolean(),
45
15
  });
46
16
  }
47
-
48
- static RawBreakup() {
17
+ static AddCartRequest() {
49
18
  return Joi.object({
50
- subtotal: Joi.number(),
51
-
52
- gst_charges: Joi.number(),
53
-
54
- coupon: Joi.number(),
55
-
56
- you_saved: Joi.number(),
57
-
58
- delivery_charge: Joi.number(),
59
-
60
- cod_charge: Joi.number(),
61
-
62
- vog: Joi.number(),
63
-
64
- fynd_cash: Joi.number(),
65
-
66
- mrp_total: Joi.number(),
67
-
68
- total: Joi.number(),
69
-
70
- convenience_fee: Joi.number(),
71
-
72
- discount: Joi.number(),
19
+ items: Joi.array().items(PosCartModel.AddProductCart()),
73
20
  });
74
21
  }
75
-
76
- static CartBreakup() {
22
+ static AddProductCart() {
77
23
  return Joi.object({
78
- coupon: PosCartModel.CouponBreakup(),
79
-
80
- display: Joi.array().items(PosCartModel.DisplayBreakup()),
81
-
82
- loyalty_points: PosCartModel.LoyaltyPoints(),
83
-
84
- raw: PosCartModel.RawBreakup(),
24
+ _custom_json: Joi.any(),
25
+ article_assignment: Joi.any(),
26
+ article_id: Joi.string().allow(""),
27
+ display: Joi.string().allow(""),
28
+ extra_meta: Joi.any(),
29
+ item_id: Joi.number(),
30
+ item_size: Joi.string().allow(""),
31
+ parent_item_identifiers: Joi.any(),
32
+ pos: Joi.boolean(),
33
+ product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
34
+ quantity: Joi.number(),
35
+ seller_id: Joi.number(),
36
+ store_id: Joi.number(),
85
37
  });
86
38
  }
87
-
88
- static PaymentSelectionLock() {
39
+ static Address() {
89
40
  return Joi.object({
90
- enabled: Joi.boolean(),
91
-
92
- default_options: Joi.string().allow(""),
93
-
94
- payment_identifier: Joi.string().allow(""),
41
+ address: Joi.string().allow(""),
42
+ address_type: Joi.string().allow(""),
43
+ area: Joi.string().allow(""),
44
+ area_code: Joi.string().allow(""),
45
+ area_code_slug: Joi.string().allow(""),
46
+ checkout_mode: Joi.string().allow(""),
47
+ city: Joi.string().allow(""),
48
+ country: Joi.string().allow(""),
49
+ country_code: Joi.string().allow(""),
50
+ country_iso_code: Joi.string().allow(""),
51
+ country_phone_code: Joi.string().allow(""),
52
+ email: Joi.string().allow(""),
53
+ geo_location: PosCartModel.GeoLocation(),
54
+ google_map_point: Joi.any(),
55
+ id: Joi.string().allow(""),
56
+ is_active: Joi.boolean(),
57
+ is_default_address: Joi.boolean(),
58
+ landmark: Joi.string().allow(""),
59
+ meta: Joi.any(),
60
+ name: Joi.string().allow(""),
61
+ phone: Joi.string().allow(""),
62
+ state: Joi.string().allow(""),
63
+ tags: Joi.array().items(Joi.string().allow("")),
64
+ user_id: Joi.string().allow(""),
95
65
  });
96
66
  }
97
-
98
- static PromiseFormatted() {
67
+ static AppliedPromotion() {
99
68
  return Joi.object({
100
- min: Joi.string().allow(""),
101
-
102
- max: Joi.string().allow(""),
69
+ amount: Joi.number(),
70
+ article_quantity: Joi.number(),
71
+ mrp_promotion: Joi.boolean(),
72
+ offer_text: Joi.string().allow(""),
73
+ ownership: PosCartModel.Ownership(),
74
+ promo_id: Joi.string().allow(""),
75
+ promotion_type: Joi.string().allow(""),
103
76
  });
104
77
  }
105
-
106
- static PromiseTimestamp() {
78
+ static ApplyCouponRequest() {
107
79
  return Joi.object({
108
- min: Joi.number(),
109
-
110
- max: Joi.number(),
80
+ coupon_code: Joi.string().allow("").required(),
111
81
  });
112
82
  }
113
-
114
- static ShipmentPromise() {
83
+ static ArticlePriceInfo() {
115
84
  return Joi.object({
116
- formatted: PosCartModel.PromiseFormatted(),
117
-
118
- timestamp: PosCartModel.PromiseTimestamp(),
85
+ base: PosCartModel.BasePrice(),
86
+ converted: PosCartModel.BasePrice(),
119
87
  });
120
88
  }
121
-
122
- static ProductAvailability() {
89
+ static BaseInfo() {
123
90
  return Joi.object({
124
- other_store_quantity: Joi.number(),
125
-
126
- out_of_stock: Joi.boolean(),
127
-
128
- sizes: Joi.array().items(Joi.string().allow("")),
129
-
130
- is_valid: Joi.boolean(),
131
-
132
- deliverable: Joi.boolean(),
91
+ name: Joi.string().allow(""),
92
+ uid: Joi.number(),
133
93
  });
134
94
  }
135
-
136
- static ProductPrice() {
95
+ static BasePrice() {
137
96
  return Joi.object({
138
- marked: Joi.number(),
139
-
140
97
  currency_code: Joi.string().allow(""),
141
-
142
- add_on: Joi.number(),
143
-
144
98
  currency_symbol: Joi.string().allow(""),
145
-
146
- selling: Joi.number(),
147
-
148
99
  effective: Joi.number(),
100
+ marked: Joi.number(),
149
101
  });
150
102
  }
151
-
152
- static ProductPriceInfo() {
103
+ static BulkPriceOffer() {
153
104
  return Joi.object({
154
- base: PosCartModel.ProductPrice(),
155
-
156
- converted: PosCartModel.ProductPrice(),
105
+ offers: Joi.array().items(PosCartModel.OfferItem()),
106
+ seller: PosCartModel.OfferSeller(),
157
107
  });
158
108
  }
159
-
160
- static ActionQuery() {
109
+ static BulkPriceResponse() {
161
110
  return Joi.object({
162
- product_slug: Joi.array().items(Joi.string().allow("")),
111
+ data: Joi.array().items(PosCartModel.BulkPriceOffer()),
163
112
  });
164
113
  }
165
-
166
- static ProductAction() {
114
+ static CartBreakup() {
167
115
  return Joi.object({
168
- query: PosCartModel.ActionQuery(),
169
-
170
- url: Joi.string().allow(""),
171
-
172
- type: Joi.string().allow(""),
116
+ coupon: PosCartModel.CouponBreakup(),
117
+ display: Joi.array().items(PosCartModel.DisplayBreakup()),
118
+ loyalty_points: PosCartModel.LoyaltyPoints(),
119
+ raw: PosCartModel.RawBreakup(),
173
120
  });
174
121
  }
175
-
176
- static BaseInfo() {
122
+ static CartCheckoutCustomMeta() {
177
123
  return Joi.object({
178
- name: Joi.string().allow(""),
179
-
180
- uid: Joi.number(),
124
+ key: Joi.string().allow("").required(),
125
+ value: Joi.string().allow("").required(),
181
126
  });
182
127
  }
183
-
184
- static CategoryInfo() {
128
+ static CartCheckoutResponse() {
185
129
  return Joi.object({
186
- name: Joi.string().allow(""),
187
-
188
- uid: Joi.number(),
130
+ app_intercept_url: Joi.string().allow(""),
131
+ callback_url: Joi.string().allow(""),
132
+ cart: PosCartModel.CheckCart(),
133
+ data: Joi.any(),
134
+ message: Joi.string().allow(""),
135
+ order_id: Joi.string().allow(""),
136
+ payment_confirm_url: Joi.string().allow(""),
137
+ success: Joi.boolean(),
189
138
  });
190
139
  }
191
-
192
- static ProductImage() {
140
+ static CartCurrency() {
193
141
  return Joi.object({
194
- secure_url: Joi.string().allow(""),
195
-
196
- aspect_ratio: Joi.string().allow(""),
197
-
198
- url: Joi.string().allow(""),
142
+ code: Joi.string().allow(""),
143
+ symbol: Joi.string().allow(""),
199
144
  });
200
145
  }
201
-
202
- static CartProduct() {
146
+ static CartDeliveryModesResponse() {
203
147
  return Joi.object({
204
- slug: Joi.string().allow(""),
205
-
206
- action: PosCartModel.ProductAction(),
207
-
208
- brand: PosCartModel.BaseInfo(),
209
-
210
- name: Joi.string().allow(""),
211
-
212
- type: Joi.string().allow(""),
213
-
214
- categories: Joi.array().items(PosCartModel.CategoryInfo()),
215
-
216
- uid: Joi.number(),
217
-
218
- images: Joi.array().items(PosCartModel.ProductImage()),
219
- });
148
+ available_modes: Joi.array().items(Joi.string().allow("")),
149
+ pickup_stores: Joi.array().items(Joi.number()),
150
+ });
220
151
  }
221
-
222
- static CartProductIdentifer() {
152
+ static CartDetailResponse() {
223
153
  return Joi.object({
224
- identifier: Joi.string().allow(""),
154
+ applied_promo_details: Joi.array().items(PosCartModel.AppliedPromotion()),
155
+ breakup_values: PosCartModel.CartBreakup(),
156
+ buy_now: Joi.boolean(),
157
+ checkout_mode: Joi.string().allow(""),
158
+ comment: Joi.string().allow(""),
159
+ coupon_text: Joi.string().allow(""),
160
+ currency: PosCartModel.CartCurrency(),
161
+ delivery_charge_info: Joi.string().allow(""),
162
+ delivery_promise: PosCartModel.ShipmentPromise(),
163
+ gstin: Joi.string().allow(""),
164
+ id: Joi.string().allow(""),
165
+ is_valid: Joi.boolean(),
166
+ items: Joi.array().items(PosCartModel.CartProductInfo()),
167
+ last_modified: Joi.string().allow(""),
168
+ message: Joi.string().allow(""),
169
+ payment_selection_lock: PosCartModel.PaymentSelectionLock(),
170
+ restrict_checkout: Joi.boolean(),
225
171
  });
226
172
  }
227
-
228
- static Ownership() {
173
+ static CartItemCountResponse() {
229
174
  return Joi.object({
230
- payable_by: Joi.string().allow(""),
231
-
232
- payable_category: Joi.string().allow(""),
175
+ user_cart_items_count: Joi.number(),
233
176
  });
234
177
  }
235
-
236
- static AppliedPromotion() {
178
+ static CartMetaMissingResponse() {
237
179
  return Joi.object({
238
- offer_text: Joi.string().allow(""),
239
-
240
- article_quantity: Joi.number(),
241
-
242
- promotion_type: Joi.string().allow(""),
243
-
244
- amount: Joi.number(),
245
-
246
- promo_id: Joi.string().allow(""),
247
-
248
- ownership: PosCartModel.Ownership(),
249
-
250
- mrp_promotion: Joi.boolean(),
180
+ errors: Joi.array().items(Joi.string().allow("")),
251
181
  });
252
182
  }
253
-
254
- static BasePrice() {
183
+ static CartMetaRequest() {
255
184
  return Joi.object({
256
- effective: Joi.number(),
257
-
258
- currency_symbol: Joi.string().allow(""),
259
-
260
- marked: Joi.number(),
261
-
262
- currency_code: Joi.string().allow(""),
185
+ checkout_mode: Joi.string().allow(""),
186
+ comment: Joi.string().allow(""),
187
+ gstin: Joi.string().allow(""),
188
+ pick_up_customer_details: Joi.any(),
263
189
  });
264
190
  }
265
-
266
- static ArticlePriceInfo() {
191
+ static CartMetaResponse() {
267
192
  return Joi.object({
268
- base: PosCartModel.BasePrice(),
269
-
270
- converted: PosCartModel.BasePrice(),
193
+ message: Joi.string().allow(""),
271
194
  });
272
195
  }
273
-
274
- static ProductArticle() {
196
+ static CartPosCheckoutDetailRequest() {
275
197
  return Joi.object({
276
- type: Joi.string().allow(""),
277
-
278
- parent_item_identifiers: Joi.any(),
279
-
280
- seller: PosCartModel.BaseInfo(),
281
-
198
+ address_id: Joi.string().allow(""),
199
+ aggregator: Joi.string().allow(""),
200
+ billing_address: Joi.any(),
201
+ billing_address_id: Joi.string().allow(""),
202
+ callback_url: Joi.string().allow("").allow(null),
203
+ custom_meta: Joi.array().items(PosCartModel.CartCheckoutCustomMeta()),
204
+ delivery_address: Joi.any(),
282
205
  extra_meta: Joi.any(),
283
-
284
- _custom_json: Joi.any(),
285
-
286
- store: PosCartModel.BaseInfo(),
287
-
288
- price: PosCartModel.ArticlePriceInfo(),
289
-
290
- uid: Joi.string().allow(""),
291
-
292
- product_group_tags: Joi.array().items(Joi.string().allow("")),
293
-
294
- size: Joi.string().allow(""),
295
-
296
- quantity: Joi.number(),
206
+ files: Joi.array().items(PosCartModel.Files()),
207
+ merchant_code: Joi.string().allow(""),
208
+ meta: Joi.any(),
209
+ order_type: Joi.string().allow("").required(),
210
+ ordering_store: Joi.number().allow(null),
211
+ payment_auto_confirm: Joi.boolean(),
212
+ payment_identifier: Joi.string().allow("").allow(null),
213
+ payment_mode: Joi.string().allow("").required(),
214
+ payment_params: Joi.any().allow(null),
215
+ pick_at_store_uid: Joi.number().allow(null),
216
+ pos: Joi.boolean(),
217
+ staff: PosCartModel.StaffCheckout(),
297
218
  });
298
219
  }
299
-
300
- static PromoMeta() {
220
+ static CartProduct() {
301
221
  return Joi.object({
302
- message: Joi.string().allow(""),
222
+ action: PosCartModel.ProductAction(),
223
+ brand: PosCartModel.BaseInfo(),
224
+ categories: Joi.array().items(PosCartModel.CategoryInfo()),
225
+ images: Joi.array().items(PosCartModel.ProductImage()),
226
+ name: Joi.string().allow(""),
227
+ slug: Joi.string().allow(""),
228
+ type: Joi.string().allow(""),
229
+ uid: Joi.number(),
230
+ });
231
+ }
232
+ static CartProductIdentifer() {
233
+ return Joi.object({
234
+ identifier: Joi.string().allow(""),
303
235
  });
304
236
  }
305
-
306
237
  static CartProductInfo() {
307
238
  return Joi.object({
239
+ article: PosCartModel.ProductArticle(),
240
+ availability: PosCartModel.ProductAvailability(),
241
+ bulk_offer: Joi.any(),
308
242
  coupon_message: Joi.string().allow(""),
309
-
243
+ delivery_promise: PosCartModel.ShipmentPromise(),
244
+ discount: Joi.string().allow(""),
245
+ identifiers: PosCartModel.CartProductIdentifer().required(),
310
246
  is_set: Joi.boolean(),
311
-
312
- availability: PosCartModel.ProductAvailability(),
313
-
314
- parent_item_identifiers: Joi.any(),
315
-
247
+ key: Joi.string().allow(""),
316
248
  message: Joi.string().allow(""),
317
-
249
+ moq: Joi.any(),
250
+ parent_item_identifiers: Joi.any(),
251
+ price: PosCartModel.ProductPriceInfo(),
318
252
  price_per_unit: PosCartModel.ProductPriceInfo(),
319
-
320
- key: Joi.string().allow(""),
321
-
322
253
  product: PosCartModel.CartProduct(),
323
-
324
- discount: Joi.string().allow(""),
325
-
326
- identifiers: PosCartModel.CartProductIdentifer().required(),
327
-
328
- price: PosCartModel.ProductPriceInfo(),
329
-
330
- bulk_offer: Joi.any(),
331
-
332
- promotions_applied: Joi.array().items(PosCartModel.AppliedPromotion()),
333
-
334
- article: PosCartModel.ProductArticle(),
335
-
336
254
  promo_meta: PosCartModel.PromoMeta(),
337
-
255
+ promotions_applied: Joi.array().items(PosCartModel.AppliedPromotion()),
338
256
  quantity: Joi.number(),
339
257
  });
340
258
  }
341
-
342
- static CartCurrency() {
343
- return Joi.object({
344
- symbol: Joi.string().allow(""),
345
-
346
- code: Joi.string().allow(""),
347
- });
348
- }
349
-
350
- static CartDetailResponse() {
259
+ static CartShipmentsResponse() {
351
260
  return Joi.object({
352
261
  breakup_values: PosCartModel.CartBreakup(),
353
-
354
- message: Joi.string().allow(""),
355
-
356
- restrict_checkout: Joi.boolean(),
357
-
358
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
359
-
360
- id: Joi.string().allow(""),
361
-
362
- coupon_text: Joi.string().allow(""),
363
-
364
- gstin: Joi.string().allow(""),
365
-
262
+ buy_now: Joi.boolean(),
263
+ cart_id: Joi.number(),
366
264
  checkout_mode: Joi.string().allow(""),
367
-
265
+ comment: Joi.string().allow(""),
266
+ coupon_text: Joi.string().allow(""),
267
+ currency: PosCartModel.CartCurrency(),
268
+ delivery_charge_info: Joi.string().allow(""),
368
269
  delivery_promise: PosCartModel.ShipmentPromise(),
369
-
370
- buy_now: Joi.boolean(),
371
-
270
+ error: Joi.boolean(),
271
+ gstin: Joi.string().allow(""),
272
+ id: Joi.string().allow(""),
372
273
  is_valid: Joi.boolean(),
373
-
374
274
  last_modified: Joi.string().allow(""),
375
-
376
- delivery_charge_info: Joi.string().allow(""),
377
-
378
- items: Joi.array().items(PosCartModel.CartProductInfo()),
379
-
380
- currency: PosCartModel.CartCurrency(),
381
-
382
- comment: Joi.string().allow(""),
383
- });
384
- }
385
-
386
- static AddProductCart() {
387
- return Joi.object({
388
- seller_id: Joi.number(),
389
-
390
- pos: Joi.boolean(),
391
-
392
- store_id: Joi.number(),
393
-
394
- parent_item_identifiers: Joi.any(),
395
-
396
- item_id: Joi.number(),
397
-
398
- article_assignment: Joi.any(),
399
-
400
- product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
401
-
402
- extra_meta: Joi.any(),
403
-
404
- _custom_json: Joi.any(),
405
-
406
- article_id: Joi.string().allow(""),
407
-
408
- item_size: Joi.string().allow(""),
409
-
410
- display: Joi.string().allow(""),
411
-
412
- quantity: Joi.number(),
275
+ message: Joi.string().allow(""),
276
+ payment_selection_lock: PosCartModel.PaymentSelectionLock(),
277
+ restrict_checkout: Joi.boolean(),
278
+ shipments: Joi.array().items(PosCartModel.ShipmentResponse()),
279
+ uid: Joi.string().allow(""),
413
280
  });
414
281
  }
415
-
416
- static AddCartRequest() {
282
+ static CategoryInfo() {
417
283
  return Joi.object({
418
- items: Joi.array().items(PosCartModel.AddProductCart()),
284
+ name: Joi.string().allow(""),
285
+ uid: Joi.number(),
419
286
  });
420
287
  }
421
-
422
- static AddCartDetailResponse() {
288
+ static CheckCart() {
423
289
  return Joi.object({
424
- success: Joi.boolean(),
425
-
426
- partial: Joi.boolean(),
427
-
428
- cart: PosCartModel.CartDetailResponse(),
429
-
290
+ breakup_values: PosCartModel.CartBreakup(),
291
+ buy_now: Joi.boolean(),
292
+ cart_id: Joi.number(),
293
+ checkout_mode: Joi.string().allow(""),
294
+ cod_available: Joi.boolean(),
295
+ cod_charges: Joi.number(),
296
+ cod_message: Joi.string().allow(""),
297
+ comment: Joi.string().allow(""),
298
+ coupon_text: Joi.string().allow(""),
299
+ currency: PosCartModel.CartCurrency(),
300
+ delivery_charge_info: Joi.string().allow(""),
301
+ delivery_charge_order_value: Joi.number(),
302
+ delivery_charges: Joi.number(),
303
+ delivery_promise: PosCartModel.ShipmentPromise(),
304
+ error_message: Joi.string().allow(""),
305
+ gstin: Joi.string().allow(""),
306
+ id: Joi.string().allow(""),
307
+ is_valid: Joi.boolean(),
308
+ items: Joi.array().items(PosCartModel.CartProductInfo()),
309
+ last_modified: Joi.string().allow(""),
430
310
  message: Joi.string().allow(""),
311
+ order_id: Joi.string().allow(""),
312
+ payment_selection_lock: PosCartModel.PaymentSelectionLock(),
313
+ restrict_checkout: Joi.boolean(),
314
+ store_code: Joi.string().allow(""),
315
+ store_emps: Joi.array().items(Joi.any()),
316
+ success: Joi.boolean(),
317
+ uid: Joi.string().allow(""),
318
+ user_type: Joi.string().allow(""),
431
319
  });
432
320
  }
433
-
434
- static UpdateProductCart() {
321
+ static Coupon() {
435
322
  return Joi.object({
436
- item_index: Joi.number(),
437
-
438
- parent_item_identifiers: Joi.any(),
439
-
440
- item_id: Joi.number(),
441
-
442
- extra_meta: Joi.any(),
443
-
444
- _custom_json: Joi.any(),
445
-
446
- identifiers: PosCartModel.CartProductIdentifer().required(),
447
-
448
- article_id: Joi.string().allow(""),
449
-
450
- item_size: Joi.string().allow(""),
451
-
452
- quantity: Joi.number(),
323
+ coupon_code: Joi.string().allow(""),
324
+ coupon_value: Joi.number(),
325
+ expires_on: Joi.string().allow(""),
326
+ is_applicable: Joi.boolean(),
327
+ is_applied: Joi.boolean(),
328
+ max_discount_value: Joi.number(),
329
+ message: Joi.string().allow(""),
330
+ minimum_cart_value: Joi.number(),
331
+ sub_title: Joi.string().allow(""),
332
+ title: Joi.string().allow(""),
453
333
  });
454
334
  }
455
-
456
- static UpdateCartRequest() {
335
+ static CouponBreakup() {
457
336
  return Joi.object({
458
- items: Joi.array().items(PosCartModel.UpdateProductCart()),
459
-
460
- operation: Joi.string().allow("").required(),
337
+ code: Joi.string().allow(""),
338
+ is_applied: Joi.boolean(),
339
+ message: Joi.string().allow(""),
340
+ type: Joi.string().allow(""),
341
+ uid: Joi.string().allow(""),
342
+ value: Joi.number(),
461
343
  });
462
344
  }
463
-
464
- static UpdateCartDetailResponse() {
345
+ static CouponValidity() {
465
346
  return Joi.object({
466
- success: Joi.boolean(),
467
-
468
- cart: PosCartModel.CartDetailResponse(),
469
-
470
- message: Joi.string().allow(""),
347
+ code: Joi.string().allow("").allow(null),
348
+ discount: Joi.number(),
349
+ display_message_en: Joi.string().allow("").allow(null),
350
+ title: Joi.string().allow(""),
351
+ valid: Joi.boolean(),
471
352
  });
472
353
  }
473
-
474
- static CartItemCountResponse() {
354
+ static DeleteAddressResponse() {
475
355
  return Joi.object({
476
- user_cart_items_count: Joi.number(),
356
+ id: Joi.string().allow(""),
357
+ is_deleted: Joi.boolean(),
477
358
  });
478
359
  }
479
-
480
- static Coupon() {
360
+ static DisplayBreakup() {
481
361
  return Joi.object({
482
- title: Joi.string().allow(""),
483
-
484
- coupon_value: Joi.number(),
485
-
486
- message: Joi.string().allow(""),
487
-
488
- expires_on: Joi.string().allow(""),
489
-
490
- max_discount_value: Joi.number(),
491
-
492
- is_applicable: Joi.boolean(),
493
-
494
- sub_title: Joi.string().allow(""),
495
-
496
- coupon_code: Joi.string().allow(""),
497
-
498
- minimum_cart_value: Joi.number(),
499
-
500
- is_applied: Joi.boolean(),
362
+ currency_code: Joi.string().allow(""),
363
+ currency_symbol: Joi.string().allow(""),
364
+ display: Joi.string().allow(""),
365
+ key: Joi.string().allow(""),
366
+ message: Joi.array().items(Joi.string().allow("")),
367
+ value: Joi.number(),
501
368
  });
502
369
  }
503
-
504
- static PageCoupon() {
370
+ static Files() {
505
371
  return Joi.object({
506
- has_next: Joi.boolean(),
507
-
508
- has_previous: Joi.boolean(),
509
-
510
- total: Joi.number(),
511
-
512
- total_item_count: Joi.number(),
513
-
514
- current: Joi.number(),
372
+ key: Joi.string().allow("").required(),
373
+ values: Joi.array().items(Joi.string().allow("")).required(),
374
+ });
375
+ }
376
+ static GeoLocation() {
377
+ return Joi.object({
378
+ latitude: Joi.number(),
379
+ longitude: Joi.number(),
380
+ });
381
+ }
382
+ static GetAddressesResponse() {
383
+ return Joi.object({
384
+ address: Joi.array().items(PosCartModel.Address()),
385
+ pii_masking: Joi.boolean(),
515
386
  });
516
387
  }
517
-
518
388
  static GetCouponResponse() {
519
389
  return Joi.object({
520
390
  available_coupon_list: Joi.array().items(PosCartModel.Coupon()),
521
-
522
391
  page: PosCartModel.PageCoupon(),
523
392
  });
524
393
  }
525
-
526
- static ApplyCouponRequest() {
394
+ static GetShareCartLinkRequest() {
527
395
  return Joi.object({
528
- coupon_code: Joi.string().allow("").required(),
396
+ id: Joi.string().allow(""),
397
+ meta: Joi.any(),
529
398
  });
530
399
  }
531
-
532
- static OfferPrice() {
400
+ static GetShareCartLinkResponse() {
533
401
  return Joi.object({
534
- bulk_effective: Joi.number(),
535
-
536
- marked: Joi.number(),
537
-
538
- currency_code: Joi.string().allow(""),
539
-
540
- currency_symbol: Joi.string().allow(""),
541
-
542
- effective: Joi.number(),
402
+ share_url: Joi.string().allow(""),
403
+ token: Joi.string().allow(""),
404
+ });
405
+ }
406
+ static LoyaltyPoints() {
407
+ return Joi.object({
408
+ applicable: Joi.number(),
409
+ description: Joi.string().allow(""),
410
+ is_applied: Joi.boolean(),
411
+ total: Joi.number(),
543
412
  });
544
413
  }
545
-
546
414
  static OfferItem() {
547
415
  return Joi.object({
548
- margin: Joi.number(),
549
-
550
- type: Joi.string().allow(""),
551
-
552
416
  auto_applied: Joi.boolean(),
553
-
554
- price: PosCartModel.OfferPrice(),
555
-
556
- total: Joi.number(),
557
-
558
417
  best: Joi.boolean(),
559
-
418
+ margin: Joi.number(),
419
+ price: PosCartModel.OfferPrice(),
560
420
  quantity: Joi.number(),
421
+ total: Joi.number(),
422
+ type: Joi.string().allow(""),
423
+ });
424
+ }
425
+ static OfferPrice() {
426
+ return Joi.object({
427
+ bulk_effective: Joi.number(),
428
+ currency_code: Joi.string().allow(""),
429
+ currency_symbol: Joi.string().allow(""),
430
+ effective: Joi.number(),
431
+ marked: Joi.number(),
561
432
  });
562
433
  }
563
-
564
434
  static OfferSeller() {
565
435
  return Joi.object({
566
436
  name: Joi.string().allow(""),
567
-
568
437
  uid: Joi.number(),
569
438
  });
570
439
  }
571
-
572
- static BulkPriceOffer() {
440
+ static Ownership() {
573
441
  return Joi.object({
574
- offers: Joi.array().items(PosCartModel.OfferItem()),
575
-
576
- seller: PosCartModel.OfferSeller(),
442
+ payable_by: Joi.string().allow(""),
443
+ payable_category: Joi.string().allow(""),
577
444
  });
578
445
  }
579
-
580
- static BulkPriceResponse() {
446
+ static PageCoupon() {
581
447
  return Joi.object({
582
- data: Joi.array().items(PosCartModel.BulkPriceOffer()),
448
+ current: Joi.number(),
449
+ has_next: Joi.boolean(),
450
+ has_previous: Joi.boolean(),
451
+ total: Joi.number(),
452
+ total_item_count: Joi.number(),
583
453
  });
584
454
  }
585
-
586
- static RewardPointRequest() {
455
+ static PaymentCouponValidate() {
587
456
  return Joi.object({
588
- points: Joi.boolean().required(),
457
+ coupon_validity: PosCartModel.CouponValidity(),
458
+ message: Joi.string().allow(""),
459
+ success: Joi.boolean().required(),
589
460
  });
590
461
  }
591
-
592
- static GeoLocation() {
462
+ static PaymentSelectionLock() {
593
463
  return Joi.object({
594
- longitude: Joi.number(),
595
-
596
- latitude: Joi.number(),
464
+ default_options: Joi.string().allow(""),
465
+ enabled: Joi.boolean(),
466
+ payment_identifier: Joi.string().allow(""),
597
467
  });
598
468
  }
599
-
600
- static Address() {
469
+ static PickupStoreDetail() {
601
470
  return Joi.object({
602
- geo_location: PosCartModel.GeoLocation(),
603
-
471
+ address: Joi.string().allow(""),
472
+ address_type: Joi.string().allow(""),
473
+ area: Joi.string().allow(""),
604
474
  area_code: Joi.string().allow(""),
605
-
606
- country_iso_code: Joi.string().allow(""),
607
-
608
- landmark: Joi.string().allow(""),
609
-
610
- id: Joi.string().allow(""),
611
-
612
- user_id: Joi.string().allow(""),
613
-
614
- meta: Joi.any(),
615
-
616
475
  area_code_slug: Joi.string().allow(""),
617
-
618
476
  city: Joi.string().allow(""),
619
-
477
+ country: Joi.string().allow(""),
620
478
  email: Joi.string().allow(""),
621
-
622
- is_default_address: Joi.boolean(),
623
-
479
+ id: Joi.number(),
480
+ landmark: Joi.string().allow(""),
481
+ name: Joi.string().allow(""),
624
482
  phone: Joi.string().allow(""),
625
-
626
- area: Joi.string().allow(""),
627
-
628
- country_phone_code: Joi.string().allow(""),
629
-
630
- google_map_point: Joi.any(),
631
-
632
- checkout_mode: Joi.string().allow(""),
633
-
634
- address_type: Joi.string().allow(""),
635
-
636
- tags: Joi.array().items(Joi.string().allow("")),
637
-
638
- address: Joi.string().allow(""),
639
-
483
+ pincode: Joi.number(),
640
484
  state: Joi.string().allow(""),
641
-
642
- name: Joi.string().allow(""),
643
-
644
- is_active: Joi.boolean(),
645
-
646
- country: Joi.string().allow(""),
647
-
648
- country_code: Joi.string().allow(""),
485
+ store_code: Joi.string().allow(""),
486
+ uid: Joi.number(),
649
487
  });
650
488
  }
651
-
652
- static GetAddressesResponse() {
489
+ static ProductAction() {
653
490
  return Joi.object({
654
- address: Joi.array().items(PosCartModel.Address()),
491
+ query: PosCartModel.ActionQuery(),
492
+ type: Joi.string().allow(""),
493
+ url: Joi.string().allow(""),
655
494
  });
656
495
  }
657
-
658
- static SaveAddressResponse() {
496
+ static ProductArticle() {
659
497
  return Joi.object({
660
- success: Joi.boolean(),
661
-
662
- id: Joi.string().allow(""),
663
-
664
- is_default_address: Joi.boolean(),
498
+ _custom_json: Joi.any(),
499
+ extra_meta: Joi.any(),
500
+ parent_item_identifiers: Joi.any(),
501
+ price: PosCartModel.ArticlePriceInfo(),
502
+ product_group_tags: Joi.array().items(Joi.string().allow("")),
503
+ quantity: Joi.number(),
504
+ seller: PosCartModel.BaseInfo(),
505
+ size: Joi.string().allow(""),
506
+ store: PosCartModel.BaseInfo(),
507
+ type: Joi.string().allow(""),
508
+ uid: Joi.string().allow(""),
665
509
  });
666
510
  }
667
-
668
- static UpdateAddressResponse() {
511
+ static ProductAvailability() {
669
512
  return Joi.object({
670
- success: Joi.boolean(),
671
-
672
- id: Joi.string().allow(""),
673
-
674
- is_updated: Joi.boolean(),
675
-
676
- is_default_address: Joi.boolean(),
513
+ available_sizes: Joi.array().items(
514
+ PosCartModel.ProductAvailabilitySize()
515
+ ),
516
+ deliverable: Joi.boolean(),
517
+ is_valid: Joi.boolean(),
518
+ other_store_quantity: Joi.number(),
519
+ out_of_stock: Joi.boolean(),
520
+ sizes: Joi.array().items(Joi.string().allow("")),
677
521
  });
678
522
  }
679
-
680
- static DeleteAddressResponse() {
523
+ static ProductAvailabilitySize() {
681
524
  return Joi.object({
682
- id: Joi.string().allow(""),
683
-
684
- is_deleted: Joi.boolean(),
525
+ display: Joi.string().allow(""),
526
+ is_available: Joi.boolean(),
527
+ value: Joi.string().allow(""),
685
528
  });
686
529
  }
687
-
688
- static SelectCartAddressRequest() {
530
+ static ProductImage() {
689
531
  return Joi.object({
690
- id: Joi.string().allow(""),
691
-
692
- cart_id: Joi.string().allow(""),
693
-
694
- billing_address_id: Joi.string().allow(""),
532
+ aspect_ratio: Joi.string().allow(""),
533
+ secure_url: Joi.string().allow(""),
534
+ url: Joi.string().allow(""),
695
535
  });
696
536
  }
697
-
698
- static UpdateCartPaymentRequest() {
537
+ static ProductPrice() {
699
538
  return Joi.object({
700
- aggregator_name: Joi.string().allow(""),
701
-
702
- id: Joi.string().allow(""),
703
-
704
- address_id: Joi.string().allow(""),
705
-
706
- payment_identifier: Joi.string().allow("").allow(null),
707
-
708
- payment_mode: Joi.string().allow(""),
709
-
710
- merchant_code: Joi.string().allow(""),
539
+ add_on: Joi.number(),
540
+ currency_code: Joi.string().allow(""),
541
+ currency_symbol: Joi.string().allow(""),
542
+ effective: Joi.number(),
543
+ marked: Joi.number(),
544
+ selling: Joi.number(),
711
545
  });
712
546
  }
713
-
714
- static CouponValidity() {
547
+ static ProductPriceInfo() {
715
548
  return Joi.object({
716
- code: Joi.string().allow("").allow(null),
717
-
718
- title: Joi.string().allow(""),
719
-
720
- valid: Joi.boolean(),
721
-
722
- display_message_en: Joi.string().allow("").allow(null),
723
-
724
- discount: Joi.number(),
549
+ base: PosCartModel.ProductPrice(),
550
+ converted: PosCartModel.ProductPrice(),
725
551
  });
726
552
  }
727
-
728
- static PaymentCouponValidate() {
553
+ static PromiseFormatted() {
729
554
  return Joi.object({
730
- success: Joi.boolean().required(),
731
-
732
- coupon_validity: PosCartModel.CouponValidity(),
733
-
734
- message: Joi.string().allow(""),
555
+ max: Joi.string().allow(""),
556
+ min: Joi.string().allow(""),
735
557
  });
736
558
  }
737
-
738
- static ShipmentResponse() {
559
+ static PromiseTimestamp() {
739
560
  return Joi.object({
740
- dp_options: Joi.any().allow(null),
741
-
742
- shipments: Joi.number(),
743
-
744
- order_type: Joi.string().allow(""),
745
-
746
- dp_id: Joi.string().allow("").allow(null),
747
-
748
- fulfillment_type: Joi.string().allow(""),
749
-
750
- promise: PosCartModel.ShipmentPromise(),
751
-
752
- box_type: Joi.string().allow("").allow(null),
753
-
754
- fulfillment_id: Joi.number(),
755
-
756
- shipment_type: Joi.string().allow(""),
757
-
758
- items: Joi.array().items(PosCartModel.CartProductInfo()),
561
+ max: Joi.number(),
562
+ min: Joi.number(),
759
563
  });
760
564
  }
761
-
762
- static CartShipmentsResponse() {
565
+ static PromoMeta() {
763
566
  return Joi.object({
764
567
  message: Joi.string().allow(""),
765
-
766
- restrict_checkout: Joi.boolean(),
767
-
768
- id: Joi.string().allow(""),
769
-
770
- checkout_mode: Joi.string().allow(""),
771
-
772
- uid: Joi.string().allow(""),
773
-
774
- currency: PosCartModel.CartCurrency(),
775
-
776
- comment: Joi.string().allow(""),
777
-
778
- breakup_values: PosCartModel.CartBreakup(),
779
-
780
- shipments: Joi.array().items(PosCartModel.ShipmentResponse()),
781
-
782
- error: Joi.boolean(),
783
-
784
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
785
-
786
- coupon_text: Joi.string().allow(""),
787
-
788
- gstin: Joi.string().allow(""),
789
-
790
- buy_now: Joi.boolean(),
791
-
792
- is_valid: Joi.boolean(),
793
-
794
- cart_id: Joi.number(),
795
-
796
- last_modified: Joi.string().allow(""),
797
-
798
- delivery_charge_info: Joi.string().allow(""),
799
-
800
- delivery_promise: PosCartModel.ShipmentPromise(),
801
568
  });
802
569
  }
803
-
804
- static UpdateCartShipmentItem() {
570
+ static RawBreakup() {
805
571
  return Joi.object({
806
- shipment_type: Joi.string().allow("").required(),
807
-
808
- quantity: Joi.number(),
809
-
810
- article_uid: Joi.string().allow("").required(),
572
+ cod_charge: Joi.number(),
573
+ convenience_fee: Joi.number(),
574
+ coupon: Joi.number(),
575
+ delivery_charge: Joi.number(),
576
+ discount: Joi.number(),
577
+ fynd_cash: Joi.number(),
578
+ gst_charges: Joi.number(),
579
+ mrp_total: Joi.number(),
580
+ subtotal: Joi.number(),
581
+ total: Joi.number(),
582
+ vog: Joi.number(),
583
+ you_saved: Joi.number(),
811
584
  });
812
585
  }
813
-
814
- static UpdateCartShipmentRequest() {
586
+ static RewardPointRequest() {
815
587
  return Joi.object({
816
- shipments: Joi.array()
817
- .items(PosCartModel.UpdateCartShipmentItem())
818
- .required(),
588
+ points: Joi.boolean().required(),
819
589
  });
820
590
  }
821
-
822
- static StaffCheckout() {
591
+ static SaveAddressResponse() {
823
592
  return Joi.object({
824
- user: Joi.string().allow("").required(),
825
-
826
- last_name: Joi.string().allow("").required(),
827
-
828
- employee_code: Joi.string().allow(""),
829
-
830
- _id: Joi.string().allow("").required(),
831
-
832
- first_name: Joi.string().allow("").required(),
593
+ id: Joi.string().allow(""),
594
+ is_default_address: Joi.boolean(),
595
+ success: Joi.boolean(),
833
596
  });
834
597
  }
835
-
836
- static CartCheckoutCustomMeta() {
598
+ static SelectCartAddressRequest() {
837
599
  return Joi.object({
838
- value: Joi.string().allow("").required(),
839
-
840
- key: Joi.string().allow("").required(),
600
+ billing_address_id: Joi.string().allow(""),
601
+ cart_id: Joi.string().allow(""),
602
+ id: Joi.string().allow(""),
841
603
  });
842
604
  }
843
-
844
- static Files() {
605
+ static SharedCart() {
845
606
  return Joi.object({
846
- key: Joi.string().allow("").required(),
847
-
848
- values: Joi.array().items(Joi.string().allow("")).required(),
849
- });
850
- }
851
-
852
- static CartPosCheckoutDetailRequest() {
853
- return Joi.object({
854
- billing_address_id: Joi.string().allow(""),
855
-
856
- extra_meta: Joi.any(),
857
-
858
- billing_address: Joi.any(),
859
-
860
- delivery_address: Joi.any(),
861
-
862
- meta: Joi.any(),
863
-
864
- address_id: Joi.string().allow(""),
865
-
866
- staff: PosCartModel.StaffCheckout(),
867
-
868
- payment_mode: Joi.string().allow("").required(),
869
-
870
- payment_identifier: Joi.string().allow("").allow(null),
871
-
872
- payment_params: Joi.any().allow(null),
873
-
874
- pos: Joi.boolean(),
875
-
876
- aggregator: Joi.string().allow(""),
877
-
878
- pick_at_store_uid: Joi.number().allow(null),
879
-
880
- payment_auto_confirm: Joi.boolean(),
881
-
882
- custom_meta: Joi.array().items(PosCartModel.CartCheckoutCustomMeta()),
883
-
884
- order_type: Joi.string().allow("").required(),
885
-
886
- ordering_store: Joi.number().allow(null),
887
-
888
- files: Joi.array().items(PosCartModel.Files()),
889
-
890
- merchant_code: Joi.string().allow(""),
891
-
892
- callback_url: Joi.string().allow("").allow(null),
893
- });
894
- }
895
-
896
- static CheckCart() {
897
- return Joi.object({
898
- delivery_charges: Joi.number(),
899
-
900
- message: Joi.string().allow(""),
901
-
902
- restrict_checkout: Joi.boolean(),
903
-
904
- id: Joi.string().allow(""),
905
-
906
- error_message: Joi.string().allow(""),
907
-
908
- items: Joi.array().items(PosCartModel.CartProductInfo()),
909
-
910
- comment: Joi.string().allow(""),
911
-
912
607
  breakup_values: PosCartModel.CartBreakup(),
913
-
914
- gstin: Joi.string().allow(""),
915
-
916
608
  buy_now: Joi.boolean(),
917
-
918
- is_valid: Joi.boolean(),
919
-
920
- last_modified: Joi.string().allow(""),
921
-
922
- delivery_charge_order_value: Joi.number(),
923
-
924
- order_id: Joi.string().allow(""),
925
-
609
+ cart_id: Joi.number(),
926
610
  checkout_mode: Joi.string().allow(""),
927
-
928
- uid: Joi.string().allow(""),
929
-
930
- cod_message: Joi.string().allow(""),
931
-
932
- store_code: Joi.string().allow(""),
933
-
934
- currency: PosCartModel.CartCurrency(),
935
-
936
- user_type: Joi.string().allow(""),
937
-
938
- cod_available: Joi.boolean(),
939
-
940
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
941
-
942
- success: Joi.boolean(),
943
-
944
- store_emps: Joi.array().items(Joi.any()),
945
-
946
- cod_charges: Joi.number(),
947
-
611
+ comment: Joi.string().allow(""),
948
612
  coupon_text: Joi.string().allow(""),
949
-
950
- cart_id: Joi.number(),
951
-
613
+ currency: PosCartModel.CartCurrency(),
952
614
  delivery_charge_info: Joi.string().allow(""),
953
-
954
615
  delivery_promise: PosCartModel.ShipmentPromise(),
955
- });
956
- }
957
-
958
- static CartCheckoutResponse() {
959
- return Joi.object({
960
- payment_confirm_url: Joi.string().allow(""),
961
-
962
- order_id: Joi.string().allow(""),
963
-
616
+ gstin: Joi.string().allow(""),
617
+ id: Joi.string().allow(""),
618
+ is_valid: Joi.boolean(),
619
+ items: Joi.array().items(PosCartModel.CartProductInfo()),
620
+ last_modified: Joi.string().allow(""),
964
621
  message: Joi.string().allow(""),
965
-
966
- success: Joi.boolean(),
967
-
968
- cart: PosCartModel.CheckCart(),
969
-
970
- app_intercept_url: Joi.string().allow(""),
971
-
972
- callback_url: Joi.string().allow(""),
973
-
974
- data: Joi.any(),
622
+ payment_selection_lock: PosCartModel.PaymentSelectionLock(),
623
+ restrict_checkout: Joi.boolean(),
624
+ shared_cart_details: PosCartModel.SharedCartDetails(),
625
+ uid: Joi.string().allow(""),
975
626
  });
976
627
  }
977
-
978
- static CartMetaRequest() {
628
+ static SharedCartDetails() {
979
629
  return Joi.object({
980
- checkout_mode: Joi.string().allow(""),
981
-
982
- pick_up_customer_details: Joi.any(),
983
-
984
- gstin: Joi.string().allow(""),
985
-
986
- comment: Joi.string().allow(""),
630
+ created_on: Joi.string().allow(""),
631
+ meta: Joi.any(),
632
+ source: Joi.any(),
633
+ token: Joi.string().allow(""),
634
+ user: Joi.any(),
987
635
  });
988
636
  }
989
-
990
- static CartMetaResponse() {
637
+ static SharedCartResponse() {
991
638
  return Joi.object({
992
- message: Joi.string().allow(""),
639
+ cart: PosCartModel.SharedCart(),
640
+ error: Joi.string().allow(""),
993
641
  });
994
642
  }
995
-
996
- static CartMetaMissingResponse() {
643
+ static ShipmentPromise() {
997
644
  return Joi.object({
998
- errors: Joi.array().items(Joi.string().allow("")),
645
+ formatted: PosCartModel.PromiseFormatted(),
646
+ timestamp: PosCartModel.PromiseTimestamp(),
999
647
  });
1000
648
  }
1001
-
1002
- static CartDeliveryModesResponse() {
649
+ static ShipmentResponse() {
1003
650
  return Joi.object({
1004
- pickup_stores: Joi.array().items(Joi.number()),
1005
-
1006
- available_modes: Joi.array().items(Joi.string().allow("")),
651
+ box_type: Joi.string().allow("").allow(null),
652
+ dp_id: Joi.string().allow("").allow(null),
653
+ dp_options: Joi.any().allow(null),
654
+ fulfillment_id: Joi.number(),
655
+ fulfillment_type: Joi.string().allow(""),
656
+ items: Joi.array().items(PosCartModel.CartProductInfo()),
657
+ order_type: Joi.string().allow(""),
658
+ promise: PosCartModel.ShipmentPromise(),
659
+ shipment_type: Joi.string().allow(""),
660
+ shipments: Joi.number(),
1007
661
  });
1008
662
  }
1009
-
1010
- static PickupStoreDetail() {
663
+ static StaffCheckout() {
1011
664
  return Joi.object({
1012
- area: Joi.string().allow(""),
1013
-
1014
- pincode: Joi.number(),
1015
-
1016
- area_code: Joi.string().allow(""),
1017
-
1018
- area_code_slug: Joi.string().allow(""),
1019
-
1020
- name: Joi.string().allow(""),
1021
-
1022
- city: Joi.string().allow(""),
1023
-
1024
- email: Joi.string().allow(""),
1025
-
1026
- landmark: Joi.string().allow(""),
1027
-
1028
- id: Joi.number(),
1029
-
1030
- store_code: Joi.string().allow(""),
1031
-
1032
- phone: Joi.string().allow(""),
1033
-
1034
- address_type: Joi.string().allow(""),
1035
-
1036
- country: Joi.string().allow(""),
1037
-
1038
- uid: Joi.number(),
1039
-
1040
- state: Joi.string().allow(""),
1041
-
1042
- address: Joi.string().allow(""),
665
+ _id: Joi.string().allow("").required(),
666
+ employee_code: Joi.string().allow(""),
667
+ first_name: Joi.string().allow("").required(),
668
+ last_name: Joi.string().allow("").required(),
669
+ user: Joi.string().allow("").required(),
1043
670
  });
1044
671
  }
1045
-
1046
672
  static StoreDetailsResponse() {
1047
673
  return Joi.object({
1048
674
  items: Joi.array().items(PosCartModel.PickupStoreDetail()),
1049
675
  });
1050
676
  }
1051
-
1052
- static GetShareCartLinkRequest() {
677
+ static UpdateAddressResponse() {
1053
678
  return Joi.object({
1054
679
  id: Joi.string().allow(""),
1055
-
1056
- meta: Joi.any(),
680
+ is_default_address: Joi.boolean(),
681
+ is_updated: Joi.boolean(),
682
+ success: Joi.boolean(),
1057
683
  });
1058
684
  }
1059
-
1060
- static GetShareCartLinkResponse() {
685
+ static UpdateCartDetailResponse() {
1061
686
  return Joi.object({
1062
- share_url: Joi.string().allow(""),
1063
-
1064
- token: Joi.string().allow(""),
687
+ cart: PosCartModel.CartDetailResponse(),
688
+ message: Joi.string().allow(""),
689
+ success: Joi.boolean(),
1065
690
  });
1066
691
  }
1067
-
1068
- static SharedCartDetails() {
692
+ static UpdateCartPaymentRequest() {
1069
693
  return Joi.object({
1070
- user: Joi.any(),
1071
-
1072
- source: Joi.any(),
1073
-
1074
- created_on: Joi.string().allow(""),
1075
-
1076
- meta: Joi.any(),
1077
-
1078
- token: Joi.string().allow(""),
694
+ address_id: Joi.string().allow(""),
695
+ aggregator_name: Joi.string().allow(""),
696
+ id: Joi.string().allow(""),
697
+ merchant_code: Joi.string().allow(""),
698
+ payment_identifier: Joi.string().allow("").allow(null),
699
+ payment_mode: Joi.string().allow(""),
1079
700
  });
1080
701
  }
1081
-
1082
- static SharedCart() {
702
+ static UpdateCartRequest() {
1083
703
  return Joi.object({
1084
- shared_cart_details: PosCartModel.SharedCartDetails(),
1085
-
1086
- message: Joi.string().allow(""),
1087
-
1088
- restrict_checkout: Joi.boolean(),
1089
-
1090
- id: Joi.string().allow(""),
1091
-
1092
- items: Joi.array().items(PosCartModel.CartProductInfo()),
1093
-
1094
- comment: Joi.string().allow(""),
1095
-
1096
- breakup_values: PosCartModel.CartBreakup(),
1097
-
1098
- gstin: Joi.string().allow(""),
1099
-
1100
- buy_now: Joi.boolean(),
1101
-
1102
- is_valid: Joi.boolean(),
1103
-
1104
- last_modified: Joi.string().allow(""),
1105
-
1106
- checkout_mode: Joi.string().allow(""),
1107
-
1108
- uid: Joi.string().allow(""),
1109
-
1110
- currency: PosCartModel.CartCurrency(),
1111
-
1112
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
1113
-
1114
- coupon_text: Joi.string().allow(""),
1115
-
1116
- cart_id: Joi.number(),
1117
-
1118
- delivery_charge_info: Joi.string().allow(""),
1119
-
1120
- delivery_promise: PosCartModel.ShipmentPromise(),
704
+ items: Joi.array().items(PosCartModel.UpdateProductCart()),
705
+ operation: Joi.string().allow("").required(),
1121
706
  });
1122
707
  }
1123
-
1124
- static SharedCartResponse() {
708
+ static UpdateCartShipmentItem() {
1125
709
  return Joi.object({
1126
- error: Joi.string().allow(""),
1127
-
1128
- cart: PosCartModel.SharedCart(),
710
+ article_uid: Joi.string().allow("").required(),
711
+ quantity: Joi.number(),
712
+ shipment_type: Joi.string().allow("").required(),
713
+ });
714
+ }
715
+ static UpdateCartShipmentRequest() {
716
+ return Joi.object({
717
+ shipments: Joi.array()
718
+ .items(PosCartModel.UpdateCartShipmentItem())
719
+ .required(),
720
+ });
721
+ }
722
+ static UpdateProductCart() {
723
+ return Joi.object({
724
+ _custom_json: Joi.any(),
725
+ article_id: Joi.string().allow(""),
726
+ extra_meta: Joi.any(),
727
+ identifiers: PosCartModel.CartProductIdentifer().required(),
728
+ item_id: Joi.number(),
729
+ item_index: Joi.number(),
730
+ item_size: Joi.string().allow(""),
731
+ parent_item_identifiers: Joi.any(),
732
+ quantity: Joi.number(),
1129
733
  });
1130
734
  }
1131
735
  }