@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-beta.1
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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +130 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- 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 +19 -30
- package/sdk/application/Content/ContentApplicationClient.js +40 -60
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +62 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +65 -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 +4 -2
- 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 +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- 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 +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- 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 +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
- package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- 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 +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +48 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- 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 +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +895 -8
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- 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/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -15,6 +15,10 @@ class Logistic {
|
|
|
15
15
|
getCountries: "/service/application/logistics/v2.0/countries",
|
|
16
16
|
getCountry:
|
|
17
17
|
"/service/application/logistics/v1.0/countries/{country_iso_code}",
|
|
18
|
+
getCourierPartners:
|
|
19
|
+
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
|
|
20
|
+
getDeliveryPromise:
|
|
21
|
+
"/service/application/logistics/v1.0/delivery-promise",
|
|
18
22
|
getLocalities:
|
|
19
23
|
"/service/application/logistics/v1.0/localities/{locality_type}",
|
|
20
24
|
getLocality:
|
|
@@ -47,7 +51,7 @@ class Logistic {
|
|
|
47
51
|
/**
|
|
48
52
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
49
53
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
50
|
-
* @returns {Promise<
|
|
54
|
+
* @returns {Promise<CountryListResult>} - Success response
|
|
51
55
|
* @name getAllCountries
|
|
52
56
|
* @summary: Get deliverable countries
|
|
53
57
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
@@ -98,7 +102,7 @@ class Logistic {
|
|
|
98
102
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
99
103
|
*/
|
|
100
104
|
async getCountries(
|
|
101
|
-
{ onboarding, pageNo, pageSize, q, requestHeaders } = {
|
|
105
|
+
{ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
|
|
102
106
|
requestHeaders: {},
|
|
103
107
|
},
|
|
104
108
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -116,6 +120,7 @@ class Logistic {
|
|
|
116
120
|
query_params["page_no"] = pageNo;
|
|
117
121
|
query_params["page_size"] = pageSize;
|
|
118
122
|
query_params["q"] = q;
|
|
123
|
+
query_params["hierarchy"] = hierarchy;
|
|
119
124
|
|
|
120
125
|
const xHeaders = {};
|
|
121
126
|
|
|
@@ -192,6 +197,111 @@ class Logistic {
|
|
|
192
197
|
return response;
|
|
193
198
|
}
|
|
194
199
|
|
|
200
|
+
/**
|
|
201
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
202
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
203
|
+
* @returns {Promise<ShipmentCourierPartnerResult>} - Success response
|
|
204
|
+
* @name getCourierPartners
|
|
205
|
+
* @summary: Serviceable Courier Partners.
|
|
206
|
+
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
207
|
+
*/
|
|
208
|
+
async getCourierPartners(
|
|
209
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
210
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
211
|
+
) {
|
|
212
|
+
let invalidInput = [];
|
|
213
|
+
|
|
214
|
+
if (!companyId) {
|
|
215
|
+
invalidInput.push({
|
|
216
|
+
message: `The 'companyId' field is required.`,
|
|
217
|
+
path: ["companyId"],
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
if (!applicationId) {
|
|
221
|
+
invalidInput.push({
|
|
222
|
+
message: `The 'applicationId' field is required.`,
|
|
223
|
+
path: ["applicationId"],
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
if (invalidInput.length) {
|
|
227
|
+
const error = new Error();
|
|
228
|
+
error.message = "Missing required field";
|
|
229
|
+
error.details = invalidInput;
|
|
230
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const query_params = {};
|
|
234
|
+
|
|
235
|
+
const xHeaders = {};
|
|
236
|
+
|
|
237
|
+
const response = await ApplicationAPIClient.execute(
|
|
238
|
+
this._conf,
|
|
239
|
+
"post",
|
|
240
|
+
constructUrl({
|
|
241
|
+
url: this._urls["getCourierPartners"],
|
|
242
|
+
params: { companyId, applicationId },
|
|
243
|
+
}),
|
|
244
|
+
query_params,
|
|
245
|
+
body,
|
|
246
|
+
{ ...xHeaders, ...requestHeaders },
|
|
247
|
+
{ responseHeaders }
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
let responseData = response;
|
|
251
|
+
if (responseHeaders) {
|
|
252
|
+
responseData = response[0];
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return response;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
260
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
261
|
+
* @returns {Promise<GetPromiseDetails>} - Success response
|
|
262
|
+
* @name getDeliveryPromise
|
|
263
|
+
* @summary: Get delivery promise
|
|
264
|
+
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
265
|
+
*/
|
|
266
|
+
async getDeliveryPromise(
|
|
267
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
268
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
269
|
+
) {
|
|
270
|
+
let invalidInput = [];
|
|
271
|
+
if (invalidInput.length) {
|
|
272
|
+
const error = new Error();
|
|
273
|
+
error.message = "Missing required field";
|
|
274
|
+
error.details = invalidInput;
|
|
275
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const query_params = {};
|
|
279
|
+
query_params["page_no"] = pageNo;
|
|
280
|
+
query_params["page_size"] = pageSize;
|
|
281
|
+
|
|
282
|
+
const xHeaders = {};
|
|
283
|
+
|
|
284
|
+
const response = await ApplicationAPIClient.execute(
|
|
285
|
+
this._conf,
|
|
286
|
+
"get",
|
|
287
|
+
constructUrl({
|
|
288
|
+
url: this._urls["getDeliveryPromise"],
|
|
289
|
+
params: {},
|
|
290
|
+
}),
|
|
291
|
+
query_params,
|
|
292
|
+
undefined,
|
|
293
|
+
{ ...xHeaders, ...requestHeaders },
|
|
294
|
+
{ responseHeaders }
|
|
295
|
+
);
|
|
296
|
+
|
|
297
|
+
let responseData = response;
|
|
298
|
+
if (responseHeaders) {
|
|
299
|
+
responseData = response[0];
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
return response;
|
|
303
|
+
}
|
|
304
|
+
|
|
195
305
|
/**
|
|
196
306
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
197
307
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -325,7 +435,7 @@ class Logistic {
|
|
|
325
435
|
/**
|
|
326
436
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
327
437
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
328
|
-
* @returns {Promise<
|
|
438
|
+
* @returns {Promise<GetStoreResult>} - Success response
|
|
329
439
|
* @name getLocations
|
|
330
440
|
* @summary: Get available selling locations
|
|
331
441
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
@@ -403,7 +513,7 @@ class Logistic {
|
|
|
403
513
|
/**
|
|
404
514
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
405
515
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
406
|
-
* @returns {Promise<
|
|
516
|
+
* @returns {Promise<ReAssignStoreResult>} - Success response
|
|
407
517
|
* @name getOptimalLocations
|
|
408
518
|
* @summary: Get selling locations
|
|
409
519
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
@@ -448,7 +558,7 @@ class Logistic {
|
|
|
448
558
|
/**
|
|
449
559
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
450
560
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
451
|
-
* @returns {Promise<
|
|
561
|
+
* @returns {Promise<PincodeDetails>} - Success response
|
|
452
562
|
* @name getPincodeCity
|
|
453
563
|
* @summary: Get pincode details
|
|
454
564
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
@@ -500,7 +610,7 @@ class Logistic {
|
|
|
500
610
|
/**
|
|
501
611
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
502
612
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
503
|
-
* @returns {Promise<
|
|
613
|
+
* @returns {Promise<GetZoneFromPincodeViewResult>} - Success response
|
|
504
614
|
* @name getPincodeZones
|
|
505
615
|
* @summary: Get zones
|
|
506
616
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
@@ -545,7 +655,7 @@ class Logistic {
|
|
|
545
655
|
/**
|
|
546
656
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
547
657
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
548
|
-
* @returns {Promise<
|
|
658
|
+
* @returns {Promise<TATViewResult>} - Success response
|
|
549
659
|
* @name getTatProduct
|
|
550
660
|
* @summary: Get product's turnaround time
|
|
551
661
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
@@ -590,7 +700,7 @@ class Logistic {
|
|
|
590
700
|
/**
|
|
591
701
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
592
702
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
593
|
-
* @returns {Promise<
|
|
703
|
+
* @returns {Promise<ValidateAddressDetails>} - Success response
|
|
594
704
|
* @name validateAddress
|
|
595
705
|
* @summary: Validate address
|
|
596
706
|
* @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
|
|
@@ -7,6 +7,7 @@ declare class Order {
|
|
|
7
7
|
getInvoiceByShipmentId: string;
|
|
8
8
|
getOrderById: string;
|
|
9
9
|
getOrders: string;
|
|
10
|
+
getPosOrderById: string;
|
|
10
11
|
getShipmentBagReasons: string;
|
|
11
12
|
getShipmentById: string;
|
|
12
13
|
getShipmentReasons: string;
|
|
@@ -20,12 +21,12 @@ declare class Order {
|
|
|
20
21
|
/**
|
|
21
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
22
23
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
23
|
-
* @returns {Promise<
|
|
24
|
+
* @returns {Promise<CustomerDetailsResponseSchema>} - Success response
|
|
24
25
|
* @name getCustomerDetailsByShipmentId
|
|
25
26
|
* @summary: Get shipment's customer
|
|
26
27
|
* @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
|
|
27
28
|
*/
|
|
28
|
-
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
29
|
+
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerDetailsResponseSchema>;
|
|
29
30
|
/**
|
|
30
31
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
31
32
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -53,13 +54,22 @@ declare class Order {
|
|
|
53
54
|
* @description: Get all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
|
|
54
55
|
*/
|
|
55
56
|
getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderList>;
|
|
57
|
+
/**
|
|
58
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
59
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
60
|
+
* @returns {Promise<OrderById>} - Success response
|
|
61
|
+
* @name getPosOrderById
|
|
62
|
+
* @summary: Retrieves POS order details
|
|
63
|
+
* @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
|
|
64
|
+
*/
|
|
65
|
+
getPosOrderById({ orderId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderById>;
|
|
56
66
|
/**
|
|
57
67
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
58
68
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
59
69
|
* @returns {Promise<ShipmentBagReasons>} - Success response
|
|
60
70
|
* @name getShipmentBagReasons
|
|
61
|
-
* @summary:
|
|
62
|
-
* @description:
|
|
71
|
+
* @summary: Retrieve Reasons for Cancellation and Return journey
|
|
72
|
+
* @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
|
|
63
73
|
*/
|
|
64
74
|
getShipmentBagReasons({ shipmentId, bagId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentBagReasons>;
|
|
65
75
|
/**
|
|
@@ -83,12 +93,12 @@ declare class Order {
|
|
|
83
93
|
/**
|
|
84
94
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
85
95
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
86
|
-
* @returns {Promise<
|
|
96
|
+
* @returns {Promise<SendOtpToCustomerResponseSchema>} - Success response
|
|
87
97
|
* @name sendOtpToShipmentCustomer
|
|
88
98
|
* @summary: Send OTP to customer
|
|
89
99
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
90
100
|
*/
|
|
91
|
-
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
101
|
+
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpToCustomerResponseSchema>;
|
|
92
102
|
/**
|
|
93
103
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
94
104
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -101,19 +111,19 @@ declare class Order {
|
|
|
101
111
|
/**
|
|
102
112
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
103
113
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
104
|
-
* @returns {Promise<
|
|
114
|
+
* @returns {Promise<ShipmentApplicationStatusResponseSchema>} - Success response
|
|
105
115
|
* @name updateShipmentStatus
|
|
106
116
|
* @summary: Updates shipment status
|
|
107
|
-
* @description:
|
|
117
|
+
* @description: This operation allows for updating the status and properties of a shipment. For example, it allows users to initiate a return by providing reasons and uploading quality check images. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
108
118
|
*/
|
|
109
|
-
updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
119
|
+
updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentApplicationStatusResponseSchema>;
|
|
110
120
|
/**
|
|
111
121
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
112
122
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
113
|
-
* @returns {Promise<
|
|
123
|
+
* @returns {Promise<VerifyOtpResponseSchema>} - Success response
|
|
114
124
|
* @name verifyOtpShipmentCustomer
|
|
115
125
|
* @summary: Verifies OTP
|
|
116
|
-
* @description: Verify OTP
|
|
126
|
+
* @description: Verify OTP for getting shipment details - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
|
|
117
127
|
*/
|
|
118
|
-
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
128
|
+
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<VerifyOtpResponseSchema>;
|
|
119
129
|
}
|
|
@@ -17,6 +17,8 @@ class Order {
|
|
|
17
17
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",
|
|
18
18
|
getOrderById: "/service/application/order/v1.0/orders/{order_id}",
|
|
19
19
|
getOrders: "/service/application/order/v1.0/orders",
|
|
20
|
+
getPosOrderById:
|
|
21
|
+
"/service/application/order/v1.0/orders/pos-order/{order_id}",
|
|
20
22
|
getShipmentBagReasons:
|
|
21
23
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",
|
|
22
24
|
getShipmentById:
|
|
@@ -51,7 +53,7 @@ class Order {
|
|
|
51
53
|
/**
|
|
52
54
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
53
55
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
54
|
-
* @returns {Promise<
|
|
56
|
+
* @returns {Promise<CustomerDetailsResponseSchema>} - Success response
|
|
55
57
|
* @name getCustomerDetailsByShipmentId
|
|
56
58
|
* @summary: Get shipment's customer
|
|
57
59
|
* @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
|
|
@@ -276,13 +278,65 @@ class Order {
|
|
|
276
278
|
return response;
|
|
277
279
|
}
|
|
278
280
|
|
|
281
|
+
/**
|
|
282
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
283
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
284
|
+
* @returns {Promise<OrderById>} - Success response
|
|
285
|
+
* @name getPosOrderById
|
|
286
|
+
* @summary: Retrieves POS order details
|
|
287
|
+
* @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
|
|
288
|
+
*/
|
|
289
|
+
async getPosOrderById(
|
|
290
|
+
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
291
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
292
|
+
) {
|
|
293
|
+
let invalidInput = [];
|
|
294
|
+
|
|
295
|
+
if (!orderId) {
|
|
296
|
+
invalidInput.push({
|
|
297
|
+
message: `The 'orderId' field is required.`,
|
|
298
|
+
path: ["orderId"],
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
if (invalidInput.length) {
|
|
302
|
+
const error = new Error();
|
|
303
|
+
error.message = "Missing required field";
|
|
304
|
+
error.details = invalidInput;
|
|
305
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const query_params = {};
|
|
309
|
+
|
|
310
|
+
const xHeaders = {};
|
|
311
|
+
|
|
312
|
+
const response = await ApplicationAPIClient.execute(
|
|
313
|
+
this._conf,
|
|
314
|
+
"get",
|
|
315
|
+
constructUrl({
|
|
316
|
+
url: this._urls["getPosOrderById"],
|
|
317
|
+
params: { orderId },
|
|
318
|
+
}),
|
|
319
|
+
query_params,
|
|
320
|
+
undefined,
|
|
321
|
+
{ ...xHeaders, ...requestHeaders },
|
|
322
|
+
{ responseHeaders }
|
|
323
|
+
);
|
|
324
|
+
|
|
325
|
+
let responseData = response;
|
|
326
|
+
if (responseHeaders) {
|
|
327
|
+
responseData = response[0];
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return response;
|
|
331
|
+
}
|
|
332
|
+
|
|
279
333
|
/**
|
|
280
334
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
281
335
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
282
336
|
* @returns {Promise<ShipmentBagReasons>} - Success response
|
|
283
337
|
* @name getShipmentBagReasons
|
|
284
|
-
* @summary:
|
|
285
|
-
* @description:
|
|
338
|
+
* @summary: Retrieve Reasons for Cancellation and Return journey
|
|
339
|
+
* @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
|
|
286
340
|
*/
|
|
287
341
|
async getShipmentBagReasons(
|
|
288
342
|
{ shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -442,7 +496,7 @@ class Order {
|
|
|
442
496
|
/**
|
|
443
497
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
444
498
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
445
|
-
* @returns {Promise<
|
|
499
|
+
* @returns {Promise<SendOtpToCustomerResponseSchema>} - Success response
|
|
446
500
|
* @name sendOtpToShipmentCustomer
|
|
447
501
|
* @summary: Send OTP to customer
|
|
448
502
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
@@ -552,10 +606,10 @@ class Order {
|
|
|
552
606
|
/**
|
|
553
607
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
554
608
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
555
|
-
* @returns {Promise<
|
|
609
|
+
* @returns {Promise<ShipmentApplicationStatusResponseSchema>} - Success response
|
|
556
610
|
* @name updateShipmentStatus
|
|
557
611
|
* @summary: Updates shipment status
|
|
558
|
-
* @description:
|
|
612
|
+
* @description: This operation allows for updating the status and properties of a shipment. For example, it allows users to initiate a return by providing reasons and uploading quality check images. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
559
613
|
*/
|
|
560
614
|
async updateShipmentStatus(
|
|
561
615
|
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -604,10 +658,10 @@ class Order {
|
|
|
604
658
|
/**
|
|
605
659
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
606
660
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
607
|
-
* @returns {Promise<
|
|
661
|
+
* @returns {Promise<VerifyOtpResponseSchema>} - Success response
|
|
608
662
|
* @name verifyOtpShipmentCustomer
|
|
609
663
|
* @summary: Verifies OTP
|
|
610
|
-
* @description: Verify OTP
|
|
664
|
+
* @description: Verify OTP for getting shipment details - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
|
|
611
665
|
*/
|
|
612
666
|
async verifyOtpShipmentCustomer(
|
|
613
667
|
{ orderId, shipmentId, body, requestHeaders } = { requestHeaders: {} },
|