@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 PaymentApplicationValidator = require("./PaymentApplicationValidator");
|
|
@@ -166,10 +169,14 @@ class Payment {
|
|
|
166
169
|
});
|
|
167
170
|
|
|
168
171
|
if (res_error) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
173
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
174
|
+
} else {
|
|
175
|
+
Logger({
|
|
176
|
+
level: "WARN",
|
|
177
|
+
message: `Response Validation Warnings for application > Payment > addBeneficiaryDetails \n ${res_error}`,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
173
180
|
}
|
|
174
181
|
|
|
175
182
|
return response;
|
|
@@ -245,10 +252,14 @@ class Payment {
|
|
|
245
252
|
});
|
|
246
253
|
|
|
247
254
|
if (res_error) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
255
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
256
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
257
|
+
} else {
|
|
258
|
+
Logger({
|
|
259
|
+
level: "WARN",
|
|
260
|
+
message: `Response Validation Warnings for application > Payment > addRefundBankAccountUsingOTP \n ${res_error}`,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
252
263
|
}
|
|
253
264
|
|
|
254
265
|
return response;
|
|
@@ -321,10 +332,14 @@ class Payment {
|
|
|
321
332
|
});
|
|
322
333
|
|
|
323
334
|
if (res_error) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
335
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
336
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
337
|
+
} else {
|
|
338
|
+
Logger({
|
|
339
|
+
level: "WARN",
|
|
340
|
+
message: `Response Validation Warnings for application > Payment > attachCardToCustomer \n ${res_error}`,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
328
343
|
}
|
|
329
344
|
|
|
330
345
|
return response;
|
|
@@ -396,10 +411,14 @@ class Payment {
|
|
|
396
411
|
);
|
|
397
412
|
|
|
398
413
|
if (res_error) {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
414
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
415
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
416
|
+
} else {
|
|
417
|
+
Logger({
|
|
418
|
+
level: "WARN",
|
|
419
|
+
message: `Response Validation Warnings for application > Payment > cancelPaymentLink \n ${res_error}`,
|
|
420
|
+
});
|
|
421
|
+
}
|
|
403
422
|
}
|
|
404
423
|
|
|
405
424
|
return response;
|
|
@@ -471,10 +490,14 @@ class Payment {
|
|
|
471
490
|
});
|
|
472
491
|
|
|
473
492
|
if (res_error) {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
493
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
494
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
495
|
+
} else {
|
|
496
|
+
Logger({
|
|
497
|
+
level: "WARN",
|
|
498
|
+
message: `Response Validation Warnings for application > Payment > cardDetails \n ${res_error}`,
|
|
499
|
+
});
|
|
500
|
+
}
|
|
478
501
|
}
|
|
479
502
|
|
|
480
503
|
return response;
|
|
@@ -551,10 +574,14 @@ class Payment {
|
|
|
551
574
|
);
|
|
552
575
|
|
|
553
576
|
if (res_error) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
577
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
578
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
579
|
+
} else {
|
|
580
|
+
Logger({
|
|
581
|
+
level: "WARN",
|
|
582
|
+
message: `Response Validation Warnings for application > Payment > checkAndUpdatePaymentStatus \n ${res_error}`,
|
|
583
|
+
});
|
|
584
|
+
}
|
|
558
585
|
}
|
|
559
586
|
|
|
560
587
|
return response;
|
|
@@ -631,10 +658,14 @@ class Payment {
|
|
|
631
658
|
);
|
|
632
659
|
|
|
633
660
|
if (res_error) {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
661
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
662
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
663
|
+
} else {
|
|
664
|
+
Logger({
|
|
665
|
+
level: "WARN",
|
|
666
|
+
message: `Response Validation Warnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${res_error}`,
|
|
667
|
+
});
|
|
668
|
+
}
|
|
638
669
|
}
|
|
639
670
|
|
|
640
671
|
return response;
|
|
@@ -706,10 +737,14 @@ class Payment {
|
|
|
706
737
|
});
|
|
707
738
|
|
|
708
739
|
if (res_error) {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
740
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
741
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
742
|
+
} else {
|
|
743
|
+
Logger({
|
|
744
|
+
level: "WARN",
|
|
745
|
+
message: `Response Validation Warnings for application > Payment > checkCredit \n ${res_error}`,
|
|
746
|
+
});
|
|
747
|
+
}
|
|
713
748
|
}
|
|
714
749
|
|
|
715
750
|
return response;
|
|
@@ -785,10 +820,14 @@ class Payment {
|
|
|
785
820
|
);
|
|
786
821
|
|
|
787
822
|
if (res_error) {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
823
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
824
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
825
|
+
} else {
|
|
826
|
+
Logger({
|
|
827
|
+
level: "WARN",
|
|
828
|
+
message: `Response Validation Warnings for application > Payment > createOrderHandlerPaymentLink \n ${res_error}`,
|
|
829
|
+
});
|
|
830
|
+
}
|
|
792
831
|
}
|
|
793
832
|
|
|
794
833
|
return response;
|
|
@@ -860,10 +899,14 @@ class Payment {
|
|
|
860
899
|
);
|
|
861
900
|
|
|
862
901
|
if (res_error) {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
902
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
903
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
904
|
+
} else {
|
|
905
|
+
Logger({
|
|
906
|
+
level: "WARN",
|
|
907
|
+
message: `Response Validation Warnings for application > Payment > createPaymentLink \n ${res_error}`,
|
|
908
|
+
});
|
|
909
|
+
}
|
|
867
910
|
}
|
|
868
911
|
|
|
869
912
|
return response;
|
|
@@ -939,10 +982,14 @@ class Payment {
|
|
|
939
982
|
);
|
|
940
983
|
|
|
941
984
|
if (res_error) {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
985
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
986
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
987
|
+
} else {
|
|
988
|
+
Logger({
|
|
989
|
+
level: "WARN",
|
|
990
|
+
message: `Response Validation Warnings for application > Payment > customerCreditSummary \n ${res_error}`,
|
|
991
|
+
});
|
|
992
|
+
}
|
|
946
993
|
}
|
|
947
994
|
|
|
948
995
|
return response;
|
|
@@ -1014,10 +1061,14 @@ class Payment {
|
|
|
1014
1061
|
);
|
|
1015
1062
|
|
|
1016
1063
|
if (res_error) {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1064
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1065
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1066
|
+
} else {
|
|
1067
|
+
Logger({
|
|
1068
|
+
level: "WARN",
|
|
1069
|
+
message: `Response Validation Warnings for application > Payment > customerOnboard \n ${res_error}`,
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1021
1072
|
}
|
|
1022
1073
|
|
|
1023
1074
|
return response;
|
|
@@ -1088,10 +1139,14 @@ class Payment {
|
|
|
1088
1139
|
});
|
|
1089
1140
|
|
|
1090
1141
|
if (res_error) {
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1142
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1143
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1144
|
+
} else {
|
|
1145
|
+
Logger({
|
|
1146
|
+
level: "WARN",
|
|
1147
|
+
message: `Response Validation Warnings for application > Payment > deleteUserCard \n ${res_error}`,
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1095
1150
|
}
|
|
1096
1151
|
|
|
1097
1152
|
return response;
|
|
@@ -1168,10 +1223,14 @@ class Payment {
|
|
|
1168
1223
|
);
|
|
1169
1224
|
|
|
1170
1225
|
if (res_error) {
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1226
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1227
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1228
|
+
} else {
|
|
1229
|
+
Logger({
|
|
1230
|
+
level: "WARN",
|
|
1231
|
+
message: `Response Validation Warnings for application > Payment > enableOrDisableRefundTransferMode \n ${res_error}`,
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1175
1234
|
}
|
|
1176
1235
|
|
|
1177
1236
|
return response;
|
|
@@ -1247,10 +1306,14 @@ class Payment {
|
|
|
1247
1306
|
);
|
|
1248
1307
|
|
|
1249
1308
|
if (res_error) {
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1309
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1310
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1311
|
+
} else {
|
|
1312
|
+
Logger({
|
|
1313
|
+
level: "WARN",
|
|
1314
|
+
message: `Response Validation Warnings for application > Payment > getActiveCardAggregator \n ${res_error}`,
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1254
1317
|
}
|
|
1255
1318
|
|
|
1256
1319
|
return response;
|
|
@@ -1325,10 +1388,14 @@ class Payment {
|
|
|
1325
1388
|
});
|
|
1326
1389
|
|
|
1327
1390
|
if (res_error) {
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1391
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1392
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1393
|
+
} else {
|
|
1394
|
+
Logger({
|
|
1395
|
+
level: "WARN",
|
|
1396
|
+
message: `Response Validation Warnings for application > Payment > getActiveRefundTransferModes \n ${res_error}`,
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1332
1399
|
}
|
|
1333
1400
|
|
|
1334
1401
|
return response;
|
|
@@ -1400,10 +1467,14 @@ class Payment {
|
|
|
1400
1467
|
});
|
|
1401
1468
|
|
|
1402
1469
|
if (res_error) {
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1470
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1471
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1472
|
+
} else {
|
|
1473
|
+
Logger({
|
|
1474
|
+
level: "WARN",
|
|
1475
|
+
message: `Response Validation Warnings for application > Payment > getActiveUserCards \n ${res_error}`,
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1407
1478
|
}
|
|
1408
1479
|
|
|
1409
1480
|
return response;
|
|
@@ -1480,10 +1551,14 @@ class Payment {
|
|
|
1480
1551
|
);
|
|
1481
1552
|
|
|
1482
1553
|
if (res_error) {
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1554
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1555
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1556
|
+
} else {
|
|
1557
|
+
Logger({
|
|
1558
|
+
level: "WARN",
|
|
1559
|
+
message: `Response Validation Warnings for application > Payment > getAggregatorsConfig \n ${res_error}`,
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1487
1562
|
}
|
|
1488
1563
|
|
|
1489
1564
|
return response;
|
|
@@ -1559,10 +1634,14 @@ class Payment {
|
|
|
1559
1634
|
);
|
|
1560
1635
|
|
|
1561
1636
|
if (res_error) {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1637
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1638
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1639
|
+
} else {
|
|
1640
|
+
Logger({
|
|
1641
|
+
level: "WARN",
|
|
1642
|
+
message: `Response Validation Warnings for application > Payment > getEpaylaterBannerDetails \n ${res_error}`,
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1566
1645
|
}
|
|
1567
1646
|
|
|
1568
1647
|
return response;
|
|
@@ -1639,10 +1718,14 @@ class Payment {
|
|
|
1639
1718
|
);
|
|
1640
1719
|
|
|
1641
1720
|
if (res_error) {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1721
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1722
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1723
|
+
} else {
|
|
1724
|
+
Logger({
|
|
1725
|
+
level: "WARN",
|
|
1726
|
+
message: `Response Validation Warnings for application > Payment > getOrderBeneficiariesDetail \n ${res_error}`,
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1646
1729
|
}
|
|
1647
1730
|
|
|
1648
1731
|
return response;
|
|
@@ -1715,10 +1798,14 @@ class Payment {
|
|
|
1715
1798
|
);
|
|
1716
1799
|
|
|
1717
1800
|
if (res_error) {
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1801
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1802
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1803
|
+
} else {
|
|
1804
|
+
Logger({
|
|
1805
|
+
level: "WARN",
|
|
1806
|
+
message: `Response Validation Warnings for application > Payment > getPaymentLink \n ${res_error}`,
|
|
1807
|
+
});
|
|
1808
|
+
}
|
|
1722
1809
|
}
|
|
1723
1810
|
|
|
1724
1811
|
return response;
|
|
@@ -1824,10 +1911,14 @@ class Payment {
|
|
|
1824
1911
|
);
|
|
1825
1912
|
|
|
1826
1913
|
if (res_error) {
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1914
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1915
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1916
|
+
} else {
|
|
1917
|
+
Logger({
|
|
1918
|
+
level: "WARN",
|
|
1919
|
+
message: `Response Validation Warnings for application > Payment > getPaymentModeRoutes \n ${res_error}`,
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1831
1922
|
}
|
|
1832
1923
|
|
|
1833
1924
|
return response;
|
|
@@ -1904,10 +1995,14 @@ class Payment {
|
|
|
1904
1995
|
);
|
|
1905
1996
|
|
|
1906
1997
|
if (res_error) {
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1998
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1999
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2000
|
+
} else {
|
|
2001
|
+
Logger({
|
|
2002
|
+
level: "WARN",
|
|
2003
|
+
message: `Response Validation Warnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${res_error}`,
|
|
2004
|
+
});
|
|
2005
|
+
}
|
|
1911
2006
|
}
|
|
1912
2007
|
|
|
1913
2008
|
return response;
|
|
@@ -2017,10 +2112,14 @@ class Payment {
|
|
|
2017
2112
|
);
|
|
2018
2113
|
|
|
2019
2114
|
if (res_error) {
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2115
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2116
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2117
|
+
} else {
|
|
2118
|
+
Logger({
|
|
2119
|
+
level: "WARN",
|
|
2120
|
+
message: `Response Validation Warnings for application > Payment > getPosPaymentModeRoutes \n ${res_error}`,
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2024
2123
|
}
|
|
2025
2124
|
|
|
2026
2125
|
return response;
|
|
@@ -2093,10 +2192,14 @@ class Payment {
|
|
|
2093
2192
|
});
|
|
2094
2193
|
|
|
2095
2194
|
if (res_error) {
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2195
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2196
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2197
|
+
} else {
|
|
2198
|
+
Logger({
|
|
2199
|
+
level: "WARN",
|
|
2200
|
+
message: `Response Validation Warnings for application > Payment > getRupifiBannerDetails \n ${res_error}`,
|
|
2201
|
+
});
|
|
2202
|
+
}
|
|
2100
2203
|
}
|
|
2101
2204
|
|
|
2102
2205
|
return response;
|
|
@@ -2173,10 +2276,14 @@ class Payment {
|
|
|
2173
2276
|
);
|
|
2174
2277
|
|
|
2175
2278
|
if (res_error) {
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2279
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2280
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2281
|
+
} else {
|
|
2282
|
+
Logger({
|
|
2283
|
+
level: "WARN",
|
|
2284
|
+
message: `Response Validation Warnings for application > Payment > getUserBeneficiariesDetail \n ${res_error}`,
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2180
2287
|
}
|
|
2181
2288
|
|
|
2182
2289
|
return response;
|
|
@@ -2249,10 +2356,14 @@ class Payment {
|
|
|
2249
2356
|
);
|
|
2250
2357
|
|
|
2251
2358
|
if (res_error) {
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2359
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2360
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2361
|
+
} else {
|
|
2362
|
+
Logger({
|
|
2363
|
+
level: "WARN",
|
|
2364
|
+
message: `Response Validation Warnings for application > Payment > initialisePayment \n ${res_error}`,
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2256
2367
|
}
|
|
2257
2368
|
|
|
2258
2369
|
return response;
|
|
@@ -2329,10 +2440,14 @@ class Payment {
|
|
|
2329
2440
|
);
|
|
2330
2441
|
|
|
2331
2442
|
if (res_error) {
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2443
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2444
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2445
|
+
} else {
|
|
2446
|
+
Logger({
|
|
2447
|
+
level: "WARN",
|
|
2448
|
+
message: `Response Validation Warnings for application > Payment > initialisePaymentPaymentLink \n ${res_error}`,
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2336
2451
|
}
|
|
2337
2452
|
|
|
2338
2453
|
return response;
|
|
@@ -2408,10 +2523,14 @@ class Payment {
|
|
|
2408
2523
|
);
|
|
2409
2524
|
|
|
2410
2525
|
if (res_error) {
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2526
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2527
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2528
|
+
} else {
|
|
2529
|
+
Logger({
|
|
2530
|
+
level: "WARN",
|
|
2531
|
+
message: `Response Validation Warnings for application > Payment > outstandingOrderDetails \n ${res_error}`,
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2415
2534
|
}
|
|
2416
2535
|
|
|
2417
2536
|
return response;
|
|
@@ -2484,10 +2603,14 @@ class Payment {
|
|
|
2484
2603
|
);
|
|
2485
2604
|
|
|
2486
2605
|
if (res_error) {
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2606
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2607
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2608
|
+
} else {
|
|
2609
|
+
Logger({
|
|
2610
|
+
level: "WARN",
|
|
2611
|
+
message: `Response Validation Warnings for application > Payment > paidOrderDetails \n ${res_error}`,
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2491
2614
|
}
|
|
2492
2615
|
|
|
2493
2616
|
return response;
|
|
@@ -2560,10 +2683,14 @@ class Payment {
|
|
|
2560
2683
|
);
|
|
2561
2684
|
|
|
2562
2685
|
if (res_error) {
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2686
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2687
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2688
|
+
} else {
|
|
2689
|
+
Logger({
|
|
2690
|
+
level: "WARN",
|
|
2691
|
+
message: `Response Validation Warnings for application > Payment > pollingPaymentLink \n ${res_error}`,
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2567
2694
|
}
|
|
2568
2695
|
|
|
2569
2696
|
return response;
|
|
@@ -2640,10 +2767,14 @@ class Payment {
|
|
|
2640
2767
|
);
|
|
2641
2768
|
|
|
2642
2769
|
if (res_error) {
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2770
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2771
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2772
|
+
} else {
|
|
2773
|
+
Logger({
|
|
2774
|
+
level: "WARN",
|
|
2775
|
+
message: `Response Validation Warnings for application > Payment > redirectToAggregator \n ${res_error}`,
|
|
2776
|
+
});
|
|
2777
|
+
}
|
|
2647
2778
|
}
|
|
2648
2779
|
|
|
2649
2780
|
return response;
|
|
@@ -2714,10 +2845,14 @@ class Payment {
|
|
|
2714
2845
|
});
|
|
2715
2846
|
|
|
2716
2847
|
if (res_error) {
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2848
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2849
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2850
|
+
} else {
|
|
2851
|
+
Logger({
|
|
2852
|
+
level: "WARN",
|
|
2853
|
+
message: `Response Validation Warnings for application > Payment > renderHTML \n ${res_error}`,
|
|
2854
|
+
});
|
|
2855
|
+
}
|
|
2721
2856
|
}
|
|
2722
2857
|
|
|
2723
2858
|
return response;
|
|
@@ -2792,10 +2927,14 @@ class Payment {
|
|
|
2792
2927
|
);
|
|
2793
2928
|
|
|
2794
2929
|
if (res_error) {
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2930
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2931
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2932
|
+
} else {
|
|
2933
|
+
Logger({
|
|
2934
|
+
level: "WARN",
|
|
2935
|
+
message: `Response Validation Warnings for application > Payment > resendOrCancelPayment \n ${res_error}`,
|
|
2936
|
+
});
|
|
2937
|
+
}
|
|
2799
2938
|
}
|
|
2800
2939
|
|
|
2801
2940
|
return response;
|
|
@@ -2867,10 +3006,14 @@ class Payment {
|
|
|
2867
3006
|
);
|
|
2868
3007
|
|
|
2869
3008
|
if (res_error) {
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
3009
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3010
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3011
|
+
} else {
|
|
3012
|
+
Logger({
|
|
3013
|
+
level: "WARN",
|
|
3014
|
+
message: `Response Validation Warnings for application > Payment > resendPaymentLink \n ${res_error}`,
|
|
3015
|
+
});
|
|
3016
|
+
}
|
|
2874
3017
|
}
|
|
2875
3018
|
|
|
2876
3019
|
return response;
|
|
@@ -2946,10 +3089,14 @@ class Payment {
|
|
|
2946
3089
|
);
|
|
2947
3090
|
|
|
2948
3091
|
if (res_error) {
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
3092
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3093
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3094
|
+
} else {
|
|
3095
|
+
Logger({
|
|
3096
|
+
level: "WARN",
|
|
3097
|
+
message: `Response Validation Warnings for application > Payment > updateDefaultBeneficiary \n ${res_error}`,
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
2953
3100
|
}
|
|
2954
3101
|
|
|
2955
3102
|
return response;
|
|
@@ -3020,10 +3167,14 @@ class Payment {
|
|
|
3020
3167
|
});
|
|
3021
3168
|
|
|
3022
3169
|
if (res_error) {
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3170
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3171
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3172
|
+
} else {
|
|
3173
|
+
Logger({
|
|
3174
|
+
level: "WARN",
|
|
3175
|
+
message: `Response Validation Warnings for application > Payment > validateVPA \n ${res_error}`,
|
|
3176
|
+
});
|
|
3177
|
+
}
|
|
3027
3178
|
}
|
|
3028
3179
|
|
|
3029
3180
|
return response;
|
|
@@ -3097,10 +3248,14 @@ class Payment {
|
|
|
3097
3248
|
);
|
|
3098
3249
|
|
|
3099
3250
|
if (res_error) {
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3251
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3252
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3253
|
+
} else {
|
|
3254
|
+
Logger({
|
|
3255
|
+
level: "WARN",
|
|
3256
|
+
message: `Response Validation Warnings for application > Payment > verifyAndChargePayment \n ${res_error}`,
|
|
3257
|
+
});
|
|
3258
|
+
}
|
|
3104
3259
|
}
|
|
3105
3260
|
|
|
3106
3261
|
return response;
|
|
@@ -3175,10 +3330,14 @@ class Payment {
|
|
|
3175
3330
|
);
|
|
3176
3331
|
|
|
3177
3332
|
if (res_error) {
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3333
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3334
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3335
|
+
} else {
|
|
3336
|
+
Logger({
|
|
3337
|
+
level: "WARN",
|
|
3338
|
+
message: `Response Validation Warnings for application > Payment > verifyCustomerForPayment \n ${res_error}`,
|
|
3339
|
+
});
|
|
3340
|
+
}
|
|
3182
3341
|
}
|
|
3183
3342
|
|
|
3184
3343
|
return response;
|
|
@@ -3250,10 +3409,14 @@ class Payment {
|
|
|
3250
3409
|
});
|
|
3251
3410
|
|
|
3252
3411
|
if (res_error) {
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3412
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3413
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3414
|
+
} else {
|
|
3415
|
+
Logger({
|
|
3416
|
+
level: "WARN",
|
|
3417
|
+
message: `Response Validation Warnings for application > Payment > verifyIfscCode \n ${res_error}`,
|
|
3418
|
+
});
|
|
3419
|
+
}
|
|
3257
3420
|
}
|
|
3258
3421
|
|
|
3259
3422
|
return response;
|
|
@@ -3330,10 +3493,14 @@ class Payment {
|
|
|
3330
3493
|
);
|
|
3331
3494
|
|
|
3332
3495
|
if (res_error) {
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3496
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3497
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3498
|
+
} else {
|
|
3499
|
+
Logger({
|
|
3500
|
+
level: "WARN",
|
|
3501
|
+
message: `Response Validation Warnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${res_error}`,
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3337
3504
|
}
|
|
3338
3505
|
|
|
3339
3506
|
return response;
|
|
@@ -3408,10 +3575,14 @@ class Payment {
|
|
|
3408
3575
|
});
|
|
3409
3576
|
|
|
3410
3577
|
if (res_error) {
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3578
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3579
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3580
|
+
} else {
|
|
3581
|
+
Logger({
|
|
3582
|
+
level: "WARN",
|
|
3583
|
+
message: `Response Validation Warnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${res_error}`,
|
|
3584
|
+
});
|
|
3585
|
+
}
|
|
3415
3586
|
}
|
|
3416
3587
|
|
|
3417
3588
|
return response;
|