@seekora-ai/admin-api 1.0.75 → 1.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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}
@@ -13693,6 +13705,12 @@ export interface DataTypesOnboardingResponse {
13693
13705
  * @memberof DataTypesOnboardingResponse
13694
13706
  */
13695
13707
  'jobId'?: string;
13708
+ /**
13709
+ * Organization ID (available after orgDetails step)
13710
+ * @type {number}
13711
+ * @memberof DataTypesOnboardingResponse
13712
+ */
13713
+ 'orgId'?: number;
13696
13714
  /**
13697
13715
  *
13698
13716
  * @type {{ [key: string]: any; }}
@@ -27619,8 +27637,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio
27619
27637
  * @param {*} [options] Override http request option.
27620
27638
  * @throws {RequiredError}
27621
27639
  */
27622
- commonLanguagesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27623
- const localVarPath = `/common/languages`;
27640
+ v1CommonLanguagesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27641
+ const localVarPath = `/v1/common/languages`;
27624
27642
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27625
27643
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27626
27644
  let baseOptions;
@@ -27659,10 +27677,10 @@ export const CommonApiFp = function(configuration?: Configuration) {
27659
27677
  * @param {*} [options] Override http request option.
27660
27678
  * @throws {RequiredError}
27661
27679
  */
27662
- async commonLanguagesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
27663
- const localVarAxiosArgs = await localVarAxiosParamCreator.commonLanguagesGet(options);
27680
+ async v1CommonLanguagesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
27681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CommonLanguagesGet(options);
27664
27682
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27665
- const localVarOperationServerBasePath = operationServerMap['CommonApi.commonLanguagesGet']?.[localVarOperationServerIndex]?.url;
27683
+ const localVarOperationServerBasePath = operationServerMap['CommonApi.v1CommonLanguagesGet']?.[localVarOperationServerIndex]?.url;
27666
27684
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27667
27685
  },
27668
27686
  }
@@ -27681,8 +27699,8 @@ export const CommonApiFactory = function (configuration?: Configuration, basePat
27681
27699
  * @param {*} [options] Override http request option.
27682
27700
  * @throws {RequiredError}
27683
27701
  */
27684
- commonLanguagesGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
27685
- return localVarFp.commonLanguagesGet(options).then((request) => request(axios, basePath));
27702
+ v1CommonLanguagesGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
27703
+ return localVarFp.v1CommonLanguagesGet(options).then((request) => request(axios, basePath));
27686
27704
  },
27687
27705
  };
27688
27706
  };
@@ -27701,8 +27719,8 @@ export class CommonApi extends BaseAPI {
27701
27719
  * @throws {RequiredError}
27702
27720
  * @memberof CommonApi
27703
27721
  */
27704
- public commonLanguagesGet(options?: RawAxiosRequestConfig) {
27705
- return CommonApiFp(this.configuration).commonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
27722
+ public v1CommonLanguagesGet(options?: RawAxiosRequestConfig) {
27723
+ return CommonApiFp(this.configuration).v1CommonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
27706
27724
  }
27707
27725
  }
27708
27726
 
@@ -35732,13 +35750,16 @@ export class ParentMenusApi extends BaseAPI {
35732
35750
  export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Configuration) {
35733
35751
  return {
35734
35752
  /**
35735
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
35736
- * @summary Get available credit plans
35753
+ * Creates a payment order using specified or default payment gateway
35754
+ * @summary Create a new payment order
35755
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
35737
35756
  * @param {*} [options] Override http request option.
35738
35757
  * @throws {RequiredError}
35739
35758
  */
35740
- adminPaymentGatewayCreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35741
- const localVarPath = `/admin/payment-gateway/credit-plans`;
35759
+ adminPaymentGatewayCreateOrderPost: async (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35760
+ // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
35761
+ assertParamExists('adminPaymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest)
35762
+ const localVarPath = `/admin/payment-gateway/create-order`;
35742
35763
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35743
35764
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35744
35765
  let baseOptions;
@@ -35746,15 +35767,21 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35746
35767
  baseOptions = configuration.baseOptions;
35747
35768
  }
35748
35769
 
35749
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35770
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
35750
35771
  const localVarHeaderParameter = {} as any;
35751
35772
  const localVarQueryParameter = {} as any;
35752
35773
 
35774
+ // authentication BearerAuth required
35775
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
35776
+
35753
35777
 
35754
35778
 
35779
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35780
+
35755
35781
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35756
35782
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35757
35783
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35784
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
35758
35785
 
35759
35786
  return {
35760
35787
  url: toPathString(localVarUrlObj),
@@ -35762,16 +35789,13 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35762
35789
  };
35763
35790
  },
35764
35791
  /**
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
35792
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
35793
+ * @summary Get available credit plans
35768
35794
  * @param {*} [options] Override http request option.
35769
35795
  * @throws {RequiredError}
35770
35796
  */
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`;
35797
+ adminPaymentGatewayCreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35798
+ const localVarPath = `/admin/payment-gateway/credit-plans`;
35775
35799
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35776
35800
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35777
35801
  let baseOptions;
@@ -35779,21 +35803,15 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35779
35803
  baseOptions = configuration.baseOptions;
35780
35804
  }
35781
35805
 
35782
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
35806
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35783
35807
  const localVarHeaderParameter = {} as any;
35784
35808
  const localVarQueryParameter = {} as any;
35785
35809
 
35786
- // authentication BearerAuth required
35787
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
35788
-
35789
35810
 
35790
35811
 
35791
- localVarHeaderParameter['Content-Type'] = 'application/json';
35792
-
35793
35812
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35794
35813
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35795
35814
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35796
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
35797
35815
 
35798
35816
  return {
35799
35817
  url: toPathString(localVarUrlObj),
@@ -35806,8 +35824,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35806
35824
  * @param {*} [options] Override http request option.
35807
35825
  * @throws {RequiredError}
35808
35826
  */
35809
- paymentGatewayGatewaysGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35810
- const localVarPath = `/payment-gateway/gateways`;
35827
+ adminPaymentGatewayGatewaysGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35828
+ const localVarPath = `/admin/payment-gateway/gateways`;
35811
35829
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35812
35830
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35813
35831
  let baseOptions;
@@ -35840,10 +35858,10 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35840
35858
  * @param {*} [options] Override http request option.
35841
35859
  * @throws {RequiredError}
35842
35860
  */
35843
- paymentGatewayRefundPost: async (dataTypesRefundRequestDto: DataTypesRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35861
+ adminPaymentGatewayRefundPost: async (dataTypesRefundRequestDto: DataTypesRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35844
35862
  // verify required parameter 'dataTypesRefundRequestDto' is not null or undefined
35845
- assertParamExists('paymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto)
35846
- const localVarPath = `/payment-gateway/refund`;
35863
+ assertParamExists('adminPaymentGatewayRefundPost', 'dataTypesRefundRequestDto', dataTypesRefundRequestDto)
35864
+ const localVarPath = `/admin/payment-gateway/refund`;
35847
35865
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35848
35866
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35849
35867
  let baseOptions;
@@ -35879,10 +35897,10 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35879
35897
  * @param {*} [options] Override http request option.
35880
35898
  * @throws {RequiredError}
35881
35899
  */
35882
- paymentGatewayVerifyPost: async (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35900
+ adminPaymentGatewayVerifyPost: async (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35883
35901
  // verify required parameter 'dataTypesVerifyPaymentRequest' is not null or undefined
35884
- assertParamExists('paymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest)
35885
- const localVarPath = `/payment-gateway/verify`;
35902
+ assertParamExists('adminPaymentGatewayVerifyPost', 'dataTypesVerifyPaymentRequest', dataTypesVerifyPaymentRequest)
35903
+ const localVarPath = `/admin/payment-gateway/verify`;
35886
35904
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35887
35905
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35888
35906
  let baseOptions;
@@ -36026,28 +36044,28 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36026
36044
  const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration)
36027
36045
  return {
36028
36046
  /**
36029
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36030
- * @summary Get available credit plans
36047
+ * Creates a payment order using specified or default payment gateway
36048
+ * @summary Create a new payment order
36049
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36031
36050
  * @param {*} [options] Override http request option.
36032
36051
  * @throws {RequiredError}
36033
36052
  */
36034
- async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
36035
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
36053
+ async adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>> {
36054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
36036
36055
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36037
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
36056
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreateOrderPost']?.[localVarOperationServerIndex]?.url;
36038
36057
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36039
36058
  },
36040
36059
  /**
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
36060
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36061
+ * @summary Get available credit plans
36044
36062
  * @param {*} [options] Override http request option.
36045
36063
  * @throws {RequiredError}
36046
36064
  */
36047
- async paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>> {
36048
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
36065
+ async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
36066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
36049
36067
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36050
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']?.[localVarOperationServerIndex]?.url;
36068
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
36051
36069
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36052
36070
  },
36053
36071
  /**
@@ -36056,10 +36074,10 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36056
36074
  * @param {*} [options] Override http request option.
36057
36075
  * @throws {RequiredError}
36058
36076
  */
36059
- async paymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGatewayListResponse>> {
36060
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayGatewaysGet(options);
36077
+ async adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGatewayListResponse>> {
36078
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayGatewaysGet(options);
36061
36079
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36062
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayGatewaysGet']?.[localVarOperationServerIndex]?.url;
36080
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayGatewaysGet']?.[localVarOperationServerIndex]?.url;
36063
36081
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36064
36082
  },
36065
36083
  /**
@@ -36069,10 +36087,10 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36069
36087
  * @param {*} [options] Override http request option.
36070
36088
  * @throws {RequiredError}
36071
36089
  */
36072
- async paymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundResponseDto>> {
36073
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayRefundPost(dataTypesRefundRequestDto, options);
36090
+ async adminPaymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundResponseDto>> {
36091
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options);
36074
36092
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36075
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayRefundPost']?.[localVarOperationServerIndex]?.url;
36093
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayRefundPost']?.[localVarOperationServerIndex]?.url;
36076
36094
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36077
36095
  },
36078
36096
  /**
@@ -36082,10 +36100,10 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
36082
36100
  * @param {*} [options] Override http request option.
36083
36101
  * @throws {RequiredError}
36084
36102
  */
36085
- async paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>> {
36086
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
36103
+ async adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>> {
36104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options);
36087
36105
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36088
- const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayVerifyPost']?.[localVarOperationServerIndex]?.url;
36106
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyPost']?.[localVarOperationServerIndex]?.url;
36089
36107
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36090
36108
  },
36091
36109
  /**
@@ -36138,23 +36156,23 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36138
36156
  const localVarFp = PaymentGatewayApiFp(configuration)
36139
36157
  return {
36140
36158
  /**
36141
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36142
- * @summary Get available credit plans
36159
+ * Creates a payment order using specified or default payment gateway
36160
+ * @summary Create a new payment order
36161
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36143
36162
  * @param {*} [options] Override http request option.
36144
36163
  * @throws {RequiredError}
36145
36164
  */
36146
- adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
36147
- return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
36165
+ adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse> {
36166
+ return localVarFp.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
36148
36167
  },
36149
36168
  /**
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
36169
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36170
+ * @summary Get available credit plans
36153
36171
  * @param {*} [options] Override http request option.
36154
36172
  * @throws {RequiredError}
36155
36173
  */
36156
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse> {
36157
- return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
36174
+ adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
36175
+ return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
36158
36176
  },
36159
36177
  /**
36160
36178
  * Returns list of all available payment gateways
@@ -36162,8 +36180,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36162
36180
  * @param {*} [options] Override http request option.
36163
36181
  * @throws {RequiredError}
36164
36182
  */
36165
- paymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse> {
36166
- return localVarFp.paymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
36183
+ adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGatewayListResponse> {
36184
+ return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
36167
36185
  },
36168
36186
  /**
36169
36187
  * Processes a refund for a completed payment
@@ -36172,8 +36190,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36172
36190
  * @param {*} [options] Override http request option.
36173
36191
  * @throws {RequiredError}
36174
36192
  */
36175
- paymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundResponseDto> {
36176
- return localVarFp.paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
36193
+ adminPaymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundResponseDto> {
36194
+ return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
36177
36195
  },
36178
36196
  /**
36179
36197
  * Verifies the current status of a payment
@@ -36182,8 +36200,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36182
36200
  * @param {*} [options] Override http request option.
36183
36201
  * @throws {RequiredError}
36184
36202
  */
36185
- paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse> {
36186
- return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
36203
+ adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse> {
36204
+ return localVarFp.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
36187
36205
  },
36188
36206
  /**
36189
36207
  * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
@@ -36226,26 +36244,26 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
36226
36244
  */
36227
36245
  export class PaymentGatewayApi extends BaseAPI {
36228
36246
  /**
36229
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36230
- * @summary Get available credit plans
36247
+ * Creates a payment order using specified or default payment gateway
36248
+ * @summary Create a new payment order
36249
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
36231
36250
  * @param {*} [options] Override http request option.
36232
36251
  * @throws {RequiredError}
36233
36252
  * @memberof PaymentGatewayApi
36234
36253
  */
36235
- public adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig) {
36236
- return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
36254
+ public adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) {
36255
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
36237
36256
  }
36238
36257
 
36239
36258
  /**
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
36259
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
36260
+ * @summary Get available credit plans
36243
36261
  * @param {*} [options] Override http request option.
36244
36262
  * @throws {RequiredError}
36245
36263
  * @memberof PaymentGatewayApi
36246
36264
  */
36247
- public paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) {
36248
- return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
36265
+ public adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig) {
36266
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
36249
36267
  }
36250
36268
 
36251
36269
  /**
@@ -36255,8 +36273,8 @@ export class PaymentGatewayApi extends BaseAPI {
36255
36273
  * @throws {RequiredError}
36256
36274
  * @memberof PaymentGatewayApi
36257
36275
  */
36258
- public paymentGatewayGatewaysGet(options?: RawAxiosRequestConfig) {
36259
- return PaymentGatewayApiFp(this.configuration).paymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
36276
+ public adminPaymentGatewayGatewaysGet(options?: RawAxiosRequestConfig) {
36277
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
36260
36278
  }
36261
36279
 
36262
36280
  /**
@@ -36267,8 +36285,8 @@ export class PaymentGatewayApi extends BaseAPI {
36267
36285
  * @throws {RequiredError}
36268
36286
  * @memberof PaymentGatewayApi
36269
36287
  */
36270
- public paymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig) {
36271
- return PaymentGatewayApiFp(this.configuration).paymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
36288
+ public adminPaymentGatewayRefundPost(dataTypesRefundRequestDto: DataTypesRefundRequestDto, options?: RawAxiosRequestConfig) {
36289
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
36272
36290
  }
36273
36291
 
36274
36292
  /**
@@ -36279,8 +36297,8 @@ export class PaymentGatewayApi extends BaseAPI {
36279
36297
  * @throws {RequiredError}
36280
36298
  * @memberof PaymentGatewayApi
36281
36299
  */
36282
- public paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) {
36283
- return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
36300
+ public adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) {
36301
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
36284
36302
  }
36285
36303
 
36286
36304
  /**
@@ -40938,16 +40956,16 @@ export class QuerySuggestionsManagementApi extends BaseAPI {
40938
40956
  export const RefundManagementApiAxiosParamCreator = function (configuration?: Configuration) {
40939
40957
  return {
40940
40958
  /**
40941
- * Calculates refund amount based on remaining credits and original credit pricing
40942
- * @summary Calculate refund amount
40943
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
40959
+ * Approves or rejects a pending refund request
40960
+ * @summary Process refund approval or rejection
40961
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
40944
40962
  * @param {*} [options] Override http request option.
40945
40963
  * @throws {RequiredError}
40946
40964
  */
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`;
40965
+ adminPaymentGatewayRefundApprovalPost: async (dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40966
+ // verify required parameter 'dataTypesRefundApprovalDto' is not null or undefined
40967
+ assertParamExists('adminPaymentGatewayRefundApprovalPost', 'dataTypesRefundApprovalDto', dataTypesRefundApprovalDto)
40968
+ const localVarPath = `/admin/payment-gateway/refund-approval`;
40951
40969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40952
40970
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40953
40971
  let baseOptions;
@@ -40969,7 +40987,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
40969
40987
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40970
40988
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40971
40989
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40972
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration)
40990
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundApprovalDto, localVarRequestOptions, configuration)
40973
40991
 
40974
40992
  return {
40975
40993
  url: toPathString(localVarUrlObj),
@@ -40977,17 +40995,13 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
40977
40995
  };
40978
40996
  },
40979
40997
  /**
40980
- * Checks if a payment is eligible for refund
40981
- * @summary Check refund eligibility
40982
- * @param {number} paymentId Payment ID
40998
+ * Gets refund requests that require approval
40999
+ * @summary Get pending refund approvals
40983
41000
  * @param {*} [options] Override http request option.
40984
41001
  * @throws {RequiredError}
40985
41002
  */
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)));
41003
+ adminPaymentGatewayRefundApprovalsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41004
+ const localVarPath = `/admin/payment-gateway/refund-approvals`;
40991
41005
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40992
41006
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40993
41007
  let baseOptions;
@@ -41014,20 +41028,16 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41014
41028
  };
41015
41029
  },
41016
41030
  /**
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)
41031
+ * Creates a comprehensive refund request with approval workflow
41032
+ * @summary Create a new refund request
41033
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41026
41034
  * @param {*} [options] Override http request option.
41027
41035
  * @throws {RequiredError}
41028
41036
  */
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`;
41037
+ adminPaymentGatewayRefundRequestPost: async (dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41038
+ // verify required parameter 'dataTypesCreateRefundRequestDto' is not null or undefined
41039
+ assertParamExists('adminPaymentGatewayRefundRequestPost', 'dataTypesCreateRefundRequestDto', dataTypesCreateRefundRequestDto)
41040
+ const localVarPath = `/admin/payment-gateway/refund-request`;
41031
41041
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41032
41042
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41033
41043
  let baseOptions;
@@ -41035,46 +41045,21 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41035
41045
  baseOptions = configuration.baseOptions;
41036
41046
  }
41037
41047
 
41038
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41048
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41039
41049
  const localVarHeaderParameter = {} as any;
41040
41050
  const localVarQueryParameter = {} as any;
41041
41051
 
41042
41052
  // authentication BearerAuth required
41043
41053
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41044
41054
 
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
41055
 
41074
41056
 
41057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41058
+
41075
41059
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41076
41060
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41077
41061
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41062
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRefundRequestDto, localVarRequestOptions, configuration)
41078
41063
 
41079
41064
  return {
41080
41065
  url: toPathString(localVarUrlObj),
@@ -41082,16 +41067,17 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41082
41067
  };
41083
41068
  },
41084
41069
  /**
41085
- * Processes a refund request and executes credit adjustments
41086
- * @summary Process refund
41087
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41070
+ * Gets the current status and details of a refund request by refund_id (UUID)
41071
+ * @summary Get refund request status
41072
+ * @param {string} id Refund ID (UUID)
41088
41073
  * @param {*} [options] Override http request option.
41089
41074
  * @throws {RequiredError}
41090
41075
  */
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`;
41076
+ adminPaymentGatewayRefundStatusIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41077
+ // verify required parameter 'id' is not null or undefined
41078
+ assertParamExists('adminPaymentGatewayRefundStatusIdGet', 'id', id)
41079
+ const localVarPath = `/admin/payment-gateway/refund-status/{id}`
41080
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
41095
41081
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41096
41082
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41097
41083
  let baseOptions;
@@ -41099,7 +41085,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41099
41085
  baseOptions = configuration.baseOptions;
41100
41086
  }
41101
41087
 
41102
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41088
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41103
41089
  const localVarHeaderParameter = {} as any;
41104
41090
  const localVarQueryParameter = {} as any;
41105
41091
 
@@ -41108,12 +41094,9 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41108
41094
 
41109
41095
 
41110
41096
 
41111
- localVarHeaderParameter['Content-Type'] = 'application/json';
41112
-
41113
41097
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41114
41098
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41115
41099
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41116
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration)
41117
41100
 
41118
41101
  return {
41119
41102
  url: toPathString(localVarUrlObj),
@@ -41121,16 +41104,23 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41121
41104
  };
41122
41105
  },
41123
41106
  /**
41124
- * Approves or rejects a pending refund request
41125
- * @summary Process refund approval or rejection
41126
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41107
+ * Gets a paginated list of refund requests with filtering
41108
+ * @summary List refund requests
41109
+ * @param {string} [dateFrom]
41110
+ * @param {string} [dateTo]
41111
+ * @param {number} [orderId]
41112
+ * @param {number} [page]
41113
+ * @param {number} [pageSize]
41114
+ * @param {string} [paymentId]
41115
+ * @param {string} [refundType]
41116
+ * @param {number} [requestedBy]
41117
+ * @param {boolean} [requireApproval]
41118
+ * @param {string} [status]
41127
41119
  * @param {*} [options] Override http request option.
41128
41120
  * @throws {RequiredError}
41129
41121
  */
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`;
41122
+ 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> => {
41123
+ const localVarPath = `/admin/payment-gateway/refunds`;
41134
41124
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41135
41125
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41136
41126
  let baseOptions;
@@ -41138,21 +41128,58 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41138
41128
  baseOptions = configuration.baseOptions;
41139
41129
  }
41140
41130
 
41141
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41131
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41142
41132
  const localVarHeaderParameter = {} as any;
41143
41133
  const localVarQueryParameter = {} as any;
41144
41134
 
41145
41135
  // authentication BearerAuth required
41146
41136
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41147
41137
 
41138
+ if (dateFrom !== undefined) {
41139
+ localVarQueryParameter['date_from'] = dateFrom;
41140
+ }
41148
41141
 
41149
-
41150
- localVarHeaderParameter['Content-Type'] = 'application/json';
41142
+ if (dateTo !== undefined) {
41143
+ localVarQueryParameter['date_to'] = dateTo;
41144
+ }
41145
+
41146
+ if (orderId !== undefined) {
41147
+ localVarQueryParameter['order_id'] = orderId;
41148
+ }
41149
+
41150
+ if (page !== undefined) {
41151
+ localVarQueryParameter['page'] = page;
41152
+ }
41153
+
41154
+ if (pageSize !== undefined) {
41155
+ localVarQueryParameter['page_size'] = pageSize;
41156
+ }
41157
+
41158
+ if (paymentId !== undefined) {
41159
+ localVarQueryParameter['payment_id'] = paymentId;
41160
+ }
41161
+
41162
+ if (refundType !== undefined) {
41163
+ localVarQueryParameter['refund_type'] = refundType;
41164
+ }
41151
41165
 
41166
+ if (requestedBy !== undefined) {
41167
+ localVarQueryParameter['requested_by'] = requestedBy;
41168
+ }
41169
+
41170
+ if (requireApproval !== undefined) {
41171
+ localVarQueryParameter['require_approval'] = requireApproval;
41172
+ }
41173
+
41174
+ if (status !== undefined) {
41175
+ localVarQueryParameter['status'] = status;
41176
+ }
41177
+
41178
+
41179
+
41152
41180
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41153
41181
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41154
41182
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41155
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundApprovalDto, localVarRequestOptions, configuration)
41156
41183
 
41157
41184
  return {
41158
41185
  url: toPathString(localVarUrlObj),
@@ -41160,13 +41187,16 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41160
41187
  };
41161
41188
  },
41162
41189
  /**
41163
- * Gets refund requests that require approval
41164
- * @summary Get pending refund approvals
41190
+ * Calculates refund amount based on remaining credits and original credit pricing
41191
+ * @summary Calculate refund amount
41192
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
41165
41193
  * @param {*} [options] Override http request option.
41166
41194
  * @throws {RequiredError}
41167
41195
  */
41168
- paymentGatewayRefundApprovalsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41169
- const localVarPath = `/payment-gateway/refund-approvals`;
41196
+ apiRefundCalculatePost: async (dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41197
+ // verify required parameter 'dataTypesRefundCalculationRequestDto' is not null or undefined
41198
+ assertParamExists('apiRefundCalculatePost', 'dataTypesRefundCalculationRequestDto', dataTypesRefundCalculationRequestDto)
41199
+ const localVarPath = `/api/refund/calculate`;
41170
41200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41171
41201
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41172
41202
  let baseOptions;
@@ -41174,7 +41204,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41174
41204
  baseOptions = configuration.baseOptions;
41175
41205
  }
41176
41206
 
41177
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41207
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41178
41208
  const localVarHeaderParameter = {} as any;
41179
41209
  const localVarQueryParameter = {} as any;
41180
41210
 
@@ -41183,9 +41213,12 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41183
41213
 
41184
41214
 
41185
41215
 
41216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41217
+
41186
41218
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41187
41219
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41188
41220
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41221
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRefundCalculationRequestDto, localVarRequestOptions, configuration)
41189
41222
 
41190
41223
  return {
41191
41224
  url: toPathString(localVarUrlObj),
@@ -41193,16 +41226,17 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41193
41226
  };
41194
41227
  },
41195
41228
  /**
41196
- * Creates a comprehensive refund request with approval workflow
41197
- * @summary Create a new refund request
41198
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41229
+ * Checks if a payment is eligible for refund
41230
+ * @summary Check refund eligibility
41231
+ * @param {number} paymentId Payment ID
41199
41232
  * @param {*} [options] Override http request option.
41200
41233
  * @throws {RequiredError}
41201
41234
  */
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`;
41235
+ apiRefundEligibilityPaymentIdGet: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41236
+ // verify required parameter 'paymentId' is not null or undefined
41237
+ assertParamExists('apiRefundEligibilityPaymentIdGet', 'paymentId', paymentId)
41238
+ const localVarPath = `/api/refund/eligibility/{payment_id}`
41239
+ .replace(`{${"payment_id"}}`, encodeURIComponent(String(paymentId)));
41206
41240
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41207
41241
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41208
41242
  let baseOptions;
@@ -41210,7 +41244,7 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41210
41244
  baseOptions = configuration.baseOptions;
41211
41245
  }
41212
41246
 
41213
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41247
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41214
41248
  const localVarHeaderParameter = {} as any;
41215
41249
  const localVarQueryParameter = {} as any;
41216
41250
 
@@ -41219,12 +41253,9 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41219
41253
 
41220
41254
 
41221
41255
 
41222
- localVarHeaderParameter['Content-Type'] = 'application/json';
41223
-
41224
41256
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41225
41257
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41226
41258
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41227
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRefundRequestDto, localVarRequestOptions, configuration)
41228
41259
 
41229
41260
  return {
41230
41261
  url: toPathString(localVarUrlObj),
@@ -41232,17 +41263,20 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41232
41263
  };
41233
41264
  },
41234
41265
  /**
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)
41266
+ * Retrieves refund history for an organization with filtering options
41267
+ * @summary Get refund history
41268
+ * @param {number} [orgId] Organization ID
41269
+ * @param {number} [paymentId] Payment ID
41270
+ * @param {string} [startDate] Start date (RFC3339)
41271
+ * @param {string} [endDate] End date (RFC3339)
41272
+ * @param {string} [status] Refund status
41273
+ * @param {number} [limit] Limit (default 20, max 100)
41274
+ * @param {number} [offset] Offset (default 0)
41238
41275
  * @param {*} [options] Override http request option.
41239
41276
  * @throws {RequiredError}
41240
41277
  */
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)));
41278
+ apiRefundHistoryGet: async (orgId?: number, paymentId?: number, startDate?: string, endDate?: string, status?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41279
+ const localVarPath = `/api/refund/history`;
41246
41280
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41247
41281
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41248
41282
  let baseOptions;
@@ -41257,6 +41291,34 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41257
41291
  // authentication BearerAuth required
41258
41292
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41259
41293
 
41294
+ if (orgId !== undefined) {
41295
+ localVarQueryParameter['org_id'] = orgId;
41296
+ }
41297
+
41298
+ if (paymentId !== undefined) {
41299
+ localVarQueryParameter['payment_id'] = paymentId;
41300
+ }
41301
+
41302
+ if (startDate !== undefined) {
41303
+ localVarQueryParameter['start_date'] = startDate;
41304
+ }
41305
+
41306
+ if (endDate !== undefined) {
41307
+ localVarQueryParameter['end_date'] = endDate;
41308
+ }
41309
+
41310
+ if (status !== undefined) {
41311
+ localVarQueryParameter['status'] = status;
41312
+ }
41313
+
41314
+ if (limit !== undefined) {
41315
+ localVarQueryParameter['limit'] = limit;
41316
+ }
41317
+
41318
+ if (offset !== undefined) {
41319
+ localVarQueryParameter['offset'] = offset;
41320
+ }
41321
+
41260
41322
 
41261
41323
 
41262
41324
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -41269,23 +41331,16 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41269
41331
  };
41270
41332
  },
41271
41333
  /**
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]
41334
+ * Processes a refund request and executes credit adjustments
41335
+ * @summary Process refund
41336
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41284
41337
  * @param {*} [options] Override http request option.
41285
41338
  * @throws {RequiredError}
41286
41339
  */
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`;
41340
+ apiRefundProcessPost: async (dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41341
+ // verify required parameter 'dataTypesProcessRefundRequestDto' is not null or undefined
41342
+ assertParamExists('apiRefundProcessPost', 'dataTypesProcessRefundRequestDto', dataTypesProcessRefundRequestDto)
41343
+ const localVarPath = `/api/refund/process`;
41289
41344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41290
41345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41291
41346
  let baseOptions;
@@ -41293,58 +41348,21 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41293
41348
  baseOptions = configuration.baseOptions;
41294
41349
  }
41295
41350
 
41296
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
41351
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41297
41352
  const localVarHeaderParameter = {} as any;
41298
41353
  const localVarQueryParameter = {} as any;
41299
41354
 
41300
41355
  // authentication BearerAuth required
41301
41356
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
41302
41357
 
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
41358
 
41344
41359
 
41360
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41361
+
41345
41362
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41346
41363
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41347
41364
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41365
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesProcessRefundRequestDto, localVarRequestOptions, configuration)
41348
41366
 
41349
41367
  return {
41350
41368
  url: toPathString(localVarUrlObj),
@@ -41361,6 +41379,79 @@ export const RefundManagementApiAxiosParamCreator = function (configuration?: Co
41361
41379
  export const RefundManagementApiFp = function(configuration?: Configuration) {
41362
41380
  const localVarAxiosParamCreator = RefundManagementApiAxiosParamCreator(configuration)
41363
41381
  return {
41382
+ /**
41383
+ * Approves or rejects a pending refund request
41384
+ * @summary Process refund approval or rejection
41385
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41386
+ * @param {*} [options] Override http request option.
41387
+ * @throws {RequiredError}
41388
+ */
41389
+ async adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
41390
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options);
41391
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41392
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalPost']?.[localVarOperationServerIndex]?.url;
41393
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41394
+ },
41395
+ /**
41396
+ * Gets refund requests that require approval
41397
+ * @summary Get pending refund approvals
41398
+ * @param {*} [options] Override http request option.
41399
+ * @throws {RequiredError}
41400
+ */
41401
+ async adminPaymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundListDto>> {
41402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundApprovalsGet(options);
41403
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41404
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundApprovalsGet']?.[localVarOperationServerIndex]?.url;
41405
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41406
+ },
41407
+ /**
41408
+ * Creates a comprehensive refund request with approval workflow
41409
+ * @summary Create a new refund request
41410
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41411
+ * @param {*} [options] Override http request option.
41412
+ * @throws {RequiredError}
41413
+ */
41414
+ async adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundRequestResponseDto>> {
41415
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options);
41416
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41417
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundRequestPost']?.[localVarOperationServerIndex]?.url;
41418
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41419
+ },
41420
+ /**
41421
+ * Gets the current status and details of a refund request by refund_id (UUID)
41422
+ * @summary Get refund request status
41423
+ * @param {string} id Refund ID (UUID)
41424
+ * @param {*} [options] Override http request option.
41425
+ * @throws {RequiredError}
41426
+ */
41427
+ async adminPaymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRefundStatusDto>> {
41428
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundStatusIdGet(id, options);
41429
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41430
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundStatusIdGet']?.[localVarOperationServerIndex]?.url;
41431
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41432
+ },
41433
+ /**
41434
+ * Gets a paginated list of refund requests with filtering
41435
+ * @summary List refund requests
41436
+ * @param {string} [dateFrom]
41437
+ * @param {string} [dateTo]
41438
+ * @param {number} [orderId]
41439
+ * @param {number} [page]
41440
+ * @param {number} [pageSize]
41441
+ * @param {string} [paymentId]
41442
+ * @param {string} [refundType]
41443
+ * @param {number} [requestedBy]
41444
+ * @param {boolean} [requireApproval]
41445
+ * @param {string} [status]
41446
+ * @param {*} [options] Override http request option.
41447
+ * @throws {RequiredError}
41448
+ */
41449
+ 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>> {
41450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options);
41451
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41452
+ const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.adminPaymentGatewayRefundsGet']?.[localVarOperationServerIndex]?.url;
41453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41454
+ },
41364
41455
  /**
41365
41456
  * Calculates refund amount based on remaining credits and original credit pricing
41366
41457
  * @summary Calculate refund amount
@@ -41419,6 +41510,16 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41419
41510
  const localVarOperationServerBasePath = operationServerMap['RefundManagementApi.apiRefundProcessPost']?.[localVarOperationServerIndex]?.url;
41420
41511
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
41421
41512
  },
41513
+ }
41514
+ };
41515
+
41516
+ /**
41517
+ * RefundManagementApi - factory interface
41518
+ * @export
41519
+ */
41520
+ export const RefundManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
41521
+ const localVarFp = RefundManagementApiFp(configuration)
41522
+ return {
41422
41523
  /**
41423
41524
  * Approves or rejects a pending refund request
41424
41525
  * @summary Process refund approval or rejection
@@ -41426,11 +41527,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41426
41527
  * @param {*} [options] Override http request option.
41427
41528
  * @throws {RequiredError}
41428
41529
  */
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);
41530
+ adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
41531
+ return localVarFp.adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(axios, basePath));
41434
41532
  },
41435
41533
  /**
41436
41534
  * Gets refund requests that require approval
@@ -41438,11 +41536,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41438
41536
  * @param {*} [options] Override http request option.
41439
41537
  * @throws {RequiredError}
41440
41538
  */
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);
41539
+ adminPaymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundListDto> {
41540
+ return localVarFp.adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(axios, basePath));
41446
41541
  },
41447
41542
  /**
41448
41543
  * Creates a comprehensive refund request with approval workflow
@@ -41451,11 +41546,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41451
41546
  * @param {*} [options] Override http request option.
41452
41547
  * @throws {RequiredError}
41453
41548
  */
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);
41549
+ adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundRequestResponseDto> {
41550
+ return localVarFp.adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(axios, basePath));
41459
41551
  },
41460
41552
  /**
41461
41553
  * Gets the current status and details of a refund request by refund_id (UUID)
@@ -41464,11 +41556,8 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41464
41556
  * @param {*} [options] Override http request option.
41465
41557
  * @throws {RequiredError}
41466
41558
  */
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);
41559
+ adminPaymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRefundStatusDto> {
41560
+ return localVarFp.adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(axios, basePath));
41472
41561
  },
41473
41562
  /**
41474
41563
  * Gets a paginated list of refund requests with filtering
@@ -41486,22 +41575,9 @@ export const RefundManagementApiFp = function(configuration?: Configuration) {
41486
41575
  * @param {*} [options] Override http request option.
41487
41576
  * @throws {RequiredError}
41488
41577
  */
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);
41578
+ 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> {
41579
+ return localVarFp.adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(axios, basePath));
41494
41580
  },
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
41581
  /**
41506
41582
  * Calculates refund amount based on remaining credits and original credit pricing
41507
41583
  * @summary Calculate refund amount
@@ -41548,64 +41624,6 @@ export const RefundManagementApiFactory = function (configuration?: Configuratio
41548
41624
  apiRefundProcessPost(dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesProcessRefundResponseDto> {
41549
41625
  return localVarFp.apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(axios, basePath));
41550
41626
  },
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
41627
  };
41610
41628
  };
41611
41629
 
@@ -41617,125 +41635,125 @@ export const RefundManagementApiFactory = function (configuration?: Configuratio
41617
41635
  */
41618
41636
  export class RefundManagementApi extends BaseAPI {
41619
41637
  /**
41620
- * Calculates refund amount based on remaining credits and original credit pricing
41621
- * @summary Calculate refund amount
41622
- * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
41638
+ * Approves or rejects a pending refund request
41639
+ * @summary Process refund approval or rejection
41640
+ * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41623
41641
  * @param {*} [options] Override http request option.
41624
41642
  * @throws {RequiredError}
41625
41643
  * @memberof RefundManagementApi
41626
41644
  */
41627
- public apiRefundCalculatePost(dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options?: RawAxiosRequestConfig) {
41628
- return RefundManagementApiFp(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
41645
+ public adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig) {
41646
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
41629
41647
  }
41630
41648
 
41631
41649
  /**
41632
- * Checks if a payment is eligible for refund
41633
- * @summary Check refund eligibility
41634
- * @param {number} paymentId Payment ID
41650
+ * Gets refund requests that require approval
41651
+ * @summary Get pending refund approvals
41635
41652
  * @param {*} [options] Override http request option.
41636
41653
  * @throws {RequiredError}
41637
41654
  * @memberof RefundManagementApi
41638
41655
  */
41639
- public apiRefundEligibilityPaymentIdGet(paymentId: number, options?: RawAxiosRequestConfig) {
41640
- return RefundManagementApiFp(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
41656
+ public adminPaymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig) {
41657
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
41641
41658
  }
41642
41659
 
41643
41660
  /**
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)
41661
+ * Creates a comprehensive refund request with approval workflow
41662
+ * @summary Create a new refund request
41663
+ * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41653
41664
  * @param {*} [options] Override http request option.
41654
41665
  * @throws {RequiredError}
41655
41666
  * @memberof RefundManagementApi
41656
41667
  */
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));
41668
+ public adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig) {
41669
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41659
41670
  }
41660
41671
 
41661
41672
  /**
41662
- * Processes a refund request and executes credit adjustments
41663
- * @summary Process refund
41664
- * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41673
+ * Gets the current status and details of a refund request by refund_id (UUID)
41674
+ * @summary Get refund request status
41675
+ * @param {string} id Refund ID (UUID)
41665
41676
  * @param {*} [options] Override http request option.
41666
41677
  * @throws {RequiredError}
41667
41678
  * @memberof RefundManagementApi
41668
41679
  */
41669
- public apiRefundProcessPost(dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options?: RawAxiosRequestConfig) {
41670
- return RefundManagementApiFp(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41680
+ public adminPaymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig) {
41681
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
41671
41682
  }
41672
41683
 
41673
41684
  /**
41674
- * Approves or rejects a pending refund request
41675
- * @summary Process refund approval or rejection
41676
- * @param {DataTypesRefundApprovalDto} dataTypesRefundApprovalDto Approval details
41685
+ * Gets a paginated list of refund requests with filtering
41686
+ * @summary List refund requests
41687
+ * @param {string} [dateFrom]
41688
+ * @param {string} [dateTo]
41689
+ * @param {number} [orderId]
41690
+ * @param {number} [page]
41691
+ * @param {number} [pageSize]
41692
+ * @param {string} [paymentId]
41693
+ * @param {string} [refundType]
41694
+ * @param {number} [requestedBy]
41695
+ * @param {boolean} [requireApproval]
41696
+ * @param {string} [status]
41677
41697
  * @param {*} [options] Override http request option.
41678
41698
  * @throws {RequiredError}
41679
41699
  * @memberof RefundManagementApi
41680
41700
  */
41681
- public paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto: DataTypesRefundApprovalDto, options?: RawAxiosRequestConfig) {
41682
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundApprovalPost(dataTypesRefundApprovalDto, options).then((request) => request(this.axios, this.basePath));
41701
+ public adminPaymentGatewayRefundsGet(dateFrom?: string, dateTo?: string, orderId?: number, page?: number, pageSize?: number, paymentId?: string, refundType?: string, requestedBy?: number, requireApproval?: boolean, status?: string, options?: RawAxiosRequestConfig) {
41702
+ return RefundManagementApiFp(this.configuration).adminPaymentGatewayRefundsGet(dateFrom, dateTo, orderId, page, pageSize, paymentId, refundType, requestedBy, requireApproval, status, options).then((request) => request(this.axios, this.basePath));
41683
41703
  }
41684
41704
 
41685
41705
  /**
41686
- * Gets refund requests that require approval
41687
- * @summary Get pending refund approvals
41706
+ * Calculates refund amount based on remaining credits and original credit pricing
41707
+ * @summary Calculate refund amount
41708
+ * @param {DataTypesRefundCalculationRequestDto} dataTypesRefundCalculationRequestDto Refund calculation request
41688
41709
  * @param {*} [options] Override http request option.
41689
41710
  * @throws {RequiredError}
41690
41711
  * @memberof RefundManagementApi
41691
41712
  */
41692
- public paymentGatewayRefundApprovalsGet(options?: RawAxiosRequestConfig) {
41693
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundApprovalsGet(options).then((request) => request(this.axios, this.basePath));
41713
+ public apiRefundCalculatePost(dataTypesRefundCalculationRequestDto: DataTypesRefundCalculationRequestDto, options?: RawAxiosRequestConfig) {
41714
+ return RefundManagementApiFp(this.configuration).apiRefundCalculatePost(dataTypesRefundCalculationRequestDto, options).then((request) => request(this.axios, this.basePath));
41694
41715
  }
41695
41716
 
41696
41717
  /**
41697
- * Creates a comprehensive refund request with approval workflow
41698
- * @summary Create a new refund request
41699
- * @param {DataTypesCreateRefundRequestDto} dataTypesCreateRefundRequestDto Refund request details
41718
+ * Checks if a payment is eligible for refund
41719
+ * @summary Check refund eligibility
41720
+ * @param {number} paymentId Payment ID
41700
41721
  * @param {*} [options] Override http request option.
41701
41722
  * @throws {RequiredError}
41702
41723
  * @memberof RefundManagementApi
41703
41724
  */
41704
- public paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto: DataTypesCreateRefundRequestDto, options?: RawAxiosRequestConfig) {
41705
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundRequestPost(dataTypesCreateRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41725
+ public apiRefundEligibilityPaymentIdGet(paymentId: number, options?: RawAxiosRequestConfig) {
41726
+ return RefundManagementApiFp(this.configuration).apiRefundEligibilityPaymentIdGet(paymentId, options).then((request) => request(this.axios, this.basePath));
41706
41727
  }
41707
41728
 
41708
41729
  /**
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)
41730
+ * Retrieves refund history for an organization with filtering options
41731
+ * @summary Get refund history
41732
+ * @param {number} [orgId] Organization ID
41733
+ * @param {number} [paymentId] Payment ID
41734
+ * @param {string} [startDate] Start date (RFC3339)
41735
+ * @param {string} [endDate] End date (RFC3339)
41736
+ * @param {string} [status] Refund status
41737
+ * @param {number} [limit] Limit (default 20, max 100)
41738
+ * @param {number} [offset] Offset (default 0)
41712
41739
  * @param {*} [options] Override http request option.
41713
41740
  * @throws {RequiredError}
41714
41741
  * @memberof RefundManagementApi
41715
41742
  */
41716
- public paymentGatewayRefundStatusIdGet(id: string, options?: RawAxiosRequestConfig) {
41717
- return RefundManagementApiFp(this.configuration).paymentGatewayRefundStatusIdGet(id, options).then((request) => request(this.axios, this.basePath));
41743
+ public apiRefundHistoryGet(orgId?: number, paymentId?: number, startDate?: string, endDate?: string, status?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
41744
+ return RefundManagementApiFp(this.configuration).apiRefundHistoryGet(orgId, paymentId, startDate, endDate, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
41718
41745
  }
41719
41746
 
41720
41747
  /**
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]
41748
+ * Processes a refund request and executes credit adjustments
41749
+ * @summary Process refund
41750
+ * @param {DataTypesProcessRefundRequestDto} dataTypesProcessRefundRequestDto Refund processing request
41733
41751
  * @param {*} [options] Override http request option.
41734
41752
  * @throws {RequiredError}
41735
41753
  * @memberof RefundManagementApi
41736
41754
  */
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));
41755
+ public apiRefundProcessPost(dataTypesProcessRefundRequestDto: DataTypesProcessRefundRequestDto, options?: RawAxiosRequestConfig) {
41756
+ return RefundManagementApiFp(this.configuration).apiRefundProcessPost(dataTypesProcessRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
41739
41757
  }
41740
41758
  }
41741
41759