@gofynd/fdk-client-javascript 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +557 -1279
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +14453 -17192
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3438 -4172
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3400 -5361
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  44. package/sdk/application/Cart/CartApplicationClient.js +567 -567
  45. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  46. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  47. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  48. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  49. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  50. package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
  51. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  52. package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
  53. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  54. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  55. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  56. package/sdk/application/Common/CommonApplicationClient.js +38 -38
  57. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  58. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  59. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  60. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  61. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  62. package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
  63. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  64. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  65. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  66. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  67. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
  69. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  71. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  73. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  74. package/sdk/application/Content/ContentApplicationClient.js +191 -191
  75. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  76. package/sdk/application/Content/ContentApplicationModel.js +467 -884
  77. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  78. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  79. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
  81. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  83. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  85. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  86. package/sdk/application/Lead/LeadApplicationClient.js +100 -100
  87. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  88. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  89. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  90. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  91. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  92. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
  93. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  94. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  95. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  96. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  97. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  98. package/sdk/application/Order/OrderApplicationClient.js +232 -232
  99. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  100. package/sdk/application/Order/OrderApplicationModel.js +352 -656
  101. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  102. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  103. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  104. package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
  105. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  106. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  107. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  108. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  109. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  110. package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
  111. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  112. package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
  113. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  114. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  115. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  116. package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
  117. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  118. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  119. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  120. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  121. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  122. package/sdk/application/Share/ShareApplicationClient.js +84 -84
  123. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  124. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  125. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  126. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  127. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  128. package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
  129. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  130. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  131. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  132. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  133. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  134. package/sdk/application/User/UserApplicationClient.js +581 -581
  135. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  136. package/sdk/application/User/UserApplicationModel.js +440 -689
  137. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  138. package/sdk/application/User/UserApplicationValidator.js +89 -89
  139. package/sdk/common/AxiosHelper.js +1 -1
  140. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  144. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  145. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  146. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  147. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
  148. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  152. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  153. package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
  154. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  155. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  156. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  157. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  158. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
  159. package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
  160. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  161. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  162. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  163. package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
  164. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  165. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
  166. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
  168. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
  169. package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
  170. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  171. package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
  172. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  173. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
  174. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  175. package/sdk/platform/Common/CommonPlatformClient.js +41 -41
  176. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  177. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  178. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  179. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  180. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  181. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
  182. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  184. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  185. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  186. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  187. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
  188. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  189. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  190. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  192. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  193. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
  194. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  195. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  196. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  197. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
  198. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  199. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  200. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  201. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  202. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
  203. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
  204. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
  205. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
  206. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  207. package/sdk/platform/Content/ContentPlatformModel.js +484 -907
  208. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  209. package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
  210. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  211. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  212. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  213. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  214. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
  215. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
  216. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  217. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  218. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
  219. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
  220. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  221. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  222. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  223. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  224. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  225. package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
  226. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  227. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  228. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  229. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  230. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  231. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
  232. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  233. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  234. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  235. package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
  236. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  237. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  238. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  239. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  240. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  241. package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
  242. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  243. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  244. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  245. package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
  246. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  247. package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
  248. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  249. package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
  250. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  251. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  252. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
  253. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
  254. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  255. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  256. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  257. package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
  258. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  259. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  260. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  261. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  262. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  263. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  264. package/sdk/platform/PlatformClient.d.ts +7965 -7885
  265. package/sdk/platform/PlatformClient.js +8672 -10105
  266. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  270. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  271. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  272. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  273. package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
  274. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  275. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  276. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  277. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  278. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  279. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
  280. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  281. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  282. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  283. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  284. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  285. package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
  286. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  287. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  288. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  289. package/sdk/platform/User/UserPlatformModel.js +440 -689
  290. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  291. package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
  292. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  293. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  294. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  295. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  296. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  297. package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
  298. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  299. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  300. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  301. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  302. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  303. package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
  304. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  305. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  306. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  307. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  308. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  309. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  310. package/tests/application/catalog.spec.js +7 -0
@@ -1,1131 +1,735 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class PosCartModel {
4
- static PromiseFormatted() {
5
- return Joi.object({
6
- min: Joi.string().allow(""),
7
-
8
- max: Joi.string().allow(""),
9
- });
10
- }
11
-
12
- static PromiseTimestamp() {
4
+ static ActionQuery() {
13
5
  return Joi.object({
14
- min: Joi.number(),
15
-
16
- max: Joi.number(),
6
+ product_slug: Joi.array().items(Joi.string().allow("")),
17
7
  });
18
8
  }
19
-
20
- static ShipmentPromise() {
9
+ static AddCartDetailResponse() {
21
10
  return Joi.object({
22
- formatted: PosCartModel.PromiseFormatted(),
23
-
24
- timestamp: PosCartModel.PromiseTimestamp(),
11
+ cart: PosCartModel.CartDetailResponse(),
12
+ message: Joi.string().allow(""),
13
+ partial: Joi.boolean(),
14
+ success: Joi.boolean(),
25
15
  });
26
16
  }
27
-
28
- static RawBreakup() {
17
+ static AddCartRequest() {
29
18
  return Joi.object({
30
- coupon: Joi.number(),
31
-
32
- total: Joi.number(),
33
-
34
- convenience_fee: Joi.number(),
35
-
36
- you_saved: Joi.number(),
37
-
38
- mrp_total: Joi.number(),
39
-
40
- cod_charge: Joi.number(),
41
-
42
- discount: Joi.number(),
43
-
44
- gst_charges: Joi.number(),
45
-
46
- subtotal: Joi.number(),
47
-
48
- vog: Joi.number(),
49
-
50
- delivery_charge: Joi.number(),
51
-
52
- fynd_cash: Joi.number(),
19
+ items: Joi.array().items(PosCartModel.AddProductCart()),
53
20
  });
54
21
  }
55
-
56
- static CouponBreakup() {
22
+ static AddProductCart() {
57
23
  return Joi.object({
58
- is_applied: Joi.boolean(),
59
-
60
- code: Joi.string().allow(""),
61
-
62
- value: Joi.number(),
63
-
64
- uid: Joi.string().allow(""),
65
-
66
- type: Joi.string().allow(""),
67
-
68
- message: Joi.string().allow(""),
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(),
69
37
  });
70
38
  }
71
-
72
- static DisplayBreakup() {
39
+ static Address() {
73
40
  return Joi.object({
74
- value: Joi.number(),
75
-
76
- display: Joi.string().allow(""),
77
-
78
- key: Joi.string().allow(""),
79
-
80
- currency_symbol: Joi.string().allow(""),
81
-
82
- currency_code: Joi.string().allow(""),
83
-
84
- message: Joi.array().items(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(""),
85
65
  });
86
66
  }
87
-
88
- static LoyaltyPoints() {
67
+ static AppliedPromotion() {
89
68
  return Joi.object({
90
- is_applied: Joi.boolean(),
91
-
92
- applicable: Joi.number(),
93
-
94
- description: Joi.string().allow(""),
95
-
96
- total: Joi.number(),
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(""),
97
76
  });
98
77
  }
99
-
100
- static CartBreakup() {
78
+ static ApplyCouponRequest() {
101
79
  return Joi.object({
102
- raw: PosCartModel.RawBreakup(),
103
-
104
- coupon: PosCartModel.CouponBreakup(),
105
-
106
- display: Joi.array().items(PosCartModel.DisplayBreakup()),
107
-
108
- loyalty_points: PosCartModel.LoyaltyPoints(),
80
+ coupon_code: Joi.string().allow("").required(),
109
81
  });
110
82
  }
111
-
112
- static CartCurrency() {
83
+ static ArticlePriceInfo() {
113
84
  return Joi.object({
114
- code: Joi.string().allow(""),
115
-
116
- symbol: Joi.string().allow(""),
85
+ base: PosCartModel.BasePrice(),
86
+ converted: PosCartModel.BasePrice(),
117
87
  });
118
88
  }
119
-
120
- static PromoMeta() {
89
+ static BaseInfo() {
121
90
  return Joi.object({
122
- message: Joi.string().allow(""),
91
+ name: Joi.string().allow(""),
92
+ uid: Joi.number(),
123
93
  });
124
94
  }
125
-
126
95
  static BasePrice() {
127
96
  return Joi.object({
128
- effective: Joi.number(),
129
-
130
97
  currency_code: Joi.string().allow(""),
131
-
132
98
  currency_symbol: Joi.string().allow(""),
133
-
99
+ effective: Joi.number(),
134
100
  marked: Joi.number(),
135
101
  });
136
102
  }
137
-
138
- static ArticlePriceInfo() {
103
+ static BulkPriceOffer() {
139
104
  return Joi.object({
140
- base: PosCartModel.BasePrice(),
141
-
142
- converted: PosCartModel.BasePrice(),
105
+ offers: Joi.array().items(PosCartModel.OfferItem()),
106
+ seller: PosCartModel.OfferSeller(),
143
107
  });
144
108
  }
145
-
146
- static BaseInfo() {
109
+ static BulkPriceResponse() {
147
110
  return Joi.object({
148
- name: Joi.string().allow(""),
149
-
150
- uid: Joi.number(),
111
+ data: Joi.array().items(PosCartModel.BulkPriceOffer()),
151
112
  });
152
113
  }
153
-
154
- static ProductArticle() {
114
+ static CartBreakup() {
155
115
  return Joi.object({
156
- size: Joi.string().allow(""),
157
-
158
- parent_item_identifiers: Joi.any(),
159
-
160
- _custom_json: Joi.any(),
161
-
162
- product_group_tags: Joi.array().items(Joi.string().allow("")),
163
-
164
- extra_meta: Joi.any(),
165
-
166
- uid: Joi.string().allow(""),
167
-
168
- price: PosCartModel.ArticlePriceInfo(),
169
-
170
- seller: PosCartModel.BaseInfo(),
171
-
172
- type: Joi.string().allow(""),
173
-
174
- quantity: Joi.number(),
175
-
176
- store: PosCartModel.BaseInfo(),
116
+ coupon: PosCartModel.CouponBreakup(),
117
+ display: Joi.array().items(PosCartModel.DisplayBreakup()),
118
+ loyalty_points: PosCartModel.LoyaltyPoints(),
119
+ raw: PosCartModel.RawBreakup(),
177
120
  });
178
121
  }
179
-
180
- static ProductAvailability() {
122
+ static CartCheckoutCustomMeta() {
181
123
  return Joi.object({
182
- other_store_quantity: Joi.number(),
183
-
184
- is_valid: Joi.boolean(),
185
-
186
- deliverable: Joi.boolean(),
187
-
188
- sizes: Joi.array().items(Joi.string().allow("")),
189
-
190
- out_of_stock: Joi.boolean(),
124
+ key: Joi.string().allow("").required(),
125
+ value: Joi.string().allow("").required(),
191
126
  });
192
127
  }
193
-
194
- static CartProductIdentifer() {
128
+ static CartCheckoutResponse() {
195
129
  return Joi.object({
196
- identifier: Joi.string().allow(""),
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(),
197
138
  });
198
139
  }
199
-
200
- static ProductPrice() {
140
+ static CartCurrency() {
201
141
  return Joi.object({
202
- add_on: Joi.number(),
203
-
204
- effective: Joi.number(),
205
-
206
- selling: Joi.number(),
207
-
208
- currency_symbol: Joi.string().allow(""),
209
-
210
- currency_code: Joi.string().allow(""),
211
-
212
- marked: Joi.number(),
142
+ code: Joi.string().allow(""),
143
+ symbol: Joi.string().allow(""),
213
144
  });
214
145
  }
215
-
216
- static ProductPriceInfo() {
146
+ static CartDeliveryModesResponse() {
217
147
  return Joi.object({
218
- base: PosCartModel.ProductPrice(),
219
-
220
- converted: PosCartModel.ProductPrice(),
221
- });
148
+ available_modes: Joi.array().items(Joi.string().allow("")),
149
+ pickup_stores: Joi.array().items(Joi.number()),
150
+ });
222
151
  }
223
-
224
- static ProductImage() {
152
+ static CartDetailResponse() {
225
153
  return Joi.object({
226
- aspect_ratio: Joi.string().allow(""),
227
-
228
- secure_url: Joi.string().allow(""),
229
-
230
- url: 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(),
231
171
  });
232
172
  }
233
-
234
- static CategoryInfo() {
173
+ static CartItemCountResponse() {
235
174
  return Joi.object({
236
- name: Joi.string().allow(""),
237
-
238
- uid: Joi.number(),
175
+ user_cart_items_count: Joi.number(),
239
176
  });
240
177
  }
241
-
242
- static ActionQuery() {
178
+ static CartMetaMissingResponse() {
243
179
  return Joi.object({
244
- product_slug: Joi.array().items(Joi.string().allow("")),
180
+ errors: Joi.array().items(Joi.string().allow("")),
245
181
  });
246
182
  }
247
-
248
- static ProductAction() {
183
+ static CartMetaRequest() {
249
184
  return Joi.object({
250
- query: PosCartModel.ActionQuery(),
251
-
252
- type: Joi.string().allow(""),
253
-
254
- url: 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(),
189
+ });
190
+ }
191
+ static CartMetaResponse() {
192
+ return Joi.object({
193
+ message: Joi.string().allow(""),
194
+ });
195
+ }
196
+ static CartPosCheckoutDetailRequest() {
197
+ return Joi.object({
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(),
205
+ extra_meta: Joi.any(),
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(),
255
218
  });
256
219
  }
257
-
258
220
  static CartProduct() {
259
221
  return Joi.object({
222
+ action: PosCartModel.ProductAction(),
260
223
  brand: PosCartModel.BaseInfo(),
261
-
262
- name: Joi.string().allow(""),
263
-
224
+ categories: Joi.array().items(PosCartModel.CategoryInfo()),
264
225
  images: Joi.array().items(PosCartModel.ProductImage()),
265
-
266
- uid: Joi.number(),
267
-
268
- type: Joi.string().allow(""),
269
-
226
+ name: Joi.string().allow(""),
270
227
  slug: Joi.string().allow(""),
271
-
272
- categories: Joi.array().items(PosCartModel.CategoryInfo()),
273
-
274
- action: PosCartModel.ProductAction(),
275
- });
276
- }
277
-
278
- static Ownership() {
279
- return Joi.object({
280
- payable_by: Joi.string().allow(""),
281
-
282
- payable_category: Joi.string().allow(""),
228
+ type: Joi.string().allow(""),
229
+ uid: Joi.number(),
283
230
  });
284
231
  }
285
-
286
- static AppliedPromotion() {
232
+ static CartProductIdentifer() {
287
233
  return Joi.object({
288
- amount: Joi.number(),
289
-
290
- ownership: PosCartModel.Ownership(),
291
-
292
- mrp_promotion: Joi.boolean(),
293
-
294
- offer_text: Joi.string().allow(""),
295
-
296
- article_quantity: Joi.number(),
297
-
298
- promo_id: Joi.string().allow(""),
299
-
300
- promotion_type: Joi.string().allow(""),
234
+ identifier: Joi.string().allow(""),
301
235
  });
302
236
  }
303
-
304
237
  static CartProductInfo() {
305
238
  return Joi.object({
306
- promo_meta: PosCartModel.PromoMeta(),
307
-
308
239
  article: PosCartModel.ProductArticle(),
309
-
310
- coupon_message: Joi.string().allow(""),
311
-
312
240
  availability: PosCartModel.ProductAvailability(),
313
-
314
- parent_item_identifiers: Joi.any(),
315
-
241
+ bulk_offer: Joi.any(),
242
+ coupon_message: Joi.string().allow(""),
243
+ delivery_promise: PosCartModel.ShipmentPromise(),
244
+ discount: Joi.string().allow(""),
316
245
  identifiers: PosCartModel.CartProductIdentifer().required(),
317
-
318
- price: PosCartModel.ProductPriceInfo(),
319
-
320
246
  is_set: Joi.boolean(),
321
-
322
- discount: Joi.string().allow(""),
323
-
324
- price_per_unit: PosCartModel.ProductPriceInfo(),
325
-
326
247
  key: Joi.string().allow(""),
327
-
328
- bulk_offer: Joi.any(),
329
-
330
- quantity: Joi.number(),
331
-
332
- product: PosCartModel.CartProduct(),
333
-
334
248
  message: Joi.string().allow(""),
335
-
249
+ moq: Joi.any(),
250
+ parent_item_identifiers: Joi.any(),
251
+ price: PosCartModel.ProductPriceInfo(),
252
+ price_per_unit: PosCartModel.ProductPriceInfo(),
253
+ product: PosCartModel.CartProduct(),
254
+ promo_meta: PosCartModel.PromoMeta(),
336
255
  promotions_applied: Joi.array().items(PosCartModel.AppliedPromotion()),
256
+ quantity: Joi.number(),
337
257
  });
338
258
  }
339
-
340
- static PaymentSelectionLock() {
341
- return Joi.object({
342
- payment_identifier: Joi.string().allow(""),
343
-
344
- default_options: Joi.string().allow(""),
345
-
346
- enabled: Joi.boolean(),
347
- });
348
- }
349
-
350
- static CartDetailResponse() {
259
+ static CartShipmentsResponse() {
351
260
  return Joi.object({
261
+ breakup_values: PosCartModel.CartBreakup(),
262
+ buy_now: Joi.boolean(),
263
+ cart_id: Joi.number(),
352
264
  checkout_mode: Joi.string().allow(""),
353
-
265
+ comment: Joi.string().allow(""),
266
+ coupon_text: Joi.string().allow(""),
267
+ currency: PosCartModel.CartCurrency(),
268
+ delivery_charge_info: Joi.string().allow(""),
354
269
  delivery_promise: PosCartModel.ShipmentPromise(),
355
-
270
+ error: Joi.boolean(),
356
271
  gstin: Joi.string().allow(""),
357
-
358
- last_modified: Joi.string().allow(""),
359
-
360
- is_valid: Joi.boolean(),
361
-
362
272
  id: Joi.string().allow(""),
363
-
273
+ is_valid: Joi.boolean(),
274
+ last_modified: Joi.string().allow(""),
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(""),
280
+ });
281
+ }
282
+ static CategoryInfo() {
283
+ return Joi.object({
284
+ name: Joi.string().allow(""),
285
+ uid: Joi.number(),
286
+ });
287
+ }
288
+ static CheckCart() {
289
+ return Joi.object({
364
290
  breakup_values: PosCartModel.CartBreakup(),
365
-
366
- currency: PosCartModel.CartCurrency(),
367
-
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(""),
368
297
  comment: Joi.string().allow(""),
369
-
370
298
  coupon_text: Joi.string().allow(""),
371
-
299
+ currency: PosCartModel.CartCurrency(),
372
300
  delivery_charge_info: Joi.string().allow(""),
373
-
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(),
374
308
  items: Joi.array().items(PosCartModel.CartProductInfo()),
375
-
309
+ last_modified: Joi.string().allow(""),
310
+ message: Joi.string().allow(""),
311
+ order_id: Joi.string().allow(""),
376
312
  payment_selection_lock: PosCartModel.PaymentSelectionLock(),
377
-
378
313
  restrict_checkout: Joi.boolean(),
379
-
380
- buy_now: Joi.boolean(),
381
-
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(""),
319
+ });
320
+ }
321
+ static Coupon() {
322
+ return Joi.object({
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(),
382
329
  message: Joi.string().allow(""),
330
+ minimum_cart_value: Joi.number(),
331
+ sub_title: Joi.string().allow(""),
332
+ title: Joi.string().allow(""),
383
333
  });
384
334
  }
385
-
386
- static AddProductCart() {
335
+ static CouponBreakup() {
387
336
  return Joi.object({
388
- seller_id: Joi.number(),
389
-
390
- article_assignment: Joi.any(),
391
-
392
- parent_item_identifiers: Joi.any(),
393
-
394
- _custom_json: Joi.any(),
395
-
396
- item_id: Joi.number(),
397
-
398
- product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
399
-
400
- extra_meta: Joi.any(),
401
-
402
- item_size: Joi.string().allow(""),
403
-
404
- display: Joi.string().allow(""),
405
-
406
- article_id: Joi.string().allow(""),
407
-
408
- pos: Joi.boolean(),
409
-
410
- quantity: Joi.number(),
411
-
412
- store_id: Joi.number(),
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(),
413
343
  });
414
344
  }
415
-
416
- static AddCartRequest() {
345
+ static CouponValidity() {
417
346
  return Joi.object({
418
- items: Joi.array().items(PosCartModel.AddProductCart()),
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(),
419
352
  });
420
353
  }
421
-
422
- static AddCartDetailResponse() {
354
+ static DeleteAddressResponse() {
423
355
  return Joi.object({
424
- partial: Joi.boolean(),
425
-
426
- cart: PosCartModel.CartDetailResponse(),
427
-
428
- message: Joi.string().allow(""),
429
-
430
- success: Joi.boolean(),
356
+ id: Joi.string().allow(""),
357
+ is_deleted: Joi.boolean(),
431
358
  });
432
359
  }
433
-
434
- static UpdateProductCart() {
360
+ static DisplayBreakup() {
435
361
  return Joi.object({
436
- item_index: Joi.number(),
437
-
438
- parent_item_identifiers: Joi.any(),
439
-
440
- _custom_json: Joi.any(),
441
-
442
- item_id: Joi.number(),
443
-
444
- extra_meta: Joi.any(),
445
-
446
- identifiers: PosCartModel.CartProductIdentifer().required(),
447
-
448
- item_size: Joi.string().allow(""),
449
-
450
- article_id: Joi.string().allow(""),
451
-
452
- quantity: Joi.number(),
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(),
453
368
  });
454
369
  }
455
-
456
- static UpdateCartRequest() {
370
+ static Files() {
457
371
  return Joi.object({
458
- operation: Joi.string().allow("").required(),
459
-
460
- items: Joi.array().items(PosCartModel.UpdateProductCart()),
372
+ key: Joi.string().allow("").required(),
373
+ values: Joi.array().items(Joi.string().allow("")).required(),
461
374
  });
462
375
  }
463
-
464
- static UpdateCartDetailResponse() {
376
+ static GeoLocation() {
465
377
  return Joi.object({
466
- cart: PosCartModel.CartDetailResponse(),
467
-
468
- message: Joi.string().allow(""),
469
-
470
- success: Joi.boolean(),
378
+ latitude: Joi.number(),
379
+ longitude: Joi.number(),
471
380
  });
472
381
  }
473
-
474
- static CartItemCountResponse() {
382
+ static GetAddressesResponse() {
475
383
  return Joi.object({
476
- user_cart_items_count: Joi.number(),
384
+ address: Joi.array().items(PosCartModel.Address()),
385
+ pii_masking: Joi.boolean(),
477
386
  });
478
387
  }
479
-
480
- static Coupon() {
388
+ static GetCouponResponse() {
481
389
  return Joi.object({
482
- is_applicable: Joi.boolean(),
483
-
484
- coupon_code: Joi.string().allow(""),
485
-
486
- max_discount_value: Joi.number(),
487
-
488
- coupon_value: Joi.number(),
489
-
490
- minimum_cart_value: Joi.number(),
491
-
492
- is_applied: Joi.boolean(),
493
-
494
- sub_title: Joi.string().allow(""),
495
-
496
- title: Joi.string().allow(""),
497
-
498
- expires_on: Joi.string().allow(""),
499
-
500
- message: Joi.string().allow(""),
390
+ available_coupon_list: Joi.array().items(PosCartModel.Coupon()),
391
+ page: PosCartModel.PageCoupon(),
501
392
  });
502
393
  }
503
-
504
- static PageCoupon() {
394
+ static GetShareCartLinkRequest() {
505
395
  return Joi.object({
506
- total_item_count: Joi.number(),
507
-
508
- has_next: Joi.boolean(),
509
-
510
- total: Joi.number(),
511
-
512
- has_previous: Joi.boolean(),
513
-
514
- current: Joi.number(),
396
+ id: Joi.string().allow(""),
397
+ meta: Joi.any(),
515
398
  });
516
399
  }
517
-
518
- static GetCouponResponse() {
400
+ static GetShareCartLinkResponse() {
519
401
  return Joi.object({
520
- available_coupon_list: Joi.array().items(PosCartModel.Coupon()),
521
-
522
- page: PosCartModel.PageCoupon(),
402
+ share_url: Joi.string().allow(""),
403
+ token: Joi.string().allow(""),
523
404
  });
524
405
  }
525
-
526
- static ApplyCouponRequest() {
406
+ static LoyaltyPoints() {
527
407
  return Joi.object({
528
- coupon_code: Joi.string().allow("").required(),
408
+ applicable: Joi.number(),
409
+ description: Joi.string().allow(""),
410
+ is_applied: Joi.boolean(),
411
+ total: Joi.number(),
529
412
  });
530
413
  }
531
-
532
- static OfferSeller() {
414
+ static OfferItem() {
533
415
  return Joi.object({
534
- name: Joi.string().allow(""),
535
-
536
- uid: Joi.number(),
416
+ auto_applied: Joi.boolean(),
417
+ best: Joi.boolean(),
418
+ margin: Joi.number(),
419
+ price: PosCartModel.OfferPrice(),
420
+ quantity: Joi.number(),
421
+ total: Joi.number(),
422
+ type: Joi.string().allow(""),
537
423
  });
538
424
  }
539
-
540
425
  static OfferPrice() {
541
426
  return Joi.object({
542
427
  bulk_effective: Joi.number(),
543
-
544
- effective: Joi.number(),
545
-
546
- currency_symbol: Joi.string().allow(""),
547
-
548
428
  currency_code: Joi.string().allow(""),
549
-
429
+ currency_symbol: Joi.string().allow(""),
430
+ effective: Joi.number(),
550
431
  marked: Joi.number(),
551
432
  });
552
433
  }
553
-
554
- static OfferItem() {
434
+ static OfferSeller() {
555
435
  return Joi.object({
556
- total: Joi.number(),
557
-
558
- price: PosCartModel.OfferPrice(),
559
-
560
- margin: Joi.number(),
561
-
562
- type: Joi.string().allow(""),
563
-
564
- quantity: Joi.number(),
565
-
566
- auto_applied: Joi.boolean(),
567
-
568
- best: Joi.boolean(),
436
+ name: Joi.string().allow(""),
437
+ uid: Joi.number(),
569
438
  });
570
439
  }
571
-
572
- static BulkPriceOffer() {
440
+ static Ownership() {
573
441
  return Joi.object({
574
- seller: PosCartModel.OfferSeller(),
575
-
576
- offers: Joi.array().items(PosCartModel.OfferItem()),
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
- checkout_mode: Joi.string().allow(""),
603
-
604
- google_map_point: Joi.any(),
605
-
471
+ address: Joi.string().allow(""),
472
+ address_type: Joi.string().allow(""),
473
+ area: Joi.string().allow(""),
606
474
  area_code: Joi.string().allow(""),
607
-
475
+ area_code_slug: Joi.string().allow(""),
476
+ city: Joi.string().allow(""),
477
+ country: Joi.string().allow(""),
608
478
  email: Joi.string().allow(""),
609
-
610
- country_iso_code: Joi.string().allow(""),
611
-
479
+ id: Joi.number(),
612
480
  landmark: Joi.string().allow(""),
613
-
614
- state: Joi.string().allow(""),
615
-
616
- tags: Joi.array().items(Joi.string().allow("")),
617
-
618
- address: Joi.string().allow(""),
619
-
620
- is_default_address: Joi.boolean(),
621
-
622
- country_code: Joi.string().allow(""),
623
-
481
+ name: Joi.string().allow(""),
624
482
  phone: Joi.string().allow(""),
625
-
626
- city: Joi.string().allow(""),
627
-
628
- country_phone_code: Joi.string().allow(""),
629
-
630
- area: Joi.string().allow(""),
631
-
632
- address_type: Joi.string().allow(""),
633
-
634
- country: Joi.string().allow(""),
635
-
636
- meta: Joi.any(),
637
-
638
- name: Joi.string().allow(""),
639
-
640
- geo_location: PosCartModel.GeoLocation(),
641
-
642
- is_active: Joi.boolean(),
643
-
644
- id: Joi.string().allow(""),
645
-
646
- area_code_slug: Joi.string().allow(""),
647
-
648
- user_id: Joi.string().allow(""),
483
+ pincode: Joi.number(),
484
+ state: 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
- is_default_address: Joi.boolean(),
661
-
662
- id: Joi.string().allow(""),
663
-
664
- success: 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
- is_default_address: Joi.boolean(),
671
-
672
- success: Joi.boolean(),
673
-
674
- id: Joi.string().allow(""),
675
-
676
- is_updated: 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
- is_deleted: Joi.boolean(),
683
-
684
- id: Joi.string().allow(""),
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
- cart_id: Joi.string().allow(""),
691
-
692
- 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
- merchant_code: Joi.string().allow(""),
705
-
706
- address_id: Joi.string().allow(""),
707
-
708
- payment_mode: Joi.string().allow(""),
709
-
710
- payment_identifier: Joi.string().allow("").allow(null),
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
- display_message_en: Joi.string().allow("").allow(null),
717
-
718
- code: Joi.string().allow("").allow(null),
719
-
720
- valid: Joi.boolean(),
721
-
722
- discount: Joi.number(),
723
-
724
- title: Joi.string().allow(""),
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
- message: Joi.string().allow(""),
731
-
732
- success: Joi.boolean().required(),
733
-
734
- coupon_validity: PosCartModel.CouponValidity(),
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
- fulfillment_id: Joi.number(),
741
-
742
- dp_options: Joi.any().allow(null),
743
-
744
- fulfillment_type: Joi.string().allow(""),
745
-
746
- shipments: Joi.number(),
747
-
748
- shipment_type: Joi.string().allow(""),
749
-
750
- order_type: Joi.string().allow(""),
751
-
752
- items: Joi.array().items(PosCartModel.CartProductInfo()),
753
-
754
- box_type: Joi.string().allow("").allow(null),
755
-
756
- promise: PosCartModel.ShipmentPromise(),
757
-
758
- dp_id: Joi.string().allow("").allow(null),
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
- checkout_mode: Joi.string().allow(""),
765
-
766
- gstin: Joi.string().allow(""),
767
-
768
- is_valid: Joi.boolean(),
769
-
770
- currency: PosCartModel.CartCurrency(),
771
-
772
- uid: Joi.string().allow(""),
773
-
774
- cart_id: Joi.number(),
775
-
776
- comment: Joi.string().allow(""),
777
-
778
- delivery_charge_info: Joi.string().allow(""),
779
-
780
- error: Joi.boolean(),
781
-
782
- restrict_checkout: Joi.boolean(),
783
-
784
- buy_now: Joi.boolean(),
785
-
786
- delivery_promise: PosCartModel.ShipmentPromise(),
787
-
788
567
  message: Joi.string().allow(""),
789
-
790
- last_modified: Joi.string().allow(""),
791
-
792
- shipments: Joi.array().items(PosCartModel.ShipmentResponse()),
793
-
794
- id: Joi.string().allow(""),
795
-
796
- breakup_values: PosCartModel.CartBreakup(),
797
-
798
- coupon_text: Joi.string().allow(""),
799
-
800
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
801
568
  });
802
569
  }
803
-
804
- static UpdateCartShipmentItem() {
805
- return Joi.object({
806
- article_uid: Joi.string().allow("").required(),
807
-
808
- quantity: Joi.number(),
809
-
810
- shipment_type: Joi.string().allow("").required(),
811
- });
812
- }
813
-
814
- static UpdateCartShipmentRequest() {
570
+ static RawBreakup() {
815
571
  return Joi.object({
816
- shipments: Joi.array()
817
- .items(PosCartModel.UpdateCartShipmentItem())
818
- .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(),
819
584
  });
820
585
  }
821
-
822
- static StaffCheckout() {
586
+ static RewardPointRequest() {
823
587
  return Joi.object({
824
- user: Joi.string().allow("").required(),
825
-
826
- employee_code: Joi.string().allow(""),
827
-
828
- _id: Joi.string().allow("").required(),
829
-
830
- last_name: Joi.string().allow("").required(),
831
-
832
- first_name: Joi.string().allow("").required(),
588
+ points: Joi.boolean().required(),
833
589
  });
834
590
  }
835
-
836
- static CartCheckoutCustomMeta() {
591
+ static SaveAddressResponse() {
837
592
  return Joi.object({
838
- key: Joi.string().allow("").required(),
839
-
840
- value: Joi.string().allow("").required(),
593
+ id: Joi.string().allow(""),
594
+ is_default_address: Joi.boolean(),
595
+ success: Joi.boolean(),
841
596
  });
842
597
  }
843
-
844
- static Files() {
598
+ static SelectCartAddressRequest() {
845
599
  return Joi.object({
846
- key: Joi.string().allow("").required(),
847
-
848
- values: Joi.array().items(Joi.string().allow("")).required(),
600
+ billing_address_id: Joi.string().allow(""),
601
+ cart_id: Joi.string().allow(""),
602
+ id: Joi.string().allow(""),
849
603
  });
850
604
  }
851
-
852
- static CartPosCheckoutDetailRequest() {
853
- return Joi.object({
854
- delivery_address: Joi.any(),
855
-
856
- payment_auto_confirm: Joi.boolean(),
857
-
858
- staff: PosCartModel.StaffCheckout(),
859
-
860
- payment_identifier: Joi.string().allow("").allow(null),
861
-
862
- custom_meta: Joi.array().items(PosCartModel.CartCheckoutCustomMeta()),
863
-
864
- order_type: Joi.string().allow("").required(),
865
-
866
- billing_address_id: Joi.string().allow(""),
867
-
868
- files: Joi.array().items(PosCartModel.Files()),
869
-
870
- pos: Joi.boolean(),
871
-
872
- ordering_store: Joi.number().allow(null),
873
-
874
- callback_url: Joi.string().allow("").allow(null),
875
-
876
- pick_at_store_uid: Joi.number().allow(null),
877
-
878
- extra_meta: Joi.any(),
879
-
880
- billing_address: Joi.any(),
881
-
882
- payment_params: Joi.any().allow(null),
883
-
884
- meta: Joi.any(),
885
-
886
- aggregator: Joi.string().allow(""),
887
-
888
- merchant_code: Joi.string().allow(""),
889
-
890
- address_id: Joi.string().allow(""),
891
-
892
- payment_mode: Joi.string().allow("").required(),
893
- });
894
- }
895
-
896
- static CheckCart() {
605
+ static SharedCart() {
897
606
  return Joi.object({
607
+ breakup_values: PosCartModel.CartBreakup(),
608
+ buy_now: Joi.boolean(),
609
+ cart_id: Joi.number(),
898
610
  checkout_mode: Joi.string().allow(""),
899
-
611
+ comment: Joi.string().allow(""),
612
+ coupon_text: Joi.string().allow(""),
900
613
  currency: PosCartModel.CartCurrency(),
901
-
902
- cart_id: Joi.number(),
903
-
904
- delivery_charges: Joi.number(),
905
-
906
- order_id: Joi.string().allow(""),
907
-
908
- buy_now: Joi.boolean(),
909
-
614
+ delivery_charge_info: Joi.string().allow(""),
910
615
  delivery_promise: PosCartModel.ShipmentPromise(),
911
-
912
- cod_message: Joi.string().allow(""),
913
-
914
- user_type: Joi.string().allow(""),
915
-
916
- last_modified: Joi.string().allow(""),
917
-
918
- breakup_values: PosCartModel.CartBreakup(),
919
-
920
- coupon_text: Joi.string().allow(""),
921
-
922
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
923
-
924
- store_code: Joi.string().allow(""),
925
-
926
- delivery_charge_order_value: Joi.number(),
927
-
928
616
  gstin: Joi.string().allow(""),
929
-
930
- is_valid: Joi.boolean(),
931
-
932
- uid: Joi.string().allow(""),
933
-
934
- comment: Joi.string().allow(""),
935
-
936
- delivery_charge_info: Joi.string().allow(""),
937
-
938
- restrict_checkout: Joi.boolean(),
939
-
940
- error_message: Joi.string().allow(""),
941
-
942
- message: Joi.string().allow(""),
943
-
944
- store_emps: Joi.array().items(Joi.any()),
945
-
946
617
  id: Joi.string().allow(""),
947
-
948
- success: Joi.boolean(),
949
-
950
- cod_charges: Joi.number(),
951
-
618
+ is_valid: Joi.boolean(),
952
619
  items: Joi.array().items(PosCartModel.CartProductInfo()),
953
-
954
- cod_available: Joi.boolean(),
955
- });
956
- }
957
-
958
- static CartCheckoutResponse() {
959
- return Joi.object({
960
- payment_confirm_url: Joi.string().allow(""),
961
-
962
- callback_url: Joi.string().allow(""),
963
-
964
- success: Joi.boolean(),
965
-
966
- data: Joi.any(),
967
-
968
- app_intercept_url: Joi.string().allow(""),
969
-
970
- order_id: Joi.string().allow(""),
971
-
972
- cart: PosCartModel.CheckCart(),
973
-
620
+ last_modified: Joi.string().allow(""),
974
621
  message: Joi.string().allow(""),
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
- comment: Joi.string().allow(""),
981
-
982
- checkout_mode: Joi.string().allow(""),
983
-
984
- pick_up_customer_details: Joi.any(),
985
-
986
- gstin: 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
- available_modes: Joi.array().items(Joi.string().allow("")),
1005
-
1006
- pickup_stores: Joi.array().items(Joi.number()),
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
- store_code: Joi.string().allow(""),
1013
-
1014
- pincode: Joi.number(),
1015
-
1016
- name: Joi.string().allow(""),
1017
-
1018
- state: Joi.string().allow(""),
1019
-
1020
- address: Joi.string().allow(""),
1021
-
1022
- area_code: Joi.string().allow(""),
1023
-
1024
- id: Joi.number(),
1025
-
1026
- email: Joi.string().allow(""),
1027
-
1028
- area: Joi.string().allow(""),
1029
-
1030
- area_code_slug: Joi.string().allow(""),
1031
-
1032
- uid: Joi.number(),
1033
-
1034
- address_type: Joi.string().allow(""),
1035
-
1036
- country: Joi.string().allow(""),
1037
-
1038
- phone: Joi.string().allow(""),
1039
-
1040
- city: Joi.string().allow(""),
1041
-
1042
- landmark: 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
- meta: Joi.any(),
1055
-
1056
679
  id: Joi.string().allow(""),
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
- token: Joi.string().allow(""),
1063
-
1064
- share_url: 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
- meta: Joi.any(),
1071
-
1072
- user: Joi.any(),
1073
-
1074
- token: Joi.string().allow(""),
1075
-
1076
- created_on: Joi.string().allow(""),
1077
-
1078
- source: Joi.any(),
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
- checkout_mode: Joi.string().allow(""),
1085
-
1086
- currency: PosCartModel.CartCurrency(),
1087
-
1088
- cart_id: Joi.number(),
1089
-
1090
- buy_now: Joi.boolean(),
1091
-
1092
- delivery_promise: PosCartModel.ShipmentPromise(),
1093
-
1094
- last_modified: Joi.string().allow(""),
1095
-
1096
- breakup_values: PosCartModel.CartBreakup(),
1097
-
1098
- shared_cart_details: PosCartModel.SharedCartDetails(),
1099
-
1100
- coupon_text: Joi.string().allow(""),
1101
-
1102
- payment_selection_lock: PosCartModel.PaymentSelectionLock(),
1103
-
1104
- gstin: Joi.string().allow(""),
1105
-
1106
- is_valid: Joi.boolean(),
1107
-
1108
- uid: Joi.string().allow(""),
1109
-
1110
- comment: Joi.string().allow(""),
1111
-
1112
- delivery_charge_info: Joi.string().allow(""),
1113
-
1114
- restrict_checkout: Joi.boolean(),
1115
-
1116
- message: Joi.string().allow(""),
1117
-
1118
- id: Joi.string().allow(""),
1119
-
1120
- items: Joi.array().items(PosCartModel.CartProductInfo()),
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
- cart: PosCartModel.SharedCart(),
1127
-
1128
- error: Joi.string().allow(""),
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
  }