@gofynd/fdk-client-javascript 3.23.0 → 3.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +12 -12
- package/sdk/application/Cart/CartApplicationClient.js +119 -33
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.js +4 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +84 -13
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +52 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +7 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5 -2
- package/sdk/platform/Common/CommonPlatformClient.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +96 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +61 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
- package/sdk/platform/Order/OrderPlatformClient.d.ts +28 -0
- package/sdk/platform/Order/OrderPlatformClient.js +179 -3
- package/sdk/platform/Order/OrderPlatformModel.d.ts +155 -6
- package/sdk/platform/Order/OrderPlatformModel.js +105 -3
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +30 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +24 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +18 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +14 -1
- package/sdk/platform/User/UserPlatformModel.js +16 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.24.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ declare class Cart {
|
|
|
57
57
|
* @summary: Add items to a cart
|
|
58
58
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/addItems/).
|
|
59
59
|
*/
|
|
60
|
-
addItems({ body, xOrderingSource, i, b, includeCartCalculation, areaCode, buyNow, id, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AddCartDetailResult>;
|
|
60
|
+
addItems({ body, xOrderingSource, xOrderingSourceType, i, b, includeCartCalculation, areaCode, buyNow, id, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AddCartDetailResult>;
|
|
61
61
|
/**
|
|
62
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
63
63
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -66,7 +66,7 @@ declare class Cart {
|
|
|
66
66
|
* @summary: Apply coupon
|
|
67
67
|
* @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyCoupon/).
|
|
68
68
|
*/
|
|
69
|
-
applyCoupon({ body, xOrderingSource, i, b, p, id, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
69
|
+
applyCoupon({ body, xOrderingSource, xOrderingSourceType, i, b, p, id, buyNow, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
70
70
|
/**
|
|
71
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
72
72
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -75,7 +75,7 @@ declare class Cart {
|
|
|
75
75
|
* @summary: Use loyalty points
|
|
76
76
|
* @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyLoyaltyPoints/).
|
|
77
77
|
*/
|
|
78
|
-
applyLoyaltyPoints({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
78
|
+
applyLoyaltyPoints({ body, xOrderingSource, xOrderingSourceType, id, i, b, buyNow, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
79
79
|
/**
|
|
80
80
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
81
81
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -93,7 +93,7 @@ declare class Cart {
|
|
|
93
93
|
* @summary: Checkout cart
|
|
94
94
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCart/).
|
|
95
95
|
*/
|
|
96
|
-
checkoutCart({ body, xOrderingSource, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
|
|
96
|
+
checkoutCart({ body, xOrderingSource, xOrderingSourceType, buyNow, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
|
|
97
97
|
/**
|
|
98
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
99
99
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -102,7 +102,7 @@ declare class Cart {
|
|
|
102
102
|
* @summary: Checkout cart
|
|
103
103
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCartV2/).
|
|
104
104
|
*/
|
|
105
|
-
checkoutCartV2({ body, xOrderingSource, xLocationDetail, xCurrencyCode, buyNow, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
|
|
105
|
+
checkoutCartV2({ body, xOrderingSource, xOrderingSourceType, xLocationDetail, xCurrencyCode, buyNow, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
|
|
106
106
|
/**
|
|
107
107
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
108
108
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -147,7 +147,7 @@ declare class Cart {
|
|
|
147
147
|
* @summary: Get a cart
|
|
148
148
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/getCart/).
|
|
149
149
|
*/
|
|
150
|
-
getCart({ xOrderingSource, id, i, b, c, assignCardId, areaCode, buyNow, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
150
|
+
getCart({ xOrderingSource, xOrderingSourceType, id, i, b, c, assignCardId, areaCode, buyNow, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
151
151
|
/**
|
|
152
152
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
153
153
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -264,7 +264,7 @@ declare class Cart {
|
|
|
264
264
|
* @summary: Remove coupon
|
|
265
265
|
* @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/removeCoupon/).
|
|
266
266
|
*/
|
|
267
|
-
removeCoupon({ xOrderingSource, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
267
|
+
removeCoupon({ xOrderingSource, xOrderingSourceType, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
268
268
|
/**
|
|
269
269
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
270
270
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -282,7 +282,7 @@ declare class Cart {
|
|
|
282
282
|
* @summary: Select customer address for order processing
|
|
283
283
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/selectAddress/).
|
|
284
284
|
*/
|
|
285
|
-
selectAddress({ body, xOrderingSource, cartId, buyNow, i, b, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
285
|
+
selectAddress({ body, xOrderingSource, xOrderingSourceType, cartId, buyNow, i, b, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
286
286
|
/**
|
|
287
287
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
288
288
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -291,7 +291,7 @@ declare class Cart {
|
|
|
291
291
|
* @summary: Select payment mode
|
|
292
292
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/selectPaymentMode/).
|
|
293
293
|
*/
|
|
294
|
-
selectPaymentMode({ body, xOrderingSource, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
294
|
+
selectPaymentMode({ body, xOrderingSource, xOrderingSourceType, id, buyNow, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
|
|
295
295
|
/**
|
|
296
296
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
297
297
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -309,7 +309,7 @@ declare class Cart {
|
|
|
309
309
|
* @summary: Update cart items
|
|
310
310
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/updateCart/).
|
|
311
311
|
*/
|
|
312
|
-
updateCart({ body, xOrderingSource, id, i, b, includeCartCalculation, areaCode, buyNow, cartType, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
|
|
312
|
+
updateCart({ body, xOrderingSource, xOrderingSourceType, id, i, b, includeCartCalculation, areaCode, buyNow, cartType, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
|
|
313
313
|
/**
|
|
314
314
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
315
315
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -318,7 +318,7 @@ declare class Cart {
|
|
|
318
318
|
* @summary: Update store credits into cart and their items
|
|
319
319
|
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
|
|
320
320
|
*/
|
|
321
|
-
updateCartBreakup({ body, xOrderingSource, id, i, b, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
|
|
321
|
+
updateCartBreakup({ body, xOrderingSource, xOrderingSourceType, id, i, b, buyNow, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
|
|
322
322
|
/**
|
|
323
323
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
324
324
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -345,5 +345,5 @@ declare class Cart {
|
|
|
345
345
|
* @summary: Validate applied coupon
|
|
346
346
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/validateCouponForPayment/).
|
|
347
347
|
*/
|
|
348
|
-
validateCouponForPayment({ xOrderingSource, id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PaymentCouponValidate>;
|
|
348
|
+
validateCouponForPayment({ xOrderingSource, xOrderingSourceType, id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PaymentCouponValidate>;
|
|
349
349
|
}
|
|
@@ -116,6 +116,7 @@ class Cart {
|
|
|
116
116
|
{
|
|
117
117
|
body,
|
|
118
118
|
xOrderingSource,
|
|
119
|
+
xOrderingSourceType,
|
|
119
120
|
i,
|
|
120
121
|
b,
|
|
121
122
|
includeCartCalculation,
|
|
@@ -137,7 +138,10 @@ class Cart {
|
|
|
137
138
|
query_params["order_type"] = orderType;
|
|
138
139
|
|
|
139
140
|
const xHeaders = {};
|
|
140
|
-
|
|
141
|
+
if (xOrderingSource !== undefined)
|
|
142
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
143
|
+
if (xOrderingSourceType !== undefined)
|
|
144
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
141
145
|
|
|
142
146
|
const response = await ApplicationAPIClient.execute(
|
|
143
147
|
this._conf,
|
|
@@ -169,9 +173,18 @@ class Cart {
|
|
|
169
173
|
* @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyCoupon/).
|
|
170
174
|
*/
|
|
171
175
|
async applyCoupon(
|
|
172
|
-
{
|
|
173
|
-
|
|
174
|
-
|
|
176
|
+
{
|
|
177
|
+
body,
|
|
178
|
+
xOrderingSource,
|
|
179
|
+
xOrderingSourceType,
|
|
180
|
+
i,
|
|
181
|
+
b,
|
|
182
|
+
p,
|
|
183
|
+
id,
|
|
184
|
+
buyNow,
|
|
185
|
+
cartType,
|
|
186
|
+
requestHeaders,
|
|
187
|
+
} = { requestHeaders: {} },
|
|
175
188
|
{ responseHeaders } = { responseHeaders: false }
|
|
176
189
|
) {
|
|
177
190
|
const query_params = {};
|
|
@@ -183,7 +196,10 @@ class Cart {
|
|
|
183
196
|
query_params["cart_type"] = cartType;
|
|
184
197
|
|
|
185
198
|
const xHeaders = {};
|
|
186
|
-
|
|
199
|
+
if (xOrderingSource !== undefined)
|
|
200
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
201
|
+
if (xOrderingSourceType !== undefined)
|
|
202
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
187
203
|
|
|
188
204
|
const response = await ApplicationAPIClient.execute(
|
|
189
205
|
this._conf,
|
|
@@ -215,9 +231,16 @@ class Cart {
|
|
|
215
231
|
* @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyLoyaltyPoints/).
|
|
216
232
|
*/
|
|
217
233
|
async applyLoyaltyPoints(
|
|
218
|
-
{
|
|
219
|
-
|
|
220
|
-
|
|
234
|
+
{
|
|
235
|
+
body,
|
|
236
|
+
xOrderingSource,
|
|
237
|
+
xOrderingSourceType,
|
|
238
|
+
id,
|
|
239
|
+
i,
|
|
240
|
+
b,
|
|
241
|
+
buyNow,
|
|
242
|
+
requestHeaders,
|
|
243
|
+
} = { requestHeaders: {} },
|
|
221
244
|
{ responseHeaders } = { responseHeaders: false }
|
|
222
245
|
) {
|
|
223
246
|
const query_params = {};
|
|
@@ -227,7 +250,10 @@ class Cart {
|
|
|
227
250
|
query_params["buy_now"] = buyNow;
|
|
228
251
|
|
|
229
252
|
const xHeaders = {};
|
|
230
|
-
|
|
253
|
+
if (xOrderingSource !== undefined)
|
|
254
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
255
|
+
if (xOrderingSourceType !== undefined)
|
|
256
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
231
257
|
|
|
232
258
|
const response = await ApplicationAPIClient.execute(
|
|
233
259
|
this._conf,
|
|
@@ -298,9 +324,14 @@ class Cart {
|
|
|
298
324
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCart/).
|
|
299
325
|
*/
|
|
300
326
|
async checkoutCart(
|
|
301
|
-
{
|
|
302
|
-
|
|
303
|
-
|
|
327
|
+
{
|
|
328
|
+
body,
|
|
329
|
+
xOrderingSource,
|
|
330
|
+
xOrderingSourceType,
|
|
331
|
+
buyNow,
|
|
332
|
+
cartType,
|
|
333
|
+
requestHeaders,
|
|
334
|
+
} = { requestHeaders: {} },
|
|
304
335
|
{ responseHeaders } = { responseHeaders: false }
|
|
305
336
|
) {
|
|
306
337
|
const query_params = {};
|
|
@@ -308,7 +339,10 @@ class Cart {
|
|
|
308
339
|
query_params["cart_type"] = cartType;
|
|
309
340
|
|
|
310
341
|
const xHeaders = {};
|
|
311
|
-
|
|
342
|
+
if (xOrderingSource !== undefined)
|
|
343
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
344
|
+
if (xOrderingSourceType !== undefined)
|
|
345
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
312
346
|
|
|
313
347
|
const response = await ApplicationAPIClient.execute(
|
|
314
348
|
this._conf,
|
|
@@ -343,6 +377,7 @@ class Cart {
|
|
|
343
377
|
{
|
|
344
378
|
body,
|
|
345
379
|
xOrderingSource,
|
|
380
|
+
xOrderingSourceType,
|
|
346
381
|
xLocationDetail,
|
|
347
382
|
xCurrencyCode,
|
|
348
383
|
buyNow,
|
|
@@ -356,9 +391,14 @@ class Cart {
|
|
|
356
391
|
query_params["cart_type"] = cartType;
|
|
357
392
|
|
|
358
393
|
const xHeaders = {};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
394
|
+
if (xOrderingSource !== undefined)
|
|
395
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
396
|
+
if (xOrderingSourceType !== undefined)
|
|
397
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
398
|
+
if (xLocationDetail !== undefined)
|
|
399
|
+
xHeaders["x-location-detail"] = xLocationDetail;
|
|
400
|
+
if (xCurrencyCode !== undefined)
|
|
401
|
+
xHeaders["x-currency-code"] = xCurrencyCode;
|
|
362
402
|
|
|
363
403
|
const response = await ApplicationAPIClient.execute(
|
|
364
404
|
this._conf,
|
|
@@ -583,6 +623,7 @@ class Cart {
|
|
|
583
623
|
async getCart(
|
|
584
624
|
{
|
|
585
625
|
xOrderingSource,
|
|
626
|
+
xOrderingSourceType,
|
|
586
627
|
id,
|
|
587
628
|
i,
|
|
588
629
|
b,
|
|
@@ -606,7 +647,10 @@ class Cart {
|
|
|
606
647
|
query_params["order_type"] = orderType;
|
|
607
648
|
|
|
608
649
|
const xHeaders = {};
|
|
609
|
-
|
|
650
|
+
if (xOrderingSource !== undefined)
|
|
651
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
652
|
+
if (xOrderingSourceType !== undefined)
|
|
653
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
610
654
|
|
|
611
655
|
const response = await ApplicationAPIClient.execute(
|
|
612
656
|
this._conf,
|
|
@@ -1165,7 +1209,9 @@ class Cart {
|
|
|
1165
1209
|
* @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/removeCoupon/).
|
|
1166
1210
|
*/
|
|
1167
1211
|
async removeCoupon(
|
|
1168
|
-
{ xOrderingSource, id, buyNow, requestHeaders } = {
|
|
1212
|
+
{ xOrderingSource, xOrderingSourceType, id, buyNow, requestHeaders } = {
|
|
1213
|
+
requestHeaders: {},
|
|
1214
|
+
},
|
|
1169
1215
|
{ responseHeaders } = { responseHeaders: false }
|
|
1170
1216
|
) {
|
|
1171
1217
|
const query_params = {};
|
|
@@ -1173,7 +1219,10 @@ class Cart {
|
|
|
1173
1219
|
query_params["buy_now"] = buyNow;
|
|
1174
1220
|
|
|
1175
1221
|
const xHeaders = {};
|
|
1176
|
-
|
|
1222
|
+
if (xOrderingSource !== undefined)
|
|
1223
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
1224
|
+
if (xOrderingSourceType !== undefined)
|
|
1225
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
1177
1226
|
|
|
1178
1227
|
const response = await ApplicationAPIClient.execute(
|
|
1179
1228
|
this._conf,
|
|
@@ -1244,9 +1293,16 @@ class Cart {
|
|
|
1244
1293
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/selectAddress/).
|
|
1245
1294
|
*/
|
|
1246
1295
|
async selectAddress(
|
|
1247
|
-
{
|
|
1248
|
-
|
|
1249
|
-
|
|
1296
|
+
{
|
|
1297
|
+
body,
|
|
1298
|
+
xOrderingSource,
|
|
1299
|
+
xOrderingSourceType,
|
|
1300
|
+
cartId,
|
|
1301
|
+
buyNow,
|
|
1302
|
+
i,
|
|
1303
|
+
b,
|
|
1304
|
+
requestHeaders,
|
|
1305
|
+
} = { requestHeaders: {} },
|
|
1250
1306
|
{ responseHeaders } = { responseHeaders: false }
|
|
1251
1307
|
) {
|
|
1252
1308
|
const query_params = {};
|
|
@@ -1256,7 +1312,10 @@ class Cart {
|
|
|
1256
1312
|
query_params["b"] = b;
|
|
1257
1313
|
|
|
1258
1314
|
const xHeaders = {};
|
|
1259
|
-
|
|
1315
|
+
if (xOrderingSource !== undefined)
|
|
1316
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
1317
|
+
if (xOrderingSourceType !== undefined)
|
|
1318
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
1260
1319
|
|
|
1261
1320
|
const response = await ApplicationAPIClient.execute(
|
|
1262
1321
|
this._conf,
|
|
@@ -1288,9 +1347,14 @@ class Cart {
|
|
|
1288
1347
|
* @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://docs.fynd.com/partners/commerce/sdk/application/cart/selectPaymentMode/).
|
|
1289
1348
|
*/
|
|
1290
1349
|
async selectPaymentMode(
|
|
1291
|
-
{
|
|
1292
|
-
|
|
1293
|
-
|
|
1350
|
+
{
|
|
1351
|
+
body,
|
|
1352
|
+
xOrderingSource,
|
|
1353
|
+
xOrderingSourceType,
|
|
1354
|
+
id,
|
|
1355
|
+
buyNow,
|
|
1356
|
+
requestHeaders,
|
|
1357
|
+
} = { requestHeaders: {} },
|
|
1294
1358
|
{ responseHeaders } = { responseHeaders: false }
|
|
1295
1359
|
) {
|
|
1296
1360
|
const query_params = {};
|
|
@@ -1298,7 +1362,10 @@ class Cart {
|
|
|
1298
1362
|
query_params["buy_now"] = buyNow;
|
|
1299
1363
|
|
|
1300
1364
|
const xHeaders = {};
|
|
1301
|
-
|
|
1365
|
+
if (xOrderingSource !== undefined)
|
|
1366
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
1367
|
+
if (xOrderingSourceType !== undefined)
|
|
1368
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
1302
1369
|
|
|
1303
1370
|
const response = await ApplicationAPIClient.execute(
|
|
1304
1371
|
this._conf,
|
|
@@ -1379,6 +1446,7 @@ class Cart {
|
|
|
1379
1446
|
{
|
|
1380
1447
|
body,
|
|
1381
1448
|
xOrderingSource,
|
|
1449
|
+
xOrderingSourceType,
|
|
1382
1450
|
id,
|
|
1383
1451
|
i,
|
|
1384
1452
|
b,
|
|
@@ -1402,7 +1470,10 @@ class Cart {
|
|
|
1402
1470
|
query_params["order_type"] = orderType;
|
|
1403
1471
|
|
|
1404
1472
|
const xHeaders = {};
|
|
1405
|
-
|
|
1473
|
+
if (xOrderingSource !== undefined)
|
|
1474
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
1475
|
+
if (xOrderingSourceType !== undefined)
|
|
1476
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
1406
1477
|
|
|
1407
1478
|
const response = await ApplicationAPIClient.execute(
|
|
1408
1479
|
this._conf,
|
|
@@ -1434,9 +1505,17 @@ class Cart {
|
|
|
1434
1505
|
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
|
|
1435
1506
|
*/
|
|
1436
1507
|
async updateCartBreakup(
|
|
1437
|
-
{
|
|
1438
|
-
|
|
1439
|
-
|
|
1508
|
+
{
|
|
1509
|
+
body,
|
|
1510
|
+
xOrderingSource,
|
|
1511
|
+
xOrderingSourceType,
|
|
1512
|
+
id,
|
|
1513
|
+
i,
|
|
1514
|
+
b,
|
|
1515
|
+
buyNow,
|
|
1516
|
+
cartType,
|
|
1517
|
+
requestHeaders,
|
|
1518
|
+
} = { requestHeaders: {} },
|
|
1440
1519
|
{ responseHeaders } = { responseHeaders: false }
|
|
1441
1520
|
) {
|
|
1442
1521
|
const query_params = {};
|
|
@@ -1447,7 +1526,10 @@ class Cart {
|
|
|
1447
1526
|
query_params["cart_type"] = cartType;
|
|
1448
1527
|
|
|
1449
1528
|
const xHeaders = {};
|
|
1450
|
-
|
|
1529
|
+
if (xOrderingSource !== undefined)
|
|
1530
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
1531
|
+
if (xOrderingSourceType !== undefined)
|
|
1532
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
1451
1533
|
|
|
1452
1534
|
const response = await ApplicationAPIClient.execute(
|
|
1453
1535
|
this._conf,
|
|
@@ -1566,6 +1648,7 @@ class Cart {
|
|
|
1566
1648
|
async validateCouponForPayment(
|
|
1567
1649
|
{
|
|
1568
1650
|
xOrderingSource,
|
|
1651
|
+
xOrderingSourceType,
|
|
1569
1652
|
id,
|
|
1570
1653
|
buyNow,
|
|
1571
1654
|
addressId,
|
|
@@ -1597,7 +1680,10 @@ class Cart {
|
|
|
1597
1680
|
query_params["cart_type"] = cartType;
|
|
1598
1681
|
|
|
1599
1682
|
const xHeaders = {};
|
|
1600
|
-
|
|
1683
|
+
if (xOrderingSource !== undefined)
|
|
1684
|
+
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
1685
|
+
if (xOrderingSourceType !== undefined)
|
|
1686
|
+
xHeaders["x-ordering-source-type"] = xOrderingSourceType;
|
|
1601
1687
|
|
|
1602
1688
|
const response = await ApplicationAPIClient.execute(
|
|
1603
1689
|
this._conf,
|
|
@@ -87,7 +87,7 @@ class Common {
|
|
|
87
87
|
query_params["query"] = query;
|
|
88
88
|
|
|
89
89
|
const xHeaders = {};
|
|
90
|
-
xHeaders["authorization"] = authorization;
|
|
90
|
+
if (authorization !== undefined) xHeaders["authorization"] = authorization;
|
|
91
91
|
|
|
92
92
|
const response = await ApplicationAPIClient.execute(
|
|
93
93
|
this._conf,
|
|
@@ -198,7 +198,8 @@ class Logistic {
|
|
|
198
198
|
query_params["page_size"] = pageSize;
|
|
199
199
|
|
|
200
200
|
const xHeaders = {};
|
|
201
|
-
|
|
201
|
+
if (xLocationDetail !== undefined)
|
|
202
|
+
xHeaders["x-location-detail"] = xLocationDetail;
|
|
202
203
|
|
|
203
204
|
const response = await ApplicationAPIClient.execute(
|
|
204
205
|
this._conf,
|
|
@@ -288,7 +289,8 @@ class Logistic {
|
|
|
288
289
|
query_params["store_id"] = storeId;
|
|
289
290
|
|
|
290
291
|
const xHeaders = {};
|
|
291
|
-
|
|
292
|
+
if (xApplicationData !== undefined)
|
|
293
|
+
xHeaders["x-application-data"] = xApplicationData;
|
|
292
294
|
|
|
293
295
|
const response = await ApplicationAPIClient.execute(
|
|
294
296
|
this._conf,
|
|
@@ -42,7 +42,7 @@ declare class Cart {
|
|
|
42
42
|
* @summary: Apply coupon
|
|
43
43
|
* @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/applyCoupon/).
|
|
44
44
|
*/
|
|
45
|
-
applyCoupon({ body, xOrderingSource, xAnonymousCart, i, b, p, id, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
45
|
+
applyCoupon({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, i, b, p, id, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
46
46
|
/**
|
|
47
47
|
* @param {CartPlatformApplicationValidator.ApplyLoyaltyPointsParam} arg - Arg object
|
|
48
48
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -52,7 +52,7 @@ declare class Cart {
|
|
|
52
52
|
* @summary: Redeem loyalty points.
|
|
53
53
|
* @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/applyLoyaltyPoints/).
|
|
54
54
|
*/
|
|
55
|
-
applyLoyaltyPoints({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyLoyaltyPointsParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
55
|
+
applyLoyaltyPoints({ body, xOrderingSource, xOrderingSourceType, id, i, b, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.ApplyLoyaltyPointsParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
56
56
|
/**
|
|
57
57
|
* @param {CartPlatformApplicationValidator.CheckCartServiceabilityParam} arg
|
|
58
58
|
* - Arg object
|
|
@@ -65,7 +65,7 @@ declare class Cart {
|
|
|
65
65
|
* @summary: Check cart serviceability
|
|
66
66
|
* @description: Verify the serviceability of items in the cart at a specific pin code and ensure accurate delivery promises. System checks each item's availability and delivery feasibility, providing real-time information on serviceability and estimated delivery times. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/checkCartServiceability/).
|
|
67
67
|
*/
|
|
68
|
-
checkCartServiceability({ body, xOrderingSource, requestHeaders }?: CartPlatformApplicationValidator.CheckCartServiceabilityParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCartServiceabilityResult>;
|
|
68
|
+
checkCartServiceability({ body, xOrderingSource, xOrderingSourceType, requestHeaders }?: CartPlatformApplicationValidator.CheckCartServiceabilityParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCartServiceabilityResult>;
|
|
69
69
|
/**
|
|
70
70
|
* @param {CartPlatformApplicationValidator.CheckoutCartParam} arg - Arg object
|
|
71
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -75,7 +75,7 @@ declare class Cart {
|
|
|
75
75
|
* @summary: Headless Checkout
|
|
76
76
|
* @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://docs.fynd.com/partners/commerce/sdk/platform/cart/checkoutCart/).
|
|
77
77
|
*/
|
|
78
|
-
checkoutCart({ body, xOrderingSource, xAnonymousCart, xLocationDetail, xCurrencyCode, requestHeaders, }?: CartPlatformApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCheckoutResult>;
|
|
78
|
+
checkoutCart({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, xLocationDetail, xCurrencyCode, requestHeaders, }?: CartPlatformApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCheckoutResult>;
|
|
79
79
|
/**
|
|
80
80
|
* @param {CartPlatformApplicationValidator.CreateCartMetaConfigParam} arg
|
|
81
81
|
* - Arg object
|
|
@@ -169,7 +169,7 @@ declare class Cart {
|
|
|
169
169
|
* @summary: Get and validate cart items
|
|
170
170
|
* @description: Retrieve cart details for a provided list of cart items and validate its contents. This ensures accuracy and completeness in cart information, including item quantities, prices, discounts, and applicable taxes. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/fetchAndvalidateCartItems/).
|
|
171
171
|
*/
|
|
172
|
-
fetchAndvalidateCartItems({ body, xOrderingSource, xLocationDetail, xCurrencyCode, requestHeaders, }?: CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenapiCartDetailsResult>;
|
|
172
|
+
fetchAndvalidateCartItems({ body, xOrderingSource, xOrderingSourceType, xLocationDetail, xCurrencyCode, requestHeaders, }?: CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenapiCartDetailsResult>;
|
|
173
173
|
/**
|
|
174
174
|
* @param {CartPlatformApplicationValidator.FetchCartMetaConfigParam} arg - Arg object
|
|
175
175
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -254,7 +254,7 @@ declare class Cart {
|
|
|
254
254
|
* @summary: Get a cart
|
|
255
255
|
* @description: Retrieve details of a cart linked to a specific customer using either the customer's ID or 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://docs.fynd.com/partners/commerce/sdk/platform/cart/getCart/).
|
|
256
256
|
*/
|
|
257
|
-
getCart({ xOrderingSource, xAnonymousCart, id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
257
|
+
getCart({ xOrderingSource, xOrderingSourceType, xAnonymousCart, id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
258
258
|
/**
|
|
259
259
|
* @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
|
|
260
260
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -466,7 +466,7 @@ declare class Cart {
|
|
|
466
466
|
* @summary: Update cart checkout
|
|
467
467
|
* @description: Overrides the cart's checkout process with a new provided cart items. It provides flexibility in customizing checkout flows to meet specific business requirements, enhancing the user experience and optimizing order processing workflows. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/overrideCart/).
|
|
468
468
|
*/
|
|
469
|
-
overrideCart({ body, xOrderingSource, xLocationDetail, xCurrencyCode, requestHeaders, }?: CartPlatformApplicationValidator.OverrideCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OverrideCheckoutResult>;
|
|
469
|
+
overrideCart({ body, xOrderingSource, xOrderingSourceType, xLocationDetail, xCurrencyCode, requestHeaders, }?: CartPlatformApplicationValidator.OverrideCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OverrideCheckoutResult>;
|
|
470
470
|
/**
|
|
471
471
|
* @param {CartPlatformApplicationValidator.PlatformAddItemsParam} arg - Arg object
|
|
472
472
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -476,7 +476,7 @@ declare class Cart {
|
|
|
476
476
|
* @summary: Add items to cart
|
|
477
477
|
* @description: Adds product items to a customer's shopping cart. If the customer does not have an existing cart, a new one is created automatically. - The `new_cart` flag forces creation of a new cart even if one already exists. - The `default_cart` flag determines whether the item is added to the user's default storefront-visible cart. If `true`, the item is added to the user's default cart that is accessible via the storefront. If `false`, an existing active cart is fetched if available; otherwise, a new hidden cart is created. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/platformAddItems/).
|
|
478
478
|
*/
|
|
479
|
-
platformAddItems({ body, xOrderingSource, xAnonymousCart, i, b, includeCartCalculation, buyNow, orderType, id, requestHeaders, }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResult>;
|
|
479
|
+
platformAddItems({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, i, b, includeCartCalculation, buyNow, orderType, id, requestHeaders, }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResult>;
|
|
480
480
|
/**
|
|
481
481
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
|
|
482
482
|
* - Arg object
|
|
@@ -488,7 +488,7 @@ declare class Cart {
|
|
|
488
488
|
* @summary: Checkout cart
|
|
489
489
|
* @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://docs.fynd.com/partners/commerce/sdk/platform/cart/platformCheckoutCart/).
|
|
490
490
|
*/
|
|
491
|
-
platformCheckoutCart({ body, xOrderingSource, xAnonymousCart, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResult>;
|
|
491
|
+
platformCheckoutCart({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, id, requestHeaders, }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResult>;
|
|
492
492
|
/**
|
|
493
493
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg
|
|
494
494
|
* - Arg object
|
|
@@ -500,7 +500,7 @@ declare class Cart {
|
|
|
500
500
|
* @summary: Checkout cart
|
|
501
501
|
* @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://docs.fynd.com/partners/commerce/sdk/platform/cart/platformCheckoutCartV2/).
|
|
502
502
|
*/
|
|
503
|
-
platformCheckoutCartV2({ body, xOrderingSource, xAnonymousCart, xLocationDetail, xCurrencyCode, id, requestHeaders, }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutDetails>;
|
|
503
|
+
platformCheckoutCartV2({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, xLocationDetail, xCurrencyCode, id, requestHeaders, }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutDetails>;
|
|
504
504
|
/**
|
|
505
505
|
* @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object
|
|
506
506
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -510,7 +510,7 @@ declare class Cart {
|
|
|
510
510
|
* @summary: Update cart items
|
|
511
511
|
* @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/platformUpdateCart/).
|
|
512
512
|
*/
|
|
513
|
-
platformUpdateCart({ body, xOrderingSource, xAnonymousCart, id, i, orderType, b, includeCartCalculation, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResult>;
|
|
513
|
+
platformUpdateCart({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, id, i, orderType, b, includeCartCalculation, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResult>;
|
|
514
514
|
/**
|
|
515
515
|
* @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
|
|
516
516
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -530,7 +530,7 @@ declare class Cart {
|
|
|
530
530
|
* @summary: Remove coupon
|
|
531
531
|
* @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/removeCoupon/).
|
|
532
532
|
*/
|
|
533
|
-
removeCoupon({ xOrderingSource, xAnonymousCart, uid, buyNow, requestHeaders }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
533
|
+
removeCoupon({ xOrderingSource, xOrderingSourceType, xAnonymousCart, uid, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
534
534
|
/**
|
|
535
535
|
* @param {CartPlatformApplicationValidator.RemovePriceAdjustmentParam} arg
|
|
536
536
|
* - Arg object
|
|
@@ -552,7 +552,7 @@ declare class Cart {
|
|
|
552
552
|
* @summary: Select customer address for order processing
|
|
553
553
|
* @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://docs.fynd.com/partners/commerce/sdk/platform/cart/selectAddress/).
|
|
554
554
|
*/
|
|
555
|
-
selectAddress({ body, xOrderingSource, xAnonymousCart, cartId, buyNow, i, b, requestHeaders, }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
555
|
+
selectAddress({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, cartId, buyNow, i, b, requestHeaders, }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
556
556
|
/**
|
|
557
557
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
|
|
558
558
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -562,7 +562,7 @@ declare class Cart {
|
|
|
562
562
|
* @summary: Select payment mode
|
|
563
563
|
* @description: Customers can 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://docs.fynd.com/partners/commerce/sdk/platform/cart/selectPaymentMode/).
|
|
564
564
|
*/
|
|
565
|
-
selectPaymentMode({ body, xOrderingSource, xAnonymousCart, id, buyNow, orderType, requestHeaders, }?: CartPlatformApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
565
|
+
selectPaymentMode({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, id, buyNow, orderType, requestHeaders, }?: CartPlatformApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
566
566
|
/**
|
|
567
567
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
|
|
568
568
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -572,7 +572,7 @@ declare class Cart {
|
|
|
572
572
|
* @summary: Select payment mode (latest)
|
|
573
573
|
* @description: Selection of payment mode that supports multiple MOP(mode of payment). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/selectPaymentModeV2/).
|
|
574
574
|
*/
|
|
575
|
-
selectPaymentModeV2({ body, xOrderingSource, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
575
|
+
selectPaymentModeV2({ body, xOrderingSource, xOrderingSourceType, id, buyNow, orderType, requestHeaders, }?: CartPlatformApplicationValidator.SelectPaymentModeV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
576
576
|
/**
|
|
577
577
|
* @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object
|
|
578
578
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -602,7 +602,7 @@ declare class Cart {
|
|
|
602
602
|
* @summary: Update cart breakup values
|
|
603
603
|
* @description: Updates the cart breakup based on the enabled features and user preferences. This endpoint allows customers to modify how their cart totals are calculated — including options such as applying store credits, loyalty points, discounts, and other promotional benefits. The API recalculates and returns the updated breakup reflecting the selected configurations in real-time. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateCartBreakup/).
|
|
604
604
|
*/
|
|
605
|
-
updateCartBreakup({ body, xOrderingSource, xAnonymousCart, id, i, b, includeCartCalculation, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.UpdateCartBreakupParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
605
|
+
updateCartBreakup({ body, xOrderingSource, xOrderingSourceType, xAnonymousCart, id, i, b, includeCartCalculation, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.UpdateCartBreakupParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
606
606
|
/**
|
|
607
607
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
|
|
608
608
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -747,7 +747,7 @@ declare class Cart {
|
|
|
747
747
|
* @summary: Validate applied coupon
|
|
748
748
|
* @description: Validates 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://docs.fynd.com/partners/commerce/sdk/platform/cart/validateCouponForPayment/).
|
|
749
749
|
*/
|
|
750
|
-
validateCouponForPayment({ xOrderingSource, id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, requestHeaders, }?: CartPlatformApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartPlatformModel.PaymentCouponValidate>;
|
|
750
|
+
validateCouponForPayment({ xOrderingSource, xOrderingSourceType, id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, requestHeaders, }?: CartPlatformApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartPlatformModel.PaymentCouponValidate>;
|
|
751
751
|
}
|
|
752
752
|
import CartPlatformApplicationValidator = require("./CartPlatformApplicationValidator");
|
|
753
753
|
import CartPlatformModel = require("./CartPlatformModel");
|