@gofynd/fdk-client-javascript 3.14.0 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -1
- package/sdk/application/Order/OrderApplicationClient.js +50 -1
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -20
- package/sdk/application/Payment/PaymentApplicationClient.js +0 -77
- package/sdk/common/Constant.d.ts +13 -4
- package/sdk/common/Constant.js +17 -6
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2 -2
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1 -1
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +5 -4
- package/sdk/partner/Theme/ThemePartnerModel.js +9 -6
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +95 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +47 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +29 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +17 -3
- package/sdk/platform/Cart/CartPlatformModel.js +14 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +13 -16
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +17 -20
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +10 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +63 -41
- package/sdk/platform/Catalog/CatalogPlatformModel.js +42 -34
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1 -1
- package/sdk/platform/Content/ContentPlatformModel.d.ts +7 -6
- package/sdk/platform/Content/ContentPlatformModel.js +10 -7
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformModel.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +0 -23
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +0 -161
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -19
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +0 -24
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1 -159
- package/sdk/platform/Payment/PaymentPlatformModel.js +0 -112
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +67 -49
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +45 -42
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformModel.js +1 -1
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +5 -4
- package/sdk/platform/Theme/ThemePlatformModel.js +9 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +3 -2
- package/sdk/platform/User/UserPlatformApplicationClient.js +5 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +0 -1
- package/sdk/platform/User/UserPlatformModel.d.ts +17 -1
- package/sdk/platform/User/UserPlatformModel.js +15 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.16.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ declare class Order {
|
|
|
12
12
|
getShipmentById: string;
|
|
13
13
|
getShipmentReasons: string;
|
|
14
14
|
sendOtpToShipmentCustomer: string;
|
|
15
|
+
submitDeliveryReattemptRequest: string;
|
|
15
16
|
trackShipment: string;
|
|
16
17
|
updateShipmentStatus: string;
|
|
17
18
|
verifyOtpShipmentCustomer: string;
|
|
@@ -98,7 +99,16 @@ declare class Order {
|
|
|
98
99
|
* @summary: Send OTP to customer
|
|
99
100
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
100
101
|
*/
|
|
101
|
-
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SendOtpToCustomerResponseSchema>;
|
|
102
|
+
sendOtpToShipmentCustomer({ orderId, shipmentId, eventType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SendOtpToCustomerResponseSchema>;
|
|
103
|
+
/**
|
|
104
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
105
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
106
|
+
* @returns {Promise<DeliveryReattemptSuccessResponseSchema>} - Success response
|
|
107
|
+
* @name submitDeliveryReattemptRequest
|
|
108
|
+
* @summary: Initiates a delivery reattempt request for a given shipment
|
|
109
|
+
* @description: This operation allows customers to submit a request for reattempting the delivery of a specific shipment with optional address updates and a new delivery date. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/order/submitDeliveryReattemptRequest/).
|
|
110
|
+
*/
|
|
111
|
+
submitDeliveryReattemptRequest({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<DeliveryReattemptSuccessResponseSchema>;
|
|
102
112
|
/**
|
|
103
113
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
114
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -28,6 +28,8 @@ class Order {
|
|
|
28
28
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",
|
|
29
29
|
sendOtpToShipmentCustomer:
|
|
30
30
|
"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",
|
|
31
|
+
submitDeliveryReattemptRequest:
|
|
32
|
+
"/service/application/order/v1.0/shipments/{shipment_id}/delivery-reattempt",
|
|
31
33
|
trackShipment:
|
|
32
34
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",
|
|
33
35
|
updateShipmentStatus:
|
|
@@ -447,7 +449,7 @@ class Order {
|
|
|
447
449
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
448
450
|
*/
|
|
449
451
|
async sendOtpToShipmentCustomer(
|
|
450
|
-
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
452
|
+
{ orderId, shipmentId, eventType, requestHeaders } = { requestHeaders: {} },
|
|
451
453
|
{ responseHeaders } = { responseHeaders: false }
|
|
452
454
|
) {
|
|
453
455
|
const errors = validateRequiredParams(arguments[0], [
|
|
@@ -463,6 +465,7 @@ class Order {
|
|
|
463
465
|
}
|
|
464
466
|
|
|
465
467
|
const query_params = {};
|
|
468
|
+
query_params["event_type"] = eventType;
|
|
466
469
|
|
|
467
470
|
const xHeaders = {};
|
|
468
471
|
|
|
@@ -487,6 +490,52 @@ class Order {
|
|
|
487
490
|
return response;
|
|
488
491
|
}
|
|
489
492
|
|
|
493
|
+
/**
|
|
494
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
495
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
496
|
+
* @returns {Promise<DeliveryReattemptSuccessResponseSchema>} - Success response
|
|
497
|
+
* @name submitDeliveryReattemptRequest
|
|
498
|
+
* @summary: Initiates a delivery reattempt request for a given shipment
|
|
499
|
+
* @description: This operation allows customers to submit a request for reattempting the delivery of a specific shipment with optional address updates and a new delivery date. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/order/submitDeliveryReattemptRequest/).
|
|
500
|
+
*/
|
|
501
|
+
async submitDeliveryReattemptRequest(
|
|
502
|
+
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
503
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
504
|
+
) {
|
|
505
|
+
const errors = validateRequiredParams(arguments[0], ["shipmentId"]);
|
|
506
|
+
if (errors.length > 0) {
|
|
507
|
+
const error = new FDKClientValidationError({
|
|
508
|
+
message: "Missing required field",
|
|
509
|
+
details: errors,
|
|
510
|
+
});
|
|
511
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
const query_params = {};
|
|
515
|
+
|
|
516
|
+
const xHeaders = {};
|
|
517
|
+
|
|
518
|
+
const response = await ApplicationAPIClient.execute(
|
|
519
|
+
this._conf,
|
|
520
|
+
"put",
|
|
521
|
+
constructUrl({
|
|
522
|
+
url: this._urls["submitDeliveryReattemptRequest"],
|
|
523
|
+
params: { shipmentId },
|
|
524
|
+
}),
|
|
525
|
+
query_params,
|
|
526
|
+
body,
|
|
527
|
+
{ ...xHeaders, ...requestHeaders },
|
|
528
|
+
{ responseHeaders }
|
|
529
|
+
);
|
|
530
|
+
|
|
531
|
+
let responseData = response;
|
|
532
|
+
if (responseHeaders) {
|
|
533
|
+
responseData = response[0];
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
return response;
|
|
537
|
+
}
|
|
538
|
+
|
|
490
539
|
/**
|
|
491
540
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
492
541
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -26,7 +26,6 @@ declare class Payment {
|
|
|
26
26
|
getActiveRefundTransferModes: string;
|
|
27
27
|
getActiveUserCards: string;
|
|
28
28
|
getAggregatorsConfig: string;
|
|
29
|
-
getEpaylaterBannerDetails: string;
|
|
30
29
|
getOrderBeneficiariesDetail: string;
|
|
31
30
|
getPaymentLink: string;
|
|
32
31
|
getPaymentModeRoutes: string;
|
|
@@ -34,7 +33,6 @@ declare class Payment {
|
|
|
34
33
|
getPosPaymentModeRoutes: string;
|
|
35
34
|
getRefundBeneficiaries: string;
|
|
36
35
|
getRefundBeneficiariesUsingOTPSession: string;
|
|
37
|
-
getRupifiBannerDetails: string;
|
|
38
36
|
getUserBeneficiariesDetail: string;
|
|
39
37
|
initialisePayment: string;
|
|
40
38
|
initialisePaymentPaymentLink: string;
|
|
@@ -264,15 +262,6 @@ declare class Payment {
|
|
|
264
262
|
* @description: Get aggregator secret key of all payment gateways utilized for payments when using the SDK for the payment gateway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getAggregatorsConfig/).
|
|
265
263
|
*/
|
|
266
264
|
getAggregatorsConfig({ refresh, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AggregatorsConfigDetail>;
|
|
267
|
-
/**
|
|
268
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
269
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
270
|
-
* @returns {Promise<EpaylaterBannerDetails>} - Success response
|
|
271
|
-
* @name getEpaylaterBannerDetails
|
|
272
|
-
* @summary: Epaylater banner info
|
|
273
|
-
* @description: Get Epaylater payment banner details. It provides information about the banner's display status, along with relevant messages and the user's registration status. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getEpaylaterBannerDetails/).
|
|
274
|
-
*/
|
|
275
|
-
getEpaylaterBannerDetails({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<EpaylaterBannerDetails>;
|
|
276
265
|
/**
|
|
277
266
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
278
267
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -336,15 +325,6 @@ declare class Payment {
|
|
|
336
325
|
* @description: Returns a list of UPI and Bank refund beneficiaries associated with a user for a given order and shipment. Use the optional filter_by enum parameter to refine the response. When the value of filter_by is order, the API returns only beneficiaries associated with the order. When the value of filter_by is shipment, it returns only beneficiaries associated with the shipment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getRefundBeneficiariesUsingOTPSession/).
|
|
337
326
|
*/
|
|
338
327
|
getRefundBeneficiariesUsingOTPSession({ orderId, shipmentId, filterBy, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<RefundBeneficiaries>;
|
|
339
|
-
/**
|
|
340
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
341
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
342
|
-
* @returns {Promise<RupifiBannerDetails>} - Success response
|
|
343
|
-
* @name getRupifiBannerDetails
|
|
344
|
-
* @summary: Rupifi banner info
|
|
345
|
-
* @description: Get Rupifi payment banner details. It provides information such as the KYC URL and the current status of the Rupifi payment banner. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getRupifiBannerDetails/).
|
|
346
|
-
*/
|
|
347
|
-
getRupifiBannerDetails({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<RupifiBannerDetails>;
|
|
348
328
|
/**
|
|
349
329
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
350
330
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -50,8 +50,6 @@ class Payment {
|
|
|
50
50
|
getActiveUserCards: "/service/application/payment/v1.0/cards",
|
|
51
51
|
getAggregatorsConfig:
|
|
52
52
|
"/service/application/payment/v1.0/config/aggregators/key",
|
|
53
|
-
getEpaylaterBannerDetails:
|
|
54
|
-
"/service/application/payment/v1.0/epaylater/banner",
|
|
55
53
|
getOrderBeneficiariesDetail:
|
|
56
54
|
"/service/application/payment/v1.0/refund/order/beneficiaries",
|
|
57
55
|
getPaymentLink: "/service/application/payment/v1.0/create-payment-link/",
|
|
@@ -64,7 +62,6 @@ class Payment {
|
|
|
64
62
|
"/service/application/payment/v2.0/refund/user/beneficiary",
|
|
65
63
|
getRefundBeneficiariesUsingOTPSession:
|
|
66
64
|
"/service/application/payment/v2.0/refund/user/beneficiary-otp",
|
|
67
|
-
getRupifiBannerDetails: "/service/application/payment/v1.0/rupifi/banner",
|
|
68
65
|
getUserBeneficiariesDetail:
|
|
69
66
|
"/service/application/payment/v1.0/refund/user/beneficiary",
|
|
70
67
|
initialisePayment: "/service/application/payment/v1.0/payment/request",
|
|
@@ -991,43 +988,6 @@ class Payment {
|
|
|
991
988
|
return response;
|
|
992
989
|
}
|
|
993
990
|
|
|
994
|
-
/**
|
|
995
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
996
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
997
|
-
* @returns {Promise<EpaylaterBannerDetails>} - Success response
|
|
998
|
-
* @name getEpaylaterBannerDetails
|
|
999
|
-
* @summary: Epaylater banner info
|
|
1000
|
-
* @description: Get Epaylater payment banner details. It provides information about the banner's display status, along with relevant messages and the user's registration status. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getEpaylaterBannerDetails/).
|
|
1001
|
-
*/
|
|
1002
|
-
async getEpaylaterBannerDetails(
|
|
1003
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1004
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1005
|
-
) {
|
|
1006
|
-
const query_params = {};
|
|
1007
|
-
|
|
1008
|
-
const xHeaders = {};
|
|
1009
|
-
|
|
1010
|
-
const response = await ApplicationAPIClient.execute(
|
|
1011
|
-
this._conf,
|
|
1012
|
-
"get",
|
|
1013
|
-
constructUrl({
|
|
1014
|
-
url: this._urls["getEpaylaterBannerDetails"],
|
|
1015
|
-
params: {},
|
|
1016
|
-
}),
|
|
1017
|
-
query_params,
|
|
1018
|
-
undefined,
|
|
1019
|
-
{ ...xHeaders, ...requestHeaders },
|
|
1020
|
-
{ responseHeaders }
|
|
1021
|
-
);
|
|
1022
|
-
|
|
1023
|
-
let responseData = response;
|
|
1024
|
-
if (responseHeaders) {
|
|
1025
|
-
responseData = response[0];
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
return response;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
991
|
/**
|
|
1032
992
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1033
993
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -1336,43 +1296,6 @@ class Payment {
|
|
|
1336
1296
|
return response;
|
|
1337
1297
|
}
|
|
1338
1298
|
|
|
1339
|
-
/**
|
|
1340
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1341
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1342
|
-
* @returns {Promise<RupifiBannerDetails>} - Success response
|
|
1343
|
-
* @name getRupifiBannerDetails
|
|
1344
|
-
* @summary: Rupifi banner info
|
|
1345
|
-
* @description: Get Rupifi payment banner details. It provides information such as the KYC URL and the current status of the Rupifi payment banner. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getRupifiBannerDetails/).
|
|
1346
|
-
*/
|
|
1347
|
-
async getRupifiBannerDetails(
|
|
1348
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1349
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1350
|
-
) {
|
|
1351
|
-
const query_params = {};
|
|
1352
|
-
|
|
1353
|
-
const xHeaders = {};
|
|
1354
|
-
|
|
1355
|
-
const response = await ApplicationAPIClient.execute(
|
|
1356
|
-
this._conf,
|
|
1357
|
-
"get",
|
|
1358
|
-
constructUrl({
|
|
1359
|
-
url: this._urls["getRupifiBannerDetails"],
|
|
1360
|
-
params: {},
|
|
1361
|
-
}),
|
|
1362
|
-
query_params,
|
|
1363
|
-
undefined,
|
|
1364
|
-
{ ...xHeaders, ...requestHeaders },
|
|
1365
|
-
{ responseHeaders }
|
|
1366
|
-
);
|
|
1367
|
-
|
|
1368
|
-
let responseData = response;
|
|
1369
|
-
if (responseHeaders) {
|
|
1370
|
-
responseData = response[0];
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
return response;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
1299
|
/**
|
|
1377
1300
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1378
1301
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
package/sdk/common/Constant.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export namespace AVAILABLE_PAGE_TYPE {
|
|
|
27
27
|
const PROFILE_ORDER_SHIPMENT: string;
|
|
28
28
|
const PROFILE_BASIC: string;
|
|
29
29
|
const PROFILE_COMPANY: string;
|
|
30
|
-
const
|
|
31
|
-
const
|
|
30
|
+
const PROFILE_EMAIL: string;
|
|
31
|
+
const PROFILE_PHONE: string;
|
|
32
32
|
const RATE_US: string;
|
|
33
33
|
const REFER_EARN: string;
|
|
34
34
|
const SETTINGS: string;
|
|
@@ -48,6 +48,7 @@ export namespace AVAILABLE_PAGE_TYPE {
|
|
|
48
48
|
const ORDER_STATUS: string;
|
|
49
49
|
const LOCATE_US: string;
|
|
50
50
|
const SINGLE_PAGE_CHECKOUT: string;
|
|
51
|
+
const REQUEST_REATTEMPT: string;
|
|
51
52
|
}
|
|
52
53
|
export const NAVIGATORS: {
|
|
53
54
|
"about-us": {
|
|
@@ -206,11 +207,11 @@ export const NAVIGATORS: {
|
|
|
206
207
|
name: string;
|
|
207
208
|
link: string;
|
|
208
209
|
};
|
|
209
|
-
"profile-
|
|
210
|
+
"profile-email": {
|
|
210
211
|
name: string;
|
|
211
212
|
link: string;
|
|
212
213
|
};
|
|
213
|
-
"profile-
|
|
214
|
+
"profile-phone": {
|
|
214
215
|
name: string;
|
|
215
216
|
link: string;
|
|
216
217
|
};
|
|
@@ -306,4 +307,12 @@ export const NAVIGATORS: {
|
|
|
306
307
|
name: string;
|
|
307
308
|
link: string;
|
|
308
309
|
};
|
|
310
|
+
"request-reattempt": {
|
|
311
|
+
name: string;
|
|
312
|
+
link: string;
|
|
313
|
+
params: {
|
|
314
|
+
key: string;
|
|
315
|
+
required: boolean;
|
|
316
|
+
}[];
|
|
317
|
+
};
|
|
309
318
|
};
|
package/sdk/common/Constant.js
CHANGED
|
@@ -27,8 +27,8 @@ const AVAILABLE_PAGE_TYPE = {
|
|
|
27
27
|
PROFILE_ORDER_SHIPMENT: "profile-order-shipment",
|
|
28
28
|
PROFILE_BASIC: "profile-basic",
|
|
29
29
|
PROFILE_COMPANY: "profile-company",
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
PROFILE_EMAIL: "profile-email",
|
|
31
|
+
PROFILE_PHONE: "profile-phone",
|
|
32
32
|
RATE_US: "rate-us",
|
|
33
33
|
REFER_EARN: "refer-earn",
|
|
34
34
|
SETTINGS: "settings",
|
|
@@ -48,6 +48,7 @@ const AVAILABLE_PAGE_TYPE = {
|
|
|
48
48
|
ORDER_STATUS: "order-status",
|
|
49
49
|
LOCATE_US: "locate-us",
|
|
50
50
|
SINGLE_PAGE_CHECKOUT: "single-page-checkout",
|
|
51
|
+
REQUEST_REATTEMPT: "request-reattempt",
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
Object.freeze(AVAILABLE_PAGE_TYPE);
|
|
@@ -231,12 +232,12 @@ const NAVIGATORS = {
|
|
|
231
232
|
name: "Profile Company",
|
|
232
233
|
link: "/profile/company",
|
|
233
234
|
},
|
|
234
|
-
"profile-
|
|
235
|
-
name: "Profile
|
|
235
|
+
"profile-email": {
|
|
236
|
+
name: "Profile Email",
|
|
236
237
|
link: "/profile/email",
|
|
237
238
|
},
|
|
238
|
-
"profile-
|
|
239
|
-
name: "Profile
|
|
239
|
+
"profile-phone": {
|
|
240
|
+
name: "Profile Phone",
|
|
240
241
|
link: "/profile/phone",
|
|
241
242
|
},
|
|
242
243
|
"rate-us": {
|
|
@@ -339,6 +340,16 @@ const NAVIGATORS = {
|
|
|
339
340
|
name: "Single Page Checkout",
|
|
340
341
|
link: "/cart/checkout",
|
|
341
342
|
},
|
|
343
|
+
"request-reattempt": {
|
|
344
|
+
name: "Request Reattempt",
|
|
345
|
+
link: "/reattempt/shipment/:shipmentId",
|
|
346
|
+
params: [
|
|
347
|
+
{
|
|
348
|
+
key: "shipmentId",
|
|
349
|
+
required: true,
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
},
|
|
342
353
|
};
|
|
343
354
|
|
|
344
355
|
module.exports = {
|
|
@@ -12,7 +12,7 @@ export = LeadPartnerModel;
|
|
|
12
12
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
13
13
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
14
14
|
* @property {number} [current] - The current page number.
|
|
15
|
-
* @property {string} type - The type of the page,
|
|
15
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
16
16
|
* @property {number} [size] - The number of items per page.
|
|
17
17
|
* @property {number} [page_size] - The number of items per page.
|
|
18
18
|
*/
|
|
@@ -216,7 +216,7 @@ type Page = {
|
|
|
216
216
|
*/
|
|
217
217
|
current?: number;
|
|
218
218
|
/**
|
|
219
|
-
* - The type of the page,
|
|
219
|
+
* - The type of the page, can be 'cursor' or 'number'.
|
|
220
220
|
*/
|
|
221
221
|
type: string;
|
|
222
222
|
/**
|
|
@@ -14,7 +14,7 @@ const Joi = require("joi");
|
|
|
14
14
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
15
15
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
16
16
|
* @property {number} [current] - The current page number.
|
|
17
|
-
* @property {string} type - The type of the page,
|
|
17
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
18
18
|
* @property {number} [size] - The number of items per page.
|
|
19
19
|
* @property {number} [page_size] - The number of items per page.
|
|
20
20
|
*/
|
|
@@ -578,7 +578,7 @@ export = LogisticsPartnerModel;
|
|
|
578
578
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
579
579
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
580
580
|
* @property {number} [current] - The current page number.
|
|
581
|
-
* @property {string} type - The type of the page,
|
|
581
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
582
582
|
* @property {number} [size] - The number of items per page.
|
|
583
583
|
* @property {number} [page_size] - The number of items per page.
|
|
584
584
|
*/
|
|
@@ -2018,7 +2018,7 @@ type Page = {
|
|
|
2018
2018
|
*/
|
|
2019
2019
|
current?: number;
|
|
2020
2020
|
/**
|
|
2021
|
-
* - The type of the page,
|
|
2021
|
+
* - The type of the page, can be 'cursor' or 'number'.
|
|
2022
2022
|
*/
|
|
2023
2023
|
type: string;
|
|
2024
2024
|
/**
|
|
@@ -615,7 +615,7 @@ const Joi = require("joi");
|
|
|
615
615
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
616
616
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
617
617
|
* @property {number} [current] - The current page number.
|
|
618
|
-
* @property {string} type - The type of the page,
|
|
618
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
619
619
|
* @property {number} [size] - The number of items per page.
|
|
620
620
|
* @property {number} [page_size] - The number of items per page.
|
|
621
621
|
*/
|
|
@@ -654,8 +654,8 @@ export = ThemePartnerModel;
|
|
|
654
654
|
* | "profile-order-shipment"
|
|
655
655
|
* | "profile-basic"
|
|
656
656
|
* | "profile-company"
|
|
657
|
-
* | "profile-
|
|
658
|
-
* | "profile-
|
|
657
|
+
* | "profile-email"
|
|
658
|
+
* | "profile-phone"
|
|
659
659
|
* | "rate-us"
|
|
660
660
|
* | "refer-earn"
|
|
661
661
|
* | "settings"
|
|
@@ -674,7 +674,8 @@ export = ThemePartnerModel;
|
|
|
674
674
|
* | "return-policy"
|
|
675
675
|
* | "order-status"
|
|
676
676
|
* | "locate-us"
|
|
677
|
-
* | "single-page-checkout"
|
|
677
|
+
* | "single-page-checkout"
|
|
678
|
+
* | "request-reattempt"} PageType
|
|
678
679
|
*/
|
|
679
680
|
declare class ThemePartnerModel {
|
|
680
681
|
}
|
|
@@ -1896,4 +1897,4 @@ type ActionPage = {
|
|
|
1896
1897
|
* @returns {PageType}
|
|
1897
1898
|
*/
|
|
1898
1899
|
declare function PageType(): PageType;
|
|
1899
|
-
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-
|
|
1900
|
+
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt";
|
|
@@ -746,8 +746,8 @@ const Joi = require("joi");
|
|
|
746
746
|
* | "profile-order-shipment"
|
|
747
747
|
* | "profile-basic"
|
|
748
748
|
* | "profile-company"
|
|
749
|
-
* | "profile-
|
|
750
|
-
* | "profile-
|
|
749
|
+
* | "profile-email"
|
|
750
|
+
* | "profile-phone"
|
|
751
751
|
* | "rate-us"
|
|
752
752
|
* | "refer-earn"
|
|
753
753
|
* | "settings"
|
|
@@ -766,7 +766,8 @@ const Joi = require("joi");
|
|
|
766
766
|
* | "return-policy"
|
|
767
767
|
* | "order-status"
|
|
768
768
|
* | "locate-us"
|
|
769
|
-
* | "single-page-checkout"
|
|
769
|
+
* | "single-page-checkout"
|
|
770
|
+
* | "request-reattempt"} PageType
|
|
770
771
|
*/
|
|
771
772
|
|
|
772
773
|
class ThemePartnerModel {
|
|
@@ -1737,9 +1738,9 @@ class ThemePartnerModel {
|
|
|
1737
1738
|
|
|
1738
1739
|
"profile-company",
|
|
1739
1740
|
|
|
1740
|
-
"profile-
|
|
1741
|
+
"profile-email",
|
|
1741
1742
|
|
|
1742
|
-
"profile-
|
|
1743
|
+
"profile-phone",
|
|
1743
1744
|
|
|
1744
1745
|
"rate-us",
|
|
1745
1746
|
|
|
@@ -1777,7 +1778,9 @@ class ThemePartnerModel {
|
|
|
1777
1778
|
|
|
1778
1779
|
"locate-us",
|
|
1779
1780
|
|
|
1780
|
-
"single-page-checkout"
|
|
1781
|
+
"single-page-checkout",
|
|
1782
|
+
|
|
1783
|
+
"request-reattempt"
|
|
1781
1784
|
);
|
|
1782
1785
|
}
|
|
1783
1786
|
}
|
|
@@ -254,7 +254,7 @@ export = WebhookPartnerModel;
|
|
|
254
254
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
255
255
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
256
256
|
* @property {number} [current] - The current page number.
|
|
257
|
-
* @property {string} type - The type of the page,
|
|
257
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
258
258
|
* @property {number} [size] - The number of items per page.
|
|
259
259
|
* @property {number} [page_size] - The number of items per page.
|
|
260
260
|
*/
|
|
@@ -927,7 +927,7 @@ type Page = {
|
|
|
927
927
|
*/
|
|
928
928
|
current?: number;
|
|
929
929
|
/**
|
|
930
|
-
* - The type of the page,
|
|
930
|
+
* - The type of the page, can be 'cursor' or 'number'.
|
|
931
931
|
*/
|
|
932
932
|
type: string;
|
|
933
933
|
/**
|
|
@@ -282,7 +282,7 @@ const Joi = require("joi");
|
|
|
282
282
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
283
283
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
284
284
|
* @property {number} [current] - The current page number.
|
|
285
|
-
* @property {string} type - The type of the page,
|
|
285
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
286
286
|
* @property {number} [size] - The number of items per page.
|
|
287
287
|
* @property {number} [page_size] - The number of items per page.
|
|
288
288
|
*/
|
|
@@ -6,7 +6,7 @@ export = AnalyticsPlatformModel;
|
|
|
6
6
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
7
7
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
8
8
|
* @property {number} [current] - The current page number.
|
|
9
|
-
* @property {string} type - The type of the page,
|
|
9
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
10
10
|
* @property {number} [size] - The number of items per page.
|
|
11
11
|
* @property {number} [page_size] - The number of items per page.
|
|
12
12
|
*/
|
|
@@ -65,7 +65,7 @@ type Page = {
|
|
|
65
65
|
*/
|
|
66
66
|
current?: number;
|
|
67
67
|
/**
|
|
68
|
-
* - The type of the page,
|
|
68
|
+
* - The type of the page, can be 'cursor' or 'number'.
|
|
69
69
|
*/
|
|
70
70
|
type: string;
|
|
71
71
|
/**
|
|
@@ -7,7 +7,7 @@ const Joi = require("joi");
|
|
|
7
7
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
8
8
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
9
9
|
* @property {number} [current] - The current page number.
|
|
10
|
-
* @property {string} type - The type of the page,
|
|
10
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
11
11
|
* @property {number} [size] - The number of items per page.
|
|
12
12
|
* @property {number} [page_size] - The number of items per page.
|
|
13
13
|
*/
|
|
@@ -553,6 +553,16 @@ declare class Cart {
|
|
|
553
553
|
* @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateCart/).
|
|
554
554
|
*/
|
|
555
555
|
updateCart({ cartId, body, b, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResult>;
|
|
556
|
+
/**
|
|
557
|
+
* @param {CartPlatformApplicationValidator.UpdateCartBreakupParam} arg - Arg object
|
|
558
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
559
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
560
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
|
|
561
|
+
* @name updateCartBreakup
|
|
562
|
+
* @summary: Update cart breakup values
|
|
563
|
+
* @description: Updates the cart breakup based on the enabled features and user preferences. This endpoint allows customers to modify how their cart totals are calculated — including options such as applying store credits, loyalty points, discounts, and other promotional benefits. The API recalculates and returns the updated breakup reflecting the selected configurations in real-time. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateCartBreakup/).
|
|
564
|
+
*/
|
|
565
|
+
updateCartBreakup({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartBreakupParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResult>;
|
|
556
566
|
/**
|
|
557
567
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
|
|
558
568
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|