@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10

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