@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4
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/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -117
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -16,7 +16,6 @@ class Cart {
|
|
|
16
16
|
addItems: "/service/application/cart/v1.0/detail",
|
|
17
17
|
applyCoupon: "/service/application/cart/v1.0/coupon",
|
|
18
18
|
applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
|
|
19
|
-
checkoutCart: "/service/application/cart/v1.0/checkout",
|
|
20
19
|
checkoutCartV2: "/service/application/cart/v2.0/checkout",
|
|
21
20
|
deleteCart: "/service/application/cart/v1.0/cart_archive",
|
|
22
21
|
getAddressById: "/service/application/cart/v1.0/address/{id}",
|
|
@@ -32,7 +31,6 @@ class Cart {
|
|
|
32
31
|
getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
|
|
33
32
|
getPromotionPaymentOffers:
|
|
34
33
|
"/service/application/cart/v1.0/available-payment-offers",
|
|
35
|
-
getPromotions: "/service/application/cart/v1.0/promotion",
|
|
36
34
|
getShipments: "/service/application/cart/v1.0/shipment",
|
|
37
35
|
removeAddress: "/service/application/cart/v1.0/address/{id}",
|
|
38
36
|
removeCoupon: "/service/application/cart/v1.0/coupon",
|
|
@@ -65,7 +63,7 @@ class Cart {
|
|
|
65
63
|
/**
|
|
66
64
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
67
65
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
68
|
-
* @returns {Promise<
|
|
66
|
+
* @returns {Promise<SaveAddressResponse>} - Success response
|
|
69
67
|
* @name addAddress
|
|
70
68
|
* @summary: Creates a new address for a customer
|
|
71
69
|
* @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/).
|
|
@@ -102,7 +100,7 @@ class Cart {
|
|
|
102
100
|
/**
|
|
103
101
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
102
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
105
|
-
* @returns {Promise<
|
|
103
|
+
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
106
104
|
* @name addItems
|
|
107
105
|
* @summary: Add items to a cart
|
|
108
106
|
* @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/).
|
|
@@ -147,7 +145,7 @@ class Cart {
|
|
|
147
145
|
/**
|
|
148
146
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
149
147
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
150
|
-
* @returns {Promise<
|
|
148
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
151
149
|
* @name applyCoupon
|
|
152
150
|
* @summary: Apply coupon
|
|
153
151
|
* @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/).
|
|
@@ -192,7 +190,7 @@ class Cart {
|
|
|
192
190
|
/**
|
|
193
191
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
194
192
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
195
|
-
* @returns {Promise<
|
|
193
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
196
194
|
* @name applyRewardPoints
|
|
197
195
|
* @summary: Use reward points
|
|
198
196
|
* @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/).
|
|
@@ -233,46 +231,7 @@ class Cart {
|
|
|
233
231
|
/**
|
|
234
232
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
235
233
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
236
|
-
* @returns {Promise<
|
|
237
|
-
* @name checkoutCart
|
|
238
|
-
* @summary: Checkout cart
|
|
239
|
-
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
240
|
-
*/
|
|
241
|
-
async checkoutCart(
|
|
242
|
-
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
243
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
244
|
-
) {
|
|
245
|
-
const query_params = {};
|
|
246
|
-
query_params["buy_now"] = buyNow;
|
|
247
|
-
query_params["cart_type"] = cartType;
|
|
248
|
-
|
|
249
|
-
const xHeaders = {};
|
|
250
|
-
|
|
251
|
-
const response = await ApplicationAPIClient.execute(
|
|
252
|
-
this._conf,
|
|
253
|
-
"post",
|
|
254
|
-
constructUrl({
|
|
255
|
-
url: this._urls["checkoutCart"],
|
|
256
|
-
params: {},
|
|
257
|
-
}),
|
|
258
|
-
query_params,
|
|
259
|
-
body,
|
|
260
|
-
{ ...xHeaders, ...requestHeaders },
|
|
261
|
-
{ responseHeaders }
|
|
262
|
-
);
|
|
263
|
-
|
|
264
|
-
let responseData = response;
|
|
265
|
-
if (responseHeaders) {
|
|
266
|
-
responseData = response[0];
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
return response;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
274
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
275
|
-
* @returns {Promise<CartCheckoutResult>} - Success response
|
|
234
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
276
235
|
* @name checkoutCartV2
|
|
277
236
|
* @summary: Checkout cart
|
|
278
237
|
* @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/).
|
|
@@ -311,7 +270,7 @@ class Cart {
|
|
|
311
270
|
/**
|
|
312
271
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
313
272
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
314
|
-
* @returns {Promise<
|
|
273
|
+
* @returns {Promise<DeleteCartDetailResponse>} - Success response
|
|
315
274
|
* @name deleteCart
|
|
316
275
|
* @summary: Delete a cart
|
|
317
276
|
* @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/).
|
|
@@ -410,7 +369,7 @@ class Cart {
|
|
|
410
369
|
/**
|
|
411
370
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
412
371
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
413
|
-
* @returns {Promise<
|
|
372
|
+
* @returns {Promise<GetAddressesResponse>} - Success response
|
|
414
373
|
* @name getAddresses
|
|
415
374
|
* @summary: Get a list of addresses for a customer
|
|
416
375
|
* @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/).
|
|
@@ -461,7 +420,7 @@ class Cart {
|
|
|
461
420
|
/**
|
|
462
421
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
463
422
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
464
|
-
* @returns {Promise<
|
|
423
|
+
* @returns {Promise<BulkPriceResponse>} - Success response
|
|
465
424
|
* @name getBulkDiscountOffers
|
|
466
425
|
* @summary: List bulk discounts
|
|
467
426
|
* @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/).
|
|
@@ -502,7 +461,7 @@ class Cart {
|
|
|
502
461
|
/**
|
|
503
462
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
504
463
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
505
|
-
* @returns {Promise<
|
|
464
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
506
465
|
* @name getCart
|
|
507
466
|
* @summary: Get a cart
|
|
508
467
|
* @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/).
|
|
@@ -595,7 +554,7 @@ class Cart {
|
|
|
595
554
|
/**
|
|
596
555
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
597
556
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
598
|
-
* @returns {Promise<
|
|
557
|
+
* @returns {Promise<GetShareCartLinkResponse>} - Success response
|
|
599
558
|
* @name getCartShareLink
|
|
600
559
|
* @summary: Create share cart link
|
|
601
560
|
* @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/).
|
|
@@ -632,7 +591,7 @@ class Cart {
|
|
|
632
591
|
/**
|
|
633
592
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
634
593
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
635
|
-
* @returns {Promise<
|
|
594
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
636
595
|
* @name getCartSharedItems
|
|
637
596
|
* @summary: List shared cart items
|
|
638
597
|
* @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/).
|
|
@@ -678,7 +637,7 @@ class Cart {
|
|
|
678
637
|
/**
|
|
679
638
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
680
639
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
681
|
-
* @returns {Promise<
|
|
640
|
+
* @returns {Promise<GetCouponResponse>} - Success response
|
|
682
641
|
* @name getCoupons
|
|
683
642
|
* @summary: List available coupons
|
|
684
643
|
* @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/).
|
|
@@ -719,7 +678,7 @@ class Cart {
|
|
|
719
678
|
/**
|
|
720
679
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
721
680
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
722
|
-
* @returns {Promise<
|
|
681
|
+
* @returns {Promise<CartItemCountResponse>} - Success response
|
|
723
682
|
* @name getItemCount
|
|
724
683
|
* @summary: Get a cart items count
|
|
725
684
|
* @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/).
|
|
@@ -801,21 +760,15 @@ class Cart {
|
|
|
801
760
|
/**
|
|
802
761
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
803
762
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
804
|
-
* @returns {Promise<
|
|
763
|
+
* @returns {Promise<PromotionOffersResponse>} - Success response
|
|
805
764
|
* @name getPromotionOffers
|
|
806
765
|
* @summary: List available promotion offers
|
|
807
766
|
* @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/).
|
|
808
767
|
*/
|
|
809
768
|
async getPromotionOffers(
|
|
810
|
-
{
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
promotionGroup,
|
|
814
|
-
storeId,
|
|
815
|
-
cartType,
|
|
816
|
-
sortBy,
|
|
817
|
-
requestHeaders,
|
|
818
|
-
} = { requestHeaders: {} },
|
|
769
|
+
{ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
|
|
770
|
+
requestHeaders: {},
|
|
771
|
+
},
|
|
819
772
|
{ responseHeaders } = { responseHeaders: false }
|
|
820
773
|
) {
|
|
821
774
|
const query_params = {};
|
|
@@ -824,7 +777,6 @@ class Cart {
|
|
|
824
777
|
query_params["promotion_group"] = promotionGroup;
|
|
825
778
|
query_params["store_id"] = storeId;
|
|
826
779
|
query_params["cart_type"] = cartType;
|
|
827
|
-
query_params["sort_by"] = sortBy;
|
|
828
780
|
|
|
829
781
|
const xHeaders = {};
|
|
830
782
|
|
|
@@ -852,7 +804,7 @@ class Cart {
|
|
|
852
804
|
/**
|
|
853
805
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
854
806
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
855
|
-
* @returns {Promise<
|
|
807
|
+
* @returns {Promise<PromotionPaymentOffersResponse>} - Success response
|
|
856
808
|
* @name getPromotionPaymentOffers
|
|
857
809
|
* @summary: Fetch available promotions payment offers
|
|
858
810
|
* @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/).
|
|
@@ -891,49 +843,7 @@ class Cart {
|
|
|
891
843
|
/**
|
|
892
844
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
893
845
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
894
|
-
* @returns {Promise<
|
|
895
|
-
* @name getPromotions
|
|
896
|
-
* @summary: List all available promotions of the sales channel
|
|
897
|
-
* @description: List all promotional offers available for the sales channel, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotions/).
|
|
898
|
-
*/
|
|
899
|
-
async getPromotions(
|
|
900
|
-
{ pageSize, pageNo, promotionType, requestHeaders } = {
|
|
901
|
-
requestHeaders: {},
|
|
902
|
-
},
|
|
903
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
904
|
-
) {
|
|
905
|
-
const query_params = {};
|
|
906
|
-
query_params["page_size"] = pageSize;
|
|
907
|
-
query_params["page_no"] = pageNo;
|
|
908
|
-
query_params["promotion_type"] = promotionType;
|
|
909
|
-
|
|
910
|
-
const xHeaders = {};
|
|
911
|
-
|
|
912
|
-
const response = await ApplicationAPIClient.execute(
|
|
913
|
-
this._conf,
|
|
914
|
-
"get",
|
|
915
|
-
constructUrl({
|
|
916
|
-
url: this._urls["getPromotions"],
|
|
917
|
-
params: {},
|
|
918
|
-
}),
|
|
919
|
-
query_params,
|
|
920
|
-
undefined,
|
|
921
|
-
{ ...xHeaders, ...requestHeaders },
|
|
922
|
-
{ responseHeaders }
|
|
923
|
-
);
|
|
924
|
-
|
|
925
|
-
let responseData = response;
|
|
926
|
-
if (responseHeaders) {
|
|
927
|
-
responseData = response[0];
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
return response;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
935
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
936
|
-
* @returns {Promise<CartShipmentsResult>} - Success response
|
|
846
|
+
* @returns {Promise<CartShipmentsResponse>} - Success response
|
|
937
847
|
* @name getShipments
|
|
938
848
|
* @summary: List shipments
|
|
939
849
|
* @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/).
|
|
@@ -978,7 +888,7 @@ class Cart {
|
|
|
978
888
|
/**
|
|
979
889
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
980
890
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
981
|
-
* @returns {Promise<
|
|
891
|
+
* @returns {Promise<DeleteAddressResponse>} - Success response
|
|
982
892
|
* @name removeAddress
|
|
983
893
|
* @summary: Removes an address from a customer's address list
|
|
984
894
|
* @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
@@ -1024,7 +934,7 @@ class Cart {
|
|
|
1024
934
|
/**
|
|
1025
935
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1026
936
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1027
|
-
* @returns {Promise<
|
|
937
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1028
938
|
* @name removeCoupon
|
|
1029
939
|
* @summary: Remove coupon
|
|
1030
940
|
* @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/).
|
|
@@ -1063,7 +973,7 @@ class Cart {
|
|
|
1063
973
|
/**
|
|
1064
974
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1065
975
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1066
|
-
* @returns {Promise<
|
|
976
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1067
977
|
* @name selectAddress
|
|
1068
978
|
* @summary: Select customer address for order processing
|
|
1069
979
|
* @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/).
|
|
@@ -1104,7 +1014,7 @@ class Cart {
|
|
|
1104
1014
|
/**
|
|
1105
1015
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1106
1016
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1107
|
-
* @returns {Promise<
|
|
1017
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1108
1018
|
* @name selectPaymentMode
|
|
1109
1019
|
* @summary: Select payment mode
|
|
1110
1020
|
* @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/).
|
|
@@ -1143,7 +1053,7 @@ class Cart {
|
|
|
1143
1053
|
/**
|
|
1144
1054
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1145
1055
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1146
|
-
* @returns {Promise<
|
|
1056
|
+
* @returns {Promise<UpdateAddressResponse>} - Success response
|
|
1147
1057
|
* @name updateAddress
|
|
1148
1058
|
* @summary: Updates an existing customer address
|
|
1149
1059
|
* @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/).
|
|
@@ -1189,7 +1099,7 @@ class Cart {
|
|
|
1189
1099
|
/**
|
|
1190
1100
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1191
1101
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1192
|
-
* @returns {Promise<
|
|
1102
|
+
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
1193
1103
|
* @name updateCart
|
|
1194
1104
|
* @summary: Update cart items
|
|
1195
1105
|
* @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/).
|
|
@@ -1243,7 +1153,7 @@ class Cart {
|
|
|
1243
1153
|
/**
|
|
1244
1154
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1245
1155
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1246
|
-
* @returns {Promise<
|
|
1156
|
+
* @returns {Promise<CartMetaResponse>} - Success response
|
|
1247
1157
|
* @name updateCartMeta
|
|
1248
1158
|
* @summary: Update cart metadata
|
|
1249
1159
|
* @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/).
|
|
@@ -1282,7 +1192,7 @@ class Cart {
|
|
|
1282
1192
|
/**
|
|
1283
1193
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1284
1194
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1285
|
-
* @returns {Promise<
|
|
1195
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
1286
1196
|
* @name updateCartWithSharedItems
|
|
1287
1197
|
* @summary: Update with shared items
|
|
1288
1198
|
* @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|