@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.
Files changed (104) hide show
  1. package/documentation/application/CATALOG.md +371 -371
  2. package/documentation/application/ORDER.md +272 -272
  3. package/documentation/application/PAYMENT.md +269 -269
  4. package/documentation/platform/CATALOG.md +1678 -1664
  5. package/documentation/platform/COMPANYPROFILE.md +201 -201
  6. package/documentation/platform/ORDER.md +1442 -1323
  7. package/documentation/platform/PAYMENT.md +88 -88
  8. package/index.js +7 -1
  9. package/package.json +1 -1
  10. package/sdk/application/Cart/CartApplicationClient.js +302 -0
  11. package/sdk/application/Cart/CartApplicationValidator.js +1 -0
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
  16. package/sdk/application/Common/CommonApplicationClient.js +22 -0
  17. package/sdk/application/Common/CommonApplicationValidator.js +1 -0
  18. package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
  19. package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
  21. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  22. package/sdk/application/Content/ContentApplicationClient.js +215 -0
  23. package/sdk/application/Content/ContentApplicationValidator.js +1 -0
  24. package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
  25. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
  26. package/sdk/application/Lead/LeadApplicationClient.js +81 -0
  27. package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
  29. package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
  30. package/sdk/application/Order/OrderApplicationClient.js +146 -0
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
  32. package/sdk/application/Order/OrderApplicationModel.js +329 -329
  33. package/sdk/application/Order/OrderApplicationValidator.js +1 -0
  34. package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
  35. package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
  36. package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
  37. package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
  38. package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
  39. package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
  40. package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
  41. package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
  42. package/sdk/application/Share/ShareApplicationClient.js +87 -0
  43. package/sdk/application/Share/ShareApplicationValidator.js +1 -0
  44. package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
  45. package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
  46. package/sdk/application/User/UserApplicationClient.js +405 -0
  47. package/sdk/application/User/UserApplicationValidator.js +1 -0
  48. package/sdk/common/AxiosHelper.js +1 -1
  49. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
  52. package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
  53. package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
  54. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
  55. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
  56. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
  58. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
  59. package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
  60. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
  61. package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
  62. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
  63. package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
  64. package/sdk/platform/Common/CommonPlatformClient.js +26 -0
  65. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
  66. package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
  69. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
  70. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
  71. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
  73. package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
  74. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
  75. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
  76. package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
  77. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
  78. package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
  79. package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
  80. package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
  81. package/sdk/platform/Order/OrderPlatformClient.js +674 -15
  82. package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
  83. package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
  84. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
  85. package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
  86. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
  87. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
  88. package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
  89. package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
  90. package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
  91. package/sdk/platform/PlatformApplicationClient.js +2514 -2524
  92. package/sdk/platform/PlatformClient.d.ts +2217 -2243
  93. package/sdk/platform/PlatformClient.js +2514 -2524
  94. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
  95. package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
  96. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
  97. package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
  98. package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
  99. package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
  100. package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
  101. package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
  102. package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
  103. package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
  104. package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
@@ -23,6 +23,18 @@ class Analytics {
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
+ } = AnalyticsValidator.getStatiscticsGroups().validate(
30
+ {},
31
+ { abortEarly: false, allowUnknown: false }
32
+ );
33
+ if (warrning) {
34
+ console.log("Parameter Validation warrnings for getStatiscticsGroups");
35
+ console.log(warrning);
36
+ }
37
+
26
38
  const query_params = {};
27
39
 
28
40
  return PlatformAPIClient.execute(
@@ -53,6 +65,22 @@ class Analytics {
53
65
  return Promise.reject(new FDKClientValidationError(error));
54
66
  }
55
67
 
68
+ // Showing warrnings if extra unknown parameters are found
69
+ const {
70
+ error: warrning,
71
+ } = AnalyticsValidator.getStatiscticsGroupComponents().validate(
72
+ {
73
+ groupName,
74
+ },
75
+ { abortEarly: false, allowUnknown: false }
76
+ );
77
+ if (warrning) {
78
+ console.log(
79
+ "Parameter Validation warrnings for getStatiscticsGroupComponents"
80
+ );
81
+ console.log(warrning);
82
+ }
83
+
56
84
  const query_params = {};
57
85
 
58
86
  return PlatformAPIClient.execute(
@@ -81,6 +109,20 @@ class Analytics {
81
109
  return Promise.reject(new FDKClientValidationError(error));
82
110
  }
83
111
 
112
+ // Showing warrnings if extra unknown parameters are found
113
+ const {
114
+ error: warrning,
115
+ } = AnalyticsValidator.getComponentStatsCSV().validate(
116
+ {
117
+ componentName,
118
+ },
119
+ { abortEarly: false, allowUnknown: false }
120
+ );
121
+ if (warrning) {
122
+ console.log("Parameter Validation warrnings for getComponentStatsCSV");
123
+ console.log(warrning);
124
+ }
125
+
84
126
  const query_params = {};
85
127
 
86
128
  return PlatformAPIClient.execute(
@@ -109,6 +151,20 @@ class Analytics {
109
151
  return Promise.reject(new FDKClientValidationError(error));
110
152
  }
111
153
 
154
+ // Showing warrnings if extra unknown parameters are found
155
+ const {
156
+ error: warrning,
157
+ } = AnalyticsValidator.getComponentStatsPDF().validate(
158
+ {
159
+ componentName,
160
+ },
161
+ { abortEarly: false, allowUnknown: false }
162
+ );
163
+ if (warrning) {
164
+ console.log("Parameter Validation warrnings for getComponentStatsPDF");
165
+ console.log(warrning);
166
+ }
167
+
112
168
  const query_params = {};
113
169
 
114
170
  return PlatformAPIClient.execute(
@@ -137,6 +193,18 @@ class Analytics {
137
193
  return Promise.reject(new FDKClientValidationError(error));
138
194
  }
139
195
 
196
+ // Showing warrnings if extra unknown parameters are found
197
+ const { error: warrning } = AnalyticsValidator.getComponentStats().validate(
198
+ {
199
+ componentName,
200
+ },
201
+ { abortEarly: false, allowUnknown: false }
202
+ );
203
+ if (warrning) {
204
+ console.log("Parameter Validation warrnings for getComponentStats");
205
+ console.log(warrning);
206
+ }
207
+
140
208
  const query_params = {};
141
209
 
142
210
  return PlatformAPIClient.execute(
@@ -171,6 +239,23 @@ class Analytics {
171
239
  return Promise.reject(new FDKClientValidationError(error));
172
240
  }
173
241
 
242
+ // Showing warrnings if extra unknown parameters are found
243
+ const {
244
+ error: warrning,
245
+ } = AnalyticsValidator.getAbandonCartList().validate(
246
+ {
247
+ fromDate,
248
+ toDate,
249
+ pageNo,
250
+ pageSize,
251
+ },
252
+ { abortEarly: false, allowUnknown: false }
253
+ );
254
+ if (warrning) {
255
+ console.log("Parameter Validation warrnings for getAbandonCartList");
256
+ console.log(warrning);
257
+ }
258
+
174
259
  const query_params = {};
175
260
  query_params["page_no"] = pageNo;
176
261
  query_params["page_size"] = pageSize;
@@ -243,6 +328,21 @@ class Analytics {
243
328
  return Promise.reject(new FDKClientValidationError(error));
244
329
  }
245
330
 
331
+ // Showing warrnings if extra unknown parameters are found
332
+ const {
333
+ error: warrning,
334
+ } = AnalyticsValidator.getAbandonCartsCSV().validate(
335
+ {
336
+ fromDate,
337
+ toDate,
338
+ },
339
+ { abortEarly: false, allowUnknown: false }
340
+ );
341
+ if (warrning) {
342
+ console.log("Parameter Validation warrnings for getAbandonCartsCSV");
343
+ console.log(warrning);
344
+ }
345
+
246
346
  const query_params = {};
247
347
 
248
348
  return PlatformAPIClient.execute(
@@ -271,6 +371,20 @@ class Analytics {
271
371
  return Promise.reject(new FDKClientValidationError(error));
272
372
  }
273
373
 
374
+ // Showing warrnings if extra unknown parameters are found
375
+ const {
376
+ error: warrning,
377
+ } = AnalyticsValidator.getAbandonCartDetail().validate(
378
+ {
379
+ cartId,
380
+ },
381
+ { abortEarly: false, allowUnknown: false }
382
+ );
383
+ if (warrning) {
384
+ console.log("Parameter Validation warrnings for getAbandonCartDetail");
385
+ console.log(warrning);
386
+ }
387
+
274
388
  const query_params = {};
275
389
 
276
390
  return PlatformAPIClient.execute(
@@ -26,6 +26,19 @@ class Analytics {
26
26
  return Promise.reject(new FDKClientValidationError(error));
27
27
  }
28
28
 
29
+ // Showing warrnings if extra unknown parameters are found
30
+ const { error: warrning } = AnalyticsValidator.createExportJob().validate(
31
+ {
32
+ exportType,
33
+ body,
34
+ },
35
+ { abortEarly: false, allowUnknown: false }
36
+ );
37
+ if (warrning) {
38
+ console.log("Parameter Validation warrnings for createExportJob");
39
+ console.log(warrning);
40
+ }
41
+
29
42
  const query_params = {};
30
43
 
31
44
  const xHeaders = {};
@@ -59,6 +72,21 @@ class Analytics {
59
72
  return Promise.reject(new FDKClientValidationError(error));
60
73
  }
61
74
 
75
+ // Showing warrnings if extra unknown parameters are found
76
+ const {
77
+ error: warrning,
78
+ } = AnalyticsValidator.getExportJobStatus().validate(
79
+ {
80
+ exportType,
81
+ jobId,
82
+ },
83
+ { abortEarly: false, allowUnknown: false }
84
+ );
85
+ if (warrning) {
86
+ console.log("Parameter Validation warrnings for getExportJobStatus");
87
+ console.log(warrning);
88
+ }
89
+
62
90
  const query_params = {};
63
91
 
64
92
  const xHeaders = {};
@@ -96,6 +124,21 @@ class Analytics {
96
124
  return Promise.reject(new FDKClientValidationError(error));
97
125
  }
98
126
 
127
+ // Showing warrnings if extra unknown parameters are found
128
+ const { error: warrning } = AnalyticsValidator.getLogsList().validate(
129
+ {
130
+ logType,
131
+ body,
132
+ pageNo,
133
+ pageSize,
134
+ },
135
+ { abortEarly: false, allowUnknown: false }
136
+ );
137
+ if (warrning) {
138
+ console.log("Parameter Validation warrnings for getLogsList");
139
+ console.log(warrning);
140
+ }
141
+
99
142
  const query_params = {};
100
143
  query_params["page_no"] = pageNo;
101
144
  query_params["page_size"] = pageSize;
@@ -165,6 +208,21 @@ class Analytics {
165
208
  return Promise.reject(new FDKClientValidationError(error));
166
209
  }
167
210
 
211
+ // Showing warrnings if extra unknown parameters are found
212
+ const { error: warrning } = AnalyticsValidator.searchLogs().validate(
213
+ {
214
+ logType,
215
+ body,
216
+ pageNo,
217
+ pageSize,
218
+ },
219
+ { abortEarly: false, allowUnknown: false }
220
+ );
221
+ if (warrning) {
222
+ console.log("Parameter Validation warrnings for searchLogs");
223
+ console.log(warrning);
224
+ }
225
+
168
226
  const query_params = {};
169
227
  query_params["page_no"] = pageNo;
170
228
  query_params["page_size"] = pageSize;
@@ -24,6 +24,18 @@ class AuditTrail {
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 } = AuditTrailValidator.getAuditLogs().validate(
29
+ {
30
+ qs,
31
+ },
32
+ { abortEarly: false, allowUnknown: false }
33
+ );
34
+ if (warrning) {
35
+ console.log("Parameter Validation warrnings for getAuditLogs");
36
+ console.log(warrning);
37
+ }
38
+
27
39
  const query_params = {};
28
40
  query_params["qs"] = qs;
29
41
 
@@ -56,6 +68,18 @@ class AuditTrail {
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 } = AuditTrailValidator.createAuditLog().validate(
73
+ {
74
+ body,
75
+ },
76
+ { abortEarly: false, allowUnknown: false }
77
+ );
78
+ if (warrning) {
79
+ console.log("Parameter Validation warrnings for createAuditLog");
80
+ console.log(warrning);
81
+ }
82
+
59
83
  const query_params = {};
60
84
 
61
85
  const xHeaders = {};
@@ -87,6 +111,18 @@ class AuditTrail {
87
111
  return Promise.reject(new FDKClientValidationError(error));
88
112
  }
89
113
 
114
+ // Showing warrnings if extra unknown parameters are found
115
+ const { error: warrning } = AuditTrailValidator.getAuditLog().validate(
116
+ {
117
+ id,
118
+ },
119
+ { abortEarly: false, allowUnknown: false }
120
+ );
121
+ if (warrning) {
122
+ console.log("Parameter Validation warrnings for getAuditLog");
123
+ console.log(warrning);
124
+ }
125
+
90
126
  const query_params = {};
91
127
 
92
128
  const xHeaders = {};
@@ -115,6 +151,16 @@ class AuditTrail {
115
151
  return Promise.reject(new FDKClientValidationError(error));
116
152
  }
117
153
 
154
+ // Showing warrnings if extra unknown parameters are found
155
+ const { error: warrning } = AuditTrailValidator.getEntityTypes().validate(
156
+ {},
157
+ { abortEarly: false, allowUnknown: false }
158
+ );
159
+ if (warrning) {
160
+ console.log("Parameter Validation warrnings for getEntityTypes");
161
+ console.log(warrning);
162
+ }
163
+
118
164
  const query_params = {};
119
165
 
120
166
  const xHeaders = {};
@@ -26,6 +26,19 @@ class Billing {
26
26
  return Promise.reject(new FDKClientValidationError(error));
27
27
  }
28
28
 
29
+ // Showing warrnings if extra unknown parameters are found
30
+ const { error: warrning } = BillingValidator.checkCouponValidity().validate(
31
+ {
32
+ plan,
33
+ couponCode,
34
+ },
35
+ { abortEarly: false, allowUnknown: false }
36
+ );
37
+ if (warrning) {
38
+ console.log("Parameter Validation warrnings for checkCouponValidity");
39
+ console.log(warrning);
40
+ }
41
+
29
42
  const query_params = {};
30
43
  query_params["plan"] = plan;
31
44
  query_params["coupon_code"] = couponCode;
@@ -61,6 +74,23 @@ class Billing {
61
74
  return Promise.reject(new FDKClientValidationError(error));
62
75
  }
63
76
 
77
+ // Showing warrnings if extra unknown parameters are found
78
+ const {
79
+ error: warrning,
80
+ } = BillingValidator.createSubscriptionCharge().validate(
81
+ {
82
+ extensionId,
83
+ body,
84
+ },
85
+ { abortEarly: false, allowUnknown: false }
86
+ );
87
+ if (warrning) {
88
+ console.log(
89
+ "Parameter Validation warrnings for createSubscriptionCharge"
90
+ );
91
+ console.log(warrning);
92
+ }
93
+
64
94
  const query_params = {};
65
95
 
66
96
  const xHeaders = {};
@@ -94,6 +124,21 @@ class Billing {
94
124
  return Promise.reject(new FDKClientValidationError(error));
95
125
  }
96
126
 
127
+ // Showing warrnings if extra unknown parameters are found
128
+ const {
129
+ error: warrning,
130
+ } = BillingValidator.getSubscriptionCharge().validate(
131
+ {
132
+ extensionId,
133
+ subscriptionId,
134
+ },
135
+ { abortEarly: false, allowUnknown: false }
136
+ );
137
+ if (warrning) {
138
+ console.log("Parameter Validation warrnings for getSubscriptionCharge");
139
+ console.log(warrning);
140
+ }
141
+
97
142
  const query_params = {};
98
143
 
99
144
  const xHeaders = {};
@@ -127,6 +172,23 @@ class Billing {
127
172
  return Promise.reject(new FDKClientValidationError(error));
128
173
  }
129
174
 
175
+ // Showing warrnings if extra unknown parameters are found
176
+ const {
177
+ error: warrning,
178
+ } = BillingValidator.cancelSubscriptionCharge().validate(
179
+ {
180
+ extensionId,
181
+ subscriptionId,
182
+ },
183
+ { abortEarly: false, allowUnknown: false }
184
+ );
185
+ if (warrning) {
186
+ console.log(
187
+ "Parameter Validation warrnings for cancelSubscriptionCharge"
188
+ );
189
+ console.log(warrning);
190
+ }
191
+
130
192
  const query_params = {};
131
193
 
132
194
  const xHeaders = {};
@@ -155,6 +217,16 @@ class Billing {
155
217
  return Promise.reject(new FDKClientValidationError(error));
156
218
  }
157
219
 
220
+ // Showing warrnings if extra unknown parameters are found
221
+ const { error: warrning } = BillingValidator.getInvoices().validate(
222
+ {},
223
+ { abortEarly: false, allowUnknown: false }
224
+ );
225
+ if (warrning) {
226
+ console.log("Parameter Validation warrnings for getInvoices");
227
+ console.log(warrning);
228
+ }
229
+
158
230
  const query_params = {};
159
231
 
160
232
  const xHeaders = {};
@@ -186,6 +258,18 @@ class Billing {
186
258
  return Promise.reject(new FDKClientValidationError(error));
187
259
  }
188
260
 
261
+ // Showing warrnings if extra unknown parameters are found
262
+ const { error: warrning } = BillingValidator.getInvoiceById().validate(
263
+ {
264
+ invoiceId,
265
+ },
266
+ { abortEarly: false, allowUnknown: false }
267
+ );
268
+ if (warrning) {
269
+ console.log("Parameter Validation warrnings for getInvoiceById");
270
+ console.log(warrning);
271
+ }
272
+
189
273
  const query_params = {};
190
274
 
191
275
  const xHeaders = {};
@@ -214,6 +298,16 @@ class Billing {
214
298
  return Promise.reject(new FDKClientValidationError(error));
215
299
  }
216
300
 
301
+ // Showing warrnings if extra unknown parameters are found
302
+ const { error: warrning } = BillingValidator.getCustomerDetail().validate(
303
+ {},
304
+ { abortEarly: false, allowUnknown: false }
305
+ );
306
+ if (warrning) {
307
+ console.log("Parameter Validation warrnings for getCustomerDetail");
308
+ console.log(warrning);
309
+ }
310
+
217
311
  const query_params = {};
218
312
 
219
313
  const xHeaders = {};
@@ -245,6 +339,20 @@ class Billing {
245
339
  return Promise.reject(new FDKClientValidationError(error));
246
340
  }
247
341
 
342
+ // Showing warrnings if extra unknown parameters are found
343
+ const {
344
+ error: warrning,
345
+ } = BillingValidator.upsertCustomerDetail().validate(
346
+ {
347
+ body,
348
+ },
349
+ { abortEarly: false, allowUnknown: false }
350
+ );
351
+ if (warrning) {
352
+ console.log("Parameter Validation warrnings for upsertCustomerDetail");
353
+ console.log(warrning);
354
+ }
355
+
248
356
  const query_params = {};
249
357
 
250
358
  const xHeaders = {};
@@ -273,6 +381,16 @@ class Billing {
273
381
  return Promise.reject(new FDKClientValidationError(error));
274
382
  }
275
383
 
384
+ // Showing warrnings if extra unknown parameters are found
385
+ const { error: warrning } = BillingValidator.getSubscription().validate(
386
+ {},
387
+ { abortEarly: false, allowUnknown: false }
388
+ );
389
+ if (warrning) {
390
+ console.log("Parameter Validation warrnings for getSubscription");
391
+ console.log(warrning);
392
+ }
393
+
276
394
  const query_params = {};
277
395
 
278
396
  const xHeaders = {};
@@ -301,6 +419,18 @@ class Billing {
301
419
  return Promise.reject(new FDKClientValidationError(error));
302
420
  }
303
421
 
422
+ // Showing warrnings if extra unknown parameters are found
423
+ const {
424
+ error: warrning,
425
+ } = BillingValidator.getFeatureLimitConfig().validate(
426
+ {},
427
+ { abortEarly: false, allowUnknown: false }
428
+ );
429
+ if (warrning) {
430
+ console.log("Parameter Validation warrnings for getFeatureLimitConfig");
431
+ console.log(warrning);
432
+ }
433
+
304
434
  const query_params = {};
305
435
 
306
436
  const xHeaders = {};
@@ -332,6 +462,22 @@ class Billing {
332
462
  return Promise.reject(new FDKClientValidationError(error));
333
463
  }
334
464
 
465
+ // Showing warrnings if extra unknown parameters are found
466
+ const {
467
+ error: warrning,
468
+ } = BillingValidator.activateSubscriptionPlan().validate(
469
+ {
470
+ body,
471
+ },
472
+ { abortEarly: false, allowUnknown: false }
473
+ );
474
+ if (warrning) {
475
+ console.log(
476
+ "Parameter Validation warrnings for activateSubscriptionPlan"
477
+ );
478
+ console.log(warrning);
479
+ }
480
+
335
481
  const query_params = {};
336
482
 
337
483
  const xHeaders = {};
@@ -363,6 +509,20 @@ class Billing {
363
509
  return Promise.reject(new FDKClientValidationError(error));
364
510
  }
365
511
 
512
+ // Showing warrnings if extra unknown parameters are found
513
+ const {
514
+ error: warrning,
515
+ } = BillingValidator.cancelSubscriptionPlan().validate(
516
+ {
517
+ body,
518
+ },
519
+ { abortEarly: false, allowUnknown: false }
520
+ );
521
+ if (warrning) {
522
+ console.log("Parameter Validation warrnings for cancelSubscriptionPlan");
523
+ console.log(warrning);
524
+ }
525
+
366
526
  const query_params = {};
367
527
 
368
528
  const xHeaders = {};