@seekora-ai/admin-api 1.0.74 → 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/api.ts CHANGED
@@ -8986,6 +8986,12 @@ export interface DataTypesCreatePaymentOrderRequest {
8986
8986
  * @memberof DataTypesCreatePaymentOrderRequest
8987
8987
  */
8988
8988
  'auto_renewal'?: boolean;
8989
+ /**
8990
+ * New: Required when using plan_identifier (monthly/annual)
8991
+ * @type {string}
8992
+ * @memberof DataTypesCreatePaymentOrderRequest
8993
+ */
8994
+ 'billing_frequency'?: string;
8989
8995
  /**
8990
8996
  * Fields for credit top-up
8991
8997
  * @type {number}
@@ -9023,7 +9029,7 @@ export interface DataTypesCreatePaymentOrderRequest {
9023
9029
  */
9024
9030
  'metadata'?: { [key: string]: any; };
9025
9031
  /**
9026
- * Fields for subscription payments
9032
+ * Fields for subscription payments (use either PlanID OR PlanIdentifier+BillingFrequency)
9027
9033
  * @type {number}
9028
9034
  * @memberof DataTypesCreatePaymentOrderRequest
9029
9035
  */
@@ -9041,11 +9047,17 @@ export interface DataTypesCreatePaymentOrderRequest {
9041
9047
  */
9042
9048
  'payment_type': DataTypesCreatePaymentOrderRequestPaymentTypeEnum;
9043
9049
  /**
9044
- *
9050
+ * Legacy: Direct variant plan ID
9045
9051
  * @type {number}
9046
9052
  * @memberof DataTypesCreatePaymentOrderRequest
9047
9053
  */
9048
9054
  'plan_id'?: number;
9055
+ /**
9056
+ * New: Logical plan identifier (shared across variants)
9057
+ * @type {string}
9058
+ * @memberof DataTypesCreatePaymentOrderRequest
9059
+ */
9060
+ 'plan_identifier'?: string;
9049
9061
  /**
9050
9062
  *
9051
9063
  * @type {string}
@@ -27619,8 +27631,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio
27619
27631
  * @param {*} [options] Override http request option.
27620
27632
  * @throws {RequiredError}
27621
27633
  */
27622
- commonLanguagesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27623
- const localVarPath = `/common/languages`;
27634
+ v1CommonLanguagesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27635
+ const localVarPath = `/v1/common/languages`;
27624
27636
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27625
27637
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27626
27638
  let baseOptions;
@@ -27659,10 +27671,10 @@ export const CommonApiFp = function(configuration?: Configuration) {
27659
27671
  * @param {*} [options] Override http request option.
27660
27672
  * @throws {RequiredError}
27661
27673
  */
27662
- async commonLanguagesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
27663
- const localVarAxiosArgs = await localVarAxiosParamCreator.commonLanguagesGet(options);
27674
+ async v1CommonLanguagesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
27675
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CommonLanguagesGet(options);
27664
27676
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27665
- const localVarOperationServerBasePath = operationServerMap['CommonApi.commonLanguagesGet']?.[localVarOperationServerIndex]?.url;
27677
+ const localVarOperationServerBasePath = operationServerMap['CommonApi.v1CommonLanguagesGet']?.[localVarOperationServerIndex]?.url;
27666
27678
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27667
27679
  },
27668
27680
  }
@@ -27681,8 +27693,8 @@ export const CommonApiFactory = function (configuration?: Configuration, basePat
27681
27693
  * @param {*} [options] Override http request option.
27682
27694
  * @throws {RequiredError}
27683
27695
  */
27684
- commonLanguagesGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
27685
- return localVarFp.commonLanguagesGet(options).then((request) => request(axios, basePath));
27696
+ v1CommonLanguagesGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
27697
+ return localVarFp.v1CommonLanguagesGet(options).then((request) => request(axios, basePath));
27686
27698
  },
27687
27699
  };
27688
27700
  };
@@ -27701,8 +27713,8 @@ export class CommonApi extends BaseAPI {
27701
27713
  * @throws {RequiredError}
27702
27714
  * @memberof CommonApi
27703
27715
  */
27704
- public commonLanguagesGet(options?: RawAxiosRequestConfig) {
27705
- return CommonApiFp(this.configuration).commonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
27716
+ public v1CommonLanguagesGet(options?: RawAxiosRequestConfig) {
27717
+ return CommonApiFp(this.configuration).v1CommonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
27706
27718
  }
27707
27719
  }
27708
27720
 
@@ -35732,13 +35744,16 @@ export class ParentMenusApi extends BaseAPI {
35732
35744
  export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Configuration) {
35733
35745
  return {
35734
35746
  /**
35735
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
35736
- * @summary Get available credit plans
35747
+ * Creates a payment order using specified or default payment gateway
35748
+ * @summary Create a new payment order
35749
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
35737
35750
  * @param {*} [options] Override http request option.
35738
35751
  * @throws {RequiredError}
35739
35752
  */
35740
- adminPaymentGatewayCreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35741
- const localVarPath = `/admin/payment-gateway/credit-plans`;
35753
+ adminPaymentGatewayCreateOrderPost: async (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35754
+ // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
35755
+ assertParamExists('adminPaymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest)
35756
+ const localVarPath = `/admin/payment-gateway/create-order`;
35742
35757
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35743
35758
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35744
35759
  let baseOptions;
@@ -35746,15 +35761,21 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35746
35761
  baseOptions = configuration.baseOptions;
35747
35762
  }
35748
35763
 
35749
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35764
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
35750
35765
  const localVarHeaderParameter = {} as any;
35751
35766
  const localVarQueryParameter = {} as any;
35752
35767
 
35768
+ // authentication BearerAuth required
35769
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
35770
+
35753
35771
 
35754
35772
 
35773
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35774
+
35755
35775
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35756
35776
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35757
35777
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35778
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
35758
35779
 
35759
35780
  return {
35760
35781
  url: toPathString(localVarUrlObj),
@@ -35762,16 +35783,13 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35762
35783
  };
35763
35784
  },
35764
35785
  /**
35765
- * Creates a payment order using specified or default payment gateway
35766
- * @summary Create a new payment order
35767
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
35786
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
35787
+ * @summary Get available credit plans
35768
35788
  * @param {*} [options] Override http request option.
35769
35789
  * @throws {RequiredError}
35770
35790
  */
35771
- paymentGatewayCreateOrderPost: async (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35772
- // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
35773
- assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest)
35774
- const localVarPath = `/payment-gateway/create-order`;
35791
+ adminPaymentGatewayCreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35792
+ const localVarPath = `/admin/payment-gateway/credit-plans`;
35775
35793
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35776
35794
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35777
35795
  let baseOptions;
@@ -35779,21 +35797,15 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35779
35797
  baseOptions = configuration.baseOptions;
35780
35798
  }
35781
35799
 
35782
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
35800
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35783
35801
  const localVarHeaderParameter = {} as any;
35784
35802
  const localVarQueryParameter = {} as any;
35785
35803
 
35786
- // authentication BearerAuth required
35787
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
35788
-
35789
35804
 
35790
35805
 
35791
- localVarHeaderParameter['Content-Type'] = 'application/json';
35792
-
35793
35806
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35794
35807
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35795
35808
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35796
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
35797
35809
 
35798
35810
  return {
35799
35811
  url: toPathString(localVarUrlObj),
@@ -35806,8 +35818,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35806
35818
  * @param {*} [options] Override http request option.
35807
35819
  * @throws {RequiredError}
35808
35820
  */
35809
- paymentGatewayGatewaysGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35810
- const localVarPath = `/payment-gateway/gateways`;
35821
+ adminPaymentGatewayGatewaysGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35822
+ const localVarPath = `/admin/payment-gateway/gateways`;
35811
35823
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35812
35824
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35813
35825
  let baseOptions;
@@ -35840,10 +35852,10 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35840
35852
  * @param {*} [options] Override http request option.
35841
35853
  * @throws {RequiredError}
35842
35854
  */
35843
- paymentGatewayRefundPost: async (dataTypesRefundRequestDto: DataTypesRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35855
+ adminPaymentGatewayRefundPost: async (dataTypesRefundRequestDto: DataTypesRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35844
35856
  // verify required parameter 'dataTypesRefundRequestDto' is not null or undefined
35845
- assertParamExists('paymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto)
35846
- const localVarPath = `/payment-gateway/refund`;
35857
+ assertParamExists('adminPaymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto)
35858
+ const localVarPath = `/admin/payment-gateway/refund`;
35847
35859
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35848
35860
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35849
35861
  let baseOptions;
@@ -35879,10 +35891,10 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35879
35891
  * @param {*} [options] Override http request option.
35880
35892
  * @throws {RequiredError}
35881
35893
  */
35882
- paymentGatewayVerifyPost: async (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35894
+ adminPaymentGatewayVerifyPost: async (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35883
35895
  // verify required parameter 'dataTypesVerifyPaymentRequest' is not null or undefined
35884
- assertParamExists('paymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest)
35885
- const localVarPath = `/payment-gateway/verify`;
35896
+ assertParamExists('adminPaymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest)
35897
+ const localVarPath = `/admin/payment-gateway/verify`;
35886
35898
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35887
35899
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35888
35900
  let baseOptions;
@@ -36026,28 +36038,28 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36026
36038
  const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration)
36027
36039
  return {
36028
36040
  /**
36029
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36030
- * @summary Get available credit plans
36041
+ * Creates a payment order using specified or default payment gateway
36042
+ * @summary Create a new payment order
36043
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36031
36044
  * @param {*} [options] Override http request option.
36032
36045
  * @throws {RequiredError}
36033
36046
  */
36034
- async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
36035
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
36047
+ async adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>> {
36048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
36036
36049
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36037
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
36050
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreateOrderPost']?.[localVarOperationServerIndex]?.url;
36038
36051
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36039
36052
  },
36040
36053
  /**
36041
- * Creates a payment order using specified or default payment gateway
36042
- * @summary Create a new payment order
36043
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36054
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36055
+ * @summary Get available credit plans
36044
36056
  * @param {*} [options] Override http request option.
36045
36057
  * @throws {RequiredError}
36046
36058
  */
36047
- async paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>> {
36048
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
36059
+ async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
36060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
36049
36061
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36050
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']?.[localVarOperationServerIndex]?.url;
36062
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
36051
36063
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36052
36064
  },
36053
36065
  /**
@@ -36056,10 +36068,10 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36056
36068
  * @param {*} [options] Override http request option.
36057
36069
  * @throws {RequiredError}
36058
36070
  */
36059
- async paymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGatewayListResponse>> {
36060
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayGatewaysGet(options);
36071
+ async adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGatewayListResponse>> {
36072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayGatewaysGet(options);
36061
36073
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36062
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayGatewaysGet']?.[localVarOperationServerIndex]?.url;
36074
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayGatewaysGet']?.[localVarOperationServerIndex]?.url;
36063
36075
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36064
36076
  },
36065
36077
  /**
@@ -36069,10 +36081,10 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36069
36081
  * @param {*} [options] Override http request option.
36070
36082
  * @throws {RequiredError}
36071
36083
  */
36072
- async paymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundResponseDto>> {
36073
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundPost(dataTypesRefundRequestDto, options);
36084
+ async adminPaymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundResponseDto>> {
36085
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options);
36074
36086
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36075
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayRefundPost']?.[localVarOperationServerIndex]?.url;
36087
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayRefundPost']?.[localVarOperationServerIndex]?.url;
36076
36088
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36077
36089
  },
36078
36090
  /**
@@ -36082,10 +36094,10 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36082
36094
  * @param {*} [options] Override http request option.
36083
36095
  * @throws {RequiredError}
36084
36096
  */
36085
- async paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>> {
36086
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
36097
+ async adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>> {
36098
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
36087
36099
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36088
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayVerifyPost']?.[localVarOperationServerIndex]?.url;
36100
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyPost']?.[localVarOperationServerIndex]?.url;
36089
36101
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36090
36102
  },
36091
36103
  /**
@@ -36138,23 +36150,23 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36138
36150
  const localVarFp = PaymentGatewayApiFp(configuration)
36139
36151
  return {
36140
36152
  /**
36141
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36142
- * @summary Get available credit plans
36153
+ * Creates a payment order using specified or default payment gateway
36154
+ * @summary Create a new payment order
36155
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36143
36156
  * @param {*} [options] Override http request option.
36144
36157
  * @throws {RequiredError}
36145
36158
  */
36146
- adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
36147
- return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
36159
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse> {
36160
+ return localVarFp.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
36148
36161
  },
36149
36162
  /**
36150
- * Creates a payment order using specified or default payment gateway
36151
- * @summary Create a new payment order
36152
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36163
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36164
+ * @summary Get available credit plans
36153
36165
  * @param {*} [options] Override http request option.
36154
36166
  * @throws {RequiredError}
36155
36167
  */
36156
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse> {
36157
- return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
36168
+ adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
36169
+ return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
36158
36170
  },
36159
36171
  /**
36160
36172
  * Returns list of all available payment gateways
@@ -36162,8 +36174,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36162
36174
  * @param {*} [options] Override http request option.
36163
36175
  * @throws {RequiredError}
36164
36176
  */
36165
- paymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse> {
36166
- return localVarFp.paymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
36177
+ adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse> {
36178
+ return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
36167
36179
  },
36168
36180
  /**
36169
36181
  * Processes a refund for a completed payment
@@ -36172,8 +36184,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36172
36184
  * @param {*} [options] Override http request option.
36173
36185
  * @throws {RequiredError}
36174
36186
  */
36175
- paymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundResponseDto> {
36176
- return localVarFp.paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
36187
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundResponseDto> {
36188
+ return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
36177
36189
  },
36178
36190
  /**
36179
36191
  * Verifies the current status of a payment
@@ -36182,8 +36194,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36182
36194
  * @param {*} [options] Override http request option.
36183
36195
  * @throws {RequiredError}
36184
36196
  */
36185
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse> {
36186
- return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
36197
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse> {
36198
+ return localVarFp.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
36187
36199
  },
36188
36200
  /**
36189
36201
  * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
@@ -36226,26 +36238,26 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36226
36238
  */
36227
36239
  export class PaymentGatewayApi extends BaseAPI {
36228
36240
  /**
36229
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36230
- * @summary Get available credit plans
36241
+ * Creates a payment order using specified or default payment gateway
36242
+ * @summary Create a new payment order
36243
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36231
36244
  * @param {*} [options] Override http request option.
36232
36245
  * @throws {RequiredError}
36233
36246
  * @memberof PaymentGatewayApi
36234
36247
  */
36235
- public adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig) {
36236
- return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
36248
+ public adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) {
36249
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
36237
36250
  }
36238
36251
 
36239
36252
  /**
36240
- * Creates a payment order using specified or default payment gateway
36241
- * @summary Create a new payment order
36242
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36253
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36254
+ * @summary Get available credit plans
36243
36255
  * @param {*} [options] Override http request option.
36244
36256
  * @throws {RequiredError}
36245
36257
  * @memberof PaymentGatewayApi
36246
36258
  */
36247
- public paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) {
36248
- return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
36259
+ public adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig) {
36260
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
36249
36261
  }
36250
36262
 
36251
36263
  /**
@@ -36255,8 +36267,8 @@ export class PaymentGatewayApi extends BaseAPI {
36255
36267
  * @throws {RequiredError}
36256
36268
  * @memberof PaymentGatewayApi
36257
36269
  */
36258
- public paymentGatewayGatewaysGet(options?: RawAxiosRequestConfig) {
36259
- return PaymentGatewayApiFp(this.configuration).paymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
36270
+ public adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig) {
36271
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
36260
36272
  }
36261
36273
 
36262
36274
  /**
@@ -36267,8 +36279,8 @@ export class PaymentGatewayApi extends BaseAPI {
36267
36279
  * @throws {RequiredError}
36268
36280
  * @memberof PaymentGatewayApi
36269
36281
  */
36270
- public paymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig) {
36271
- return PaymentGatewayApiFp(this.configuration).paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
36282
+ public adminPaymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig) {
36283
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
36272
36284
  }
36273
36285
 
36274
36286
  /**
@@ -36279,8 +36291,8 @@ export class PaymentGatewayApi extends BaseAPI {
36279
36291
  * @throws {RequiredError}
36280
36292
  * @memberof PaymentGatewayApi
36281
36293
  */
36282
- public paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) {
36283
- return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
36294
+ public adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) {
36295
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
36284
36296
  }
36285
36297
 
36286
36298
  /**
@@ -40938,16 +40950,16 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
40938
40950
  export const RefundManagementApiAxiosParamCreator = function (configuration?: Configuration) {
40939
40951
  return {
40940
40952
  /**
40941
- * Calculates refund amount based on remaining credits and original credit pricing
40942
- * @summary Calculate refund amount
40943
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
40953
+ * Approves or rejects a pending refund request
40954
+ * @summary Process refund approval or rejection
40955
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
40944
40956
  * @param {*} [options] Override http request option.
40945
40957
  * @throws {RequiredError}
40946
40958
  */
40947
- apiRefundCalculatePost: async (dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40948
- // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
40949
- assertParamExists('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto)
40950
- const localVarPath = `/api/refund/calculate`;
40959
+ adminPaymentGatewayRefundApprovalPost: async (dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40960
+ // verify required parameter 'dataTypesRefundApprovalDto' is not null or undefined
40961
+ assertParamExists('adminPaymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto)
40962
+ const localVarPath = `/admin/payment-gateway/refund-approval`;
40951
40963
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40952
40964
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40953
40965
  let baseOptions;
@@ -40969,7 +40981,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
40969
40981
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40970
40982
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40971
40983
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40972
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration)
40984
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundApprovalDto, localVarRequestOptions, configuration)
40973
40985
 
40974
40986
  return {
40975
40987
  url: toPathString(localVarUrlObj),
@@ -40977,17 +40989,13 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
40977
40989
  };
40978
40990
  },
40979
40991
  /**
40980
- * Checks if a payment is eligible for refund
40981
- * @summary Check refund eligibility
40982
- * @param {number} paymentId Payment ID
40992
+ * Gets refund requests that require approval
40993
+ * @summary Get pending refund approvals
40983
40994
  * @param {*} [options] Override http request option.
40984
40995
  * @throws {RequiredError}
40985
40996
  */
40986
- apiRefundEligibilityPaymentIdGet: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40987
- // verify required parameter 'paymentId' is not null or undefined
40988
- assertParamExists('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId)
40989
- const localVarPath = `/api/refund/eligibility/{payment_id}`
40990
- .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
40997
+ adminPaymentGatewayRefundApprovalsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40998
+ const localVarPath = `/admin/payment-gateway/refund-approvals`;
40991
40999
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40992
41000
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40993
41001
  let baseOptions;
@@ -41014,20 +41022,16 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41014
41022
  };
41015
41023
  },
41016
41024
  /**
41017
- * Retrieves refund history for an organization with filtering options
41018
- * @summary Get refund history
41019
- * @param {number} [orgId] Organization ID
41020
- * @param {number} [paymentId] Payment ID
41021
- * @param {string} [startDate] Start date (RFC3339)
41022
- * @param {string} [endDate] End date (RFC3339)
41023
- * @param {string} [status] Refund status
41024
- * @param {number} [limit] Limit (default 20, max 100)
41025
- * @param {number} [offset] Offset (default 0)
41025
+ * Creates a comprehensive refund request with approval workflow
41026
+ * @summary Create a new refund request
41027
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41026
41028
  * @param {*} [options] Override http request option.
41027
41029
  * @throws {RequiredError}
41028
41030
  */
41029
- apiRefundHistoryGet: async (orgId?: number, paymentId?: number, startDate?: string, endDate?: string, status?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41030
- const localVarPath = `/api/refund/history`;
41031
+ adminPaymentGatewayRefundRequestPost: async (dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41032
+ // verify required parameter 'dataTypesCreateRefundRequestDto' is not null or undefined
41033
+ assertParamExists('adminPaymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto)
41034
+ const localVarPath = `/admin/payment-gateway/refund-request`;
41031
41035
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41032
41036
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41033
41037
  let baseOptions;
@@ -41035,46 +41039,21 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41035
41039
  baseOptions = configuration.baseOptions;
41036
41040
  }
41037
41041
 
41038
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41042
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41039
41043
  const localVarHeaderParameter = {} as any;
41040
41044
  const localVarQueryParameter = {} as any;
41041
41045
 
41042
41046
  // authentication BearerAuth required
41043
41047
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41044
41048
 
41045
- if (orgId !== undefined) {
41046
- localVarQueryParameter['org_id'] = orgId;
41047
- }
41048
-
41049
- if (paymentId !== undefined) {
41050
- localVarQueryParameter['payment_id'] = paymentId;
41051
- }
41052
-
41053
- if (startDate !== undefined) {
41054
- localVarQueryParameter['start_date'] = startDate;
41055
- }
41056
-
41057
- if (endDate !== undefined) {
41058
- localVarQueryParameter['end_date'] = endDate;
41059
- }
41060
-
41061
- if (status !== undefined) {
41062
- localVarQueryParameter['status'] = status;
41063
- }
41064
-
41065
- if (limit !== undefined) {
41066
- localVarQueryParameter['limit'] = limit;
41067
- }
41068
-
41069
- if (offset !== undefined) {
41070
- localVarQueryParameter['offset'] = offset;
41071
- }
41072
-
41073
41049
 
41074
41050
 
41051
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41052
+
41075
41053
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41076
41054
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41077
41055
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41056
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRefundRequestDto, localVarRequestOptions, configuration)
41078
41057
 
41079
41058
  return {
41080
41059
  url: toPathString(localVarUrlObj),
@@ -41082,16 +41061,17 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41082
41061
  };
41083
41062
  },
41084
41063
  /**
41085
- * Processes a refund request and executes credit adjustments
41086
- * @summary Process refund
41087
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41064
+ * Gets the current status and details of a refund request by refund_id (UUID)
41065
+ * @summary Get refund request status
41066
+ * @param {string} id Refund ID (UUID)
41088
41067
  * @param {*} [options] Override http request option.
41089
41068
  * @throws {RequiredError}
41090
41069
  */
41091
- apiRefundProcessPost: async (dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41092
- // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
41093
- assertParamExists('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto)
41094
- const localVarPath = `/api/refund/process`;
41070
+ adminPaymentGatewayRefundStatusIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41071
+ // verify required parameter 'id' is not null or undefined
41072
+ assertParamExists('adminPaymentGatewayRefundStatusIdGet', 'id', id)
41073
+ const localVarPath = `/admin/payment-gateway/refund-status/{id}`
41074
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
41095
41075
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41096
41076
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41097
41077
  let baseOptions;
@@ -41099,7 +41079,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41099
41079
  baseOptions = configuration.baseOptions;
41100
41080
  }
41101
41081
 
41102
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41082
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41103
41083
  const localVarHeaderParameter = {} as any;
41104
41084
  const localVarQueryParameter = {} as any;
41105
41085
 
@@ -41108,12 +41088,9 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41108
41088
 
41109
41089
 
41110
41090
 
41111
- localVarHeaderParameter['Content-Type'] = 'application/json';
41112
-
41113
41091
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41114
41092
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41115
41093
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41116
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration)
41117
41094
 
41118
41095
  return {
41119
41096
  url: toPathString(localVarUrlObj),
@@ -41121,16 +41098,23 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41121
41098
  };
41122
41099
  },
41123
41100
  /**
41124
- * Approves or rejects a pending refund request
41125
- * @summary Process refund approval or rejection
41126
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41101
+ * Gets a paginated list of refund requests with filtering
41102
+ * @summary List refund requests
41103
+ * @param {string} [dateFrom]
41104
+ * @param {string} [dateTo]
41105
+ * @param {number} [orderId]
41106
+ * @param {number} [page]
41107
+ * @param {number} [pageSize]
41108
+ * @param {string} [paymentId]
41109
+ * @param {string} [refundType]
41110
+ * @param {number} [requestedBy]
41111
+ * @param {boolean} [requireApproval]
41112
+ * @param {string} [status]
41127
41113
  * @param {*} [options] Override http request option.
41128
41114
  * @throws {RequiredError}
41129
41115
  */
41130
- paymentGatewayRefundApprovalPost: async (dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41131
- // verify required parameter 'dataTypesRefundApprovalDto' is not null or undefined
41132
- assertParamExists('paymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto)
41133
- const localVarPath = `/payment-gateway/refund-approval`;
41116
+ adminPaymentGatewayRefundsGet: async (dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41117
+ const localVarPath = `/admin/payment-gateway/refunds`;
41134
41118
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41135
41119
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41136
41120
  let baseOptions;
@@ -41138,21 +41122,58 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41138
41122
  baseOptions = configuration.baseOptions;
41139
41123
  }
41140
41124
 
41141
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41125
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41142
41126
  const localVarHeaderParameter = {} as any;
41143
41127
  const localVarQueryParameter = {} as any;
41144
41128
 
41145
41129
  // authentication BearerAuth required
41146
41130
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41147
41131
 
41132
+ if (dateFrom !== undefined) {
41133
+ localVarQueryParameter['date_from'] = dateFrom;
41134
+ }
41135
+
41136
+ if (dateTo !== undefined) {
41137
+ localVarQueryParameter['date_to'] = dateTo;
41138
+ }
41139
+
41140
+ if (orderId !== undefined) {
41141
+ localVarQueryParameter['order_id'] = orderId;
41142
+ }
41143
+
41144
+ if (page !== undefined) {
41145
+ localVarQueryParameter['page'] = page;
41146
+ }
41147
+
41148
+ if (pageSize !== undefined) {
41149
+ localVarQueryParameter['page_size'] = pageSize;
41150
+ }
41151
+
41152
+ if (paymentId !== undefined) {
41153
+ localVarQueryParameter['payment_id'] = paymentId;
41154
+ }
41155
+
41156
+ if (refundType !== undefined) {
41157
+ localVarQueryParameter['refund_type'] = refundType;
41158
+ }
41159
+
41160
+ if (requestedBy !== undefined) {
41161
+ localVarQueryParameter['requested_by'] = requestedBy;
41162
+ }
41163
+
41164
+ if (requireApproval !== undefined) {
41165
+ localVarQueryParameter['require_approval'] = requireApproval;
41166
+ }
41167
+
41168
+ if (status !== undefined) {
41169
+ localVarQueryParameter['status'] = status;
41170
+ }
41148
41171
 
41149
-
41150
- localVarHeaderParameter['Content-Type'] = 'application/json';
41151
41172
 
41173
+
41152
41174
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41153
41175
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41154
41176
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41155
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundApprovalDto, localVarRequestOptions, configuration)
41156
41177
 
41157
41178
  return {
41158
41179
  url: toPathString(localVarUrlObj),
@@ -41160,13 +41181,16 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41160
41181
  };
41161
41182
  },
41162
41183
  /**
41163
- * Gets refund requests that require approval
41164
- * @summary Get pending refund approvals
41184
+ * Calculates refund amount based on remaining credits and original credit pricing
41185
+ * @summary Calculate refund amount
41186
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
41165
41187
  * @param {*} [options] Override http request option.
41166
41188
  * @throws {RequiredError}
41167
41189
  */
41168
- paymentGatewayRefundApprovalsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41169
- const localVarPath = `/payment-gateway/refund-approvals`;
41190
+ apiRefundCalculatePost: async (dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41191
+ // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
41192
+ assertParamExists('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto)
41193
+ const localVarPath = `/api/refund/calculate`;
41170
41194
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41171
41195
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41172
41196
  let baseOptions;
@@ -41174,7 +41198,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41174
41198
  baseOptions = configuration.baseOptions;
41175
41199
  }
41176
41200
 
41177
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41201
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41178
41202
  const localVarHeaderParameter = {} as any;
41179
41203
  const localVarQueryParameter = {} as any;
41180
41204
 
@@ -41183,9 +41207,12 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41183
41207
 
41184
41208
 
41185
41209
 
41210
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41211
+
41186
41212
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41187
41213
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41188
41214
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41215
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration)
41189
41216
 
41190
41217
  return {
41191
41218
  url: toPathString(localVarUrlObj),
@@ -41193,24 +41220,25 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41193
41220
  };
41194
41221
  },
41195
41222
  /**
41196
- * Creates a comprehensive refund request with approval workflow
41197
- * @summary Create a new refund request
41198
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41223
+ * Checks if a payment is eligible for refund
41224
+ * @summary Check refund eligibility
41225
+ * @param {number} paymentId Payment ID
41199
41226
  * @param {*} [options] Override http request option.
41200
41227
  * @throws {RequiredError}
41201
41228
  */
41202
- paymentGatewayRefundRequestPost: async (dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41203
- // verify required parameter 'dataTypesCreateRefundRequestDto' is not null or undefined
41204
- assertParamExists('paymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto)
41205
- const localVarPath = `/payment-gateway/refund-request`;
41206
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
41229
+ apiRefundEligibilityPaymentIdGet: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41230
+ // verify required parameter 'paymentId' is not null or undefined
41231
+ assertParamExists('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId)
41232
+ const localVarPath = `/api/refund/eligibility/{payment_id}`
41233
+ .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
41234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41207
41235
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41208
41236
  let baseOptions;
41209
41237
  if (configuration) {
41210
41238
  baseOptions = configuration.baseOptions;
41211
41239
  }
41212
41240
 
41213
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41241
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41214
41242
  const localVarHeaderParameter = {} as any;
41215
41243
  const localVarQueryParameter = {} as any;
41216
41244
 
@@ -41219,12 +41247,9 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41219
41247
 
41220
41248
 
41221
41249
 
41222
- localVarHeaderParameter['Content-Type'] = 'application/json';
41223
-
41224
41250
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41225
41251
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41226
41252
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41227
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRefundRequestDto, localVarRequestOptions, configuration)
41228
41253
 
41229
41254
  return {
41230
41255
  url: toPathString(localVarUrlObj),
@@ -41232,17 +41257,20 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41232
41257
  };
41233
41258
  },
41234
41259
  /**
41235
- * Gets the current status and details of a refund request by refund_id (UUID)
41236
- * @summary Get refund request status
41237
- * @param {string} id Refund ID (UUID)
41260
+ * Retrieves refund history for an organization with filtering options
41261
+ * @summary Get refund history
41262
+ * @param {number} [orgId] Organization ID
41263
+ * @param {number} [paymentId] Payment ID
41264
+ * @param {string} [startDate] Start date (RFC3339)
41265
+ * @param {string} [endDate] End date (RFC3339)
41266
+ * @param {string} [status] Refund status
41267
+ * @param {number} [limit] Limit (default 20, max 100)
41268
+ * @param {number} [offset] Offset (default 0)
41238
41269
  * @param {*} [options] Override http request option.
41239
41270
  * @throws {RequiredError}
41240
41271
  */
41241
- paymentGatewayRefundStatusIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41242
- // verify required parameter 'id' is not null or undefined
41243
- assertParamExists('paymentGatewayRefundStatusIdGet', 'id', id)
41244
- const localVarPath = `/payment-gateway/refund-status/{id}`
41245
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
41272
+ apiRefundHistoryGet: async (orgId?: number, paymentId?: number, startDate?: string, endDate?: string, status?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41273
+ const localVarPath = `/api/refund/history`;
41246
41274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41247
41275
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41248
41276
  let baseOptions;
@@ -41257,6 +41285,34 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41257
41285
  // authentication BearerAuth required
41258
41286
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41259
41287
 
41288
+ if (orgId !== undefined) {
41289
+ localVarQueryParameter['org_id'] = orgId;
41290
+ }
41291
+
41292
+ if (paymentId !== undefined) {
41293
+ localVarQueryParameter['payment_id'] = paymentId;
41294
+ }
41295
+
41296
+ if (startDate !== undefined) {
41297
+ localVarQueryParameter['start_date'] = startDate;
41298
+ }
41299
+
41300
+ if (endDate !== undefined) {
41301
+ localVarQueryParameter['end_date'] = endDate;
41302
+ }
41303
+
41304
+ if (status !== undefined) {
41305
+ localVarQueryParameter['status'] = status;
41306
+ }
41307
+
41308
+ if (limit !== undefined) {
41309
+ localVarQueryParameter['limit'] = limit;
41310
+ }
41311
+
41312
+ if (offset !== undefined) {
41313
+ localVarQueryParameter['offset'] = offset;
41314
+ }
41315
+
41260
41316
 
41261
41317
 
41262
41318
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -41269,23 +41325,16 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41269
41325
  };
41270
41326
  },
41271
41327
  /**
41272
- * Gets a paginated list of refund requests with filtering
41273
- * @summary List refund requests
41274
- * @param {string} [dateFrom]
41275
- * @param {string} [dateTo]
41276
- * @param {number} [orderId]
41277
- * @param {number} [page]
41278
- * @param {number} [pageSize]
41279
- * @param {string} [paymentId]
41280
- * @param {string} [refundType]
41281
- * @param {number} [requestedBy]
41282
- * @param {boolean} [requireApproval]
41283
- * @param {string} [status]
41328
+ * Processes a refund request and executes credit adjustments
41329
+ * @summary Process refund
41330
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41284
41331
  * @param {*} [options] Override http request option.
41285
41332
  * @throws {RequiredError}
41286
41333
  */
41287
- paymentGatewayRefundsGet: async (dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41288
- const localVarPath = `/payment-gateway/refunds`;
41334
+ apiRefundProcessPost: async (dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41335
+ // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
41336
+ assertParamExists('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto)
41337
+ const localVarPath = `/api/refund/process`;
41289
41338
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41290
41339
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41291
41340
  let baseOptions;
@@ -41293,58 +41342,21 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41293
41342
  baseOptions = configuration.baseOptions;
41294
41343
  }
41295
41344
 
41296
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41345
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41297
41346
  const localVarHeaderParameter = {} as any;
41298
41347
  const localVarQueryParameter = {} as any;
41299
41348
 
41300
41349
  // authentication BearerAuth required
41301
41350
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41302
41351
 
41303
- if (dateFrom !== undefined) {
41304
- localVarQueryParameter['date_from'] = dateFrom;
41305
- }
41306
-
41307
- if (dateTo !== undefined) {
41308
- localVarQueryParameter['date_to'] = dateTo;
41309
- }
41310
-
41311
- if (orderId !== undefined) {
41312
- localVarQueryParameter['order_id'] = orderId;
41313
- }
41314
-
41315
- if (page !== undefined) {
41316
- localVarQueryParameter['page'] = page;
41317
- }
41318
-
41319
- if (pageSize !== undefined) {
41320
- localVarQueryParameter['page_size'] = pageSize;
41321
- }
41322
-
41323
- if (paymentId !== undefined) {
41324
- localVarQueryParameter['payment_id'] = paymentId;
41325
- }
41326
-
41327
- if (refundType !== undefined) {
41328
- localVarQueryParameter['refund_type'] = refundType;
41329
- }
41330
-
41331
- if (requestedBy !== undefined) {
41332
- localVarQueryParameter['requested_by'] = requestedBy;
41333
- }
41334
-
41335
- if (requireApproval !== undefined) {
41336
- localVarQueryParameter['require_approval'] = requireApproval;
41337
- }
41338
-
41339
- if (status !== undefined) {
41340
- localVarQueryParameter['status'] = status;
41341
- }
41342
-
41343
41352
 
41344
41353
 
41354
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41355
+
41345
41356
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41346
41357
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41347
41358
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41359
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration)
41348
41360
 
41349
41361
  return {
41350
41362
  url: toPathString(localVarUrlObj),
@@ -41361,6 +41373,79 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41361
41373
  export const RefundManagementApiFp = function(configuration?: Configuration) {
41362
41374
  const localVarAxiosParamCreator = RefundManagementApiAxiosParamCreator(configuration)
41363
41375
  return {
41376
+ /**
41377
+ * Approves or rejects a pending refund request
41378
+ * @summary Process refund approval or rejection
41379
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41380
+ * @param {*} [options] Override http request option.
41381
+ * @throws {RequiredError}
41382
+ */
41383
+ async adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
41384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
41385
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41386
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalPost']?.[localVarOperationServerIndex]?.url;
41387
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41388
+ },
41389
+ /**
41390
+ * Gets refund requests that require approval
41391
+ * @summary Get pending refund approvals
41392
+ * @param {*} [options] Override http request option.
41393
+ * @throws {RequiredError}
41394
+ */
41395
+ async adminPaymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundListDto>> {
41396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalsGet(options);
41397
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41398
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalsGet']?.[localVarOperationServerIndex]?.url;
41399
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41400
+ },
41401
+ /**
41402
+ * Creates a comprehensive refund request with approval workflow
41403
+ * @summary Create a new refund request
41404
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41405
+ * @param {*} [options] Override http request option.
41406
+ * @throws {RequiredError}
41407
+ */
41408
+ async adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundRequestResponseDto>> {
41409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
41410
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41411
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundRequestPost']?.[localVarOperationServerIndex]?.url;
41412
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41413
+ },
41414
+ /**
41415
+ * Gets the current status and details of a refund request by refund_id (UUID)
41416
+ * @summary Get refund request status
41417
+ * @param {string} id Refund ID (UUID)
41418
+ * @param {*} [options] Override http request option.
41419
+ * @throws {RequiredError}
41420
+ */
41421
+ async adminPaymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundStatusDto>> {
41422
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundStatusIdGet(id, options);
41423
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41424
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundStatusIdGet']?.[localVarOperationServerIndex]?.url;
41425
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41426
+ },
41427
+ /**
41428
+ * Gets a paginated list of refund requests with filtering
41429
+ * @summary List refund requests
41430
+ * @param {string} [dateFrom]
41431
+ * @param {string} [dateTo]
41432
+ * @param {number} [orderId]
41433
+ * @param {number} [page]
41434
+ * @param {number} [pageSize]
41435
+ * @param {string} [paymentId]
41436
+ * @param {string} [refundType]
41437
+ * @param {number} [requestedBy]
41438
+ * @param {boolean} [requireApproval]
41439
+ * @param {string} [status]
41440
+ * @param {*} [options] Override http request option.
41441
+ * @throws {RequiredError}
41442
+ */
41443
+ async adminPaymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundListDto>> {
41444
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
41445
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41446
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundsGet']?.[localVarOperationServerIndex]?.url;
41447
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41448
+ },
41364
41449
  /**
41365
41450
  * Calculates refund amount based on remaining credits and original credit pricing
41366
41451
  * @summary Calculate refund amount
@@ -41419,6 +41504,16 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41419
41504
  const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.apiRefundProcessPost']?.[localVarOperationServerIndex]?.url;
41420
41505
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41421
41506
  },
41507
+ }
41508
+ };
41509
+
41510
+ /**
41511
+ * RefundManagementApi - factory interface
41512
+ * @export
41513
+ */
41514
+ export const RefundManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
41515
+ const localVarFp = RefundManagementApiFp(configuration)
41516
+ return {
41422
41517
  /**
41423
41518
  * Approves or rejects a pending refund request
41424
41519
  * @summary Process refund approval or rejection
@@ -41426,11 +41521,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41426
41521
  * @param {*} [options] Override http request option.
41427
41522
  * @throws {RequiredError}
41428
41523
  */
41429
- async paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
41430
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
41431
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41432
- const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.paymentGatewayRefundApprovalPost']?.[localVarOperationServerIndex]?.url;
41433
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41524
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
41525
+ return localVarFp.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
41434
41526
  },
41435
41527
  /**
41436
41528
  * Gets refund requests that require approval
@@ -41438,11 +41530,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41438
41530
  * @param {*} [options] Override http request option.
41439
41531
  * @throws {RequiredError}
41440
41532
  */
41441
- async paymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundListDto>> {
41442
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundApprovalsGet(options);
41443
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41444
- const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.paymentGatewayRefundApprovalsGet']?.[localVarOperationServerIndex]?.url;
41445
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41533
+ adminPaymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundListDto> {
41534
+ return localVarFp.adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
41446
41535
  },
41447
41536
  /**
41448
41537
  * Creates a comprehensive refund request with approval workflow
@@ -41451,11 +41540,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41451
41540
  * @param {*} [options] Override http request option.
41452
41541
  * @throws {RequiredError}
41453
41542
  */
41454
- async paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundRequestResponseDto>> {
41455
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
41456
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41457
- const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.paymentGatewayRefundRequestPost']?.[localVarOperationServerIndex]?.url;
41458
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41543
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundRequestResponseDto> {
41544
+ return localVarFp.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
41459
41545
  },
41460
41546
  /**
41461
41547
  * Gets the current status and details of a refund request by refund_id (UUID)
@@ -41464,11 +41550,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41464
41550
  * @param {*} [options] Override http request option.
41465
41551
  * @throws {RequiredError}
41466
41552
  */
41467
- async paymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundStatusDto>> {
41468
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundStatusIdGet(id, options);
41469
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41470
- const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.paymentGatewayRefundStatusIdGet']?.[localVarOperationServerIndex]?.url;
41471
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41553
+ adminPaymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundStatusDto> {
41554
+ return localVarFp.adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
41472
41555
  },
41473
41556
  /**
41474
41557
  * Gets a paginated list of refund requests with filtering
@@ -41486,22 +41569,9 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41486
41569
  * @param {*} [options] Override http request option.
41487
41570
  * @throws {RequiredError}
41488
41571
  */
41489
- async paymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundListDto>> {
41490
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
41491
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41492
- const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.paymentGatewayRefundsGet']?.[localVarOperationServerIndex]?.url;
41493
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41572
+ adminPaymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundListDto> {
41573
+ return localVarFp.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
41494
41574
  },
41495
- }
41496
- };
41497
-
41498
- /**
41499
- * RefundManagementApi - factory interface
41500
- * @export
41501
- */
41502
- export const RefundManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
41503
- const localVarFp = RefundManagementApiFp(configuration)
41504
- return {
41505
41575
  /**
41506
41576
  * Calculates refund amount based on remaining credits and original credit pricing
41507
41577
  * @summary Calculate refund amount
@@ -41548,64 +41618,6 @@ export const RefundManagementApiFactory = function (configuration?: Configuratio
41548
41618
  apiRefundProcessPost(dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesProcessRefundResponseDto> {
41549
41619
  return localVarFp.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(axios, basePath));
41550
41620
  },
41551
- /**
41552
- * Approves or rejects a pending refund request
41553
- * @summary Process refund approval or rejection
41554
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41555
- * @param {*} [options] Override http request option.
41556
- * @throws {RequiredError}
41557
- */
41558
- paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
41559
- return localVarFp.paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
41560
- },
41561
- /**
41562
- * Gets refund requests that require approval
41563
- * @summary Get pending refund approvals
41564
- * @param {*} [options] Override http request option.
41565
- * @throws {RequiredError}
41566
- */
41567
- paymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundListDto> {
41568
- return localVarFp.paymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
41569
- },
41570
- /**
41571
- * Creates a comprehensive refund request with approval workflow
41572
- * @summary Create a new refund request
41573
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41574
- * @param {*} [options] Override http request option.
41575
- * @throws {RequiredError}
41576
- */
41577
- paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundRequestResponseDto> {
41578
- return localVarFp.paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
41579
- },
41580
- /**
41581
- * Gets the current status and details of a refund request by refund_id (UUID)
41582
- * @summary Get refund request status
41583
- * @param {string} id Refund ID (UUID)
41584
- * @param {*} [options] Override http request option.
41585
- * @throws {RequiredError}
41586
- */
41587
- paymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundStatusDto> {
41588
- return localVarFp.paymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
41589
- },
41590
- /**
41591
- * Gets a paginated list of refund requests with filtering
41592
- * @summary List refund requests
41593
- * @param {string} [dateFrom]
41594
- * @param {string} [dateTo]
41595
- * @param {number} [orderId]
41596
- * @param {number} [page]
41597
- * @param {number} [pageSize]
41598
- * @param {string} [paymentId]
41599
- * @param {string} [refundType]
41600
- * @param {number} [requestedBy]
41601
- * @param {boolean} [requireApproval]
41602
- * @param {string} [status]
41603
- * @param {*} [options] Override http request option.
41604
- * @throws {RequiredError}
41605
- */
41606
- paymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundListDto> {
41607
- return localVarFp.paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
41608
- },
41609
41621
  };
41610
41622
  };
41611
41623
 
@@ -41617,125 +41629,125 @@ export const RefundManagementApiFactory = function (configuration?: Configuratio
41617
41629
  */
41618
41630
  export class RefundManagementApi extends BaseAPI {
41619
41631
  /**
41620
- * Calculates refund amount based on remaining credits and original credit pricing
41621
- * @summary Calculate refund amount
41622
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
41632
+ * Approves or rejects a pending refund request
41633
+ * @summary Process refund approval or rejection
41634
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41623
41635
  * @param {*} [options] Override http request option.
41624
41636
  * @throws {RequiredError}
41625
41637
  * @memberof RefundManagementApi
41626
41638
  */
41627
- public apiRefundCalculatePost(dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options?: RawAxiosRequestConfig) {
41628
- return RefundManagementApiFp(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
41639
+ public adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig) {
41640
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
41629
41641
  }
41630
41642
 
41631
41643
  /**
41632
- * Checks if a payment is eligible for refund
41633
- * @summary Check refund eligibility
41634
- * @param {number} paymentId Payment ID
41644
+ * Gets refund requests that require approval
41645
+ * @summary Get pending refund approvals
41635
41646
  * @param {*} [options] Override http request option.
41636
41647
  * @throws {RequiredError}
41637
41648
  * @memberof RefundManagementApi
41638
41649
  */
41639
- public apiRefundEligibilityPaymentIdGet(paymentId: number, options?: RawAxiosRequestConfig) {
41640
- return RefundManagementApiFp(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
41650
+ public adminPaymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig) {
41651
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
41641
41652
  }
41642
41653
 
41643
41654
  /**
41644
- * Retrieves refund history for an organization with filtering options
41645
- * @summary Get refund history
41646
- * @param {number} [orgId] Organization ID
41647
- * @param {number} [paymentId] Payment ID
41648
- * @param {string} [startDate] Start date (RFC3339)
41649
- * @param {string} [endDate] End date (RFC3339)
41650
- * @param {string} [status] Refund status
41651
- * @param {number} [limit] Limit (default 20, max 100)
41652
- * @param {number} [offset] Offset (default 0)
41655
+ * Creates a comprehensive refund request with approval workflow
41656
+ * @summary Create a new refund request
41657
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41653
41658
  * @param {*} [options] Override http request option.
41654
41659
  * @throws {RequiredError}
41655
41660
  * @memberof RefundManagementApi
41656
41661
  */
41657
- public apiRefundHistoryGet(orgId?: number, paymentId?: number, startDate?: string, endDate?: string, status?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
41658
- return RefundManagementApiFp(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
41662
+ public adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig) {
41663
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41659
41664
  }
41660
41665
 
41661
41666
  /**
41662
- * Processes a refund request and executes credit adjustments
41663
- * @summary Process refund
41664
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41667
+ * Gets the current status and details of a refund request by refund_id (UUID)
41668
+ * @summary Get refund request status
41669
+ * @param {string} id Refund ID (UUID)
41665
41670
  * @param {*} [options] Override http request option.
41666
41671
  * @throws {RequiredError}
41667
41672
  * @memberof RefundManagementApi
41668
41673
  */
41669
- public apiRefundProcessPost(dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options?: RawAxiosRequestConfig) {
41670
- return RefundManagementApiFp(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41674
+ public adminPaymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig) {
41675
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
41671
41676
  }
41672
41677
 
41673
41678
  /**
41674
- * Approves or rejects a pending refund request
41675
- * @summary Process refund approval or rejection
41676
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41679
+ * Gets a paginated list of refund requests with filtering
41680
+ * @summary List refund requests
41681
+ * @param {string} [dateFrom]
41682
+ * @param {string} [dateTo]
41683
+ * @param {number} [orderId]
41684
+ * @param {number} [page]
41685
+ * @param {number} [pageSize]
41686
+ * @param {string} [paymentId]
41687
+ * @param {string} [refundType]
41688
+ * @param {number} [requestedBy]
41689
+ * @param {boolean} [requireApproval]
41690
+ * @param {string} [status]
41677
41691
  * @param {*} [options] Override http request option.
41678
41692
  * @throws {RequiredError}
41679
41693
  * @memberof RefundManagementApi
41680
41694
  */
41681
- public paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig) {
41682
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
41695
+ public adminPaymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig) {
41696
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
41683
41697
  }
41684
41698
 
41685
41699
  /**
41686
- * Gets refund requests that require approval
41687
- * @summary Get pending refund approvals
41700
+ * Calculates refund amount based on remaining credits and original credit pricing
41701
+ * @summary Calculate refund amount
41702
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
41688
41703
  * @param {*} [options] Override http request option.
41689
41704
  * @throws {RequiredError}
41690
41705
  * @memberof RefundManagementApi
41691
41706
  */
41692
- public paymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig) {
41693
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
41707
+ public apiRefundCalculatePost(dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options?: RawAxiosRequestConfig) {
41708
+ return RefundManagementApiFp(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
41694
41709
  }
41695
41710
 
41696
41711
  /**
41697
- * Creates a comprehensive refund request with approval workflow
41698
- * @summary Create a new refund request
41699
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41712
+ * Checks if a payment is eligible for refund
41713
+ * @summary Check refund eligibility
41714
+ * @param {number} paymentId Payment ID
41700
41715
  * @param {*} [options] Override http request option.
41701
41716
  * @throws {RequiredError}
41702
41717
  * @memberof RefundManagementApi
41703
41718
  */
41704
- public paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig) {
41705
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41719
+ public apiRefundEligibilityPaymentIdGet(paymentId: number, options?: RawAxiosRequestConfig) {
41720
+ return RefundManagementApiFp(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
41706
41721
  }
41707
41722
 
41708
41723
  /**
41709
- * Gets the current status and details of a refund request by refund_id (UUID)
41710
- * @summary Get refund request status
41711
- * @param {string} id Refund ID (UUID)
41724
+ * Retrieves refund history for an organization with filtering options
41725
+ * @summary Get refund history
41726
+ * @param {number} [orgId] Organization ID
41727
+ * @param {number} [paymentId] Payment ID
41728
+ * @param {string} [startDate] Start date (RFC3339)
41729
+ * @param {string} [endDate] End date (RFC3339)
41730
+ * @param {string} [status] Refund status
41731
+ * @param {number} [limit] Limit (default 20, max 100)
41732
+ * @param {number} [offset] Offset (default 0)
41712
41733
  * @param {*} [options] Override http request option.
41713
41734
  * @throws {RequiredError}
41714
41735
  * @memberof RefundManagementApi
41715
41736
  */
41716
- public paymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig) {
41717
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
41737
+ public apiRefundHistoryGet(orgId?: number, paymentId?: number, startDate?: string, endDate?: string, status?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
41738
+ return RefundManagementApiFp(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
41718
41739
  }
41719
41740
 
41720
41741
  /**
41721
- * Gets a paginated list of refund requests with filtering
41722
- * @summary List refund requests
41723
- * @param {string} [dateFrom]
41724
- * @param {string} [dateTo]
41725
- * @param {number} [orderId]
41726
- * @param {number} [page]
41727
- * @param {number} [pageSize]
41728
- * @param {string} [paymentId]
41729
- * @param {string} [refundType]
41730
- * @param {number} [requestedBy]
41731
- * @param {boolean} [requireApproval]
41732
- * @param {string} [status]
41742
+ * Processes a refund request and executes credit adjustments
41743
+ * @summary Process refund
41744
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41733
41745
  * @param {*} [options] Override http request option.
41734
41746
  * @throws {RequiredError}
41735
41747
  * @memberof RefundManagementApi
41736
41748
  */
41737
- public paymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig) {
41738
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
41749
+ public apiRefundProcessPost(dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options?: RawAxiosRequestConfig) {
41750
+ return RefundManagementApiFp(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41739
41751
  }
41740
41752
  }
41741
41753