@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 PlatformAPIClient = require("../PlatformAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const Paginator = require("../../common/Paginator");
|
|
4
7
|
const FinancePlatformValidator = require("./FinancePlatformValidator");
|
|
5
8
|
const FinancePlatformModel = require("./FinancePlatformModel");
|
|
@@ -79,10 +82,14 @@ class Finance {
|
|
|
79
82
|
);
|
|
80
83
|
|
|
81
84
|
if (res_error) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
86
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
87
|
+
} else {
|
|
88
|
+
Logger({
|
|
89
|
+
level: "WARN",
|
|
90
|
+
message: `Response Validation Warnings for platform > Finance > channelDisplayName \n ${res_error}`,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
return response;
|
|
@@ -160,10 +167,14 @@ class Finance {
|
|
|
160
167
|
);
|
|
161
168
|
|
|
162
169
|
if (res_error) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
170
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
171
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
172
|
+
} else {
|
|
173
|
+
Logger({
|
|
174
|
+
level: "WARN",
|
|
175
|
+
message: `Response Validation Warnings for platform > Finance > createSellerCreditNoteConfig \n ${res_error}`,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
167
178
|
}
|
|
168
179
|
|
|
169
180
|
return response;
|
|
@@ -236,10 +247,14 @@ class Finance {
|
|
|
236
247
|
);
|
|
237
248
|
|
|
238
249
|
if (res_error) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
250
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
251
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
252
|
+
} else {
|
|
253
|
+
Logger({
|
|
254
|
+
level: "WARN",
|
|
255
|
+
message: `Response Validation Warnings for platform > Finance > creditNoteDetails \n ${res_error}`,
|
|
256
|
+
});
|
|
257
|
+
}
|
|
243
258
|
}
|
|
244
259
|
|
|
245
260
|
return response;
|
|
@@ -315,10 +330,14 @@ class Finance {
|
|
|
315
330
|
);
|
|
316
331
|
|
|
317
332
|
if (res_error) {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
333
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
334
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
335
|
+
} else {
|
|
336
|
+
Logger({
|
|
337
|
+
level: "WARN",
|
|
338
|
+
message: `Response Validation Warnings for platform > Finance > creditlineDataplatform \n ${res_error}`,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
322
341
|
}
|
|
323
342
|
|
|
324
343
|
return response;
|
|
@@ -390,10 +409,14 @@ class Finance {
|
|
|
390
409
|
});
|
|
391
410
|
|
|
392
411
|
if (res_error) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
412
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
413
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
414
|
+
} else {
|
|
415
|
+
Logger({
|
|
416
|
+
level: "WARN",
|
|
417
|
+
message: `Response Validation Warnings for platform > Finance > deleteConfig \n ${res_error}`,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
397
420
|
}
|
|
398
421
|
|
|
399
422
|
return response;
|
|
@@ -469,10 +492,14 @@ class Finance {
|
|
|
469
492
|
);
|
|
470
493
|
|
|
471
494
|
if (res_error) {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
495
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
496
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
497
|
+
} else {
|
|
498
|
+
Logger({
|
|
499
|
+
level: "WARN",
|
|
500
|
+
message: `Response Validation Warnings for platform > Finance > downloadCreditDebitNote \n ${res_error}`,
|
|
501
|
+
});
|
|
502
|
+
}
|
|
476
503
|
}
|
|
477
504
|
|
|
478
505
|
return response;
|
|
@@ -544,10 +571,14 @@ class Finance {
|
|
|
544
571
|
});
|
|
545
572
|
|
|
546
573
|
if (res_error) {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
574
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
575
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
576
|
+
} else {
|
|
577
|
+
Logger({
|
|
578
|
+
level: "WARN",
|
|
579
|
+
message: `Response Validation Warnings for platform > Finance > downloadReport \n ${res_error}`,
|
|
580
|
+
});
|
|
581
|
+
}
|
|
551
582
|
}
|
|
552
583
|
|
|
553
584
|
return response;
|
|
@@ -623,10 +654,14 @@ class Finance {
|
|
|
623
654
|
);
|
|
624
655
|
|
|
625
656
|
if (res_error) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
657
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
658
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
659
|
+
} else {
|
|
660
|
+
Logger({
|
|
661
|
+
level: "WARN",
|
|
662
|
+
message: `Response Validation Warnings for platform > Finance > downloadReportCustomerCn \n ${res_error}`,
|
|
663
|
+
});
|
|
664
|
+
}
|
|
630
665
|
}
|
|
631
666
|
|
|
632
667
|
return response;
|
|
@@ -698,10 +733,14 @@ class Finance {
|
|
|
698
733
|
});
|
|
699
734
|
|
|
700
735
|
if (res_error) {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
736
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
737
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
738
|
+
} else {
|
|
739
|
+
Logger({
|
|
740
|
+
level: "WARN",
|
|
741
|
+
message: `Response Validation Warnings for platform > Finance > generateReport \n ${res_error}`,
|
|
742
|
+
});
|
|
743
|
+
}
|
|
705
744
|
}
|
|
706
745
|
|
|
707
746
|
return response;
|
|
@@ -777,10 +816,14 @@ class Finance {
|
|
|
777
816
|
);
|
|
778
817
|
|
|
779
818
|
if (res_error) {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
819
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
820
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
821
|
+
} else {
|
|
822
|
+
Logger({
|
|
823
|
+
level: "WARN",
|
|
824
|
+
message: `Response Validation Warnings for platform > Finance > generateReportCustomerCn \n ${res_error}`,
|
|
825
|
+
});
|
|
826
|
+
}
|
|
784
827
|
}
|
|
785
828
|
|
|
786
829
|
return response;
|
|
@@ -852,10 +895,14 @@ class Finance {
|
|
|
852
895
|
});
|
|
853
896
|
|
|
854
897
|
if (res_error) {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
898
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
899
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
900
|
+
} else {
|
|
901
|
+
Logger({
|
|
902
|
+
level: "WARN",
|
|
903
|
+
message: `Response Validation Warnings for platform > Finance > getAffiliate \n ${res_error}`,
|
|
904
|
+
});
|
|
905
|
+
}
|
|
859
906
|
}
|
|
860
907
|
|
|
861
908
|
return response;
|
|
@@ -925,10 +972,14 @@ class Finance {
|
|
|
925
972
|
});
|
|
926
973
|
|
|
927
974
|
if (res_error) {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
975
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
976
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
977
|
+
} else {
|
|
978
|
+
Logger({
|
|
979
|
+
level: "WARN",
|
|
980
|
+
message: `Response Validation Warnings for platform > Finance > getCnConfig \n ${res_error}`,
|
|
981
|
+
});
|
|
982
|
+
}
|
|
932
983
|
}
|
|
933
984
|
|
|
934
985
|
return response;
|
|
@@ -1004,10 +1055,14 @@ class Finance {
|
|
|
1004
1055
|
);
|
|
1005
1056
|
|
|
1006
1057
|
if (res_error) {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1058
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1059
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1060
|
+
} else {
|
|
1061
|
+
Logger({
|
|
1062
|
+
level: "WARN",
|
|
1063
|
+
message: `Response Validation Warnings for platform > Finance > getCustomerCreditBalance \n ${res_error}`,
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1011
1066
|
}
|
|
1012
1067
|
|
|
1013
1068
|
return response;
|
|
@@ -1077,10 +1132,14 @@ class Finance {
|
|
|
1077
1132
|
});
|
|
1078
1133
|
|
|
1079
1134
|
if (res_error) {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1135
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1136
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1137
|
+
} else {
|
|
1138
|
+
Logger({
|
|
1139
|
+
level: "WARN",
|
|
1140
|
+
message: `Response Validation Warnings for platform > Finance > getData \n ${res_error}`,
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1084
1143
|
}
|
|
1085
1144
|
|
|
1086
1145
|
return response;
|
|
@@ -1152,10 +1211,14 @@ class Finance {
|
|
|
1152
1211
|
});
|
|
1153
1212
|
|
|
1154
1213
|
if (res_error) {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1214
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1215
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1216
|
+
} else {
|
|
1217
|
+
Logger({
|
|
1218
|
+
level: "WARN",
|
|
1219
|
+
message: `Response Validation Warnings for platform > Finance > getPdfUrlView \n ${res_error}`,
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1159
1222
|
}
|
|
1160
1223
|
|
|
1161
1224
|
return response;
|
|
@@ -1225,10 +1288,14 @@ class Finance {
|
|
|
1225
1288
|
});
|
|
1226
1289
|
|
|
1227
1290
|
if (res_error) {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1291
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1292
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1293
|
+
} else {
|
|
1294
|
+
Logger({
|
|
1295
|
+
level: "WARN",
|
|
1296
|
+
message: `Response Validation Warnings for platform > Finance > getReason \n ${res_error}`,
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1232
1299
|
}
|
|
1233
1300
|
|
|
1234
1301
|
return response;
|
|
@@ -1300,10 +1367,14 @@ class Finance {
|
|
|
1300
1367
|
});
|
|
1301
1368
|
|
|
1302
1369
|
if (res_error) {
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1370
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1371
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1372
|
+
} else {
|
|
1373
|
+
Logger({
|
|
1374
|
+
level: "WARN",
|
|
1375
|
+
message: `Response Validation Warnings for platform > Finance > getReportList \n ${res_error}`,
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1307
1378
|
}
|
|
1308
1379
|
|
|
1309
1380
|
return response;
|
|
@@ -1380,10 +1451,14 @@ class Finance {
|
|
|
1380
1451
|
);
|
|
1381
1452
|
|
|
1382
1453
|
if (res_error) {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1454
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1455
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1456
|
+
} else {
|
|
1457
|
+
Logger({
|
|
1458
|
+
level: "WARN",
|
|
1459
|
+
message: `Response Validation Warnings for platform > Finance > getReportingFilters \n ${res_error}`,
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1387
1462
|
}
|
|
1388
1463
|
|
|
1389
1464
|
return response;
|
|
@@ -1455,10 +1530,14 @@ class Finance {
|
|
|
1455
1530
|
});
|
|
1456
1531
|
|
|
1457
1532
|
if (res_error) {
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1533
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1534
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1535
|
+
} else {
|
|
1536
|
+
Logger({
|
|
1537
|
+
level: "WARN",
|
|
1538
|
+
message: `Response Validation Warnings for platform > Finance > invoiceListing \n ${res_error}`,
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1462
1541
|
}
|
|
1463
1542
|
|
|
1464
1543
|
return response;
|
|
@@ -1528,10 +1607,14 @@ class Finance {
|
|
|
1528
1607
|
});
|
|
1529
1608
|
|
|
1530
1609
|
if (res_error) {
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1610
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1611
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1612
|
+
} else {
|
|
1613
|
+
Logger({
|
|
1614
|
+
level: "WARN",
|
|
1615
|
+
message: `Response Validation Warnings for platform > Finance > invoicePDF \n ${res_error}`,
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1535
1618
|
}
|
|
1536
1619
|
|
|
1537
1620
|
return response;
|
|
@@ -1601,10 +1684,14 @@ class Finance {
|
|
|
1601
1684
|
});
|
|
1602
1685
|
|
|
1603
1686
|
if (res_error) {
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1687
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1688
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1689
|
+
} else {
|
|
1690
|
+
Logger({
|
|
1691
|
+
level: "WARN",
|
|
1692
|
+
message: `Response Validation Warnings for platform > Finance > invoiceType \n ${res_error}`,
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1608
1695
|
}
|
|
1609
1696
|
|
|
1610
1697
|
return response;
|
|
@@ -1677,10 +1764,14 @@ class Finance {
|
|
|
1677
1764
|
});
|
|
1678
1765
|
|
|
1679
1766
|
if (res_error) {
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1767
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1768
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1769
|
+
} else {
|
|
1770
|
+
Logger({
|
|
1771
|
+
level: "WARN",
|
|
1772
|
+
message: `Response Validation Warnings for platform > Finance > isCnRefundMethod \n ${res_error}`,
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1684
1775
|
}
|
|
1685
1776
|
|
|
1686
1777
|
return response;
|
|
@@ -1753,10 +1844,14 @@ class Finance {
|
|
|
1753
1844
|
);
|
|
1754
1845
|
|
|
1755
1846
|
if (res_error) {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1847
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1848
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1849
|
+
} else {
|
|
1850
|
+
Logger({
|
|
1851
|
+
level: "WARN",
|
|
1852
|
+
message: `Response Validation Warnings for platform > Finance > isCreditlinePlatform \n ${res_error}`,
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1760
1855
|
}
|
|
1761
1856
|
|
|
1762
1857
|
return response;
|
|
@@ -1828,10 +1923,14 @@ class Finance {
|
|
|
1828
1923
|
});
|
|
1829
1924
|
|
|
1830
1925
|
if (res_error) {
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1926
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1927
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1928
|
+
} else {
|
|
1929
|
+
Logger({
|
|
1930
|
+
level: "WARN",
|
|
1931
|
+
message: `Response Validation Warnings for platform > Finance > paymentProcess \n ${res_error}`,
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1835
1934
|
}
|
|
1836
1935
|
|
|
1837
1936
|
return response;
|