@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
|
@@ -80,10 +80,14 @@ class Payment {
|
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
if (res_error) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
84
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
85
|
+
} else {
|
|
86
|
+
Logger({
|
|
87
|
+
level: "WARN",
|
|
88
|
+
message: `Response Validation Warnings for platform > Payment > addEdcDevice \n ${res_error}`,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
return response;
|
|
@@ -157,10 +161,14 @@ class Payment {
|
|
|
157
161
|
});
|
|
158
162
|
|
|
159
163
|
if (res_error) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
165
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
166
|
+
} else {
|
|
167
|
+
Logger({
|
|
168
|
+
level: "WARN",
|
|
169
|
+
message: `Response Validation Warnings for platform > Payment > addRefundBankAccountUsingOTP \n ${res_error}`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
164
172
|
}
|
|
165
173
|
|
|
166
174
|
return response;
|
|
@@ -235,10 +243,14 @@ class Payment {
|
|
|
235
243
|
);
|
|
236
244
|
|
|
237
245
|
if (res_error) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
246
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
247
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
248
|
+
} else {
|
|
249
|
+
Logger({
|
|
250
|
+
level: "WARN",
|
|
251
|
+
message: `Response Validation Warnings for platform > Payment > cancelPaymentLink \n ${res_error}`,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
242
254
|
}
|
|
243
255
|
|
|
244
256
|
return response;
|
|
@@ -313,10 +325,14 @@ class Payment {
|
|
|
313
325
|
);
|
|
314
326
|
|
|
315
327
|
if (res_error) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
328
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
329
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
330
|
+
} else {
|
|
331
|
+
Logger({
|
|
332
|
+
level: "WARN",
|
|
333
|
+
message: `Response Validation Warnings for platform > Payment > checkAndUpdatePaymentStatus \n ${res_error}`,
|
|
334
|
+
});
|
|
335
|
+
}
|
|
320
336
|
}
|
|
321
337
|
|
|
322
338
|
return response;
|
|
@@ -389,10 +405,14 @@ class Payment {
|
|
|
389
405
|
);
|
|
390
406
|
|
|
391
407
|
if (res_error) {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
408
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
409
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
410
|
+
} else {
|
|
411
|
+
Logger({
|
|
412
|
+
level: "WARN",
|
|
413
|
+
message: `Response Validation Warnings for platform > Payment > confirmPayment \n ${res_error}`,
|
|
414
|
+
});
|
|
415
|
+
}
|
|
396
416
|
}
|
|
397
417
|
|
|
398
418
|
return response;
|
|
@@ -470,10 +490,14 @@ class Payment {
|
|
|
470
490
|
);
|
|
471
491
|
|
|
472
492
|
if (res_error) {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
493
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
494
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
495
|
+
} else {
|
|
496
|
+
Logger({
|
|
497
|
+
level: "WARN",
|
|
498
|
+
message: `Response Validation Warnings for platform > Payment > createMerchantRefundPriority \n ${res_error}`,
|
|
499
|
+
});
|
|
500
|
+
}
|
|
477
501
|
}
|
|
478
502
|
|
|
479
503
|
return response;
|
|
@@ -548,10 +572,14 @@ class Payment {
|
|
|
548
572
|
);
|
|
549
573
|
|
|
550
574
|
if (res_error) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
575
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
576
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
577
|
+
} else {
|
|
578
|
+
Logger({
|
|
579
|
+
level: "WARN",
|
|
580
|
+
message: `Response Validation Warnings for platform > Payment > createPaymentLink \n ${res_error}`,
|
|
581
|
+
});
|
|
582
|
+
}
|
|
555
583
|
}
|
|
556
584
|
|
|
557
585
|
return response;
|
|
@@ -623,10 +651,14 @@ class Payment {
|
|
|
623
651
|
);
|
|
624
652
|
|
|
625
653
|
if (res_error) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
654
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
655
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
656
|
+
} else {
|
|
657
|
+
Logger({
|
|
658
|
+
level: "WARN",
|
|
659
|
+
message: `Response Validation Warnings for platform > Payment > edcAggregatorsAndModelList \n ${res_error}`,
|
|
660
|
+
});
|
|
661
|
+
}
|
|
630
662
|
}
|
|
631
663
|
|
|
632
664
|
return response;
|
|
@@ -713,10 +745,14 @@ class Payment {
|
|
|
713
745
|
});
|
|
714
746
|
|
|
715
747
|
if (res_error) {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
748
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
749
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
750
|
+
} else {
|
|
751
|
+
Logger({
|
|
752
|
+
level: "WARN",
|
|
753
|
+
message: `Response Validation Warnings for platform > Payment > edcDeviceList \n ${res_error}`,
|
|
754
|
+
});
|
|
755
|
+
}
|
|
720
756
|
}
|
|
721
757
|
|
|
722
758
|
return response;
|
|
@@ -784,10 +820,14 @@ class Payment {
|
|
|
784
820
|
});
|
|
785
821
|
|
|
786
822
|
if (res_error) {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
823
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
824
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
825
|
+
} else {
|
|
826
|
+
Logger({
|
|
827
|
+
level: "WARN",
|
|
828
|
+
message: `Response Validation Warnings for platform > Payment > edcDeviceStats \n ${res_error}`,
|
|
829
|
+
});
|
|
830
|
+
}
|
|
791
831
|
}
|
|
792
832
|
|
|
793
833
|
return response;
|
|
@@ -867,10 +907,14 @@ class Payment {
|
|
|
867
907
|
});
|
|
868
908
|
|
|
869
909
|
if (res_error) {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
910
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
911
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
912
|
+
} else {
|
|
913
|
+
Logger({
|
|
914
|
+
level: "WARN",
|
|
915
|
+
message: `Response Validation Warnings for platform > Payment > getBankAccountDetailsOpenAPI \n ${res_error}`,
|
|
916
|
+
});
|
|
917
|
+
}
|
|
874
918
|
}
|
|
875
919
|
|
|
876
920
|
return response;
|
|
@@ -949,10 +993,14 @@ class Payment {
|
|
|
949
993
|
);
|
|
950
994
|
|
|
951
995
|
if (res_error) {
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
996
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
997
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
998
|
+
} else {
|
|
999
|
+
Logger({
|
|
1000
|
+
level: "WARN",
|
|
1001
|
+
message: `Response Validation Warnings for platform > Payment > getBrandPaymentGatewayConfig \n ${res_error}`,
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
956
1004
|
}
|
|
957
1005
|
|
|
958
1006
|
return response;
|
|
@@ -1025,10 +1073,14 @@ class Payment {
|
|
|
1025
1073
|
});
|
|
1026
1074
|
|
|
1027
1075
|
if (res_error) {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1076
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1077
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1078
|
+
} else {
|
|
1079
|
+
Logger({
|
|
1080
|
+
level: "WARN",
|
|
1081
|
+
message: `Response Validation Warnings for platform > Payment > getEdcDevice \n ${res_error}`,
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1032
1084
|
}
|
|
1033
1085
|
|
|
1034
1086
|
return response;
|
|
@@ -1111,10 +1163,14 @@ class Payment {
|
|
|
1111
1163
|
);
|
|
1112
1164
|
|
|
1113
1165
|
if (res_error) {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1166
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1167
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1168
|
+
} else {
|
|
1169
|
+
Logger({
|
|
1170
|
+
level: "WARN",
|
|
1171
|
+
message: `Response Validation Warnings for platform > Payment > getMerchantAggregatorPaymentModeDetails \n ${res_error}`,
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1118
1174
|
}
|
|
1119
1175
|
|
|
1120
1176
|
return response;
|
|
@@ -1185,10 +1241,14 @@ class Payment {
|
|
|
1185
1241
|
);
|
|
1186
1242
|
|
|
1187
1243
|
if (res_error) {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1244
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1245
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1246
|
+
} else {
|
|
1247
|
+
Logger({
|
|
1248
|
+
level: "WARN",
|
|
1249
|
+
message: `Response Validation Warnings for platform > Payment > getMerchantPaymentOption \n ${res_error}`,
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1192
1252
|
}
|
|
1193
1253
|
|
|
1194
1254
|
return response;
|
|
@@ -1264,10 +1324,14 @@ class Payment {
|
|
|
1264
1324
|
);
|
|
1265
1325
|
|
|
1266
1326
|
if (res_error) {
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1327
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1328
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1329
|
+
} else {
|
|
1330
|
+
Logger({
|
|
1331
|
+
level: "WARN",
|
|
1332
|
+
message: `Response Validation Warnings for platform > Payment > getMerchantRefundPriority \n ${res_error}`,
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1271
1335
|
}
|
|
1272
1336
|
|
|
1273
1337
|
return response;
|
|
@@ -1338,10 +1402,14 @@ class Payment {
|
|
|
1338
1402
|
);
|
|
1339
1403
|
|
|
1340
1404
|
if (res_error) {
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1405
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1406
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1407
|
+
} else {
|
|
1408
|
+
Logger({
|
|
1409
|
+
level: "WARN",
|
|
1410
|
+
message: `Response Validation Warnings for platform > Payment > getPGConfigAggregators \n ${res_error}`,
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1345
1413
|
}
|
|
1346
1414
|
|
|
1347
1415
|
return response;
|
|
@@ -1411,10 +1479,14 @@ class Payment {
|
|
|
1411
1479
|
});
|
|
1412
1480
|
|
|
1413
1481
|
if (res_error) {
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1482
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1483
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1484
|
+
} else {
|
|
1485
|
+
Logger({
|
|
1486
|
+
level: "WARN",
|
|
1487
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentCodeOption \n ${res_error}`,
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1418
1490
|
}
|
|
1419
1491
|
|
|
1420
1492
|
return response;
|
|
@@ -1487,10 +1559,14 @@ class Payment {
|
|
|
1487
1559
|
});
|
|
1488
1560
|
|
|
1489
1561
|
if (res_error) {
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1562
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1563
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1564
|
+
} else {
|
|
1565
|
+
Logger({
|
|
1566
|
+
level: "WARN",
|
|
1567
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentLink \n ${res_error}`,
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1494
1570
|
}
|
|
1495
1571
|
|
|
1496
1572
|
return response;
|
|
@@ -1568,10 +1644,14 @@ class Payment {
|
|
|
1568
1644
|
});
|
|
1569
1645
|
|
|
1570
1646
|
if (res_error) {
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1647
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1648
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1649
|
+
} else {
|
|
1650
|
+
Logger({
|
|
1651
|
+
level: "WARN",
|
|
1652
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentModeRoutes \n ${res_error}`,
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1575
1655
|
}
|
|
1576
1656
|
|
|
1577
1657
|
return response;
|
|
@@ -1677,10 +1757,14 @@ class Payment {
|
|
|
1677
1757
|
});
|
|
1678
1758
|
|
|
1679
1759
|
if (res_error) {
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1760
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1761
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1762
|
+
} else {
|
|
1763
|
+
Logger({
|
|
1764
|
+
level: "WARN",
|
|
1765
|
+
message: `Response Validation Warnings for platform > Payment > getPosPaymentModeRoutes \n ${res_error}`,
|
|
1766
|
+
});
|
|
1767
|
+
}
|
|
1684
1768
|
}
|
|
1685
1769
|
|
|
1686
1770
|
return response;
|
|
@@ -1752,10 +1836,14 @@ class Payment {
|
|
|
1752
1836
|
});
|
|
1753
1837
|
|
|
1754
1838
|
if (res_error) {
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1839
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1840
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1841
|
+
} else {
|
|
1842
|
+
Logger({
|
|
1843
|
+
level: "WARN",
|
|
1844
|
+
message: `Response Validation Warnings for platform > Payment > getUserBeneficiaries \n ${res_error}`,
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1759
1847
|
}
|
|
1760
1848
|
|
|
1761
1849
|
return response;
|
|
@@ -1833,10 +1921,14 @@ class Payment {
|
|
|
1833
1921
|
});
|
|
1834
1922
|
|
|
1835
1923
|
if (res_error) {
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1924
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1925
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1926
|
+
} else {
|
|
1927
|
+
Logger({
|
|
1928
|
+
level: "WARN",
|
|
1929
|
+
message: `Response Validation Warnings for platform > Payment > getUserCODlimitRoutes \n ${res_error}`,
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1840
1932
|
}
|
|
1841
1933
|
|
|
1842
1934
|
return response;
|
|
@@ -1908,10 +2000,14 @@ class Payment {
|
|
|
1908
2000
|
});
|
|
1909
2001
|
|
|
1910
2002
|
if (res_error) {
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
2003
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2004
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2005
|
+
} else {
|
|
2006
|
+
Logger({
|
|
2007
|
+
level: "WARN",
|
|
2008
|
+
message: `Response Validation Warnings for platform > Payment > getUserOrderBeneficiaries \n ${res_error}`,
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
1915
2011
|
}
|
|
1916
2012
|
|
|
1917
2013
|
return response;
|
|
@@ -1986,10 +2082,14 @@ class Payment {
|
|
|
1986
2082
|
);
|
|
1987
2083
|
|
|
1988
2084
|
if (res_error) {
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2085
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2086
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2087
|
+
} else {
|
|
2088
|
+
Logger({
|
|
2089
|
+
level: "WARN",
|
|
2090
|
+
message: `Response Validation Warnings for platform > Payment > initialisePayment \n ${res_error}`,
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
1993
2093
|
}
|
|
1994
2094
|
|
|
1995
2095
|
return response;
|
|
@@ -2064,10 +2164,14 @@ class Payment {
|
|
|
2064
2164
|
);
|
|
2065
2165
|
|
|
2066
2166
|
if (res_error) {
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2167
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2168
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2169
|
+
} else {
|
|
2170
|
+
Logger({
|
|
2171
|
+
level: "WARN",
|
|
2172
|
+
message: `Response Validation Warnings for platform > Payment > merchantOnBoarding \n ${res_error}`,
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2071
2175
|
}
|
|
2072
2176
|
|
|
2073
2177
|
return response;
|
|
@@ -2147,10 +2251,14 @@ class Payment {
|
|
|
2147
2251
|
});
|
|
2148
2252
|
|
|
2149
2253
|
if (res_error) {
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2254
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2255
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2256
|
+
} else {
|
|
2257
|
+
Logger({
|
|
2258
|
+
level: "WARN",
|
|
2259
|
+
message: `Response Validation Warnings for platform > Payment > oauthGetUrl \n ${res_error}`,
|
|
2260
|
+
});
|
|
2261
|
+
}
|
|
2154
2262
|
}
|
|
2155
2263
|
|
|
2156
2264
|
return response;
|
|
@@ -2227,10 +2335,14 @@ class Payment {
|
|
|
2227
2335
|
);
|
|
2228
2336
|
|
|
2229
2337
|
if (res_error) {
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2338
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2339
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2340
|
+
} else {
|
|
2341
|
+
Logger({
|
|
2342
|
+
level: "WARN",
|
|
2343
|
+
message: `Response Validation Warnings for platform > Payment > patchMerchantAggregatorPaymentModeDetails \n ${res_error}`,
|
|
2344
|
+
});
|
|
2345
|
+
}
|
|
2234
2346
|
}
|
|
2235
2347
|
|
|
2236
2348
|
return response;
|
|
@@ -2305,10 +2417,14 @@ class Payment {
|
|
|
2305
2417
|
);
|
|
2306
2418
|
|
|
2307
2419
|
if (res_error) {
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2420
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2421
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2422
|
+
} else {
|
|
2423
|
+
Logger({
|
|
2424
|
+
level: "WARN",
|
|
2425
|
+
message: `Response Validation Warnings for platform > Payment > patchMerchantPaymentOption \n ${res_error}`,
|
|
2426
|
+
});
|
|
2427
|
+
}
|
|
2312
2428
|
}
|
|
2313
2429
|
|
|
2314
2430
|
return response;
|
|
@@ -2384,10 +2500,14 @@ class Payment {
|
|
|
2384
2500
|
);
|
|
2385
2501
|
|
|
2386
2502
|
if (res_error) {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2503
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2504
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2505
|
+
} else {
|
|
2506
|
+
Logger({
|
|
2507
|
+
level: "WARN",
|
|
2508
|
+
message: `Response Validation Warnings for platform > Payment > paymentStatusBulk \n ${res_error}`,
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2391
2511
|
}
|
|
2392
2512
|
|
|
2393
2513
|
return response;
|
|
@@ -2463,10 +2583,14 @@ class Payment {
|
|
|
2463
2583
|
);
|
|
2464
2584
|
|
|
2465
2585
|
if (res_error) {
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2586
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2587
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2588
|
+
} else {
|
|
2589
|
+
Logger({
|
|
2590
|
+
level: "WARN",
|
|
2591
|
+
message: `Response Validation Warnings for platform > Payment > pollingPaymentLink \n ${res_error}`,
|
|
2592
|
+
});
|
|
2593
|
+
}
|
|
2470
2594
|
}
|
|
2471
2595
|
|
|
2472
2596
|
return response;
|
|
@@ -2538,10 +2662,14 @@ class Payment {
|
|
|
2538
2662
|
});
|
|
2539
2663
|
|
|
2540
2664
|
if (res_error) {
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2665
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2666
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2667
|
+
} else {
|
|
2668
|
+
Logger({
|
|
2669
|
+
level: "WARN",
|
|
2670
|
+
message: `Response Validation Warnings for platform > Payment > repaymentDetails \n ${res_error}`,
|
|
2671
|
+
});
|
|
2672
|
+
}
|
|
2545
2673
|
}
|
|
2546
2674
|
|
|
2547
2675
|
return response;
|
|
@@ -2616,10 +2744,14 @@ class Payment {
|
|
|
2616
2744
|
);
|
|
2617
2745
|
|
|
2618
2746
|
if (res_error) {
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2747
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2748
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2749
|
+
} else {
|
|
2750
|
+
Logger({
|
|
2751
|
+
level: "WARN",
|
|
2752
|
+
message: `Response Validation Warnings for platform > Payment > resendOrCancelPayment \n ${res_error}`,
|
|
2753
|
+
});
|
|
2754
|
+
}
|
|
2623
2755
|
}
|
|
2624
2756
|
|
|
2625
2757
|
return response;
|
|
@@ -2694,10 +2826,14 @@ class Payment {
|
|
|
2694
2826
|
);
|
|
2695
2827
|
|
|
2696
2828
|
if (res_error) {
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2829
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2830
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2831
|
+
} else {
|
|
2832
|
+
Logger({
|
|
2833
|
+
level: "WARN",
|
|
2834
|
+
message: `Response Validation Warnings for platform > Payment > resendPaymentLink \n ${res_error}`,
|
|
2835
|
+
});
|
|
2836
|
+
}
|
|
2701
2837
|
}
|
|
2702
2838
|
|
|
2703
2839
|
return response;
|
|
@@ -2769,10 +2905,14 @@ class Payment {
|
|
|
2769
2905
|
});
|
|
2770
2906
|
|
|
2771
2907
|
if (res_error) {
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2908
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2909
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2910
|
+
} else {
|
|
2911
|
+
Logger({
|
|
2912
|
+
level: "WARN",
|
|
2913
|
+
message: `Response Validation Warnings for platform > Payment > revokeOauthToken \n ${res_error}`,
|
|
2914
|
+
});
|
|
2915
|
+
}
|
|
2776
2916
|
}
|
|
2777
2917
|
|
|
2778
2918
|
return response;
|
|
@@ -2847,10 +2987,14 @@ class Payment {
|
|
|
2847
2987
|
);
|
|
2848
2988
|
|
|
2849
2989
|
if (res_error) {
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2990
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2991
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2992
|
+
} else {
|
|
2993
|
+
Logger({
|
|
2994
|
+
level: "WARN",
|
|
2995
|
+
message: `Response Validation Warnings for platform > Payment > saveBrandPaymentGatewayConfig \n ${res_error}`,
|
|
2996
|
+
});
|
|
2997
|
+
}
|
|
2854
2998
|
}
|
|
2855
2999
|
|
|
2856
3000
|
return response;
|
|
@@ -2924,10 +3068,14 @@ class Payment {
|
|
|
2924
3068
|
});
|
|
2925
3069
|
|
|
2926
3070
|
if (res_error) {
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
3071
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3072
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3073
|
+
} else {
|
|
3074
|
+
Logger({
|
|
3075
|
+
level: "WARN",
|
|
3076
|
+
message: `Response Validation Warnings for platform > Payment > setUserCODlimitRoutes \n ${res_error}`,
|
|
3077
|
+
});
|
|
3078
|
+
}
|
|
2931
3079
|
}
|
|
2932
3080
|
|
|
2933
3081
|
return response;
|
|
@@ -2999,10 +3147,14 @@ class Payment {
|
|
|
2999
3147
|
});
|
|
3000
3148
|
|
|
3001
3149
|
if (res_error) {
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3150
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3151
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3152
|
+
} else {
|
|
3153
|
+
Logger({
|
|
3154
|
+
level: "WARN",
|
|
3155
|
+
message: `Response Validation Warnings for platform > Payment > updateEdcDevice \n ${res_error}`,
|
|
3156
|
+
});
|
|
3157
|
+
}
|
|
3006
3158
|
}
|
|
3007
3159
|
|
|
3008
3160
|
return response;
|
|
@@ -3080,10 +3232,14 @@ class Payment {
|
|
|
3080
3232
|
);
|
|
3081
3233
|
|
|
3082
3234
|
if (res_error) {
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3235
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3236
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3237
|
+
} else {
|
|
3238
|
+
Logger({
|
|
3239
|
+
level: "WARN",
|
|
3240
|
+
message: `Response Validation Warnings for platform > Payment > updateMerchantRefundPriority \n ${res_error}`,
|
|
3241
|
+
});
|
|
3242
|
+
}
|
|
3087
3243
|
}
|
|
3088
3244
|
|
|
3089
3245
|
return response;
|
|
@@ -3161,10 +3317,14 @@ class Payment {
|
|
|
3161
3317
|
);
|
|
3162
3318
|
|
|
3163
3319
|
if (res_error) {
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3320
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3321
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3322
|
+
} else {
|
|
3323
|
+
Logger({
|
|
3324
|
+
level: "WARN",
|
|
3325
|
+
message: `Response Validation Warnings for platform > Payment > updatePaymentSession \n ${res_error}`,
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3168
3328
|
}
|
|
3169
3329
|
|
|
3170
3330
|
return response;
|
|
@@ -3244,10 +3404,14 @@ class Payment {
|
|
|
3244
3404
|
);
|
|
3245
3405
|
|
|
3246
3406
|
if (res_error) {
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3407
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3408
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3409
|
+
} else {
|
|
3410
|
+
Logger({
|
|
3411
|
+
level: "WARN",
|
|
3412
|
+
message: `Response Validation Warnings for platform > Payment > updateRefundSession \n ${res_error}`,
|
|
3413
|
+
});
|
|
3414
|
+
}
|
|
3251
3415
|
}
|
|
3252
3416
|
|
|
3253
3417
|
return response;
|
|
@@ -3322,10 +3486,14 @@ class Payment {
|
|
|
3322
3486
|
});
|
|
3323
3487
|
|
|
3324
3488
|
if (res_error) {
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3489
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3490
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3491
|
+
} else {
|
|
3492
|
+
Logger({
|
|
3493
|
+
level: "WARN",
|
|
3494
|
+
message: `Response Validation Warnings for platform > Payment > verifyCustomerForPayment \n ${res_error}`,
|
|
3495
|
+
});
|
|
3496
|
+
}
|
|
3329
3497
|
}
|
|
3330
3498
|
|
|
3331
3499
|
return response;
|