@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5

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 (239) 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 +118 -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 +51 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +161 -56
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +111 -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 +101 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +56 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +46 -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 -21
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
  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 +5070 -1296
  83. package/sdk/platform/Cart/CartPlatformModel.js +1992 -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 +6512 -1770
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -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 +204 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -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 +1372 -400
  127. package/sdk/platform/Content/ContentPlatformModel.js +631 -394
  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 +95 -39
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
  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 +20 -22
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
  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 +7607 -1267
  157. package/sdk/platform/Order/OrderPlatformModel.js +3929 -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 +46 -36
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  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 +40 -46
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  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 +5 -5
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  194. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
  195. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  196. package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
  197. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  198. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  199. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  200. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  201. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  202. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  203. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  204. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  205. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  206. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  207. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  208. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  209. package/sdk/platform/User/UserPlatformModel.js +23 -23
  210. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  211. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  212. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  213. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  214. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  215. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  216. package/sdk/platform/index.d.ts +0 -1
  217. package/sdk/platform/index.js +0 -2
  218. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  219. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  220. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  221. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  222. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  223. package/sdk/public/Content/ContentPublicClient.js +810 -6
  224. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  225. package/sdk/public/Content/ContentPublicModel.js +649 -3
  226. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  227. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  228. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  229. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  230. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  231. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  232. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  233. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  234. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  235. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  236. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  237. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  238. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  239. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -16,6 +16,7 @@ class Cart {
16
16
  addItems: "/service/application/cart/v1.0/detail",
17
17
  applyCoupon: "/service/application/cart/v1.0/coupon",
18
18
  applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
19
+ checkoutCart: "/service/application/cart/v1.0/checkout",
19
20
  checkoutCartV2: "/service/application/cart/v2.0/checkout",
20
21
  deleteCart: "/service/application/cart/v1.0/cart_archive",
21
22
  getAddressById: "/service/application/cart/v1.0/address/{id}",
@@ -31,6 +32,7 @@ class Cart {
31
32
  getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
32
33
  getPromotionPaymentOffers:
33
34
  "/service/application/cart/v1.0/available-payment-offers",
35
+ getPromotions: "/service/application/cart/v1.0/promotion",
34
36
  getShipments: "/service/application/cart/v1.0/shipment",
35
37
  removeAddress: "/service/application/cart/v1.0/address/{id}",
36
38
  removeCoupon: "/service/application/cart/v1.0/coupon",
@@ -63,7 +65,7 @@ class Cart {
63
65
  /**
64
66
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
65
67
  * @param {import("../ApplicationAPIClient").Options} - Options
66
- * @returns {Promise<SaveAddressResponse>} - Success response
68
+ * @returns {Promise<SaveAddressResult>} - Success response
67
69
  * @name addAddress
68
70
  * @summary: Creates a new address for a customer
69
71
  * @description: Add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
@@ -100,7 +102,7 @@ class Cart {
100
102
  /**
101
103
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
102
104
  * @param {import("../ApplicationAPIClient").Options} - Options
103
- * @returns {Promise<AddCartDetailResponse>} - Success response
105
+ * @returns {Promise<AddCartDetailResult>} - Success response
104
106
  * @name addItems
105
107
  * @summary: Add items to a cart
106
108
  * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
@@ -145,7 +147,7 @@ class Cart {
145
147
  /**
146
148
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
147
149
  * @param {import("../ApplicationAPIClient").Options} - Options
148
- * @returns {Promise<CartDetailResponse>} - Success response
150
+ * @returns {Promise<CartDetailResult>} - Success response
149
151
  * @name applyCoupon
150
152
  * @summary: Apply coupon
151
153
  * @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
@@ -190,7 +192,7 @@ class Cart {
190
192
  /**
191
193
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
192
194
  * @param {import("../ApplicationAPIClient").Options} - Options
193
- * @returns {Promise<CartDetailResponse>} - Success response
195
+ * @returns {Promise<CartDetailResult>} - Success response
194
196
  * @name applyRewardPoints
195
197
  * @summary: Use reward points
196
198
  * @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
@@ -231,7 +233,46 @@ class Cart {
231
233
  /**
232
234
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
233
235
  * @param {import("../ApplicationAPIClient").Options} - Options
234
- * @returns {Promise<CartCheckoutResponse>} - Success response
236
+ * @returns {Promise<CartCheckoutResult>} - Success response
237
+ * @name checkoutCart
238
+ * @summary: Checkout cart
239
+ * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
240
+ */
241
+ async checkoutCart(
242
+ { body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
243
+ { responseHeaders } = { responseHeaders: false }
244
+ ) {
245
+ const query_params = {};
246
+ query_params["buy_now"] = buyNow;
247
+ query_params["cart_type"] = cartType;
248
+
249
+ const xHeaders = {};
250
+
251
+ const response = await ApplicationAPIClient.execute(
252
+ this._conf,
253
+ "post",
254
+ constructUrl({
255
+ url: this._urls["checkoutCart"],
256
+ params: {},
257
+ }),
258
+ query_params,
259
+ body,
260
+ { ...xHeaders, ...requestHeaders },
261
+ { responseHeaders }
262
+ );
263
+
264
+ let responseData = response;
265
+ if (responseHeaders) {
266
+ responseData = response[0];
267
+ }
268
+
269
+ return response;
270
+ }
271
+
272
+ /**
273
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
274
+ * @param {import("../ApplicationAPIClient").Options} - Options
275
+ * @returns {Promise<CartCheckoutResult>} - Success response
235
276
  * @name checkoutCartV2
236
277
  * @summary: Checkout cart
237
278
  * @description: The checkout cart initiates the order creation process based on the items in the user’s cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
@@ -270,7 +311,7 @@ class Cart {
270
311
  /**
271
312
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
272
313
  * @param {import("../ApplicationAPIClient").Options} - Options
273
- * @returns {Promise<DeleteCartDetailResponse>} - Success response
314
+ * @returns {Promise<DeleteCartDetailResult>} - Success response
274
315
  * @name deleteCart
275
316
  * @summary: Delete a cart
276
317
  * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
@@ -369,7 +410,7 @@ class Cart {
369
410
  /**
370
411
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
371
412
  * @param {import("../ApplicationAPIClient").Options} - Options
372
- * @returns {Promise<GetAddressesResponse>} - Success response
413
+ * @returns {Promise<GetAddressesResult>} - Success response
373
414
  * @name getAddresses
374
415
  * @summary: Get a list of addresses for a customer
375
416
  * @description: List all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
@@ -420,7 +461,7 @@ class Cart {
420
461
  /**
421
462
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
422
463
  * @param {import("../ApplicationAPIClient").Options} - Options
423
- * @returns {Promise<BulkPriceResponse>} - Success response
464
+ * @returns {Promise<BulkPriceResult>} - Success response
424
465
  * @name getBulkDiscountOffers
425
466
  * @summary: List bulk discounts
426
467
  * @description: List offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
@@ -461,7 +502,7 @@ class Cart {
461
502
  /**
462
503
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
463
504
  * @param {import("../ApplicationAPIClient").Options} - Options
464
- * @returns {Promise<CartDetailResponse>} - Success response
505
+ * @returns {Promise<CartDetailResult>} - Success response
465
506
  * @name getCart
466
507
  * @summary: Get a cart
467
508
  * @description: Get details of a cart linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
@@ -554,7 +595,7 @@ class Cart {
554
595
  /**
555
596
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
556
597
  * @param {import("../ApplicationAPIClient").Options} - Options
557
- * @returns {Promise<GetShareCartLinkResponse>} - Success response
598
+ * @returns {Promise<GetShareCartLinkResult>} - Success response
558
599
  * @name getCartShareLink
559
600
  * @summary: Create share cart link
560
601
  * @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
@@ -591,7 +632,7 @@ class Cart {
591
632
  /**
592
633
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
593
634
  * @param {import("../ApplicationAPIClient").Options} - Options
594
- * @returns {Promise<SharedCartResponse>} - Success response
635
+ * @returns {Promise<SharedCartResult>} - Success response
595
636
  * @name getCartSharedItems
596
637
  * @summary: List shared cart items
597
638
  * @description: Get cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
@@ -637,7 +678,7 @@ class Cart {
637
678
  /**
638
679
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
639
680
  * @param {import("../ApplicationAPIClient").Options} - Options
640
- * @returns {Promise<GetCouponResponse>} - Success response
681
+ * @returns {Promise<GetCouponResult>} - Success response
641
682
  * @name getCoupons
642
683
  * @summary: List available coupons
643
684
  * @description: List all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
@@ -678,7 +719,7 @@ class Cart {
678
719
  /**
679
720
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
680
721
  * @param {import("../ApplicationAPIClient").Options} - Options
681
- * @returns {Promise<CartItemCountResponse>} - Success response
722
+ * @returns {Promise<CartItemCountResult>} - Success response
682
723
  * @name getItemCount
683
724
  * @summary: Get a cart items count
684
725
  * @description: Get total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
@@ -760,15 +801,21 @@ class Cart {
760
801
  /**
761
802
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
762
803
  * @param {import("../ApplicationAPIClient").Options} - Options
763
- * @returns {Promise<PromotionOffersResponse>} - Success response
804
+ * @returns {Promise<PromotionOffersResult>} - Success response
764
805
  * @name getPromotionOffers
765
806
  * @summary: List available promotion offers
766
807
  * @description: List all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
767
808
  */
768
809
  async getPromotionOffers(
769
- { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
770
- requestHeaders: {},
771
- },
810
+ {
811
+ slug,
812
+ pageSize,
813
+ promotionGroup,
814
+ storeId,
815
+ cartType,
816
+ sortBy,
817
+ requestHeaders,
818
+ } = { requestHeaders: {} },
772
819
  { responseHeaders } = { responseHeaders: false }
773
820
  ) {
774
821
  const query_params = {};
@@ -777,6 +824,7 @@ class Cart {
777
824
  query_params["promotion_group"] = promotionGroup;
778
825
  query_params["store_id"] = storeId;
779
826
  query_params["cart_type"] = cartType;
827
+ query_params["sort_by"] = sortBy;
780
828
 
781
829
  const xHeaders = {};
782
830
 
@@ -804,7 +852,7 @@ class Cart {
804
852
  /**
805
853
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
806
854
  * @param {import("../ApplicationAPIClient").Options} - Options
807
- * @returns {Promise<PromotionPaymentOffersResponse>} - Success response
855
+ * @returns {Promise<PromotionPaymentOffersResult>} - Success response
808
856
  * @name getPromotionPaymentOffers
809
857
  * @summary: Fetch available promotions payment offers
810
858
  * @description: Use this API to get top 5 payment offers available for current product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionPaymentOffers/).
@@ -843,7 +891,50 @@ class Cart {
843
891
  /**
844
892
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
845
893
  * @param {import("../ApplicationAPIClient").Options} - Options
846
- * @returns {Promise<CartShipmentsResponse>} - Success response
894
+ * @returns {Promise<Promotions>} - Success response
895
+ * @name getPromotions
896
+ * @summary: List all available promotions of the sales channel
897
+ * @description: List all promotional offers available for the sales channel, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotions/).
898
+ */
899
+ async getPromotions(
900
+ { pageSize, pageNo, promotionType, isBankOffer, requestHeaders } = {
901
+ requestHeaders: {},
902
+ },
903
+ { responseHeaders } = { responseHeaders: false }
904
+ ) {
905
+ const query_params = {};
906
+ query_params["page_size"] = pageSize;
907
+ query_params["page_no"] = pageNo;
908
+ query_params["promotion_type"] = promotionType;
909
+ query_params["is_bank_offer"] = isBankOffer;
910
+
911
+ const xHeaders = {};
912
+
913
+ const response = await ApplicationAPIClient.execute(
914
+ this._conf,
915
+ "get",
916
+ constructUrl({
917
+ url: this._urls["getPromotions"],
918
+ params: {},
919
+ }),
920
+ query_params,
921
+ undefined,
922
+ { ...xHeaders, ...requestHeaders },
923
+ { responseHeaders }
924
+ );
925
+
926
+ let responseData = response;
927
+ if (responseHeaders) {
928
+ responseData = response[0];
929
+ }
930
+
931
+ return response;
932
+ }
933
+
934
+ /**
935
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
936
+ * @param {import("../ApplicationAPIClient").Options} - Options
937
+ * @returns {Promise<CartShipmentsResult>} - Success response
847
938
  * @name getShipments
848
939
  * @summary: List shipments
849
940
  * @description: Get shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
@@ -888,7 +979,7 @@ class Cart {
888
979
  /**
889
980
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
890
981
  * @param {import("../ApplicationAPIClient").Options} - Options
891
- * @returns {Promise<DeleteAddressResponse>} - Success response
982
+ * @returns {Promise<DeleteAddressResult>} - Success response
892
983
  * @name removeAddress
893
984
  * @summary: Removes an address from a customer's address list
894
985
  * @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
@@ -934,7 +1025,7 @@ class Cart {
934
1025
  /**
935
1026
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
936
1027
  * @param {import("../ApplicationAPIClient").Options} - Options
937
- * @returns {Promise<CartDetailResponse>} - Success response
1028
+ * @returns {Promise<CartDetailResult>} - Success response
938
1029
  * @name removeCoupon
939
1030
  * @summary: Remove coupon
940
1031
  * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
@@ -973,7 +1064,7 @@ class Cart {
973
1064
  /**
974
1065
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
975
1066
  * @param {import("../ApplicationAPIClient").Options} - Options
976
- * @returns {Promise<CartDetailResponse>} - Success response
1067
+ * @returns {Promise<CartDetailResult>} - Success response
977
1068
  * @name selectAddress
978
1069
  * @summary: Select customer address for order processing
979
1070
  * @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
@@ -1014,7 +1105,7 @@ class Cart {
1014
1105
  /**
1015
1106
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1016
1107
  * @param {import("../ApplicationAPIClient").Options} - Options
1017
- * @returns {Promise<CartDetailResponse>} - Success response
1108
+ * @returns {Promise<CartDetailResult>} - Success response
1018
1109
  * @name selectPaymentMode
1019
1110
  * @summary: Select payment mode
1020
1111
  * @description: Select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
@@ -1053,7 +1144,7 @@ class Cart {
1053
1144
  /**
1054
1145
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1055
1146
  * @param {import("../ApplicationAPIClient").Options} - Options
1056
- * @returns {Promise<UpdateAddressResponse>} - Success response
1147
+ * @returns {Promise<UpdateAddressResult>} - Success response
1057
1148
  * @name updateAddress
1058
1149
  * @summary: Updates an existing customer address
1059
1150
  * @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
@@ -1099,7 +1190,7 @@ class Cart {
1099
1190
  /**
1100
1191
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1101
1192
  * @param {import("../ApplicationAPIClient").Options} - Options
1102
- * @returns {Promise<UpdateCartDetailResponse>} - Success response
1193
+ * @returns {Promise<UpdateCartDetailResult>} - Success response
1103
1194
  * @name updateCart
1104
1195
  * @summary: Update cart items
1105
1196
  * @description: Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
@@ -1153,7 +1244,7 @@ class Cart {
1153
1244
  /**
1154
1245
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1155
1246
  * @param {import("../ApplicationAPIClient").Options} - Options
1156
- * @returns {Promise<CartMetaResponse>} - Success response
1247
+ * @returns {Promise<CartMetaResult>} - Success response
1157
1248
  * @name updateCartMeta
1158
1249
  * @summary: Update cart metadata
1159
1250
  * @description: Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
@@ -1192,7 +1283,7 @@ class Cart {
1192
1283
  /**
1193
1284
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1194
1285
  * @param {import("../ApplicationAPIClient").Options} - Options
1195
- * @returns {Promise<SharedCartResponse>} - Success response
1286
+ * @returns {Promise<SharedCartResult>} - Success response
1196
1287
  * @name updateCartWithSharedItems
1197
1288
  * @summary: Update with shared items
1198
1289
  * @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).