@seekora-ai/admin-api 1.0.75 → 1.0.76

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/esm/api.js CHANGED
@@ -7603,8 +7603,8 @@ export const CommonApiAxiosParamCreator = function (configuration) {
7603
7603
  * @param {*} [options] Override http request option.
7604
7604
  * @throws {RequiredError}
7605
7605
  */
7606
- commonLanguagesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7607
- const localVarPath = `/common/languages`;
7606
+ v1CommonLanguagesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7607
+ const localVarPath = `/v1/common/languages`;
7608
7608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7609
7609
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7610
7610
  let baseOptions;
@@ -7637,12 +7637,12 @@ export const CommonApiFp = function (configuration) {
7637
7637
  * @param {*} [options] Override http request option.
7638
7638
  * @throws {RequiredError}
7639
7639
  */
7640
- commonLanguagesGet(options) {
7640
+ v1CommonLanguagesGet(options) {
7641
7641
  return __awaiter(this, void 0, void 0, function* () {
7642
7642
  var _a, _b, _c;
7643
- const localVarAxiosArgs = yield localVarAxiosParamCreator.commonLanguagesGet(options);
7643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CommonLanguagesGet(options);
7644
7644
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7645
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommonApi.commonLanguagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7645
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommonApi.v1CommonLanguagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7646
7646
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7647
7647
  });
7648
7648
  },
@@ -7661,8 +7661,8 @@ export const CommonApiFactory = function (configuration, basePath, axios) {
7661
7661
  * @param {*} [options] Override http request option.
7662
7662
  * @throws {RequiredError}
7663
7663
  */
7664
- commonLanguagesGet(options) {
7665
- return localVarFp.commonLanguagesGet(options).then((request) => request(axios, basePath));
7664
+ v1CommonLanguagesGet(options) {
7665
+ return localVarFp.v1CommonLanguagesGet(options).then((request) => request(axios, basePath));
7666
7666
  },
7667
7667
  };
7668
7668
  };
@@ -7680,8 +7680,8 @@ export class CommonApi extends BaseAPI {
7680
7680
  * @throws {RequiredError}
7681
7681
  * @memberof CommonApi
7682
7682
  */
7683
- commonLanguagesGet(options) {
7684
- return CommonApiFp(this.configuration).commonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
7683
+ v1CommonLanguagesGet(options) {
7684
+ return CommonApiFp(this.configuration).v1CommonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
7685
7685
  }
7686
7686
  }
7687
7687
  /**
@@ -15143,57 +15143,57 @@ export class ParentMenusApi extends BaseAPI {
15143
15143
  export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15144
15144
  return {
15145
15145
  /**
15146
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15147
- * @summary Get available credit plans
15146
+ * Creates a payment order using specified or default payment gateway
15147
+ * @summary Create a new payment order
15148
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15148
15149
  * @param {*} [options] Override http request option.
15149
15150
  * @throws {RequiredError}
15150
15151
  */
15151
- adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15152
- const localVarPath = `/admin/payment-gateway/credit-plans`;
15152
+ adminPaymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
15153
+ // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
15154
+ assertParamExists('adminPaymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
15155
+ const localVarPath = `/admin/payment-gateway/create-order`;
15153
15156
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15154
15157
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15155
15158
  let baseOptions;
15156
15159
  if (configuration) {
15157
15160
  baseOptions = configuration.baseOptions;
15158
15161
  }
15159
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15162
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15160
15163
  const localVarHeaderParameter = {};
15161
15164
  const localVarQueryParameter = {};
15165
+ // authentication BearerAuth required
15166
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
15167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15162
15168
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15163
15169
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15164
15170
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15171
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
15165
15172
  return {
15166
15173
  url: toPathString(localVarUrlObj),
15167
15174
  options: localVarRequestOptions,
15168
15175
  };
15169
15176
  }),
15170
15177
  /**
15171
- * Creates a payment order using specified or default payment gateway
15172
- * @summary Create a new payment order
15173
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15178
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15179
+ * @summary Get available credit plans
15174
15180
  * @param {*} [options] Override http request option.
15175
15181
  * @throws {RequiredError}
15176
15182
  */
15177
- paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
15178
- // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
15179
- assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
15180
- const localVarPath = `/payment-gateway/create-order`;
15183
+ adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15184
+ const localVarPath = `/admin/payment-gateway/credit-plans`;
15181
15185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15182
15186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15183
15187
  let baseOptions;
15184
15188
  if (configuration) {
15185
15189
  baseOptions = configuration.baseOptions;
15186
15190
  }
15187
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15188
15192
  const localVarHeaderParameter = {};
15189
15193
  const localVarQueryParameter = {};
15190
- // authentication BearerAuth required
15191
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
15192
- localVarHeaderParameter['Content-Type'] = 'application/json';
15193
15194
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15194
15195
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15195
15196
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15196
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
15197
15197
  return {
15198
15198
  url: toPathString(localVarUrlObj),
15199
15199
  options: localVarRequestOptions,
@@ -15205,8 +15205,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15205
15205
  * @param {*} [options] Override http request option.
15206
15206
  * @throws {RequiredError}
15207
15207
  */
15208
- paymentGatewayGatewaysGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15209
- const localVarPath = `/payment-gateway/gateways`;
15208
+ adminPaymentGatewayGatewaysGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15209
+ const localVarPath = `/admin/payment-gateway/gateways`;
15210
15210
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15211
15211
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15212
15212
  let baseOptions;
@@ -15233,10 +15233,10 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15233
15233
  * @param {*} [options] Override http request option.
15234
15234
  * @throws {RequiredError}
15235
15235
  */
15236
- paymentGatewayRefundPost: (dataTypesRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundRequestDto_1, ...args_1], void 0, function* (dataTypesRefundRequestDto, options = {}) {
15236
+ adminPaymentGatewayRefundPost: (dataTypesRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundRequestDto_1, ...args_1], void 0, function* (dataTypesRefundRequestDto, options = {}) {
15237
15237
  // verify required parameter 'dataTypesRefundRequestDto' is not null or undefined
15238
- assertParamExists('paymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto);
15239
- const localVarPath = `/payment-gateway/refund`;
15238
+ assertParamExists('adminPaymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto);
15239
+ const localVarPath = `/admin/payment-gateway/refund`;
15240
15240
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15241
15241
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15242
15242
  let baseOptions;
@@ -15265,10 +15265,10 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15265
15265
  * @param {*} [options] Override http request option.
15266
15266
  * @throws {RequiredError}
15267
15267
  */
15268
- paymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest_1, ...args_1) => __awaiter(this, [dataTypesVerifyPaymentRequest_1, ...args_1], void 0, function* (dataTypesVerifyPaymentRequest, options = {}) {
15268
+ adminPaymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest_1, ...args_1) => __awaiter(this, [dataTypesVerifyPaymentRequest_1, ...args_1], void 0, function* (dataTypesVerifyPaymentRequest, options = {}) {
15269
15269
  // verify required parameter 'dataTypesVerifyPaymentRequest' is not null or undefined
15270
- assertParamExists('paymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest);
15271
- const localVarPath = `/payment-gateway/verify`;
15270
+ assertParamExists('adminPaymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest);
15271
+ const localVarPath = `/admin/payment-gateway/verify`;
15272
15272
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15273
15273
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15274
15274
  let baseOptions;
@@ -15387,33 +15387,33 @@ export const PaymentGatewayApiFp = function (configuration) {
15387
15387
  const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration);
15388
15388
  return {
15389
15389
  /**
15390
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15391
- * @summary Get available credit plans
15390
+ * Creates a payment order using specified or default payment gateway
15391
+ * @summary Create a new payment order
15392
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15392
15393
  * @param {*} [options] Override http request option.
15393
15394
  * @throws {RequiredError}
15394
15395
  */
15395
- adminPaymentGatewayCreditPlansGet(options) {
15396
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15396
15397
  return __awaiter(this, void 0, void 0, function* () {
15397
15398
  var _a, _b, _c;
15398
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
15399
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
15399
15400
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15400
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15401
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15401
15402
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15402
15403
  });
15403
15404
  },
15404
15405
  /**
15405
- * Creates a payment order using specified or default payment gateway
15406
- * @summary Create a new payment order
15407
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15406
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15407
+ * @summary Get available credit plans
15408
15408
  * @param {*} [options] Override http request option.
15409
15409
  * @throws {RequiredError}
15410
15410
  */
15411
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15411
+ adminPaymentGatewayCreditPlansGet(options) {
15412
15412
  return __awaiter(this, void 0, void 0, function* () {
15413
15413
  var _a, _b, _c;
15414
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
15414
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
15415
15415
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15416
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15416
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15417
15417
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15418
15418
  });
15419
15419
  },
@@ -15423,12 +15423,12 @@ export const PaymentGatewayApiFp = function (configuration) {
15423
15423
  * @param {*} [options] Override http request option.
15424
15424
  * @throws {RequiredError}
15425
15425
  */
15426
- paymentGatewayGatewaysGet(options) {
15426
+ adminPaymentGatewayGatewaysGet(options) {
15427
15427
  return __awaiter(this, void 0, void 0, function* () {
15428
15428
  var _a, _b, _c;
15429
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayGatewaysGet(options);
15429
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayGatewaysGet(options);
15430
15430
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15431
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayGatewaysGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15431
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayGatewaysGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15432
15432
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15433
15433
  });
15434
15434
  },
@@ -15439,12 +15439,12 @@ export const PaymentGatewayApiFp = function (configuration) {
15439
15439
  * @param {*} [options] Override http request option.
15440
15440
  * @throws {RequiredError}
15441
15441
  */
15442
- paymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15442
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15443
15443
  return __awaiter(this, void 0, void 0, function* () {
15444
15444
  var _a, _b, _c;
15445
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundPost(dataTypesRefundRequestDto, options);
15445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options);
15446
15446
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15447
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayRefundPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15447
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayRefundPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15448
15448
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15449
15449
  });
15450
15450
  },
@@ -15455,12 +15455,12 @@ export const PaymentGatewayApiFp = function (configuration) {
15455
15455
  * @param {*} [options] Override http request option.
15456
15456
  * @throws {RequiredError}
15457
15457
  */
15458
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15458
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15459
15459
  return __awaiter(this, void 0, void 0, function* () {
15460
15460
  var _a, _b, _c;
15461
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
15461
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
15462
15462
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15463
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayVerifyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15463
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15464
15464
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15465
15465
  });
15466
15466
  },
@@ -15522,23 +15522,23 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
15522
15522
  const localVarFp = PaymentGatewayApiFp(configuration);
15523
15523
  return {
15524
15524
  /**
15525
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15526
- * @summary Get available credit plans
15525
+ * Creates a payment order using specified or default payment gateway
15526
+ * @summary Create a new payment order
15527
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15527
15528
  * @param {*} [options] Override http request option.
15528
15529
  * @throws {RequiredError}
15529
15530
  */
15530
- adminPaymentGatewayCreditPlansGet(options) {
15531
- return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
15531
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15532
+ return localVarFp.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
15532
15533
  },
15533
15534
  /**
15534
- * Creates a payment order using specified or default payment gateway
15535
- * @summary Create a new payment order
15536
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15535
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15536
+ * @summary Get available credit plans
15537
15537
  * @param {*} [options] Override http request option.
15538
15538
  * @throws {RequiredError}
15539
15539
  */
15540
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15541
- return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
15540
+ adminPaymentGatewayCreditPlansGet(options) {
15541
+ return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
15542
15542
  },
15543
15543
  /**
15544
15544
  * Returns list of all available payment gateways
@@ -15546,8 +15546,8 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
15546
15546
  * @param {*} [options] Override http request option.
15547
15547
  * @throws {RequiredError}
15548
15548
  */
15549
- paymentGatewayGatewaysGet(options) {
15550
- return localVarFp.paymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
15549
+ adminPaymentGatewayGatewaysGet(options) {
15550
+ return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
15551
15551
  },
15552
15552
  /**
15553
15553
  * Processes a refund for a completed payment
@@ -15556,8 +15556,8 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
15556
15556
  * @param {*} [options] Override http request option.
15557
15557
  * @throws {RequiredError}
15558
15558
  */
15559
- paymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15560
- return localVarFp.paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
15559
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15560
+ return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
15561
15561
  },
15562
15562
  /**
15563
15563
  * Verifies the current status of a payment
@@ -15566,8 +15566,8 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
15566
15566
  * @param {*} [options] Override http request option.
15567
15567
  * @throws {RequiredError}
15568
15568
  */
15569
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15570
- return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
15569
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15570
+ return localVarFp.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
15571
15571
  },
15572
15572
  /**
15573
15573
  * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
@@ -15609,25 +15609,25 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
15609
15609
  */
15610
15610
  export class PaymentGatewayApi extends BaseAPI {
15611
15611
  /**
15612
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15613
- * @summary Get available credit plans
15612
+ * Creates a payment order using specified or default payment gateway
15613
+ * @summary Create a new payment order
15614
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15614
15615
  * @param {*} [options] Override http request option.
15615
15616
  * @throws {RequiredError}
15616
15617
  * @memberof PaymentGatewayApi
15617
15618
  */
15618
- adminPaymentGatewayCreditPlansGet(options) {
15619
- return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
15619
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15620
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
15620
15621
  }
15621
15622
  /**
15622
- * Creates a payment order using specified or default payment gateway
15623
- * @summary Create a new payment order
15624
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
15623
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
15624
+ * @summary Get available credit plans
15625
15625
  * @param {*} [options] Override http request option.
15626
15626
  * @throws {RequiredError}
15627
15627
  * @memberof PaymentGatewayApi
15628
15628
  */
15629
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
15630
- return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
15629
+ adminPaymentGatewayCreditPlansGet(options) {
15630
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
15631
15631
  }
15632
15632
  /**
15633
15633
  * Returns list of all available payment gateways
@@ -15636,8 +15636,8 @@ export class PaymentGatewayApi extends BaseAPI {
15636
15636
  * @throws {RequiredError}
15637
15637
  * @memberof PaymentGatewayApi
15638
15638
  */
15639
- paymentGatewayGatewaysGet(options) {
15640
- return PaymentGatewayApiFp(this.configuration).paymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
15639
+ adminPaymentGatewayGatewaysGet(options) {
15640
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
15641
15641
  }
15642
15642
  /**
15643
15643
  * Processes a refund for a completed payment
@@ -15647,8 +15647,8 @@ export class PaymentGatewayApi extends BaseAPI {
15647
15647
  * @throws {RequiredError}
15648
15648
  * @memberof PaymentGatewayApi
15649
15649
  */
15650
- paymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15651
- return PaymentGatewayApiFp(this.configuration).paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
15650
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
15651
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
15652
15652
  }
15653
15653
  /**
15654
15654
  * Verifies the current status of a payment
@@ -15658,8 +15658,8 @@ export class PaymentGatewayApi extends BaseAPI {
15658
15658
  * @throws {RequiredError}
15659
15659
  * @memberof PaymentGatewayApi
15660
15660
  */
15661
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15662
- return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
15661
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
15662
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
15663
15663
  }
15664
15664
  /**
15665
15665
  * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
@@ -20008,156 +20008,6 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
20008
20008
  */
20009
20009
  export const RefundManagementApiAxiosParamCreator = function (configuration) {
20010
20010
  return {
20011
- /**
20012
- * Calculates refund amount based on remaining credits and original credit pricing
20013
- * @summary Calculate refund amount
20014
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20015
- * @param {*} [options] Override http request option.
20016
- * @throws {RequiredError}
20017
- */
20018
- apiRefundCalculatePost: (dataTypesRefundCalculationRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundCalculationRequestDto_1, ...args_1], void 0, function* (dataTypesRefundCalculationRequestDto, options = {}) {
20019
- // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
20020
- assertParamExists('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto);
20021
- const localVarPath = `/api/refund/calculate`;
20022
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20023
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20024
- let baseOptions;
20025
- if (configuration) {
20026
- baseOptions = configuration.baseOptions;
20027
- }
20028
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20029
- const localVarHeaderParameter = {};
20030
- const localVarQueryParameter = {};
20031
- // authentication BearerAuth required
20032
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20033
- localVarHeaderParameter['Content-Type'] = 'application/json';
20034
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20035
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20036
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20037
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration);
20038
- return {
20039
- url: toPathString(localVarUrlObj),
20040
- options: localVarRequestOptions,
20041
- };
20042
- }),
20043
- /**
20044
- * Checks if a payment is eligible for refund
20045
- * @summary Check refund eligibility
20046
- * @param {number} paymentId Payment ID
20047
- * @param {*} [options] Override http request option.
20048
- * @throws {RequiredError}
20049
- */
20050
- apiRefundEligibilityPaymentIdGet: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
20051
- // verify required parameter 'paymentId' is not null or undefined
20052
- assertParamExists('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId);
20053
- const localVarPath = `/api/refund/eligibility/{payment_id}`
20054
- .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
20055
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20056
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20057
- let baseOptions;
20058
- if (configuration) {
20059
- baseOptions = configuration.baseOptions;
20060
- }
20061
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20062
- const localVarHeaderParameter = {};
20063
- const localVarQueryParameter = {};
20064
- // authentication BearerAuth required
20065
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20066
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20067
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20068
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20069
- return {
20070
- url: toPathString(localVarUrlObj),
20071
- options: localVarRequestOptions,
20072
- };
20073
- }),
20074
- /**
20075
- * Retrieves refund history for an organization with filtering options
20076
- * @summary Get refund history
20077
- * @param {number} [orgId] Organization ID
20078
- * @param {number} [paymentId] Payment ID
20079
- * @param {string} [startDate] Start date (RFC3339)
20080
- * @param {string} [endDate] End date (RFC3339)
20081
- * @param {string} [status] Refund status
20082
- * @param {number} [limit] Limit (default 20, max 100)
20083
- * @param {number} [offset] Offset (default 0)
20084
- * @param {*} [options] Override http request option.
20085
- * @throws {RequiredError}
20086
- */
20087
- 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 = {}) {
20088
- const localVarPath = `/api/refund/history`;
20089
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20090
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20091
- let baseOptions;
20092
- if (configuration) {
20093
- baseOptions = configuration.baseOptions;
20094
- }
20095
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20096
- const localVarHeaderParameter = {};
20097
- const localVarQueryParameter = {};
20098
- // authentication BearerAuth required
20099
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20100
- if (orgId !== undefined) {
20101
- localVarQueryParameter['org_id'] = orgId;
20102
- }
20103
- if (paymentId !== undefined) {
20104
- localVarQueryParameter['payment_id'] = paymentId;
20105
- }
20106
- if (startDate !== undefined) {
20107
- localVarQueryParameter['start_date'] = startDate;
20108
- }
20109
- if (endDate !== undefined) {
20110
- localVarQueryParameter['end_date'] = endDate;
20111
- }
20112
- if (status !== undefined) {
20113
- localVarQueryParameter['status'] = status;
20114
- }
20115
- if (limit !== undefined) {
20116
- localVarQueryParameter['limit'] = limit;
20117
- }
20118
- if (offset !== undefined) {
20119
- localVarQueryParameter['offset'] = offset;
20120
- }
20121
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20122
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20123
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20124
- return {
20125
- url: toPathString(localVarUrlObj),
20126
- options: localVarRequestOptions,
20127
- };
20128
- }),
20129
- /**
20130
- * Processes a refund request and executes credit adjustments
20131
- * @summary Process refund
20132
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20133
- * @param {*} [options] Override http request option.
20134
- * @throws {RequiredError}
20135
- */
20136
- apiRefundProcessPost: (dataTypesProcessRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesProcessRefundRequestDto_1, ...args_1], void 0, function* (dataTypesProcessRefundRequestDto, options = {}) {
20137
- // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
20138
- assertParamExists('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto);
20139
- const localVarPath = `/api/refund/process`;
20140
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20141
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20142
- let baseOptions;
20143
- if (configuration) {
20144
- baseOptions = configuration.baseOptions;
20145
- }
20146
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20147
- const localVarHeaderParameter = {};
20148
- const localVarQueryParameter = {};
20149
- // authentication BearerAuth required
20150
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20151
- localVarHeaderParameter['Content-Type'] = 'application/json';
20152
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20153
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20154
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20155
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration);
20156
- return {
20157
- url: toPathString(localVarUrlObj),
20158
- options: localVarRequestOptions,
20159
- };
20160
- }),
20161
20011
  /**
20162
20012
  * Approves or rejects a pending refund request
20163
20013
  * @summary Process refund approval or rejection
@@ -20165,10 +20015,10 @@ export const RefundManagementApiAxiosParamCreator = function (configuration) {
20165
20015
  * @param {*} [options] Override http request option.
20166
20016
  * @throws {RequiredError}
20167
20017
  */
20168
- paymentGatewayRefundApprovalPost: (dataTypesRefundApprovalDto_1, ...args_1) => __awaiter(this, [dataTypesRefundApprovalDto_1, ...args_1], void 0, function* (dataTypesRefundApprovalDto, options = {}) {
20018
+ adminPaymentGatewayRefundApprovalPost: (dataTypesRefundApprovalDto_1, ...args_1) => __awaiter(this, [dataTypesRefundApprovalDto_1, ...args_1], void 0, function* (dataTypesRefundApprovalDto, options = {}) {
20169
20019
  // verify required parameter 'dataTypesRefundApprovalDto' is not null or undefined
20170
- assertParamExists('paymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto);
20171
- const localVarPath = `/payment-gateway/refund-approval`;
20020
+ assertParamExists('adminPaymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto);
20021
+ const localVarPath = `/admin/payment-gateway/refund-approval`;
20172
20022
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20173
20023
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20174
20024
  let baseOptions;
@@ -20196,8 +20046,8 @@ export const RefundManagementApiAxiosParamCreator = function (configuration) {
20196
20046
  * @param {*} [options] Override http request option.
20197
20047
  * @throws {RequiredError}
20198
20048
  */
20199
- paymentGatewayRefundApprovalsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
20200
- const localVarPath = `/payment-gateway/refund-approvals`;
20049
+ adminPaymentGatewayRefundApprovalsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
20050
+ const localVarPath = `/admin/payment-gateway/refund-approvals`;
20201
20051
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20202
20052
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20203
20053
  let baseOptions;
@@ -20224,10 +20074,10 @@ export const RefundManagementApiAxiosParamCreator = function (configuration) {
20224
20074
  * @param {*} [options] Override http request option.
20225
20075
  * @throws {RequiredError}
20226
20076
  */
20227
- paymentGatewayRefundRequestPost: (dataTypesCreateRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRefundRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRefundRequestDto, options = {}) {
20077
+ adminPaymentGatewayRefundRequestPost: (dataTypesCreateRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRefundRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRefundRequestDto, options = {}) {
20228
20078
  // verify required parameter 'dataTypesCreateRefundRequestDto' is not null or undefined
20229
- assertParamExists('paymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto);
20230
- const localVarPath = `/payment-gateway/refund-request`;
20079
+ assertParamExists('adminPaymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto);
20080
+ const localVarPath = `/admin/payment-gateway/refund-request`;
20231
20081
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20232
20082
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20233
20083
  let baseOptions;
@@ -20256,10 +20106,10 @@ export const RefundManagementApiAxiosParamCreator = function (configuration) {
20256
20106
  * @param {*} [options] Override http request option.
20257
20107
  * @throws {RequiredError}
20258
20108
  */
20259
- paymentGatewayRefundStatusIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
20109
+ adminPaymentGatewayRefundStatusIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
20260
20110
  // verify required parameter 'id' is not null or undefined
20261
- assertParamExists('paymentGatewayRefundStatusIdGet', 'id', id);
20262
- const localVarPath = `/payment-gateway/refund-status/{id}`
20111
+ assertParamExists('adminPaymentGatewayRefundStatusIdGet', 'id', id);
20112
+ const localVarPath = `/admin/payment-gateway/refund-status/{id}`
20263
20113
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20264
20114
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20265
20115
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -20296,8 +20146,8 @@ export const RefundManagementApiAxiosParamCreator = function (configuration) {
20296
20146
  * @param {*} [options] Override http request option.
20297
20147
  * @throws {RequiredError}
20298
20148
  */
20299
- 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 = {}) {
20300
- const localVarPath = `/payment-gateway/refunds`;
20149
+ 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 = {}) {
20150
+ const localVarPath = `/admin/payment-gateway/refunds`;
20301
20151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20302
20152
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20303
20153
  let baseOptions;
@@ -20347,15 +20197,6 @@ export const RefundManagementApiAxiosParamCreator = function (configuration) {
20347
20197
  options: localVarRequestOptions,
20348
20198
  };
20349
20199
  }),
20350
- };
20351
- };
20352
- /**
20353
- * RefundManagementApi - functional programming interface
20354
- * @export
20355
- */
20356
- export const RefundManagementApiFp = function (configuration) {
20357
- const localVarAxiosParamCreator = RefundManagementApiAxiosParamCreator(configuration);
20358
- return {
20359
20200
  /**
20360
20201
  * Calculates refund amount based on remaining credits and original credit pricing
20361
20202
  * @summary Calculate refund amount
@@ -20363,31 +20204,62 @@ export const RefundManagementApiFp = function (configuration) {
20363
20204
  * @param {*} [options] Override http request option.
20364
20205
  * @throws {RequiredError}
20365
20206
  */
20366
- apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20367
- return __awaiter(this, void 0, void 0, function* () {
20368
- var _a, _b, _c;
20369
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options);
20370
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20371
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundCalculatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20372
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20373
- });
20374
- },
20375
- /**
20376
- * Checks if a payment is eligible for refund
20377
- * @summary Check refund eligibility
20378
- * @param {number} paymentId Payment ID
20379
- * @param {*} [options] Override http request option.
20380
- * @throws {RequiredError}
20381
- */
20382
- apiRefundEligibilityPaymentIdGet(paymentId, options) {
20383
- return __awaiter(this, void 0, void 0, function* () {
20384
- var _a, _b, _c;
20385
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundEligibilityPaymentIdGet(paymentId, options);
20386
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20387
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundEligibilityPaymentIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20388
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20389
- });
20390
- },
20207
+ apiRefundCalculatePost: (dataTypesRefundCalculationRequestDto_1, ...args_1) => __awaiter(this, [dataTypesRefundCalculationRequestDto_1, ...args_1], void 0, function* (dataTypesRefundCalculationRequestDto, options = {}) {
20208
+ // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
20209
+ assertParamExists('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto);
20210
+ const localVarPath = `/api/refund/calculate`;
20211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20213
+ let baseOptions;
20214
+ if (configuration) {
20215
+ baseOptions = configuration.baseOptions;
20216
+ }
20217
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20218
+ const localVarHeaderParameter = {};
20219
+ const localVarQueryParameter = {};
20220
+ // authentication BearerAuth required
20221
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20222
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20225
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20226
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration);
20227
+ return {
20228
+ url: toPathString(localVarUrlObj),
20229
+ options: localVarRequestOptions,
20230
+ };
20231
+ }),
20232
+ /**
20233
+ * Checks if a payment is eligible for refund
20234
+ * @summary Check refund eligibility
20235
+ * @param {number} paymentId Payment ID
20236
+ * @param {*} [options] Override http request option.
20237
+ * @throws {RequiredError}
20238
+ */
20239
+ apiRefundEligibilityPaymentIdGet: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
20240
+ // verify required parameter 'paymentId' is not null or undefined
20241
+ assertParamExists('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId);
20242
+ const localVarPath = `/api/refund/eligibility/{payment_id}`
20243
+ .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
20244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20246
+ let baseOptions;
20247
+ if (configuration) {
20248
+ baseOptions = configuration.baseOptions;
20249
+ }
20250
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20251
+ const localVarHeaderParameter = {};
20252
+ const localVarQueryParameter = {};
20253
+ // authentication BearerAuth required
20254
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20255
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20257
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20258
+ return {
20259
+ url: toPathString(localVarUrlObj),
20260
+ options: localVarRequestOptions,
20261
+ };
20262
+ }),
20391
20263
  /**
20392
20264
  * Retrieves refund history for an organization with filtering options
20393
20265
  * @summary Get refund history
@@ -20401,15 +20273,48 @@ export const RefundManagementApiFp = function (configuration) {
20401
20273
  * @param {*} [options] Override http request option.
20402
20274
  * @throws {RequiredError}
20403
20275
  */
20404
- apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20405
- return __awaiter(this, void 0, void 0, function* () {
20406
- var _a, _b, _c;
20407
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options);
20408
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20409
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20410
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20411
- });
20412
- },
20276
+ 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 = {}) {
20277
+ const localVarPath = `/api/refund/history`;
20278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20280
+ let baseOptions;
20281
+ if (configuration) {
20282
+ baseOptions = configuration.baseOptions;
20283
+ }
20284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
20285
+ const localVarHeaderParameter = {};
20286
+ const localVarQueryParameter = {};
20287
+ // authentication BearerAuth required
20288
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20289
+ if (orgId !== undefined) {
20290
+ localVarQueryParameter['org_id'] = orgId;
20291
+ }
20292
+ if (paymentId !== undefined) {
20293
+ localVarQueryParameter['payment_id'] = paymentId;
20294
+ }
20295
+ if (startDate !== undefined) {
20296
+ localVarQueryParameter['start_date'] = startDate;
20297
+ }
20298
+ if (endDate !== undefined) {
20299
+ localVarQueryParameter['end_date'] = endDate;
20300
+ }
20301
+ if (status !== undefined) {
20302
+ localVarQueryParameter['status'] = status;
20303
+ }
20304
+ if (limit !== undefined) {
20305
+ localVarQueryParameter['limit'] = limit;
20306
+ }
20307
+ if (offset !== undefined) {
20308
+ localVarQueryParameter['offset'] = offset;
20309
+ }
20310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20312
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20313
+ return {
20314
+ url: toPathString(localVarUrlObj),
20315
+ options: localVarRequestOptions,
20316
+ };
20317
+ }),
20413
20318
  /**
20414
20319
  * Processes a refund request and executes credit adjustments
20415
20320
  * @summary Process refund
@@ -20417,15 +20322,40 @@ export const RefundManagementApiFp = function (configuration) {
20417
20322
  * @param {*} [options] Override http request option.
20418
20323
  * @throws {RequiredError}
20419
20324
  */
20420
- apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20421
- return __awaiter(this, void 0, void 0, function* () {
20422
- var _a, _b, _c;
20423
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options);
20424
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20425
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundProcessPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20426
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20427
- });
20428
- },
20325
+ apiRefundProcessPost: (dataTypesProcessRefundRequestDto_1, ...args_1) => __awaiter(this, [dataTypesProcessRefundRequestDto_1, ...args_1], void 0, function* (dataTypesProcessRefundRequestDto, options = {}) {
20326
+ // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
20327
+ assertParamExists('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto);
20328
+ const localVarPath = `/api/refund/process`;
20329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20330
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20331
+ let baseOptions;
20332
+ if (configuration) {
20333
+ baseOptions = configuration.baseOptions;
20334
+ }
20335
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
20336
+ const localVarHeaderParameter = {};
20337
+ const localVarQueryParameter = {};
20338
+ // authentication BearerAuth required
20339
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
20340
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20343
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20344
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration);
20345
+ return {
20346
+ url: toPathString(localVarUrlObj),
20347
+ options: localVarRequestOptions,
20348
+ };
20349
+ }),
20350
+ };
20351
+ };
20352
+ /**
20353
+ * RefundManagementApi - functional programming interface
20354
+ * @export
20355
+ */
20356
+ export const RefundManagementApiFp = function (configuration) {
20357
+ const localVarAxiosParamCreator = RefundManagementApiAxiosParamCreator(configuration);
20358
+ return {
20429
20359
  /**
20430
20360
  * Approves or rejects a pending refund request
20431
20361
  * @summary Process refund approval or rejection
@@ -20433,12 +20363,12 @@ export const RefundManagementApiFp = function (configuration) {
20433
20363
  * @param {*} [options] Override http request option.
20434
20364
  * @throws {RequiredError}
20435
20365
  */
20436
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20366
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20437
20367
  return __awaiter(this, void 0, void 0, function* () {
20438
20368
  var _a, _b, _c;
20439
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
20369
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
20440
20370
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20441
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.paymentGatewayRefundApprovalPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20371
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20442
20372
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20443
20373
  });
20444
20374
  },
@@ -20448,12 +20378,12 @@ export const RefundManagementApiFp = function (configuration) {
20448
20378
  * @param {*} [options] Override http request option.
20449
20379
  * @throws {RequiredError}
20450
20380
  */
20451
- paymentGatewayRefundApprovalsGet(options) {
20381
+ adminPaymentGatewayRefundApprovalsGet(options) {
20452
20382
  return __awaiter(this, void 0, void 0, function* () {
20453
20383
  var _a, _b, _c;
20454
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundApprovalsGet(options);
20384
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalsGet(options);
20455
20385
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20456
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.paymentGatewayRefundApprovalsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20386
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20457
20387
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20458
20388
  });
20459
20389
  },
@@ -20464,12 +20394,12 @@ export const RefundManagementApiFp = function (configuration) {
20464
20394
  * @param {*} [options] Override http request option.
20465
20395
  * @throws {RequiredError}
20466
20396
  */
20467
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20397
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20468
20398
  return __awaiter(this, void 0, void 0, function* () {
20469
20399
  var _a, _b, _c;
20470
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
20400
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
20471
20401
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20472
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.paymentGatewayRefundRequestPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20402
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundRequestPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20473
20403
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20474
20404
  });
20475
20405
  },
@@ -20480,12 +20410,12 @@ export const RefundManagementApiFp = function (configuration) {
20480
20410
  * @param {*} [options] Override http request option.
20481
20411
  * @throws {RequiredError}
20482
20412
  */
20483
- paymentGatewayRefundStatusIdGet(id, options) {
20413
+ adminPaymentGatewayRefundStatusIdGet(id, options) {
20484
20414
  return __awaiter(this, void 0, void 0, function* () {
20485
20415
  var _a, _b, _c;
20486
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundStatusIdGet(id, options);
20416
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundStatusIdGet(id, options);
20487
20417
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20488
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.paymentGatewayRefundStatusIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20418
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundStatusIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20489
20419
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20490
20420
  });
20491
20421
  },
@@ -20505,24 +20435,15 @@ export const RefundManagementApiFp = function (configuration) {
20505
20435
  * @param {*} [options] Override http request option.
20506
20436
  * @throws {RequiredError}
20507
20437
  */
20508
- paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20438
+ adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20509
20439
  return __awaiter(this, void 0, void 0, function* () {
20510
20440
  var _a, _b, _c;
20511
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
20441
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
20512
20442
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20513
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.paymentGatewayRefundsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20443
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20514
20444
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20515
20445
  });
20516
20446
  },
20517
- };
20518
- };
20519
- /**
20520
- * RefundManagementApi - factory interface
20521
- * @export
20522
- */
20523
- export const RefundManagementApiFactory = function (configuration, basePath, axios) {
20524
- const localVarFp = RefundManagementApiFp(configuration);
20525
- return {
20526
20447
  /**
20527
20448
  * Calculates refund amount based on remaining credits and original credit pricing
20528
20449
  * @summary Calculate refund amount
@@ -20531,7 +20452,13 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20531
20452
  * @throws {RequiredError}
20532
20453
  */
20533
20454
  apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20534
- return localVarFp.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(axios, basePath));
20455
+ return __awaiter(this, void 0, void 0, function* () {
20456
+ var _a, _b, _c;
20457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options);
20458
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20459
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundCalculatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20460
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20461
+ });
20535
20462
  },
20536
20463
  /**
20537
20464
  * Checks if a payment is eligible for refund
@@ -20541,7 +20468,13 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20541
20468
  * @throws {RequiredError}
20542
20469
  */
20543
20470
  apiRefundEligibilityPaymentIdGet(paymentId, options) {
20544
- return localVarFp.apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(axios, basePath));
20471
+ return __awaiter(this, void 0, void 0, function* () {
20472
+ var _a, _b, _c;
20473
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundEligibilityPaymentIdGet(paymentId, options);
20474
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20475
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundEligibilityPaymentIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20477
+ });
20545
20478
  },
20546
20479
  /**
20547
20480
  * Retrieves refund history for an organization with filtering options
@@ -20557,7 +20490,13 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20557
20490
  * @throws {RequiredError}
20558
20491
  */
20559
20492
  apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20560
- return localVarFp.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(axios, basePath));
20493
+ return __awaiter(this, void 0, void 0, function* () {
20494
+ var _a, _b, _c;
20495
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options);
20496
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20497
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20498
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20499
+ });
20561
20500
  },
20562
20501
  /**
20563
20502
  * Processes a refund request and executes credit adjustments
@@ -20567,8 +20506,23 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20567
20506
  * @throws {RequiredError}
20568
20507
  */
20569
20508
  apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20570
- return localVarFp.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(axios, basePath));
20509
+ return __awaiter(this, void 0, void 0, function* () {
20510
+ var _a, _b, _c;
20511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options);
20512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20513
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RefundManagementApi.apiRefundProcessPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20515
+ });
20571
20516
  },
20517
+ };
20518
+ };
20519
+ /**
20520
+ * RefundManagementApi - factory interface
20521
+ * @export
20522
+ */
20523
+ export const RefundManagementApiFactory = function (configuration, basePath, axios) {
20524
+ const localVarFp = RefundManagementApiFp(configuration);
20525
+ return {
20572
20526
  /**
20573
20527
  * Approves or rejects a pending refund request
20574
20528
  * @summary Process refund approval or rejection
@@ -20576,8 +20530,8 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20576
20530
  * @param {*} [options] Override http request option.
20577
20531
  * @throws {RequiredError}
20578
20532
  */
20579
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20580
- return localVarFp.paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
20533
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20534
+ return localVarFp.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
20581
20535
  },
20582
20536
  /**
20583
20537
  * Gets refund requests that require approval
@@ -20585,8 +20539,8 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20585
20539
  * @param {*} [options] Override http request option.
20586
20540
  * @throws {RequiredError}
20587
20541
  */
20588
- paymentGatewayRefundApprovalsGet(options) {
20589
- return localVarFp.paymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
20542
+ adminPaymentGatewayRefundApprovalsGet(options) {
20543
+ return localVarFp.adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
20590
20544
  },
20591
20545
  /**
20592
20546
  * Creates a comprehensive refund request with approval workflow
@@ -20595,8 +20549,8 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20595
20549
  * @param {*} [options] Override http request option.
20596
20550
  * @throws {RequiredError}
20597
20551
  */
20598
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20599
- return localVarFp.paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
20552
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20553
+ return localVarFp.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
20600
20554
  },
20601
20555
  /**
20602
20556
  * Gets the current status and details of a refund request by refund_id (UUID)
@@ -20605,8 +20559,8 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20605
20559
  * @param {*} [options] Override http request option.
20606
20560
  * @throws {RequiredError}
20607
20561
  */
20608
- paymentGatewayRefundStatusIdGet(id, options) {
20609
- return localVarFp.paymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
20562
+ adminPaymentGatewayRefundStatusIdGet(id, options) {
20563
+ return localVarFp.adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
20610
20564
  },
20611
20565
  /**
20612
20566
  * Gets a paginated list of refund requests with filtering
@@ -20624,8 +20578,54 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20624
20578
  * @param {*} [options] Override http request option.
20625
20579
  * @throws {RequiredError}
20626
20580
  */
20627
- paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20628
- return localVarFp.paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
20581
+ adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20582
+ return localVarFp.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
20583
+ },
20584
+ /**
20585
+ * Calculates refund amount based on remaining credits and original credit pricing
20586
+ * @summary Calculate refund amount
20587
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20588
+ * @param {*} [options] Override http request option.
20589
+ * @throws {RequiredError}
20590
+ */
20591
+ apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20592
+ return localVarFp.apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(axios, basePath));
20593
+ },
20594
+ /**
20595
+ * Checks if a payment is eligible for refund
20596
+ * @summary Check refund eligibility
20597
+ * @param {number} paymentId Payment ID
20598
+ * @param {*} [options] Override http request option.
20599
+ * @throws {RequiredError}
20600
+ */
20601
+ apiRefundEligibilityPaymentIdGet(paymentId, options) {
20602
+ return localVarFp.apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(axios, basePath));
20603
+ },
20604
+ /**
20605
+ * Retrieves refund history for an organization with filtering options
20606
+ * @summary Get refund history
20607
+ * @param {number} [orgId] Organization ID
20608
+ * @param {number} [paymentId] Payment ID
20609
+ * @param {string} [startDate] Start date (RFC3339)
20610
+ * @param {string} [endDate] End date (RFC3339)
20611
+ * @param {string} [status] Refund status
20612
+ * @param {number} [limit] Limit (default 20, max 100)
20613
+ * @param {number} [offset] Offset (default 0)
20614
+ * @param {*} [options] Override http request option.
20615
+ * @throws {RequiredError}
20616
+ */
20617
+ apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20618
+ return localVarFp.apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(axios, basePath));
20619
+ },
20620
+ /**
20621
+ * Processes a refund request and executes credit adjustments
20622
+ * @summary Process refund
20623
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20624
+ * @param {*} [options] Override http request option.
20625
+ * @throws {RequiredError}
20626
+ */
20627
+ apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20628
+ return localVarFp.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(axios, basePath));
20629
20629
  },
20630
20630
  };
20631
20631
  };
@@ -20637,117 +20637,117 @@ export const RefundManagementApiFactory = function (configuration, basePath, axi
20637
20637
  */
20638
20638
  export class RefundManagementApi extends BaseAPI {
20639
20639
  /**
20640
- * Calculates refund amount based on remaining credits and original credit pricing
20641
- * @summary Calculate refund amount
20642
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20640
+ * Approves or rejects a pending refund request
20641
+ * @summary Process refund approval or rejection
20642
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
20643
20643
  * @param {*} [options] Override http request option.
20644
20644
  * @throws {RequiredError}
20645
20645
  * @memberof RefundManagementApi
20646
20646
  */
20647
- apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20648
- return RefundManagementApiFp(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
20647
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20648
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
20649
20649
  }
20650
20650
  /**
20651
- * Checks if a payment is eligible for refund
20652
- * @summary Check refund eligibility
20653
- * @param {number} paymentId Payment ID
20651
+ * Gets refund requests that require approval
20652
+ * @summary Get pending refund approvals
20654
20653
  * @param {*} [options] Override http request option.
20655
20654
  * @throws {RequiredError}
20656
20655
  * @memberof RefundManagementApi
20657
20656
  */
20658
- apiRefundEligibilityPaymentIdGet(paymentId, options) {
20659
- return RefundManagementApiFp(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
20657
+ adminPaymentGatewayRefundApprovalsGet(options) {
20658
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
20660
20659
  }
20661
20660
  /**
20662
- * Retrieves refund history for an organization with filtering options
20663
- * @summary Get refund history
20664
- * @param {number} [orgId] Organization ID
20665
- * @param {number} [paymentId] Payment ID
20666
- * @param {string} [startDate] Start date (RFC3339)
20667
- * @param {string} [endDate] End date (RFC3339)
20668
- * @param {string} [status] Refund status
20669
- * @param {number} [limit] Limit (default 20, max 100)
20670
- * @param {number} [offset] Offset (default 0)
20661
+ * Creates a comprehensive refund request with approval workflow
20662
+ * @summary Create a new refund request
20663
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
20671
20664
  * @param {*} [options] Override http request option.
20672
20665
  * @throws {RequiredError}
20673
20666
  * @memberof RefundManagementApi
20674
20667
  */
20675
- apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20676
- return RefundManagementApiFp(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
20668
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20669
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20677
20670
  }
20678
20671
  /**
20679
- * Processes a refund request and executes credit adjustments
20680
- * @summary Process refund
20681
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20672
+ * Gets the current status and details of a refund request by refund_id (UUID)
20673
+ * @summary Get refund request status
20674
+ * @param {string} id Refund ID (UUID)
20682
20675
  * @param {*} [options] Override http request option.
20683
20676
  * @throws {RequiredError}
20684
20677
  * @memberof RefundManagementApi
20685
20678
  */
20686
- apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20687
- return RefundManagementApiFp(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20679
+ adminPaymentGatewayRefundStatusIdGet(id, options) {
20680
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
20688
20681
  }
20689
20682
  /**
20690
- * Approves or rejects a pending refund request
20691
- * @summary Process refund approval or rejection
20692
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
20683
+ * Gets a paginated list of refund requests with filtering
20684
+ * @summary List refund requests
20685
+ * @param {string} [dateFrom]
20686
+ * @param {string} [dateTo]
20687
+ * @param {number} [orderId]
20688
+ * @param {number} [page]
20689
+ * @param {number} [pageSize]
20690
+ * @param {string} [paymentId]
20691
+ * @param {string} [refundType]
20692
+ * @param {number} [requestedBy]
20693
+ * @param {boolean} [requireApproval]
20694
+ * @param {string} [status]
20693
20695
  * @param {*} [options] Override http request option.
20694
20696
  * @throws {RequiredError}
20695
20697
  * @memberof RefundManagementApi
20696
20698
  */
20697
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options) {
20698
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
20699
+ adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20700
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
20699
20701
  }
20700
20702
  /**
20701
- * Gets refund requests that require approval
20702
- * @summary Get pending refund approvals
20703
+ * Calculates refund amount based on remaining credits and original credit pricing
20704
+ * @summary Calculate refund amount
20705
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
20703
20706
  * @param {*} [options] Override http request option.
20704
20707
  * @throws {RequiredError}
20705
20708
  * @memberof RefundManagementApi
20706
20709
  */
20707
- paymentGatewayRefundApprovalsGet(options) {
20708
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
20710
+ apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options) {
20711
+ return RefundManagementApiFp(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
20709
20712
  }
20710
20713
  /**
20711
- * Creates a comprehensive refund request with approval workflow
20712
- * @summary Create a new refund request
20713
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
20714
+ * Checks if a payment is eligible for refund
20715
+ * @summary Check refund eligibility
20716
+ * @param {number} paymentId Payment ID
20714
20717
  * @param {*} [options] Override http request option.
20715
20718
  * @throws {RequiredError}
20716
20719
  * @memberof RefundManagementApi
20717
20720
  */
20718
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options) {
20719
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20721
+ apiRefundEligibilityPaymentIdGet(paymentId, options) {
20722
+ return RefundManagementApiFp(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
20720
20723
  }
20721
20724
  /**
20722
- * Gets the current status and details of a refund request by refund_id (UUID)
20723
- * @summary Get refund request status
20724
- * @param {string} id Refund ID (UUID)
20725
+ * Retrieves refund history for an organization with filtering options
20726
+ * @summary Get refund history
20727
+ * @param {number} [orgId] Organization ID
20728
+ * @param {number} [paymentId] Payment ID
20729
+ * @param {string} [startDate] Start date (RFC3339)
20730
+ * @param {string} [endDate] End date (RFC3339)
20731
+ * @param {string} [status] Refund status
20732
+ * @param {number} [limit] Limit (default 20, max 100)
20733
+ * @param {number} [offset] Offset (default 0)
20725
20734
  * @param {*} [options] Override http request option.
20726
20735
  * @throws {RequiredError}
20727
20736
  * @memberof RefundManagementApi
20728
20737
  */
20729
- paymentGatewayRefundStatusIdGet(id, options) {
20730
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
20738
+ apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options) {
20739
+ return RefundManagementApiFp(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
20731
20740
  }
20732
20741
  /**
20733
- * Gets a paginated list of refund requests with filtering
20734
- * @summary List refund requests
20735
- * @param {string} [dateFrom]
20736
- * @param {string} [dateTo]
20737
- * @param {number} [orderId]
20738
- * @param {number} [page]
20739
- * @param {number} [pageSize]
20740
- * @param {string} [paymentId]
20741
- * @param {string} [refundType]
20742
- * @param {number} [requestedBy]
20743
- * @param {boolean} [requireApproval]
20744
- * @param {string} [status]
20742
+ * Processes a refund request and executes credit adjustments
20743
+ * @summary Process refund
20744
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
20745
20745
  * @param {*} [options] Override http request option.
20746
20746
  * @throws {RequiredError}
20747
20747
  * @memberof RefundManagementApi
20748
20748
  */
20749
- paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options) {
20750
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
20749
+ apiRefundProcessPost(dataTypesProcessRefundRequestDto, options) {
20750
+ return RefundManagementApiFp(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
20751
20751
  }
20752
20752
  }
20753
20753
  /**