@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-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 (154) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.js +0 -18
  8. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
  9. package/sdk/application/Cart/CartApplicationClient.js +60 -1185
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1293
  12. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  13. package/sdk/application/Common/CommonApplicationClient.js +5 -89
  14. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  15. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
  18. package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
  19. package/sdk/application/Content/ContentApplicationClient.js +77 -914
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -12
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.js +22 -125
  22. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  23. package/sdk/application/Lead/LeadApplicationClient.js +32 -202
  24. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
  26. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
  27. package/sdk/application/Order/OrderApplicationClient.js +86 -472
  28. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
  29. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
  30. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
  31. package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
  32. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  33. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  34. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  35. package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
  36. package/sdk/application/User/UserApplicationClient.d.ts +85 -136
  37. package/sdk/application/User/UserApplicationClient.js +45 -1815
  38. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
  39. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
  40. package/sdk/application/index.d.ts +0 -18
  41. package/sdk/application/index.js +0 -33
  42. package/sdk/common/Utility.d.ts +1 -1
  43. package/sdk/common/Utility.js +10 -7
  44. package/sdk/common/Validator.d.ts +1 -0
  45. package/sdk/common/Validator.js +20 -0
  46. package/sdk/common/utils.d.ts +0 -1
  47. package/sdk/common/utils.js +0 -14
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +2 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -0
  50. package/sdk/partner/OAuthClient.js +1 -0
  51. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  52. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  53. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -0
  54. package/sdk/platform/Cart/CartPlatformModel.js +12 -0
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
  57. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
  58. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
  59. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -1
  60. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +3 -0
  61. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -1
  62. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +3 -0
  63. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -1
  64. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -0
  65. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  66. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  67. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  68. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  69. package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
  70. package/sdk/platform/Order/OrderPlatformClient.js +99 -0
  71. package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
  72. package/sdk/platform/Order/OrderPlatformModel.js +3 -0
  73. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  74. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  75. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  76. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  77. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
  78. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
  79. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
  80. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
  81. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  82. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  83. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
  84. package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
  85. package/sdk/public/Content/ContentPublicClient.js +14 -2
  86. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  87. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  88. package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
  89. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  90. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  91. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  92. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  93. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  94. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  95. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  96. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  97. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  98. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  99. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  100. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  101. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  102. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  103. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  104. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  105. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  106. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  107. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  108. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  109. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  110. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  111. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  112. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  113. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  114. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  115. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  116. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  117. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  118. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  119. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  120. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  121. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  122. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  123. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  124. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  125. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  126. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  127. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  128. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  129. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  130. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  131. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  132. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  133. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  134. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  135. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  136. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  137. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  138. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  139. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  140. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  141. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  142. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  143. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  144. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  145. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  146. package/sdk/application/User/UserApplicationModel.js +0 -1382
  147. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  148. package/sdk/application/User/UserApplicationValidator.js +0 -573
  149. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  150. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  151. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  152. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  153. package/sdk/common/Clickstream.d.ts +0 -1
  154. package/sdk/common/Clickstream.js +0 -464
package/README.md CHANGED
@@ -30,7 +30,7 @@ const {
30
30
 
31
31
  #### Browser
32
32
 
33
- you can load fdk-client-javascript's application browser bundle from CDN; `ApplicationConfig`, `ApplicationClient` and `ApplicationModels` will be attached to browser's `window` object.
33
+ you can load fdk-client-javascript's application browser bundle from CDN; `ApplicationConfig` and `ApplicationClient` will be attached to browser's `window` object.
34
34
 
35
35
  ```html
36
36
  <script src="https://cdn.jsdelivr.net/gh/gofynd/fdk-client-javascript@<version>/dist/application.js"></script>
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
237
237
  The above code will log the curl command in the console
238
238
 
239
239
  ```bash
240
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: v1.4.15-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
240
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.15-beta.10' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
241
241
  Active Theme: Emerge
242
242
  ```
243
243
 
package/application.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import { ApplicationConfig } from "./sdk/application";
2
2
  import { ApplicationClient } from "./sdk/application";
3
- import { ApplicationModel } from "./sdk/application";
4
- export { ApplicationConfig, ApplicationClient, ApplicationModel };
3
+ export { ApplicationConfig, ApplicationClient };
package/application.js CHANGED
@@ -1,7 +1,6 @@
1
- const {ApplicationConfig, ApplicationClient, ApplicationModel} = require('./sdk/application');
1
+ const {ApplicationConfig, ApplicationClient } = require('./sdk/application');
2
2
 
3
3
  module.exports = {
4
4
  ApplicationConfig: ApplicationConfig,
5
- ApplicationClient: ApplicationClient,
6
- ApplicationModel: ApplicationModel
5
+ ApplicationClient: ApplicationClient
7
6
  };
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ApplicationConfig } from "./sdk/application";
2
2
  import { ApplicationClient } from "./sdk/application";
3
- import { ApplicationModel } from "./sdk/application";
4
3
  import { PartnerConfig } from "./sdk/partner";
5
4
  import { PartnerClient } from "./sdk/partner";
6
5
  import { PartnerModel } from "./sdk/partner";
@@ -13,4 +12,4 @@ import { PublicModel } from "./sdk/public";
13
12
  import { fdkAxios } from "./sdk/common/AxiosHelper";
14
13
  import Utility = require("./sdk/common/Utility");
15
14
  import Constant = require("./sdk/common/Constant");
16
- export { ApplicationConfig, ApplicationClient, ApplicationModel, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant };
15
+ export { ApplicationConfig, ApplicationClient, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant };
package/index.js CHANGED
@@ -12,27 +12,33 @@ module.exports = {
12
12
 
13
13
  ApplicationConfig,
14
14
  ApplicationClient,
15
- ApplicationModel,
15
+
16
16
 
17
17
 
18
18
 
19
19
  PartnerConfig,
20
20
  PartnerClient,
21
+
21
22
  PartnerModel,
22
23
 
23
24
 
24
25
 
26
+
25
27
  PlatformConfig,
26
28
  PlatformClient,
29
+
27
30
  PlatformModel,
28
31
 
29
32
 
30
33
 
34
+
31
35
  PublicConfig,
32
36
  PublicClient,
37
+
33
38
  PublicModel,
34
39
 
35
40
 
41
+
36
42
  FdkAxios: fdkAxios,
37
43
  Utility,
38
44
  Constant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "v1.4.15-beta.1",
3
+ "version": "1.4.15-beta.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,8 +18,7 @@
18
18
  "joi": "^17.7.0",
19
19
  "loglevel": "^1.8.1",
20
20
  "query-string": "^7.1.3",
21
- "@gofynd/fp-signature": "^1.0.1",
22
- "@gofynd/flick": "^1.0.9"
21
+ "@gofynd/fp-signature": "^1.0.1"
23
22
  },
24
23
  "devDependencies": {
25
24
  "axios-cookiejar-support": "^4.0.6",
@@ -44,24 +44,6 @@ class ApplicationClient {
44
44
  this.theme = new Theme(config);
45
45
  this.user = new User(config);
46
46
  this.webhook = new Webhook(config);
47
- if (
48
- typeof window != "undefined" &&
49
- config.options &&
50
- config.options.enable_clickstream
51
- ) {
52
- const Clickstream = require("@gofynd/flick");
53
- Logger({
54
- level: "DEBUG",
55
- message: `initializing clickstream with base url ${config.domain}`,
56
- });
57
- Clickstream.initialize(
58
- config.domain,
59
- convertStringToBase64(
60
- config.applicationID + ":" + config.applicationToken
61
- )
62
- );
63
- require("../common/Clickstream");
64
- }
65
47
  }
66
48
 
67
49
  /**
@@ -35,108 +35,96 @@ declare class Cart {
35
35
  _urls: {};
36
36
  updateUrls(urls: any): void;
37
37
  /**
38
- * @param {CartApplicationValidator.AddAddressParam} arg - Arg object.
39
38
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
40
39
  * @param {import("../ApplicationAPIClient").Options} - Options
41
- * @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
40
+ * @returns {Promise<SaveAddressResponse>} - Success response
42
41
  * @name addAddress
43
42
  * @summary: Creates a new address for a customer
44
43
  * @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/).
45
44
  */
46
- addAddress({ body, requestHeaders }?: CartApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.SaveAddressResponse>;
45
+ addAddress({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SaveAddressResponse>;
47
46
  /**
48
- * @param {CartApplicationValidator.AddItemsParam} arg - Arg object.
49
47
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
50
48
  * @param {import("../ApplicationAPIClient").Options} - Options
51
- * @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
49
+ * @returns {Promise<AddCartDetailResponse>} - Success response
52
50
  * @name addItems
53
51
  * @summary: Add items to a cart
54
52
  * @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/).
55
53
  */
56
- addItems({ body, i, b, areaCode, buyNow, id, orderType, requestHeaders }?: CartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.AddCartDetailResponse>;
54
+ addItems({ body, i, b, areaCode, buyNow, id, orderType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AddCartDetailResponse>;
57
55
  /**
58
- * @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object.
59
56
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
60
57
  * @param {import("../ApplicationAPIClient").Options} - Options
61
- * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
58
+ * @returns {Promise<CartDetailResponse>} - Success response
62
59
  * @name applyCoupon
63
60
  * @summary: Apply coupon
64
61
  * @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/).
65
62
  */
66
- applyCoupon({ body, i, b, p, id, buyNow, cartType, requestHeaders }?: CartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
63
+ applyCoupon({ body, i, b, p, id, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
67
64
  /**
68
- * @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
69
65
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
70
66
  * @param {import("../ApplicationAPIClient").Options} - Options
71
- * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
67
+ * @returns {Promise<CartDetailResponse>} - Success response
72
68
  * @name applyRewardPoints
73
69
  * @summary: Use reward points
74
70
  * @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/).
75
71
  */
76
- applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: CartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
72
+ applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
77
73
  /**
78
- * @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object.
79
74
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
80
75
  * @param {import("../ApplicationAPIClient").Options} - Options
81
- * @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
76
+ * @returns {Promise<CartCheckoutResponse>} - Success response
82
77
  * @name checkoutCartV2
83
78
  * @summary: Checkout cart
84
79
  * @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/).
85
80
  */
86
- checkoutCartV2({ body, buyNow, cartType, requestHeaders }?: CartApplicationValidator.CheckoutCartV2Param, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
81
+ checkoutCartV2({ body, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResponse>;
87
82
  /**
88
- * @param {CartApplicationValidator.DeleteCartParam} arg - Arg object.
89
83
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
90
84
  * @param {import("../ApplicationAPIClient").Options} - Options
91
- * @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
92
- * Success response
85
+ * @returns {Promise<DeleteCartDetailResponse>} - Success response
93
86
  * @name deleteCart
94
87
  * @summary: Delete a cart
95
88
  * @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/).
96
89
  */
97
- deleteCart({ id, requestHeaders }?: CartApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteCartDetailResponse>;
90
+ deleteCart({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<DeleteCartDetailResponse>;
98
91
  /**
99
- * @param {CartApplicationValidator.GetAddressByIdParam} arg - Arg object.
100
92
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
101
93
  * @param {import("../ApplicationAPIClient").Options} - Options
102
- * @returns {Promise<CartApplicationModel.Address>} - Success response
94
+ * @returns {Promise<Address>} - Success response
103
95
  * @name getAddressById
104
96
  * @summary: Get details for a single customer address
105
97
  * @description: Get a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
106
98
  */
107
- getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<CartApplicationModel.Address>;
99
+ getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Address>;
108
100
  /**
109
- * @param {CartApplicationValidator.GetAddressesParam} arg - Arg object.
110
101
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
102
  * @param {import("../ApplicationAPIClient").Options} - Options
112
- * @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
103
+ * @returns {Promise<GetAddressesResponse>} - Success response
113
104
  * @name getAddresses
114
105
  * @summary: Get a list of addresses for a customer
115
106
  * @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/).
116
107
  */
117
- getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetAddressesResponse>;
108
+ getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetAddressesResponse>;
118
109
  /**
119
- * @param {CartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
120
110
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
121
111
  * @param {import("../ApplicationAPIClient").Options} - Options
122
- * @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
112
+ * @returns {Promise<BulkPriceResponse>} - Success response
123
113
  * @name getBulkDiscountOffers
124
114
  * @summary: List bulk discounts
125
115
  * @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/).
126
116
  */
127
- getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: CartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.BulkPriceResponse>;
117
+ getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<BulkPriceResponse>;
128
118
  /**
129
- * @param {CartApplicationValidator.GetCartParam} arg - Arg object.
130
119
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
131
120
  * @param {import("../ApplicationAPIClient").Options} - Options
132
- * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
121
+ * @returns {Promise<CartDetailResponse>} - Success response
133
122
  * @name getCart
134
123
  * @summary: Get a cart
135
124
  * @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/).
136
125
  */
137
- getCart({ id, i, b, c, assignCardId, areaCode, buyNow, orderType, requestHeaders, }?: CartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
126
+ getCart({ id, i, b, c, assignCardId, areaCode, buyNow, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
138
127
  /**
139
- * @param {CartApplicationValidator.GetCartLastModifiedParam} arg - Arg object.
140
128
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
141
129
  * @param {import("../ApplicationAPIClient").Options} - Options
142
130
  * @returns {Promise<any>} - Success response
@@ -144,181 +132,158 @@ declare class Cart {
144
132
  * @summary: Get last modified timestamp of a cart
145
133
  * @description: Retrieve the last modified timestamp of the cart using unique cart ID. It indicates the most recent update made to the cart's content or properties. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
146
134
  */
147
- getCartLastModified({ id, requestHeaders }?: CartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise<any>;
135
+ getCartLastModified({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<any>;
148
136
  /**
149
- * @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
150
137
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
151
138
  * @param {import("../ApplicationAPIClient").Options} - Options
152
- * @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
153
- * Success response
139
+ * @returns {Promise<GetShareCartLinkResponse>} - Success response
154
140
  * @name getCartShareLink
155
141
  * @summary: Create share cart link
156
142
  * @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/).
157
143
  */
158
- getCartShareLink({ body, requestHeaders }?: CartApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetShareCartLinkResponse>;
144
+ getCartShareLink({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetShareCartLinkResponse>;
159
145
  /**
160
- * @param {CartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
161
146
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
162
147
  * @param {import("../ApplicationAPIClient").Options} - Options
163
- * @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
148
+ * @returns {Promise<SharedCartResponse>} - Success response
164
149
  * @name getCartSharedItems
165
150
  * @summary: List shared cart items
166
151
  * @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/).
167
152
  */
168
- getCartSharedItems({ token, requestHeaders }?: CartApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
153
+ getCartSharedItems({ token, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SharedCartResponse>;
169
154
  /**
170
- * @param {CartApplicationValidator.GetCouponsParam} arg - Arg object.
171
155
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
172
156
  * @param {import("../ApplicationAPIClient").Options} - Options
173
- * @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
157
+ * @returns {Promise<GetCouponResponse>} - Success response
174
158
  * @name getCoupons
175
159
  * @summary: List available coupons
176
160
  * @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/).
177
161
  */
178
- getCoupons({ id, buyNow, slug, storeId, requestHeaders }?: CartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetCouponResponse>;
162
+ getCoupons({ id, buyNow, slug, storeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCouponResponse>;
179
163
  /**
180
- * @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
181
164
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
182
165
  * @param {import("../ApplicationAPIClient").Options} - Options
183
- * @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
166
+ * @returns {Promise<CartItemCountResponse>} - Success response
184
167
  * @name getItemCount
185
168
  * @summary: Get a cart items count
186
169
  * @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/).
187
170
  */
188
- getItemCount({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartItemCountResponse>;
171
+ getItemCount({ id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartItemCountResponse>;
189
172
  /**
190
- * @param {CartApplicationValidator.GetLadderOffersParam} arg - Arg object.
191
173
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
192
174
  * @param {import("../ApplicationAPIClient").Options} - Options
193
- * @returns {Promise<CartApplicationModel.LadderPriceOffers>} - Success response
175
+ * @returns {Promise<LadderPriceOffers>} - Success response
194
176
  * @name getLadderOffers
195
177
  * @summary: List ladder offers
196
178
  * @description: Get ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
197
179
  */
198
- getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?: CartApplicationValidator.GetLadderOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.LadderPriceOffers>;
180
+ getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LadderPriceOffers>;
199
181
  /**
200
- * @param {CartApplicationValidator.GetPromotionOffersParam} arg - Arg object.
201
182
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
202
183
  * @param {import("../ApplicationAPIClient").Options} - Options
203
- * @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
184
+ * @returns {Promise<PromotionOffersResponse>} - Success response
204
185
  * @name getPromotionOffers
205
186
  * @summary: List available promotion offers
206
187
  * @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/).
207
188
  */
208
- getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: CartApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.PromotionOffersResponse>;
189
+ getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionOffersResponse>;
209
190
  /**
210
- * @param {CartApplicationValidator.GetPromotionPaymentOffersParam} arg - Arg object.
211
191
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
212
192
  * @param {import("../ApplicationAPIClient").Options} - Options
213
- * @returns {Promise<CartApplicationModel.PromotionPaymentOffersResponse>}
214
- * - Success response
215
- *
193
+ * @returns {Promise<PromotionPaymentOffersResponse>} - Success response
216
194
  * @name getPromotionPaymentOffers
217
195
  * @summary: Fetch available promotions payment offers
218
196
  * @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/).
219
197
  */
220
- getPromotionPaymentOffers({ id, uid, requestHeaders }?: CartApplicationValidator.GetPromotionPaymentOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.PromotionPaymentOffersResponse>;
198
+ getPromotionPaymentOffers({ id, uid, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionPaymentOffersResponse>;
221
199
  /**
222
- * @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object.
223
200
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
224
201
  * @param {import("../ApplicationAPIClient").Options} - Options
225
- * @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
202
+ * @returns {Promise<CartShipmentsResponse>} - Success response
226
203
  * @name getShipments
227
204
  * @summary: List shipments
228
205
  * @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/).
229
206
  */
230
- getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?: CartApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartShipmentsResponse>;
207
+ getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartShipmentsResponse>;
231
208
  /**
232
- * @param {CartApplicationValidator.RemoveAddressParam} arg - Arg object.
233
209
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
234
210
  * @param {import("../ApplicationAPIClient").Options} - Options
235
- * @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
211
+ * @returns {Promise<DeleteAddressResponse>} - Success response
236
212
  * @name removeAddress
237
213
  * @summary: Removes an address from a customer's address list
238
214
  * @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
239
215
  */
240
- removeAddress({ id, requestHeaders }?: CartApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteAddressResponse>;
216
+ removeAddress({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<DeleteAddressResponse>;
241
217
  /**
242
- * @param {CartApplicationValidator.RemoveCouponParam} arg - Arg object.
243
218
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
244
219
  * @param {import("../ApplicationAPIClient").Options} - Options
245
- * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
220
+ * @returns {Promise<CartDetailResponse>} - Success response
246
221
  * @name removeCoupon
247
222
  * @summary: Remove coupon
248
223
  * @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/).
249
224
  */
250
- removeCoupon({ id, buyNow, requestHeaders }?: CartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
225
+ removeCoupon({ id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
251
226
  /**
252
- * @param {CartApplicationValidator.SelectAddressParam} arg - Arg object.
253
227
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
254
228
  * @param {import("../ApplicationAPIClient").Options} - Options
255
- * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
229
+ * @returns {Promise<CartDetailResponse>} - Success response
256
230
  * @name selectAddress
257
231
  * @summary: Select customer address for order processing
258
232
  * @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/).
259
233
  */
260
- selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
234
+ selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
261
235
  /**
262
- * @param {CartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
263
236
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
264
237
  * @param {import("../ApplicationAPIClient").Options} - Options
265
- * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
238
+ * @returns {Promise<CartDetailResponse>} - Success response
266
239
  * @name selectPaymentMode
267
240
  * @summary: Select payment mode
268
241
  * @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/).
269
242
  */
270
- selectPaymentMode({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
243
+ selectPaymentMode({ body, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
271
244
  /**
272
- * @param {CartApplicationValidator.UpdateAddressParam} arg - Arg object.
273
245
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
274
246
  * @param {import("../ApplicationAPIClient").Options} - Options
275
- * @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
247
+ * @returns {Promise<UpdateAddressResponse>} - Success response
276
248
  * @name updateAddress
277
249
  * @summary: Updates an existing customer address
278
250
  * @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/).
279
251
  */
280
- updateAddress({ id, body, requestHeaders }?: CartApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateAddressResponse>;
252
+ updateAddress({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<UpdateAddressResponse>;
281
253
  /**
282
- * @param {CartApplicationValidator.UpdateCartParam} arg - Arg object.
283
254
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
284
255
  * @param {import("../ApplicationAPIClient").Options} - Options
285
- * @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
286
- * Success response
256
+ * @returns {Promise<UpdateCartDetailResponse>} - Success response
287
257
  * @name updateCart
288
258
  * @summary: Update cart items
289
259
  * @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/).
290
260
  */
291
- updateCart({ body, id, i, b, areaCode, buyNow, cartType, orderType, requestHeaders, }?: CartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateCartDetailResponse>;
261
+ updateCart({ body, id, i, b, areaCode, buyNow, cartType, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResponse>;
292
262
  /**
293
- * @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
294
263
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
295
264
  * @param {import("../ApplicationAPIClient").Options} - Options
296
- * @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
265
+ * @returns {Promise<CartMetaResponse>} - Success response
297
266
  * @name updateCartMeta
298
267
  * @summary: Update cart metadata
299
268
  * @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/).
300
269
  */
301
- updateCartMeta({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartMetaResponse>;
270
+ updateCartMeta({ body, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartMetaResponse>;
302
271
  /**
303
- * @param {CartApplicationValidator.UpdateCartWithSharedItemsParam} arg - Arg object.
304
272
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
305
273
  * @param {import("../ApplicationAPIClient").Options} - Options
306
- * @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
274
+ * @returns {Promise<SharedCartResponse>} - Success response
307
275
  * @name updateCartWithSharedItems
308
276
  * @summary: Update with shared items
309
277
  * @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
310
278
  */
311
- updateCartWithSharedItems({ token, action, requestHeaders }?: CartApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
279
+ updateCartWithSharedItems({ token, action, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SharedCartResponse>;
312
280
  /**
313
- * @param {CartApplicationValidator.ValidateCouponForPaymentParam} arg - Arg object.
314
281
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
315
282
  * @param {import("../ApplicationAPIClient").Options} - Options
316
- * @returns {Promise<CartApplicationModel.PaymentCouponValidate>} - Success response
283
+ * @returns {Promise<PaymentCouponValidate>} - Success response
317
284
  * @name validateCouponForPayment
318
285
  * @summary: Validate applied coupon
319
286
  * @description: Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
320
287
  */
321
- validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartApplicationModel.PaymentCouponValidate>;
288
+ validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PaymentCouponValidate>;
322
289
  }
323
- import CartApplicationValidator = require("./CartApplicationValidator");
324
- import CartApplicationModel = require("./CartApplicationModel");