@gofynd/fdk-client-javascript 3.15.0 → 3.16.0

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 (58) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -1
  4. package/sdk/application/Order/OrderApplicationClient.js +50 -1
  5. package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -20
  6. package/sdk/application/Payment/PaymentApplicationClient.js +0 -77
  7. package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
  8. package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
  9. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2 -2
  10. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1 -1
  11. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
  12. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  13. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
  14. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  15. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +10 -0
  16. package/sdk/platform/Cart/CartPlatformApplicationClient.js +95 -0
  17. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +47 -1
  18. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +29 -0
  19. package/sdk/platform/Cart/CartPlatformModel.d.ts +17 -3
  20. package/sdk/platform/Cart/CartPlatformModel.js +14 -1
  21. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
  22. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +13 -16
  23. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +17 -20
  24. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +10 -11
  25. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  26. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  27. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -37
  28. package/sdk/platform/Catalog/CatalogPlatformModel.js +33 -28
  29. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +2 -2
  30. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -2
  31. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
  32. package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
  33. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
  34. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
  35. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -2
  36. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1 -1
  37. package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -2
  38. package/sdk/platform/Content/ContentPlatformModel.js +1 -1
  39. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
  40. package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
  41. package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
  42. package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
  43. package/sdk/platform/Order/OrderPlatformModel.d.ts +2 -2
  44. package/sdk/platform/Order/OrderPlatformModel.js +1 -1
  45. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +0 -23
  46. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +0 -161
  47. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -19
  48. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +0 -24
  49. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1 -159
  50. package/sdk/platform/Payment/PaymentPlatformModel.js +0 -112
  51. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
  52. package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
  53. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +67 -49
  54. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +45 -42
  55. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
  56. package/sdk/platform/Share/SharePlatformModel.js +1 -1
  57. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
  58. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
@@ -451,7 +451,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
451
451
 
452
452
  /**
453
453
  * @typedef ListCategoriesParam
454
- * @property {string} [level] - Get category for multiple levels
454
+ * @property {number[]} [level] - Get category for multiple levels
455
455
  * @property {number} [department] - Get category for multiple departments filtered
456
456
  * @property {string} [q] - Get multiple categories filtered by search string
457
457
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -1154,7 +1154,7 @@ class CatalogPlatformValidator {
1154
1154
  /** @returns {ListCategoriesParam} */
1155
1155
  static listCategories() {
1156
1156
  return Joi.object({
1157
- level: Joi.string().allow(""),
1157
+ level: Joi.array().items(Joi.number()),
1158
1158
  department: Joi.number(),
1159
1159
  q: Joi.string().allow(""),
1160
1160
  pageNo: Joi.number(),
@@ -836,7 +836,7 @@ export = CommunicationPlatformModel;
836
836
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
837
837
  * @property {boolean} [has_next] - Indicates whether there is a next page.
838
838
  * @property {number} [current] - The current page number.
839
- * @property {string} type - The type of the page, such as 'PageType'.
839
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
840
840
  * @property {number} [size] - The number of items per page.
841
841
  * @property {number} [page_size] - The number of items per page.
842
842
  */
@@ -1926,7 +1926,7 @@ type Page = {
1926
1926
  */
1927
1927
  current?: number;
1928
1928
  /**
1929
- * - The type of the page, such as 'PageType'.
1929
+ * - The type of the page, can be 'cursor' or 'number'.
1930
1930
  */
1931
1931
  type: string;
1932
1932
  /**
@@ -948,7 +948,7 @@ const Joi = require("joi");
948
948
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
949
949
  * @property {boolean} [has_next] - Indicates whether there is a next page.
950
950
  * @property {number} [current] - The current page number.
951
- * @property {string} type - The type of the page, such as 'PageType'.
951
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
952
952
  * @property {number} [size] - The number of items per page.
953
953
  * @property {number} [page_size] - The number of items per page.
954
954
  */
@@ -264,7 +264,7 @@ export = CompanyProfilePlatformModel;
264
264
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
265
265
  * @property {boolean} [has_next] - Indicates whether there is a next page.
266
266
  * @property {number} [current] - The current page number.
267
- * @property {string} type - The type of the page, such as 'PageType'.
267
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
268
268
  * @property {number} [size] - The number of items per page.
269
269
  * @property {number} [page_size] - The number of items per page.
270
270
  */
@@ -765,7 +765,7 @@ type Page = {
765
765
  */
766
766
  current?: number;
767
767
  /**
768
- * - The type of the page, such as 'PageType'.
768
+ * - The type of the page, can be 'cursor' or 'number'.
769
769
  */
770
770
  type: string;
771
771
  /**
@@ -291,7 +291,7 @@ const Joi = require("joi");
291
291
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
292
292
  * @property {boolean} [has_next] - Indicates whether there is a next page.
293
293
  * @property {number} [current] - The current page number.
294
- * @property {string} type - The type of the page, such as 'PageType'.
294
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
295
295
  * @property {number} [size] - The number of items per page.
296
296
  * @property {number} [page_size] - The number of items per page.
297
297
  */
@@ -1183,7 +1183,7 @@ export = ConfigurationPlatformModel;
1183
1183
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
1184
1184
  * @property {boolean} [has_next] - Indicates whether there is a next page.
1185
1185
  * @property {number} [current] - The current page number.
1186
- * @property {string} type - The type of the page, such as 'PageType'.
1186
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
1187
1187
  * @property {number} [size] - The number of items per page.
1188
1188
  * @property {number} [page_size] - The number of items per page.
1189
1189
  */
@@ -3795,7 +3795,7 @@ type Page = {
3795
3795
  */
3796
3796
  current?: number;
3797
3797
  /**
3798
- * - The type of the page, such as 'PageType'.
3798
+ * - The type of the page, can be 'cursor' or 'number'.
3799
3799
  */
3800
3800
  type: string;
3801
3801
  /**
@@ -1335,7 +1335,7 @@ const Joi = require("joi");
1335
1335
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
1336
1336
  * @property {boolean} [has_next] - Indicates whether there is a next page.
1337
1337
  * @property {number} [current] - The current page number.
1338
- * @property {string} type - The type of the page, such as 'PageType'.
1338
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
1339
1339
  * @property {number} [size] - The number of items per page.
1340
1340
  * @property {number} [page_size] - The number of items per page.
1341
1341
  */
@@ -523,7 +523,7 @@ export = ContentPlatformModel;
523
523
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
524
524
  * @property {boolean} [has_next] - Indicates whether there is a next page.
525
525
  * @property {number} [current] - The current page number.
526
- * @property {string} type - The type of the page, such as 'PageType'.
526
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
527
527
  * @property {number} [size] - The number of items per page.
528
528
  * @property {number} [page_size] - The number of items per page.
529
529
  */
@@ -2245,7 +2245,7 @@ type Page = {
2245
2245
  */
2246
2246
  current?: number;
2247
2247
  /**
2248
- * - The type of the page, such as 'PageType'.
2248
+ * - The type of the page, can be 'cursor' or 'number'.
2249
2249
  */
2250
2250
  type: string;
2251
2251
  /**
@@ -594,7 +594,7 @@ const Joi = require("joi");
594
594
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
595
595
  * @property {boolean} [has_next] - Indicates whether there is a next page.
596
596
  * @property {number} [current] - The current page number.
597
- * @property {string} type - The type of the page, such as 'PageType'.
597
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
598
598
  * @property {number} [size] - The number of items per page.
599
599
  * @property {number} [page_size] - The number of items per page.
600
600
  */
@@ -148,7 +148,7 @@ export = DiscountPlatformModel;
148
148
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
149
149
  * @property {boolean} [has_next] - Indicates whether there is a next page.
150
150
  * @property {number} [current] - The current page number.
151
- * @property {string} type - The type of the page, such as 'PageType'.
151
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
152
152
  * @property {number} [size] - The number of items per page.
153
153
  * @property {number} [page_size] - The number of items per page.
154
154
  */
@@ -609,7 +609,7 @@ type Page = {
609
609
  */
610
610
  current?: number;
611
611
  /**
612
- * - The type of the page, such as 'PageType'.
612
+ * - The type of the page, can be 'cursor' or 'number'.
613
613
  */
614
614
  type: string;
615
615
  /**
@@ -161,7 +161,7 @@ const Joi = require("joi");
161
161
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
162
162
  * @property {boolean} [has_next] - Indicates whether there is a next page.
163
163
  * @property {number} [current] - The current page number.
164
- * @property {string} type - The type of the page, such as 'PageType'.
164
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
165
165
  * @property {number} [size] - The number of items per page.
166
166
  * @property {number} [page_size] - The number of items per page.
167
167
  */
@@ -45,7 +45,7 @@ export = LeadPlatformModel;
45
45
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
46
46
  * @property {boolean} [has_next] - Indicates whether there is a next page.
47
47
  * @property {number} [current] - The current page number.
48
- * @property {string} type - The type of the page, such as 'PageType'.
48
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
49
49
  * @property {number} [size] - The number of items per page.
50
50
  * @property {number} [page_size] - The number of items per page.
51
51
  */
@@ -362,7 +362,7 @@ type Page = {
362
362
  */
363
363
  current?: number;
364
364
  /**
365
- * - The type of the page, such as 'PageType'.
365
+ * - The type of the page, can be 'cursor' or 'number'.
366
366
  */
367
367
  type: string;
368
368
  /**
@@ -51,7 +51,7 @@ const Joi = require("joi");
51
51
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
52
52
  * @property {boolean} [has_next] - Indicates whether there is a next page.
53
53
  * @property {number} [current] - The current page number.
54
- * @property {string} type - The type of the page, such as 'PageType'.
54
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
55
55
  * @property {number} [size] - The number of items per page.
56
56
  * @property {number} [page_size] - The number of items per page.
57
57
  */
@@ -2997,7 +2997,7 @@ export = OrderPlatformModel;
2997
2997
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
2998
2998
  * @property {boolean} [has_next] - Indicates whether there is a next page.
2999
2999
  * @property {number} [current] - The current page number.
3000
- * @property {string} type - The type of the page, such as 'PageType'.
3000
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
3001
3001
  * @property {number} [size] - The number of items per page.
3002
3002
  * @property {number} [page_size] - The number of items per page.
3003
3003
  */
@@ -11603,7 +11603,7 @@ type Page = {
11603
11603
  */
11604
11604
  current?: number;
11605
11605
  /**
11606
- * - The type of the page, such as 'PageType'.
11606
+ * - The type of the page, can be 'cursor' or 'number'.
11607
11607
  */
11608
11608
  type: string;
11609
11609
  /**
@@ -3266,7 +3266,7 @@ const Joi = require("joi");
3266
3266
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
3267
3267
  * @property {boolean} [has_next] - Indicates whether there is a next page.
3268
3268
  * @property {number} [current] - The current page number.
3269
- * @property {string} type - The type of the page, such as 'PageType'.
3269
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
3270
3270
  * @property {number} [size] - The number of items per page.
3271
3271
  * @property {number} [page_size] - The number of items per page.
3272
3272
  */
@@ -315,19 +315,6 @@ declare class Payment {
315
315
  * @description: Initiates the payment procedure for an order.Upon successful initiation, it returns a details including the success status, aggregator information, payment method, status, merchant order ID aggregator order , polling URL, timeout, virtual ID, Razorpay payment ID, customer ID, and device ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/initialisePayment/).
316
316
  */
317
317
  initialisePayment({ body, requestHeaders }?: PaymentPlatformApplicationValidator.InitialisePaymentParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.PaymentInitializationDetails>;
318
- /**
319
- * @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg
320
- * - Arg object
321
- *
322
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
323
- * @param {import("../PlatformAPIClient").Options} - Options
324
- * @returns {Promise<PaymentPlatformModel.MerchantOnBoardingDetails>} -
325
- * Success response
326
- * @name merchantOnBoarding
327
- * @summary: Merchant onboarding for BNPL
328
- * @description: Initiate the merchant onboarding process for Buy Now Pay Later (BNPL). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/merchantOnBoarding/).
329
- */
330
- merchantOnBoarding({ body, requestHeaders }?: PaymentPlatformApplicationValidator.MerchantOnBoardingParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.MerchantOnBoardingDetails>;
331
318
  /**
332
319
  * @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
333
320
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -404,16 +391,6 @@ declare class Payment {
404
391
  * @description: Periodically checks the status of a payment link to monitor for any updates or changes.retrieve real-time information about the payment link's current status, such as whether it has been processed, cancelled, or expired. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/pollingPaymentLink/).
405
392
  */
406
393
  pollingPaymentLink({ paymentLinkId, requestHeaders }?: PaymentPlatformApplicationValidator.PollingPaymentLinkParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.PollingPaymentLinkDetails>;
407
- /**
408
- * @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
409
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
410
- * @param {import("../PlatformAPIClient").Options} - Options
411
- * @returns {Promise<PaymentPlatformModel.RepaymentDetails>} - Success response
412
- * @name repaymentDetails
413
- * @summary: Repayment details for BNPL
414
- * @description: Retrieve repayment details for Buy Now Pay Later (BNPL) payment - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/repaymentDetails/).
415
- */
416
- repaymentDetails({ body, requestHeaders }?: PaymentPlatformApplicationValidator.RepaymentDetailsParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.RepaymentDetails>;
417
394
  /**
418
395
  * @param {PaymentPlatformApplicationValidator.ResendOrCancelPaymentParam} arg
419
396
  * - Arg object
@@ -2151,88 +2151,6 @@ class Payment {
2151
2151
  return response;
2152
2152
  }
2153
2153
 
2154
- /**
2155
- * @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg
2156
- * - Arg object
2157
- *
2158
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2159
- * @param {import("../PlatformAPIClient").Options} - Options
2160
- * @returns {Promise<PaymentPlatformModel.MerchantOnBoardingDetails>} -
2161
- * Success response
2162
- * @name merchantOnBoarding
2163
- * @summary: Merchant onboarding for BNPL
2164
- * @description: Initiate the merchant onboarding process for Buy Now Pay Later (BNPL). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/merchantOnBoarding/).
2165
- */
2166
- async merchantOnBoarding(
2167
- { body, requestHeaders } = { requestHeaders: {} },
2168
- { responseHeaders } = { responseHeaders: false }
2169
- ) {
2170
- const {
2171
- error,
2172
- } = PaymentPlatformApplicationValidator.merchantOnBoarding().validate(
2173
- {
2174
- body,
2175
- },
2176
- { abortEarly: false, allowUnknown: true }
2177
- );
2178
- if (error) {
2179
- return Promise.reject(new FDKClientValidationError(error));
2180
- }
2181
-
2182
- // Showing warrnings if extra unknown parameters are found
2183
- const {
2184
- error: warrning,
2185
- } = PaymentPlatformApplicationValidator.merchantOnBoarding().validate(
2186
- {
2187
- body,
2188
- },
2189
- { abortEarly: false, allowUnknown: false }
2190
- );
2191
- if (warrning) {
2192
- Logger({
2193
- level: "WARN",
2194
- message: `Parameter Validation warrnings for platform > Payment > merchantOnBoarding \n ${warrning}`,
2195
- });
2196
- }
2197
-
2198
- const query_params = {};
2199
-
2200
- const response = await PlatformAPIClient.execute(
2201
- this.config,
2202
- "post",
2203
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchant-onboarding`,
2204
- query_params,
2205
- body,
2206
- requestHeaders,
2207
- { responseHeaders }
2208
- );
2209
-
2210
- let responseData = response;
2211
- if (responseHeaders) {
2212
- responseData = response[0];
2213
- }
2214
-
2215
- const {
2216
- error: res_error,
2217
- } = PaymentPlatformModel.MerchantOnBoardingDetails().validate(
2218
- responseData,
2219
- { abortEarly: false, allowUnknown: true }
2220
- );
2221
-
2222
- if (res_error) {
2223
- if (this.config.options.strictResponseCheck === true) {
2224
- return Promise.reject(new FDKResponseValidationError(res_error));
2225
- } else {
2226
- Logger({
2227
- level: "WARN",
2228
- message: `Response Validation Warnings for platform > Payment > merchantOnBoarding \n ${res_error}`,
2229
- });
2230
- }
2231
- }
2232
-
2233
- return response;
2234
- }
2235
-
2236
2154
  /**
2237
2155
  * @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
2238
2156
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -2736,85 +2654,6 @@ class Payment {
2736
2654
  return response;
2737
2655
  }
2738
2656
 
2739
- /**
2740
- * @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
2741
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2742
- * @param {import("../PlatformAPIClient").Options} - Options
2743
- * @returns {Promise<PaymentPlatformModel.RepaymentDetails>} - Success response
2744
- * @name repaymentDetails
2745
- * @summary: Repayment details for BNPL
2746
- * @description: Retrieve repayment details for Buy Now Pay Later (BNPL) payment - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/repaymentDetails/).
2747
- */
2748
- async repaymentDetails(
2749
- { body, requestHeaders } = { requestHeaders: {} },
2750
- { responseHeaders } = { responseHeaders: false }
2751
- ) {
2752
- const {
2753
- error,
2754
- } = PaymentPlatformApplicationValidator.repaymentDetails().validate(
2755
- {
2756
- body,
2757
- },
2758
- { abortEarly: false, allowUnknown: true }
2759
- );
2760
- if (error) {
2761
- return Promise.reject(new FDKClientValidationError(error));
2762
- }
2763
-
2764
- // Showing warrnings if extra unknown parameters are found
2765
- const {
2766
- error: warrning,
2767
- } = PaymentPlatformApplicationValidator.repaymentDetails().validate(
2768
- {
2769
- body,
2770
- },
2771
- { abortEarly: false, allowUnknown: false }
2772
- );
2773
- if (warrning) {
2774
- Logger({
2775
- level: "WARN",
2776
- message: `Parameter Validation warrnings for platform > Payment > repaymentDetails \n ${warrning}`,
2777
- });
2778
- }
2779
-
2780
- const query_params = {};
2781
-
2782
- const response = await PlatformAPIClient.execute(
2783
- this.config,
2784
- "post",
2785
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/repayment-details`,
2786
- query_params,
2787
- body,
2788
- requestHeaders,
2789
- { responseHeaders }
2790
- );
2791
-
2792
- let responseData = response;
2793
- if (responseHeaders) {
2794
- responseData = response[0];
2795
- }
2796
-
2797
- const {
2798
- error: res_error,
2799
- } = PaymentPlatformModel.RepaymentDetails().validate(responseData, {
2800
- abortEarly: false,
2801
- allowUnknown: true,
2802
- });
2803
-
2804
- if (res_error) {
2805
- if (this.config.options.strictResponseCheck === true) {
2806
- return Promise.reject(new FDKResponseValidationError(res_error));
2807
- } else {
2808
- Logger({
2809
- level: "WARN",
2810
- message: `Response Validation Warnings for platform > Payment > repaymentDetails \n ${res_error}`,
2811
- });
2812
- }
2813
- }
2814
-
2815
- return response;
2816
- }
2817
-
2818
2657
  /**
2819
2658
  * @param {PaymentPlatformApplicationValidator.ResendOrCancelPaymentParam} arg
2820
2659
  * - Arg object
@@ -132,10 +132,6 @@ export = PaymentPlatformApplicationValidator;
132
132
  * @typedef InitialisePaymentParam
133
133
  * @property {PaymentPlatformModel.PaymentInitializationCreation} body
134
134
  */
135
- /**
136
- * @typedef MerchantOnBoardingParam
137
- * @property {PaymentPlatformModel.MerchantOnBoardingCreation} body
138
- */
139
135
  /**
140
136
  * @typedef OauthGetUrlParam
141
137
  * @property {string} aggregator - Aggregator
@@ -164,10 +160,6 @@ export = PaymentPlatformApplicationValidator;
164
160
  * @typedef PollingPaymentLinkParam
165
161
  * @property {string} paymentLinkId
166
162
  */
167
- /**
168
- * @typedef RepaymentDetailsParam
169
- * @property {PaymentPlatformModel.RepaymentDetailsSerialiserPayAll} body
170
- */
171
163
  /**
172
164
  * @typedef ResendOrCancelPaymentParam
173
165
  * @property {PaymentPlatformModel.ResendOrCancelPaymentCreation} body
@@ -278,8 +270,6 @@ declare class PaymentPlatformApplicationValidator {
278
270
  static getUserOrderBeneficiaries(): GetUserOrderBeneficiariesParam;
279
271
  /** @returns {InitialisePaymentParam} */
280
272
  static initialisePayment(): InitialisePaymentParam;
281
- /** @returns {MerchantOnBoardingParam} */
282
- static merchantOnBoarding(): MerchantOnBoardingParam;
283
273
  /** @returns {OauthGetUrlParam} */
284
274
  static oauthGetUrl(): OauthGetUrlParam;
285
275
  /** @returns {PatchMerchantAggregatorPaymentModeDetailsParam} */
@@ -292,8 +282,6 @@ declare class PaymentPlatformApplicationValidator {
292
282
  static paymentStatusBulk(): PaymentStatusBulkParam;
293
283
  /** @returns {PollingPaymentLinkParam} */
294
284
  static pollingPaymentLink(): PollingPaymentLinkParam;
295
- /** @returns {RepaymentDetailsParam} */
296
- static repaymentDetails(): RepaymentDetailsParam;
297
285
  /** @returns {ResendOrCancelPaymentParam} */
298
286
  static resendOrCancelPayment(): ResendOrCancelPaymentParam;
299
287
  /** @returns {ResendPaymentLinkParam} */
@@ -320,7 +308,7 @@ declare class PaymentPlatformApplicationValidator {
320
308
  static verifyCustomerForPayment(): VerifyCustomerForPaymentParam;
321
309
  }
322
310
  declare namespace PaymentPlatformApplicationValidator {
323
- export { AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, ValidateCustomerAndCreditSummaryParam, VerifyCustomerForPaymentParam };
311
+ export { AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, ValidateCustomerAndCreditSummaryParam, VerifyCustomerForPaymentParam };
324
312
  }
325
313
  type AddRefundBankAccountUsingOTPParam = {
326
314
  body: PaymentPlatformModel.AddBeneficiaryDetailsOTPCreation;
@@ -505,9 +493,6 @@ type GetUserOrderBeneficiariesParam = {
505
493
  type InitialisePaymentParam = {
506
494
  body: PaymentPlatformModel.PaymentInitializationCreation;
507
495
  };
508
- type MerchantOnBoardingParam = {
509
- body: PaymentPlatformModel.MerchantOnBoardingCreation;
510
- };
511
496
  type OauthGetUrlParam = {
512
497
  /**
513
498
  * - Aggregator
@@ -539,9 +524,6 @@ type PaymentStatusBulkParam = {
539
524
  type PollingPaymentLinkParam = {
540
525
  paymentLinkId: string;
541
526
  };
542
- type RepaymentDetailsParam = {
543
- body: PaymentPlatformModel.RepaymentDetailsSerialiserPayAll;
544
- };
545
527
  type ResendOrCancelPaymentParam = {
546
528
  body: PaymentPlatformModel.ResendOrCancelPaymentCreation;
547
529
  };
@@ -160,11 +160,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
160
160
  * @property {PaymentPlatformModel.PaymentInitializationCreation} body
161
161
  */
162
162
 
163
- /**
164
- * @typedef MerchantOnBoardingParam
165
- * @property {PaymentPlatformModel.MerchantOnBoardingCreation} body
166
- */
167
-
168
163
  /**
169
164
  * @typedef OauthGetUrlParam
170
165
  * @property {string} aggregator - Aggregator
@@ -199,11 +194,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
199
194
  * @property {string} paymentLinkId
200
195
  */
201
196
 
202
- /**
203
- * @typedef RepaymentDetailsParam
204
- * @property {PaymentPlatformModel.RepaymentDetailsSerialiserPayAll} body
205
- */
206
-
207
197
  /**
208
198
  * @typedef ResendOrCancelPaymentParam
209
199
  * @property {PaymentPlatformModel.ResendOrCancelPaymentCreation} body
@@ -474,13 +464,6 @@ class PaymentPlatformApplicationValidator {
474
464
  }).required();
475
465
  }
476
466
 
477
- /** @returns {MerchantOnBoardingParam} */
478
- static merchantOnBoarding() {
479
- return Joi.object({
480
- body: PaymentPlatformModel.MerchantOnBoardingCreation().required(),
481
- }).required();
482
- }
483
-
484
467
  /** @returns {OauthGetUrlParam} */
485
468
  static oauthGetUrl() {
486
469
  return Joi.object({
@@ -527,13 +510,6 @@ class PaymentPlatformApplicationValidator {
527
510
  }).required();
528
511
  }
529
512
 
530
- /** @returns {RepaymentDetailsParam} */
531
- static repaymentDetails() {
532
- return Joi.object({
533
- body: PaymentPlatformModel.RepaymentDetailsSerialiserPayAll().required(),
534
- }).required();
535
- }
536
-
537
513
  /** @returns {ResendOrCancelPaymentParam} */
538
514
  static resendOrCancelPayment() {
539
515
  return Joi.object({