@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-beta.1

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 (237) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -5,9 +5,9 @@ export = CartPlatformApplicationValidator;
5
5
  */
6
6
  /**
7
7
  * @typedef AddItemsParam
8
- * @property {string} cartId - Current Cart _id
8
+ * @property {string} cartId - Current Cart id of user cart
9
9
  * @property {boolean} [b]
10
- * @property {CartPlatformModel.AddCartRequest} body
10
+ * @property {CartPlatformModel.AddCartCreation} body
11
11
  */
12
12
  /**
13
13
  * @typedef AddPriceAdjustmentParam
@@ -20,11 +20,11 @@ export = CartPlatformApplicationValidator;
20
20
  * @property {boolean} [p]
21
21
  * @property {string} [id]
22
22
  * @property {boolean} [buyNow]
23
- * @property {CartPlatformModel.ApplyCouponRequest} body
23
+ * @property {CartPlatformModel.ApplyCouponDetails} body
24
24
  */
25
25
  /**
26
26
  * @typedef CheckCartServiceabilityParam
27
- * @property {CartPlatformModel.OpenApiCartServiceabilityRequest} body
27
+ * @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
28
28
  */
29
29
  /**
30
30
  * @typedef CheckoutCartParam
@@ -45,11 +45,19 @@ export = CartPlatformApplicationValidator;
45
45
  /**
46
46
  * @typedef DeleteCartParam
47
47
  * @property {string} [id] - The unique identifier of the cart.
48
- * @property {CartPlatformModel.DeleteCartRequest} body
48
+ * @property {CartPlatformModel.DeleteCartDetails} body
49
+ */
50
+ /**
51
+ * @typedef DeleteCouponParam
52
+ * @property {string} id
53
+ */
54
+ /**
55
+ * @typedef DeletePromotionParam
56
+ * @property {string} id - Promotion id for fetching single promotion data for deleting
49
57
  */
50
58
  /**
51
59
  * @typedef FetchAndvalidateCartItemsParam
52
- * @property {CartPlatformModel.OpenapiCartDetailsRequest} body
60
+ * @property {CartPlatformModel.OpenapiCartDetailsCreation} body
53
61
  */
54
62
  /** @typedef FetchCartMetaConfigParam */
55
63
  /**
@@ -125,7 +133,7 @@ export = CartPlatformApplicationValidator;
125
133
  */
126
134
  /**
127
135
  * @typedef GetCartShareLinkParam
128
- * @property {CartPlatformModel.GetShareCartLinkRequest} body
136
+ * @property {CartPlatformModel.GetShareCartLinkCreation} body
129
137
  */
130
138
  /**
131
139
  * @typedef GetCartSharedItemsParam
@@ -150,6 +158,13 @@ export = CartPlatformApplicationValidator;
150
158
  * @property {boolean} [isDisplay]
151
159
  * @property {string} [typeSlug]
152
160
  * @property {string} [code]
161
+ * @property {string} [createdBy]
162
+ * @property {string} [reviewedBy]
163
+ * @property {string} [approvedStartTime]
164
+ * @property {string} [approvedEndTime]
165
+ * @property {string} [reviewStartTime]
166
+ * @property {string} [reviewEndTime]
167
+ * @property {string} [status]
153
168
  */
154
169
  /**
155
170
  * @typedef GetItemCountParam
@@ -158,12 +173,12 @@ export = CartPlatformApplicationValidator;
158
173
  */
159
174
  /**
160
175
  * @typedef GetPriceAdjustmentsParam
161
- * @property {string} cartId - Cart Id
176
+ * @property {string} cartId - Cart id of user cart
162
177
  */
163
178
  /**
164
179
  * @typedef GetPromosCouponConfigParam
165
- * @property {string} [entityType] - Entity_type as promotion or coupon
166
- * @property {boolean} [isHidden] - Promo-coupon config shown or not
180
+ * @property {string} [entityType] - Entity type as promotion or coupon
181
+ * @property {boolean} [isHidden] - Promotion coupon config shown or not
167
182
  */
168
183
  /**
169
184
  * @typedef GetPromotionByIdParam
@@ -180,13 +195,15 @@ export = CartPlatformApplicationValidator;
180
195
  * /service/application/catalog/v1.0/products/
181
196
  * @property {number} [pageSize] - Number of offers to be fetched to show
182
197
  * @property {string} [promotionGroup] - Type of promotion groups
183
- * @property {number} [storeId] - Store id
198
+ * @property {number} [storeId] - Unique identifier of a store
184
199
  * @property {string} [cartType] - The type of cart
200
+ * @property {string} [sortBy] - Specifies the sorting criteria for the
201
+ * promotions. Sorts promotions in descending order by the value provided.
185
202
  */
186
203
  /**
187
204
  * @typedef GetPromotionPaymentOffersParam
188
- * @property {string} [id] - Cart id
189
- * @property {number} [uid] - Cart uid
205
+ * @property {string} [id] - Cart id of the user cart
206
+ * @property {number} [uid] - Cart uid of the user cart
190
207
  */
191
208
  /**
192
209
  * @typedef GetPromotionsParam
@@ -198,6 +215,13 @@ export = CartPlatformApplicationValidator;
198
215
  * @property {string} [promotionType]
199
216
  * @property {string} [fpPanel]
200
217
  * @property {string} [promotionId]
218
+ * @property {string} [createdBy]
219
+ * @property {string} [reviewedBy]
220
+ * @property {string} [approvedStartTime]
221
+ * @property {string} [approvedEndTime]
222
+ * @property {string} [reviewStartTime]
223
+ * @property {string} [reviewEndTime]
224
+ * @property {string} [status]
201
225
  */
202
226
  /**
203
227
  * @typedef GetShipmentsParam
@@ -234,12 +258,17 @@ export = CartPlatformApplicationValidator;
234
258
  * the customer wants the order home-delivered PickAtStore - If the customer
235
259
  * wants the handover of an order at the store itself.
236
260
  * @property {string} [id] - The unique identifier of the cart
237
- * @property {CartPlatformModel.PlatformAddCartRequest} body
261
+ * @property {CartPlatformModel.PlatformAddCartDetails} body
262
+ */
263
+ /**
264
+ * @typedef PlatformCheckoutCartParam
265
+ * @property {string} [id] - The unique identifier of the cart
266
+ * @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
238
267
  */
239
268
  /**
240
269
  * @typedef PlatformCheckoutCartV2Param
241
270
  * @property {string} [id] - The unique identifier of the cart
242
- * @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body
271
+ * @property {CartPlatformModel.PlatformCartCheckoutDetailV2Creation} body
243
272
  */
244
273
  /**
245
274
  * @typedef PlatformUpdateCartParam
@@ -253,7 +282,7 @@ export = CartPlatformApplicationValidator;
253
282
  * the price breakup of cart items.
254
283
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
255
284
  * set/initialize buy now cart
256
- * @property {CartPlatformModel.PlatformUpdateCartRequest} body
285
+ * @property {CartPlatformModel.PlatformUpdateCartDetails} body
257
286
  */
258
287
  /**
259
288
  * @typedef RemoveAddressParam
@@ -275,24 +304,20 @@ export = CartPlatformApplicationValidator;
275
304
  * @property {boolean} [buyNow]
276
305
  * @property {boolean} [i]
277
306
  * @property {boolean} [b]
278
- * @property {CartPlatformModel.PlatformSelectCartAddressRequest} body
307
+ * @property {CartPlatformModel.PlatformSelectCartAddress} body
279
308
  */
280
309
  /**
281
310
  * @typedef SelectPaymentModeParam
282
311
  * @property {string} [id]
283
312
  * @property {boolean} [buyNow]
284
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
285
- * the customer wants the order home-delivered PickAtStore - If the customer
286
- * wants the handover of an order at the store itself.
287
- * @property {CartPlatformModel.UpdateCartPaymentRequest} body
313
+ * @property {string} [orderType]
314
+ * @property {CartPlatformModel.CartPaymentUpdate} body
288
315
  */
289
316
  /**
290
317
  * @typedef SelectPaymentModeV2Param
291
318
  * @property {string} [id]
292
319
  * @property {boolean} [buyNow]
293
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
294
- * the customer wants the order home-delivered PickAtStore - If the customer
295
- * wants the handover of an order at the store itself.
320
+ * @property {string} [orderType]
296
321
  * @property {CartPlatformModel.UpdateCartPaymentRequestV2} body
297
322
  */
298
323
  /**
@@ -302,20 +327,20 @@ export = CartPlatformApplicationValidator;
302
327
  */
303
328
  /**
304
329
  * @typedef UpdateCartParam
305
- * @property {string} cartId - Current Cart _id
330
+ * @property {string} cartId - Current Cart id of user cart
306
331
  * @property {boolean} [b]
307
- * @property {CartPlatformModel.UpdateCartRequest} body
332
+ * @property {CartPlatformModel.UpdateCartCreation} body
308
333
  */
309
334
  /**
310
335
  * @typedef UpdateCartMetaParam
311
336
  * @property {string} [id]
312
337
  * @property {boolean} [buyNow]
313
- * @property {CartPlatformModel.PlatformCartMetaRequest} body
338
+ * @property {CartPlatformModel.PlatformCartMetaCreation} body
314
339
  */
315
340
  /**
316
341
  * @typedef UpdateCartMetaConfigParam
317
- * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart
318
- * meta data for editing
342
+ * @property {string} cartMetaId - CartMeta id for fetching single cart meta
343
+ * data for editing
319
344
  * @property {CartPlatformModel.CartMetaConfigUpdate} body
320
345
  */
321
346
  /**
@@ -366,7 +391,7 @@ export = CartPlatformApplicationValidator;
366
391
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
367
392
  * the customer wants the order home-delivered PickAtStore - If the customer
368
393
  * wants the handover of an order at the store itself.
369
- * @property {CartPlatformModel.UpdateCartShipmentRequest} body
394
+ * @property {CartPlatformModel.UpdateCartShipmentCreation} body
370
395
  */
371
396
  /**
372
397
  * @typedef ValidateCouponForPaymentParam
@@ -399,6 +424,10 @@ declare class CartPlatformApplicationValidator {
399
424
  static createPromotion(): CreatePromotionParam;
400
425
  /** @returns {DeleteCartParam} */
401
426
  static deleteCart(): DeleteCartParam;
427
+ /** @returns {DeleteCouponParam} */
428
+ static deleteCoupon(): DeleteCouponParam;
429
+ /** @returns {DeletePromotionParam} */
430
+ static deletePromotion(): DeletePromotionParam;
402
431
  /** @returns {FetchAndvalidateCartItemsParam} */
403
432
  static fetchAndvalidateCartItems(): FetchAndvalidateCartItemsParam;
404
433
  /** @returns {FetchCartMetaConfigParam} */
@@ -455,6 +484,8 @@ declare class CartPlatformApplicationValidator {
455
484
  static overrideCart(): OverrideCartParam;
456
485
  /** @returns {PlatformAddItemsParam} */
457
486
  static platformAddItems(): PlatformAddItemsParam;
487
+ /** @returns {PlatformCheckoutCartParam} */
488
+ static platformCheckoutCart(): PlatformCheckoutCartParam;
458
489
  /** @returns {PlatformCheckoutCartV2Param} */
459
490
  static platformCheckoutCartV2(): PlatformCheckoutCartV2Param;
460
491
  /** @returns {PlatformUpdateCartParam} */
@@ -499,18 +530,18 @@ declare class CartPlatformApplicationValidator {
499
530
  static validateCouponForPayment(): ValidateCouponForPaymentParam;
500
531
  }
501
532
  declare namespace CartPlatformApplicationValidator {
502
- export { AddAddressParam, AddItemsParam, AddPriceAdjustmentParam, ApplyCouponParam, CheckCartServiceabilityParam, CheckoutCartParam, CreateCartMetaConfigParam, CreateCouponParam, CreatePromotionParam, DeleteCartParam, FetchAndvalidateCartItemsParam, FetchCartMetaConfigParam, GetAbandonedCartParam, GetAbandonedCartDetailsParam, GetAddressByIdParam, GetAddressesParam, GetAppCouponsParam, GetAvailableDeliveryModesParam, GetCartParam, GetCartListParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponByIdParam, GetCouponCodeExistsParam, GetCouponOptionValuesParam, GetCouponsParam, GetItemCountParam, GetPriceAdjustmentsParam, GetPromosCouponConfigParam, GetPromotionByIdParam, GetPromotionCodeExistsParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetPromotionsParam, GetShipmentsParam, GetStoreAddressByUidParam, OverrideCartParam, PlatformAddItemsParam, PlatformCheckoutCartV2Param, PlatformUpdateCartParam, RemoveAddressParam, RemoveCouponParam, RemovePriceAdjustmentParam, SelectAddressParam, SelectPaymentModeParam, SelectPaymentModeV2Param, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartMetaConfigParam, UpdateCartUserParam, UpdateCartWithSharedItemsParam, UpdateCouponParam, UpdateCouponPartiallyParam, UpdatePriceAdjustmentParam, UpdatePromotionParam, UpdatePromotionPartiallyParam, UpdateShipmentsParam, ValidateCouponForPaymentParam };
533
+ export { AddAddressParam, AddItemsParam, AddPriceAdjustmentParam, ApplyCouponParam, CheckCartServiceabilityParam, CheckoutCartParam, CreateCartMetaConfigParam, CreateCouponParam, CreatePromotionParam, DeleteCartParam, DeleteCouponParam, DeletePromotionParam, FetchAndvalidateCartItemsParam, FetchCartMetaConfigParam, GetAbandonedCartParam, GetAbandonedCartDetailsParam, GetAddressByIdParam, GetAddressesParam, GetAppCouponsParam, GetAvailableDeliveryModesParam, GetCartParam, GetCartListParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponByIdParam, GetCouponCodeExistsParam, GetCouponOptionValuesParam, GetCouponsParam, GetItemCountParam, GetPriceAdjustmentsParam, GetPromosCouponConfigParam, GetPromotionByIdParam, GetPromotionCodeExistsParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetPromotionsParam, GetShipmentsParam, GetStoreAddressByUidParam, OverrideCartParam, PlatformAddItemsParam, PlatformCheckoutCartParam, PlatformCheckoutCartV2Param, PlatformUpdateCartParam, RemoveAddressParam, RemoveCouponParam, RemovePriceAdjustmentParam, SelectAddressParam, SelectPaymentModeParam, SelectPaymentModeV2Param, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartMetaConfigParam, UpdateCartUserParam, UpdateCartWithSharedItemsParam, UpdateCouponParam, UpdateCouponPartiallyParam, UpdatePriceAdjustmentParam, UpdatePromotionParam, UpdatePromotionPartiallyParam, UpdateShipmentsParam, ValidateCouponForPaymentParam };
503
534
  }
504
535
  type AddAddressParam = {
505
536
  body: CartPlatformModel.PlatformAddress;
506
537
  };
507
538
  type AddItemsParam = {
508
539
  /**
509
- * - Current Cart _id
540
+ * - Current Cart id of user cart
510
541
  */
511
542
  cartId: string;
512
543
  b?: boolean;
513
- body: CartPlatformModel.AddCartRequest;
544
+ body: CartPlatformModel.AddCartCreation;
514
545
  };
515
546
  type AddPriceAdjustmentParam = {
516
547
  body: CartPlatformModel.PriceAdjustmentAdd;
@@ -521,10 +552,10 @@ type ApplyCouponParam = {
521
552
  p?: boolean;
522
553
  id?: string;
523
554
  buyNow?: boolean;
524
- body: CartPlatformModel.ApplyCouponRequest;
555
+ body: CartPlatformModel.ApplyCouponDetails;
525
556
  };
526
557
  type CheckCartServiceabilityParam = {
527
- body: CartPlatformModel.OpenApiCartServiceabilityRequest;
558
+ body: CartPlatformModel.OpenApiCartServiceabilityCreation;
528
559
  };
529
560
  type CheckoutCartParam = {
530
561
  body: CartPlatformModel.OpenApiPlatformCheckoutReq;
@@ -543,10 +574,19 @@ type DeleteCartParam = {
543
574
  * - The unique identifier of the cart.
544
575
  */
545
576
  id?: string;
546
- body: CartPlatformModel.DeleteCartRequest;
577
+ body: CartPlatformModel.DeleteCartDetails;
578
+ };
579
+ type DeleteCouponParam = {
580
+ id: string;
581
+ };
582
+ type DeletePromotionParam = {
583
+ /**
584
+ * - Promotion id for fetching single promotion data for deleting
585
+ */
586
+ id: string;
547
587
  };
548
588
  type FetchAndvalidateCartItemsParam = {
549
- body: CartPlatformModel.OpenapiCartDetailsRequest;
589
+ body: CartPlatformModel.OpenapiCartDetailsCreation;
550
590
  };
551
591
  type GetAbandonedCartParam = {
552
592
  pageNo?: number;
@@ -633,7 +673,7 @@ type GetCartListParam = {
633
673
  filterOn?: string;
634
674
  };
635
675
  type GetCartShareLinkParam = {
636
- body: CartPlatformModel.GetShareCartLinkRequest;
676
+ body: CartPlatformModel.GetShareCartLinkCreation;
637
677
  };
638
678
  type GetCartSharedItemsParam = {
639
679
  /**
@@ -656,6 +696,13 @@ type GetCouponsParam = {
656
696
  isDisplay?: boolean;
657
697
  typeSlug?: string;
658
698
  code?: string;
699
+ createdBy?: string;
700
+ reviewedBy?: string;
701
+ approvedStartTime?: string;
702
+ approvedEndTime?: string;
703
+ reviewStartTime?: string;
704
+ reviewEndTime?: string;
705
+ status?: string;
659
706
  };
660
707
  type GetItemCountParam = {
661
708
  /**
@@ -669,17 +716,17 @@ type GetItemCountParam = {
669
716
  };
670
717
  type GetPriceAdjustmentsParam = {
671
718
  /**
672
- * - Cart Id
719
+ * - Cart id of user cart
673
720
  */
674
721
  cartId: string;
675
722
  };
676
723
  type GetPromosCouponConfigParam = {
677
724
  /**
678
- * - Entity_type as promotion or coupon
725
+ * - Entity type as promotion or coupon
679
726
  */
680
727
  entityType?: string;
681
728
  /**
682
- * - Promo-coupon config shown or not
729
+ * - Promotion coupon config shown or not
683
730
  */
684
731
  isHidden?: boolean;
685
732
  };
@@ -705,21 +752,26 @@ type GetPromotionOffersParam = {
705
752
  */
706
753
  promotionGroup?: string;
707
754
  /**
708
- * - Store id
755
+ * - Unique identifier of a store
709
756
  */
710
757
  storeId?: number;
711
758
  /**
712
759
  * - The type of cart
713
760
  */
714
761
  cartType?: string;
762
+ /**
763
+ * - Specifies the sorting criteria for the
764
+ * promotions. Sorts promotions in descending order by the value provided.
765
+ */
766
+ sortBy?: string;
715
767
  };
716
768
  type GetPromotionPaymentOffersParam = {
717
769
  /**
718
- * - Cart id
770
+ * - Cart id of the user cart
719
771
  */
720
772
  id?: string;
721
773
  /**
722
- * - Cart uid
774
+ * - Cart uid of the user cart
723
775
  */
724
776
  uid?: number;
725
777
  };
@@ -732,6 +784,13 @@ type GetPromotionsParam = {
732
784
  promotionType?: string;
733
785
  fpPanel?: string;
734
786
  promotionId?: string;
787
+ createdBy?: string;
788
+ reviewedBy?: string;
789
+ approvedStartTime?: string;
790
+ approvedEndTime?: string;
791
+ reviewStartTime?: string;
792
+ reviewEndTime?: string;
793
+ status?: string;
735
794
  };
736
795
  type GetShipmentsParam = {
737
796
  pickAtStoreUid?: number;
@@ -797,14 +856,21 @@ type PlatformAddItemsParam = {
797
856
  * - The unique identifier of the cart
798
857
  */
799
858
  id?: string;
800
- body: CartPlatformModel.PlatformAddCartRequest;
859
+ body: CartPlatformModel.PlatformAddCartDetails;
860
+ };
861
+ type PlatformCheckoutCartParam = {
862
+ /**
863
+ * - The unique identifier of the cart
864
+ */
865
+ id?: string;
866
+ body: CartPlatformModel.PlatformCartCheckoutDetailCreation;
801
867
  };
802
868
  type PlatformCheckoutCartV2Param = {
803
869
  /**
804
870
  * - The unique identifier of the cart
805
871
  */
806
872
  id?: string;
807
- body: CartPlatformModel.PlatformCartCheckoutDetailV2Request;
873
+ body: CartPlatformModel.PlatformCartCheckoutDetailV2Creation;
808
874
  };
809
875
  type PlatformUpdateCartParam = {
810
876
  /**
@@ -832,7 +898,7 @@ type PlatformUpdateCartParam = {
832
898
  * set/initialize buy now cart
833
899
  */
834
900
  buyNow?: boolean;
835
- body: CartPlatformModel.PlatformUpdateCartRequest;
901
+ body: CartPlatformModel.PlatformUpdateCartDetails;
836
902
  };
837
903
  type RemoveAddressParam = {
838
904
  /**
@@ -856,27 +922,17 @@ type SelectAddressParam = {
856
922
  buyNow?: boolean;
857
923
  i?: boolean;
858
924
  b?: boolean;
859
- body: CartPlatformModel.PlatformSelectCartAddressRequest;
925
+ body: CartPlatformModel.PlatformSelectCartAddress;
860
926
  };
861
927
  type SelectPaymentModeParam = {
862
928
  id?: string;
863
929
  buyNow?: boolean;
864
- /**
865
- * - The order type of shipment HomeDelivery - If
866
- * the customer wants the order home-delivered PickAtStore - If the customer
867
- * wants the handover of an order at the store itself.
868
- */
869
930
  orderType?: string;
870
- body: CartPlatformModel.UpdateCartPaymentRequest;
931
+ body: CartPlatformModel.CartPaymentUpdate;
871
932
  };
872
933
  type SelectPaymentModeV2Param = {
873
934
  id?: string;
874
935
  buyNow?: boolean;
875
- /**
876
- * - The order type of shipment HomeDelivery - If
877
- * the customer wants the order home-delivered PickAtStore - If the customer
878
- * wants the handover of an order at the store itself.
879
- */
880
936
  orderType?: string;
881
937
  body: CartPlatformModel.UpdateCartPaymentRequestV2;
882
938
  };
@@ -889,21 +945,21 @@ type UpdateAddressParam = {
889
945
  };
890
946
  type UpdateCartParam = {
891
947
  /**
892
- * - Current Cart _id
948
+ * - Current Cart id of user cart
893
949
  */
894
950
  cartId: string;
895
951
  b?: boolean;
896
- body: CartPlatformModel.UpdateCartRequest;
952
+ body: CartPlatformModel.UpdateCartCreation;
897
953
  };
898
954
  type UpdateCartMetaParam = {
899
955
  id?: string;
900
956
  buyNow?: boolean;
901
- body: CartPlatformModel.PlatformCartMetaRequest;
957
+ body: CartPlatformModel.PlatformCartMetaCreation;
902
958
  };
903
959
  type UpdateCartMetaConfigParam = {
904
960
  /**
905
- * - CartMeta mongo _id for fetching single cart
906
- * meta data for editing
961
+ * - CartMeta id for fetching single cart meta
962
+ * data for editing
907
963
  */
908
964
  cartMetaId: string;
909
965
  body: CartPlatformModel.CartMetaConfigUpdate;
@@ -972,7 +1028,7 @@ type UpdateShipmentsParam = {
972
1028
  * wants the handover of an order at the store itself.
973
1029
  */
974
1030
  orderType?: string;
975
- body: CartPlatformModel.UpdateCartShipmentRequest;
1031
+ body: CartPlatformModel.UpdateCartShipmentCreation;
976
1032
  };
977
1033
  type ValidateCouponForPaymentParam = {
978
1034
  id?: string;