@gofynd/fdk-client-javascript 1.0.0 → 1.0.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/documentation/application/CATALOG.md +371 -371
- package/documentation/application/ORDER.md +272 -272
- package/documentation/application/PAYMENT.md +269 -269
- package/documentation/platform/CATALOG.md +1678 -1664
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/ORDER.md +1442 -1323
- package/documentation/platform/PAYMENT.md +88 -88
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +302 -0
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
- package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +22 -0
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +215 -0
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +81 -0
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.js +146 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +329 -329
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +87 -0
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +405 -0
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
- package/sdk/platform/Common/CommonPlatformClient.js +26 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
- package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
- package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
- package/sdk/platform/Order/OrderPlatformClient.js +674 -15
- package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
- package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
- package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
- package/sdk/platform/PlatformApplicationClient.js +2514 -2524
- package/sdk/platform/PlatformClient.d.ts +2217 -2243
- package/sdk/platform/PlatformClient.js +2514 -2524
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -31,12 +31,13 @@ declare class OrderValidator {
|
|
|
31
31
|
static dispatchManifest(): any;
|
|
32
32
|
static getRoleBasedActions(): any;
|
|
33
33
|
static getShipmentHistory(): any;
|
|
34
|
+
static postShipmentHistory(): any;
|
|
34
35
|
static sendSmsNinja(): any;
|
|
35
36
|
static platformManualAssignDPToShipment(): any;
|
|
36
37
|
static updatePackagingDimensions(): any;
|
|
37
38
|
static createOrder(): any;
|
|
38
|
-
static createChannelConfig(): any;
|
|
39
39
|
static getChannelConfig(): any;
|
|
40
|
+
static createChannelConfig(): any;
|
|
40
41
|
static uploadConsent(): any;
|
|
41
42
|
static orderUpdate(): any;
|
|
42
43
|
static checkOrderStatus(): any;
|
|
@@ -290,6 +290,12 @@ class OrderValidator {
|
|
|
290
290
|
}).required();
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
static postShipmentHistory() {
|
|
294
|
+
return Joi.object({
|
|
295
|
+
body: OrderModel.PostShipmentHistory().required(),
|
|
296
|
+
}).required();
|
|
297
|
+
}
|
|
298
|
+
|
|
293
299
|
static sendSmsNinja() {
|
|
294
300
|
return Joi.object({
|
|
295
301
|
body: OrderModel.SendSmsPayload().required(),
|
|
@@ -314,16 +320,16 @@ class OrderValidator {
|
|
|
314
320
|
}).required();
|
|
315
321
|
}
|
|
316
322
|
|
|
323
|
+
static getChannelConfig() {
|
|
324
|
+
return Joi.object({}).required();
|
|
325
|
+
}
|
|
326
|
+
|
|
317
327
|
static createChannelConfig() {
|
|
318
328
|
return Joi.object({
|
|
319
329
|
body: OrderModel.CreateChannelConfigData().required(),
|
|
320
330
|
}).required();
|
|
321
331
|
}
|
|
322
332
|
|
|
323
|
-
static getChannelConfig() {
|
|
324
|
-
return Joi.object({}).required();
|
|
325
|
-
}
|
|
326
|
-
|
|
327
333
|
static uploadConsent() {
|
|
328
334
|
return Joi.object({
|
|
329
335
|
body: OrderModel.UploadConsent().required(),
|
|
@@ -29,6 +29,19 @@ class Partner {
|
|
|
29
29
|
return Promise.reject(new FDKClientValidationError(error));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
// Showing warrnings if extra unknown parameters are found
|
|
33
|
+
const { error: warrning } = PartnerValidator.addProxyPath().validate(
|
|
34
|
+
{
|
|
35
|
+
extensionId,
|
|
36
|
+
body,
|
|
37
|
+
},
|
|
38
|
+
{ abortEarly: false, allowUnknown: false }
|
|
39
|
+
);
|
|
40
|
+
if (warrning) {
|
|
41
|
+
console.log("Parameter Validation warrnings for addProxyPath");
|
|
42
|
+
console.log(warrning);
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
const query_params = {};
|
|
33
46
|
|
|
34
47
|
return PlatformAPIClient.execute(
|
|
@@ -60,6 +73,19 @@ class Partner {
|
|
|
60
73
|
return Promise.reject(new FDKClientValidationError(error));
|
|
61
74
|
}
|
|
62
75
|
|
|
76
|
+
// Showing warrnings if extra unknown parameters are found
|
|
77
|
+
const { error: warrning } = PartnerValidator.removeProxyPath().validate(
|
|
78
|
+
{
|
|
79
|
+
extensionId,
|
|
80
|
+
attachedPath,
|
|
81
|
+
},
|
|
82
|
+
{ abortEarly: false, allowUnknown: false }
|
|
83
|
+
);
|
|
84
|
+
if (warrning) {
|
|
85
|
+
console.log("Parameter Validation warrnings for removeProxyPath");
|
|
86
|
+
console.log(warrning);
|
|
87
|
+
}
|
|
88
|
+
|
|
63
89
|
const query_params = {};
|
|
64
90
|
|
|
65
91
|
return PlatformAPIClient.execute(
|
|
@@ -23,6 +23,20 @@ class Payment {
|
|
|
23
23
|
return Promise.reject(new FDKClientValidationError(error));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// Showing warrnings if extra unknown parameters are found
|
|
27
|
+
const {
|
|
28
|
+
error: warrning,
|
|
29
|
+
} = PaymentValidator.getBrandPaymentGatewayConfig().validate(
|
|
30
|
+
{},
|
|
31
|
+
{ abortEarly: false, allowUnknown: false }
|
|
32
|
+
);
|
|
33
|
+
if (warrning) {
|
|
34
|
+
console.log(
|
|
35
|
+
"Parameter Validation warrnings for getBrandPaymentGatewayConfig"
|
|
36
|
+
);
|
|
37
|
+
console.log(warrning);
|
|
38
|
+
}
|
|
39
|
+
|
|
26
40
|
const query_params = {};
|
|
27
41
|
|
|
28
42
|
return PlatformAPIClient.execute(
|
|
@@ -51,6 +65,22 @@ class Payment {
|
|
|
51
65
|
return Promise.reject(new FDKClientValidationError(error));
|
|
52
66
|
}
|
|
53
67
|
|
|
68
|
+
// Showing warrnings if extra unknown parameters are found
|
|
69
|
+
const {
|
|
70
|
+
error: warrning,
|
|
71
|
+
} = PaymentValidator.saveBrandPaymentGatewayConfig().validate(
|
|
72
|
+
{
|
|
73
|
+
body,
|
|
74
|
+
},
|
|
75
|
+
{ abortEarly: false, allowUnknown: false }
|
|
76
|
+
);
|
|
77
|
+
if (warrning) {
|
|
78
|
+
console.log(
|
|
79
|
+
"Parameter Validation warrnings for saveBrandPaymentGatewayConfig"
|
|
80
|
+
);
|
|
81
|
+
console.log(warrning);
|
|
82
|
+
}
|
|
83
|
+
|
|
54
84
|
const query_params = {};
|
|
55
85
|
|
|
56
86
|
return PlatformAPIClient.execute(
|
|
@@ -81,6 +111,22 @@ class Payment {
|
|
|
81
111
|
return Promise.reject(new FDKClientValidationError(error));
|
|
82
112
|
}
|
|
83
113
|
|
|
114
|
+
// Showing warrnings if extra unknown parameters are found
|
|
115
|
+
const {
|
|
116
|
+
error: warrning,
|
|
117
|
+
} = PaymentValidator.updateBrandPaymentGatewayConfig().validate(
|
|
118
|
+
{
|
|
119
|
+
body,
|
|
120
|
+
},
|
|
121
|
+
{ abortEarly: false, allowUnknown: false }
|
|
122
|
+
);
|
|
123
|
+
if (warrning) {
|
|
124
|
+
console.log(
|
|
125
|
+
"Parameter Validation warrnings for updateBrandPaymentGatewayConfig"
|
|
126
|
+
);
|
|
127
|
+
console.log(warrning);
|
|
128
|
+
}
|
|
129
|
+
|
|
84
130
|
const query_params = {};
|
|
85
131
|
|
|
86
132
|
return PlatformAPIClient.execute(
|
|
@@ -111,6 +157,21 @@ class Payment {
|
|
|
111
157
|
return Promise.reject(new FDKClientValidationError(error));
|
|
112
158
|
}
|
|
113
159
|
|
|
160
|
+
// Showing warrnings if extra unknown parameters are found
|
|
161
|
+
const {
|
|
162
|
+
error: warrning,
|
|
163
|
+
} = PaymentValidator.getPaymentModeRoutes().validate(
|
|
164
|
+
{
|
|
165
|
+
refresh,
|
|
166
|
+
requestType,
|
|
167
|
+
},
|
|
168
|
+
{ abortEarly: false, allowUnknown: false }
|
|
169
|
+
);
|
|
170
|
+
if (warrning) {
|
|
171
|
+
console.log("Parameter Validation warrnings for getPaymentModeRoutes");
|
|
172
|
+
console.log(warrning);
|
|
173
|
+
}
|
|
174
|
+
|
|
114
175
|
const query_params = {};
|
|
115
176
|
query_params["refresh"] = refresh;
|
|
116
177
|
query_params["request_type"] = requestType;
|
|
@@ -143,6 +204,23 @@ class Payment {
|
|
|
143
204
|
return Promise.reject(new FDKClientValidationError(error));
|
|
144
205
|
}
|
|
145
206
|
|
|
207
|
+
// Showing warrnings if extra unknown parameters are found
|
|
208
|
+
const {
|
|
209
|
+
error: warrning,
|
|
210
|
+
} = PaymentValidator.getBankAccountDetailsOpenAPI().validate(
|
|
211
|
+
{
|
|
212
|
+
orderId,
|
|
213
|
+
requestHash,
|
|
214
|
+
},
|
|
215
|
+
{ abortEarly: false, allowUnknown: false }
|
|
216
|
+
);
|
|
217
|
+
if (warrning) {
|
|
218
|
+
console.log(
|
|
219
|
+
"Parameter Validation warrnings for getBankAccountDetailsOpenAPI"
|
|
220
|
+
);
|
|
221
|
+
console.log(warrning);
|
|
222
|
+
}
|
|
223
|
+
|
|
146
224
|
const query_params = {};
|
|
147
225
|
query_params["order_id"] = orderId;
|
|
148
226
|
query_params["request_hash"] = requestHash;
|
|
@@ -173,6 +251,22 @@ class Payment {
|
|
|
173
251
|
return Promise.reject(new FDKClientValidationError(error));
|
|
174
252
|
}
|
|
175
253
|
|
|
254
|
+
// Showing warrnings if extra unknown parameters are found
|
|
255
|
+
const {
|
|
256
|
+
error: warrning,
|
|
257
|
+
} = PaymentValidator.addRefundBankAccountUsingOTP().validate(
|
|
258
|
+
{
|
|
259
|
+
body,
|
|
260
|
+
},
|
|
261
|
+
{ abortEarly: false, allowUnknown: false }
|
|
262
|
+
);
|
|
263
|
+
if (warrning) {
|
|
264
|
+
console.log(
|
|
265
|
+
"Parameter Validation warrnings for addRefundBankAccountUsingOTP"
|
|
266
|
+
);
|
|
267
|
+
console.log(warrning);
|
|
268
|
+
}
|
|
269
|
+
|
|
176
270
|
const query_params = {};
|
|
177
271
|
|
|
178
272
|
return PlatformAPIClient.execute(
|
|
@@ -201,6 +295,22 @@ class Payment {
|
|
|
201
295
|
return Promise.reject(new FDKClientValidationError(error));
|
|
202
296
|
}
|
|
203
297
|
|
|
298
|
+
// Showing warrnings if extra unknown parameters are found
|
|
299
|
+
const {
|
|
300
|
+
error: warrning,
|
|
301
|
+
} = PaymentValidator.getUserOrderBeneficiaries().validate(
|
|
302
|
+
{
|
|
303
|
+
orderId,
|
|
304
|
+
},
|
|
305
|
+
{ abortEarly: false, allowUnknown: false }
|
|
306
|
+
);
|
|
307
|
+
if (warrning) {
|
|
308
|
+
console.log(
|
|
309
|
+
"Parameter Validation warrnings for getUserOrderBeneficiaries"
|
|
310
|
+
);
|
|
311
|
+
console.log(warrning);
|
|
312
|
+
}
|
|
313
|
+
|
|
204
314
|
const query_params = {};
|
|
205
315
|
query_params["order_id"] = orderId;
|
|
206
316
|
|
|
@@ -230,6 +340,20 @@ class Payment {
|
|
|
230
340
|
return Promise.reject(new FDKClientValidationError(error));
|
|
231
341
|
}
|
|
232
342
|
|
|
343
|
+
// Showing warrnings if extra unknown parameters are found
|
|
344
|
+
const {
|
|
345
|
+
error: warrning,
|
|
346
|
+
} = PaymentValidator.getUserBeneficiaries().validate(
|
|
347
|
+
{
|
|
348
|
+
orderId,
|
|
349
|
+
},
|
|
350
|
+
{ abortEarly: false, allowUnknown: false }
|
|
351
|
+
);
|
|
352
|
+
if (warrning) {
|
|
353
|
+
console.log("Parameter Validation warrnings for getUserBeneficiaries");
|
|
354
|
+
console.log(warrning);
|
|
355
|
+
}
|
|
356
|
+
|
|
233
357
|
const query_params = {};
|
|
234
358
|
query_params["order_id"] = orderId;
|
|
235
359
|
|
|
@@ -259,6 +383,18 @@ class Payment {
|
|
|
259
383
|
return Promise.reject(new FDKClientValidationError(error));
|
|
260
384
|
}
|
|
261
385
|
|
|
386
|
+
// Showing warrnings if extra unknown parameters are found
|
|
387
|
+
const { error: warrning } = PaymentValidator.confirmPayment().validate(
|
|
388
|
+
{
|
|
389
|
+
body,
|
|
390
|
+
},
|
|
391
|
+
{ abortEarly: false, allowUnknown: false }
|
|
392
|
+
);
|
|
393
|
+
if (warrning) {
|
|
394
|
+
console.log("Parameter Validation warrnings for confirmPayment");
|
|
395
|
+
console.log(warrning);
|
|
396
|
+
}
|
|
397
|
+
|
|
262
398
|
const query_params = {};
|
|
263
399
|
|
|
264
400
|
return PlatformAPIClient.execute(
|
|
@@ -289,6 +425,21 @@ class Payment {
|
|
|
289
425
|
return Promise.reject(new FDKClientValidationError(error));
|
|
290
426
|
}
|
|
291
427
|
|
|
428
|
+
// Showing warrnings if extra unknown parameters are found
|
|
429
|
+
const {
|
|
430
|
+
error: warrning,
|
|
431
|
+
} = PaymentValidator.getUserCODlimitRoutes().validate(
|
|
432
|
+
{
|
|
433
|
+
merchantUserId,
|
|
434
|
+
mobileNo,
|
|
435
|
+
},
|
|
436
|
+
{ abortEarly: false, allowUnknown: false }
|
|
437
|
+
);
|
|
438
|
+
if (warrning) {
|
|
439
|
+
console.log("Parameter Validation warrnings for getUserCODlimitRoutes");
|
|
440
|
+
console.log(warrning);
|
|
441
|
+
}
|
|
442
|
+
|
|
292
443
|
const query_params = {};
|
|
293
444
|
query_params["merchant_user_id"] = merchantUserId;
|
|
294
445
|
query_params["mobile_no"] = mobileNo;
|
|
@@ -319,6 +470,20 @@ class Payment {
|
|
|
319
470
|
return Promise.reject(new FDKClientValidationError(error));
|
|
320
471
|
}
|
|
321
472
|
|
|
473
|
+
// Showing warrnings if extra unknown parameters are found
|
|
474
|
+
const {
|
|
475
|
+
error: warrning,
|
|
476
|
+
} = PaymentValidator.setUserCODlimitRoutes().validate(
|
|
477
|
+
{
|
|
478
|
+
body,
|
|
479
|
+
},
|
|
480
|
+
{ abortEarly: false, allowUnknown: false }
|
|
481
|
+
);
|
|
482
|
+
if (warrning) {
|
|
483
|
+
console.log("Parameter Validation warrnings for setUserCODlimitRoutes");
|
|
484
|
+
console.log(warrning);
|
|
485
|
+
}
|
|
486
|
+
|
|
322
487
|
const query_params = {};
|
|
323
488
|
|
|
324
489
|
return PlatformAPIClient.execute(
|
|
@@ -24,6 +24,18 @@ class Payment {
|
|
|
24
24
|
return Promise.reject(new FDKClientValidationError(error));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// Showing warrnings if extra unknown parameters are found
|
|
28
|
+
const { error: warrning } = PaymentValidator.getAllPayouts().validate(
|
|
29
|
+
{
|
|
30
|
+
uniqueExternalId,
|
|
31
|
+
},
|
|
32
|
+
{ abortEarly: false, allowUnknown: false }
|
|
33
|
+
);
|
|
34
|
+
if (warrning) {
|
|
35
|
+
console.log("Parameter Validation warrnings for getAllPayouts");
|
|
36
|
+
console.log(warrning);
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
const query_params = {};
|
|
28
40
|
query_params["unique_external_id"] = uniqueExternalId;
|
|
29
41
|
|
|
@@ -56,6 +68,18 @@ class Payment {
|
|
|
56
68
|
return Promise.reject(new FDKClientValidationError(error));
|
|
57
69
|
}
|
|
58
70
|
|
|
71
|
+
// Showing warrnings if extra unknown parameters are found
|
|
72
|
+
const { error: warrning } = PaymentValidator.savePayout().validate(
|
|
73
|
+
{
|
|
74
|
+
body,
|
|
75
|
+
},
|
|
76
|
+
{ abortEarly: false, allowUnknown: false }
|
|
77
|
+
);
|
|
78
|
+
if (warrning) {
|
|
79
|
+
console.log("Parameter Validation warrnings for savePayout");
|
|
80
|
+
console.log(warrning);
|
|
81
|
+
}
|
|
82
|
+
|
|
59
83
|
const query_params = {};
|
|
60
84
|
|
|
61
85
|
const xHeaders = {};
|
|
@@ -89,6 +113,19 @@ class Payment {
|
|
|
89
113
|
return Promise.reject(new FDKClientValidationError(error));
|
|
90
114
|
}
|
|
91
115
|
|
|
116
|
+
// Showing warrnings if extra unknown parameters are found
|
|
117
|
+
const { error: warrning } = PaymentValidator.updatePayout().validate(
|
|
118
|
+
{
|
|
119
|
+
uniqueTransferNo,
|
|
120
|
+
body,
|
|
121
|
+
},
|
|
122
|
+
{ abortEarly: false, allowUnknown: false }
|
|
123
|
+
);
|
|
124
|
+
if (warrning) {
|
|
125
|
+
console.log("Parameter Validation warrnings for updatePayout");
|
|
126
|
+
console.log(warrning);
|
|
127
|
+
}
|
|
128
|
+
|
|
92
129
|
const query_params = {};
|
|
93
130
|
|
|
94
131
|
const xHeaders = {};
|
|
@@ -122,6 +159,23 @@ class Payment {
|
|
|
122
159
|
return Promise.reject(new FDKClientValidationError(error));
|
|
123
160
|
}
|
|
124
161
|
|
|
162
|
+
// Showing warrnings if extra unknown parameters are found
|
|
163
|
+
const {
|
|
164
|
+
error: warrning,
|
|
165
|
+
} = PaymentValidator.activateAndDectivatePayout().validate(
|
|
166
|
+
{
|
|
167
|
+
uniqueTransferNo,
|
|
168
|
+
body,
|
|
169
|
+
},
|
|
170
|
+
{ abortEarly: false, allowUnknown: false }
|
|
171
|
+
);
|
|
172
|
+
if (warrning) {
|
|
173
|
+
console.log(
|
|
174
|
+
"Parameter Validation warrnings for activateAndDectivatePayout"
|
|
175
|
+
);
|
|
176
|
+
console.log(warrning);
|
|
177
|
+
}
|
|
178
|
+
|
|
125
179
|
const query_params = {};
|
|
126
180
|
|
|
127
181
|
const xHeaders = {};
|
|
@@ -153,6 +207,18 @@ class Payment {
|
|
|
153
207
|
return Promise.reject(new FDKClientValidationError(error));
|
|
154
208
|
}
|
|
155
209
|
|
|
210
|
+
// Showing warrnings if extra unknown parameters are found
|
|
211
|
+
const { error: warrning } = PaymentValidator.deletePayout().validate(
|
|
212
|
+
{
|
|
213
|
+
uniqueTransferNo,
|
|
214
|
+
},
|
|
215
|
+
{ abortEarly: false, allowUnknown: false }
|
|
216
|
+
);
|
|
217
|
+
if (warrning) {
|
|
218
|
+
console.log("Parameter Validation warrnings for deletePayout");
|
|
219
|
+
console.log(warrning);
|
|
220
|
+
}
|
|
221
|
+
|
|
156
222
|
const query_params = {};
|
|
157
223
|
|
|
158
224
|
const xHeaders = {};
|
|
@@ -184,6 +250,22 @@ class Payment {
|
|
|
184
250
|
return Promise.reject(new FDKClientValidationError(error));
|
|
185
251
|
}
|
|
186
252
|
|
|
253
|
+
// Showing warrnings if extra unknown parameters are found
|
|
254
|
+
const {
|
|
255
|
+
error: warrning,
|
|
256
|
+
} = PaymentValidator.getSubscriptionPaymentMethod().validate(
|
|
257
|
+
{
|
|
258
|
+
uniqueExternalId,
|
|
259
|
+
},
|
|
260
|
+
{ abortEarly: false, allowUnknown: false }
|
|
261
|
+
);
|
|
262
|
+
if (warrning) {
|
|
263
|
+
console.log(
|
|
264
|
+
"Parameter Validation warrnings for getSubscriptionPaymentMethod"
|
|
265
|
+
);
|
|
266
|
+
console.log(warrning);
|
|
267
|
+
}
|
|
268
|
+
|
|
187
269
|
const query_params = {};
|
|
188
270
|
query_params["unique_external_id"] = uniqueExternalId;
|
|
189
271
|
|
|
@@ -220,6 +302,23 @@ class Payment {
|
|
|
220
302
|
return Promise.reject(new FDKClientValidationError(error));
|
|
221
303
|
}
|
|
222
304
|
|
|
305
|
+
// Showing warrnings if extra unknown parameters are found
|
|
306
|
+
const {
|
|
307
|
+
error: warrning,
|
|
308
|
+
} = PaymentValidator.deleteSubscriptionPaymentMethod().validate(
|
|
309
|
+
{
|
|
310
|
+
uniqueExternalId,
|
|
311
|
+
paymentMethodId,
|
|
312
|
+
},
|
|
313
|
+
{ abortEarly: false, allowUnknown: false }
|
|
314
|
+
);
|
|
315
|
+
if (warrning) {
|
|
316
|
+
console.log(
|
|
317
|
+
"Parameter Validation warrnings for deleteSubscriptionPaymentMethod"
|
|
318
|
+
);
|
|
319
|
+
console.log(warrning);
|
|
320
|
+
}
|
|
321
|
+
|
|
223
322
|
const query_params = {};
|
|
224
323
|
query_params["unique_external_id"] = uniqueExternalId;
|
|
225
324
|
query_params["payment_method_id"] = paymentMethodId;
|
|
@@ -250,6 +349,18 @@ class Payment {
|
|
|
250
349
|
return Promise.reject(new FDKClientValidationError(error));
|
|
251
350
|
}
|
|
252
351
|
|
|
352
|
+
// Showing warrnings if extra unknown parameters are found
|
|
353
|
+
const {
|
|
354
|
+
error: warrning,
|
|
355
|
+
} = PaymentValidator.getSubscriptionConfig().validate(
|
|
356
|
+
{},
|
|
357
|
+
{ abortEarly: false, allowUnknown: false }
|
|
358
|
+
);
|
|
359
|
+
if (warrning) {
|
|
360
|
+
console.log("Parameter Validation warrnings for getSubscriptionConfig");
|
|
361
|
+
console.log(warrning);
|
|
362
|
+
}
|
|
363
|
+
|
|
253
364
|
const query_params = {};
|
|
254
365
|
|
|
255
366
|
const xHeaders = {};
|
|
@@ -281,6 +392,22 @@ class Payment {
|
|
|
281
392
|
return Promise.reject(new FDKClientValidationError(error));
|
|
282
393
|
}
|
|
283
394
|
|
|
395
|
+
// Showing warrnings if extra unknown parameters are found
|
|
396
|
+
const {
|
|
397
|
+
error: warrning,
|
|
398
|
+
} = PaymentValidator.saveSubscriptionSetupIntent().validate(
|
|
399
|
+
{
|
|
400
|
+
body,
|
|
401
|
+
},
|
|
402
|
+
{ abortEarly: false, allowUnknown: false }
|
|
403
|
+
);
|
|
404
|
+
if (warrning) {
|
|
405
|
+
console.log(
|
|
406
|
+
"Parameter Validation warrnings for saveSubscriptionSetupIntent"
|
|
407
|
+
);
|
|
408
|
+
console.log(warrning);
|
|
409
|
+
}
|
|
410
|
+
|
|
284
411
|
const query_params = {};
|
|
285
412
|
|
|
286
413
|
const xHeaders = {};
|
|
@@ -312,6 +439,18 @@ class Payment {
|
|
|
312
439
|
return Promise.reject(new FDKClientValidationError(error));
|
|
313
440
|
}
|
|
314
441
|
|
|
442
|
+
// Showing warrnings if extra unknown parameters are found
|
|
443
|
+
const { error: warrning } = PaymentValidator.verifyIfscCode().validate(
|
|
444
|
+
{
|
|
445
|
+
ifscCode,
|
|
446
|
+
},
|
|
447
|
+
{ abortEarly: false, allowUnknown: false }
|
|
448
|
+
);
|
|
449
|
+
if (warrning) {
|
|
450
|
+
console.log("Parameter Validation warrnings for verifyIfscCode");
|
|
451
|
+
console.log(warrning);
|
|
452
|
+
}
|
|
453
|
+
|
|
315
454
|
const query_params = {};
|
|
316
455
|
query_params["ifsc_code"] = ifscCode;
|
|
317
456
|
|