@gofynd/fdk-client-javascript 1.3.6-beta.1 → 1.3.6
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 +2 -2
- package/sdk/application/ApplicationConfig.d.ts +11 -3
- package/sdk/application/ApplicationConfig.js +21 -3
- package/sdk/application/Cart/CartApplicationClient.js +228 -113
- package/sdk/application/Catalog/CatalogApplicationClient.js +244 -121
- package/sdk/application/Common/CommonApplicationClient.js +20 -9
- package/sdk/application/Communication/CommunicationApplicationClient.js +28 -13
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +132 -65
- package/sdk/application/Content/ContentApplicationClient.js +156 -77
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +28 -13
- package/sdk/application/Lead/LeadApplicationClient.js +60 -29
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -21
- package/sdk/application/Order/OrderApplicationClient.js +100 -49
- package/sdk/application/Payment/PaymentApplicationClient.js +340 -169
- package/sdk/application/PosCart/PosCartApplicationClient.js +220 -109
- package/sdk/application/Rewards/RewardsApplicationClient.js +60 -29
- package/sdk/application/Share/ShareApplicationClient.js +60 -29
- package/sdk/application/Theme/ThemeApplicationClient.js +36 -17
- package/sdk/application/User/UserApplicationClient.js +324 -161
- package/sdk/common/AxiosHelper.js +3 -3
- package/sdk/common/FDKError.d.ts +4 -0
- package/sdk/common/FDKError.js +9 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +16 -40
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +160 -38
- package/sdk/partner/PartnerConfig.d.ts +10 -0
- package/sdk/partner/PartnerConfig.js +10 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +96 -199
- package/sdk/partner/Theme/ThemePartnerClient.js +935 -170
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +36 -17
- package/sdk/platform/Billing/BillingPlatformClient.js +140 -69
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +456 -228
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +512 -256
- package/sdk/platform/Catalog/CatalogPlatformClient.js +620 -309
- package/sdk/platform/Common/CommonPlatformClient.js +20 -9
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +472 -236
- package/sdk/platform/Communication/CommunicationPlatformClient.js +12 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +14 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +16 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +116 -57
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +256 -128
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +148 -73
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +552 -276
- package/sdk/platform/Discount/DiscountPlatformClient.js +92 -45
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +88 -44
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +52 -25
- package/sdk/platform/Finance/FinancePlatformClient.js +196 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +100 -49
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +104 -52
- package/sdk/platform/Lead/LeadPlatformClient.js +92 -45
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +239 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +57 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.js +356 -177
- package/sdk/platform/Order/OrderPlatformModel.d.ts +44 -5
- package/sdk/platform/Order/OrderPlatformModel.js +52 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +16 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +336 -168
- package/sdk/platform/Payment/PaymentPlatformClient.js +84 -41
- package/sdk/platform/PlatformConfig.d.ts +10 -0
- package/sdk/platform/PlatformConfig.js +10 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +96 -48
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +112 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +148 -73
- package/sdk/platform/Share/SharePlatformApplicationClient.js +40 -20
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +224 -112
- package/sdk/platform/Theme/ThemePlatformClient.js +28 -13
- package/sdk/platform/User/UserPlatformApplicationClient.js +144 -72
- package/sdk/platform/Webhook/WebhookPlatformClient.js +132 -65
- package/sdk/public/Configuration/ConfigurationPublicClient.js +20 -9
- package/sdk/public/Inventory/InventoryPublicClient.js +52 -25
- package/sdk/public/Partner/PartnerPublicClient.js +12 -5
- package/sdk/public/PublicConfig.d.ts +11 -1
- package/sdk/public/PublicConfig.js +10 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +20 -9
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const FileStorageApplicationValidator = require("./FileStorageApplicationValidator");
|
|
@@ -117,10 +120,14 @@ class FileStorage {
|
|
|
117
120
|
});
|
|
118
121
|
|
|
119
122
|
if (res_error) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
124
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
125
|
+
} else {
|
|
126
|
+
Logger({
|
|
127
|
+
level: "WARN",
|
|
128
|
+
message: `Response Validation Warnings for application > FileStorage > completeUpload \n ${res_error}`,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
return response;
|
|
@@ -191,10 +198,14 @@ class FileStorage {
|
|
|
191
198
|
});
|
|
192
199
|
|
|
193
200
|
if (res_error) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
201
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
202
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
203
|
+
} else {
|
|
204
|
+
Logger({
|
|
205
|
+
level: "WARN",
|
|
206
|
+
message: `Response Validation Warnings for application > FileStorage > signUrls \n ${res_error}`,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
198
209
|
}
|
|
199
210
|
|
|
200
211
|
return response;
|
|
@@ -283,10 +294,14 @@ class FileStorage {
|
|
|
283
294
|
});
|
|
284
295
|
|
|
285
296
|
if (res_error) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
297
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
298
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
299
|
+
} else {
|
|
300
|
+
Logger({
|
|
301
|
+
level: "WARN",
|
|
302
|
+
message: `Response Validation Warnings for application > FileStorage > startUpload \n ${res_error}`,
|
|
303
|
+
});
|
|
304
|
+
}
|
|
290
305
|
}
|
|
291
306
|
|
|
292
307
|
return response;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const LeadApplicationValidator = require("./LeadApplicationValidator");
|
|
@@ -102,10 +105,14 @@ class Lead {
|
|
|
102
105
|
});
|
|
103
106
|
|
|
104
107
|
if (res_error) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
109
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
110
|
+
} else {
|
|
111
|
+
Logger({
|
|
112
|
+
level: "WARN",
|
|
113
|
+
message: `Response Validation Warnings for application > Lead > createHistory \n ${res_error}`,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
return response;
|
|
@@ -176,10 +183,14 @@ class Lead {
|
|
|
176
183
|
});
|
|
177
184
|
|
|
178
185
|
if (res_error) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
187
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
188
|
+
} else {
|
|
189
|
+
Logger({
|
|
190
|
+
level: "WARN",
|
|
191
|
+
message: `Response Validation Warnings for application > Lead > createTicket \n ${res_error}`,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
183
194
|
}
|
|
184
195
|
|
|
185
196
|
return response;
|
|
@@ -250,10 +261,14 @@ class Lead {
|
|
|
250
261
|
});
|
|
251
262
|
|
|
252
263
|
if (res_error) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
264
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
265
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
266
|
+
} else {
|
|
267
|
+
Logger({
|
|
268
|
+
level: "WARN",
|
|
269
|
+
message: `Response Validation Warnings for application > Lead > getCustomForm \n ${res_error}`,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
257
272
|
}
|
|
258
273
|
|
|
259
274
|
return response;
|
|
@@ -330,10 +345,14 @@ class Lead {
|
|
|
330
345
|
);
|
|
331
346
|
|
|
332
347
|
if (res_error) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
348
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
349
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
350
|
+
} else {
|
|
351
|
+
Logger({
|
|
352
|
+
level: "WARN",
|
|
353
|
+
message: `Response Validation Warnings for application > Lead > getParticipantsInsideVideoRoom \n ${res_error}`,
|
|
354
|
+
});
|
|
355
|
+
}
|
|
337
356
|
}
|
|
338
357
|
|
|
339
358
|
return response;
|
|
@@ -402,10 +421,14 @@ class Lead {
|
|
|
402
421
|
});
|
|
403
422
|
|
|
404
423
|
if (res_error) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
424
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
425
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
426
|
+
} else {
|
|
427
|
+
Logger({
|
|
428
|
+
level: "WARN",
|
|
429
|
+
message: `Response Validation Warnings for application > Lead > getTicket \n ${res_error}`,
|
|
430
|
+
});
|
|
431
|
+
}
|
|
409
432
|
}
|
|
410
433
|
|
|
411
434
|
return response;
|
|
@@ -477,10 +500,14 @@ class Lead {
|
|
|
477
500
|
);
|
|
478
501
|
|
|
479
502
|
if (res_error) {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
503
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
504
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
505
|
+
} else {
|
|
506
|
+
Logger({
|
|
507
|
+
level: "WARN",
|
|
508
|
+
message: `Response Validation Warnings for application > Lead > getTokenForVideoRoom \n ${res_error}`,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
484
511
|
}
|
|
485
512
|
|
|
486
513
|
return response;
|
|
@@ -552,10 +579,14 @@ class Lead {
|
|
|
552
579
|
});
|
|
553
580
|
|
|
554
581
|
if (res_error) {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
582
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
583
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
584
|
+
} else {
|
|
585
|
+
Logger({
|
|
586
|
+
level: "WARN",
|
|
587
|
+
message: `Response Validation Warnings for application > Lead > submitCustomForm \n ${res_error}`,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
559
590
|
}
|
|
560
591
|
|
|
561
592
|
return response;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const LogisticApplicationValidator = require("./LogisticApplicationValidator");
|
|
@@ -99,10 +102,14 @@ class Logistic {
|
|
|
99
102
|
});
|
|
100
103
|
|
|
101
104
|
if (res_error) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
106
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
107
|
+
} else {
|
|
108
|
+
Logger({
|
|
109
|
+
level: "WARN",
|
|
110
|
+
message: `Response Validation Warnings for application > Logistic > getAllCountries \n ${res_error}`,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
106
113
|
}
|
|
107
114
|
|
|
108
115
|
return response;
|
|
@@ -176,10 +183,14 @@ class Logistic {
|
|
|
176
183
|
);
|
|
177
184
|
|
|
178
185
|
if (res_error) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
187
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
188
|
+
} else {
|
|
189
|
+
Logger({
|
|
190
|
+
level: "WARN",
|
|
191
|
+
message: `Response Validation Warnings for application > Logistic > getOptimalLocations \n ${res_error}`,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
183
194
|
}
|
|
184
195
|
|
|
185
196
|
return response;
|
|
@@ -250,10 +261,14 @@ class Logistic {
|
|
|
250
261
|
});
|
|
251
262
|
|
|
252
263
|
if (res_error) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
264
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
265
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
266
|
+
} else {
|
|
267
|
+
Logger({
|
|
268
|
+
level: "WARN",
|
|
269
|
+
message: `Response Validation Warnings for application > Logistic > getPincodeCity \n ${res_error}`,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
257
272
|
}
|
|
258
273
|
|
|
259
274
|
return response;
|
|
@@ -326,10 +341,14 @@ class Logistic {
|
|
|
326
341
|
);
|
|
327
342
|
|
|
328
343
|
if (res_error) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
344
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
345
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
346
|
+
} else {
|
|
347
|
+
Logger({
|
|
348
|
+
level: "WARN",
|
|
349
|
+
message: `Response Validation Warnings for application > Logistic > getPincodeZones \n ${res_error}`,
|
|
350
|
+
});
|
|
351
|
+
}
|
|
333
352
|
}
|
|
334
353
|
|
|
335
354
|
return response;
|
|
@@ -400,10 +419,14 @@ class Logistic {
|
|
|
400
419
|
});
|
|
401
420
|
|
|
402
421
|
if (res_error) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
422
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
423
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
424
|
+
} else {
|
|
425
|
+
Logger({
|
|
426
|
+
level: "WARN",
|
|
427
|
+
message: `Response Validation Warnings for application > Logistic > getTatProduct \n ${res_error}`,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
407
430
|
}
|
|
408
431
|
|
|
409
432
|
return response;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const OrderApplicationValidator = require("./OrderApplicationValidator");
|
|
@@ -120,10 +123,14 @@ class Order {
|
|
|
120
123
|
});
|
|
121
124
|
|
|
122
125
|
if (res_error) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
127
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
128
|
+
} else {
|
|
129
|
+
Logger({
|
|
130
|
+
level: "WARN",
|
|
131
|
+
message: `Response Validation Warnings for application > Order > getCustomerDetailsByShipmentId \n ${res_error}`,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
return response;
|
|
@@ -197,10 +204,14 @@ class Order {
|
|
|
197
204
|
);
|
|
198
205
|
|
|
199
206
|
if (res_error) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
207
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
208
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
209
|
+
} else {
|
|
210
|
+
Logger({
|
|
211
|
+
level: "WARN",
|
|
212
|
+
message: `Response Validation Warnings for application > Order > getInvoiceByShipmentId \n ${res_error}`,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
204
215
|
}
|
|
205
216
|
|
|
206
217
|
return response;
|
|
@@ -271,10 +282,14 @@ class Order {
|
|
|
271
282
|
});
|
|
272
283
|
|
|
273
284
|
if (res_error) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
285
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
286
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
287
|
+
} else {
|
|
288
|
+
Logger({
|
|
289
|
+
level: "WARN",
|
|
290
|
+
message: `Response Validation Warnings for application > Order > getOrderById \n ${res_error}`,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
278
293
|
}
|
|
279
294
|
|
|
280
295
|
return response;
|
|
@@ -357,10 +372,14 @@ class Order {
|
|
|
357
372
|
});
|
|
358
373
|
|
|
359
374
|
if (res_error) {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
375
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
376
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
377
|
+
} else {
|
|
378
|
+
Logger({
|
|
379
|
+
level: "WARN",
|
|
380
|
+
message: `Response Validation Warnings for application > Order > getOrders \n ${res_error}`,
|
|
381
|
+
});
|
|
382
|
+
}
|
|
364
383
|
}
|
|
365
384
|
|
|
366
385
|
return response;
|
|
@@ -431,10 +450,14 @@ class Order {
|
|
|
431
450
|
});
|
|
432
451
|
|
|
433
452
|
if (res_error) {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
453
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
454
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
455
|
+
} else {
|
|
456
|
+
Logger({
|
|
457
|
+
level: "WARN",
|
|
458
|
+
message: `Response Validation Warnings for application > Order > getPosOrderById \n ${res_error}`,
|
|
459
|
+
});
|
|
460
|
+
}
|
|
438
461
|
}
|
|
439
462
|
|
|
440
463
|
return response;
|
|
@@ -507,10 +530,14 @@ class Order {
|
|
|
507
530
|
});
|
|
508
531
|
|
|
509
532
|
if (res_error) {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
533
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
534
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
535
|
+
} else {
|
|
536
|
+
Logger({
|
|
537
|
+
level: "WARN",
|
|
538
|
+
message: `Response Validation Warnings for application > Order > getShipmentBagReasons \n ${res_error}`,
|
|
539
|
+
});
|
|
540
|
+
}
|
|
514
541
|
}
|
|
515
542
|
|
|
516
543
|
return response;
|
|
@@ -581,10 +608,14 @@ class Order {
|
|
|
581
608
|
});
|
|
582
609
|
|
|
583
610
|
if (res_error) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
611
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
612
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
613
|
+
} else {
|
|
614
|
+
Logger({
|
|
615
|
+
level: "WARN",
|
|
616
|
+
message: `Response Validation Warnings for application > Order > getShipmentById \n ${res_error}`,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
588
619
|
}
|
|
589
620
|
|
|
590
621
|
return response;
|
|
@@ -655,10 +686,14 @@ class Order {
|
|
|
655
686
|
});
|
|
656
687
|
|
|
657
688
|
if (res_error) {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
689
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
690
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
691
|
+
} else {
|
|
692
|
+
Logger({
|
|
693
|
+
level: "WARN",
|
|
694
|
+
message: `Response Validation Warnings for application > Order > getShipmentReasons \n ${res_error}`,
|
|
695
|
+
});
|
|
696
|
+
}
|
|
662
697
|
}
|
|
663
698
|
|
|
664
699
|
return response;
|
|
@@ -732,10 +767,14 @@ class Order {
|
|
|
732
767
|
);
|
|
733
768
|
|
|
734
769
|
if (res_error) {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
770
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
771
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
772
|
+
} else {
|
|
773
|
+
Logger({
|
|
774
|
+
level: "WARN",
|
|
775
|
+
message: `Response Validation Warnings for application > Order > sendOtpToShipmentCustomer \n ${res_error}`,
|
|
776
|
+
});
|
|
777
|
+
}
|
|
739
778
|
}
|
|
740
779
|
|
|
741
780
|
return response;
|
|
@@ -806,10 +845,14 @@ class Order {
|
|
|
806
845
|
});
|
|
807
846
|
|
|
808
847
|
if (res_error) {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
848
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
849
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
850
|
+
} else {
|
|
851
|
+
Logger({
|
|
852
|
+
level: "WARN",
|
|
853
|
+
message: `Response Validation Warnings for application > Order > trackShipment \n ${res_error}`,
|
|
854
|
+
});
|
|
855
|
+
}
|
|
813
856
|
}
|
|
814
857
|
|
|
815
858
|
return response;
|
|
@@ -882,10 +925,14 @@ class Order {
|
|
|
882
925
|
);
|
|
883
926
|
|
|
884
927
|
if (res_error) {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
928
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
929
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
930
|
+
} else {
|
|
931
|
+
Logger({
|
|
932
|
+
level: "WARN",
|
|
933
|
+
message: `Response Validation Warnings for application > Order > updateShipmentStatus \n ${res_error}`,
|
|
934
|
+
});
|
|
935
|
+
}
|
|
889
936
|
}
|
|
890
937
|
|
|
891
938
|
return response;
|
|
@@ -958,10 +1005,14 @@ class Order {
|
|
|
958
1005
|
});
|
|
959
1006
|
|
|
960
1007
|
if (res_error) {
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1008
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1009
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1010
|
+
} else {
|
|
1011
|
+
Logger({
|
|
1012
|
+
level: "WARN",
|
|
1013
|
+
message: `Response Validation Warnings for application > Order > verifyOtpShipmentCustomer \n ${res_error}`,
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
965
1016
|
}
|
|
966
1017
|
|
|
967
1018
|
return response;
|