@seekora-ai/admin-api 1.0.75 → 1.0.77

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/dist/api.js CHANGED
@@ -7646,8 +7646,8 @@ const CommonApiAxiosParamCreator = function (configuration) {
7646
7646
  * @param {*} [options] Override http request option.
7647
7647
  * @throws {RequiredError}
7648
7648
  */
7649
- commonLanguagesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7650
- const localVarPath = `/common/languages`;
7649
+ v1CommonLanguagesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7650
+ const localVarPath = `/v1/common/languages`;
7651
7651
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7652
7652
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7653
7653
  let baseOptions;
@@ -7681,12 +7681,12 @@ const CommonApiFp = function (configuration) {
7681
7681
  * @param {*} [options] Override http request option.
7682
7682
  * @throws {RequiredError}
7683
7683
  */
7684
- commonLanguagesGet(options) {
7684
+ v1CommonLanguagesGet(options) {
7685
7685
  return __awaiter(this, void 0, void 0, function* () {
7686
7686
  var _a, _b, _c;
7687
- const localVarAxiosArgs = yield localVarAxiosParamCreator.commonLanguagesGet(options);
7687
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CommonLanguagesGet(options);
7688
7688
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7689
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommonApi.commonLanguagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7689
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommonApi.v1CommonLanguagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7690
7690
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7691
7691
  });
7692
7692
  },
@@ -7706,8 +7706,8 @@ const CommonApiFactory = function (configuration, basePath, axios) {
7706
7706
  * @param {*} [options] Override http request option.
7707
7707
  * @throws {RequiredError}
7708
7708
  */
7709
- commonLanguagesGet(options) {
7710
- return localVarFp.commonLanguagesGet(options).then((request) => request(axios, basePath));
7709
+ v1CommonLanguagesGet(options) {
7710
+ return localVarFp.v1CommonLanguagesGet(options).then((request) => request(axios, basePath));
7711
7711
  },
7712
7712
  };
7713
7713
  };
@@ -7726,8 +7726,8 @@ class CommonApi extends base_1.BaseAPI {
7726
7726
  * @throws {RequiredError}
7727
7727
  * @memberof CommonApi
7728
7728
  */
7729
- commonLanguagesGet(options) {
7730
- return (0, exports.CommonApiFp)(this.configuration).commonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
7729
+ v1CommonLanguagesGet(options) {
7730
+ return (0, exports.CommonApiFp)(this.configuration).v1CommonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
7731
7731
  }
7732
7732
  }
7733
7733
  exports.CommonApi = CommonApi;
@@ -15242,57 +15242,57 @@ exports.ParentMenusApi = ParentMenusApi;
15242
15242
  const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15243
15243
  return {
15244
15244
  /**
15245
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15246
- * @summary Get available credit plans
15245
+ * Creates a payment order using specified or default payment gateway
15246
+ * @summary Create a new payment order
15247
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15247
15248
  * @param {*} [options] Override http request option.
15248
15249
  * @throws {RequiredError}
15249
15250
  */
15250
- adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15251
- const localVarPath = `/admin/payment-gateway/credit-plans`;
15251
+ adminPaymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
15252
+ // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
15253
+ (0, common_1.assertParamExists)('adminPaymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
15254
+ const localVarPath = `/admin/payment-gateway/create-order`;
15252
15255
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15253
15256
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15254
15257
  let baseOptions;
15255
15258
  if (configuration) {
15256
15259
  baseOptions = configuration.baseOptions;
15257
15260
  }
15258
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15261
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15259
15262
  const localVarHeaderParameter = {};
15260
15263
  const localVarQueryParameter = {};
15264
+ // authentication BearerAuth required
15265
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15266
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15261
15267
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15262
15268
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15263
15269
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15270
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
15264
15271
  return {
15265
15272
  url: (0, common_1.toPathString)(localVarUrlObj),
15266
15273
  options: localVarRequestOptions,
15267
15274
  };
15268
15275
  }),
15269
15276
  /**
15270
- * Creates a payment order using specified or default payment gateway
15271
- * @summary Create a new payment order
15272
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15277
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15278
+ * @summary Get available credit plans
15273
15279
  * @param {*} [options] Override http request option.
15274
15280
  * @throws {RequiredError}
15275
15281
  */
15276
- paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
15277
- // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
15278
- (0, common_1.assertParamExists)('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
15279
- const localVarPath = `/payment-gateway/create-order`;
15282
+ adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15283
+ const localVarPath = `/admin/payment-gateway/credit-plans`;
15280
15284
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15281
15285
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15282
15286
  let baseOptions;
15283
15287
  if (configuration) {
15284
15288
  baseOptions = configuration.baseOptions;
15285
15289
  }
15286
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15290
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15287
15291
  const localVarHeaderParameter = {};
15288
15292
  const localVarQueryParameter = {};
15289
- // authentication BearerAuth required
15290
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15291
- localVarHeaderParameter['Content-Type'] = 'application/json';
15292
15293
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15293
15294
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15294
15295
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15295
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
15296
15296
  return {
15297
15297
  url: (0, common_1.toPathString)(localVarUrlObj),
15298
15298
  options: localVarRequestOptions,
@@ -15304,8 +15304,8 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15304
15304
  * @param {*} [options] Override http request option.
15305
15305
  * @throws {RequiredError}
15306
15306
  */
15307
- paymentGatewayGatewaysGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15308
- const localVarPath = `/payment-gateway/gateways`;
15307
+ adminPaymentGatewayGatewaysGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15308
+ const localVarPath = `/admin/payment-gateway/gateways`;
15309
15309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15310
15310
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15311
15311
  let baseOptions;
@@ -15332,10 +15332,10 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15332
15332
  * @param {*} [options] Override http request option.
15333
15333
  * @throws {RequiredError}
15334
15334
  */
15335
- paymentGatewayRefundPost: (dataTypesRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundRequestDto_1, ...args_1], void 0, function* (dataTypesRefundRequestDto, options = {}) {
15335
+ adminPaymentGatewayRefundPost: (dataTypesRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundRequestDto_1, ...args_1], void 0, function* (dataTypesRefundRequestDto, options = {}) {
15336
15336
  // verify required parameter 'dataTypesRefundRequestDto' is not null or undefined
15337
- (0, common_1.assertParamExists)('paymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto);
15338
- const localVarPath = `/payment-gateway/refund`;
15337
+ (0, common_1.assertParamExists)('adminPaymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto);
15338
+ const localVarPath = `/admin/payment-gateway/refund`;
15339
15339
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15340
15340
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15341
15341
  let baseOptions;
@@ -15364,10 +15364,10 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15364
15364
  * @param {*} [options] Override http request option.
15365
15365
  * @throws {RequiredError}
15366
15366
  */
15367
- paymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest_1, ...args_1) => __awaiter(this, [dataTypesVerifyPaymentRequest_1, ...args_1], void 0, function* (dataTypesVerifyPaymentRequest, options = {}) {
15367
+ adminPaymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest_1, ...args_1) => __awaiter(this, [dataTypesVerifyPaymentRequest_1, ...args_1], void 0, function* (dataTypesVerifyPaymentRequest, options = {}) {
15368
15368
  // verify required parameter 'dataTypesVerifyPaymentRequest' is not null or undefined
15369
- (0, common_1.assertParamExists)('paymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest);
15370
- const localVarPath = `/payment-gateway/verify`;
15369
+ (0, common_1.assertParamExists)('adminPaymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest);
15370
+ const localVarPath = `/admin/payment-gateway/verify`;
15371
15371
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15372
15372
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15373
15373
  let baseOptions;
@@ -15487,33 +15487,33 @@ const PaymentGatewayApiFp = function (configuration) {
15487
15487
  const localVarAxiosParamCreator = (0, exports.PaymentGatewayApiAxiosParamCreator)(configuration);
15488
15488
  return {
15489
15489
  /**
15490
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15491
- * @summary Get available credit plans
15490
+ * Creates a payment order using specified or default payment gateway
15491
+ * @summary Create a new payment order
15492
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15492
15493
  * @param {*} [options] Override http request option.
15493
15494
  * @throws {RequiredError}
15494
15495
  */
15495
- adminPaymentGatewayCreditPlansGet(options) {
15496
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15496
15497
  return __awaiter(this, void 0, void 0, function* () {
15497
15498
  var _a, _b, _c;
15498
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
15499
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
15499
15500
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15500
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15501
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15501
15502
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15502
15503
  });
15503
15504
  },
15504
15505
  /**
15505
- * Creates a payment order using specified or default payment gateway
15506
- * @summary Create a new payment order
15507
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15506
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15507
+ * @summary Get available credit plans
15508
15508
  * @param {*} [options] Override http request option.
15509
15509
  * @throws {RequiredError}
15510
15510
  */
15511
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15511
+ adminPaymentGatewayCreditPlansGet(options) {
15512
15512
  return __awaiter(this, void 0, void 0, function* () {
15513
15513
  var _a, _b, _c;
15514
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
15514
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
15515
15515
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15516
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15516
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15517
15517
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15518
15518
  });
15519
15519
  },
@@ -15523,12 +15523,12 @@ const PaymentGatewayApiFp = function (configuration) {
15523
15523
  * @param {*} [options] Override http request option.
15524
15524
  * @throws {RequiredError}
15525
15525
  */
15526
- paymentGatewayGatewaysGet(options) {
15526
+ adminPaymentGatewayGatewaysGet(options) {
15527
15527
  return __awaiter(this, void 0, void 0, function* () {
15528
15528
  var _a, _b, _c;
15529
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayGatewaysGet(options);
15529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayGatewaysGet(options);
15530
15530
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15531
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.paymentGatewayGatewaysGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15531
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayGatewaysGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15532
15532
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15533
15533
  });
15534
15534
  },
@@ -15539,12 +15539,12 @@ const PaymentGatewayApiFp = function (configuration) {
15539
15539
  * @param {*} [options] Override http request option.
15540
15540
  * @throws {RequiredError}
15541
15541
  */
15542
- paymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15542
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15543
15543
  return __awaiter(this, void 0, void 0, function* () {
15544
15544
  var _a, _b, _c;
15545
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundPost(dataTypesRefundRequestDto, options);
15545
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options);
15546
15546
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15547
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.paymentGatewayRefundPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15547
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayRefundPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15548
15548
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15549
15549
  });
15550
15550
  },
@@ -15555,12 +15555,12 @@ const PaymentGatewayApiFp = function (configuration) {
15555
15555
  * @param {*} [options] Override http request option.
15556
15556
  * @throws {RequiredError}
15557
15557
  */
15558
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15558
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15559
15559
  return __awaiter(this, void 0, void 0, function* () {
15560
15560
  var _a, _b, _c;
15561
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
15561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
15562
15562
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15563
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.paymentGatewayVerifyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15563
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15564
15564
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15565
15565
  });
15566
15566
  },
@@ -15623,23 +15623,23 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
15623
15623
  const localVarFp = (0, exports.PaymentGatewayApiFp)(configuration);
15624
15624
  return {
15625
15625
  /**
15626
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15627
- * @summary Get available credit plans
15626
+ * Creates a payment order using specified or default payment gateway
15627
+ * @summary Create a new payment order
15628
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15628
15629
  * @param {*} [options] Override http request option.
15629
15630
  * @throws {RequiredError}
15630
15631
  */
15631
- adminPaymentGatewayCreditPlansGet(options) {
15632
- return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
15632
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15633
+ return localVarFp.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
15633
15634
  },
15634
15635
  /**
15635
- * Creates a payment order using specified or default payment gateway
15636
- * @summary Create a new payment order
15637
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15636
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15637
+ * @summary Get available credit plans
15638
15638
  * @param {*} [options] Override http request option.
15639
15639
  * @throws {RequiredError}
15640
15640
  */
15641
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15642
- return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
15641
+ adminPaymentGatewayCreditPlansGet(options) {
15642
+ return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
15643
15643
  },
15644
15644
  /**
15645
15645
  * Returns list of all available payment gateways
@@ -15647,8 +15647,8 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
15647
15647
  * @param {*} [options] Override http request option.
15648
15648
  * @throws {RequiredError}
15649
15649
  */
15650
- paymentGatewayGatewaysGet(options) {
15651
- return localVarFp.paymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
15650
+ adminPaymentGatewayGatewaysGet(options) {
15651
+ return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
15652
15652
  },
15653
15653
  /**
15654
15654
  * Processes a refund for a completed payment
@@ -15657,8 +15657,8 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
15657
15657
  * @param {*} [options] Override http request option.
15658
15658
  * @throws {RequiredError}
15659
15659
  */
15660
- paymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15661
- return localVarFp.paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
15660
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15661
+ return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
15662
15662
  },
15663
15663
  /**
15664
15664
  * Verifies the current status of a payment
@@ -15667,8 +15667,8 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
15667
15667
  * @param {*} [options] Override http request option.
15668
15668
  * @throws {RequiredError}
15669
15669
  */
15670
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15671
- return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
15670
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15671
+ return localVarFp.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
15672
15672
  },
15673
15673
  /**
15674
15674
  * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
@@ -15711,25 +15711,25 @@ exports.PaymentGatewayApiFactory = PaymentGatewayApiFactory;
15711
15711
  */
15712
15712
  class PaymentGatewayApi extends base_1.BaseAPI {
15713
15713
  /**
15714
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15715
- * @summary Get available credit plans
15714
+ * Creates a payment order using specified or default payment gateway
15715
+ * @summary Create a new payment order
15716
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15716
15717
  * @param {*} [options] Override http request option.
15717
15718
  * @throws {RequiredError}
15718
15719
  * @memberof PaymentGatewayApi
15719
15720
  */
15720
- adminPaymentGatewayCreditPlansGet(options) {
15721
- return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
15721
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15722
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
15722
15723
  }
15723
15724
  /**
15724
- * Creates a payment order using specified or default payment gateway
15725
- * @summary Create a new payment order
15726
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15725
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15726
+ * @summary Get available credit plans
15727
15727
  * @param {*} [options] Override http request option.
15728
15728
  * @throws {RequiredError}
15729
15729
  * @memberof PaymentGatewayApi
15730
15730
  */
15731
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15732
- return (0, exports.PaymentGatewayApiFp)(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
15731
+ adminPaymentGatewayCreditPlansGet(options) {
15732
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
15733
15733
  }
15734
15734
  /**
15735
15735
  * Returns list of all available payment gateways
@@ -15738,8 +15738,8 @@ class PaymentGatewayApi extends base_1.BaseAPI {
15738
15738
  * @throws {RequiredError}
15739
15739
  * @memberof PaymentGatewayApi
15740
15740
  */
15741
- paymentGatewayGatewaysGet(options) {
15742
- return (0, exports.PaymentGatewayApiFp)(this.configuration).paymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
15741
+ adminPaymentGatewayGatewaysGet(options) {
15742
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
15743
15743
  }
15744
15744
  /**
15745
15745
  * Processes a refund for a completed payment
@@ -15749,8 +15749,8 @@ class PaymentGatewayApi extends base_1.BaseAPI {
15749
15749
  * @throws {RequiredError}
15750
15750
  * @memberof PaymentGatewayApi
15751
15751
  */
15752
- paymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15753
- return (0, exports.PaymentGatewayApiFp)(this.configuration).paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
15752
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15753
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
15754
15754
  }
15755
15755
  /**
15756
15756
  * Verifies the current status of a payment
@@ -15760,8 +15760,8 @@ class PaymentGatewayApi extends base_1.BaseAPI {
15760
15760
  * @throws {RequiredError}
15761
15761
  * @memberof PaymentGatewayApi
15762
15762
  */
15763
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15764
- return (0, exports.PaymentGatewayApiFp)(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
15763
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15764
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
15765
15765
  }
15766
15766
  /**
15767
15767
  * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
@@ -20131,156 +20131,6 @@ exports.QuerySuggestionsManagementApi = QuerySuggestionsManagementApi;
20131
20131
  */
20132
20132
  const RefundManagementApiAxiosParamCreator = function (configuration) {
20133
20133
  return {
20134
- /**
20135
- * Calculates refund amount based on remaining credits and original credit pricing
20136
- * @summary Calculate refund amount
20137
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20138
- * @param {*} [options] Override http request option.
20139
- * @throws {RequiredError}
20140
- */
20141
- apiRefundCalculatePost: (dataTypesRefundCalculationRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundCalculationRequestDto_1, ...args_1], void 0, function* (dataTypesRefundCalculationRequestDto, options = {}) {
20142
- // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
20143
- (0, common_1.assertParamExists)('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto);
20144
- const localVarPath = `/api/refund/calculate`;
20145
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20146
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20147
- let baseOptions;
20148
- if (configuration) {
20149
- baseOptions = configuration.baseOptions;
20150
- }
20151
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20152
- const localVarHeaderParameter = {};
20153
- const localVarQueryParameter = {};
20154
- // authentication BearerAuth required
20155
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20156
- localVarHeaderParameter['Content-Type'] = 'application/json';
20157
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20158
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20159
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20160
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration);
20161
- return {
20162
- url: (0, common_1.toPathString)(localVarUrlObj),
20163
- options: localVarRequestOptions,
20164
- };
20165
- }),
20166
- /**
20167
- * Checks if a payment is eligible for refund
20168
- * @summary Check refund eligibility
20169
- * @param {number} paymentId Payment ID
20170
- * @param {*} [options] Override http request option.
20171
- * @throws {RequiredError}
20172
- */
20173
- apiRefundEligibilityPaymentIdGet: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
20174
- // verify required parameter 'paymentId' is not null or undefined
20175
- (0, common_1.assertParamExists)('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId);
20176
- const localVarPath = `/api/refund/eligibility/{payment_id}`
20177
- .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
20178
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20179
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20180
- let baseOptions;
20181
- if (configuration) {
20182
- baseOptions = configuration.baseOptions;
20183
- }
20184
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20185
- const localVarHeaderParameter = {};
20186
- const localVarQueryParameter = {};
20187
- // authentication BearerAuth required
20188
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20189
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20190
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20191
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20192
- return {
20193
- url: (0, common_1.toPathString)(localVarUrlObj),
20194
- options: localVarRequestOptions,
20195
- };
20196
- }),
20197
- /**
20198
- * Retrieves refund history for an organization with filtering options
20199
- * @summary Get refund history
20200
- * @param {number} [orgId] Organization ID
20201
- * @param {number} [paymentId] Payment ID
20202
- * @param {string} [startDate] Start date (RFC3339)
20203
- * @param {string} [endDate] End date (RFC3339)
20204
- * @param {string} [status] Refund status
20205
- * @param {number} [limit] Limit (default 20, max 100)
20206
- * @param {number} [offset] Offset (default 0)
20207
- * @param {*} [options] Override http request option.
20208
- * @throws {RequiredError}
20209
- */
20210
- apiRefundHistoryGet: (orgId_1, paymentId_1, startDate_1, endDate_1, status_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, paymentId_1, startDate_1, endDate_1, status_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, paymentId, startDate, endDate, status, limit, offset, options = {}) {
20211
- const localVarPath = `/api/refund/history`;
20212
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20213
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20214
- let baseOptions;
20215
- if (configuration) {
20216
- baseOptions = configuration.baseOptions;
20217
- }
20218
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20219
- const localVarHeaderParameter = {};
20220
- const localVarQueryParameter = {};
20221
- // authentication BearerAuth required
20222
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20223
- if (orgId !== undefined) {
20224
- localVarQueryParameter['org_id'] = orgId;
20225
- }
20226
- if (paymentId !== undefined) {
20227
- localVarQueryParameter['payment_id'] = paymentId;
20228
- }
20229
- if (startDate !== undefined) {
20230
- localVarQueryParameter['start_date'] = startDate;
20231
- }
20232
- if (endDate !== undefined) {
20233
- localVarQueryParameter['end_date'] = endDate;
20234
- }
20235
- if (status !== undefined) {
20236
- localVarQueryParameter['status'] = status;
20237
- }
20238
- if (limit !== undefined) {
20239
- localVarQueryParameter['limit'] = limit;
20240
- }
20241
- if (offset !== undefined) {
20242
- localVarQueryParameter['offset'] = offset;
20243
- }
20244
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20245
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20246
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20247
- return {
20248
- url: (0, common_1.toPathString)(localVarUrlObj),
20249
- options: localVarRequestOptions,
20250
- };
20251
- }),
20252
- /**
20253
- * Processes a refund request and executes credit adjustments
20254
- * @summary Process refund
20255
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20256
- * @param {*} [options] Override http request option.
20257
- * @throws {RequiredError}
20258
- */
20259
- apiRefundProcessPost: (dataTypesProcessRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesProcessRefundRequestDto_1, ...args_1], void 0, function* (dataTypesProcessRefundRequestDto, options = {}) {
20260
- // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
20261
- (0, common_1.assertParamExists)('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto);
20262
- const localVarPath = `/api/refund/process`;
20263
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20264
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20265
- let baseOptions;
20266
- if (configuration) {
20267
- baseOptions = configuration.baseOptions;
20268
- }
20269
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20270
- const localVarHeaderParameter = {};
20271
- const localVarQueryParameter = {};
20272
- // authentication BearerAuth required
20273
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20274
- localVarHeaderParameter['Content-Type'] = 'application/json';
20275
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20276
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20277
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20278
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration);
20279
- return {
20280
- url: (0, common_1.toPathString)(localVarUrlObj),
20281
- options: localVarRequestOptions,
20282
- };
20283
- }),
20284
20134
  /**
20285
20135
  * Approves or rejects a pending refund request
20286
20136
  * @summary Process refund approval or rejection
@@ -20288,10 +20138,10 @@ const RefundManagementApiAxiosParamCreator = function (configuration) {
20288
20138
  * @param {*} [options] Override http request option.
20289
20139
  * @throws {RequiredError}
20290
20140
  */
20291
- paymentGatewayRefundApprovalPost: (dataTypesRefundApprovalDto_1, ...args_1) => __awaiter(this, [dataTypesRefundApprovalDto_1, ...args_1], void 0, function* (dataTypesRefundApprovalDto, options = {}) {
20141
+ adminPaymentGatewayRefundApprovalPost: (dataTypesRefundApprovalDto_1, ...args_1) => __awaiter(this, [dataTypesRefundApprovalDto_1, ...args_1], void 0, function* (dataTypesRefundApprovalDto, options = {}) {
20292
20142
  // verify required parameter 'dataTypesRefundApprovalDto' is not null or undefined
20293
- (0, common_1.assertParamExists)('paymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto);
20294
- const localVarPath = `/payment-gateway/refund-approval`;
20143
+ (0, common_1.assertParamExists)('adminPaymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto);
20144
+ const localVarPath = `/admin/payment-gateway/refund-approval`;
20295
20145
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20296
20146
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20297
20147
  let baseOptions;
@@ -20319,8 +20169,8 @@ const RefundManagementApiAxiosParamCreator = function (configuration) {
20319
20169
  * @param {*} [options] Override http request option.
20320
20170
  * @throws {RequiredError}
20321
20171
  */
20322
- paymentGatewayRefundApprovalsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
20323
- const localVarPath = `/payment-gateway/refund-approvals`;
20172
+ adminPaymentGatewayRefundApprovalsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
20173
+ const localVarPath = `/admin/payment-gateway/refund-approvals`;
20324
20174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20325
20175
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20326
20176
  let baseOptions;
@@ -20347,10 +20197,10 @@ const RefundManagementApiAxiosParamCreator = function (configuration) {
20347
20197
  * @param {*} [options] Override http request option.
20348
20198
  * @throws {RequiredError}
20349
20199
  */
20350
- paymentGatewayRefundRequestPost: (dataTypesCreateRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRefundRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRefundRequestDto, options = {}) {
20200
+ adminPaymentGatewayRefundRequestPost: (dataTypesCreateRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRefundRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRefundRequestDto, options = {}) {
20351
20201
  // verify required parameter 'dataTypesCreateRefundRequestDto' is not null or undefined
20352
- (0, common_1.assertParamExists)('paymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto);
20353
- const localVarPath = `/payment-gateway/refund-request`;
20202
+ (0, common_1.assertParamExists)('adminPaymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto);
20203
+ const localVarPath = `/admin/payment-gateway/refund-request`;
20354
20204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20355
20205
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20356
20206
  let baseOptions;
@@ -20379,10 +20229,10 @@ const RefundManagementApiAxiosParamCreator = function (configuration) {
20379
20229
  * @param {*} [options] Override http request option.
20380
20230
  * @throws {RequiredError}
20381
20231
  */
20382
- paymentGatewayRefundStatusIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
20232
+ adminPaymentGatewayRefundStatusIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
20383
20233
  // verify required parameter 'id' is not null or undefined
20384
- (0, common_1.assertParamExists)('paymentGatewayRefundStatusIdGet', 'id', id);
20385
- const localVarPath = `/payment-gateway/refund-status/{id}`
20234
+ (0, common_1.assertParamExists)('adminPaymentGatewayRefundStatusIdGet', 'id', id);
20235
+ const localVarPath = `/admin/payment-gateway/refund-status/{id}`
20386
20236
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20387
20237
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20388
20238
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -20419,8 +20269,8 @@ const RefundManagementApiAxiosParamCreator = function (configuration) {
20419
20269
  * @param {*} [options] Override http request option.
20420
20270
  * @throws {RequiredError}
20421
20271
  */
20422
- paymentGatewayRefundsGet: (dateFrom_1, dateTo_1, orderId_1, page_1, pageSize_1, paymentId_1, refundType_1, requestedBy_1, requireApproval_1, status_1, ...args_1) => __awaiter(this, [dateFrom_1, dateTo_1, orderId_1, page_1, pageSize_1, paymentId_1, refundType_1, requestedBy_1, requireApproval_1, status_1, ...args_1], void 0, function* (dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options = {}) {
20423
- const localVarPath = `/payment-gateway/refunds`;
20272
+ adminPaymentGatewayRefundsGet: (dateFrom_1, dateTo_1, orderId_1, page_1, pageSize_1, paymentId_1, refundType_1, requestedBy_1, requireApproval_1, status_1, ...args_1) => __awaiter(this, [dateFrom_1, dateTo_1, orderId_1, page_1, pageSize_1, paymentId_1, refundType_1, requestedBy_1, requireApproval_1, status_1, ...args_1], void 0, function* (dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options = {}) {
20273
+ const localVarPath = `/admin/payment-gateway/refunds`;
20424
20274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20425
20275
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20426
20276
  let baseOptions;
@@ -20470,16 +20320,6 @@ const RefundManagementApiAxiosParamCreator = function (configuration) {
20470
20320
  options: localVarRequestOptions,
20471
20321
  };
20472
20322
  }),
20473
- };
20474
- };
20475
- exports.RefundManagementApiAxiosParamCreator = RefundManagementApiAxiosParamCreator;
20476
- /**
20477
- * RefundManagementApi - functional programming interface
20478
- * @export
20479
- */
20480
- const RefundManagementApiFp = function (configuration) {
20481
- const localVarAxiosParamCreator = (0, exports.RefundManagementApiAxiosParamCreator)(configuration);
20482
- return {
20483
20323
  /**
20484
20324
  * Calculates refund amount based on remaining credits and original credit pricing
20485
20325
  * @summary Calculate refund amount
@@ -20487,31 +20327,62 @@ const RefundManagementApiFp = function (configuration) {
20487
20327
  * @param {*} [options] Override http request option.
20488
20328
  * @throws {RequiredError}
20489
20329
  */
20490
- apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20491
- return __awaiter(this, void 0, void 0, function* () {
20492
- var _a, _b, _c;
20493
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options);
20494
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20495
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundCalculatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20496
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20497
- });
20498
- },
20499
- /**
20500
- * Checks if a payment is eligible for refund
20501
- * @summary Check refund eligibility
20502
- * @param {number} paymentId Payment ID
20503
- * @param {*} [options] Override http request option.
20504
- * @throws {RequiredError}
20505
- */
20506
- apiRefundEligibilityPaymentIdGet(paymentId, options) {
20507
- return __awaiter(this, void 0, void 0, function* () {
20508
- var _a, _b, _c;
20509
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundEligibilityPaymentIdGet(paymentId, options);
20510
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20511
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundEligibilityPaymentIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20512
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20513
- });
20514
- },
20330
+ apiRefundCalculatePost: (dataTypesRefundCalculationRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundCalculationRequestDto_1, ...args_1], void 0, function* (dataTypesRefundCalculationRequestDto, options = {}) {
20331
+ // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
20332
+ (0, common_1.assertParamExists)('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto);
20333
+ const localVarPath = `/api/refund/calculate`;
20334
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20335
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20336
+ let baseOptions;
20337
+ if (configuration) {
20338
+ baseOptions = configuration.baseOptions;
20339
+ }
20340
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20341
+ const localVarHeaderParameter = {};
20342
+ const localVarQueryParameter = {};
20343
+ // authentication BearerAuth required
20344
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20345
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20346
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20347
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20348
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20349
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration);
20350
+ return {
20351
+ url: (0, common_1.toPathString)(localVarUrlObj),
20352
+ options: localVarRequestOptions,
20353
+ };
20354
+ }),
20355
+ /**
20356
+ * Checks if a payment is eligible for refund
20357
+ * @summary Check refund eligibility
20358
+ * @param {number} paymentId Payment ID
20359
+ * @param {*} [options] Override http request option.
20360
+ * @throws {RequiredError}
20361
+ */
20362
+ apiRefundEligibilityPaymentIdGet: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
20363
+ // verify required parameter 'paymentId' is not null or undefined
20364
+ (0, common_1.assertParamExists)('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId);
20365
+ const localVarPath = `/api/refund/eligibility/{payment_id}`
20366
+ .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
20367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20368
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20369
+ let baseOptions;
20370
+ if (configuration) {
20371
+ baseOptions = configuration.baseOptions;
20372
+ }
20373
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20374
+ const localVarHeaderParameter = {};
20375
+ const localVarQueryParameter = {};
20376
+ // authentication BearerAuth required
20377
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20379
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20380
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20381
+ return {
20382
+ url: (0, common_1.toPathString)(localVarUrlObj),
20383
+ options: localVarRequestOptions,
20384
+ };
20385
+ }),
20515
20386
  /**
20516
20387
  * Retrieves refund history for an organization with filtering options
20517
20388
  * @summary Get refund history
@@ -20525,15 +20396,48 @@ const RefundManagementApiFp = function (configuration) {
20525
20396
  * @param {*} [options] Override http request option.
20526
20397
  * @throws {RequiredError}
20527
20398
  */
20528
- apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20529
- return __awaiter(this, void 0, void 0, function* () {
20530
- var _a, _b, _c;
20531
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options);
20532
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20533
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20534
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20535
- });
20536
- },
20399
+ apiRefundHistoryGet: (orgId_1, paymentId_1, startDate_1, endDate_1, status_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, paymentId_1, startDate_1, endDate_1, status_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, paymentId, startDate, endDate, status, limit, offset, options = {}) {
20400
+ const localVarPath = `/api/refund/history`;
20401
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20402
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20403
+ let baseOptions;
20404
+ if (configuration) {
20405
+ baseOptions = configuration.baseOptions;
20406
+ }
20407
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20408
+ const localVarHeaderParameter = {};
20409
+ const localVarQueryParameter = {};
20410
+ // authentication BearerAuth required
20411
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20412
+ if (orgId !== undefined) {
20413
+ localVarQueryParameter['org_id'] = orgId;
20414
+ }
20415
+ if (paymentId !== undefined) {
20416
+ localVarQueryParameter['payment_id'] = paymentId;
20417
+ }
20418
+ if (startDate !== undefined) {
20419
+ localVarQueryParameter['start_date'] = startDate;
20420
+ }
20421
+ if (endDate !== undefined) {
20422
+ localVarQueryParameter['end_date'] = endDate;
20423
+ }
20424
+ if (status !== undefined) {
20425
+ localVarQueryParameter['status'] = status;
20426
+ }
20427
+ if (limit !== undefined) {
20428
+ localVarQueryParameter['limit'] = limit;
20429
+ }
20430
+ if (offset !== undefined) {
20431
+ localVarQueryParameter['offset'] = offset;
20432
+ }
20433
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20435
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20436
+ return {
20437
+ url: (0, common_1.toPathString)(localVarUrlObj),
20438
+ options: localVarRequestOptions,
20439
+ };
20440
+ }),
20537
20441
  /**
20538
20442
  * Processes a refund request and executes credit adjustments
20539
20443
  * @summary Process refund
@@ -20541,15 +20445,41 @@ const RefundManagementApiFp = function (configuration) {
20541
20445
  * @param {*} [options] Override http request option.
20542
20446
  * @throws {RequiredError}
20543
20447
  */
20544
- apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20545
- return __awaiter(this, void 0, void 0, function* () {
20546
- var _a, _b, _c;
20547
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options);
20548
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20549
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundProcessPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20550
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20551
- });
20552
- },
20448
+ apiRefundProcessPost: (dataTypesProcessRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesProcessRefundRequestDto_1, ...args_1], void 0, function* (dataTypesProcessRefundRequestDto, options = {}) {
20449
+ // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
20450
+ (0, common_1.assertParamExists)('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto);
20451
+ const localVarPath = `/api/refund/process`;
20452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20453
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20454
+ let baseOptions;
20455
+ if (configuration) {
20456
+ baseOptions = configuration.baseOptions;
20457
+ }
20458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20459
+ const localVarHeaderParameter = {};
20460
+ const localVarQueryParameter = {};
20461
+ // authentication BearerAuth required
20462
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
20463
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20464
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20466
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20467
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration);
20468
+ return {
20469
+ url: (0, common_1.toPathString)(localVarUrlObj),
20470
+ options: localVarRequestOptions,
20471
+ };
20472
+ }),
20473
+ };
20474
+ };
20475
+ exports.RefundManagementApiAxiosParamCreator = RefundManagementApiAxiosParamCreator;
20476
+ /**
20477
+ * RefundManagementApi - functional programming interface
20478
+ * @export
20479
+ */
20480
+ const RefundManagementApiFp = function (configuration) {
20481
+ const localVarAxiosParamCreator = (0, exports.RefundManagementApiAxiosParamCreator)(configuration);
20482
+ return {
20553
20483
  /**
20554
20484
  * Approves or rejects a pending refund request
20555
20485
  * @summary Process refund approval or rejection
@@ -20557,12 +20487,12 @@ const RefundManagementApiFp = function (configuration) {
20557
20487
  * @param {*} [options] Override http request option.
20558
20488
  * @throws {RequiredError}
20559
20489
  */
20560
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20490
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20561
20491
  return __awaiter(this, void 0, void 0, function* () {
20562
20492
  var _a, _b, _c;
20563
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
20493
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
20564
20494
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20565
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.paymentGatewayRefundApprovalPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20495
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20566
20496
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20567
20497
  });
20568
20498
  },
@@ -20572,12 +20502,12 @@ const RefundManagementApiFp = function (configuration) {
20572
20502
  * @param {*} [options] Override http request option.
20573
20503
  * @throws {RequiredError}
20574
20504
  */
20575
- paymentGatewayRefundApprovalsGet(options) {
20505
+ adminPaymentGatewayRefundApprovalsGet(options) {
20576
20506
  return __awaiter(this, void 0, void 0, function* () {
20577
20507
  var _a, _b, _c;
20578
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundApprovalsGet(options);
20508
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalsGet(options);
20579
20509
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20580
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.paymentGatewayRefundApprovalsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20510
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20581
20511
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20582
20512
  });
20583
20513
  },
@@ -20588,12 +20518,12 @@ const RefundManagementApiFp = function (configuration) {
20588
20518
  * @param {*} [options] Override http request option.
20589
20519
  * @throws {RequiredError}
20590
20520
  */
20591
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20521
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20592
20522
  return __awaiter(this, void 0, void 0, function* () {
20593
20523
  var _a, _b, _c;
20594
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
20524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
20595
20525
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20596
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.paymentGatewayRefundRequestPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20526
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.adminPaymentGatewayRefundRequestPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20597
20527
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20598
20528
  });
20599
20529
  },
@@ -20604,12 +20534,12 @@ const RefundManagementApiFp = function (configuration) {
20604
20534
  * @param {*} [options] Override http request option.
20605
20535
  * @throws {RequiredError}
20606
20536
  */
20607
- paymentGatewayRefundStatusIdGet(id, options) {
20537
+ adminPaymentGatewayRefundStatusIdGet(id, options) {
20608
20538
  return __awaiter(this, void 0, void 0, function* () {
20609
20539
  var _a, _b, _c;
20610
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundStatusIdGet(id, options);
20540
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundStatusIdGet(id, options);
20611
20541
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20612
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.paymentGatewayRefundStatusIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20542
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.adminPaymentGatewayRefundStatusIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20613
20543
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20614
20544
  });
20615
20545
  },
@@ -20629,25 +20559,15 @@ const RefundManagementApiFp = function (configuration) {
20629
20559
  * @param {*} [options] Override http request option.
20630
20560
  * @throws {RequiredError}
20631
20561
  */
20632
- paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20562
+ adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20633
20563
  return __awaiter(this, void 0, void 0, function* () {
20634
20564
  var _a, _b, _c;
20635
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
20565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
20636
20566
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20637
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.paymentGatewayRefundsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20567
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.adminPaymentGatewayRefundsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20638
20568
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20639
20569
  });
20640
20570
  },
20641
- };
20642
- };
20643
- exports.RefundManagementApiFp = RefundManagementApiFp;
20644
- /**
20645
- * RefundManagementApi - factory interface
20646
- * @export
20647
- */
20648
- const RefundManagementApiFactory = function (configuration, basePath, axios) {
20649
- const localVarFp = (0, exports.RefundManagementApiFp)(configuration);
20650
- return {
20651
20571
  /**
20652
20572
  * Calculates refund amount based on remaining credits and original credit pricing
20653
20573
  * @summary Calculate refund amount
@@ -20656,7 +20576,13 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20656
20576
  * @throws {RequiredError}
20657
20577
  */
20658
20578
  apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20659
- return localVarFp.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(axios, basePath));
20579
+ return __awaiter(this, void 0, void 0, function* () {
20580
+ var _a, _b, _c;
20581
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options);
20582
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20583
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundCalculatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20584
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20585
+ });
20660
20586
  },
20661
20587
  /**
20662
20588
  * Checks if a payment is eligible for refund
@@ -20666,7 +20592,13 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20666
20592
  * @throws {RequiredError}
20667
20593
  */
20668
20594
  apiRefundEligibilityPaymentIdGet(paymentId, options) {
20669
- return localVarFp.apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(axios, basePath));
20595
+ return __awaiter(this, void 0, void 0, function* () {
20596
+ var _a, _b, _c;
20597
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundEligibilityPaymentIdGet(paymentId, options);
20598
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20599
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundEligibilityPaymentIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20600
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20601
+ });
20670
20602
  },
20671
20603
  /**
20672
20604
  * Retrieves refund history for an organization with filtering options
@@ -20682,7 +20614,13 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20682
20614
  * @throws {RequiredError}
20683
20615
  */
20684
20616
  apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20685
- return localVarFp.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(axios, basePath));
20617
+ return __awaiter(this, void 0, void 0, function* () {
20618
+ var _a, _b, _c;
20619
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options);
20620
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20621
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20622
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20623
+ });
20686
20624
  },
20687
20625
  /**
20688
20626
  * Processes a refund request and executes credit adjustments
@@ -20692,8 +20630,24 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20692
20630
  * @throws {RequiredError}
20693
20631
  */
20694
20632
  apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20695
- return localVarFp.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(axios, basePath));
20633
+ return __awaiter(this, void 0, void 0, function* () {
20634
+ var _a, _b, _c;
20635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options);
20636
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20637
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RefundManagementApi.apiRefundProcessPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20638
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20639
+ });
20696
20640
  },
20641
+ };
20642
+ };
20643
+ exports.RefundManagementApiFp = RefundManagementApiFp;
20644
+ /**
20645
+ * RefundManagementApi - factory interface
20646
+ * @export
20647
+ */
20648
+ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20649
+ const localVarFp = (0, exports.RefundManagementApiFp)(configuration);
20650
+ return {
20697
20651
  /**
20698
20652
  * Approves or rejects a pending refund request
20699
20653
  * @summary Process refund approval or rejection
@@ -20701,8 +20655,8 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20701
20655
  * @param {*} [options] Override http request option.
20702
20656
  * @throws {RequiredError}
20703
20657
  */
20704
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20705
- return localVarFp.paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
20658
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20659
+ return localVarFp.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
20706
20660
  },
20707
20661
  /**
20708
20662
  * Gets refund requests that require approval
@@ -20710,8 +20664,8 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20710
20664
  * @param {*} [options] Override http request option.
20711
20665
  * @throws {RequiredError}
20712
20666
  */
20713
- paymentGatewayRefundApprovalsGet(options) {
20714
- return localVarFp.paymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
20667
+ adminPaymentGatewayRefundApprovalsGet(options) {
20668
+ return localVarFp.adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
20715
20669
  },
20716
20670
  /**
20717
20671
  * Creates a comprehensive refund request with approval workflow
@@ -20720,8 +20674,8 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20720
20674
  * @param {*} [options] Override http request option.
20721
20675
  * @throws {RequiredError}
20722
20676
  */
20723
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20724
- return localVarFp.paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
20677
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20678
+ return localVarFp.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
20725
20679
  },
20726
20680
  /**
20727
20681
  * Gets the current status and details of a refund request by refund_id (UUID)
@@ -20730,8 +20684,8 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20730
20684
  * @param {*} [options] Override http request option.
20731
20685
  * @throws {RequiredError}
20732
20686
  */
20733
- paymentGatewayRefundStatusIdGet(id, options) {
20734
- return localVarFp.paymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
20687
+ adminPaymentGatewayRefundStatusIdGet(id, options) {
20688
+ return localVarFp.adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
20735
20689
  },
20736
20690
  /**
20737
20691
  * Gets a paginated list of refund requests with filtering
@@ -20749,8 +20703,54 @@ const RefundManagementApiFactory = function (configuration, basePath, axios) {
20749
20703
  * @param {*} [options] Override http request option.
20750
20704
  * @throws {RequiredError}
20751
20705
  */
20752
- paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20753
- return localVarFp.paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
20706
+ adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20707
+ return localVarFp.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
20708
+ },
20709
+ /**
20710
+ * Calculates refund amount based on remaining credits and original credit pricing
20711
+ * @summary Calculate refund amount
20712
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20713
+ * @param {*} [options] Override http request option.
20714
+ * @throws {RequiredError}
20715
+ */
20716
+ apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20717
+ return localVarFp.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(axios, basePath));
20718
+ },
20719
+ /**
20720
+ * Checks if a payment is eligible for refund
20721
+ * @summary Check refund eligibility
20722
+ * @param {number} paymentId Payment ID
20723
+ * @param {*} [options] Override http request option.
20724
+ * @throws {RequiredError}
20725
+ */
20726
+ apiRefundEligibilityPaymentIdGet(paymentId, options) {
20727
+ return localVarFp.apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(axios, basePath));
20728
+ },
20729
+ /**
20730
+ * Retrieves refund history for an organization with filtering options
20731
+ * @summary Get refund history
20732
+ * @param {number} [orgId] Organization ID
20733
+ * @param {number} [paymentId] Payment ID
20734
+ * @param {string} [startDate] Start date (RFC3339)
20735
+ * @param {string} [endDate] End date (RFC3339)
20736
+ * @param {string} [status] Refund status
20737
+ * @param {number} [limit] Limit (default 20, max 100)
20738
+ * @param {number} [offset] Offset (default 0)
20739
+ * @param {*} [options] Override http request option.
20740
+ * @throws {RequiredError}
20741
+ */
20742
+ apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20743
+ return localVarFp.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(axios, basePath));
20744
+ },
20745
+ /**
20746
+ * Processes a refund request and executes credit adjustments
20747
+ * @summary Process refund
20748
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20749
+ * @param {*} [options] Override http request option.
20750
+ * @throws {RequiredError}
20751
+ */
20752
+ apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20753
+ return localVarFp.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(axios, basePath));
20754
20754
  },
20755
20755
  };
20756
20756
  };
@@ -20763,117 +20763,117 @@ exports.RefundManagementApiFactory = RefundManagementApiFactory;
20763
20763
  */
20764
20764
  class RefundManagementApi extends base_1.BaseAPI {
20765
20765
  /**
20766
- * Calculates refund amount based on remaining credits and original credit pricing
20767
- * @summary Calculate refund amount
20768
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20766
+ * Approves or rejects a pending refund request
20767
+ * @summary Process refund approval or rejection
20768
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
20769
20769
  * @param {*} [options] Override http request option.
20770
20770
  * @throws {RequiredError}
20771
20771
  * @memberof RefundManagementApi
20772
20772
  */
20773
- apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20774
- return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
20773
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20774
+ return (0, exports.RefundManagementApiFp)(this.configuration).adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
20775
20775
  }
20776
20776
  /**
20777
- * Checks if a payment is eligible for refund
20778
- * @summary Check refund eligibility
20779
- * @param {number} paymentId Payment ID
20777
+ * Gets refund requests that require approval
20778
+ * @summary Get pending refund approvals
20780
20779
  * @param {*} [options] Override http request option.
20781
20780
  * @throws {RequiredError}
20782
20781
  * @memberof RefundManagementApi
20783
20782
  */
20784
- apiRefundEligibilityPaymentIdGet(paymentId, options) {
20785
- return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
20783
+ adminPaymentGatewayRefundApprovalsGet(options) {
20784
+ return (0, exports.RefundManagementApiFp)(this.configuration).adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
20786
20785
  }
20787
20786
  /**
20788
- * Retrieves refund history for an organization with filtering options
20789
- * @summary Get refund history
20790
- * @param {number} [orgId] Organization ID
20791
- * @param {number} [paymentId] Payment ID
20792
- * @param {string} [startDate] Start date (RFC3339)
20793
- * @param {string} [endDate] End date (RFC3339)
20794
- * @param {string} [status] Refund status
20795
- * @param {number} [limit] Limit (default 20, max 100)
20796
- * @param {number} [offset] Offset (default 0)
20787
+ * Creates a comprehensive refund request with approval workflow
20788
+ * @summary Create a new refund request
20789
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
20797
20790
  * @param {*} [options] Override http request option.
20798
20791
  * @throws {RequiredError}
20799
20792
  * @memberof RefundManagementApi
20800
20793
  */
20801
- apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20802
- return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
20794
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20795
+ return (0, exports.RefundManagementApiFp)(this.configuration).adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20803
20796
  }
20804
20797
  /**
20805
- * Processes a refund request and executes credit adjustments
20806
- * @summary Process refund
20807
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20798
+ * Gets the current status and details of a refund request by refund_id (UUID)
20799
+ * @summary Get refund request status
20800
+ * @param {string} id Refund ID (UUID)
20808
20801
  * @param {*} [options] Override http request option.
20809
20802
  * @throws {RequiredError}
20810
20803
  * @memberof RefundManagementApi
20811
20804
  */
20812
- apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20813
- return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20805
+ adminPaymentGatewayRefundStatusIdGet(id, options) {
20806
+ return (0, exports.RefundManagementApiFp)(this.configuration).adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
20814
20807
  }
20815
20808
  /**
20816
- * Approves or rejects a pending refund request
20817
- * @summary Process refund approval or rejection
20818
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
20809
+ * Gets a paginated list of refund requests with filtering
20810
+ * @summary List refund requests
20811
+ * @param {string} [dateFrom]
20812
+ * @param {string} [dateTo]
20813
+ * @param {number} [orderId]
20814
+ * @param {number} [page]
20815
+ * @param {number} [pageSize]
20816
+ * @param {string} [paymentId]
20817
+ * @param {string} [refundType]
20818
+ * @param {number} [requestedBy]
20819
+ * @param {boolean} [requireApproval]
20820
+ * @param {string} [status]
20819
20821
  * @param {*} [options] Override http request option.
20820
20822
  * @throws {RequiredError}
20821
20823
  * @memberof RefundManagementApi
20822
20824
  */
20823
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20824
- return (0, exports.RefundManagementApiFp)(this.configuration).paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
20825
+ adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20826
+ return (0, exports.RefundManagementApiFp)(this.configuration).adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
20825
20827
  }
20826
20828
  /**
20827
- * Gets refund requests that require approval
20828
- * @summary Get pending refund approvals
20829
+ * Calculates refund amount based on remaining credits and original credit pricing
20830
+ * @summary Calculate refund amount
20831
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20829
20832
  * @param {*} [options] Override http request option.
20830
20833
  * @throws {RequiredError}
20831
20834
  * @memberof RefundManagementApi
20832
20835
  */
20833
- paymentGatewayRefundApprovalsGet(options) {
20834
- return (0, exports.RefundManagementApiFp)(this.configuration).paymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
20836
+ apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20837
+ return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
20835
20838
  }
20836
20839
  /**
20837
- * Creates a comprehensive refund request with approval workflow
20838
- * @summary Create a new refund request
20839
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
20840
+ * Checks if a payment is eligible for refund
20841
+ * @summary Check refund eligibility
20842
+ * @param {number} paymentId Payment ID
20840
20843
  * @param {*} [options] Override http request option.
20841
20844
  * @throws {RequiredError}
20842
20845
  * @memberof RefundManagementApi
20843
20846
  */
20844
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20845
- return (0, exports.RefundManagementApiFp)(this.configuration).paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20847
+ apiRefundEligibilityPaymentIdGet(paymentId, options) {
20848
+ return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
20846
20849
  }
20847
20850
  /**
20848
- * Gets the current status and details of a refund request by refund_id (UUID)
20849
- * @summary Get refund request status
20850
- * @param {string} id Refund ID (UUID)
20851
+ * Retrieves refund history for an organization with filtering options
20852
+ * @summary Get refund history
20853
+ * @param {number} [orgId] Organization ID
20854
+ * @param {number} [paymentId] Payment ID
20855
+ * @param {string} [startDate] Start date (RFC3339)
20856
+ * @param {string} [endDate] End date (RFC3339)
20857
+ * @param {string} [status] Refund status
20858
+ * @param {number} [limit] Limit (default 20, max 100)
20859
+ * @param {number} [offset] Offset (default 0)
20851
20860
  * @param {*} [options] Override http request option.
20852
20861
  * @throws {RequiredError}
20853
20862
  * @memberof RefundManagementApi
20854
20863
  */
20855
- paymentGatewayRefundStatusIdGet(id, options) {
20856
- return (0, exports.RefundManagementApiFp)(this.configuration).paymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
20864
+ apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20865
+ return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
20857
20866
  }
20858
20867
  /**
20859
- * Gets a paginated list of refund requests with filtering
20860
- * @summary List refund requests
20861
- * @param {string} [dateFrom]
20862
- * @param {string} [dateTo]
20863
- * @param {number} [orderId]
20864
- * @param {number} [page]
20865
- * @param {number} [pageSize]
20866
- * @param {string} [paymentId]
20867
- * @param {string} [refundType]
20868
- * @param {number} [requestedBy]
20869
- * @param {boolean} [requireApproval]
20870
- * @param {string} [status]
20868
+ * Processes a refund request and executes credit adjustments
20869
+ * @summary Process refund
20870
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20871
20871
  * @param {*} [options] Override http request option.
20872
20872
  * @throws {RequiredError}
20873
20873
  * @memberof RefundManagementApi
20874
20874
  */
20875
- paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20876
- return (0, exports.RefundManagementApiFp)(this.configuration).paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
20875
+ apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20876
+ return (0, exports.RefundManagementApiFp)(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20877
20877
  }
20878
20878
  }
20879
20879
  exports.RefundManagementApi = RefundManagementApi;