@gofynd/fdk-client-javascript 1.4.15 → 1.4.16-beta.1
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 +11 -11
- package/sdk/application/Cart/CartApplicationClient.js +343 -48
- package/sdk/application/Catalog/CatalogApplicationClient.js +408 -0
- package/sdk/application/Common/CommonApplicationClient.js +21 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +147 -0
- package/sdk/application/Content/ContentApplicationClient.d.ts +20 -0
- package/sdk/application/Content/ContentApplicationClient.js +327 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +43 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +21 -0
- package/sdk/application/Lead/LeadApplicationClient.js +73 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.js +182 -2
- package/sdk/application/Order/OrderApplicationClient.js +202 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -10
- package/sdk/application/Payment/PaymentApplicationClient.js +445 -38
- package/sdk/application/Rewards/RewardsApplicationClient.js +68 -0
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +64 -0
- package/sdk/application/User/UserApplicationClient.js +412 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +13 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +12 -33
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +38 -209
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +19 -399
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +11 -212
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -3
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -22
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +12 -3
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -1
- package/sdk/platform/Cart/CartPlatformModel.d.ts +14 -28
- package/sdk/platform/Cart/CartPlatformModel.js +7 -13
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -176
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +29 -80
- package/sdk/platform/Catalog/CatalogPlatformModel.js +32 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -45
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -35
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +52 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +411 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +85 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +73 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +90 -1
- package/sdk/platform/Content/ContentPlatformModel.js +104 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +0 -8
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3 -75
- package/sdk/platform/Order/OrderPlatformModel.js +2 -43
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +0 -22
- package/sdk/platform/Order/OrderPlatformValidator.js +0 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +118 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +53 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +29 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +0 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +74 -816
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -191
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +0 -138
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +16 -0
- package/sdk/public/Content/ContentPublicClient.js +116 -0
- package/sdk/public/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +40 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -55,6 +60,14 @@ class Logistic {
|
|
|
55
60
|
{ requestHeaders } = { requestHeaders: {} },
|
|
56
61
|
{ responseHeaders } = { responseHeaders: false }
|
|
57
62
|
) {
|
|
63
|
+
let invalidInput = [];
|
|
64
|
+
if (invalidInput.length) {
|
|
65
|
+
const error = new Error();
|
|
66
|
+
error.message = "Missing required field";
|
|
67
|
+
error.details = invalidInput;
|
|
68
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
69
|
+
}
|
|
70
|
+
|
|
58
71
|
const query_params = {};
|
|
59
72
|
|
|
60
73
|
const xHeaders = {};
|
|
@@ -94,6 +107,14 @@ class Logistic {
|
|
|
94
107
|
},
|
|
95
108
|
{ responseHeaders } = { responseHeaders: false }
|
|
96
109
|
) {
|
|
110
|
+
let invalidInput = [];
|
|
111
|
+
if (invalidInput.length) {
|
|
112
|
+
const error = new Error();
|
|
113
|
+
error.message = "Missing required field";
|
|
114
|
+
error.details = invalidInput;
|
|
115
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
116
|
+
}
|
|
117
|
+
|
|
97
118
|
const query_params = {};
|
|
98
119
|
query_params["onboarding"] = onboarding;
|
|
99
120
|
query_params["page_no"] = pageNo;
|
|
@@ -136,6 +157,21 @@ class Logistic {
|
|
|
136
157
|
{ countryIsoCode, requestHeaders } = { requestHeaders: {} },
|
|
137
158
|
{ responseHeaders } = { responseHeaders: false }
|
|
138
159
|
) {
|
|
160
|
+
let invalidInput = [];
|
|
161
|
+
|
|
162
|
+
if (!countryIsoCode) {
|
|
163
|
+
invalidInput.push({
|
|
164
|
+
message: `The 'countryIsoCode' field is required.`,
|
|
165
|
+
path: ["countryIsoCode"],
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
if (invalidInput.length) {
|
|
169
|
+
const error = new Error();
|
|
170
|
+
error.message = "Missing required field";
|
|
171
|
+
error.details = invalidInput;
|
|
172
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
173
|
+
}
|
|
174
|
+
|
|
139
175
|
const query_params = {};
|
|
140
176
|
|
|
141
177
|
const xHeaders = {};
|
|
@@ -173,6 +209,27 @@ class Logistic {
|
|
|
173
209
|
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
174
210
|
{ responseHeaders } = { responseHeaders: false }
|
|
175
211
|
) {
|
|
212
|
+
let invalidInput = [];
|
|
213
|
+
|
|
214
|
+
if (!companyId) {
|
|
215
|
+
invalidInput.push({
|
|
216
|
+
message: `The 'companyId' field is required.`,
|
|
217
|
+
path: ["companyId"],
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
if (!applicationId) {
|
|
221
|
+
invalidInput.push({
|
|
222
|
+
message: `The 'applicationId' field is required.`,
|
|
223
|
+
path: ["applicationId"],
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
if (invalidInput.length) {
|
|
227
|
+
const error = new Error();
|
|
228
|
+
error.message = "Missing required field";
|
|
229
|
+
error.details = invalidInput;
|
|
230
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
231
|
+
}
|
|
232
|
+
|
|
176
233
|
const query_params = {};
|
|
177
234
|
|
|
178
235
|
const xHeaders = {};
|
|
@@ -210,6 +267,14 @@ class Logistic {
|
|
|
210
267
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
211
268
|
{ responseHeaders } = { responseHeaders: false }
|
|
212
269
|
) {
|
|
270
|
+
let invalidInput = [];
|
|
271
|
+
if (invalidInput.length) {
|
|
272
|
+
const error = new Error();
|
|
273
|
+
error.message = "Missing required field";
|
|
274
|
+
error.details = invalidInput;
|
|
275
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
276
|
+
}
|
|
277
|
+
|
|
213
278
|
const query_params = {};
|
|
214
279
|
query_params["page_no"] = pageNo;
|
|
215
280
|
query_params["page_size"] = pageSize;
|
|
@@ -254,11 +319,25 @@ class Logistic {
|
|
|
254
319
|
pageNo,
|
|
255
320
|
pageSize,
|
|
256
321
|
q,
|
|
257
|
-
sector,
|
|
258
322
|
requestHeaders,
|
|
259
323
|
} = { requestHeaders: {} },
|
|
260
324
|
{ responseHeaders } = { responseHeaders: false }
|
|
261
325
|
) {
|
|
326
|
+
let invalidInput = [];
|
|
327
|
+
|
|
328
|
+
if (!localityType) {
|
|
329
|
+
invalidInput.push({
|
|
330
|
+
message: `The 'localityType' field is required.`,
|
|
331
|
+
path: ["localityType"],
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
if (invalidInput.length) {
|
|
335
|
+
const error = new Error();
|
|
336
|
+
error.message = "Missing required field";
|
|
337
|
+
error.details = invalidInput;
|
|
338
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
339
|
+
}
|
|
340
|
+
|
|
262
341
|
const query_params = {};
|
|
263
342
|
query_params["country"] = country;
|
|
264
343
|
query_params["state"] = state;
|
|
@@ -266,7 +345,6 @@ class Logistic {
|
|
|
266
345
|
query_params["page_no"] = pageNo;
|
|
267
346
|
query_params["page_size"] = pageSize;
|
|
268
347
|
query_params["q"] = q;
|
|
269
|
-
query_params["sector"] = sector;
|
|
270
348
|
|
|
271
349
|
const xHeaders = {};
|
|
272
350
|
|
|
@@ -305,6 +383,27 @@ class Logistic {
|
|
|
305
383
|
},
|
|
306
384
|
{ responseHeaders } = { responseHeaders: false }
|
|
307
385
|
) {
|
|
386
|
+
let invalidInput = [];
|
|
387
|
+
|
|
388
|
+
if (!localityType) {
|
|
389
|
+
invalidInput.push({
|
|
390
|
+
message: `The 'localityType' field is required.`,
|
|
391
|
+
path: ["localityType"],
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
if (!localityValue) {
|
|
395
|
+
invalidInput.push({
|
|
396
|
+
message: `The 'localityValue' field is required.`,
|
|
397
|
+
path: ["localityValue"],
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
if (invalidInput.length) {
|
|
401
|
+
const error = new Error();
|
|
402
|
+
error.message = "Missing required field";
|
|
403
|
+
error.details = invalidInput;
|
|
404
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
405
|
+
}
|
|
406
|
+
|
|
308
407
|
const query_params = {};
|
|
309
408
|
query_params["country"] = country;
|
|
310
409
|
query_params["state"] = state;
|
|
@@ -356,6 +455,27 @@ class Logistic {
|
|
|
356
455
|
} = { requestHeaders: {} },
|
|
357
456
|
{ responseHeaders } = { responseHeaders: false }
|
|
358
457
|
) {
|
|
458
|
+
let invalidInput = [];
|
|
459
|
+
|
|
460
|
+
if (!xApplicationId) {
|
|
461
|
+
invalidInput.push({
|
|
462
|
+
message: `The 'xApplicationId' field is required.`,
|
|
463
|
+
path: ["xApplicationId"],
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
if (!xApplicationData) {
|
|
467
|
+
invalidInput.push({
|
|
468
|
+
message: `The 'xApplicationData' field is required.`,
|
|
469
|
+
path: ["xApplicationData"],
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
if (invalidInput.length) {
|
|
473
|
+
const error = new Error();
|
|
474
|
+
error.message = "Missing required field";
|
|
475
|
+
error.details = invalidInput;
|
|
476
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
477
|
+
}
|
|
478
|
+
|
|
359
479
|
const query_params = {};
|
|
360
480
|
query_params["x-application-id"] = xApplicationId;
|
|
361
481
|
query_params["x-application-data"] = xApplicationData;
|
|
@@ -402,6 +522,14 @@ class Logistic {
|
|
|
402
522
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
403
523
|
{ responseHeaders } = { responseHeaders: false }
|
|
404
524
|
) {
|
|
525
|
+
let invalidInput = [];
|
|
526
|
+
if (invalidInput.length) {
|
|
527
|
+
const error = new Error();
|
|
528
|
+
error.message = "Missing required field";
|
|
529
|
+
error.details = invalidInput;
|
|
530
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
531
|
+
}
|
|
532
|
+
|
|
405
533
|
const query_params = {};
|
|
406
534
|
|
|
407
535
|
const xHeaders = {};
|
|
@@ -439,6 +567,21 @@ class Logistic {
|
|
|
439
567
|
{ pincode, requestHeaders } = { requestHeaders: {} },
|
|
440
568
|
{ responseHeaders } = { responseHeaders: false }
|
|
441
569
|
) {
|
|
570
|
+
let invalidInput = [];
|
|
571
|
+
|
|
572
|
+
if (!pincode) {
|
|
573
|
+
invalidInput.push({
|
|
574
|
+
message: `The 'pincode' field is required.`,
|
|
575
|
+
path: ["pincode"],
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
if (invalidInput.length) {
|
|
579
|
+
const error = new Error();
|
|
580
|
+
error.message = "Missing required field";
|
|
581
|
+
error.details = invalidInput;
|
|
582
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
583
|
+
}
|
|
584
|
+
|
|
442
585
|
const query_params = {};
|
|
443
586
|
|
|
444
587
|
const xHeaders = {};
|
|
@@ -476,6 +619,14 @@ class Logistic {
|
|
|
476
619
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
477
620
|
{ responseHeaders } = { responseHeaders: false }
|
|
478
621
|
) {
|
|
622
|
+
let invalidInput = [];
|
|
623
|
+
if (invalidInput.length) {
|
|
624
|
+
const error = new Error();
|
|
625
|
+
error.message = "Missing required field";
|
|
626
|
+
error.details = invalidInput;
|
|
627
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
628
|
+
}
|
|
629
|
+
|
|
479
630
|
const query_params = {};
|
|
480
631
|
|
|
481
632
|
const xHeaders = {};
|
|
@@ -513,6 +664,14 @@ class Logistic {
|
|
|
513
664
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
514
665
|
{ responseHeaders } = { responseHeaders: false }
|
|
515
666
|
) {
|
|
667
|
+
let invalidInput = [];
|
|
668
|
+
if (invalidInput.length) {
|
|
669
|
+
const error = new Error();
|
|
670
|
+
error.message = "Missing required field";
|
|
671
|
+
error.details = invalidInput;
|
|
672
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
673
|
+
}
|
|
674
|
+
|
|
516
675
|
const query_params = {};
|
|
517
676
|
|
|
518
677
|
const xHeaders = {};
|
|
@@ -552,6 +711,27 @@ class Logistic {
|
|
|
552
711
|
},
|
|
553
712
|
{ responseHeaders } = { responseHeaders: false }
|
|
554
713
|
) {
|
|
714
|
+
let invalidInput = [];
|
|
715
|
+
|
|
716
|
+
if (!countryIsoCode) {
|
|
717
|
+
invalidInput.push({
|
|
718
|
+
message: `The 'countryIsoCode' field is required.`,
|
|
719
|
+
path: ["countryIsoCode"],
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
if (!templateName) {
|
|
723
|
+
invalidInput.push({
|
|
724
|
+
message: `The 'templateName' field is required.`,
|
|
725
|
+
path: ["templateName"],
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
if (invalidInput.length) {
|
|
729
|
+
const error = new Error();
|
|
730
|
+
error.message = "Missing required field";
|
|
731
|
+
error.details = invalidInput;
|
|
732
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
733
|
+
}
|
|
734
|
+
|
|
555
735
|
const query_params = {};
|
|
556
736
|
|
|
557
737
|
const xHeaders = {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -57,6 +62,27 @@ class Order {
|
|
|
57
62
|
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
58
63
|
{ responseHeaders } = { responseHeaders: false }
|
|
59
64
|
) {
|
|
65
|
+
let invalidInput = [];
|
|
66
|
+
|
|
67
|
+
if (!orderId) {
|
|
68
|
+
invalidInput.push({
|
|
69
|
+
message: `The 'orderId' field is required.`,
|
|
70
|
+
path: ["orderId"],
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
if (!shipmentId) {
|
|
74
|
+
invalidInput.push({
|
|
75
|
+
message: `The 'shipmentId' field is required.`,
|
|
76
|
+
path: ["shipmentId"],
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (invalidInput.length) {
|
|
80
|
+
const error = new Error();
|
|
81
|
+
error.message = "Missing required field";
|
|
82
|
+
error.details = invalidInput;
|
|
83
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
84
|
+
}
|
|
85
|
+
|
|
60
86
|
const query_params = {};
|
|
61
87
|
|
|
62
88
|
const xHeaders = {};
|
|
@@ -94,6 +120,21 @@ class Order {
|
|
|
94
120
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
95
121
|
{ responseHeaders } = { responseHeaders: false }
|
|
96
122
|
) {
|
|
123
|
+
let invalidInput = [];
|
|
124
|
+
|
|
125
|
+
if (!shipmentId) {
|
|
126
|
+
invalidInput.push({
|
|
127
|
+
message: `The 'shipmentId' field is required.`,
|
|
128
|
+
path: ["shipmentId"],
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
if (invalidInput.length) {
|
|
132
|
+
const error = new Error();
|
|
133
|
+
error.message = "Missing required field";
|
|
134
|
+
error.details = invalidInput;
|
|
135
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
136
|
+
}
|
|
137
|
+
|
|
97
138
|
const query_params = {};
|
|
98
139
|
|
|
99
140
|
const xHeaders = {};
|
|
@@ -131,6 +172,21 @@ class Order {
|
|
|
131
172
|
{ orderId, allowInactive, requestHeaders } = { requestHeaders: {} },
|
|
132
173
|
{ responseHeaders } = { responseHeaders: false }
|
|
133
174
|
) {
|
|
175
|
+
let invalidInput = [];
|
|
176
|
+
|
|
177
|
+
if (!orderId) {
|
|
178
|
+
invalidInput.push({
|
|
179
|
+
message: `The 'orderId' field is required.`,
|
|
180
|
+
path: ["orderId"],
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
if (invalidInput.length) {
|
|
184
|
+
const error = new Error();
|
|
185
|
+
error.message = "Missing required field";
|
|
186
|
+
error.details = invalidInput;
|
|
187
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
188
|
+
}
|
|
189
|
+
|
|
134
190
|
const query_params = {};
|
|
135
191
|
query_params["allow_inactive"] = allowInactive;
|
|
136
192
|
|
|
@@ -180,6 +236,14 @@ class Order {
|
|
|
180
236
|
} = { requestHeaders: {} },
|
|
181
237
|
{ responseHeaders } = { responseHeaders: false }
|
|
182
238
|
) {
|
|
239
|
+
let invalidInput = [];
|
|
240
|
+
if (invalidInput.length) {
|
|
241
|
+
const error = new Error();
|
|
242
|
+
error.message = "Missing required field";
|
|
243
|
+
error.details = invalidInput;
|
|
244
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
245
|
+
}
|
|
246
|
+
|
|
183
247
|
const query_params = {};
|
|
184
248
|
query_params["status"] = status;
|
|
185
249
|
query_params["page_no"] = pageNo;
|
|
@@ -226,6 +290,21 @@ class Order {
|
|
|
226
290
|
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
227
291
|
{ responseHeaders } = { responseHeaders: false }
|
|
228
292
|
) {
|
|
293
|
+
let invalidInput = [];
|
|
294
|
+
|
|
295
|
+
if (!orderId) {
|
|
296
|
+
invalidInput.push({
|
|
297
|
+
message: `The 'orderId' field is required.`,
|
|
298
|
+
path: ["orderId"],
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
if (invalidInput.length) {
|
|
302
|
+
const error = new Error();
|
|
303
|
+
error.message = "Missing required field";
|
|
304
|
+
error.details = invalidInput;
|
|
305
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
306
|
+
}
|
|
307
|
+
|
|
229
308
|
const query_params = {};
|
|
230
309
|
|
|
231
310
|
const xHeaders = {};
|
|
@@ -263,6 +342,27 @@ class Order {
|
|
|
263
342
|
{ shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
|
|
264
343
|
{ responseHeaders } = { responseHeaders: false }
|
|
265
344
|
) {
|
|
345
|
+
let invalidInput = [];
|
|
346
|
+
|
|
347
|
+
if (!shipmentId) {
|
|
348
|
+
invalidInput.push({
|
|
349
|
+
message: `The 'shipmentId' field is required.`,
|
|
350
|
+
path: ["shipmentId"],
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
if (!bagId) {
|
|
354
|
+
invalidInput.push({
|
|
355
|
+
message: `The 'bagId' field is required.`,
|
|
356
|
+
path: ["bagId"],
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
if (invalidInput.length) {
|
|
360
|
+
const error = new Error();
|
|
361
|
+
error.message = "Missing required field";
|
|
362
|
+
error.details = invalidInput;
|
|
363
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
364
|
+
}
|
|
365
|
+
|
|
266
366
|
const query_params = {};
|
|
267
367
|
|
|
268
368
|
const xHeaders = {};
|
|
@@ -300,6 +400,21 @@ class Order {
|
|
|
300
400
|
{ shipmentId, allowInactive, requestHeaders } = { requestHeaders: {} },
|
|
301
401
|
{ responseHeaders } = { responseHeaders: false }
|
|
302
402
|
) {
|
|
403
|
+
let invalidInput = [];
|
|
404
|
+
|
|
405
|
+
if (!shipmentId) {
|
|
406
|
+
invalidInput.push({
|
|
407
|
+
message: `The 'shipmentId' field is required.`,
|
|
408
|
+
path: ["shipmentId"],
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
if (invalidInput.length) {
|
|
412
|
+
const error = new Error();
|
|
413
|
+
error.message = "Missing required field";
|
|
414
|
+
error.details = invalidInput;
|
|
415
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
416
|
+
}
|
|
417
|
+
|
|
303
418
|
const query_params = {};
|
|
304
419
|
query_params["allow_inactive"] = allowInactive;
|
|
305
420
|
|
|
@@ -338,6 +453,21 @@ class Order {
|
|
|
338
453
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
339
454
|
{ responseHeaders } = { responseHeaders: false }
|
|
340
455
|
) {
|
|
456
|
+
let invalidInput = [];
|
|
457
|
+
|
|
458
|
+
if (!shipmentId) {
|
|
459
|
+
invalidInput.push({
|
|
460
|
+
message: `The 'shipmentId' field is required.`,
|
|
461
|
+
path: ["shipmentId"],
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
if (invalidInput.length) {
|
|
465
|
+
const error = new Error();
|
|
466
|
+
error.message = "Missing required field";
|
|
467
|
+
error.details = invalidInput;
|
|
468
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
469
|
+
}
|
|
470
|
+
|
|
341
471
|
const query_params = {};
|
|
342
472
|
|
|
343
473
|
const xHeaders = {};
|
|
@@ -375,6 +505,27 @@ class Order {
|
|
|
375
505
|
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
376
506
|
{ responseHeaders } = { responseHeaders: false }
|
|
377
507
|
) {
|
|
508
|
+
let invalidInput = [];
|
|
509
|
+
|
|
510
|
+
if (!orderId) {
|
|
511
|
+
invalidInput.push({
|
|
512
|
+
message: `The 'orderId' field is required.`,
|
|
513
|
+
path: ["orderId"],
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
if (!shipmentId) {
|
|
517
|
+
invalidInput.push({
|
|
518
|
+
message: `The 'shipmentId' field is required.`,
|
|
519
|
+
path: ["shipmentId"],
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
if (invalidInput.length) {
|
|
523
|
+
const error = new Error();
|
|
524
|
+
error.message = "Missing required field";
|
|
525
|
+
error.details = invalidInput;
|
|
526
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
527
|
+
}
|
|
528
|
+
|
|
378
529
|
const query_params = {};
|
|
379
530
|
|
|
380
531
|
const xHeaders = {};
|
|
@@ -412,6 +563,21 @@ class Order {
|
|
|
412
563
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
413
564
|
{ responseHeaders } = { responseHeaders: false }
|
|
414
565
|
) {
|
|
566
|
+
let invalidInput = [];
|
|
567
|
+
|
|
568
|
+
if (!shipmentId) {
|
|
569
|
+
invalidInput.push({
|
|
570
|
+
message: `The 'shipmentId' field is required.`,
|
|
571
|
+
path: ["shipmentId"],
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
if (invalidInput.length) {
|
|
575
|
+
const error = new Error();
|
|
576
|
+
error.message = "Missing required field";
|
|
577
|
+
error.details = invalidInput;
|
|
578
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
579
|
+
}
|
|
580
|
+
|
|
415
581
|
const query_params = {};
|
|
416
582
|
|
|
417
583
|
const xHeaders = {};
|
|
@@ -449,6 +615,21 @@ class Order {
|
|
|
449
615
|
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
450
616
|
{ responseHeaders } = { responseHeaders: false }
|
|
451
617
|
) {
|
|
618
|
+
let invalidInput = [];
|
|
619
|
+
|
|
620
|
+
if (!shipmentId) {
|
|
621
|
+
invalidInput.push({
|
|
622
|
+
message: `The 'shipmentId' field is required.`,
|
|
623
|
+
path: ["shipmentId"],
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
if (invalidInput.length) {
|
|
627
|
+
const error = new Error();
|
|
628
|
+
error.message = "Missing required field";
|
|
629
|
+
error.details = invalidInput;
|
|
630
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
631
|
+
}
|
|
632
|
+
|
|
452
633
|
const query_params = {};
|
|
453
634
|
|
|
454
635
|
const xHeaders = {};
|
|
@@ -486,6 +667,27 @@ class Order {
|
|
|
486
667
|
{ orderId, shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
487
668
|
{ responseHeaders } = { responseHeaders: false }
|
|
488
669
|
) {
|
|
670
|
+
let invalidInput = [];
|
|
671
|
+
|
|
672
|
+
if (!orderId) {
|
|
673
|
+
invalidInput.push({
|
|
674
|
+
message: `The 'orderId' field is required.`,
|
|
675
|
+
path: ["orderId"],
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
if (!shipmentId) {
|
|
679
|
+
invalidInput.push({
|
|
680
|
+
message: `The 'shipmentId' field is required.`,
|
|
681
|
+
path: ["shipmentId"],
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
if (invalidInput.length) {
|
|
685
|
+
const error = new Error();
|
|
686
|
+
error.message = "Missing required field";
|
|
687
|
+
error.details = invalidInput;
|
|
688
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
689
|
+
}
|
|
690
|
+
|
|
489
691
|
const query_params = {};
|
|
490
692
|
|
|
491
693
|
const xHeaders = {};
|
|
@@ -42,7 +42,6 @@ declare class Payment {
|
|
|
42
42
|
resendOrCancelPayment: string;
|
|
43
43
|
resendPaymentLink: string;
|
|
44
44
|
updateDefaultBeneficiary: string;
|
|
45
|
-
validateCustomerAndCreditSummary: string;
|
|
46
45
|
validateVPA: string;
|
|
47
46
|
verifyAndChargePayment: string;
|
|
48
47
|
verifyCustomerForPayment: string;
|
|
@@ -404,15 +403,6 @@ declare class Payment {
|
|
|
404
403
|
* @description: Update default beneficiary for the order refund of the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateDefaultBeneficiary/).
|
|
405
404
|
*/
|
|
406
405
|
updateDefaultBeneficiary({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SetDefaultBeneficiaryDetails>;
|
|
407
|
-
/**
|
|
408
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
409
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
410
|
-
* @returns {Promise<ValidateCustomerCreditSchema>} - Success response
|
|
411
|
-
* @name validateCustomerAndCreditSummary
|
|
412
|
-
* @summary: Verify payment customer and show credit summary
|
|
413
|
-
* @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateCustomerAndCreditSummary/).
|
|
414
|
-
*/
|
|
415
|
-
validateCustomerAndCreditSummary({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ValidateCustomerCreditSchema>;
|
|
416
406
|
/**
|
|
417
407
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
418
408
|
* @param {import("../ApplicationAPIClient").Options} - Options
|