@gofynd/fdk-client-javascript 1.4.2-beta.4 → 1.4.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +62 -62
- package/sdk/application/Cart/CartApplicationClient.js +82 -71
- package/sdk/application/Cart/CartApplicationValidator.d.ts +189 -34
- package/sdk/application/Cart/CartApplicationValidator.js +59 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +78 -78
- package/sdk/application/Catalog/CatalogApplicationClient.js +78 -78
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -67
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -106
- package/sdk/application/Content/ContentApplicationClient.d.ts +34 -64
- package/sdk/application/Content/ContentApplicationClient.js +34 -115
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -42
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -42
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -14
- package/sdk/application/Lead/LeadApplicationClient.js +14 -14
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +12 -12
- package/sdk/application/Logistic/LogisticApplicationClient.js +12 -12
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -24
- package/sdk/application/Order/OrderApplicationClient.js +24 -24
- package/sdk/application/Order/OrderApplicationModel.d.ts +23 -1
- package/sdk/application/Order/OrderApplicationModel.js +28 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +89 -89
- package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +498 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +316 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +54 -54
- package/sdk/application/PosCart/PosCartApplicationClient.js +54 -54
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -25
- package/sdk/application/Rewards/RewardsApplicationClient.js +14 -41
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -14
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +64 -64
- package/sdk/application/User/UserApplicationClient.js +64 -64
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +38 -38
- package/sdk/partner/Theme/ThemePartnerClient.js +38 -38
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +8 -8
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +34 -36
- package/sdk/platform/Billing/BillingPlatformClient.js +34 -36
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +98 -175
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +98 -254
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +92 -18
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +28 -18
- package/sdk/platform/Cart/CartPlatformModel.d.ts +12 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +195 -108
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +278 -113
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +335 -136
- package/sdk/platform/Catalog/CatalogPlatformClient.js +551 -136
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +5 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -3
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -3
- package/sdk/platform/Common/CommonPlatformClient.js +3 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +115 -290
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +115 -510
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -13
- package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -29
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +32 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -127
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +52 -204
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +35 -111
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +35 -212
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +142 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +96 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +130 -218
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +136 -314
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.js +7 -7
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +22 -48
- package/sdk/platform/Discount/DiscountPlatformClient.js +22 -73
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +19 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +19 -55
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +14 -50
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +16 -55
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -12
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +12 -14
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +44 -44
- package/sdk/platform/Finance/FinancePlatformClient.js +44 -44
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -48
- package/sdk/platform/Lead/LeadPlatformClient.js +22 -72
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
- package/sdk/platform/Order/OrderPlatformClient.d.ts +79 -208
- package/sdk/platform/Order/OrderPlatformClient.js +79 -294
- package/sdk/platform/Order/OrderPlatformModel.d.ts +32 -3
- package/sdk/platform/Order/OrderPlatformModel.js +34 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +81 -81
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +81 -81
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +23 -40
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +23 -61
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +5 -5
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +10 -10
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +56 -56
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +56 -56
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +33 -33
- package/sdk/platform/User/UserPlatformApplicationClient.js +33 -33
- package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
- package/sdk/platform/User/UserPlatformModel.js +2 -2
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +32 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +32 -45
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -1
- package/sdk/platform/Webhook/WebhookPlatformModel.js +66 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicClient.js +4 -4
|
@@ -67,8 +67,8 @@ class Cart {
|
|
|
67
67
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
68
68
|
* @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
|
|
69
69
|
* @name addAddress
|
|
70
|
-
* @summary: Add address
|
|
71
|
-
* @description:
|
|
70
|
+
* @summary: Add new address.
|
|
71
|
+
* @description: Saves a new address for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
|
|
72
72
|
*/
|
|
73
73
|
async addAddress(
|
|
74
74
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -143,8 +143,8 @@ class Cart {
|
|
|
143
143
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
144
144
|
* @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
|
|
145
145
|
* @name addItems
|
|
146
|
-
* @summary: Add
|
|
147
|
-
* @description:
|
|
146
|
+
* @summary: Add to cart.
|
|
147
|
+
* @description: Adds selected items to the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
|
|
148
148
|
*/
|
|
149
149
|
async addItems(
|
|
150
150
|
{ body, i, b, areaCode, buyNow, id, requestHeaders } = {
|
|
@@ -226,15 +226,17 @@ class Cart {
|
|
|
226
226
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
227
227
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
228
228
|
* @name applyCoupon
|
|
229
|
-
* @summary: Apply
|
|
230
|
-
* @description:
|
|
229
|
+
* @summary: Apply coupon.
|
|
230
|
+
* @description: Applies a coupon code to get discounts on cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
|
|
231
231
|
*/
|
|
232
232
|
async applyCoupon(
|
|
233
|
-
{ body, i, b, p, id, buyNow, requestHeaders } = {
|
|
233
|
+
{ body, i, b, p, id, buyNow, cartType, requestHeaders } = {
|
|
234
|
+
requestHeaders: {},
|
|
235
|
+
},
|
|
234
236
|
{ responseHeaders } = { responseHeaders: false }
|
|
235
237
|
) {
|
|
236
238
|
const { error } = CartApplicationValidator.applyCoupon().validate(
|
|
237
|
-
{ body, i, b, p, id, buyNow },
|
|
239
|
+
{ body, i, b, p, id, buyNow, cartType },
|
|
238
240
|
{ abortEarly: false, allowUnknown: true }
|
|
239
241
|
);
|
|
240
242
|
if (error) {
|
|
@@ -243,7 +245,7 @@ class Cart {
|
|
|
243
245
|
|
|
244
246
|
// Showing warrnings if extra unknown parameters are found
|
|
245
247
|
const { error: warrning } = CartApplicationValidator.applyCoupon().validate(
|
|
246
|
-
{ body, i, b, p, id, buyNow },
|
|
248
|
+
{ body, i, b, p, id, buyNow, cartType },
|
|
247
249
|
{ abortEarly: false, allowUnknown: false }
|
|
248
250
|
);
|
|
249
251
|
if (warrning) {
|
|
@@ -259,6 +261,7 @@ class Cart {
|
|
|
259
261
|
query_params["p"] = p;
|
|
260
262
|
query_params["id"] = id;
|
|
261
263
|
query_params["buy_now"] = buyNow;
|
|
264
|
+
query_params["cart_type"] = cartType;
|
|
262
265
|
|
|
263
266
|
const xHeaders = {};
|
|
264
267
|
|
|
@@ -307,8 +310,8 @@ class Cart {
|
|
|
307
310
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
308
311
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
309
312
|
* @name applyRewardPoints
|
|
310
|
-
* @summary:
|
|
311
|
-
* @description:
|
|
313
|
+
* @summary: Use reward points.
|
|
314
|
+
* @description: Applies user’s reward points to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
|
|
312
315
|
*/
|
|
313
316
|
async applyRewardPoints(
|
|
314
317
|
{ body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -389,15 +392,15 @@ class Cart {
|
|
|
389
392
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
390
393
|
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
391
394
|
* @name checkoutCart
|
|
392
|
-
* @summary: Checkout
|
|
393
|
-
* @description:
|
|
395
|
+
* @summary: Checkout cart.
|
|
396
|
+
* @description: Initiates the checkout process for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
394
397
|
*/
|
|
395
398
|
async checkoutCart(
|
|
396
|
-
{ body, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
399
|
+
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
397
400
|
{ responseHeaders } = { responseHeaders: false }
|
|
398
401
|
) {
|
|
399
402
|
const { error } = CartApplicationValidator.checkoutCart().validate(
|
|
400
|
-
{ body, buyNow },
|
|
403
|
+
{ body, buyNow, cartType },
|
|
401
404
|
{ abortEarly: false, allowUnknown: true }
|
|
402
405
|
);
|
|
403
406
|
if (error) {
|
|
@@ -408,7 +411,7 @@ class Cart {
|
|
|
408
411
|
const {
|
|
409
412
|
error: warrning,
|
|
410
413
|
} = CartApplicationValidator.checkoutCart().validate(
|
|
411
|
-
{ body, buyNow },
|
|
414
|
+
{ body, buyNow, cartType },
|
|
412
415
|
{ abortEarly: false, allowUnknown: false }
|
|
413
416
|
);
|
|
414
417
|
if (warrning) {
|
|
@@ -420,6 +423,7 @@ class Cart {
|
|
|
420
423
|
|
|
421
424
|
const query_params = {};
|
|
422
425
|
query_params["buy_now"] = buyNow;
|
|
426
|
+
query_params["cart_type"] = cartType;
|
|
423
427
|
|
|
424
428
|
const xHeaders = {};
|
|
425
429
|
|
|
@@ -468,15 +472,15 @@ class Cart {
|
|
|
468
472
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
469
473
|
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
470
474
|
* @name checkoutCartV2
|
|
471
|
-
* @summary:
|
|
472
|
-
* @description:
|
|
475
|
+
* @summary: Enhanced cart checkout process
|
|
476
|
+
* @description: Initiates a more secure and detailed checkout process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
|
|
473
477
|
*/
|
|
474
478
|
async checkoutCartV2(
|
|
475
|
-
{ body, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
479
|
+
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
476
480
|
{ responseHeaders } = { responseHeaders: false }
|
|
477
481
|
) {
|
|
478
482
|
const { error } = CartApplicationValidator.checkoutCartV2().validate(
|
|
479
|
-
{ body, buyNow },
|
|
483
|
+
{ body, buyNow, cartType },
|
|
480
484
|
{ abortEarly: false, allowUnknown: true }
|
|
481
485
|
);
|
|
482
486
|
if (error) {
|
|
@@ -487,7 +491,7 @@ class Cart {
|
|
|
487
491
|
const {
|
|
488
492
|
error: warrning,
|
|
489
493
|
} = CartApplicationValidator.checkoutCartV2().validate(
|
|
490
|
-
{ body, buyNow },
|
|
494
|
+
{ body, buyNow, cartType },
|
|
491
495
|
{ abortEarly: false, allowUnknown: false }
|
|
492
496
|
);
|
|
493
497
|
if (warrning) {
|
|
@@ -499,6 +503,7 @@ class Cart {
|
|
|
499
503
|
|
|
500
504
|
const query_params = {};
|
|
501
505
|
query_params["buy_now"] = buyNow;
|
|
506
|
+
query_params["cart_type"] = cartType;
|
|
502
507
|
|
|
503
508
|
const xHeaders = {};
|
|
504
509
|
|
|
@@ -548,8 +553,8 @@ class Cart {
|
|
|
548
553
|
* @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
|
|
549
554
|
* Success response
|
|
550
555
|
* @name deleteCart
|
|
551
|
-
* @summary:
|
|
552
|
-
* @description:
|
|
556
|
+
* @summary: Clears the cart
|
|
557
|
+
* @description: Removes all items and resets the user's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
|
|
553
558
|
*/
|
|
554
559
|
async deleteCart(
|
|
555
560
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -625,8 +630,8 @@ class Cart {
|
|
|
625
630
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
626
631
|
* @returns {Promise<CartApplicationModel.Address>} - Success response
|
|
627
632
|
* @name getAddressById
|
|
628
|
-
* @summary: Fetch
|
|
629
|
-
* @description:
|
|
633
|
+
* @summary: Fetch address.
|
|
634
|
+
* @description: Retrieves a saved address using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
|
|
630
635
|
*/
|
|
631
636
|
async getAddressById(
|
|
632
637
|
{
|
|
@@ -718,8 +723,8 @@ class Cart {
|
|
|
718
723
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
719
724
|
* @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
|
|
720
725
|
* @name getAddresses
|
|
721
|
-
* @summary:
|
|
722
|
-
* @description:
|
|
726
|
+
* @summary: Get saved addresses.
|
|
727
|
+
* @description: Retrieve all saved addresses for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
|
|
723
728
|
*/
|
|
724
729
|
async getAddresses(
|
|
725
730
|
{
|
|
@@ -810,8 +815,8 @@ class Cart {
|
|
|
810
815
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
811
816
|
* @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
|
|
812
817
|
* @name getBulkDiscountOffers
|
|
813
|
-
* @summary:
|
|
814
|
-
* @description:
|
|
818
|
+
* @summary: Bulk discounts.
|
|
819
|
+
* @description: Lists available bulk discount offers for cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
|
|
815
820
|
*/
|
|
816
821
|
async getBulkDiscountOffers(
|
|
817
822
|
{ itemId, articleId, uid, slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -892,8 +897,8 @@ class Cart {
|
|
|
892
897
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
893
898
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
894
899
|
* @name getCart
|
|
895
|
-
* @summary:
|
|
896
|
-
* @description:
|
|
900
|
+
* @summary: Retrieve cart details.
|
|
901
|
+
* @description: Retrieve the current state and items in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
|
|
897
902
|
*/
|
|
898
903
|
async getCart(
|
|
899
904
|
{ id, i, b, c, assignCardId, areaCode, buyNow, requestHeaders } = {
|
|
@@ -977,8 +982,8 @@ class Cart {
|
|
|
977
982
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
978
983
|
* @returns {Promise<any>} - Success response
|
|
979
984
|
* @name getCartLastModified
|
|
980
|
-
* @summary:
|
|
981
|
-
* @description:
|
|
985
|
+
* @summary: Cart modification time.
|
|
986
|
+
* @description: Gets the last modified timestamp for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
|
|
982
987
|
*/
|
|
983
988
|
async getCartLastModified(
|
|
984
989
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1054,8 +1059,8 @@ class Cart {
|
|
|
1054
1059
|
* @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
|
|
1055
1060
|
* Success response
|
|
1056
1061
|
* @name getCartShareLink
|
|
1057
|
-
* @summary:
|
|
1058
|
-
* @description:
|
|
1062
|
+
* @summary: Share cart link.
|
|
1063
|
+
* @description: Generates a shareable link for the current cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
|
|
1059
1064
|
*/
|
|
1060
1065
|
async getCartShareLink(
|
|
1061
1066
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1132,8 +1137,8 @@ class Cart {
|
|
|
1132
1137
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1133
1138
|
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
1134
1139
|
* @name getCartSharedItems
|
|
1135
|
-
* @summary:
|
|
1136
|
-
* @description:
|
|
1140
|
+
* @summary: Shared cart items.
|
|
1141
|
+
* @description: Retrieves items from a shared cart link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
|
|
1137
1142
|
*/
|
|
1138
1143
|
async getCartSharedItems(
|
|
1139
1144
|
{ token, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1210,8 +1215,8 @@ class Cart {
|
|
|
1210
1215
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1211
1216
|
* @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
|
|
1212
1217
|
* @name getCoupons
|
|
1213
|
-
* @summary:
|
|
1214
|
-
* @description:
|
|
1218
|
+
* @summary: List available coupons.
|
|
1219
|
+
* @description: Retrieve coupons that can be applied to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
|
|
1215
1220
|
*/
|
|
1216
1221
|
async getCoupons(
|
|
1217
1222
|
{ id, buyNow, slug, storeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1290,8 +1295,8 @@ class Cart {
|
|
|
1290
1295
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1291
1296
|
* @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
|
|
1292
1297
|
* @name getItemCount
|
|
1293
|
-
* @summary: Count items
|
|
1294
|
-
* @description:
|
|
1298
|
+
* @summary: Count cart items.
|
|
1299
|
+
* @description: Gets the total number of items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
|
|
1295
1300
|
*/
|
|
1296
1301
|
async getItemCount(
|
|
1297
1302
|
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1370,8 +1375,8 @@ class Cart {
|
|
|
1370
1375
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1371
1376
|
* @returns {Promise<CartApplicationModel.LadderPriceOffers>} - Success response
|
|
1372
1377
|
* @name getLadderOffers
|
|
1373
|
-
* @summary:
|
|
1374
|
-
* @description:
|
|
1378
|
+
* @summary: Fetches ladder offers.
|
|
1379
|
+
* @description: Gets tiered discounts based on cart value. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
|
|
1375
1380
|
*/
|
|
1376
1381
|
async getLadderOffers(
|
|
1377
1382
|
{ slug, storeId, promotionId, pageSize, requestHeaders } = {
|
|
@@ -1454,17 +1459,17 @@ class Cart {
|
|
|
1454
1459
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1455
1460
|
* @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
|
|
1456
1461
|
* @name getPromotionOffers
|
|
1457
|
-
* @summary:
|
|
1458
|
-
* @description:
|
|
1462
|
+
* @summary: Retrieves promotional offers
|
|
1463
|
+
* @description: Lists all available promotional offers for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
|
|
1459
1464
|
*/
|
|
1460
1465
|
async getPromotionOffers(
|
|
1461
|
-
{ slug, pageSize, promotionGroup, storeId, requestHeaders } = {
|
|
1466
|
+
{ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
|
|
1462
1467
|
requestHeaders: {},
|
|
1463
1468
|
},
|
|
1464
1469
|
{ responseHeaders } = { responseHeaders: false }
|
|
1465
1470
|
) {
|
|
1466
1471
|
const { error } = CartApplicationValidator.getPromotionOffers().validate(
|
|
1467
|
-
{ slug, pageSize, promotionGroup, storeId },
|
|
1472
|
+
{ slug, pageSize, promotionGroup, storeId, cartType },
|
|
1468
1473
|
{ abortEarly: false, allowUnknown: true }
|
|
1469
1474
|
);
|
|
1470
1475
|
if (error) {
|
|
@@ -1475,7 +1480,7 @@ class Cart {
|
|
|
1475
1480
|
const {
|
|
1476
1481
|
error: warrning,
|
|
1477
1482
|
} = CartApplicationValidator.getPromotionOffers().validate(
|
|
1478
|
-
{ slug, pageSize, promotionGroup, storeId },
|
|
1483
|
+
{ slug, pageSize, promotionGroup, storeId, cartType },
|
|
1479
1484
|
{ abortEarly: false, allowUnknown: false }
|
|
1480
1485
|
);
|
|
1481
1486
|
if (warrning) {
|
|
@@ -1490,6 +1495,7 @@ class Cart {
|
|
|
1490
1495
|
query_params["page_size"] = pageSize;
|
|
1491
1496
|
query_params["promotion_group"] = promotionGroup;
|
|
1492
1497
|
query_params["store_id"] = storeId;
|
|
1498
|
+
query_params["cart_type"] = cartType;
|
|
1493
1499
|
|
|
1494
1500
|
const xHeaders = {};
|
|
1495
1501
|
|
|
@@ -1538,8 +1544,8 @@ class Cart {
|
|
|
1538
1544
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1539
1545
|
* @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
|
|
1540
1546
|
* @name getShipments
|
|
1541
|
-
* @summary:
|
|
1542
|
-
* @description:
|
|
1547
|
+
* @summary: List shipments.
|
|
1548
|
+
* @description: Retrieve shipment details for items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
|
|
1543
1549
|
*/
|
|
1544
1550
|
async getShipments(
|
|
1545
1551
|
{ p, id, buyNow, addressId, areaCode, orderType, requestHeaders } = {
|
|
@@ -1624,8 +1630,8 @@ class Cart {
|
|
|
1624
1630
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1625
1631
|
* @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
|
|
1626
1632
|
* @name removeAddress
|
|
1627
|
-
* @summary:
|
|
1628
|
-
* @description:
|
|
1633
|
+
* @summary: Delete address.
|
|
1634
|
+
* @description: Removes a saved address from the user's profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
1629
1635
|
*/
|
|
1630
1636
|
async removeAddress(
|
|
1631
1637
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1702,8 +1708,8 @@ class Cart {
|
|
|
1702
1708
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1703
1709
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1704
1710
|
* @name removeCoupon
|
|
1705
|
-
* @summary: Remove
|
|
1706
|
-
* @description:
|
|
1711
|
+
* @summary: Remove coupon.
|
|
1712
|
+
* @description: Removes an applied coupon from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
|
|
1707
1713
|
*/
|
|
1708
1714
|
async removeCoupon(
|
|
1709
1715
|
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1782,8 +1788,8 @@ class Cart {
|
|
|
1782
1788
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1783
1789
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1784
1790
|
* @name selectAddress
|
|
1785
|
-
* @summary:
|
|
1786
|
-
* @description:
|
|
1791
|
+
* @summary: Choose delivery address.
|
|
1792
|
+
* @description: Selects an address for the cart's delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
|
|
1787
1793
|
*/
|
|
1788
1794
|
async selectAddress(
|
|
1789
1795
|
{ body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1864,8 +1870,8 @@ class Cart {
|
|
|
1864
1870
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1865
1871
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1866
1872
|
* @name selectPaymentMode
|
|
1867
|
-
* @summary:
|
|
1868
|
-
* @description:
|
|
1873
|
+
* @summary: Pick payment method.
|
|
1874
|
+
* @description: Chooses a payment mode for the checkout process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
|
|
1869
1875
|
*/
|
|
1870
1876
|
async selectPaymentMode(
|
|
1871
1877
|
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1944,8 +1950,8 @@ class Cart {
|
|
|
1944
1950
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1945
1951
|
* @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
|
|
1946
1952
|
* @name updateAddress
|
|
1947
|
-
* @summary: Update address
|
|
1948
|
-
* @description:
|
|
1953
|
+
* @summary: Update address.
|
|
1954
|
+
* @description: Modifies a saved address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
|
|
1949
1955
|
*/
|
|
1950
1956
|
async updateAddress(
|
|
1951
1957
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2023,17 +2029,17 @@ class Cart {
|
|
|
2023
2029
|
* @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
|
|
2024
2030
|
* Success response
|
|
2025
2031
|
* @name updateCart
|
|
2026
|
-
* @summary: Update
|
|
2027
|
-
* @description:
|
|
2032
|
+
* @summary: Update cart.
|
|
2033
|
+
* @description: Modifies items and quantities in the existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
|
|
2028
2034
|
*/
|
|
2029
2035
|
async updateCart(
|
|
2030
|
-
{ body, id, i, b, areaCode, buyNow, requestHeaders } = {
|
|
2036
|
+
{ body, id, i, b, areaCode, buyNow, cartType, requestHeaders } = {
|
|
2031
2037
|
requestHeaders: {},
|
|
2032
2038
|
},
|
|
2033
2039
|
{ responseHeaders } = { responseHeaders: false }
|
|
2034
2040
|
) {
|
|
2035
2041
|
const { error } = CartApplicationValidator.updateCart().validate(
|
|
2036
|
-
{ body, id, i, b, areaCode, buyNow },
|
|
2042
|
+
{ body, id, i, b, areaCode, buyNow, cartType },
|
|
2037
2043
|
{ abortEarly: false, allowUnknown: true }
|
|
2038
2044
|
);
|
|
2039
2045
|
if (error) {
|
|
@@ -2042,7 +2048,7 @@ class Cart {
|
|
|
2042
2048
|
|
|
2043
2049
|
// Showing warrnings if extra unknown parameters are found
|
|
2044
2050
|
const { error: warrning } = CartApplicationValidator.updateCart().validate(
|
|
2045
|
-
{ body, id, i, b, areaCode, buyNow },
|
|
2051
|
+
{ body, id, i, b, areaCode, buyNow, cartType },
|
|
2046
2052
|
{ abortEarly: false, allowUnknown: false }
|
|
2047
2053
|
);
|
|
2048
2054
|
if (warrning) {
|
|
@@ -2058,6 +2064,7 @@ class Cart {
|
|
|
2058
2064
|
query_params["b"] = b;
|
|
2059
2065
|
query_params["area_code"] = areaCode;
|
|
2060
2066
|
query_params["buy_now"] = buyNow;
|
|
2067
|
+
query_params["cart_type"] = cartType;
|
|
2061
2068
|
|
|
2062
2069
|
const xHeaders = {};
|
|
2063
2070
|
|
|
@@ -2106,8 +2113,8 @@ class Cart {
|
|
|
2106
2113
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2107
2114
|
* @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
|
|
2108
2115
|
* @name updateCartMeta
|
|
2109
|
-
* @summary: Update
|
|
2110
|
-
* @description:
|
|
2116
|
+
* @summary: Update cart metadata.
|
|
2117
|
+
* @description: Adds or modifies metadata for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
|
|
2111
2118
|
*/
|
|
2112
2119
|
async updateCartMeta(
|
|
2113
2120
|
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2186,8 +2193,8 @@ class Cart {
|
|
|
2186
2193
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2187
2194
|
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
2188
2195
|
* @name updateCartWithSharedItems
|
|
2189
|
-
* @summary:
|
|
2190
|
-
* @description:
|
|
2196
|
+
* @summary: Update with shared items.
|
|
2197
|
+
* @description: Updates the cart with items from a shared link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
2191
2198
|
*/
|
|
2192
2199
|
async updateCartWithSharedItems(
|
|
2193
2200
|
{ token, action, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2266,8 +2273,8 @@ class Cart {
|
|
|
2266
2273
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2267
2274
|
* @returns {Promise<CartApplicationModel.PaymentCouponValidate>} - Success response
|
|
2268
2275
|
* @name validateCouponForPayment
|
|
2269
|
-
* @summary:
|
|
2270
|
-
* @description:
|
|
2276
|
+
* @summary: Validate coupon.
|
|
2277
|
+
* @description: Checks if a coupon is valid for the selected payment mode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
|
|
2271
2278
|
*/
|
|
2272
2279
|
async validateCouponForPayment(
|
|
2273
2280
|
{
|
|
@@ -2282,6 +2289,7 @@ class Cart {
|
|
|
2282
2289
|
network,
|
|
2283
2290
|
type,
|
|
2284
2291
|
cardId,
|
|
2292
|
+
cartType,
|
|
2285
2293
|
requestHeaders,
|
|
2286
2294
|
} = { requestHeaders: {} },
|
|
2287
2295
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -2301,6 +2309,7 @@ class Cart {
|
|
|
2301
2309
|
network,
|
|
2302
2310
|
type,
|
|
2303
2311
|
cardId,
|
|
2312
|
+
cartType,
|
|
2304
2313
|
},
|
|
2305
2314
|
{ abortEarly: false, allowUnknown: true }
|
|
2306
2315
|
);
|
|
@@ -2324,6 +2333,7 @@ class Cart {
|
|
|
2324
2333
|
network,
|
|
2325
2334
|
type,
|
|
2326
2335
|
cardId,
|
|
2336
|
+
cartType,
|
|
2327
2337
|
},
|
|
2328
2338
|
{ abortEarly: false, allowUnknown: false }
|
|
2329
2339
|
);
|
|
@@ -2346,6 +2356,7 @@ class Cart {
|
|
|
2346
2356
|
query_params["network"] = network;
|
|
2347
2357
|
query_params["type"] = type;
|
|
2348
2358
|
query_params["card_id"] = cardId;
|
|
2359
|
+
query_params["cart_type"] = cartType;
|
|
2349
2360
|
|
|
2350
2361
|
const xHeaders = {};
|
|
2351
2362
|
|