@gofynd/fdk-client-javascript 1.1.6 → 1.3.0

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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,90 +1,1824 @@
1
- export = PosCartModel;
2
- declare class PosCartModel {
3
- static ActionQuery(): any;
4
- static AddCartDetailResponse(): any;
5
- static AddCartRequest(): any;
6
- static AddProductCart(): any;
7
- static Address(): any;
8
- static AppliedFreeArticles(): any;
9
- static AppliedPromotion(): any;
10
- static ApplyCouponRequest(): any;
11
- static ArticleGiftDetail(): any;
12
- static ArticlePriceInfo(): any;
13
- static BaseInfo(): any;
14
- static BasePrice(): any;
15
- static BulkPriceOffer(): any;
16
- static BulkPriceResponse(): any;
17
- static BuyRules(): any;
18
- static CartBreakup(): any;
19
- static CartCheckoutCustomMeta(): any;
20
- static CartCheckoutResponse(): any;
21
- static CartCurrency(): any;
22
- static CartDeliveryModesResponse(): any;
23
- static CartDetailResponse(): any;
24
- static CartItemCountResponse(): any;
25
- static CartMetaMissingResponse(): any;
26
- static CartMetaRequest(): any;
27
- static CartMetaResponse(): any;
28
- static CartPosCheckoutDetailRequest(): any;
29
- static CartProduct(): any;
30
- static CartProductIdentifer(): any;
31
- static CartProductInfo(): any;
32
- static CartShipmentsResponse(): any;
33
- static CategoryInfo(): any;
34
- static CheckCart(): any;
35
- static Coupon(): any;
36
- static CouponBreakup(): any;
37
- static CouponDetails(): any;
38
- static CouponValidity(): any;
39
- static CustomerDetails(): any;
40
- static DeleteAddressResponse(): any;
41
- static DiscountRulesApp(): any;
42
- static DisplayBreakup(): any;
43
- static Files(): any;
44
- static FreeGiftItem(): any;
45
- static GeoLocation(): any;
46
- static GetAddressesResponse(): any;
47
- static GetCouponResponse(): any;
48
- static GetShareCartLinkRequest(): any;
49
- static GetShareCartLinkResponse(): any;
50
- static GiftDetail(): any;
51
- static LoyaltyPoints(): any;
52
- static OfferItem(): any;
53
- static OfferPrice(): any;
54
- static OfferSeller(): any;
55
- static Ownership(): any;
56
- static PageCoupon(): any;
57
- static PaymentCouponValidate(): any;
58
- static PaymentSelectionLock(): any;
59
- static PickupStoreDetail(): any;
60
- static ProductAction(): any;
61
- static ProductArticle(): any;
62
- static ProductAvailability(): any;
63
- static ProductAvailabilitySize(): any;
64
- static ProductImage(): any;
65
- static ProductPrice(): any;
66
- static ProductPriceInfo(): any;
67
- static PromiseFormatted(): any;
68
- static PromiseTimestamp(): any;
69
- static PromoMeta(): any;
70
- static RawBreakup(): any;
71
- static RewardPointRequest(): any;
72
- static SaveAddressResponse(): any;
73
- static SelectCartAddressRequest(): any;
74
- static SharedCart(): any;
75
- static SharedCartDetails(): any;
76
- static SharedCartResponse(): any;
77
- static ShipmentPromise(): any;
78
- static ShipmentResponse(): any;
79
- static StaffCheckout(): any;
80
- static StoreDetailsResponse(): any;
81
- static StoreInfo(): any;
82
- static Tags(): any;
83
- static UpdateAddressResponse(): any;
84
- static UpdateCartDetailResponse(): any;
85
- static UpdateCartPaymentRequest(): any;
86
- static UpdateCartRequest(): any;
87
- static UpdateCartShipmentItem(): any;
88
- static UpdateCartShipmentRequest(): any;
89
- static UpdateProductCart(): any;
1
+ export = PosCartApplicationModel;
2
+ /**
3
+ * @typedef ActionQuery
4
+ * @property {string[]} [product_slug] - Contains list of product slug
5
+ */
6
+ /**
7
+ * @typedef AddCartDetailResponse
8
+ * @property {CartDetailResponse} [cart]
9
+ * @property {string} [message]
10
+ * @property {boolean} [partial] - When adding multiple items check if all
11
+ * added. True if only few are added.
12
+ * @property {boolean} [success] - True if all items are added successfully.
13
+ * False if partially added or not added.
14
+ */
15
+ /**
16
+ * @typedef AddCartRequest
17
+ * @property {AddProductCart[]} [items]
18
+ * @property {boolean} [new_cart]
19
+ */
20
+ /**
21
+ * @typedef AddProductCart
22
+ * @property {Object} [_custom_json]
23
+ * @property {Object} [article_assignment]
24
+ * @property {string} [article_id]
25
+ * @property {string} [display]
26
+ * @property {Object} [extra_meta]
27
+ * @property {number} [item_id]
28
+ * @property {string} [item_size]
29
+ * @property {Object} [meta]
30
+ * @property {Object[]} [parent_item_identifiers]
31
+ * @property {boolean} [pos]
32
+ * @property {string[]} [product_group_tags]
33
+ * @property {number} [quantity]
34
+ * @property {number} [seller_id]
35
+ * @property {number} [store_id]
36
+ */
37
+ /**
38
+ * @typedef Address
39
+ * @property {Object} [_custom_json]
40
+ * @property {string} [address]
41
+ * @property {string} [address_type]
42
+ * @property {string} [area]
43
+ * @property {string} [area_code]
44
+ * @property {string} [area_code_slug]
45
+ * @property {string} [checkout_mode]
46
+ * @property {string} [city]
47
+ * @property {string} [country]
48
+ * @property {string} [country_code]
49
+ * @property {string} [country_iso_code]
50
+ * @property {string} [country_phone_code]
51
+ * @property {string} [created_by_user_id]
52
+ * @property {string} [email]
53
+ * @property {GeoLocation} [geo_location]
54
+ * @property {Object} [google_map_point]
55
+ * @property {string} [id]
56
+ * @property {boolean} [is_active]
57
+ * @property {boolean} [is_default_address]
58
+ * @property {string} [landmark]
59
+ * @property {Object} [meta]
60
+ * @property {string} [name]
61
+ * @property {string} [phone]
62
+ * @property {string} [state]
63
+ * @property {string[]} [tags]
64
+ * @property {string} [user_id]
65
+ */
66
+ /**
67
+ * @typedef AppliedFreeArticles
68
+ * @property {string} [article_id] - Free article id
69
+ * @property {FreeGiftItem} [free_gift_item_details] - Free gift items details
70
+ * @property {string} [parent_item_identifier] - Parent item identifier for free article
71
+ * @property {number} [quantity] - Free article quantity
72
+ */
73
+ /**
74
+ * @typedef AppliedPromotion
75
+ * @property {number} [amount] - Per unit discount amount applied with current promotion
76
+ * @property {AppliedFreeArticles[]} [applied_free_articles] - Applied free
77
+ * article for free gift item promotions
78
+ * @property {number} [article_quantity] - Quantity of article on which
79
+ * promotion is applicable
80
+ * @property {BuyRules[]} [buy_rules] - Buy rules for promotions
81
+ * @property {DiscountRulesApp[]} [discount_rules] - Discount rules for promotions
82
+ * @property {boolean} [mrp_promotion] - If applied promotion is applied on
83
+ * product MRP or ESP
84
+ * @property {string} [offer_text] - Offer text of current promotion
85
+ * @property {Ownership} [ownership] - Ownership of promotion
86
+ * @property {string} [promo_id] - Promotion id
87
+ * @property {string} [promotion_group] - Promotion group for the promotion
88
+ * @property {string} [promotion_name] - Promotion name of current promotion
89
+ * @property {string} [promotion_type] - Promotion type of current promotion
90
+ */
91
+ /**
92
+ * @typedef ApplyCouponRequest
93
+ * @property {string} coupon_code - Coupon code to be applied
94
+ */
95
+ /**
96
+ * @typedef ArticleGiftDetail
97
+ * @property {GiftDetail} [article_id]
98
+ */
99
+ /**
100
+ * @typedef ArticlePriceInfo
101
+ * @property {BasePrice} [base]
102
+ * @property {BasePrice} [converted]
103
+ */
104
+ /**
105
+ * @typedef BaseInfo
106
+ * @property {string} [name]
107
+ * @property {number} [uid]
108
+ */
109
+ /**
110
+ * @typedef BasePrice
111
+ * @property {string} [currency_code]
112
+ * @property {string} [currency_symbol]
113
+ * @property {number} [effective]
114
+ * @property {number} [marked]
115
+ */
116
+ /**
117
+ * @typedef BulkPriceOffer
118
+ * @property {OfferItem[]} [offers]
119
+ * @property {OfferSeller} [seller]
120
+ */
121
+ /**
122
+ * @typedef BulkPriceResponse
123
+ * @property {BulkPriceOffer[]} [data] - Consist of offers from multiple seller
124
+ */
125
+ /**
126
+ * @typedef BuyRules
127
+ * @property {Object} [cart_conditions] - Cart conditions details for promotion
128
+ * @property {Object} [item_criteria] - Item criteria of promotion
129
+ */
130
+ /**
131
+ * @typedef CartBreakup
132
+ * @property {CouponBreakup} [coupon]
133
+ * @property {DisplayBreakup[]} [display]
134
+ * @property {LoyaltyPoints} [loyalty_points]
135
+ * @property {RawBreakup} [raw]
136
+ */
137
+ /**
138
+ * @typedef CartCheckoutCustomMeta
139
+ * @property {string} key
140
+ * @property {string} value
141
+ */
142
+ /**
143
+ * @typedef CartCheckoutResponse
144
+ * @property {string} [app_intercept_url]
145
+ * @property {string} [callback_url]
146
+ * @property {CheckCart} [cart]
147
+ * @property {Object} [data]
148
+ * @property {string} [message]
149
+ * @property {string} [order_id]
150
+ * @property {string} [payment_confirm_url]
151
+ * @property {boolean} [success]
152
+ */
153
+ /**
154
+ * @typedef CartCurrency
155
+ * @property {string} [code] - Currency code defined by ISO 4217:2015
156
+ * @property {string} [symbol]
157
+ */
158
+ /**
159
+ * @typedef CartDeliveryModesResponse
160
+ * @property {string[]} [available_modes] - Available delivery modes
161
+ * @property {number[]} [pickup_stores] - Store pick up available store uids
162
+ */
163
+ /**
164
+ * @typedef CartDetailResponse
165
+ * @property {AppliedPromotion[]} [applied_promo_details]
166
+ * @property {CartBreakup} [breakup_values]
167
+ * @property {boolean} [buy_now]
168
+ * @property {string} [checkout_mode]
169
+ * @property {string} [comment]
170
+ * @property {string} [coupon_text]
171
+ * @property {CartCurrency} [currency]
172
+ * @property {string} [delivery_charge_info]
173
+ * @property {ShipmentPromise} [delivery_promise]
174
+ * @property {string} [gstin]
175
+ * @property {string} [id]
176
+ * @property {boolean} [is_valid]
177
+ * @property {CartProductInfo[]} [items]
178
+ * @property {string} [last_modified]
179
+ * @property {string} [message]
180
+ * @property {Object} [pan_config]
181
+ * @property {string} [pan_no]
182
+ * @property {PaymentSelectionLock} [payment_selection_lock]
183
+ * @property {boolean} [restrict_checkout]
184
+ */
185
+ /**
186
+ * @typedef CartItemCountResponse
187
+ * @property {number} [user_cart_items_count] - Item count present in cart
188
+ */
189
+ /**
190
+ * @typedef CartMetaMissingResponse
191
+ * @property {string[]} [errors]
192
+ */
193
+ /**
194
+ * @typedef CartMetaRequest
195
+ * @property {string} [checkout_mode]
196
+ * @property {string} [comment]
197
+ * @property {Object} [delivery_slots]
198
+ * @property {ArticleGiftDetail} [gift_details]
199
+ * @property {string} [gstin]
200
+ * @property {Object} [pick_up_customer_details] - Customer contact details for
201
+ * customer pickup at store
202
+ */
203
+ /**
204
+ * @typedef CartMetaResponse
205
+ * @property {boolean} [is_valid]
206
+ * @property {string} [message]
207
+ */
208
+ /**
209
+ * @typedef CartPosCheckoutDetailRequest
210
+ * @property {string} [address_id]
211
+ * @property {string} [aggregator]
212
+ * @property {Object} [billing_address]
213
+ * @property {string} [billing_address_id]
214
+ * @property {string} [callback_url]
215
+ * @property {CartCheckoutCustomMeta[]} [custom_meta]
216
+ * @property {Object} [customer_details] - Customer details
217
+ * @property {Object} [delivery_address]
218
+ * @property {Object} [extra_meta]
219
+ * @property {Files[]} [files] - List of file url
220
+ * @property {string} [id]
221
+ * @property {string} [merchant_code]
222
+ * @property {Object} [meta]
223
+ * @property {string} order_type
224
+ * @property {number} [ordering_store]
225
+ * @property {boolean} [payment_auto_confirm]
226
+ * @property {string} [payment_identifier]
227
+ * @property {string} payment_mode
228
+ * @property {Object} [payment_params]
229
+ * @property {number} [pick_at_store_uid]
230
+ * @property {boolean} [pos]
231
+ * @property {StaffCheckout} [staff]
232
+ */
233
+ /**
234
+ * @typedef CartProduct
235
+ * @property {Object} [_custom_json]
236
+ * @property {ProductAction} [action]
237
+ * @property {BaseInfo} [brand]
238
+ * @property {CategoryInfo[]} [categories]
239
+ * @property {ProductImage[]} [images]
240
+ * @property {string} [item_code]
241
+ * @property {string} [name]
242
+ * @property {string} [slug] - Unique product url name generated via product
243
+ * name and other meta data
244
+ * @property {string[]} [tags]
245
+ * @property {Tags} [teaser_tag]
246
+ * @property {string} [type]
247
+ * @property {number} [uid]
248
+ */
249
+ /**
250
+ * @typedef CartProductIdentifer
251
+ * @property {string} [identifier] - Article idenfier generated by cart
252
+ */
253
+ /**
254
+ * @typedef CartProductInfo
255
+ * @property {ProductArticle} [article]
256
+ * @property {ProductAvailability} [availability]
257
+ * @property {Object} [bulk_offer]
258
+ * @property {CouponDetails} [coupon]
259
+ * @property {string} [coupon_message]
260
+ * @property {Object} [custom_order]
261
+ * @property {ShipmentPromise} [delivery_promise]
262
+ * @property {string} [discount]
263
+ * @property {CartProductIdentifer} identifiers
264
+ * @property {boolean} [is_set]
265
+ * @property {string} [key]
266
+ * @property {string} [message]
267
+ * @property {Object} [moq]
268
+ * @property {Object} [parent_item_identifiers]
269
+ * @property {ProductPriceInfo} [price]
270
+ * @property {ProductPriceInfo} [price_per_unit]
271
+ * @property {CartProduct} [product]
272
+ * @property {PromoMeta} [promo_meta]
273
+ * @property {AppliedPromotion[]} [promotions_applied]
274
+ * @property {number} [quantity]
275
+ */
276
+ /**
277
+ * @typedef CartShipmentsResponse
278
+ * @property {CartBreakup} [breakup_values]
279
+ * @property {boolean} [buy_now]
280
+ * @property {number} [cart_id]
281
+ * @property {string} [checkout_mode]
282
+ * @property {string} [comment]
283
+ * @property {string} [coupon_text]
284
+ * @property {CartCurrency} [currency]
285
+ * @property {string} [delivery_charge_info]
286
+ * @property {ShipmentPromise} [delivery_promise]
287
+ * @property {boolean} [error]
288
+ * @property {string} [gstin]
289
+ * @property {string} [id]
290
+ * @property {boolean} [is_valid]
291
+ * @property {string} [last_modified]
292
+ * @property {string} [message]
293
+ * @property {PaymentSelectionLock} [payment_selection_lock]
294
+ * @property {boolean} [restrict_checkout]
295
+ * @property {ShipmentResponse[]} [shipments]
296
+ * @property {string} [uid]
297
+ */
298
+ /**
299
+ * @typedef CategoryInfo
300
+ * @property {string} [name]
301
+ * @property {number} [uid] - Product Category Id
302
+ */
303
+ /**
304
+ * @typedef CheckCart
305
+ * @property {CartBreakup} [breakup_values]
306
+ * @property {boolean} [buy_now]
307
+ * @property {number} [cart_id]
308
+ * @property {string} [checkout_mode]
309
+ * @property {boolean} [cod_available]
310
+ * @property {number} [cod_charges]
311
+ * @property {string} [cod_message]
312
+ * @property {string} [comment]
313
+ * @property {string} [coupon_text]
314
+ * @property {CartCurrency} [currency]
315
+ * @property {string} [delivery_charge_info]
316
+ * @property {number} [delivery_charge_order_value]
317
+ * @property {number} [delivery_charges]
318
+ * @property {ShipmentPromise} [delivery_promise]
319
+ * @property {string} [error_message]
320
+ * @property {string} [gstin]
321
+ * @property {string} [id]
322
+ * @property {boolean} [is_valid]
323
+ * @property {CartProductInfo[]} [items]
324
+ * @property {string} [last_modified]
325
+ * @property {string} [message]
326
+ * @property {string} [order_id]
327
+ * @property {PaymentSelectionLock} [payment_selection_lock]
328
+ * @property {boolean} [restrict_checkout]
329
+ * @property {string} [store_code]
330
+ * @property {Object[]} [store_emps]
331
+ * @property {boolean} [success]
332
+ * @property {string} [uid]
333
+ * @property {string} [user_type]
334
+ */
335
+ /**
336
+ * @typedef Coupon
337
+ * @property {string} [coupon_code]
338
+ * @property {string} [coupon_type]
339
+ * @property {number} [coupon_value]
340
+ * @property {string} [description]
341
+ * @property {string} [expires_on]
342
+ * @property {boolean} [is_applicable]
343
+ * @property {boolean} [is_applied]
344
+ * @property {number} [max_discount_value]
345
+ * @property {string} [message]
346
+ * @property {number} [minimum_cart_value]
347
+ * @property {string} [sub_title]
348
+ * @property {string} [title]
349
+ */
350
+ /**
351
+ * @typedef CouponBreakup
352
+ * @property {string} [code]
353
+ * @property {string} [coupon_type]
354
+ * @property {number} [coupon_value]
355
+ * @property {string} [description]
356
+ * @property {boolean} [is_applied]
357
+ * @property {number} [max_discount_value]
358
+ * @property {string} [message]
359
+ * @property {number} [minimum_cart_value]
360
+ * @property {string} [sub_title]
361
+ * @property {string} [title]
362
+ * @property {string} [type]
363
+ * @property {string} [uid]
364
+ * @property {number} [value]
365
+ */
366
+ /**
367
+ * @typedef CouponDetails
368
+ * @property {string} [code]
369
+ * @property {number} [discount_single_quantity]
370
+ * @property {number} [discount_total_quantity]
371
+ */
372
+ /**
373
+ * @typedef CouponValidity
374
+ * @property {string} [code]
375
+ * @property {number} [discount]
376
+ * @property {string} [display_message_en]
377
+ * @property {boolean} [next_validation_required]
378
+ * @property {string} [title]
379
+ * @property {boolean} [valid]
380
+ */
381
+ /**
382
+ * @typedef CustomerDetails
383
+ * @property {string} [email]
384
+ * @property {string} mobile
385
+ * @property {string} [name]
386
+ */
387
+ /**
388
+ * @typedef DeleteAddressResponse
389
+ * @property {string} [id]
390
+ * @property {boolean} [is_deleted]
391
+ */
392
+ /**
393
+ * @typedef DiscountRulesApp
394
+ * @property {Object} [item_criteria] - Item criteria of promotion
395
+ * @property {string[]} [matched_buy_rules] - Matched buy rules for promotion
396
+ * @property {Object} [offer] - Offer for promotion
397
+ * @property {Object} [raw_offer] - Raw offer details for promotion
398
+ */
399
+ /**
400
+ * @typedef DisplayBreakup
401
+ * @property {string} [currency_code]
402
+ * @property {string} [currency_symbol]
403
+ * @property {string} [display]
404
+ * @property {string} [key]
405
+ * @property {string[]} [message]
406
+ * @property {number} [value]
407
+ */
408
+ /**
409
+ * @typedef Files
410
+ * @property {string} key
411
+ * @property {string[]} values
412
+ */
413
+ /**
414
+ * @typedef FreeGiftItem
415
+ * @property {string} [item_brand_name] - Item brand name
416
+ * @property {number} [item_id] - Item id
417
+ * @property {string[]} [item_images_url] - Item images URL
418
+ * @property {string} [item_name] - Item name
419
+ * @property {Object} [item_price_details] - Item price details
420
+ * @property {string} [item_slug] - Item slug
421
+ */
422
+ /**
423
+ * @typedef GeoLocation
424
+ * @property {number} [latitude]
425
+ * @property {number} [longitude]
426
+ */
427
+ /**
428
+ * @typedef GetAddressesResponse
429
+ * @property {Address[]} [address]
430
+ * @property {boolean} [pii_masking]
431
+ */
432
+ /**
433
+ * @typedef GetCouponResponse
434
+ * @property {Coupon[]} [available_coupon_list]
435
+ * @property {PageCoupon} [page]
436
+ */
437
+ /**
438
+ * @typedef GetShareCartLinkRequest
439
+ * @property {string} [id] - Cart uid for generating sharing
440
+ * @property {Object} [meta] - Staff, Ordering store or any other data. This
441
+ * data will be used to generate link as well as sent as shared details.
442
+ */
443
+ /**
444
+ * @typedef GetShareCartLinkResponse
445
+ * @property {string} [share_url] - Short shareable final url
446
+ * @property {string} [token] - Short url unique id
447
+ */
448
+ /**
449
+ * @typedef GiftDetail
450
+ * @property {string} [gift_message]
451
+ * @property {boolean} [is_gift_applied]
452
+ */
453
+ /**
454
+ * @typedef LoyaltyPoints
455
+ * @property {number} [applicable]
456
+ * @property {string} [description]
457
+ * @property {boolean} [is_applied]
458
+ * @property {number} [total]
459
+ */
460
+ /**
461
+ * @typedef OfferItem
462
+ * @property {boolean} [auto_applied] - Whether offer discount is auto applied in cart
463
+ * @property {boolean} [best] - Is true for best offer from all offers present
464
+ * for all sellers
465
+ * @property {number} [margin] - Percentage value of discount
466
+ * @property {OfferPrice} [price]
467
+ * @property {number} [quantity] - Quantity on which offer is applicable
468
+ * @property {number} [total] - Total price of offer quantity with discount
469
+ * @property {string} [type] - Offer type
470
+ */
471
+ /**
472
+ * @typedef OfferPrice
473
+ * @property {number} [bulk_effective] - Discounted per unit price for current
474
+ * offer object
475
+ * @property {string} [currency_code] - Currency code for all amounts
476
+ * @property {string} [currency_symbol] - Currency symbol for currency
477
+ * @property {number} [effective] - Current per unit price of product after
478
+ * existing deductions
479
+ * @property {number} [marked] - Original price of product
480
+ */
481
+ /**
482
+ * @typedef OfferSeller
483
+ * @property {string} [name]
484
+ * @property {number} [uid] - Seller id
485
+ */
486
+ /**
487
+ * @typedef Ownership
488
+ * @property {string} [payable_by] - Promo amount bearable party
489
+ * @property {string} [payable_category] - Promo amount payable category
490
+ */
491
+ /**
492
+ * @typedef PageCoupon
493
+ * @property {number} [current]
494
+ * @property {boolean} [has_next]
495
+ * @property {boolean} [has_previous]
496
+ * @property {number} [total]
497
+ * @property {number} [total_item_count]
498
+ */
499
+ /**
500
+ * @typedef PaymentCouponValidate
501
+ * @property {CouponValidity} [coupon_validity]
502
+ * @property {string} [message]
503
+ * @property {boolean} success
504
+ */
505
+ /**
506
+ * @typedef PaymentSelectionLock
507
+ * @property {string} [default_options]
508
+ * @property {boolean} [enabled]
509
+ * @property {string} [payment_identifier]
510
+ */
511
+ /**
512
+ * @typedef PickupStoreDetail
513
+ * @property {string} [address]
514
+ * @property {string} [address_type]
515
+ * @property {string} [area]
516
+ * @property {string} [area_code]
517
+ * @property {string} [area_code_slug]
518
+ * @property {string} [city]
519
+ * @property {string} [country]
520
+ * @property {string} [email]
521
+ * @property {number} [id]
522
+ * @property {string} [landmark]
523
+ * @property {string} [name]
524
+ * @property {string} [phone]
525
+ * @property {number} [pincode]
526
+ * @property {string} [state]
527
+ * @property {string} [store_code]
528
+ * @property {number} [uid]
529
+ */
530
+ /**
531
+ * @typedef ProductAction
532
+ * @property {ActionQuery} [query]
533
+ * @property {string} [type]
534
+ * @property {string} [url]
535
+ */
536
+ /**
537
+ * @typedef ProductArticle
538
+ * @property {Object} [_custom_json]
539
+ * @property {Object} [cart_item_meta]
540
+ * @property {Object} [extra_meta]
541
+ * @property {Object} [gift_card]
542
+ * @property {Object} [identifier]
543
+ * @property {boolean} [is_gift_visible]
544
+ * @property {Object} [meta]
545
+ * @property {number} [mto_quantity]
546
+ * @property {Object} [parent_item_identifiers]
547
+ * @property {ArticlePriceInfo} [price]
548
+ * @property {string[]} [product_group_tags]
549
+ * @property {number} [quantity]
550
+ * @property {BaseInfo} [seller]
551
+ * @property {string} [seller_identifier]
552
+ * @property {string} [size]
553
+ * @property {StoreInfo} [store]
554
+ * @property {string} [type]
555
+ * @property {string} [uid]
556
+ */
557
+ /**
558
+ * @typedef ProductAvailability
559
+ * @property {ProductAvailabilitySize[]} [available_sizes]
560
+ * @property {boolean} [deliverable]
561
+ * @property {boolean} [is_valid]
562
+ * @property {number} [other_store_quantity]
563
+ * @property {boolean} [out_of_stock]
564
+ * @property {string[]} [sizes]
565
+ */
566
+ /**
567
+ * @typedef ProductAvailabilitySize
568
+ * @property {string} [display]
569
+ * @property {boolean} [is_available]
570
+ * @property {string} [value]
571
+ */
572
+ /**
573
+ * @typedef ProductImage
574
+ * @property {string} [aspect_ratio]
575
+ * @property {string} [secure_url]
576
+ * @property {string} [url]
577
+ */
578
+ /**
579
+ * @typedef ProductPrice
580
+ * @property {number} [add_on]
581
+ * @property {string} [currency_code]
582
+ * @property {string} [currency_symbol]
583
+ * @property {number} [effective]
584
+ * @property {number} [marked]
585
+ * @property {number} [selling]
586
+ */
587
+ /**
588
+ * @typedef ProductPriceInfo
589
+ * @property {ProductPrice} [base]
590
+ * @property {ProductPrice} [converted]
591
+ */
592
+ /**
593
+ * @typedef PromiseFormatted
594
+ * @property {string} [max]
595
+ * @property {string} [min]
596
+ */
597
+ /**
598
+ * @typedef PromiseTimestamp
599
+ * @property {number} [max]
600
+ * @property {number} [min]
601
+ */
602
+ /**
603
+ * @typedef PromoMeta
604
+ * @property {string} [message]
605
+ */
606
+ /**
607
+ * @typedef RawBreakup
608
+ * @property {number} [cod_charge]
609
+ * @property {number} [convenience_fee]
610
+ * @property {number} [coupon]
611
+ * @property {number} [delivery_charge]
612
+ * @property {number} [discount]
613
+ * @property {number} [fynd_cash]
614
+ * @property {number} [gift_card]
615
+ * @property {number} [gst_charges]
616
+ * @property {number} [mrp_total]
617
+ * @property {number} [subtotal]
618
+ * @property {number} [total]
619
+ * @property {number} [vog]
620
+ * @property {number} [you_saved]
621
+ */
622
+ /**
623
+ * @typedef RewardPointRequest
624
+ * @property {boolean} points
625
+ */
626
+ /**
627
+ * @typedef SaveAddressResponse
628
+ * @property {string} [id]
629
+ * @property {boolean} [is_default_address]
630
+ * @property {boolean} [success]
631
+ */
632
+ /**
633
+ * @typedef SelectCartAddressRequest
634
+ * @property {string} [billing_address_id]
635
+ * @property {string} [cart_id]
636
+ * @property {string} [id]
637
+ */
638
+ /**
639
+ * @typedef SharedCart
640
+ * @property {CartBreakup} [breakup_values]
641
+ * @property {boolean} [buy_now]
642
+ * @property {number} [cart_id]
643
+ * @property {string} [checkout_mode]
644
+ * @property {string} [comment]
645
+ * @property {string} [coupon_text]
646
+ * @property {CartCurrency} [currency]
647
+ * @property {string} [delivery_charge_info]
648
+ * @property {ShipmentPromise} [delivery_promise]
649
+ * @property {string} [gstin]
650
+ * @property {string} [id]
651
+ * @property {boolean} [is_valid]
652
+ * @property {CartProductInfo[]} [items]
653
+ * @property {string} [last_modified]
654
+ * @property {string} [message]
655
+ * @property {PaymentSelectionLock} [payment_selection_lock]
656
+ * @property {boolean} [restrict_checkout]
657
+ * @property {SharedCartDetails} [shared_cart_details]
658
+ * @property {string} [uid]
659
+ */
660
+ /**
661
+ * @typedef SharedCartDetails
662
+ * @property {string} [created_on]
663
+ * @property {Object} [meta] - Meta data sent while generating share cart link
664
+ * @property {Object} [source] - Share link device and other source information
665
+ * @property {string} [token] - Short link id
666
+ * @property {Object} [user] - User details of who generated share link
667
+ */
668
+ /**
669
+ * @typedef SharedCartResponse
670
+ * @property {SharedCart} [cart]
671
+ * @property {string} [error]
672
+ */
673
+ /**
674
+ * @typedef ShipmentPromise
675
+ * @property {PromiseFormatted} [formatted]
676
+ * @property {PromiseTimestamp} [timestamp]
677
+ */
678
+ /**
679
+ * @typedef ShipmentResponse
680
+ * @property {string} [box_type]
681
+ * @property {string} [dp_id]
682
+ * @property {Object} [dp_options]
683
+ * @property {number} [fulfillment_id]
684
+ * @property {string} [fulfillment_type]
685
+ * @property {CartProductInfo[]} [items]
686
+ * @property {string} [order_type]
687
+ * @property {ShipmentPromise} [promise]
688
+ * @property {string} [shipment_type]
689
+ * @property {number} [shipments]
690
+ */
691
+ /**
692
+ * @typedef StaffCheckout
693
+ * @property {string} _id
694
+ * @property {string} [employee_code]
695
+ * @property {string} first_name
696
+ * @property {string} last_name
697
+ * @property {string} user
698
+ */
699
+ /**
700
+ * @typedef StoreDetailsResponse
701
+ * @property {PickupStoreDetail[]} [items]
702
+ */
703
+ /**
704
+ * @typedef StoreInfo
705
+ * @property {string} [name]
706
+ * @property {string} [store_code]
707
+ * @property {number} [uid]
708
+ */
709
+ /**
710
+ * @typedef Tags
711
+ * @property {Object} [tags]
712
+ */
713
+ /**
714
+ * @typedef UpdateAddressResponse
715
+ * @property {string} [id]
716
+ * @property {boolean} [is_default_address]
717
+ * @property {boolean} [is_updated]
718
+ * @property {boolean} [success]
719
+ */
720
+ /**
721
+ * @typedef UpdateCartDetailResponse
722
+ * @property {CartDetailResponse} [cart]
723
+ * @property {string} [message]
724
+ * @property {boolean} [success] - True if all items are added successfully.
725
+ * False if partially added or not added.
726
+ */
727
+ /**
728
+ * @typedef UpdateCartPaymentRequest
729
+ * @property {string} [address_id]
730
+ * @property {string} [aggregator_name]
731
+ * @property {string} [id]
732
+ * @property {string} [merchant_code]
733
+ * @property {string} [payment_identifier]
734
+ * @property {string} [payment_mode]
735
+ */
736
+ /**
737
+ * @typedef UpdateCartRequest
738
+ * @property {UpdateProductCart[]} [items]
739
+ * @property {string} operation
740
+ */
741
+ /**
742
+ * @typedef UpdateCartShipmentItem
743
+ * @property {string} article_uid - Article mongo id
744
+ * @property {number} [quantity] - Quantity of product in shipment
745
+ * @property {string} shipment_type - Shipment delivery type
746
+ */
747
+ /**
748
+ * @typedef UpdateCartShipmentRequest
749
+ * @property {UpdateCartShipmentItem[]} shipments
750
+ */
751
+ /**
752
+ * @typedef UpdateProductCart
753
+ * @property {Object} [_custom_json]
754
+ * @property {string} [article_id]
755
+ * @property {Object} [extra_meta]
756
+ * @property {CartProductIdentifer} identifiers
757
+ * @property {number} [item_id]
758
+ * @property {number} [item_index]
759
+ * @property {string} [item_size]
760
+ * @property {Object} [meta]
761
+ * @property {Object} [parent_item_identifiers]
762
+ * @property {number} [quantity]
763
+ */
764
+ declare class PosCartApplicationModel {
90
765
  }
766
+ declare namespace PosCartApplicationModel {
767
+ export { ActionQuery, AddCartDetailResponse, AddCartRequest, AddProductCart, Address, AppliedFreeArticles, AppliedPromotion, ApplyCouponRequest, ArticleGiftDetail, ArticlePriceInfo, BaseInfo, BasePrice, BulkPriceOffer, BulkPriceResponse, BuyRules, CartBreakup, CartCheckoutCustomMeta, CartCheckoutResponse, CartCurrency, CartDeliveryModesResponse, CartDetailResponse, CartItemCountResponse, CartMetaMissingResponse, CartMetaRequest, CartMetaResponse, CartPosCheckoutDetailRequest, CartProduct, CartProductIdentifer, CartProductInfo, CartShipmentsResponse, CategoryInfo, CheckCart, Coupon, CouponBreakup, CouponDetails, CouponValidity, CustomerDetails, DeleteAddressResponse, DiscountRulesApp, DisplayBreakup, Files, FreeGiftItem, GeoLocation, GetAddressesResponse, GetCouponResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, GiftDetail, LoyaltyPoints, OfferItem, OfferPrice, OfferSeller, Ownership, PageCoupon, PaymentCouponValidate, PaymentSelectionLock, PickupStoreDetail, ProductAction, ProductArticle, ProductAvailability, ProductAvailabilitySize, ProductImage, ProductPrice, ProductPriceInfo, PromiseFormatted, PromiseTimestamp, PromoMeta, RawBreakup, RewardPointRequest, SaveAddressResponse, SelectCartAddressRequest, SharedCart, SharedCartDetails, SharedCartResponse, ShipmentPromise, ShipmentResponse, StaffCheckout, StoreDetailsResponse, StoreInfo, Tags, UpdateAddressResponse, UpdateCartDetailResponse, UpdateCartPaymentRequest, UpdateCartRequest, UpdateCartShipmentItem, UpdateCartShipmentRequest, UpdateProductCart };
768
+ }
769
+ /** @returns {ActionQuery} */
770
+ declare function ActionQuery(): ActionQuery;
771
+ type ActionQuery = {
772
+ /**
773
+ * - Contains list of product slug
774
+ */
775
+ product_slug?: string[];
776
+ };
777
+ /** @returns {AddCartDetailResponse} */
778
+ declare function AddCartDetailResponse(): AddCartDetailResponse;
779
+ type AddCartDetailResponse = {
780
+ cart?: CartDetailResponse;
781
+ message?: string;
782
+ /**
783
+ * - When adding multiple items check if all
784
+ * added. True if only few are added.
785
+ */
786
+ partial?: boolean;
787
+ /**
788
+ * - True if all items are added successfully.
789
+ * False if partially added or not added.
790
+ */
791
+ success?: boolean;
792
+ };
793
+ /** @returns {AddCartRequest} */
794
+ declare function AddCartRequest(): AddCartRequest;
795
+ type AddCartRequest = {
796
+ items?: AddProductCart[];
797
+ new_cart?: boolean;
798
+ };
799
+ /** @returns {AddProductCart} */
800
+ declare function AddProductCart(): AddProductCart;
801
+ type AddProductCart = {
802
+ _custom_json?: any;
803
+ article_assignment?: any;
804
+ article_id?: string;
805
+ display?: string;
806
+ extra_meta?: any;
807
+ item_id?: number;
808
+ item_size?: string;
809
+ meta?: any;
810
+ parent_item_identifiers?: any[];
811
+ pos?: boolean;
812
+ product_group_tags?: string[];
813
+ quantity?: number;
814
+ seller_id?: number;
815
+ store_id?: number;
816
+ };
817
+ /** @returns {Address} */
818
+ declare function Address(): Address;
819
+ type Address = {
820
+ _custom_json?: any;
821
+ address?: string;
822
+ address_type?: string;
823
+ area?: string;
824
+ area_code?: string;
825
+ area_code_slug?: string;
826
+ checkout_mode?: string;
827
+ city?: string;
828
+ country?: string;
829
+ country_code?: string;
830
+ country_iso_code?: string;
831
+ country_phone_code?: string;
832
+ created_by_user_id?: string;
833
+ email?: string;
834
+ geo_location?: GeoLocation;
835
+ google_map_point?: any;
836
+ id?: string;
837
+ is_active?: boolean;
838
+ is_default_address?: boolean;
839
+ landmark?: string;
840
+ meta?: any;
841
+ name?: string;
842
+ phone?: string;
843
+ state?: string;
844
+ tags?: string[];
845
+ user_id?: string;
846
+ };
847
+ /** @returns {AppliedFreeArticles} */
848
+ declare function AppliedFreeArticles(): AppliedFreeArticles;
849
+ type AppliedFreeArticles = {
850
+ /**
851
+ * - Free article id
852
+ */
853
+ article_id?: string;
854
+ /**
855
+ * - Free gift items details
856
+ */
857
+ free_gift_item_details?: FreeGiftItem;
858
+ /**
859
+ * - Parent item identifier for free article
860
+ */
861
+ parent_item_identifier?: string;
862
+ /**
863
+ * - Free article quantity
864
+ */
865
+ quantity?: number;
866
+ };
867
+ /** @returns {AppliedPromotion} */
868
+ declare function AppliedPromotion(): AppliedPromotion;
869
+ type AppliedPromotion = {
870
+ /**
871
+ * - Per unit discount amount applied with current promotion
872
+ */
873
+ amount?: number;
874
+ /**
875
+ * - Applied free
876
+ * article for free gift item promotions
877
+ */
878
+ applied_free_articles?: AppliedFreeArticles[];
879
+ /**
880
+ * - Quantity of article on which
881
+ * promotion is applicable
882
+ */
883
+ article_quantity?: number;
884
+ /**
885
+ * - Buy rules for promotions
886
+ */
887
+ buy_rules?: BuyRules[];
888
+ /**
889
+ * - Discount rules for promotions
890
+ */
891
+ discount_rules?: DiscountRulesApp[];
892
+ /**
893
+ * - If applied promotion is applied on
894
+ * product MRP or ESP
895
+ */
896
+ mrp_promotion?: boolean;
897
+ /**
898
+ * - Offer text of current promotion
899
+ */
900
+ offer_text?: string;
901
+ /**
902
+ * - Ownership of promotion
903
+ */
904
+ ownership?: Ownership;
905
+ /**
906
+ * - Promotion id
907
+ */
908
+ promo_id?: string;
909
+ /**
910
+ * - Promotion group for the promotion
911
+ */
912
+ promotion_group?: string;
913
+ /**
914
+ * - Promotion name of current promotion
915
+ */
916
+ promotion_name?: string;
917
+ /**
918
+ * - Promotion type of current promotion
919
+ */
920
+ promotion_type?: string;
921
+ };
922
+ /** @returns {ApplyCouponRequest} */
923
+ declare function ApplyCouponRequest(): ApplyCouponRequest;
924
+ type ApplyCouponRequest = {
925
+ /**
926
+ * - Coupon code to be applied
927
+ */
928
+ coupon_code: string;
929
+ };
930
+ /** @returns {ArticleGiftDetail} */
931
+ declare function ArticleGiftDetail(): ArticleGiftDetail;
932
+ type ArticleGiftDetail = {
933
+ article_id?: GiftDetail;
934
+ };
935
+ /** @returns {ArticlePriceInfo} */
936
+ declare function ArticlePriceInfo(): ArticlePriceInfo;
937
+ type ArticlePriceInfo = {
938
+ base?: BasePrice;
939
+ converted?: BasePrice;
940
+ };
941
+ /** @returns {BaseInfo} */
942
+ declare function BaseInfo(): BaseInfo;
943
+ type BaseInfo = {
944
+ name?: string;
945
+ uid?: number;
946
+ };
947
+ /** @returns {BasePrice} */
948
+ declare function BasePrice(): BasePrice;
949
+ type BasePrice = {
950
+ currency_code?: string;
951
+ currency_symbol?: string;
952
+ effective?: number;
953
+ marked?: number;
954
+ };
955
+ /** @returns {BulkPriceOffer} */
956
+ declare function BulkPriceOffer(): BulkPriceOffer;
957
+ type BulkPriceOffer = {
958
+ offers?: OfferItem[];
959
+ seller?: OfferSeller;
960
+ };
961
+ /** @returns {BulkPriceResponse} */
962
+ declare function BulkPriceResponse(): BulkPriceResponse;
963
+ type BulkPriceResponse = {
964
+ /**
965
+ * - Consist of offers from multiple seller
966
+ */
967
+ data?: BulkPriceOffer[];
968
+ };
969
+ /** @returns {BuyRules} */
970
+ declare function BuyRules(): BuyRules;
971
+ type BuyRules = {
972
+ /**
973
+ * - Cart conditions details for promotion
974
+ */
975
+ cart_conditions?: any;
976
+ /**
977
+ * - Item criteria of promotion
978
+ */
979
+ item_criteria?: any;
980
+ };
981
+ /** @returns {CartBreakup} */
982
+ declare function CartBreakup(): CartBreakup;
983
+ type CartBreakup = {
984
+ coupon?: CouponBreakup;
985
+ display?: DisplayBreakup[];
986
+ loyalty_points?: LoyaltyPoints;
987
+ raw?: RawBreakup;
988
+ };
989
+ /** @returns {CartCheckoutCustomMeta} */
990
+ declare function CartCheckoutCustomMeta(): CartCheckoutCustomMeta;
991
+ type CartCheckoutCustomMeta = {
992
+ key: string;
993
+ value: string;
994
+ };
995
+ /** @returns {CartCheckoutResponse} */
996
+ declare function CartCheckoutResponse(): CartCheckoutResponse;
997
+ type CartCheckoutResponse = {
998
+ app_intercept_url?: string;
999
+ callback_url?: string;
1000
+ cart?: CheckCart;
1001
+ data?: any;
1002
+ message?: string;
1003
+ order_id?: string;
1004
+ payment_confirm_url?: string;
1005
+ success?: boolean;
1006
+ };
1007
+ /** @returns {CartCurrency} */
1008
+ declare function CartCurrency(): CartCurrency;
1009
+ type CartCurrency = {
1010
+ /**
1011
+ * - Currency code defined by ISO 4217:2015
1012
+ */
1013
+ code?: string;
1014
+ symbol?: string;
1015
+ };
1016
+ /** @returns {CartDeliveryModesResponse} */
1017
+ declare function CartDeliveryModesResponse(): CartDeliveryModesResponse;
1018
+ type CartDeliveryModesResponse = {
1019
+ /**
1020
+ * - Available delivery modes
1021
+ */
1022
+ available_modes?: string[];
1023
+ /**
1024
+ * - Store pick up available store uids
1025
+ */
1026
+ pickup_stores?: number[];
1027
+ };
1028
+ /** @returns {CartDetailResponse} */
1029
+ declare function CartDetailResponse(): CartDetailResponse;
1030
+ type CartDetailResponse = {
1031
+ applied_promo_details?: AppliedPromotion[];
1032
+ breakup_values?: CartBreakup;
1033
+ buy_now?: boolean;
1034
+ checkout_mode?: string;
1035
+ comment?: string;
1036
+ coupon_text?: string;
1037
+ currency?: CartCurrency;
1038
+ delivery_charge_info?: string;
1039
+ delivery_promise?: ShipmentPromise;
1040
+ gstin?: string;
1041
+ id?: string;
1042
+ is_valid?: boolean;
1043
+ items?: CartProductInfo[];
1044
+ last_modified?: string;
1045
+ message?: string;
1046
+ pan_config?: any;
1047
+ pan_no?: string;
1048
+ payment_selection_lock?: PaymentSelectionLock;
1049
+ restrict_checkout?: boolean;
1050
+ };
1051
+ /** @returns {CartItemCountResponse} */
1052
+ declare function CartItemCountResponse(): CartItemCountResponse;
1053
+ type CartItemCountResponse = {
1054
+ /**
1055
+ * - Item count present in cart
1056
+ */
1057
+ user_cart_items_count?: number;
1058
+ };
1059
+ /** @returns {CartMetaMissingResponse} */
1060
+ declare function CartMetaMissingResponse(): CartMetaMissingResponse;
1061
+ type CartMetaMissingResponse = {
1062
+ errors?: string[];
1063
+ };
1064
+ /** @returns {CartMetaRequest} */
1065
+ declare function CartMetaRequest(): CartMetaRequest;
1066
+ type CartMetaRequest = {
1067
+ checkout_mode?: string;
1068
+ comment?: string;
1069
+ delivery_slots?: any;
1070
+ gift_details?: ArticleGiftDetail;
1071
+ gstin?: string;
1072
+ /**
1073
+ * - Customer contact details for
1074
+ * customer pickup at store
1075
+ */
1076
+ pick_up_customer_details?: any;
1077
+ };
1078
+ /** @returns {CartMetaResponse} */
1079
+ declare function CartMetaResponse(): CartMetaResponse;
1080
+ type CartMetaResponse = {
1081
+ is_valid?: boolean;
1082
+ message?: string;
1083
+ };
1084
+ /** @returns {CartPosCheckoutDetailRequest} */
1085
+ declare function CartPosCheckoutDetailRequest(): CartPosCheckoutDetailRequest;
1086
+ type CartPosCheckoutDetailRequest = {
1087
+ address_id?: string;
1088
+ aggregator?: string;
1089
+ billing_address?: any;
1090
+ billing_address_id?: string;
1091
+ callback_url?: string;
1092
+ custom_meta?: CartCheckoutCustomMeta[];
1093
+ /**
1094
+ * - Customer details
1095
+ */
1096
+ customer_details?: any;
1097
+ delivery_address?: any;
1098
+ extra_meta?: any;
1099
+ /**
1100
+ * - List of file url
1101
+ */
1102
+ files?: Files[];
1103
+ id?: string;
1104
+ merchant_code?: string;
1105
+ meta?: any;
1106
+ order_type: string;
1107
+ ordering_store?: number;
1108
+ payment_auto_confirm?: boolean;
1109
+ payment_identifier?: string;
1110
+ payment_mode: string;
1111
+ payment_params?: any;
1112
+ pick_at_store_uid?: number;
1113
+ pos?: boolean;
1114
+ staff?: StaffCheckout;
1115
+ };
1116
+ /** @returns {CartProduct} */
1117
+ declare function CartProduct(): CartProduct;
1118
+ type CartProduct = {
1119
+ _custom_json?: any;
1120
+ action?: ProductAction;
1121
+ brand?: BaseInfo;
1122
+ categories?: CategoryInfo[];
1123
+ images?: ProductImage[];
1124
+ item_code?: string;
1125
+ name?: string;
1126
+ /**
1127
+ * - Unique product url name generated via product
1128
+ * name and other meta data
1129
+ */
1130
+ slug?: string;
1131
+ tags?: string[];
1132
+ teaser_tag?: Tags;
1133
+ type?: string;
1134
+ uid?: number;
1135
+ };
1136
+ /** @returns {CartProductIdentifer} */
1137
+ declare function CartProductIdentifer(): CartProductIdentifer;
1138
+ type CartProductIdentifer = {
1139
+ /**
1140
+ * - Article idenfier generated by cart
1141
+ */
1142
+ identifier?: string;
1143
+ };
1144
+ /** @returns {CartProductInfo} */
1145
+ declare function CartProductInfo(): CartProductInfo;
1146
+ type CartProductInfo = {
1147
+ article?: ProductArticle;
1148
+ availability?: ProductAvailability;
1149
+ bulk_offer?: any;
1150
+ coupon?: CouponDetails;
1151
+ coupon_message?: string;
1152
+ custom_order?: any;
1153
+ delivery_promise?: ShipmentPromise;
1154
+ discount?: string;
1155
+ identifiers: CartProductIdentifer;
1156
+ is_set?: boolean;
1157
+ key?: string;
1158
+ message?: string;
1159
+ moq?: any;
1160
+ parent_item_identifiers?: any;
1161
+ price?: ProductPriceInfo;
1162
+ price_per_unit?: ProductPriceInfo;
1163
+ product?: CartProduct;
1164
+ promo_meta?: PromoMeta;
1165
+ promotions_applied?: AppliedPromotion[];
1166
+ quantity?: number;
1167
+ };
1168
+ /** @returns {CartShipmentsResponse} */
1169
+ declare function CartShipmentsResponse(): CartShipmentsResponse;
1170
+ type CartShipmentsResponse = {
1171
+ breakup_values?: CartBreakup;
1172
+ buy_now?: boolean;
1173
+ cart_id?: number;
1174
+ checkout_mode?: string;
1175
+ comment?: string;
1176
+ coupon_text?: string;
1177
+ currency?: CartCurrency;
1178
+ delivery_charge_info?: string;
1179
+ delivery_promise?: ShipmentPromise;
1180
+ error?: boolean;
1181
+ gstin?: string;
1182
+ id?: string;
1183
+ is_valid?: boolean;
1184
+ last_modified?: string;
1185
+ message?: string;
1186
+ payment_selection_lock?: PaymentSelectionLock;
1187
+ restrict_checkout?: boolean;
1188
+ shipments?: ShipmentResponse[];
1189
+ uid?: string;
1190
+ };
1191
+ /** @returns {CategoryInfo} */
1192
+ declare function CategoryInfo(): CategoryInfo;
1193
+ type CategoryInfo = {
1194
+ name?: string;
1195
+ /**
1196
+ * - Product Category Id
1197
+ */
1198
+ uid?: number;
1199
+ };
1200
+ /** @returns {CheckCart} */
1201
+ declare function CheckCart(): CheckCart;
1202
+ type CheckCart = {
1203
+ breakup_values?: CartBreakup;
1204
+ buy_now?: boolean;
1205
+ cart_id?: number;
1206
+ checkout_mode?: string;
1207
+ cod_available?: boolean;
1208
+ cod_charges?: number;
1209
+ cod_message?: string;
1210
+ comment?: string;
1211
+ coupon_text?: string;
1212
+ currency?: CartCurrency;
1213
+ delivery_charge_info?: string;
1214
+ delivery_charge_order_value?: number;
1215
+ delivery_charges?: number;
1216
+ delivery_promise?: ShipmentPromise;
1217
+ error_message?: string;
1218
+ gstin?: string;
1219
+ id?: string;
1220
+ is_valid?: boolean;
1221
+ items?: CartProductInfo[];
1222
+ last_modified?: string;
1223
+ message?: string;
1224
+ order_id?: string;
1225
+ payment_selection_lock?: PaymentSelectionLock;
1226
+ restrict_checkout?: boolean;
1227
+ store_code?: string;
1228
+ store_emps?: any[];
1229
+ success?: boolean;
1230
+ uid?: string;
1231
+ user_type?: string;
1232
+ };
1233
+ /** @returns {Coupon} */
1234
+ declare function Coupon(): Coupon;
1235
+ type Coupon = {
1236
+ coupon_code?: string;
1237
+ coupon_type?: string;
1238
+ coupon_value?: number;
1239
+ description?: string;
1240
+ expires_on?: string;
1241
+ is_applicable?: boolean;
1242
+ is_applied?: boolean;
1243
+ max_discount_value?: number;
1244
+ message?: string;
1245
+ minimum_cart_value?: number;
1246
+ sub_title?: string;
1247
+ title?: string;
1248
+ };
1249
+ /** @returns {CouponBreakup} */
1250
+ declare function CouponBreakup(): CouponBreakup;
1251
+ type CouponBreakup = {
1252
+ code?: string;
1253
+ coupon_type?: string;
1254
+ coupon_value?: number;
1255
+ description?: string;
1256
+ is_applied?: boolean;
1257
+ max_discount_value?: number;
1258
+ message?: string;
1259
+ minimum_cart_value?: number;
1260
+ sub_title?: string;
1261
+ title?: string;
1262
+ type?: string;
1263
+ uid?: string;
1264
+ value?: number;
1265
+ };
1266
+ /** @returns {CouponDetails} */
1267
+ declare function CouponDetails(): CouponDetails;
1268
+ type CouponDetails = {
1269
+ code?: string;
1270
+ discount_single_quantity?: number;
1271
+ discount_total_quantity?: number;
1272
+ };
1273
+ /** @returns {CouponValidity} */
1274
+ declare function CouponValidity(): CouponValidity;
1275
+ type CouponValidity = {
1276
+ code?: string;
1277
+ discount?: number;
1278
+ display_message_en?: string;
1279
+ next_validation_required?: boolean;
1280
+ title?: string;
1281
+ valid?: boolean;
1282
+ };
1283
+ /** @returns {CustomerDetails} */
1284
+ declare function CustomerDetails(): CustomerDetails;
1285
+ type CustomerDetails = {
1286
+ email?: string;
1287
+ mobile: string;
1288
+ name?: string;
1289
+ };
1290
+ /** @returns {DeleteAddressResponse} */
1291
+ declare function DeleteAddressResponse(): DeleteAddressResponse;
1292
+ type DeleteAddressResponse = {
1293
+ id?: string;
1294
+ is_deleted?: boolean;
1295
+ };
1296
+ /** @returns {DiscountRulesApp} */
1297
+ declare function DiscountRulesApp(): DiscountRulesApp;
1298
+ type DiscountRulesApp = {
1299
+ /**
1300
+ * - Item criteria of promotion
1301
+ */
1302
+ item_criteria?: any;
1303
+ /**
1304
+ * - Matched buy rules for promotion
1305
+ */
1306
+ matched_buy_rules?: string[];
1307
+ /**
1308
+ * - Offer for promotion
1309
+ */
1310
+ offer?: any;
1311
+ /**
1312
+ * - Raw offer details for promotion
1313
+ */
1314
+ raw_offer?: any;
1315
+ };
1316
+ /** @returns {DisplayBreakup} */
1317
+ declare function DisplayBreakup(): DisplayBreakup;
1318
+ type DisplayBreakup = {
1319
+ currency_code?: string;
1320
+ currency_symbol?: string;
1321
+ display?: string;
1322
+ key?: string;
1323
+ message?: string[];
1324
+ value?: number;
1325
+ };
1326
+ /** @returns {Files} */
1327
+ declare function Files(): Files;
1328
+ type Files = {
1329
+ key: string;
1330
+ values: string[];
1331
+ };
1332
+ /** @returns {FreeGiftItem} */
1333
+ declare function FreeGiftItem(): FreeGiftItem;
1334
+ type FreeGiftItem = {
1335
+ /**
1336
+ * - Item brand name
1337
+ */
1338
+ item_brand_name?: string;
1339
+ /**
1340
+ * - Item id
1341
+ */
1342
+ item_id?: number;
1343
+ /**
1344
+ * - Item images URL
1345
+ */
1346
+ item_images_url?: string[];
1347
+ /**
1348
+ * - Item name
1349
+ */
1350
+ item_name?: string;
1351
+ /**
1352
+ * - Item price details
1353
+ */
1354
+ item_price_details?: any;
1355
+ /**
1356
+ * - Item slug
1357
+ */
1358
+ item_slug?: string;
1359
+ };
1360
+ /** @returns {GeoLocation} */
1361
+ declare function GeoLocation(): GeoLocation;
1362
+ type GeoLocation = {
1363
+ latitude?: number;
1364
+ longitude?: number;
1365
+ };
1366
+ /** @returns {GetAddressesResponse} */
1367
+ declare function GetAddressesResponse(): GetAddressesResponse;
1368
+ type GetAddressesResponse = {
1369
+ address?: Address[];
1370
+ pii_masking?: boolean;
1371
+ };
1372
+ /** @returns {GetCouponResponse} */
1373
+ declare function GetCouponResponse(): GetCouponResponse;
1374
+ type GetCouponResponse = {
1375
+ available_coupon_list?: Coupon[];
1376
+ page?: PageCoupon;
1377
+ };
1378
+ /** @returns {GetShareCartLinkRequest} */
1379
+ declare function GetShareCartLinkRequest(): GetShareCartLinkRequest;
1380
+ type GetShareCartLinkRequest = {
1381
+ /**
1382
+ * - Cart uid for generating sharing
1383
+ */
1384
+ id?: string;
1385
+ /**
1386
+ * - Staff, Ordering store or any other data. This
1387
+ * data will be used to generate link as well as sent as shared details.
1388
+ */
1389
+ meta?: any;
1390
+ };
1391
+ /** @returns {GetShareCartLinkResponse} */
1392
+ declare function GetShareCartLinkResponse(): GetShareCartLinkResponse;
1393
+ type GetShareCartLinkResponse = {
1394
+ /**
1395
+ * - Short shareable final url
1396
+ */
1397
+ share_url?: string;
1398
+ /**
1399
+ * - Short url unique id
1400
+ */
1401
+ token?: string;
1402
+ };
1403
+ /** @returns {GiftDetail} */
1404
+ declare function GiftDetail(): GiftDetail;
1405
+ type GiftDetail = {
1406
+ gift_message?: string;
1407
+ is_gift_applied?: boolean;
1408
+ };
1409
+ /** @returns {LoyaltyPoints} */
1410
+ declare function LoyaltyPoints(): LoyaltyPoints;
1411
+ type LoyaltyPoints = {
1412
+ applicable?: number;
1413
+ description?: string;
1414
+ is_applied?: boolean;
1415
+ total?: number;
1416
+ };
1417
+ /** @returns {OfferItem} */
1418
+ declare function OfferItem(): OfferItem;
1419
+ type OfferItem = {
1420
+ /**
1421
+ * - Whether offer discount is auto applied in cart
1422
+ */
1423
+ auto_applied?: boolean;
1424
+ /**
1425
+ * - Is true for best offer from all offers present
1426
+ * for all sellers
1427
+ */
1428
+ best?: boolean;
1429
+ /**
1430
+ * - Percentage value of discount
1431
+ */
1432
+ margin?: number;
1433
+ price?: OfferPrice;
1434
+ /**
1435
+ * - Quantity on which offer is applicable
1436
+ */
1437
+ quantity?: number;
1438
+ /**
1439
+ * - Total price of offer quantity with discount
1440
+ */
1441
+ total?: number;
1442
+ /**
1443
+ * - Offer type
1444
+ */
1445
+ type?: string;
1446
+ };
1447
+ /** @returns {OfferPrice} */
1448
+ declare function OfferPrice(): OfferPrice;
1449
+ type OfferPrice = {
1450
+ /**
1451
+ * - Discounted per unit price for current
1452
+ * offer object
1453
+ */
1454
+ bulk_effective?: number;
1455
+ /**
1456
+ * - Currency code for all amounts
1457
+ */
1458
+ currency_code?: string;
1459
+ /**
1460
+ * - Currency symbol for currency
1461
+ */
1462
+ currency_symbol?: string;
1463
+ /**
1464
+ * - Current per unit price of product after
1465
+ * existing deductions
1466
+ */
1467
+ effective?: number;
1468
+ /**
1469
+ * - Original price of product
1470
+ */
1471
+ marked?: number;
1472
+ };
1473
+ /** @returns {OfferSeller} */
1474
+ declare function OfferSeller(): OfferSeller;
1475
+ type OfferSeller = {
1476
+ name?: string;
1477
+ /**
1478
+ * - Seller id
1479
+ */
1480
+ uid?: number;
1481
+ };
1482
+ /** @returns {Ownership} */
1483
+ declare function Ownership(): Ownership;
1484
+ type Ownership = {
1485
+ /**
1486
+ * - Promo amount bearable party
1487
+ */
1488
+ payable_by?: string;
1489
+ /**
1490
+ * - Promo amount payable category
1491
+ */
1492
+ payable_category?: string;
1493
+ };
1494
+ /** @returns {PageCoupon} */
1495
+ declare function PageCoupon(): PageCoupon;
1496
+ type PageCoupon = {
1497
+ current?: number;
1498
+ has_next?: boolean;
1499
+ has_previous?: boolean;
1500
+ total?: number;
1501
+ total_item_count?: number;
1502
+ };
1503
+ /** @returns {PaymentCouponValidate} */
1504
+ declare function PaymentCouponValidate(): PaymentCouponValidate;
1505
+ type PaymentCouponValidate = {
1506
+ coupon_validity?: CouponValidity;
1507
+ message?: string;
1508
+ success: boolean;
1509
+ };
1510
+ /** @returns {PaymentSelectionLock} */
1511
+ declare function PaymentSelectionLock(): PaymentSelectionLock;
1512
+ type PaymentSelectionLock = {
1513
+ default_options?: string;
1514
+ enabled?: boolean;
1515
+ payment_identifier?: string;
1516
+ };
1517
+ /** @returns {PickupStoreDetail} */
1518
+ declare function PickupStoreDetail(): PickupStoreDetail;
1519
+ type PickupStoreDetail = {
1520
+ address?: string;
1521
+ address_type?: string;
1522
+ area?: string;
1523
+ area_code?: string;
1524
+ area_code_slug?: string;
1525
+ city?: string;
1526
+ country?: string;
1527
+ email?: string;
1528
+ id?: number;
1529
+ landmark?: string;
1530
+ name?: string;
1531
+ phone?: string;
1532
+ pincode?: number;
1533
+ state?: string;
1534
+ store_code?: string;
1535
+ uid?: number;
1536
+ };
1537
+ /** @returns {ProductAction} */
1538
+ declare function ProductAction(): ProductAction;
1539
+ type ProductAction = {
1540
+ query?: ActionQuery;
1541
+ type?: string;
1542
+ url?: string;
1543
+ };
1544
+ /** @returns {ProductArticle} */
1545
+ declare function ProductArticle(): ProductArticle;
1546
+ type ProductArticle = {
1547
+ _custom_json?: any;
1548
+ cart_item_meta?: any;
1549
+ extra_meta?: any;
1550
+ gift_card?: any;
1551
+ identifier?: any;
1552
+ is_gift_visible?: boolean;
1553
+ meta?: any;
1554
+ mto_quantity?: number;
1555
+ parent_item_identifiers?: any;
1556
+ price?: ArticlePriceInfo;
1557
+ product_group_tags?: string[];
1558
+ quantity?: number;
1559
+ seller?: BaseInfo;
1560
+ seller_identifier?: string;
1561
+ size?: string;
1562
+ store?: StoreInfo;
1563
+ type?: string;
1564
+ uid?: string;
1565
+ };
1566
+ /** @returns {ProductAvailability} */
1567
+ declare function ProductAvailability(): ProductAvailability;
1568
+ type ProductAvailability = {
1569
+ available_sizes?: ProductAvailabilitySize[];
1570
+ deliverable?: boolean;
1571
+ is_valid?: boolean;
1572
+ other_store_quantity?: number;
1573
+ out_of_stock?: boolean;
1574
+ sizes?: string[];
1575
+ };
1576
+ /** @returns {ProductAvailabilitySize} */
1577
+ declare function ProductAvailabilitySize(): ProductAvailabilitySize;
1578
+ type ProductAvailabilitySize = {
1579
+ display?: string;
1580
+ is_available?: boolean;
1581
+ value?: string;
1582
+ };
1583
+ /** @returns {ProductImage} */
1584
+ declare function ProductImage(): ProductImage;
1585
+ type ProductImage = {
1586
+ aspect_ratio?: string;
1587
+ secure_url?: string;
1588
+ url?: string;
1589
+ };
1590
+ /** @returns {ProductPrice} */
1591
+ declare function ProductPrice(): ProductPrice;
1592
+ type ProductPrice = {
1593
+ add_on?: number;
1594
+ currency_code?: string;
1595
+ currency_symbol?: string;
1596
+ effective?: number;
1597
+ marked?: number;
1598
+ selling?: number;
1599
+ };
1600
+ /** @returns {ProductPriceInfo} */
1601
+ declare function ProductPriceInfo(): ProductPriceInfo;
1602
+ type ProductPriceInfo = {
1603
+ base?: ProductPrice;
1604
+ converted?: ProductPrice;
1605
+ };
1606
+ /** @returns {PromiseFormatted} */
1607
+ declare function PromiseFormatted(): PromiseFormatted;
1608
+ type PromiseFormatted = {
1609
+ max?: string;
1610
+ min?: string;
1611
+ };
1612
+ /** @returns {PromiseTimestamp} */
1613
+ declare function PromiseTimestamp(): PromiseTimestamp;
1614
+ type PromiseTimestamp = {
1615
+ max?: number;
1616
+ min?: number;
1617
+ };
1618
+ /** @returns {PromoMeta} */
1619
+ declare function PromoMeta(): PromoMeta;
1620
+ type PromoMeta = {
1621
+ message?: string;
1622
+ };
1623
+ /** @returns {RawBreakup} */
1624
+ declare function RawBreakup(): RawBreakup;
1625
+ type RawBreakup = {
1626
+ cod_charge?: number;
1627
+ convenience_fee?: number;
1628
+ coupon?: number;
1629
+ delivery_charge?: number;
1630
+ discount?: number;
1631
+ fynd_cash?: number;
1632
+ gift_card?: number;
1633
+ gst_charges?: number;
1634
+ mrp_total?: number;
1635
+ subtotal?: number;
1636
+ total?: number;
1637
+ vog?: number;
1638
+ you_saved?: number;
1639
+ };
1640
+ /** @returns {RewardPointRequest} */
1641
+ declare function RewardPointRequest(): RewardPointRequest;
1642
+ type RewardPointRequest = {
1643
+ points: boolean;
1644
+ };
1645
+ /** @returns {SaveAddressResponse} */
1646
+ declare function SaveAddressResponse(): SaveAddressResponse;
1647
+ type SaveAddressResponse = {
1648
+ id?: string;
1649
+ is_default_address?: boolean;
1650
+ success?: boolean;
1651
+ };
1652
+ /** @returns {SelectCartAddressRequest} */
1653
+ declare function SelectCartAddressRequest(): SelectCartAddressRequest;
1654
+ type SelectCartAddressRequest = {
1655
+ billing_address_id?: string;
1656
+ cart_id?: string;
1657
+ id?: string;
1658
+ };
1659
+ /** @returns {SharedCart} */
1660
+ declare function SharedCart(): SharedCart;
1661
+ type SharedCart = {
1662
+ breakup_values?: CartBreakup;
1663
+ buy_now?: boolean;
1664
+ cart_id?: number;
1665
+ checkout_mode?: string;
1666
+ comment?: string;
1667
+ coupon_text?: string;
1668
+ currency?: CartCurrency;
1669
+ delivery_charge_info?: string;
1670
+ delivery_promise?: ShipmentPromise;
1671
+ gstin?: string;
1672
+ id?: string;
1673
+ is_valid?: boolean;
1674
+ items?: CartProductInfo[];
1675
+ last_modified?: string;
1676
+ message?: string;
1677
+ payment_selection_lock?: PaymentSelectionLock;
1678
+ restrict_checkout?: boolean;
1679
+ shared_cart_details?: SharedCartDetails;
1680
+ uid?: string;
1681
+ };
1682
+ /** @returns {SharedCartDetails} */
1683
+ declare function SharedCartDetails(): SharedCartDetails;
1684
+ type SharedCartDetails = {
1685
+ created_on?: string;
1686
+ /**
1687
+ * - Meta data sent while generating share cart link
1688
+ */
1689
+ meta?: any;
1690
+ /**
1691
+ * - Share link device and other source information
1692
+ */
1693
+ source?: any;
1694
+ /**
1695
+ * - Short link id
1696
+ */
1697
+ token?: string;
1698
+ /**
1699
+ * - User details of who generated share link
1700
+ */
1701
+ user?: any;
1702
+ };
1703
+ /** @returns {SharedCartResponse} */
1704
+ declare function SharedCartResponse(): SharedCartResponse;
1705
+ type SharedCartResponse = {
1706
+ cart?: SharedCart;
1707
+ error?: string;
1708
+ };
1709
+ /** @returns {ShipmentPromise} */
1710
+ declare function ShipmentPromise(): ShipmentPromise;
1711
+ type ShipmentPromise = {
1712
+ formatted?: PromiseFormatted;
1713
+ timestamp?: PromiseTimestamp;
1714
+ };
1715
+ /** @returns {ShipmentResponse} */
1716
+ declare function ShipmentResponse(): ShipmentResponse;
1717
+ type ShipmentResponse = {
1718
+ box_type?: string;
1719
+ dp_id?: string;
1720
+ dp_options?: any;
1721
+ fulfillment_id?: number;
1722
+ fulfillment_type?: string;
1723
+ items?: CartProductInfo[];
1724
+ order_type?: string;
1725
+ promise?: ShipmentPromise;
1726
+ shipment_type?: string;
1727
+ shipments?: number;
1728
+ };
1729
+ /** @returns {StaffCheckout} */
1730
+ declare function StaffCheckout(): StaffCheckout;
1731
+ type StaffCheckout = {
1732
+ _id: string;
1733
+ employee_code?: string;
1734
+ first_name: string;
1735
+ last_name: string;
1736
+ user: string;
1737
+ };
1738
+ /** @returns {StoreDetailsResponse} */
1739
+ declare function StoreDetailsResponse(): StoreDetailsResponse;
1740
+ type StoreDetailsResponse = {
1741
+ items?: PickupStoreDetail[];
1742
+ };
1743
+ /** @returns {StoreInfo} */
1744
+ declare function StoreInfo(): StoreInfo;
1745
+ type StoreInfo = {
1746
+ name?: string;
1747
+ store_code?: string;
1748
+ uid?: number;
1749
+ };
1750
+ /** @returns {Tags} */
1751
+ declare function Tags(): Tags;
1752
+ type Tags = {
1753
+ tags?: any;
1754
+ };
1755
+ /** @returns {UpdateAddressResponse} */
1756
+ declare function UpdateAddressResponse(): UpdateAddressResponse;
1757
+ type UpdateAddressResponse = {
1758
+ id?: string;
1759
+ is_default_address?: boolean;
1760
+ is_updated?: boolean;
1761
+ success?: boolean;
1762
+ };
1763
+ /** @returns {UpdateCartDetailResponse} */
1764
+ declare function UpdateCartDetailResponse(): UpdateCartDetailResponse;
1765
+ type UpdateCartDetailResponse = {
1766
+ cart?: CartDetailResponse;
1767
+ message?: string;
1768
+ /**
1769
+ * - True if all items are added successfully.
1770
+ * False if partially added or not added.
1771
+ */
1772
+ success?: boolean;
1773
+ };
1774
+ /** @returns {UpdateCartPaymentRequest} */
1775
+ declare function UpdateCartPaymentRequest(): UpdateCartPaymentRequest;
1776
+ type UpdateCartPaymentRequest = {
1777
+ address_id?: string;
1778
+ aggregator_name?: string;
1779
+ id?: string;
1780
+ merchant_code?: string;
1781
+ payment_identifier?: string;
1782
+ payment_mode?: string;
1783
+ };
1784
+ /** @returns {UpdateCartRequest} */
1785
+ declare function UpdateCartRequest(): UpdateCartRequest;
1786
+ type UpdateCartRequest = {
1787
+ items?: UpdateProductCart[];
1788
+ operation: string;
1789
+ };
1790
+ /** @returns {UpdateCartShipmentItem} */
1791
+ declare function UpdateCartShipmentItem(): UpdateCartShipmentItem;
1792
+ type UpdateCartShipmentItem = {
1793
+ /**
1794
+ * - Article mongo id
1795
+ */
1796
+ article_uid: string;
1797
+ /**
1798
+ * - Quantity of product in shipment
1799
+ */
1800
+ quantity?: number;
1801
+ /**
1802
+ * - Shipment delivery type
1803
+ */
1804
+ shipment_type: string;
1805
+ };
1806
+ /** @returns {UpdateCartShipmentRequest} */
1807
+ declare function UpdateCartShipmentRequest(): UpdateCartShipmentRequest;
1808
+ type UpdateCartShipmentRequest = {
1809
+ shipments: UpdateCartShipmentItem[];
1810
+ };
1811
+ /** @returns {UpdateProductCart} */
1812
+ declare function UpdateProductCart(): UpdateProductCart;
1813
+ type UpdateProductCart = {
1814
+ _custom_json?: any;
1815
+ article_id?: string;
1816
+ extra_meta?: any;
1817
+ identifiers: CartProductIdentifer;
1818
+ item_id?: number;
1819
+ item_index?: number;
1820
+ item_size?: string;
1821
+ meta?: any;
1822
+ parent_item_identifiers?: any;
1823
+ quantity?: number;
1824
+ };