@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
|
@@ -76,10 +76,14 @@ class Cart {
|
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
if (res_error) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
80
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
81
|
+
} else {
|
|
82
|
+
Logger({
|
|
83
|
+
level: "WARN",
|
|
84
|
+
message: `Response Validation Warnings for platform > Cart > addAddress \n ${res_error}`,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
return response;
|
|
@@ -154,10 +158,14 @@ class Cart {
|
|
|
154
158
|
});
|
|
155
159
|
|
|
156
160
|
if (res_error) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
162
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
163
|
+
} else {
|
|
164
|
+
Logger({
|
|
165
|
+
level: "WARN",
|
|
166
|
+
message: `Response Validation Warnings for platform > Cart > addItems \n ${res_error}`,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
return response;
|
|
@@ -229,10 +237,14 @@ class Cart {
|
|
|
229
237
|
});
|
|
230
238
|
|
|
231
239
|
if (res_error) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
241
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
242
|
+
} else {
|
|
243
|
+
Logger({
|
|
244
|
+
level: "WARN",
|
|
245
|
+
message: `Response Validation Warnings for platform > Cart > addPriceAdjustment \n ${res_error}`,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
236
248
|
}
|
|
237
249
|
|
|
238
250
|
return response;
|
|
@@ -317,10 +329,14 @@ class Cart {
|
|
|
317
329
|
});
|
|
318
330
|
|
|
319
331
|
if (res_error) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
332
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
333
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
334
|
+
} else {
|
|
335
|
+
Logger({
|
|
336
|
+
level: "WARN",
|
|
337
|
+
message: `Response Validation Warnings for platform > Cart > applyCoupon \n ${res_error}`,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
324
340
|
}
|
|
325
341
|
|
|
326
342
|
return response;
|
|
@@ -396,10 +412,14 @@ class Cart {
|
|
|
396
412
|
);
|
|
397
413
|
|
|
398
414
|
if (res_error) {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
415
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
416
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
417
|
+
} else {
|
|
418
|
+
Logger({
|
|
419
|
+
level: "WARN",
|
|
420
|
+
message: `Response Validation Warnings for platform > Cart > checkCartServiceability \n ${res_error}`,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
403
423
|
}
|
|
404
424
|
|
|
405
425
|
return response;
|
|
@@ -469,10 +489,14 @@ class Cart {
|
|
|
469
489
|
});
|
|
470
490
|
|
|
471
491
|
if (res_error) {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
492
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
493
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
494
|
+
} else {
|
|
495
|
+
Logger({
|
|
496
|
+
level: "WARN",
|
|
497
|
+
message: `Response Validation Warnings for platform > Cart > checkoutCart \n ${res_error}`,
|
|
498
|
+
});
|
|
499
|
+
}
|
|
476
500
|
}
|
|
477
501
|
|
|
478
502
|
return response;
|
|
@@ -546,10 +570,14 @@ class Cart {
|
|
|
546
570
|
});
|
|
547
571
|
|
|
548
572
|
if (res_error) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
573
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
574
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
575
|
+
} else {
|
|
576
|
+
Logger({
|
|
577
|
+
level: "WARN",
|
|
578
|
+
message: `Response Validation Warnings for platform > Cart > createCartMetaConfig \n ${res_error}`,
|
|
579
|
+
});
|
|
580
|
+
}
|
|
553
581
|
}
|
|
554
582
|
|
|
555
583
|
return response;
|
|
@@ -619,10 +647,14 @@ class Cart {
|
|
|
619
647
|
});
|
|
620
648
|
|
|
621
649
|
if (res_error) {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
650
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
651
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
652
|
+
} else {
|
|
653
|
+
Logger({
|
|
654
|
+
level: "WARN",
|
|
655
|
+
message: `Response Validation Warnings for platform > Cart > createCoupon \n ${res_error}`,
|
|
656
|
+
});
|
|
657
|
+
}
|
|
626
658
|
}
|
|
627
659
|
|
|
628
660
|
return response;
|
|
@@ -694,10 +726,14 @@ class Cart {
|
|
|
694
726
|
});
|
|
695
727
|
|
|
696
728
|
if (res_error) {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
729
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
730
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
731
|
+
} else {
|
|
732
|
+
Logger({
|
|
733
|
+
level: "WARN",
|
|
734
|
+
message: `Response Validation Warnings for platform > Cart > createPromotion \n ${res_error}`,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
701
737
|
}
|
|
702
738
|
|
|
703
739
|
return response;
|
|
@@ -770,10 +806,14 @@ class Cart {
|
|
|
770
806
|
});
|
|
771
807
|
|
|
772
808
|
if (res_error) {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
809
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
810
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
811
|
+
} else {
|
|
812
|
+
Logger({
|
|
813
|
+
level: "WARN",
|
|
814
|
+
message: `Response Validation Warnings for platform > Cart > deleteCart \n ${res_error}`,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
777
817
|
}
|
|
778
818
|
|
|
779
819
|
return response;
|
|
@@ -847,10 +887,14 @@ class Cart {
|
|
|
847
887
|
});
|
|
848
888
|
|
|
849
889
|
if (res_error) {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
890
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
891
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
892
|
+
} else {
|
|
893
|
+
Logger({
|
|
894
|
+
level: "WARN",
|
|
895
|
+
message: `Response Validation Warnings for platform > Cart > fetchAndvalidateCartItems \n ${res_error}`,
|
|
896
|
+
});
|
|
897
|
+
}
|
|
854
898
|
}
|
|
855
899
|
|
|
856
900
|
return response;
|
|
@@ -918,10 +962,14 @@ class Cart {
|
|
|
918
962
|
});
|
|
919
963
|
|
|
920
964
|
if (res_error) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
965
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
966
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
967
|
+
} else {
|
|
968
|
+
Logger({
|
|
969
|
+
level: "WARN",
|
|
970
|
+
message: `Response Validation Warnings for platform > Cart > fetchCartMetaConfig \n ${res_error}`,
|
|
971
|
+
});
|
|
972
|
+
}
|
|
925
973
|
}
|
|
926
974
|
|
|
927
975
|
return response;
|
|
@@ -1021,10 +1069,14 @@ class Cart {
|
|
|
1021
1069
|
});
|
|
1022
1070
|
|
|
1023
1071
|
if (res_error) {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1072
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1073
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1074
|
+
} else {
|
|
1075
|
+
Logger({
|
|
1076
|
+
level: "WARN",
|
|
1077
|
+
message: `Response Validation Warnings for platform > Cart > getAbandonedCart \n ${res_error}`,
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1028
1080
|
}
|
|
1029
1081
|
|
|
1030
1082
|
return response;
|
|
@@ -1155,10 +1207,14 @@ class Cart {
|
|
|
1155
1207
|
});
|
|
1156
1208
|
|
|
1157
1209
|
if (res_error) {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1210
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1211
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1212
|
+
} else {
|
|
1213
|
+
Logger({
|
|
1214
|
+
level: "WARN",
|
|
1215
|
+
message: `Response Validation Warnings for platform > Cart > getAbandonedCartDetails \n ${res_error}`,
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1162
1218
|
}
|
|
1163
1219
|
|
|
1164
1220
|
return response;
|
|
@@ -1261,10 +1317,14 @@ class Cart {
|
|
|
1261
1317
|
});
|
|
1262
1318
|
|
|
1263
1319
|
if (res_error) {
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1320
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1321
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1322
|
+
} else {
|
|
1323
|
+
Logger({
|
|
1324
|
+
level: "WARN",
|
|
1325
|
+
message: `Response Validation Warnings for platform > Cart > getAddressById \n ${res_error}`,
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1268
1328
|
}
|
|
1269
1329
|
|
|
1270
1330
|
return response;
|
|
@@ -1363,10 +1423,14 @@ class Cart {
|
|
|
1363
1423
|
);
|
|
1364
1424
|
|
|
1365
1425
|
if (res_error) {
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1426
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1427
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1428
|
+
} else {
|
|
1429
|
+
Logger({
|
|
1430
|
+
level: "WARN",
|
|
1431
|
+
message: `Response Validation Warnings for platform > Cart > getAddresses \n ${res_error}`,
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1370
1434
|
}
|
|
1371
1435
|
|
|
1372
1436
|
return response;
|
|
@@ -1440,10 +1504,14 @@ class Cart {
|
|
|
1440
1504
|
});
|
|
1441
1505
|
|
|
1442
1506
|
if (res_error) {
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1507
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1508
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1509
|
+
} else {
|
|
1510
|
+
Logger({
|
|
1511
|
+
level: "WARN",
|
|
1512
|
+
message: `Response Validation Warnings for platform > Cart > getAppCoupons \n ${res_error}`,
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1447
1515
|
}
|
|
1448
1516
|
|
|
1449
1517
|
return response;
|
|
@@ -1521,10 +1589,14 @@ class Cart {
|
|
|
1521
1589
|
});
|
|
1522
1590
|
|
|
1523
1591
|
if (res_error) {
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1592
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1593
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1594
|
+
} else {
|
|
1595
|
+
Logger({
|
|
1596
|
+
level: "WARN",
|
|
1597
|
+
message: `Response Validation Warnings for platform > Cart > getAvailableDeliveryModes \n ${res_error}`,
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1528
1600
|
}
|
|
1529
1601
|
|
|
1530
1602
|
return response;
|
|
@@ -1612,10 +1684,14 @@ class Cart {
|
|
|
1612
1684
|
});
|
|
1613
1685
|
|
|
1614
1686
|
if (res_error) {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
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 > Cart > getCart \n ${res_error}`,
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1619
1695
|
}
|
|
1620
1696
|
|
|
1621
1697
|
return response;
|
|
@@ -1692,10 +1768,14 @@ class Cart {
|
|
|
1692
1768
|
});
|
|
1693
1769
|
|
|
1694
1770
|
if (res_error) {
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1771
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1772
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1773
|
+
} else {
|
|
1774
|
+
Logger({
|
|
1775
|
+
level: "WARN",
|
|
1776
|
+
message: `Response Validation Warnings for platform > Cart > getCartList \n ${res_error}`,
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1699
1779
|
}
|
|
1700
1780
|
|
|
1701
1781
|
return response;
|
|
@@ -1767,10 +1847,14 @@ class Cart {
|
|
|
1767
1847
|
});
|
|
1768
1848
|
|
|
1769
1849
|
if (res_error) {
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1850
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1851
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1852
|
+
} else {
|
|
1853
|
+
Logger({
|
|
1854
|
+
level: "WARN",
|
|
1855
|
+
message: `Response Validation Warnings for platform > Cart > getCartShareLink \n ${res_error}`,
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1774
1858
|
}
|
|
1775
1859
|
|
|
1776
1860
|
return response;
|
|
@@ -1842,10 +1926,14 @@ class Cart {
|
|
|
1842
1926
|
});
|
|
1843
1927
|
|
|
1844
1928
|
if (res_error) {
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1929
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1930
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1931
|
+
} else {
|
|
1932
|
+
Logger({
|
|
1933
|
+
level: "WARN",
|
|
1934
|
+
message: `Response Validation Warnings for platform > Cart > getCartSharedItems \n ${res_error}`,
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1849
1937
|
}
|
|
1850
1938
|
|
|
1851
1939
|
return response;
|
|
@@ -1915,10 +2003,14 @@ class Cart {
|
|
|
1915
2003
|
});
|
|
1916
2004
|
|
|
1917
2005
|
if (res_error) {
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
2006
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2007
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2008
|
+
} else {
|
|
2009
|
+
Logger({
|
|
2010
|
+
level: "WARN",
|
|
2011
|
+
message: `Response Validation Warnings for platform > Cart > getCouponById \n ${res_error}`,
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
1922
2014
|
}
|
|
1923
2015
|
|
|
1924
2016
|
return response;
|
|
@@ -1989,10 +2081,14 @@ class Cart {
|
|
|
1989
2081
|
});
|
|
1990
2082
|
|
|
1991
2083
|
if (res_error) {
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2084
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2085
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2086
|
+
} else {
|
|
2087
|
+
Logger({
|
|
2088
|
+
level: "WARN",
|
|
2089
|
+
message: `Response Validation Warnings for platform > Cart > getCouponCodeExists \n ${res_error}`,
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
1996
2092
|
}
|
|
1997
2093
|
|
|
1998
2094
|
return response;
|
|
@@ -2060,10 +2156,14 @@ class Cart {
|
|
|
2060
2156
|
});
|
|
2061
2157
|
|
|
2062
2158
|
if (res_error) {
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2159
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2160
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2161
|
+
} else {
|
|
2162
|
+
Logger({
|
|
2163
|
+
level: "WARN",
|
|
2164
|
+
message: `Response Validation Warnings for platform > Cart > getCouponOptionValues \n ${res_error}`,
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2067
2167
|
}
|
|
2068
2168
|
|
|
2069
2169
|
return response;
|
|
@@ -2165,10 +2265,14 @@ class Cart {
|
|
|
2165
2265
|
});
|
|
2166
2266
|
|
|
2167
2267
|
if (res_error) {
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2268
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2269
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2270
|
+
} else {
|
|
2271
|
+
Logger({
|
|
2272
|
+
level: "WARN",
|
|
2273
|
+
message: `Response Validation Warnings for platform > Cart > getCoupons \n ${res_error}`,
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2172
2276
|
}
|
|
2173
2277
|
|
|
2174
2278
|
return response;
|
|
@@ -2295,10 +2399,14 @@ class Cart {
|
|
|
2295
2399
|
});
|
|
2296
2400
|
|
|
2297
2401
|
if (res_error) {
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2402
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2403
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2404
|
+
} else {
|
|
2405
|
+
Logger({
|
|
2406
|
+
level: "WARN",
|
|
2407
|
+
message: `Response Validation Warnings for platform > Cart > getItemCount \n ${res_error}`,
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2302
2410
|
}
|
|
2303
2411
|
|
|
2304
2412
|
return response;
|
|
@@ -2376,10 +2484,14 @@ class Cart {
|
|
|
2376
2484
|
});
|
|
2377
2485
|
|
|
2378
2486
|
if (res_error) {
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2487
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2488
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2489
|
+
} else {
|
|
2490
|
+
Logger({
|
|
2491
|
+
level: "WARN",
|
|
2492
|
+
message: `Response Validation Warnings for platform > Cart > getPromosCouponConfig \n ${res_error}`,
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2383
2495
|
}
|
|
2384
2496
|
|
|
2385
2497
|
return response;
|
|
@@ -2451,10 +2563,14 @@ class Cart {
|
|
|
2451
2563
|
});
|
|
2452
2564
|
|
|
2453
2565
|
if (res_error) {
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2566
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2567
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2568
|
+
} else {
|
|
2569
|
+
Logger({
|
|
2570
|
+
level: "WARN",
|
|
2571
|
+
message: `Response Validation Warnings for platform > Cart > getPromotionById \n ${res_error}`,
|
|
2572
|
+
});
|
|
2573
|
+
}
|
|
2458
2574
|
}
|
|
2459
2575
|
|
|
2460
2576
|
return response;
|
|
@@ -2527,10 +2643,14 @@ class Cart {
|
|
|
2527
2643
|
});
|
|
2528
2644
|
|
|
2529
2645
|
if (res_error) {
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2646
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2647
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2648
|
+
} else {
|
|
2649
|
+
Logger({
|
|
2650
|
+
level: "WARN",
|
|
2651
|
+
message: `Response Validation Warnings for platform > Cart > getPromotionCodeExists \n ${res_error}`,
|
|
2652
|
+
});
|
|
2653
|
+
}
|
|
2534
2654
|
}
|
|
2535
2655
|
|
|
2536
2656
|
return response;
|
|
@@ -2632,10 +2752,14 @@ class Cart {
|
|
|
2632
2752
|
});
|
|
2633
2753
|
|
|
2634
2754
|
if (res_error) {
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2755
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2756
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2757
|
+
} else {
|
|
2758
|
+
Logger({
|
|
2759
|
+
level: "WARN",
|
|
2760
|
+
message: `Response Validation Warnings for platform > Cart > getPromotions \n ${res_error}`,
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2639
2763
|
}
|
|
2640
2764
|
|
|
2641
2765
|
return response;
|
|
@@ -2791,10 +2915,14 @@ class Cart {
|
|
|
2791
2915
|
);
|
|
2792
2916
|
|
|
2793
2917
|
if (res_error) {
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2918
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2919
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2920
|
+
} else {
|
|
2921
|
+
Logger({
|
|
2922
|
+
level: "WARN",
|
|
2923
|
+
message: `Response Validation Warnings for platform > Cart > getShipments \n ${res_error}`,
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2798
2926
|
}
|
|
2799
2927
|
|
|
2800
2928
|
return response;
|
|
@@ -2869,10 +2997,14 @@ class Cart {
|
|
|
2869
2997
|
});
|
|
2870
2998
|
|
|
2871
2999
|
if (res_error) {
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
3000
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3001
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3002
|
+
} else {
|
|
3003
|
+
Logger({
|
|
3004
|
+
level: "WARN",
|
|
3005
|
+
message: `Response Validation Warnings for platform > Cart > getStoreAddressByUid \n ${res_error}`,
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
2876
3008
|
}
|
|
2877
3009
|
|
|
2878
3010
|
return response;
|
|
@@ -2942,10 +3074,14 @@ class Cart {
|
|
|
2942
3074
|
});
|
|
2943
3075
|
|
|
2944
3076
|
if (res_error) {
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
3077
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3078
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3079
|
+
} else {
|
|
3080
|
+
Logger({
|
|
3081
|
+
level: "WARN",
|
|
3082
|
+
message: `Response Validation Warnings for platform > Cart > overrideCart \n ${res_error}`,
|
|
3083
|
+
});
|
|
3084
|
+
}
|
|
2949
3085
|
}
|
|
2950
3086
|
|
|
2951
3087
|
return response;
|
|
@@ -3029,10 +3165,14 @@ class Cart {
|
|
|
3029
3165
|
});
|
|
3030
3166
|
|
|
3031
3167
|
if (res_error) {
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3168
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3169
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3170
|
+
} else {
|
|
3171
|
+
Logger({
|
|
3172
|
+
level: "WARN",
|
|
3173
|
+
message: `Response Validation Warnings for platform > Cart > platformAddItems \n ${res_error}`,
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3036
3176
|
}
|
|
3037
3177
|
|
|
3038
3178
|
return response;
|
|
@@ -3109,10 +3249,14 @@ class Cart {
|
|
|
3109
3249
|
});
|
|
3110
3250
|
|
|
3111
3251
|
if (res_error) {
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3252
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3253
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3254
|
+
} else {
|
|
3255
|
+
Logger({
|
|
3256
|
+
level: "WARN",
|
|
3257
|
+
message: `Response Validation Warnings for platform > Cart > platformCheckoutCart \n ${res_error}`,
|
|
3258
|
+
});
|
|
3259
|
+
}
|
|
3116
3260
|
}
|
|
3117
3261
|
|
|
3118
3262
|
return response;
|
|
@@ -3189,10 +3333,14 @@ class Cart {
|
|
|
3189
3333
|
});
|
|
3190
3334
|
|
|
3191
3335
|
if (res_error) {
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3336
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3337
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3338
|
+
} else {
|
|
3339
|
+
Logger({
|
|
3340
|
+
level: "WARN",
|
|
3341
|
+
message: `Response Validation Warnings for platform > Cart > platformCheckoutCartV2 \n ${res_error}`,
|
|
3342
|
+
});
|
|
3343
|
+
}
|
|
3196
3344
|
}
|
|
3197
3345
|
|
|
3198
3346
|
return response;
|
|
@@ -3276,10 +3424,14 @@ class Cart {
|
|
|
3276
3424
|
});
|
|
3277
3425
|
|
|
3278
3426
|
if (res_error) {
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3427
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3428
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3429
|
+
} else {
|
|
3430
|
+
Logger({
|
|
3431
|
+
level: "WARN",
|
|
3432
|
+
message: `Response Validation Warnings for platform > Cart > platformUpdateCart \n ${res_error}`,
|
|
3433
|
+
});
|
|
3434
|
+
}
|
|
3283
3435
|
}
|
|
3284
3436
|
|
|
3285
3437
|
return response;
|
|
@@ -3352,10 +3504,14 @@ class Cart {
|
|
|
3352
3504
|
});
|
|
3353
3505
|
|
|
3354
3506
|
if (res_error) {
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3507
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3508
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3509
|
+
} else {
|
|
3510
|
+
Logger({
|
|
3511
|
+
level: "WARN",
|
|
3512
|
+
message: `Response Validation Warnings for platform > Cart > removeAddress \n ${res_error}`,
|
|
3513
|
+
});
|
|
3514
|
+
}
|
|
3359
3515
|
}
|
|
3360
3516
|
|
|
3361
3517
|
return response;
|
|
@@ -3429,10 +3585,14 @@ class Cart {
|
|
|
3429
3585
|
});
|
|
3430
3586
|
|
|
3431
3587
|
if (res_error) {
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3588
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3589
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3590
|
+
} else {
|
|
3591
|
+
Logger({
|
|
3592
|
+
level: "WARN",
|
|
3593
|
+
message: `Response Validation Warnings for platform > Cart > removeCoupon \n ${res_error}`,
|
|
3594
|
+
});
|
|
3595
|
+
}
|
|
3436
3596
|
}
|
|
3437
3597
|
|
|
3438
3598
|
return response;
|
|
@@ -3506,10 +3666,14 @@ class Cart {
|
|
|
3506
3666
|
});
|
|
3507
3667
|
|
|
3508
3668
|
if (res_error) {
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3669
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3670
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3671
|
+
} else {
|
|
3672
|
+
Logger({
|
|
3673
|
+
level: "WARN",
|
|
3674
|
+
message: `Response Validation Warnings for platform > Cart > removePriceAdjustment \n ${res_error}`,
|
|
3675
|
+
});
|
|
3676
|
+
}
|
|
3513
3677
|
}
|
|
3514
3678
|
|
|
3515
3679
|
return response;
|
|
@@ -3591,10 +3755,14 @@ class Cart {
|
|
|
3591
3755
|
});
|
|
3592
3756
|
|
|
3593
3757
|
if (res_error) {
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3758
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3759
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3760
|
+
} else {
|
|
3761
|
+
Logger({
|
|
3762
|
+
level: "WARN",
|
|
3763
|
+
message: `Response Validation Warnings for platform > Cart > selectAddress \n ${res_error}`,
|
|
3764
|
+
});
|
|
3765
|
+
}
|
|
3598
3766
|
}
|
|
3599
3767
|
|
|
3600
3768
|
return response;
|
|
@@ -3675,10 +3843,14 @@ class Cart {
|
|
|
3675
3843
|
});
|
|
3676
3844
|
|
|
3677
3845
|
if (res_error) {
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3846
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3847
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3848
|
+
} else {
|
|
3849
|
+
Logger({
|
|
3850
|
+
level: "WARN",
|
|
3851
|
+
message: `Response Validation Warnings for platform > Cart > selectPaymentMode \n ${res_error}`,
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3682
3854
|
}
|
|
3683
3855
|
|
|
3684
3856
|
return response;
|
|
@@ -3759,10 +3931,14 @@ class Cart {
|
|
|
3759
3931
|
});
|
|
3760
3932
|
|
|
3761
3933
|
if (res_error) {
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3934
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3935
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3936
|
+
} else {
|
|
3937
|
+
Logger({
|
|
3938
|
+
level: "WARN",
|
|
3939
|
+
message: `Response Validation Warnings for platform > Cart > selectPaymentModeV2 \n ${res_error}`,
|
|
3940
|
+
});
|
|
3941
|
+
}
|
|
3766
3942
|
}
|
|
3767
3943
|
|
|
3768
3944
|
return response;
|
|
@@ -3834,10 +4010,14 @@ class Cart {
|
|
|
3834
4010
|
});
|
|
3835
4011
|
|
|
3836
4012
|
if (res_error) {
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
4013
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4014
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4015
|
+
} else {
|
|
4016
|
+
Logger({
|
|
4017
|
+
level: "WARN",
|
|
4018
|
+
message: `Response Validation Warnings for platform > Cart > updateAddress \n ${res_error}`,
|
|
4019
|
+
});
|
|
4020
|
+
}
|
|
3841
4021
|
}
|
|
3842
4022
|
|
|
3843
4023
|
return response;
|
|
@@ -3912,10 +4092,14 @@ class Cart {
|
|
|
3912
4092
|
});
|
|
3913
4093
|
|
|
3914
4094
|
if (res_error) {
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
4095
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4096
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4097
|
+
} else {
|
|
4098
|
+
Logger({
|
|
4099
|
+
level: "WARN",
|
|
4100
|
+
message: `Response Validation Warnings for platform > Cart > updateCart \n ${res_error}`,
|
|
4101
|
+
});
|
|
4102
|
+
}
|
|
3919
4103
|
}
|
|
3920
4104
|
|
|
3921
4105
|
return response;
|
|
@@ -3993,10 +4177,14 @@ class Cart {
|
|
|
3993
4177
|
});
|
|
3994
4178
|
|
|
3995
4179
|
if (res_error) {
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4180
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4181
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4182
|
+
} else {
|
|
4183
|
+
Logger({
|
|
4184
|
+
level: "WARN",
|
|
4185
|
+
message: `Response Validation Warnings for platform > Cart > updateCartMeta \n ${res_error}`,
|
|
4186
|
+
});
|
|
4187
|
+
}
|
|
4000
4188
|
}
|
|
4001
4189
|
|
|
4002
4190
|
return response;
|
|
@@ -4072,10 +4260,14 @@ class Cart {
|
|
|
4072
4260
|
});
|
|
4073
4261
|
|
|
4074
4262
|
if (res_error) {
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4263
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4264
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4265
|
+
} else {
|
|
4266
|
+
Logger({
|
|
4267
|
+
level: "WARN",
|
|
4268
|
+
message: `Response Validation Warnings for platform > Cart > updateCartMetaConfig \n ${res_error}`,
|
|
4269
|
+
});
|
|
4270
|
+
}
|
|
4079
4271
|
}
|
|
4080
4272
|
|
|
4081
4273
|
return response;
|
|
@@ -4150,10 +4342,14 @@ class Cart {
|
|
|
4150
4342
|
});
|
|
4151
4343
|
|
|
4152
4344
|
if (res_error) {
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4345
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4346
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4347
|
+
} else {
|
|
4348
|
+
Logger({
|
|
4349
|
+
level: "WARN",
|
|
4350
|
+
message: `Response Validation Warnings for platform > Cart > updateCartUser \n ${res_error}`,
|
|
4351
|
+
});
|
|
4352
|
+
}
|
|
4157
4353
|
}
|
|
4158
4354
|
|
|
4159
4355
|
return response;
|
|
@@ -4232,10 +4428,14 @@ class Cart {
|
|
|
4232
4428
|
});
|
|
4233
4429
|
|
|
4234
4430
|
if (res_error) {
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4431
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4432
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4433
|
+
} else {
|
|
4434
|
+
Logger({
|
|
4435
|
+
level: "WARN",
|
|
4436
|
+
message: `Response Validation Warnings for platform > Cart > updateCartWithSharedItems \n ${res_error}`,
|
|
4437
|
+
});
|
|
4438
|
+
}
|
|
4239
4439
|
}
|
|
4240
4440
|
|
|
4241
4441
|
return response;
|
|
@@ -4307,10 +4507,14 @@ class Cart {
|
|
|
4307
4507
|
});
|
|
4308
4508
|
|
|
4309
4509
|
if (res_error) {
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4510
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4511
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4512
|
+
} else {
|
|
4513
|
+
Logger({
|
|
4514
|
+
level: "WARN",
|
|
4515
|
+
message: `Response Validation Warnings for platform > Cart > updateCoupon \n ${res_error}`,
|
|
4516
|
+
});
|
|
4517
|
+
}
|
|
4314
4518
|
}
|
|
4315
4519
|
|
|
4316
4520
|
return response;
|
|
@@ -4386,10 +4590,14 @@ class Cart {
|
|
|
4386
4590
|
});
|
|
4387
4591
|
|
|
4388
4592
|
if (res_error) {
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4593
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4594
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4595
|
+
} else {
|
|
4596
|
+
Logger({
|
|
4597
|
+
level: "WARN",
|
|
4598
|
+
message: `Response Validation Warnings for platform > Cart > updateCouponPartially \n ${res_error}`,
|
|
4599
|
+
});
|
|
4600
|
+
}
|
|
4393
4601
|
}
|
|
4394
4602
|
|
|
4395
4603
|
return response;
|
|
@@ -4465,10 +4673,14 @@ class Cart {
|
|
|
4465
4673
|
});
|
|
4466
4674
|
|
|
4467
4675
|
if (res_error) {
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4676
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4677
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4678
|
+
} else {
|
|
4679
|
+
Logger({
|
|
4680
|
+
level: "WARN",
|
|
4681
|
+
message: `Response Validation Warnings for platform > Cart > updatePriceAdjustment \n ${res_error}`,
|
|
4682
|
+
});
|
|
4683
|
+
}
|
|
4472
4684
|
}
|
|
4473
4685
|
|
|
4474
4686
|
return response;
|
|
@@ -4542,10 +4754,14 @@ class Cart {
|
|
|
4542
4754
|
});
|
|
4543
4755
|
|
|
4544
4756
|
if (res_error) {
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4757
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4758
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4759
|
+
} else {
|
|
4760
|
+
Logger({
|
|
4761
|
+
level: "WARN",
|
|
4762
|
+
message: `Response Validation Warnings for platform > Cart > updatePromotion \n ${res_error}`,
|
|
4763
|
+
});
|
|
4764
|
+
}
|
|
4549
4765
|
}
|
|
4550
4766
|
|
|
4551
4767
|
return response;
|
|
@@ -4621,10 +4837,14 @@ class Cart {
|
|
|
4621
4837
|
});
|
|
4622
4838
|
|
|
4623
4839
|
if (res_error) {
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4840
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4841
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4842
|
+
} else {
|
|
4843
|
+
Logger({
|
|
4844
|
+
level: "WARN",
|
|
4845
|
+
message: `Response Validation Warnings for platform > Cart > updatePromotionPartially \n ${res_error}`,
|
|
4846
|
+
});
|
|
4847
|
+
}
|
|
4628
4848
|
}
|
|
4629
4849
|
|
|
4630
4850
|
return response;
|
|
@@ -4717,10 +4937,14 @@ class Cart {
|
|
|
4717
4937
|
);
|
|
4718
4938
|
|
|
4719
4939
|
if (res_error) {
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4940
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4941
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4942
|
+
} else {
|
|
4943
|
+
Logger({
|
|
4944
|
+
level: "WARN",
|
|
4945
|
+
message: `Response Validation Warnings for platform > Cart > updateShipments \n ${res_error}`,
|
|
4946
|
+
});
|
|
4947
|
+
}
|
|
4724
4948
|
}
|
|
4725
4949
|
|
|
4726
4950
|
return response;
|
|
@@ -4822,10 +5046,14 @@ class Cart {
|
|
|
4822
5046
|
});
|
|
4823
5047
|
|
|
4824
5048
|
if (res_error) {
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
5049
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5050
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5051
|
+
} else {
|
|
5052
|
+
Logger({
|
|
5053
|
+
level: "WARN",
|
|
5054
|
+
message: `Response Validation Warnings for platform > Cart > validateCouponForPayment \n ${res_error}`,
|
|
5055
|
+
});
|
|
5056
|
+
}
|
|
4829
5057
|
}
|
|
4830
5058
|
|
|
4831
5059
|
return response;
|