@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-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 -114
- 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 -19
- package/sdk/application/Content/ContentApplicationClient.js +54 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -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 -89
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -47
- 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/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -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/OAuthClient.js +1 -0
- 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 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- 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 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- 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 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- 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 +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -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 +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -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 +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- 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 +5 -791
- 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 -105
|
@@ -10,7 +10,6 @@ class Cart {
|
|
|
10
10
|
addItems: "/service/application/cart/v1.0/detail",
|
|
11
11
|
applyCoupon: "/service/application/cart/v1.0/coupon",
|
|
12
12
|
applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
|
|
13
|
-
checkoutCart: "/service/application/cart/v1.0/checkout",
|
|
14
13
|
checkoutCartV2: "/service/application/cart/v2.0/checkout",
|
|
15
14
|
deleteCart: "/service/application/cart/v1.0/cart_archive",
|
|
16
15
|
getAddressById: "/service/application/cart/v1.0/address/{id}",
|
|
@@ -26,7 +25,6 @@ class Cart {
|
|
|
26
25
|
getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
|
|
27
26
|
getPromotionPaymentOffers:
|
|
28
27
|
"/service/application/cart/v1.0/available-payment-offers",
|
|
29
|
-
getPromotions: "/service/application/cart/v1.0/promotion",
|
|
30
28
|
getShipments: "/service/application/cart/v1.0/shipment",
|
|
31
29
|
removeAddress: "/service/application/cart/v1.0/address/{id}",
|
|
32
30
|
removeCoupon: "/service/application/cart/v1.0/coupon",
|
|
@@ -59,7 +57,7 @@ class Cart {
|
|
|
59
57
|
/**
|
|
60
58
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
61
59
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
62
|
-
* @returns {Promise<
|
|
60
|
+
* @returns {Promise<SaveAddressResponse>} - Success response
|
|
63
61
|
* @name addAddress
|
|
64
62
|
* @summary: Creates a new address for a customer
|
|
65
63
|
* @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/).
|
|
@@ -96,7 +94,7 @@ class Cart {
|
|
|
96
94
|
/**
|
|
97
95
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
98
96
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
99
|
-
* @returns {Promise<
|
|
97
|
+
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
100
98
|
* @name addItems
|
|
101
99
|
* @summary: Add items to a cart
|
|
102
100
|
* @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/).
|
|
@@ -141,7 +139,7 @@ class Cart {
|
|
|
141
139
|
/**
|
|
142
140
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
143
141
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
144
|
-
* @returns {Promise<
|
|
142
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
145
143
|
* @name applyCoupon
|
|
146
144
|
* @summary: Apply coupon
|
|
147
145
|
* @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/).
|
|
@@ -186,7 +184,7 @@ class Cart {
|
|
|
186
184
|
/**
|
|
187
185
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
188
186
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
189
|
-
* @returns {Promise<
|
|
187
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
190
188
|
* @name applyRewardPoints
|
|
191
189
|
* @summary: Use reward points
|
|
192
190
|
* @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/).
|
|
@@ -227,46 +225,7 @@ class Cart {
|
|
|
227
225
|
/**
|
|
228
226
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
229
227
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
230
|
-
* @returns {Promise<
|
|
231
|
-
* @name checkoutCart
|
|
232
|
-
* @summary: Checkout cart
|
|
233
|
-
* @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/).
|
|
234
|
-
*/
|
|
235
|
-
async checkoutCart(
|
|
236
|
-
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
237
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
238
|
-
) {
|
|
239
|
-
const query_params = {};
|
|
240
|
-
query_params["buy_now"] = buyNow;
|
|
241
|
-
query_params["cart_type"] = cartType;
|
|
242
|
-
|
|
243
|
-
const xHeaders = {};
|
|
244
|
-
|
|
245
|
-
const response = await ApplicationAPIClient.execute(
|
|
246
|
-
this._conf,
|
|
247
|
-
"post",
|
|
248
|
-
constructUrl({
|
|
249
|
-
url: this._urls["checkoutCart"],
|
|
250
|
-
params: {},
|
|
251
|
-
}),
|
|
252
|
-
query_params,
|
|
253
|
-
body,
|
|
254
|
-
{ ...xHeaders, ...requestHeaders },
|
|
255
|
-
{ responseHeaders }
|
|
256
|
-
);
|
|
257
|
-
|
|
258
|
-
let responseData = response;
|
|
259
|
-
if (responseHeaders) {
|
|
260
|
-
responseData = response[0];
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
return response;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
268
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
269
|
-
* @returns {Promise<CartCheckoutResult>} - Success response
|
|
228
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
270
229
|
* @name checkoutCartV2
|
|
271
230
|
* @summary: Checkout cart
|
|
272
231
|
* @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/).
|
|
@@ -305,7 +264,7 @@ class Cart {
|
|
|
305
264
|
/**
|
|
306
265
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
307
266
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
308
|
-
* @returns {Promise<
|
|
267
|
+
* @returns {Promise<DeleteCartDetailResponse>} - Success response
|
|
309
268
|
* @name deleteCart
|
|
310
269
|
* @summary: Delete a cart
|
|
311
270
|
* @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/).
|
|
@@ -395,7 +354,7 @@ class Cart {
|
|
|
395
354
|
/**
|
|
396
355
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
397
356
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
398
|
-
* @returns {Promise<
|
|
357
|
+
* @returns {Promise<GetAddressesResponse>} - Success response
|
|
399
358
|
* @name getAddresses
|
|
400
359
|
* @summary: Get a list of addresses for a customer
|
|
401
360
|
* @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/).
|
|
@@ -446,7 +405,7 @@ class Cart {
|
|
|
446
405
|
/**
|
|
447
406
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
448
407
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
449
|
-
* @returns {Promise<
|
|
408
|
+
* @returns {Promise<BulkPriceResponse>} - Success response
|
|
450
409
|
* @name getBulkDiscountOffers
|
|
451
410
|
* @summary: List bulk discounts
|
|
452
411
|
* @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/).
|
|
@@ -487,7 +446,7 @@ class Cart {
|
|
|
487
446
|
/**
|
|
488
447
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
489
448
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
490
|
-
* @returns {Promise<
|
|
449
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
491
450
|
* @name getCart
|
|
492
451
|
* @summary: Get a cart
|
|
493
452
|
* @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/).
|
|
@@ -580,7 +539,7 @@ class Cart {
|
|
|
580
539
|
/**
|
|
581
540
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
582
541
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
583
|
-
* @returns {Promise<
|
|
542
|
+
* @returns {Promise<GetShareCartLinkResponse>} - Success response
|
|
584
543
|
* @name getCartShareLink
|
|
585
544
|
* @summary: Create share cart link
|
|
586
545
|
* @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/).
|
|
@@ -617,7 +576,7 @@ class Cart {
|
|
|
617
576
|
/**
|
|
618
577
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
619
578
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
620
|
-
* @returns {Promise<
|
|
579
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
621
580
|
* @name getCartSharedItems
|
|
622
581
|
* @summary: List shared cart items
|
|
623
582
|
* @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/).
|
|
@@ -654,7 +613,7 @@ class Cart {
|
|
|
654
613
|
/**
|
|
655
614
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
656
615
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
657
|
-
* @returns {Promise<
|
|
616
|
+
* @returns {Promise<GetCouponResponse>} - Success response
|
|
658
617
|
* @name getCoupons
|
|
659
618
|
* @summary: List available coupons
|
|
660
619
|
* @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/).
|
|
@@ -695,7 +654,7 @@ class Cart {
|
|
|
695
654
|
/**
|
|
696
655
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
697
656
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
698
|
-
* @returns {Promise<
|
|
657
|
+
* @returns {Promise<CartItemCountResponse>} - Success response
|
|
699
658
|
* @name getItemCount
|
|
700
659
|
* @summary: Get a cart items count
|
|
701
660
|
* @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/).
|
|
@@ -777,21 +736,15 @@ class Cart {
|
|
|
777
736
|
/**
|
|
778
737
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
779
738
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
780
|
-
* @returns {Promise<
|
|
739
|
+
* @returns {Promise<PromotionOffersResponse>} - Success response
|
|
781
740
|
* @name getPromotionOffers
|
|
782
741
|
* @summary: List available promotion offers
|
|
783
742
|
* @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/).
|
|
784
743
|
*/
|
|
785
744
|
async getPromotionOffers(
|
|
786
|
-
{
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
promotionGroup,
|
|
790
|
-
storeId,
|
|
791
|
-
cartType,
|
|
792
|
-
sortBy,
|
|
793
|
-
requestHeaders,
|
|
794
|
-
} = { requestHeaders: {} },
|
|
745
|
+
{ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
|
|
746
|
+
requestHeaders: {},
|
|
747
|
+
},
|
|
795
748
|
{ responseHeaders } = { responseHeaders: false }
|
|
796
749
|
) {
|
|
797
750
|
const query_params = {};
|
|
@@ -800,7 +753,6 @@ class Cart {
|
|
|
800
753
|
query_params["promotion_group"] = promotionGroup;
|
|
801
754
|
query_params["store_id"] = storeId;
|
|
802
755
|
query_params["cart_type"] = cartType;
|
|
803
|
-
query_params["sort_by"] = sortBy;
|
|
804
756
|
|
|
805
757
|
const xHeaders = {};
|
|
806
758
|
|
|
@@ -828,7 +780,7 @@ class Cart {
|
|
|
828
780
|
/**
|
|
829
781
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
830
782
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
831
|
-
* @returns {Promise<
|
|
783
|
+
* @returns {Promise<PromotionPaymentOffersResponse>} - Success response
|
|
832
784
|
* @name getPromotionPaymentOffers
|
|
833
785
|
* @summary: Fetch available promotions payment offers
|
|
834
786
|
* @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/).
|
|
@@ -867,46 +819,7 @@ class Cart {
|
|
|
867
819
|
/**
|
|
868
820
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
869
821
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
870
|
-
* @returns {Promise<
|
|
871
|
-
* @name getPromotions
|
|
872
|
-
* @summary: List all available promotions of the sales channel
|
|
873
|
-
* @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/).
|
|
874
|
-
*/
|
|
875
|
-
async getPromotions(
|
|
876
|
-
{ pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
|
|
877
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
878
|
-
) {
|
|
879
|
-
const query_params = {};
|
|
880
|
-
query_params["page_size"] = pageSize;
|
|
881
|
-
query_params["page_no"] = pageNo;
|
|
882
|
-
|
|
883
|
-
const xHeaders = {};
|
|
884
|
-
|
|
885
|
-
const response = await ApplicationAPIClient.execute(
|
|
886
|
-
this._conf,
|
|
887
|
-
"get",
|
|
888
|
-
constructUrl({
|
|
889
|
-
url: this._urls["getPromotions"],
|
|
890
|
-
params: {},
|
|
891
|
-
}),
|
|
892
|
-
query_params,
|
|
893
|
-
undefined,
|
|
894
|
-
{ ...xHeaders, ...requestHeaders },
|
|
895
|
-
{ responseHeaders }
|
|
896
|
-
);
|
|
897
|
-
|
|
898
|
-
let responseData = response;
|
|
899
|
-
if (responseHeaders) {
|
|
900
|
-
responseData = response[0];
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
return response;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
908
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
909
|
-
* @returns {Promise<CartShipmentsResult>} - Success response
|
|
822
|
+
* @returns {Promise<CartShipmentsResponse>} - Success response
|
|
910
823
|
* @name getShipments
|
|
911
824
|
* @summary: List shipments
|
|
912
825
|
* @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/).
|
|
@@ -951,7 +864,7 @@ class Cart {
|
|
|
951
864
|
/**
|
|
952
865
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
953
866
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
954
|
-
* @returns {Promise<
|
|
867
|
+
* @returns {Promise<DeleteAddressResponse>} - Success response
|
|
955
868
|
* @name removeAddress
|
|
956
869
|
* @summary: Removes an address from a customer's address list
|
|
957
870
|
* @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
@@ -988,7 +901,7 @@ class Cart {
|
|
|
988
901
|
/**
|
|
989
902
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
990
903
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
991
|
-
* @returns {Promise<
|
|
904
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
992
905
|
* @name removeCoupon
|
|
993
906
|
* @summary: Remove coupon
|
|
994
907
|
* @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/).
|
|
@@ -1027,7 +940,7 @@ class Cart {
|
|
|
1027
940
|
/**
|
|
1028
941
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1029
942
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1030
|
-
* @returns {Promise<
|
|
943
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1031
944
|
* @name selectAddress
|
|
1032
945
|
* @summary: Select customer address for order processing
|
|
1033
946
|
* @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/).
|
|
@@ -1068,7 +981,7 @@ class Cart {
|
|
|
1068
981
|
/**
|
|
1069
982
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1070
983
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1071
|
-
* @returns {Promise<
|
|
984
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1072
985
|
* @name selectPaymentMode
|
|
1073
986
|
* @summary: Select payment mode
|
|
1074
987
|
* @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/).
|
|
@@ -1107,7 +1020,7 @@ class Cart {
|
|
|
1107
1020
|
/**
|
|
1108
1021
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1109
1022
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1110
|
-
* @returns {Promise<
|
|
1023
|
+
* @returns {Promise<UpdateAddressResponse>} - Success response
|
|
1111
1024
|
* @name updateAddress
|
|
1112
1025
|
* @summary: Updates an existing customer address
|
|
1113
1026
|
* @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/).
|
|
@@ -1144,7 +1057,7 @@ class Cart {
|
|
|
1144
1057
|
/**
|
|
1145
1058
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1146
1059
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1147
|
-
* @returns {Promise<
|
|
1060
|
+
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
1148
1061
|
* @name updateCart
|
|
1149
1062
|
* @summary: Update cart items
|
|
1150
1063
|
* @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/).
|
|
@@ -1198,7 +1111,7 @@ class Cart {
|
|
|
1198
1111
|
/**
|
|
1199
1112
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1200
1113
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1201
|
-
* @returns {Promise<
|
|
1114
|
+
* @returns {Promise<CartMetaResponse>} - Success response
|
|
1202
1115
|
* @name updateCartMeta
|
|
1203
1116
|
* @summary: Update cart metadata
|
|
1204
1117
|
* @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/).
|
|
@@ -1237,7 +1150,7 @@ class Cart {
|
|
|
1237
1150
|
/**
|
|
1238
1151
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1239
1152
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1240
|
-
* @returns {Promise<
|
|
1153
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
1241
1154
|
* @name updateCartWithSharedItems
|
|
1242
1155
|
* @summary: Update with shared items
|
|
1243
1156
|
* @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|