@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.15-beta.8
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 +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -252
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -16
- package/sdk/application/Catalog/CatalogApplicationClient.js +90 -339
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +11 -134
- package/sdk/application/Content/ContentApplicationClient.d.ts +8 -8
- package/sdk/application/Content/ContentApplicationClient.js +44 -206
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +5 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -30
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +5 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +32 -128
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +63 -142
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.js +6 -418
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformClient.js +99 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +0 -118
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -53
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +0 -29
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +10 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +58 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
- package/sdk/public/Content/ContentPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
class Payment {
|
|
11
12
|
constructor(_conf) {
|
|
@@ -117,14 +118,6 @@ class Payment {
|
|
|
117
118
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
118
119
|
{ responseHeaders } = { responseHeaders: false }
|
|
119
120
|
) {
|
|
120
|
-
let invalidInput = [];
|
|
121
|
-
if (invalidInput.length) {
|
|
122
|
-
const error = new Error();
|
|
123
|
-
error.message = "Missing required field";
|
|
124
|
-
error.details = invalidInput;
|
|
125
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
121
|
const query_params = {};
|
|
129
122
|
|
|
130
123
|
const xHeaders = {};
|
|
@@ -162,14 +155,6 @@ class Payment {
|
|
|
162
155
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
163
156
|
{ responseHeaders } = { responseHeaders: false }
|
|
164
157
|
) {
|
|
165
|
-
let invalidInput = [];
|
|
166
|
-
if (invalidInput.length) {
|
|
167
|
-
const error = new Error();
|
|
168
|
-
error.message = "Missing required field";
|
|
169
|
-
error.details = invalidInput;
|
|
170
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
158
|
const query_params = {};
|
|
174
159
|
|
|
175
160
|
const xHeaders = {};
|
|
@@ -207,14 +192,6 @@ class Payment {
|
|
|
207
192
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
208
193
|
{ responseHeaders } = { responseHeaders: false }
|
|
209
194
|
) {
|
|
210
|
-
let invalidInput = [];
|
|
211
|
-
if (invalidInput.length) {
|
|
212
|
-
const error = new Error();
|
|
213
|
-
error.message = "Missing required field";
|
|
214
|
-
error.details = invalidInput;
|
|
215
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
216
|
-
}
|
|
217
|
-
|
|
218
195
|
const query_params = {};
|
|
219
196
|
|
|
220
197
|
const xHeaders = {};
|
|
@@ -252,14 +229,6 @@ class Payment {
|
|
|
252
229
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
253
230
|
{ responseHeaders } = { responseHeaders: false }
|
|
254
231
|
) {
|
|
255
|
-
let invalidInput = [];
|
|
256
|
-
if (invalidInput.length) {
|
|
257
|
-
const error = new Error();
|
|
258
|
-
error.message = "Missing required field";
|
|
259
|
-
error.details = invalidInput;
|
|
260
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
261
|
-
}
|
|
262
|
-
|
|
263
232
|
const query_params = {};
|
|
264
233
|
|
|
265
234
|
const xHeaders = {};
|
|
@@ -297,18 +266,12 @@ class Payment {
|
|
|
297
266
|
{ cardInfo, aggregator, requestHeaders } = { requestHeaders: {} },
|
|
298
267
|
{ responseHeaders } = { responseHeaders: false }
|
|
299
268
|
) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
path: ["cardInfo"],
|
|
269
|
+
const errors = validateRequiredParams(arguments[0], ["cardInfo"]);
|
|
270
|
+
if (errors.length > 0) {
|
|
271
|
+
const error = new FDKClientValidationError({
|
|
272
|
+
message: "Missing required field",
|
|
273
|
+
details: errors,
|
|
306
274
|
});
|
|
307
|
-
}
|
|
308
|
-
if (invalidInput.length) {
|
|
309
|
-
const error = new Error();
|
|
310
|
-
error.message = "Missing required field";
|
|
311
|
-
error.details = invalidInput;
|
|
312
275
|
return Promise.reject(new FDKClientValidationError(error));
|
|
313
276
|
}
|
|
314
277
|
|
|
@@ -350,14 +313,6 @@ class Payment {
|
|
|
350
313
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
351
314
|
{ responseHeaders } = { responseHeaders: false }
|
|
352
315
|
) {
|
|
353
|
-
let invalidInput = [];
|
|
354
|
-
if (invalidInput.length) {
|
|
355
|
-
const error = new Error();
|
|
356
|
-
error.message = "Missing required field";
|
|
357
|
-
error.details = invalidInput;
|
|
358
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
359
|
-
}
|
|
360
|
-
|
|
361
316
|
const query_params = {};
|
|
362
317
|
|
|
363
318
|
const xHeaders = {};
|
|
@@ -395,14 +350,6 @@ class Payment {
|
|
|
395
350
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
396
351
|
{ responseHeaders } = { responseHeaders: false }
|
|
397
352
|
) {
|
|
398
|
-
let invalidInput = [];
|
|
399
|
-
if (invalidInput.length) {
|
|
400
|
-
const error = new Error();
|
|
401
|
-
error.message = "Missing required field";
|
|
402
|
-
error.details = invalidInput;
|
|
403
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
404
|
-
}
|
|
405
|
-
|
|
406
353
|
const query_params = {};
|
|
407
354
|
|
|
408
355
|
const xHeaders = {};
|
|
@@ -440,14 +387,6 @@ class Payment {
|
|
|
440
387
|
{ aggregator, requestHeaders } = { requestHeaders: {} },
|
|
441
388
|
{ responseHeaders } = { responseHeaders: false }
|
|
442
389
|
) {
|
|
443
|
-
let invalidInput = [];
|
|
444
|
-
if (invalidInput.length) {
|
|
445
|
-
const error = new Error();
|
|
446
|
-
error.message = "Missing required field";
|
|
447
|
-
error.details = invalidInput;
|
|
448
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
449
|
-
}
|
|
450
|
-
|
|
451
390
|
const query_params = {};
|
|
452
391
|
query_params["aggregator"] = aggregator;
|
|
453
392
|
|
|
@@ -486,14 +425,6 @@ class Payment {
|
|
|
486
425
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
487
426
|
{ responseHeaders } = { responseHeaders: false }
|
|
488
427
|
) {
|
|
489
|
-
let invalidInput = [];
|
|
490
|
-
if (invalidInput.length) {
|
|
491
|
-
const error = new Error();
|
|
492
|
-
error.message = "Missing required field";
|
|
493
|
-
error.details = invalidInput;
|
|
494
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
495
|
-
}
|
|
496
|
-
|
|
497
428
|
const query_params = {};
|
|
498
429
|
|
|
499
430
|
const xHeaders = {};
|
|
@@ -531,14 +462,6 @@ class Payment {
|
|
|
531
462
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
532
463
|
{ responseHeaders } = { responseHeaders: false }
|
|
533
464
|
) {
|
|
534
|
-
let invalidInput = [];
|
|
535
|
-
if (invalidInput.length) {
|
|
536
|
-
const error = new Error();
|
|
537
|
-
error.message = "Missing required field";
|
|
538
|
-
error.details = invalidInput;
|
|
539
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
540
|
-
}
|
|
541
|
-
|
|
542
465
|
const query_params = {};
|
|
543
466
|
|
|
544
467
|
const xHeaders = {};
|
|
@@ -576,14 +499,6 @@ class Payment {
|
|
|
576
499
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
577
500
|
{ responseHeaders } = { responseHeaders: false }
|
|
578
501
|
) {
|
|
579
|
-
let invalidInput = [];
|
|
580
|
-
if (invalidInput.length) {
|
|
581
|
-
const error = new Error();
|
|
582
|
-
error.message = "Missing required field";
|
|
583
|
-
error.details = invalidInput;
|
|
584
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
585
|
-
}
|
|
586
|
-
|
|
587
502
|
const query_params = {};
|
|
588
503
|
|
|
589
504
|
const xHeaders = {};
|
|
@@ -621,14 +536,6 @@ class Payment {
|
|
|
621
536
|
{ aggregator, requestHeaders } = { requestHeaders: {} },
|
|
622
537
|
{ responseHeaders } = { responseHeaders: false }
|
|
623
538
|
) {
|
|
624
|
-
let invalidInput = [];
|
|
625
|
-
if (invalidInput.length) {
|
|
626
|
-
const error = new Error();
|
|
627
|
-
error.message = "Missing required field";
|
|
628
|
-
error.details = invalidInput;
|
|
629
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
630
|
-
}
|
|
631
|
-
|
|
632
539
|
const query_params = {};
|
|
633
540
|
query_params["aggregator"] = aggregator;
|
|
634
541
|
|
|
@@ -667,14 +574,6 @@ class Payment {
|
|
|
667
574
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
668
575
|
{ responseHeaders } = { responseHeaders: false }
|
|
669
576
|
) {
|
|
670
|
-
let invalidInput = [];
|
|
671
|
-
if (invalidInput.length) {
|
|
672
|
-
const error = new Error();
|
|
673
|
-
error.message = "Missing required field";
|
|
674
|
-
error.details = invalidInput;
|
|
675
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
676
|
-
}
|
|
677
|
-
|
|
678
577
|
const query_params = {};
|
|
679
578
|
|
|
680
579
|
const xHeaders = {};
|
|
@@ -712,14 +611,6 @@ class Payment {
|
|
|
712
611
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
713
612
|
{ responseHeaders } = { responseHeaders: false }
|
|
714
613
|
) {
|
|
715
|
-
let invalidInput = [];
|
|
716
|
-
if (invalidInput.length) {
|
|
717
|
-
const error = new Error();
|
|
718
|
-
error.message = "Missing required field";
|
|
719
|
-
error.details = invalidInput;
|
|
720
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
721
|
-
}
|
|
722
|
-
|
|
723
614
|
const query_params = {};
|
|
724
615
|
|
|
725
616
|
const xHeaders = {};
|
|
@@ -757,14 +648,6 @@ class Payment {
|
|
|
757
648
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
758
649
|
{ responseHeaders } = { responseHeaders: false }
|
|
759
650
|
) {
|
|
760
|
-
let invalidInput = [];
|
|
761
|
-
if (invalidInput.length) {
|
|
762
|
-
const error = new Error();
|
|
763
|
-
error.message = "Missing required field";
|
|
764
|
-
error.details = invalidInput;
|
|
765
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
766
|
-
}
|
|
767
|
-
|
|
768
651
|
const query_params = {};
|
|
769
652
|
|
|
770
653
|
const xHeaders = {};
|
|
@@ -802,14 +685,6 @@ class Payment {
|
|
|
802
685
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
803
686
|
{ responseHeaders } = { responseHeaders: false }
|
|
804
687
|
) {
|
|
805
|
-
let invalidInput = [];
|
|
806
|
-
if (invalidInput.length) {
|
|
807
|
-
const error = new Error();
|
|
808
|
-
error.message = "Missing required field";
|
|
809
|
-
error.details = invalidInput;
|
|
810
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
811
|
-
}
|
|
812
|
-
|
|
813
688
|
const query_params = {};
|
|
814
689
|
|
|
815
690
|
const xHeaders = {};
|
|
@@ -847,14 +722,6 @@ class Payment {
|
|
|
847
722
|
{ refresh, requestHeaders } = { requestHeaders: {} },
|
|
848
723
|
{ responseHeaders } = { responseHeaders: false }
|
|
849
724
|
) {
|
|
850
|
-
let invalidInput = [];
|
|
851
|
-
if (invalidInput.length) {
|
|
852
|
-
const error = new Error();
|
|
853
|
-
error.message = "Missing required field";
|
|
854
|
-
error.details = invalidInput;
|
|
855
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
856
|
-
}
|
|
857
|
-
|
|
858
725
|
const query_params = {};
|
|
859
726
|
query_params["refresh"] = refresh;
|
|
860
727
|
|
|
@@ -893,14 +760,6 @@ class Payment {
|
|
|
893
760
|
{ requestHeaders } = { requestHeaders: {} },
|
|
894
761
|
{ responseHeaders } = { responseHeaders: false }
|
|
895
762
|
) {
|
|
896
|
-
let invalidInput = [];
|
|
897
|
-
if (invalidInput.length) {
|
|
898
|
-
const error = new Error();
|
|
899
|
-
error.message = "Missing required field";
|
|
900
|
-
error.details = invalidInput;
|
|
901
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
902
|
-
}
|
|
903
|
-
|
|
904
763
|
const query_params = {};
|
|
905
764
|
|
|
906
765
|
const xHeaders = {};
|
|
@@ -938,14 +797,6 @@ class Payment {
|
|
|
938
797
|
{ forceRefresh, requestHeaders } = { requestHeaders: {} },
|
|
939
798
|
{ responseHeaders } = { responseHeaders: false }
|
|
940
799
|
) {
|
|
941
|
-
let invalidInput = [];
|
|
942
|
-
if (invalidInput.length) {
|
|
943
|
-
const error = new Error();
|
|
944
|
-
error.message = "Missing required field";
|
|
945
|
-
error.details = invalidInput;
|
|
946
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
947
|
-
}
|
|
948
|
-
|
|
949
800
|
const query_params = {};
|
|
950
801
|
query_params["force_refresh"] = forceRefresh;
|
|
951
802
|
|
|
@@ -984,14 +835,6 @@ class Payment {
|
|
|
984
835
|
{ xApiToken, refresh, requestHeaders } = { requestHeaders: {} },
|
|
985
836
|
{ responseHeaders } = { responseHeaders: false }
|
|
986
837
|
) {
|
|
987
|
-
let invalidInput = [];
|
|
988
|
-
if (invalidInput.length) {
|
|
989
|
-
const error = new Error();
|
|
990
|
-
error.message = "Missing required field";
|
|
991
|
-
error.details = invalidInput;
|
|
992
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
993
|
-
}
|
|
994
|
-
|
|
995
838
|
const query_params = {};
|
|
996
839
|
query_params["refresh"] = refresh;
|
|
997
840
|
|
|
@@ -1031,14 +874,6 @@ class Payment {
|
|
|
1031
874
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1032
875
|
{ responseHeaders } = { responseHeaders: false }
|
|
1033
876
|
) {
|
|
1034
|
-
let invalidInput = [];
|
|
1035
|
-
if (invalidInput.length) {
|
|
1036
|
-
const error = new Error();
|
|
1037
|
-
error.message = "Missing required field";
|
|
1038
|
-
error.details = invalidInput;
|
|
1039
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
877
|
const query_params = {};
|
|
1043
878
|
|
|
1044
879
|
const xHeaders = {};
|
|
@@ -1076,21 +911,6 @@ class Payment {
|
|
|
1076
911
|
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
1077
912
|
{ responseHeaders } = { responseHeaders: false }
|
|
1078
913
|
) {
|
|
1079
|
-
let invalidInput = [];
|
|
1080
|
-
|
|
1081
|
-
if (!orderId) {
|
|
1082
|
-
invalidInput.push({
|
|
1083
|
-
message: `The 'orderId' field is required.`,
|
|
1084
|
-
path: ["orderId"],
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
if (invalidInput.length) {
|
|
1088
|
-
const error = new Error();
|
|
1089
|
-
error.message = "Missing required field";
|
|
1090
|
-
error.details = invalidInput;
|
|
1091
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
914
|
const query_params = {};
|
|
1095
915
|
query_params["order_id"] = orderId;
|
|
1096
916
|
|
|
@@ -1129,14 +949,6 @@ class Payment {
|
|
|
1129
949
|
{ paymentLinkId, requestHeaders } = { requestHeaders: {} },
|
|
1130
950
|
{ responseHeaders } = { responseHeaders: false }
|
|
1131
951
|
) {
|
|
1132
|
-
let invalidInput = [];
|
|
1133
|
-
if (invalidInput.length) {
|
|
1134
|
-
const error = new Error();
|
|
1135
|
-
error.message = "Missing required field";
|
|
1136
|
-
error.details = invalidInput;
|
|
1137
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
952
|
const query_params = {};
|
|
1141
953
|
query_params["payment_link_id"] = paymentLinkId;
|
|
1142
954
|
|
|
@@ -1187,21 +999,6 @@ class Payment {
|
|
|
1187
999
|
} = { requestHeaders: {} },
|
|
1188
1000
|
{ responseHeaders } = { responseHeaders: false }
|
|
1189
1001
|
) {
|
|
1190
|
-
let invalidInput = [];
|
|
1191
|
-
|
|
1192
|
-
if (!amount) {
|
|
1193
|
-
invalidInput.push({
|
|
1194
|
-
message: `The 'amount' field is required.`,
|
|
1195
|
-
path: ["amount"],
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
if (invalidInput.length) {
|
|
1199
|
-
const error = new Error();
|
|
1200
|
-
error.message = "Missing required field";
|
|
1201
|
-
error.details = invalidInput;
|
|
1202
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
1002
|
const query_params = {};
|
|
1206
1003
|
query_params["amount"] = amount;
|
|
1207
1004
|
query_params["cart_id"] = cartId;
|
|
@@ -1249,21 +1046,6 @@ class Payment {
|
|
|
1249
1046
|
{ paymentLinkId, requestHeaders } = { requestHeaders: {} },
|
|
1250
1047
|
{ responseHeaders } = { responseHeaders: false }
|
|
1251
1048
|
) {
|
|
1252
|
-
let invalidInput = [];
|
|
1253
|
-
|
|
1254
|
-
if (!paymentLinkId) {
|
|
1255
|
-
invalidInput.push({
|
|
1256
|
-
message: `The 'paymentLinkId' field is required.`,
|
|
1257
|
-
path: ["paymentLinkId"],
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
if (invalidInput.length) {
|
|
1261
|
-
const error = new Error();
|
|
1262
|
-
error.message = "Missing required field";
|
|
1263
|
-
error.details = invalidInput;
|
|
1264
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
1049
|
const query_params = {};
|
|
1268
1050
|
query_params["payment_link_id"] = paymentLinkId;
|
|
1269
1051
|
|
|
@@ -1312,33 +1094,6 @@ class Payment {
|
|
|
1312
1094
|
} = { requestHeaders: {} },
|
|
1313
1095
|
{ responseHeaders } = { responseHeaders: false }
|
|
1314
1096
|
) {
|
|
1315
|
-
let invalidInput = [];
|
|
1316
|
-
|
|
1317
|
-
if (!amount) {
|
|
1318
|
-
invalidInput.push({
|
|
1319
|
-
message: `The 'amount' field is required.`,
|
|
1320
|
-
path: ["amount"],
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
if (!pincode) {
|
|
1324
|
-
invalidInput.push({
|
|
1325
|
-
message: `The 'pincode' field is required.`,
|
|
1326
|
-
path: ["pincode"],
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
if (!orderType) {
|
|
1330
|
-
invalidInput.push({
|
|
1331
|
-
message: `The 'orderType' field is required.`,
|
|
1332
|
-
path: ["orderType"],
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
if (invalidInput.length) {
|
|
1336
|
-
const error = new Error();
|
|
1337
|
-
error.message = "Missing required field";
|
|
1338
|
-
error.details = invalidInput;
|
|
1339
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
1097
|
const query_params = {};
|
|
1343
1098
|
query_params["amount"] = amount;
|
|
1344
1099
|
query_params["cart_id"] = cartId;
|
|
@@ -1384,14 +1139,6 @@ class Payment {
|
|
|
1384
1139
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1385
1140
|
{ responseHeaders } = { responseHeaders: false }
|
|
1386
1141
|
) {
|
|
1387
|
-
let invalidInput = [];
|
|
1388
|
-
if (invalidInput.length) {
|
|
1389
|
-
const error = new Error();
|
|
1390
|
-
error.message = "Missing required field";
|
|
1391
|
-
error.details = invalidInput;
|
|
1392
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
1142
|
const query_params = {};
|
|
1396
1143
|
|
|
1397
1144
|
const xHeaders = {};
|
|
@@ -1429,21 +1176,6 @@ class Payment {
|
|
|
1429
1176
|
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
1430
1177
|
{ responseHeaders } = { responseHeaders: false }
|
|
1431
1178
|
) {
|
|
1432
|
-
let invalidInput = [];
|
|
1433
|
-
|
|
1434
|
-
if (!orderId) {
|
|
1435
|
-
invalidInput.push({
|
|
1436
|
-
message: `The 'orderId' field is required.`,
|
|
1437
|
-
path: ["orderId"],
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
if (invalidInput.length) {
|
|
1441
|
-
const error = new Error();
|
|
1442
|
-
error.message = "Missing required field";
|
|
1443
|
-
error.details = invalidInput;
|
|
1444
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
1179
|
const query_params = {};
|
|
1448
1180
|
query_params["order_id"] = orderId;
|
|
1449
1181
|
|
|
@@ -1482,14 +1214,6 @@ class Payment {
|
|
|
1482
1214
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1483
1215
|
{ responseHeaders } = { responseHeaders: false }
|
|
1484
1216
|
) {
|
|
1485
|
-
let invalidInput = [];
|
|
1486
|
-
if (invalidInput.length) {
|
|
1487
|
-
const error = new Error();
|
|
1488
|
-
error.message = "Missing required field";
|
|
1489
|
-
error.details = invalidInput;
|
|
1490
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
1217
|
const query_params = {};
|
|
1494
1218
|
|
|
1495
1219
|
const xHeaders = {};
|
|
@@ -1527,14 +1251,6 @@ class Payment {
|
|
|
1527
1251
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1528
1252
|
{ responseHeaders } = { responseHeaders: false }
|
|
1529
1253
|
) {
|
|
1530
|
-
let invalidInput = [];
|
|
1531
|
-
if (invalidInput.length) {
|
|
1532
|
-
const error = new Error();
|
|
1533
|
-
error.message = "Missing required field";
|
|
1534
|
-
error.details = invalidInput;
|
|
1535
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
1254
|
const query_params = {};
|
|
1539
1255
|
|
|
1540
1256
|
const xHeaders = {};
|
|
@@ -1572,14 +1288,6 @@ class Payment {
|
|
|
1572
1288
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1573
1289
|
{ responseHeaders } = { responseHeaders: false }
|
|
1574
1290
|
) {
|
|
1575
|
-
let invalidInput = [];
|
|
1576
|
-
if (invalidInput.length) {
|
|
1577
|
-
const error = new Error();
|
|
1578
|
-
error.message = "Missing required field";
|
|
1579
|
-
error.details = invalidInput;
|
|
1580
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
1291
|
const query_params = {};
|
|
1584
1292
|
|
|
1585
1293
|
const xHeaders = {};
|
|
@@ -1617,14 +1325,6 @@ class Payment {
|
|
|
1617
1325
|
{ aggregator, requestHeaders } = { requestHeaders: {} },
|
|
1618
1326
|
{ responseHeaders } = { responseHeaders: false }
|
|
1619
1327
|
) {
|
|
1620
|
-
let invalidInput = [];
|
|
1621
|
-
if (invalidInput.length) {
|
|
1622
|
-
const error = new Error();
|
|
1623
|
-
error.message = "Missing required field";
|
|
1624
|
-
error.details = invalidInput;
|
|
1625
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
1328
|
const query_params = {};
|
|
1629
1329
|
query_params["aggregator"] = aggregator;
|
|
1630
1330
|
|
|
@@ -1663,14 +1363,6 @@ class Payment {
|
|
|
1663
1363
|
{ aggregator, requestHeaders } = { requestHeaders: {} },
|
|
1664
1364
|
{ responseHeaders } = { responseHeaders: false }
|
|
1665
1365
|
) {
|
|
1666
|
-
let invalidInput = [];
|
|
1667
|
-
if (invalidInput.length) {
|
|
1668
|
-
const error = new Error();
|
|
1669
|
-
error.message = "Missing required field";
|
|
1670
|
-
error.details = invalidInput;
|
|
1671
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
1366
|
const query_params = {};
|
|
1675
1367
|
query_params["aggregator"] = aggregator;
|
|
1676
1368
|
|
|
@@ -1709,14 +1401,6 @@ class Payment {
|
|
|
1709
1401
|
{ paymentLinkId, requestHeaders } = { requestHeaders: {} },
|
|
1710
1402
|
{ responseHeaders } = { responseHeaders: false }
|
|
1711
1403
|
) {
|
|
1712
|
-
let invalidInput = [];
|
|
1713
|
-
if (invalidInput.length) {
|
|
1714
|
-
const error = new Error();
|
|
1715
|
-
error.message = "Missing required field";
|
|
1716
|
-
error.details = invalidInput;
|
|
1717
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
1404
|
const query_params = {};
|
|
1721
1405
|
query_params["payment_link_id"] = paymentLinkId;
|
|
1722
1406
|
|
|
@@ -1755,14 +1439,6 @@ class Payment {
|
|
|
1755
1439
|
{ source, aggregator, requestHeaders } = { requestHeaders: {} },
|
|
1756
1440
|
{ responseHeaders } = { responseHeaders: false }
|
|
1757
1441
|
) {
|
|
1758
|
-
let invalidInput = [];
|
|
1759
|
-
if (invalidInput.length) {
|
|
1760
|
-
const error = new Error();
|
|
1761
|
-
error.message = "Missing required field";
|
|
1762
|
-
error.details = invalidInput;
|
|
1763
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
1442
|
const query_params = {};
|
|
1767
1443
|
query_params["source"] = source;
|
|
1768
1444
|
query_params["aggregator"] = aggregator;
|
|
@@ -1802,14 +1478,6 @@ class Payment {
|
|
|
1802
1478
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1803
1479
|
{ responseHeaders } = { responseHeaders: false }
|
|
1804
1480
|
) {
|
|
1805
|
-
let invalidInput = [];
|
|
1806
|
-
if (invalidInput.length) {
|
|
1807
|
-
const error = new Error();
|
|
1808
|
-
error.message = "Missing required field";
|
|
1809
|
-
error.details = invalidInput;
|
|
1810
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
1481
|
const query_params = {};
|
|
1814
1482
|
|
|
1815
1483
|
const xHeaders = {};
|
|
@@ -1847,14 +1515,6 @@ class Payment {
|
|
|
1847
1515
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1848
1516
|
{ responseHeaders } = { responseHeaders: false }
|
|
1849
1517
|
) {
|
|
1850
|
-
let invalidInput = [];
|
|
1851
|
-
if (invalidInput.length) {
|
|
1852
|
-
const error = new Error();
|
|
1853
|
-
error.message = "Missing required field";
|
|
1854
|
-
error.details = invalidInput;
|
|
1855
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
1518
|
const query_params = {};
|
|
1859
1519
|
|
|
1860
1520
|
const xHeaders = {};
|
|
@@ -1892,14 +1552,6 @@ class Payment {
|
|
|
1892
1552
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1893
1553
|
{ responseHeaders } = { responseHeaders: false }
|
|
1894
1554
|
) {
|
|
1895
|
-
let invalidInput = [];
|
|
1896
|
-
if (invalidInput.length) {
|
|
1897
|
-
const error = new Error();
|
|
1898
|
-
error.message = "Missing required field";
|
|
1899
|
-
error.details = invalidInput;
|
|
1900
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
1555
|
const query_params = {};
|
|
1904
1556
|
|
|
1905
1557
|
const xHeaders = {};
|
|
@@ -1937,14 +1589,6 @@ class Payment {
|
|
|
1937
1589
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1938
1590
|
{ responseHeaders } = { responseHeaders: false }
|
|
1939
1591
|
) {
|
|
1940
|
-
let invalidInput = [];
|
|
1941
|
-
if (invalidInput.length) {
|
|
1942
|
-
const error = new Error();
|
|
1943
|
-
error.message = "Missing required field";
|
|
1944
|
-
error.details = invalidInput;
|
|
1945
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
1592
|
const query_params = {};
|
|
1949
1593
|
|
|
1950
1594
|
const xHeaders = {};
|
|
@@ -1982,14 +1626,6 @@ class Payment {
|
|
|
1982
1626
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1983
1627
|
{ responseHeaders } = { responseHeaders: false }
|
|
1984
1628
|
) {
|
|
1985
|
-
let invalidInput = [];
|
|
1986
|
-
if (invalidInput.length) {
|
|
1987
|
-
const error = new Error();
|
|
1988
|
-
error.message = "Missing required field";
|
|
1989
|
-
error.details = invalidInput;
|
|
1990
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
1629
|
const query_params = {};
|
|
1994
1630
|
|
|
1995
1631
|
const xHeaders = {};
|
|
@@ -2027,14 +1663,6 @@ class Payment {
|
|
|
2027
1663
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2028
1664
|
{ responseHeaders } = { responseHeaders: false }
|
|
2029
1665
|
) {
|
|
2030
|
-
let invalidInput = [];
|
|
2031
|
-
if (invalidInput.length) {
|
|
2032
|
-
const error = new Error();
|
|
2033
|
-
error.message = "Missing required field";
|
|
2034
|
-
error.details = invalidInput;
|
|
2035
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
1666
|
const query_params = {};
|
|
2039
1667
|
|
|
2040
1668
|
const xHeaders = {};
|
|
@@ -2072,14 +1700,6 @@ class Payment {
|
|
|
2072
1700
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2073
1701
|
{ responseHeaders } = { responseHeaders: false }
|
|
2074
1702
|
) {
|
|
2075
|
-
let invalidInput = [];
|
|
2076
|
-
if (invalidInput.length) {
|
|
2077
|
-
const error = new Error();
|
|
2078
|
-
error.message = "Missing required field";
|
|
2079
|
-
error.details = invalidInput;
|
|
2080
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
1703
|
const query_params = {};
|
|
2084
1704
|
|
|
2085
1705
|
const xHeaders = {};
|
|
@@ -2117,14 +1737,6 @@ class Payment {
|
|
|
2117
1737
|
{ ifscCode, requestHeaders } = { requestHeaders: {} },
|
|
2118
1738
|
{ responseHeaders } = { responseHeaders: false }
|
|
2119
1739
|
) {
|
|
2120
|
-
let invalidInput = [];
|
|
2121
|
-
if (invalidInput.length) {
|
|
2122
|
-
const error = new Error();
|
|
2123
|
-
error.message = "Missing required field";
|
|
2124
|
-
error.details = invalidInput;
|
|
2125
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
1740
|
const query_params = {};
|
|
2129
1741
|
query_params["ifsc_code"] = ifscCode;
|
|
2130
1742
|
|
|
@@ -2163,14 +1775,6 @@ class Payment {
|
|
|
2163
1775
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2164
1776
|
{ responseHeaders } = { responseHeaders: false }
|
|
2165
1777
|
) {
|
|
2166
|
-
let invalidInput = [];
|
|
2167
|
-
if (invalidInput.length) {
|
|
2168
|
-
const error = new Error();
|
|
2169
|
-
error.message = "Missing required field";
|
|
2170
|
-
error.details = invalidInput;
|
|
2171
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
1778
|
const query_params = {};
|
|
2175
1779
|
|
|
2176
1780
|
const xHeaders = {};
|
|
@@ -2208,14 +1812,6 @@ class Payment {
|
|
|
2208
1812
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2209
1813
|
{ responseHeaders } = { responseHeaders: false }
|
|
2210
1814
|
) {
|
|
2211
|
-
let invalidInput = [];
|
|
2212
|
-
if (invalidInput.length) {
|
|
2213
|
-
const error = new Error();
|
|
2214
|
-
error.message = "Missing required field";
|
|
2215
|
-
error.details = invalidInput;
|
|
2216
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
1815
|
const query_params = {};
|
|
2220
1816
|
|
|
2221
1817
|
const xHeaders = {};
|
|
@@ -2253,14 +1849,6 @@ class Payment {
|
|
|
2253
1849
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2254
1850
|
{ responseHeaders } = { responseHeaders: false }
|
|
2255
1851
|
) {
|
|
2256
|
-
let invalidInput = [];
|
|
2257
|
-
if (invalidInput.length) {
|
|
2258
|
-
const error = new Error();
|
|
2259
|
-
error.message = "Missing required field";
|
|
2260
|
-
error.details = invalidInput;
|
|
2261
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
1852
|
const query_params = {};
|
|
2265
1853
|
|
|
2266
1854
|
const xHeaders = {};
|