@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/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 +304 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +22 -1
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +297 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +74 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +195 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +418 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +16 -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 +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- 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 +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- 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 +21 -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 +20 -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/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -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
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -10,10 +15,6 @@ class Logistic {
|
|
|
10
15
|
getCountries: "/service/application/logistics/v2.0/countries",
|
|
11
16
|
getCountry:
|
|
12
17
|
"/service/application/logistics/v1.0/countries/{country_iso_code}",
|
|
13
|
-
getCourierPartners:
|
|
14
|
-
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
|
|
15
|
-
getDeliveryPromise:
|
|
16
|
-
"/service/application/logistics/v1.0/delivery-promise",
|
|
17
18
|
getLocalities:
|
|
18
19
|
"/service/application/logistics/v1.0/localities/{locality_type}",
|
|
19
20
|
getLocality:
|
|
@@ -46,7 +47,7 @@ class Logistic {
|
|
|
46
47
|
/**
|
|
47
48
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
49
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<
|
|
50
|
+
* @returns {Promise<CountryListResponse>} - Success response
|
|
50
51
|
* @name getAllCountries
|
|
51
52
|
* @summary: Get deliverable countries
|
|
52
53
|
* @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/).
|
|
@@ -55,6 +56,14 @@ class Logistic {
|
|
|
55
56
|
{ requestHeaders } = { requestHeaders: {} },
|
|
56
57
|
{ responseHeaders } = { responseHeaders: false }
|
|
57
58
|
) {
|
|
59
|
+
let invalidInput = [];
|
|
60
|
+
if (invalidInput.length) {
|
|
61
|
+
const error = new Error();
|
|
62
|
+
error.message = "Missing required field";
|
|
63
|
+
error.details = invalidInput;
|
|
64
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
65
|
+
}
|
|
66
|
+
|
|
58
67
|
const query_params = {};
|
|
59
68
|
|
|
60
69
|
const xHeaders = {};
|
|
@@ -89,17 +98,24 @@ class Logistic {
|
|
|
89
98
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
90
99
|
*/
|
|
91
100
|
async getCountries(
|
|
92
|
-
{ onboarding, pageNo, pageSize, q,
|
|
101
|
+
{ onboarding, pageNo, pageSize, q, requestHeaders } = {
|
|
93
102
|
requestHeaders: {},
|
|
94
103
|
},
|
|
95
104
|
{ responseHeaders } = { responseHeaders: false }
|
|
96
105
|
) {
|
|
106
|
+
let invalidInput = [];
|
|
107
|
+
if (invalidInput.length) {
|
|
108
|
+
const error = new Error();
|
|
109
|
+
error.message = "Missing required field";
|
|
110
|
+
error.details = invalidInput;
|
|
111
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
112
|
+
}
|
|
113
|
+
|
|
97
114
|
const query_params = {};
|
|
98
115
|
query_params["onboarding"] = onboarding;
|
|
99
116
|
query_params["page_no"] = pageNo;
|
|
100
117
|
query_params["page_size"] = pageSize;
|
|
101
118
|
query_params["q"] = q;
|
|
102
|
-
query_params["hierarchy"] = hierarchy;
|
|
103
119
|
|
|
104
120
|
const xHeaders = {};
|
|
105
121
|
|
|
@@ -136,83 +152,22 @@ class Logistic {
|
|
|
136
152
|
{ countryIsoCode, requestHeaders } = { requestHeaders: {} },
|
|
137
153
|
{ responseHeaders } = { responseHeaders: false }
|
|
138
154
|
) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
const xHeaders = {};
|
|
142
|
-
|
|
143
|
-
const response = await ApplicationAPIClient.execute(
|
|
144
|
-
this._conf,
|
|
145
|
-
"get",
|
|
146
|
-
constructUrl({
|
|
147
|
-
url: this._urls["getCountry"],
|
|
148
|
-
params: { countryIsoCode },
|
|
149
|
-
}),
|
|
150
|
-
query_params,
|
|
151
|
-
undefined,
|
|
152
|
-
{ ...xHeaders, ...requestHeaders },
|
|
153
|
-
{ responseHeaders }
|
|
154
|
-
);
|
|
155
|
+
let invalidInput = [];
|
|
155
156
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
if (!countryIsoCode) {
|
|
158
|
+
invalidInput.push({
|
|
159
|
+
message: `The 'countryIsoCode' field is required.`,
|
|
160
|
+
path: ["countryIsoCode"],
|
|
161
|
+
});
|
|
159
162
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
166
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
167
|
-
* @returns {Promise<ShipmentCourierPartnerResult>} - Success response
|
|
168
|
-
* @name getCourierPartners
|
|
169
|
-
* @summary: Serviceable Courier Partners.
|
|
170
|
-
* @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/).
|
|
171
|
-
*/
|
|
172
|
-
async getCourierPartners(
|
|
173
|
-
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
174
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
175
|
-
) {
|
|
176
|
-
const query_params = {};
|
|
177
|
-
|
|
178
|
-
const xHeaders = {};
|
|
179
|
-
|
|
180
|
-
const response = await ApplicationAPIClient.execute(
|
|
181
|
-
this._conf,
|
|
182
|
-
"post",
|
|
183
|
-
constructUrl({
|
|
184
|
-
url: this._urls["getCourierPartners"],
|
|
185
|
-
params: { companyId, applicationId },
|
|
186
|
-
}),
|
|
187
|
-
query_params,
|
|
188
|
-
body,
|
|
189
|
-
{ ...xHeaders, ...requestHeaders },
|
|
190
|
-
{ responseHeaders }
|
|
191
|
-
);
|
|
192
|
-
|
|
193
|
-
let responseData = response;
|
|
194
|
-
if (responseHeaders) {
|
|
195
|
-
responseData = response[0];
|
|
163
|
+
if (invalidInput.length) {
|
|
164
|
+
const error = new Error();
|
|
165
|
+
error.message = "Missing required field";
|
|
166
|
+
error.details = invalidInput;
|
|
167
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
196
168
|
}
|
|
197
169
|
|
|
198
|
-
return response;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
203
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
204
|
-
* @returns {Promise<GetPromiseDetails>} - Success response
|
|
205
|
-
* @name getDeliveryPromise
|
|
206
|
-
* @summary: Get delivery promise
|
|
207
|
-
* @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/).
|
|
208
|
-
*/
|
|
209
|
-
async getDeliveryPromise(
|
|
210
|
-
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
211
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
212
|
-
) {
|
|
213
170
|
const query_params = {};
|
|
214
|
-
query_params["page_no"] = pageNo;
|
|
215
|
-
query_params["page_size"] = pageSize;
|
|
216
171
|
|
|
217
172
|
const xHeaders = {};
|
|
218
173
|
|
|
@@ -220,8 +175,8 @@ class Logistic {
|
|
|
220
175
|
this._conf,
|
|
221
176
|
"get",
|
|
222
177
|
constructUrl({
|
|
223
|
-
url: this._urls["
|
|
224
|
-
params: {},
|
|
178
|
+
url: this._urls["getCountry"],
|
|
179
|
+
params: { countryIsoCode },
|
|
225
180
|
}),
|
|
226
181
|
query_params,
|
|
227
182
|
undefined,
|
|
@@ -258,6 +213,21 @@ class Logistic {
|
|
|
258
213
|
} = { requestHeaders: {} },
|
|
259
214
|
{ responseHeaders } = { responseHeaders: false }
|
|
260
215
|
) {
|
|
216
|
+
let invalidInput = [];
|
|
217
|
+
|
|
218
|
+
if (!localityType) {
|
|
219
|
+
invalidInput.push({
|
|
220
|
+
message: `The 'localityType' field is required.`,
|
|
221
|
+
path: ["localityType"],
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
if (invalidInput.length) {
|
|
225
|
+
const error = new Error();
|
|
226
|
+
error.message = "Missing required field";
|
|
227
|
+
error.details = invalidInput;
|
|
228
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
229
|
+
}
|
|
230
|
+
|
|
261
231
|
const query_params = {};
|
|
262
232
|
query_params["country"] = country;
|
|
263
233
|
query_params["state"] = state;
|
|
@@ -303,6 +273,27 @@ class Logistic {
|
|
|
303
273
|
},
|
|
304
274
|
{ responseHeaders } = { responseHeaders: false }
|
|
305
275
|
) {
|
|
276
|
+
let invalidInput = [];
|
|
277
|
+
|
|
278
|
+
if (!localityType) {
|
|
279
|
+
invalidInput.push({
|
|
280
|
+
message: `The 'localityType' field is required.`,
|
|
281
|
+
path: ["localityType"],
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
if (!localityValue) {
|
|
285
|
+
invalidInput.push({
|
|
286
|
+
message: `The 'localityValue' field is required.`,
|
|
287
|
+
path: ["localityValue"],
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
if (invalidInput.length) {
|
|
291
|
+
const error = new Error();
|
|
292
|
+
error.message = "Missing required field";
|
|
293
|
+
error.details = invalidInput;
|
|
294
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
295
|
+
}
|
|
296
|
+
|
|
306
297
|
const query_params = {};
|
|
307
298
|
query_params["country"] = country;
|
|
308
299
|
query_params["state"] = state;
|
|
@@ -334,7 +325,7 @@ class Logistic {
|
|
|
334
325
|
/**
|
|
335
326
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
336
327
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
337
|
-
* @returns {Promise<
|
|
328
|
+
* @returns {Promise<GetStoreResponse>} - Success response
|
|
338
329
|
* @name getLocations
|
|
339
330
|
* @summary: Get available selling locations
|
|
340
331
|
* @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/).
|
|
@@ -354,6 +345,27 @@ class Logistic {
|
|
|
354
345
|
} = { requestHeaders: {} },
|
|
355
346
|
{ responseHeaders } = { responseHeaders: false }
|
|
356
347
|
) {
|
|
348
|
+
let invalidInput = [];
|
|
349
|
+
|
|
350
|
+
if (!xApplicationId) {
|
|
351
|
+
invalidInput.push({
|
|
352
|
+
message: `The 'xApplicationId' field is required.`,
|
|
353
|
+
path: ["xApplicationId"],
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
if (!xApplicationData) {
|
|
357
|
+
invalidInput.push({
|
|
358
|
+
message: `The 'xApplicationData' field is required.`,
|
|
359
|
+
path: ["xApplicationData"],
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
if (invalidInput.length) {
|
|
363
|
+
const error = new Error();
|
|
364
|
+
error.message = "Missing required field";
|
|
365
|
+
error.details = invalidInput;
|
|
366
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
367
|
+
}
|
|
368
|
+
|
|
357
369
|
const query_params = {};
|
|
358
370
|
query_params["x-application-id"] = xApplicationId;
|
|
359
371
|
query_params["x-application-data"] = xApplicationData;
|
|
@@ -391,7 +403,7 @@ class Logistic {
|
|
|
391
403
|
/**
|
|
392
404
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
393
405
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
394
|
-
* @returns {Promise<
|
|
406
|
+
* @returns {Promise<ReAssignStoreResponse>} - Success response
|
|
395
407
|
* @name getOptimalLocations
|
|
396
408
|
* @summary: Get selling locations
|
|
397
409
|
* @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/).
|
|
@@ -400,6 +412,14 @@ class Logistic {
|
|
|
400
412
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
401
413
|
{ responseHeaders } = { responseHeaders: false }
|
|
402
414
|
) {
|
|
415
|
+
let invalidInput = [];
|
|
416
|
+
if (invalidInput.length) {
|
|
417
|
+
const error = new Error();
|
|
418
|
+
error.message = "Missing required field";
|
|
419
|
+
error.details = invalidInput;
|
|
420
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
421
|
+
}
|
|
422
|
+
|
|
403
423
|
const query_params = {};
|
|
404
424
|
|
|
405
425
|
const xHeaders = {};
|
|
@@ -428,7 +448,7 @@ class Logistic {
|
|
|
428
448
|
/**
|
|
429
449
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
430
450
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
431
|
-
* @returns {Promise<
|
|
451
|
+
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
432
452
|
* @name getPincodeCity
|
|
433
453
|
* @summary: Get pincode details
|
|
434
454
|
* @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/).
|
|
@@ -437,6 +457,21 @@ class Logistic {
|
|
|
437
457
|
{ pincode, requestHeaders } = { requestHeaders: {} },
|
|
438
458
|
{ responseHeaders } = { responseHeaders: false }
|
|
439
459
|
) {
|
|
460
|
+
let invalidInput = [];
|
|
461
|
+
|
|
462
|
+
if (!pincode) {
|
|
463
|
+
invalidInput.push({
|
|
464
|
+
message: `The 'pincode' field is required.`,
|
|
465
|
+
path: ["pincode"],
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
if (invalidInput.length) {
|
|
469
|
+
const error = new Error();
|
|
470
|
+
error.message = "Missing required field";
|
|
471
|
+
error.details = invalidInput;
|
|
472
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
473
|
+
}
|
|
474
|
+
|
|
440
475
|
const query_params = {};
|
|
441
476
|
|
|
442
477
|
const xHeaders = {};
|
|
@@ -465,7 +500,7 @@ class Logistic {
|
|
|
465
500
|
/**
|
|
466
501
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
467
502
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
468
|
-
* @returns {Promise<
|
|
503
|
+
* @returns {Promise<GetZoneFromPincodeViewResponse>} - Success response
|
|
469
504
|
* @name getPincodeZones
|
|
470
505
|
* @summary: Get zones
|
|
471
506
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
@@ -474,6 +509,14 @@ class Logistic {
|
|
|
474
509
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
475
510
|
{ responseHeaders } = { responseHeaders: false }
|
|
476
511
|
) {
|
|
512
|
+
let invalidInput = [];
|
|
513
|
+
if (invalidInput.length) {
|
|
514
|
+
const error = new Error();
|
|
515
|
+
error.message = "Missing required field";
|
|
516
|
+
error.details = invalidInput;
|
|
517
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
518
|
+
}
|
|
519
|
+
|
|
477
520
|
const query_params = {};
|
|
478
521
|
|
|
479
522
|
const xHeaders = {};
|
|
@@ -502,7 +545,7 @@ class Logistic {
|
|
|
502
545
|
/**
|
|
503
546
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
504
547
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
505
|
-
* @returns {Promise<
|
|
548
|
+
* @returns {Promise<TATViewResponse>} - Success response
|
|
506
549
|
* @name getTatProduct
|
|
507
550
|
* @summary: Get product's turnaround time
|
|
508
551
|
* @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/).
|
|
@@ -511,6 +554,14 @@ class Logistic {
|
|
|
511
554
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
512
555
|
{ responseHeaders } = { responseHeaders: false }
|
|
513
556
|
) {
|
|
557
|
+
let invalidInput = [];
|
|
558
|
+
if (invalidInput.length) {
|
|
559
|
+
const error = new Error();
|
|
560
|
+
error.message = "Missing required field";
|
|
561
|
+
error.details = invalidInput;
|
|
562
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
563
|
+
}
|
|
564
|
+
|
|
514
565
|
const query_params = {};
|
|
515
566
|
|
|
516
567
|
const xHeaders = {};
|
|
@@ -539,7 +590,7 @@ class Logistic {
|
|
|
539
590
|
/**
|
|
540
591
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
541
592
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
542
|
-
* @returns {Promise<
|
|
593
|
+
* @returns {Promise<ValidateAddressRequest>} - Success response
|
|
543
594
|
* @name validateAddress
|
|
544
595
|
* @summary: Validate address
|
|
545
596
|
* @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/).
|
|
@@ -550,6 +601,27 @@ class Logistic {
|
|
|
550
601
|
},
|
|
551
602
|
{ responseHeaders } = { responseHeaders: false }
|
|
552
603
|
) {
|
|
604
|
+
let invalidInput = [];
|
|
605
|
+
|
|
606
|
+
if (!countryIsoCode) {
|
|
607
|
+
invalidInput.push({
|
|
608
|
+
message: `The 'countryIsoCode' field is required.`,
|
|
609
|
+
path: ["countryIsoCode"],
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
if (!templateName) {
|
|
613
|
+
invalidInput.push({
|
|
614
|
+
message: `The 'templateName' field is required.`,
|
|
615
|
+
path: ["templateName"],
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
if (invalidInput.length) {
|
|
619
|
+
const error = new Error();
|
|
620
|
+
error.message = "Missing required field";
|
|
621
|
+
error.details = invalidInput;
|
|
622
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
623
|
+
}
|
|
624
|
+
|
|
553
625
|
const query_params = {};
|
|
554
626
|
|
|
555
627
|
const xHeaders = {};
|
|
@@ -7,7 +7,6 @@ declare class Order {
|
|
|
7
7
|
getInvoiceByShipmentId: string;
|
|
8
8
|
getOrderById: string;
|
|
9
9
|
getOrders: string;
|
|
10
|
-
getPosOrderById: string;
|
|
11
10
|
getShipmentBagReasons: string;
|
|
12
11
|
getShipmentById: string;
|
|
13
12
|
getShipmentReasons: string;
|
|
@@ -21,12 +20,12 @@ declare class Order {
|
|
|
21
20
|
/**
|
|
22
21
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
22
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<
|
|
23
|
+
* @returns {Promise<CustomerDetailsResponse>} - Success response
|
|
25
24
|
* @name getCustomerDetailsByShipmentId
|
|
26
25
|
* @summary: Get shipment's customer
|
|
27
26
|
* @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/).
|
|
28
27
|
*/
|
|
29
|
-
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
28
|
+
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerDetailsResponse>;
|
|
30
29
|
/**
|
|
31
30
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
32
31
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -54,22 +53,13 @@ declare class Order {
|
|
|
54
53
|
* @description: Get all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
|
|
55
54
|
*/
|
|
56
55
|
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>;
|
|
66
56
|
/**
|
|
67
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
68
58
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
69
59
|
* @returns {Promise<ShipmentBagReasons>} - Success response
|
|
70
60
|
* @name getShipmentBagReasons
|
|
71
|
-
* @summary:
|
|
72
|
-
* @description:
|
|
61
|
+
* @summary: List bag cancellation reasons
|
|
62
|
+
* @description: Get reasons to perform full or partial cancellation of a bag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
|
|
73
63
|
*/
|
|
74
64
|
getShipmentBagReasons({ shipmentId, bagId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentBagReasons>;
|
|
75
65
|
/**
|
|
@@ -93,12 +83,12 @@ declare class Order {
|
|
|
93
83
|
/**
|
|
94
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
95
85
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
96
|
-
* @returns {Promise<
|
|
86
|
+
* @returns {Promise<SendOtpToCustomerResponse>} - Success response
|
|
97
87
|
* @name sendOtpToShipmentCustomer
|
|
98
88
|
* @summary: Send OTP to customer
|
|
99
89
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
100
90
|
*/
|
|
101
|
-
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
91
|
+
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpToCustomerResponse>;
|
|
102
92
|
/**
|
|
103
93
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
94
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -111,19 +101,19 @@ declare class Order {
|
|
|
111
101
|
/**
|
|
112
102
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
113
103
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
114
|
-
* @returns {Promise<
|
|
104
|
+
* @returns {Promise<ShipmentApplicationStatusResponse>} - Success response
|
|
115
105
|
* @name updateShipmentStatus
|
|
116
106
|
* @summary: Updates shipment status
|
|
117
|
-
* @description:
|
|
107
|
+
* @description: Update current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
118
108
|
*/
|
|
119
|
-
updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
109
|
+
updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentApplicationStatusResponse>;
|
|
120
110
|
/**
|
|
121
111
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
122
112
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
123
|
-
* @returns {Promise<
|
|
113
|
+
* @returns {Promise<VerifyOtpResponse>} - Success response
|
|
124
114
|
* @name verifyOtpShipmentCustomer
|
|
125
115
|
* @summary: Verifies OTP
|
|
126
|
-
* @description: Verify OTP
|
|
116
|
+
* @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
|
|
127
117
|
*/
|
|
128
|
-
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
118
|
+
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<VerifyOtpResponse>;
|
|
129
119
|
}
|