@seekora-ai/admin-api 1.0.68 → 1.0.69
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/README.md +4 -3
- package/api.ts +107 -48
- package/dist/api.d.ts +57 -28
- package/dist/api.js +103 -46
- package/dist/esm/api.d.ts +57 -28
- package/dist/esm/api.js +103 -46
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.69.tgz +0 -0
- package/seekora-ai-admin-api-1.0.68.tgz +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.0.
|
|
1
|
+
## @seekora-ai/admin-api@1.0.69
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @seekora-ai/admin-api@1.0.
|
|
39
|
+
npm install @seekora-ai/admin-api@1.0.69 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -191,11 +191,12 @@ Class | Method | HTTP request | Description
|
|
|
191
191
|
*ParentMenusApi* | [**miscParentMenusIdGet**](docs/ParentMenusApi.md#miscparentmenusidget) | **GET** /misc/ParentMenus/{id} | Fetches parent menus by id
|
|
192
192
|
*ParentMenusApi* | [**miscParentMenusIdPut**](docs/ParentMenusApi.md#miscparentmenusidput) | **PUT** /misc/ParentMenus/{id} | Update an existing parent menu
|
|
193
193
|
*ParentMenusApi* | [**miscParentMenusPost**](docs/ParentMenusApi.md#miscparentmenuspost) | **POST** /misc/ParentMenus | Creates a new parent menu
|
|
194
|
+
*PaymentGatewayApi* | [**adminPaymentGatewayCreditPlansGet**](docs/PaymentGatewayApi.md#adminpaymentgatewaycreditplansget) | **GET** /admin/payment-gateway/credit-plans | Get available credit plans
|
|
194
195
|
*PaymentGatewayApi* | [**paymentGatewayCreateOrderPost**](docs/PaymentGatewayApi.md#paymentgatewaycreateorderpost) | **POST** /payment-gateway/create-order | Create a new payment order
|
|
195
|
-
*PaymentGatewayApi* | [**paymentGatewayCreditPlansGet**](docs/PaymentGatewayApi.md#paymentgatewaycreditplansget) | **GET** /payment-gateway/credit-plans | Get available credit plans
|
|
196
196
|
*PaymentGatewayApi* | [**paymentGatewayGatewaysGet**](docs/PaymentGatewayApi.md#paymentgatewaygatewaysget) | **GET** /payment-gateway/gateways | Get available payment gateways
|
|
197
197
|
*PaymentGatewayApi* | [**paymentGatewayRefundPost**](docs/PaymentGatewayApi.md#paymentgatewayrefundpost) | **POST** /payment-gateway/refund | Process payment refund
|
|
198
198
|
*PaymentGatewayApi* | [**paymentGatewayVerifyPost**](docs/PaymentGatewayApi.md#paymentgatewayverifypost) | **POST** /payment-gateway/verify | Verify payment status
|
|
199
|
+
*PaymentGatewayApi* | [**v1CreditPlansGet**](docs/PaymentGatewayApi.md#v1creditplansget) | **GET** /v1/credit-plans | Get available credit plans
|
|
199
200
|
*PaymentsApi* | [**adminPaymentsGet**](docs/PaymentsApi.md#adminpaymentsget) | **GET** /admin/payments/ | Fetches list of all payments
|
|
200
201
|
*PaymentsApi* | [**adminPaymentsPaymentIDDelete**](docs/PaymentsApi.md#adminpaymentspaymentiddelete) | **DELETE** /admin/payments/{paymentID} | Delete a payment
|
|
201
202
|
*PaymentsApi* | [**adminPaymentsPaymentIDGet**](docs/PaymentsApi.md#adminpaymentspaymentidget) | **GET** /admin/payments/{paymentID} | Fetches payment by id
|
package/api.ts
CHANGED
|
@@ -32544,16 +32544,13 @@ export class ParentMenusApi extends BaseAPI {
|
|
|
32544
32544
|
export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32545
32545
|
return {
|
|
32546
32546
|
/**
|
|
32547
|
-
*
|
|
32548
|
-
* @summary
|
|
32549
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32547
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32548
|
+
* @summary Get available credit plans
|
|
32550
32549
|
* @param {*} [options] Override http request option.
|
|
32551
32550
|
* @throws {RequiredError}
|
|
32552
32551
|
*/
|
|
32553
|
-
|
|
32554
|
-
|
|
32555
|
-
assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest)
|
|
32556
|
-
const localVarPath = `/payment-gateway/create-order`;
|
|
32552
|
+
adminPaymentGatewayCreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32553
|
+
const localVarPath = `/admin/payment-gateway/credit-plans`;
|
|
32557
32554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32558
32555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32559
32556
|
let baseOptions;
|
|
@@ -32561,21 +32558,15 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32561
32558
|
baseOptions = configuration.baseOptions;
|
|
32562
32559
|
}
|
|
32563
32560
|
|
|
32564
|
-
const localVarRequestOptions = { method: '
|
|
32561
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32565
32562
|
const localVarHeaderParameter = {} as any;
|
|
32566
32563
|
const localVarQueryParameter = {} as any;
|
|
32567
32564
|
|
|
32568
|
-
// authentication BearerAuth required
|
|
32569
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
32570
|
-
|
|
32571
32565
|
|
|
32572
32566
|
|
|
32573
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32574
|
-
|
|
32575
32567
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32576
32568
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32577
32569
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32578
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
|
|
32579
32570
|
|
|
32580
32571
|
return {
|
|
32581
32572
|
url: toPathString(localVarUrlObj),
|
|
@@ -32583,13 +32574,16 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32583
32574
|
};
|
|
32584
32575
|
},
|
|
32585
32576
|
/**
|
|
32586
|
-
*
|
|
32587
|
-
* @summary
|
|
32577
|
+
* Creates a payment order using specified or default payment gateway
|
|
32578
|
+
* @summary Create a new payment order
|
|
32579
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32588
32580
|
* @param {*} [options] Override http request option.
|
|
32589
32581
|
* @throws {RequiredError}
|
|
32590
32582
|
*/
|
|
32591
|
-
|
|
32592
|
-
|
|
32583
|
+
paymentGatewayCreateOrderPost: async (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32584
|
+
// verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
|
|
32585
|
+
assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest)
|
|
32586
|
+
const localVarPath = `/payment-gateway/create-order`;
|
|
32593
32587
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32594
32588
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32595
32589
|
let baseOptions;
|
|
@@ -32597,7 +32591,7 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32597
32591
|
baseOptions = configuration.baseOptions;
|
|
32598
32592
|
}
|
|
32599
32593
|
|
|
32600
|
-
const localVarRequestOptions = { method: '
|
|
32594
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32601
32595
|
const localVarHeaderParameter = {} as any;
|
|
32602
32596
|
const localVarQueryParameter = {} as any;
|
|
32603
32597
|
|
|
@@ -32606,9 +32600,12 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32606
32600
|
|
|
32607
32601
|
|
|
32608
32602
|
|
|
32603
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32604
|
+
|
|
32609
32605
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32610
32606
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32611
32607
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32608
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
|
|
32612
32609
|
|
|
32613
32610
|
return {
|
|
32614
32611
|
url: toPathString(localVarUrlObj),
|
|
@@ -32721,6 +32718,36 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32721
32718
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32722
32719
|
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesVerifyPaymentRequest, localVarRequestOptions, configuration)
|
|
32723
32720
|
|
|
32721
|
+
return {
|
|
32722
|
+
url: toPathString(localVarUrlObj),
|
|
32723
|
+
options: localVarRequestOptions,
|
|
32724
|
+
};
|
|
32725
|
+
},
|
|
32726
|
+
/**
|
|
32727
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32728
|
+
* @summary Get available credit plans
|
|
32729
|
+
* @param {*} [options] Override http request option.
|
|
32730
|
+
* @throws {RequiredError}
|
|
32731
|
+
*/
|
|
32732
|
+
v1CreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32733
|
+
const localVarPath = `/v1/credit-plans`;
|
|
32734
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32735
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32736
|
+
let baseOptions;
|
|
32737
|
+
if (configuration) {
|
|
32738
|
+
baseOptions = configuration.baseOptions;
|
|
32739
|
+
}
|
|
32740
|
+
|
|
32741
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32742
|
+
const localVarHeaderParameter = {} as any;
|
|
32743
|
+
const localVarQueryParameter = {} as any;
|
|
32744
|
+
|
|
32745
|
+
|
|
32746
|
+
|
|
32747
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32748
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32749
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32750
|
+
|
|
32724
32751
|
return {
|
|
32725
32752
|
url: toPathString(localVarUrlObj),
|
|
32726
32753
|
options: localVarRequestOptions,
|
|
@@ -32737,28 +32764,28 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
32737
32764
|
const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration)
|
|
32738
32765
|
return {
|
|
32739
32766
|
/**
|
|
32740
|
-
*
|
|
32741
|
-
* @summary
|
|
32742
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32767
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32768
|
+
* @summary Get available credit plans
|
|
32743
32769
|
* @param {*} [options] Override http request option.
|
|
32744
32770
|
* @throws {RequiredError}
|
|
32745
32771
|
*/
|
|
32746
|
-
async
|
|
32747
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
32772
|
+
async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
|
|
32773
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
|
|
32748
32774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32749
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.
|
|
32775
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
|
|
32750
32776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32751
32777
|
},
|
|
32752
32778
|
/**
|
|
32753
|
-
*
|
|
32754
|
-
* @summary
|
|
32779
|
+
* Creates a payment order using specified or default payment gateway
|
|
32780
|
+
* @summary Create a new payment order
|
|
32781
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32755
32782
|
* @param {*} [options] Override http request option.
|
|
32756
32783
|
* @throws {RequiredError}
|
|
32757
32784
|
*/
|
|
32758
|
-
async
|
|
32759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
32785
|
+
async paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>> {
|
|
32786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
|
|
32760
32787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32761
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.
|
|
32788
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']?.[localVarOperationServerIndex]?.url;
|
|
32762
32789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32763
32790
|
},
|
|
32764
32791
|
/**
|
|
@@ -32799,6 +32826,18 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
32799
32826
|
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayVerifyPost']?.[localVarOperationServerIndex]?.url;
|
|
32800
32827
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32801
32828
|
},
|
|
32829
|
+
/**
|
|
32830
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32831
|
+
* @summary Get available credit plans
|
|
32832
|
+
* @param {*} [options] Override http request option.
|
|
32833
|
+
* @throws {RequiredError}
|
|
32834
|
+
*/
|
|
32835
|
+
async v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
|
|
32836
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreditPlansGet(options);
|
|
32837
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32838
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.v1CreditPlansGet']?.[localVarOperationServerIndex]?.url;
|
|
32839
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32840
|
+
},
|
|
32802
32841
|
}
|
|
32803
32842
|
};
|
|
32804
32843
|
|
|
@@ -32810,23 +32849,23 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
32810
32849
|
const localVarFp = PaymentGatewayApiFp(configuration)
|
|
32811
32850
|
return {
|
|
32812
32851
|
/**
|
|
32813
|
-
*
|
|
32814
|
-
* @summary
|
|
32815
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32852
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32853
|
+
* @summary Get available credit plans
|
|
32816
32854
|
* @param {*} [options] Override http request option.
|
|
32817
32855
|
* @throws {RequiredError}
|
|
32818
32856
|
*/
|
|
32819
|
-
|
|
32820
|
-
return localVarFp.
|
|
32857
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
|
|
32858
|
+
return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
|
|
32821
32859
|
},
|
|
32822
32860
|
/**
|
|
32823
|
-
*
|
|
32824
|
-
* @summary
|
|
32861
|
+
* Creates a payment order using specified or default payment gateway
|
|
32862
|
+
* @summary Create a new payment order
|
|
32863
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32825
32864
|
* @param {*} [options] Override http request option.
|
|
32826
32865
|
* @throws {RequiredError}
|
|
32827
32866
|
*/
|
|
32828
|
-
|
|
32829
|
-
return localVarFp.
|
|
32867
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse> {
|
|
32868
|
+
return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
|
|
32830
32869
|
},
|
|
32831
32870
|
/**
|
|
32832
32871
|
* Returns list of all available payment gateways
|
|
@@ -32857,6 +32896,15 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
32857
32896
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse> {
|
|
32858
32897
|
return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
|
|
32859
32898
|
},
|
|
32899
|
+
/**
|
|
32900
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32901
|
+
* @summary Get available credit plans
|
|
32902
|
+
* @param {*} [options] Override http request option.
|
|
32903
|
+
* @throws {RequiredError}
|
|
32904
|
+
*/
|
|
32905
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
|
|
32906
|
+
return localVarFp.v1CreditPlansGet(options).then((request) => request(axios, basePath));
|
|
32907
|
+
},
|
|
32860
32908
|
};
|
|
32861
32909
|
};
|
|
32862
32910
|
|
|
@@ -32868,26 +32916,26 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
32868
32916
|
*/
|
|
32869
32917
|
export class PaymentGatewayApi extends BaseAPI {
|
|
32870
32918
|
/**
|
|
32871
|
-
*
|
|
32872
|
-
* @summary
|
|
32873
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32919
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32920
|
+
* @summary Get available credit plans
|
|
32874
32921
|
* @param {*} [options] Override http request option.
|
|
32875
32922
|
* @throws {RequiredError}
|
|
32876
32923
|
* @memberof PaymentGatewayApi
|
|
32877
32924
|
*/
|
|
32878
|
-
public
|
|
32879
|
-
return PaymentGatewayApiFp(this.configuration).
|
|
32925
|
+
public adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig) {
|
|
32926
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
32880
32927
|
}
|
|
32881
32928
|
|
|
32882
32929
|
/**
|
|
32883
|
-
*
|
|
32884
|
-
* @summary
|
|
32930
|
+
* Creates a payment order using specified or default payment gateway
|
|
32931
|
+
* @summary Create a new payment order
|
|
32932
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
32885
32933
|
* @param {*} [options] Override http request option.
|
|
32886
32934
|
* @throws {RequiredError}
|
|
32887
32935
|
* @memberof PaymentGatewayApi
|
|
32888
32936
|
*/
|
|
32889
|
-
public
|
|
32890
|
-
return PaymentGatewayApiFp(this.configuration).
|
|
32937
|
+
public paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) {
|
|
32938
|
+
return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32891
32939
|
}
|
|
32892
32940
|
|
|
32893
32941
|
/**
|
|
@@ -32924,6 +32972,17 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
32924
32972
|
public paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) {
|
|
32925
32973
|
return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32926
32974
|
}
|
|
32975
|
+
|
|
32976
|
+
/**
|
|
32977
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
32978
|
+
* @summary Get available credit plans
|
|
32979
|
+
* @param {*} [options] Override http request option.
|
|
32980
|
+
* @throws {RequiredError}
|
|
32981
|
+
* @memberof PaymentGatewayApi
|
|
32982
|
+
*/
|
|
32983
|
+
public v1CreditPlansGet(options?: RawAxiosRequestConfig) {
|
|
32984
|
+
return PaymentGatewayApiFp(this.configuration).v1CreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
32985
|
+
}
|
|
32927
32986
|
}
|
|
32928
32987
|
|
|
32929
32988
|
|
package/dist/api.d.ts
CHANGED
|
@@ -25115,20 +25115,20 @@ export declare class ParentMenusApi extends BaseAPI {
|
|
|
25115
25115
|
*/
|
|
25116
25116
|
export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25117
25117
|
/**
|
|
25118
|
-
*
|
|
25119
|
-
* @summary
|
|
25120
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25118
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25119
|
+
* @summary Get available credit plans
|
|
25121
25120
|
* @param {*} [options] Override http request option.
|
|
25122
25121
|
* @throws {RequiredError}
|
|
25123
25122
|
*/
|
|
25124
|
-
|
|
25123
|
+
adminPaymentGatewayCreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25125
25124
|
/**
|
|
25126
|
-
*
|
|
25127
|
-
* @summary
|
|
25125
|
+
* Creates a payment order using specified or default payment gateway
|
|
25126
|
+
* @summary Create a new payment order
|
|
25127
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25128
25128
|
* @param {*} [options] Override http request option.
|
|
25129
25129
|
* @throws {RequiredError}
|
|
25130
25130
|
*/
|
|
25131
|
-
|
|
25131
|
+
paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25132
25132
|
/**
|
|
25133
25133
|
* Returns list of all available payment gateways
|
|
25134
25134
|
* @summary Get available payment gateways
|
|
@@ -25152,6 +25152,13 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
25152
25152
|
* @throws {RequiredError}
|
|
25153
25153
|
*/
|
|
25154
25154
|
paymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25155
|
+
/**
|
|
25156
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25157
|
+
* @summary Get available credit plans
|
|
25158
|
+
* @param {*} [options] Override http request option.
|
|
25159
|
+
* @throws {RequiredError}
|
|
25160
|
+
*/
|
|
25161
|
+
v1CreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25155
25162
|
};
|
|
25156
25163
|
/**
|
|
25157
25164
|
* PaymentGatewayApi - functional programming interface
|
|
@@ -25159,20 +25166,20 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
25159
25166
|
*/
|
|
25160
25167
|
export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
25161
25168
|
/**
|
|
25162
|
-
*
|
|
25163
|
-
* @summary
|
|
25164
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25169
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25170
|
+
* @summary Get available credit plans
|
|
25165
25171
|
* @param {*} [options] Override http request option.
|
|
25166
25172
|
* @throws {RequiredError}
|
|
25167
25173
|
*/
|
|
25168
|
-
|
|
25174
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
|
|
25169
25175
|
/**
|
|
25170
|
-
*
|
|
25171
|
-
* @summary
|
|
25176
|
+
* Creates a payment order using specified or default payment gateway
|
|
25177
|
+
* @summary Create a new payment order
|
|
25178
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25172
25179
|
* @param {*} [options] Override http request option.
|
|
25173
25180
|
* @throws {RequiredError}
|
|
25174
25181
|
*/
|
|
25175
|
-
|
|
25182
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>>;
|
|
25176
25183
|
/**
|
|
25177
25184
|
* Returns list of all available payment gateways
|
|
25178
25185
|
* @summary Get available payment gateways
|
|
@@ -25196,6 +25203,13 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
25196
25203
|
* @throws {RequiredError}
|
|
25197
25204
|
*/
|
|
25198
25205
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>>;
|
|
25206
|
+
/**
|
|
25207
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25208
|
+
* @summary Get available credit plans
|
|
25209
|
+
* @param {*} [options] Override http request option.
|
|
25210
|
+
* @throws {RequiredError}
|
|
25211
|
+
*/
|
|
25212
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
|
|
25199
25213
|
};
|
|
25200
25214
|
/**
|
|
25201
25215
|
* PaymentGatewayApi - factory interface
|
|
@@ -25203,20 +25217,20 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
25203
25217
|
*/
|
|
25204
25218
|
export declare const PaymentGatewayApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25205
25219
|
/**
|
|
25206
|
-
*
|
|
25207
|
-
* @summary
|
|
25208
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25220
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25221
|
+
* @summary Get available credit plans
|
|
25209
25222
|
* @param {*} [options] Override http request option.
|
|
25210
25223
|
* @throws {RequiredError}
|
|
25211
25224
|
*/
|
|
25212
|
-
|
|
25225
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
|
|
25213
25226
|
/**
|
|
25214
|
-
*
|
|
25215
|
-
* @summary
|
|
25227
|
+
* Creates a payment order using specified or default payment gateway
|
|
25228
|
+
* @summary Create a new payment order
|
|
25229
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25216
25230
|
* @param {*} [options] Override http request option.
|
|
25217
25231
|
* @throws {RequiredError}
|
|
25218
25232
|
*/
|
|
25219
|
-
|
|
25233
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse>;
|
|
25220
25234
|
/**
|
|
25221
25235
|
* Returns list of all available payment gateways
|
|
25222
25236
|
* @summary Get available payment gateways
|
|
@@ -25240,6 +25254,13 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
25240
25254
|
* @throws {RequiredError}
|
|
25241
25255
|
*/
|
|
25242
25256
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse>;
|
|
25257
|
+
/**
|
|
25258
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25259
|
+
* @summary Get available credit plans
|
|
25260
|
+
* @param {*} [options] Override http request option.
|
|
25261
|
+
* @throws {RequiredError}
|
|
25262
|
+
*/
|
|
25263
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
|
|
25243
25264
|
};
|
|
25244
25265
|
/**
|
|
25245
25266
|
* PaymentGatewayApi - object-oriented interface
|
|
@@ -25249,22 +25270,22 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
25249
25270
|
*/
|
|
25250
25271
|
export declare class PaymentGatewayApi extends BaseAPI {
|
|
25251
25272
|
/**
|
|
25252
|
-
*
|
|
25253
|
-
* @summary
|
|
25254
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25273
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25274
|
+
* @summary Get available credit plans
|
|
25255
25275
|
* @param {*} [options] Override http request option.
|
|
25256
25276
|
* @throws {RequiredError}
|
|
25257
25277
|
* @memberof PaymentGatewayApi
|
|
25258
25278
|
*/
|
|
25259
|
-
|
|
25279
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
|
|
25260
25280
|
/**
|
|
25261
|
-
*
|
|
25262
|
-
* @summary
|
|
25281
|
+
* Creates a payment order using specified or default payment gateway
|
|
25282
|
+
* @summary Create a new payment order
|
|
25283
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25263
25284
|
* @param {*} [options] Override http request option.
|
|
25264
25285
|
* @throws {RequiredError}
|
|
25265
25286
|
* @memberof PaymentGatewayApi
|
|
25266
25287
|
*/
|
|
25267
|
-
|
|
25288
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreatePaymentOrderResponse, any, {}>>;
|
|
25268
25289
|
/**
|
|
25269
25290
|
* Returns list of all available payment gateways
|
|
25270
25291
|
* @summary Get available payment gateways
|
|
@@ -25291,6 +25312,14 @@ export declare class PaymentGatewayApi extends BaseAPI {
|
|
|
25291
25312
|
* @memberof PaymentGatewayApi
|
|
25292
25313
|
*/
|
|
25293
25314
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesPaymentStatusResponse, any, {}>>;
|
|
25315
|
+
/**
|
|
25316
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25317
|
+
* @summary Get available credit plans
|
|
25318
|
+
* @param {*} [options] Override http request option.
|
|
25319
|
+
* @throws {RequiredError}
|
|
25320
|
+
* @memberof PaymentGatewayApi
|
|
25321
|
+
*/
|
|
25322
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
|
|
25294
25323
|
}
|
|
25295
25324
|
/**
|
|
25296
25325
|
* PaymentsApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -13925,59 +13925,57 @@ exports.ParentMenusApi = ParentMenusApi;
|
|
|
13925
13925
|
const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
13926
13926
|
return {
|
|
13927
13927
|
/**
|
|
13928
|
-
*
|
|
13929
|
-
* @summary
|
|
13930
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
13928
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
13929
|
+
* @summary Get available credit plans
|
|
13931
13930
|
* @param {*} [options] Override http request option.
|
|
13932
13931
|
* @throws {RequiredError}
|
|
13933
13932
|
*/
|
|
13934
|
-
|
|
13935
|
-
|
|
13936
|
-
(0, common_1.assertParamExists)('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
|
|
13937
|
-
const localVarPath = `/payment-gateway/create-order`;
|
|
13933
|
+
adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
13934
|
+
const localVarPath = `/admin/payment-gateway/credit-plans`;
|
|
13938
13935
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13939
13936
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13940
13937
|
let baseOptions;
|
|
13941
13938
|
if (configuration) {
|
|
13942
13939
|
baseOptions = configuration.baseOptions;
|
|
13943
13940
|
}
|
|
13944
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13945
13942
|
const localVarHeaderParameter = {};
|
|
13946
13943
|
const localVarQueryParameter = {};
|
|
13947
|
-
// authentication BearerAuth required
|
|
13948
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
13949
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13950
13944
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13951
13945
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13952
13946
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13953
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
|
|
13954
13947
|
return {
|
|
13955
13948
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13956
13949
|
options: localVarRequestOptions,
|
|
13957
13950
|
};
|
|
13958
13951
|
}),
|
|
13959
13952
|
/**
|
|
13960
|
-
*
|
|
13961
|
-
* @summary
|
|
13953
|
+
* Creates a payment order using specified or default payment gateway
|
|
13954
|
+
* @summary Create a new payment order
|
|
13955
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
13962
13956
|
* @param {*} [options] Override http request option.
|
|
13963
13957
|
* @throws {RequiredError}
|
|
13964
13958
|
*/
|
|
13965
|
-
|
|
13966
|
-
|
|
13959
|
+
paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
|
|
13960
|
+
// verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
|
|
13961
|
+
(0, common_1.assertParamExists)('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
|
|
13962
|
+
const localVarPath = `/payment-gateway/create-order`;
|
|
13967
13963
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13968
13964
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13969
13965
|
let baseOptions;
|
|
13970
13966
|
if (configuration) {
|
|
13971
13967
|
baseOptions = configuration.baseOptions;
|
|
13972
13968
|
}
|
|
13973
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13969
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13974
13970
|
const localVarHeaderParameter = {};
|
|
13975
13971
|
const localVarQueryParameter = {};
|
|
13976
13972
|
// authentication BearerAuth required
|
|
13977
13973
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
13974
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13978
13975
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13979
13976
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13980
13977
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13978
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
|
|
13981
13979
|
return {
|
|
13982
13980
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13983
13981
|
options: localVarRequestOptions,
|
|
@@ -14074,6 +14072,31 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
14074
14072
|
options: localVarRequestOptions,
|
|
14075
14073
|
};
|
|
14076
14074
|
}),
|
|
14075
|
+
/**
|
|
14076
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14077
|
+
* @summary Get available credit plans
|
|
14078
|
+
* @param {*} [options] Override http request option.
|
|
14079
|
+
* @throws {RequiredError}
|
|
14080
|
+
*/
|
|
14081
|
+
v1CreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14082
|
+
const localVarPath = `/v1/credit-plans`;
|
|
14083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14084
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14085
|
+
let baseOptions;
|
|
14086
|
+
if (configuration) {
|
|
14087
|
+
baseOptions = configuration.baseOptions;
|
|
14088
|
+
}
|
|
14089
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14090
|
+
const localVarHeaderParameter = {};
|
|
14091
|
+
const localVarQueryParameter = {};
|
|
14092
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14093
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14094
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14095
|
+
return {
|
|
14096
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14097
|
+
options: localVarRequestOptions,
|
|
14098
|
+
};
|
|
14099
|
+
}),
|
|
14077
14100
|
};
|
|
14078
14101
|
};
|
|
14079
14102
|
exports.PaymentGatewayApiAxiosParamCreator = PaymentGatewayApiAxiosParamCreator;
|
|
@@ -14085,33 +14108,33 @@ const PaymentGatewayApiFp = function (configuration) {
|
|
|
14085
14108
|
const localVarAxiosParamCreator = (0, exports.PaymentGatewayApiAxiosParamCreator)(configuration);
|
|
14086
14109
|
return {
|
|
14087
14110
|
/**
|
|
14088
|
-
*
|
|
14089
|
-
* @summary
|
|
14090
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14111
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14112
|
+
* @summary Get available credit plans
|
|
14091
14113
|
* @param {*} [options] Override http request option.
|
|
14092
14114
|
* @throws {RequiredError}
|
|
14093
14115
|
*/
|
|
14094
|
-
|
|
14116
|
+
adminPaymentGatewayCreditPlansGet(options) {
|
|
14095
14117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14096
14118
|
var _a, _b, _c;
|
|
14097
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
14119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
|
|
14098
14120
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14099
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.
|
|
14121
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14100
14122
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14101
14123
|
});
|
|
14102
14124
|
},
|
|
14103
14125
|
/**
|
|
14104
|
-
*
|
|
14105
|
-
* @summary
|
|
14126
|
+
* Creates a payment order using specified or default payment gateway
|
|
14127
|
+
* @summary Create a new payment order
|
|
14128
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14106
14129
|
* @param {*} [options] Override http request option.
|
|
14107
14130
|
* @throws {RequiredError}
|
|
14108
14131
|
*/
|
|
14109
|
-
|
|
14132
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
|
|
14110
14133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14111
14134
|
var _a, _b, _c;
|
|
14112
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
14135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
|
|
14113
14136
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14114
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.
|
|
14137
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14115
14138
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14116
14139
|
});
|
|
14117
14140
|
},
|
|
@@ -14162,6 +14185,21 @@ const PaymentGatewayApiFp = function (configuration) {
|
|
|
14162
14185
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14163
14186
|
});
|
|
14164
14187
|
},
|
|
14188
|
+
/**
|
|
14189
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14190
|
+
* @summary Get available credit plans
|
|
14191
|
+
* @param {*} [options] Override http request option.
|
|
14192
|
+
* @throws {RequiredError}
|
|
14193
|
+
*/
|
|
14194
|
+
v1CreditPlansGet(options) {
|
|
14195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14196
|
+
var _a, _b, _c;
|
|
14197
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreditPlansGet(options);
|
|
14198
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14199
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.v1CreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14200
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14201
|
+
});
|
|
14202
|
+
},
|
|
14165
14203
|
};
|
|
14166
14204
|
};
|
|
14167
14205
|
exports.PaymentGatewayApiFp = PaymentGatewayApiFp;
|
|
@@ -14173,23 +14211,23 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
|
|
|
14173
14211
|
const localVarFp = (0, exports.PaymentGatewayApiFp)(configuration);
|
|
14174
14212
|
return {
|
|
14175
14213
|
/**
|
|
14176
|
-
*
|
|
14177
|
-
* @summary
|
|
14178
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14214
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14215
|
+
* @summary Get available credit plans
|
|
14179
14216
|
* @param {*} [options] Override http request option.
|
|
14180
14217
|
* @throws {RequiredError}
|
|
14181
14218
|
*/
|
|
14182
|
-
|
|
14183
|
-
return localVarFp.
|
|
14219
|
+
adminPaymentGatewayCreditPlansGet(options) {
|
|
14220
|
+
return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
|
|
14184
14221
|
},
|
|
14185
14222
|
/**
|
|
14186
|
-
*
|
|
14187
|
-
* @summary
|
|
14223
|
+
* Creates a payment order using specified or default payment gateway
|
|
14224
|
+
* @summary Create a new payment order
|
|
14225
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14188
14226
|
* @param {*} [options] Override http request option.
|
|
14189
14227
|
* @throws {RequiredError}
|
|
14190
14228
|
*/
|
|
14191
|
-
|
|
14192
|
-
return localVarFp.
|
|
14229
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
|
|
14230
|
+
return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
|
|
14193
14231
|
},
|
|
14194
14232
|
/**
|
|
14195
14233
|
* Returns list of all available payment gateways
|
|
@@ -14220,6 +14258,15 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
|
|
|
14220
14258
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
|
|
14221
14259
|
return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
|
|
14222
14260
|
},
|
|
14261
|
+
/**
|
|
14262
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14263
|
+
* @summary Get available credit plans
|
|
14264
|
+
* @param {*} [options] Override http request option.
|
|
14265
|
+
* @throws {RequiredError}
|
|
14266
|
+
*/
|
|
14267
|
+
v1CreditPlansGet(options) {
|
|
14268
|
+
return localVarFp.v1CreditPlansGet(options).then((request) => request(axios, basePath));
|
|
14269
|
+
},
|
|
14223
14270
|
};
|
|
14224
14271
|
};
|
|
14225
14272
|
exports.PaymentGatewayApiFactory = PaymentGatewayApiFactory;
|
|
@@ -14231,25 +14278,25 @@ exports.PaymentGatewayApiFactory = PaymentGatewayApiFactory;
|
|
|
14231
14278
|
*/
|
|
14232
14279
|
class PaymentGatewayApi extends base_1.BaseAPI {
|
|
14233
14280
|
/**
|
|
14234
|
-
*
|
|
14235
|
-
* @summary
|
|
14236
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14281
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14282
|
+
* @summary Get available credit plans
|
|
14237
14283
|
* @param {*} [options] Override http request option.
|
|
14238
14284
|
* @throws {RequiredError}
|
|
14239
14285
|
* @memberof PaymentGatewayApi
|
|
14240
14286
|
*/
|
|
14241
|
-
|
|
14242
|
-
return (0, exports.PaymentGatewayApiFp)(this.configuration).
|
|
14287
|
+
adminPaymentGatewayCreditPlansGet(options) {
|
|
14288
|
+
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
14243
14289
|
}
|
|
14244
14290
|
/**
|
|
14245
|
-
*
|
|
14246
|
-
* @summary
|
|
14291
|
+
* Creates a payment order using specified or default payment gateway
|
|
14292
|
+
* @summary Create a new payment order
|
|
14293
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14247
14294
|
* @param {*} [options] Override http request option.
|
|
14248
14295
|
* @throws {RequiredError}
|
|
14249
14296
|
* @memberof PaymentGatewayApi
|
|
14250
14297
|
*/
|
|
14251
|
-
|
|
14252
|
-
return (0, exports.PaymentGatewayApiFp)(this.configuration).
|
|
14298
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
|
|
14299
|
+
return (0, exports.PaymentGatewayApiFp)(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14253
14300
|
}
|
|
14254
14301
|
/**
|
|
14255
14302
|
* Returns list of all available payment gateways
|
|
@@ -14283,6 +14330,16 @@ class PaymentGatewayApi extends base_1.BaseAPI {
|
|
|
14283
14330
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
|
|
14284
14331
|
return (0, exports.PaymentGatewayApiFp)(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14285
14332
|
}
|
|
14333
|
+
/**
|
|
14334
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14335
|
+
* @summary Get available credit plans
|
|
14336
|
+
* @param {*} [options] Override http request option.
|
|
14337
|
+
* @throws {RequiredError}
|
|
14338
|
+
* @memberof PaymentGatewayApi
|
|
14339
|
+
*/
|
|
14340
|
+
v1CreditPlansGet(options) {
|
|
14341
|
+
return (0, exports.PaymentGatewayApiFp)(this.configuration).v1CreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
14342
|
+
}
|
|
14286
14343
|
}
|
|
14287
14344
|
exports.PaymentGatewayApi = PaymentGatewayApi;
|
|
14288
14345
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -25115,20 +25115,20 @@ export declare class ParentMenusApi extends BaseAPI {
|
|
|
25115
25115
|
*/
|
|
25116
25116
|
export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25117
25117
|
/**
|
|
25118
|
-
*
|
|
25119
|
-
* @summary
|
|
25120
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25118
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25119
|
+
* @summary Get available credit plans
|
|
25121
25120
|
* @param {*} [options] Override http request option.
|
|
25122
25121
|
* @throws {RequiredError}
|
|
25123
25122
|
*/
|
|
25124
|
-
|
|
25123
|
+
adminPaymentGatewayCreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25125
25124
|
/**
|
|
25126
|
-
*
|
|
25127
|
-
* @summary
|
|
25125
|
+
* Creates a payment order using specified or default payment gateway
|
|
25126
|
+
* @summary Create a new payment order
|
|
25127
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25128
25128
|
* @param {*} [options] Override http request option.
|
|
25129
25129
|
* @throws {RequiredError}
|
|
25130
25130
|
*/
|
|
25131
|
-
|
|
25131
|
+
paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25132
25132
|
/**
|
|
25133
25133
|
* Returns list of all available payment gateways
|
|
25134
25134
|
* @summary Get available payment gateways
|
|
@@ -25152,6 +25152,13 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
25152
25152
|
* @throws {RequiredError}
|
|
25153
25153
|
*/
|
|
25154
25154
|
paymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25155
|
+
/**
|
|
25156
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25157
|
+
* @summary Get available credit plans
|
|
25158
|
+
* @param {*} [options] Override http request option.
|
|
25159
|
+
* @throws {RequiredError}
|
|
25160
|
+
*/
|
|
25161
|
+
v1CreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25155
25162
|
};
|
|
25156
25163
|
/**
|
|
25157
25164
|
* PaymentGatewayApi - functional programming interface
|
|
@@ -25159,20 +25166,20 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
25159
25166
|
*/
|
|
25160
25167
|
export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
25161
25168
|
/**
|
|
25162
|
-
*
|
|
25163
|
-
* @summary
|
|
25164
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25169
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25170
|
+
* @summary Get available credit plans
|
|
25165
25171
|
* @param {*} [options] Override http request option.
|
|
25166
25172
|
* @throws {RequiredError}
|
|
25167
25173
|
*/
|
|
25168
|
-
|
|
25174
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
|
|
25169
25175
|
/**
|
|
25170
|
-
*
|
|
25171
|
-
* @summary
|
|
25176
|
+
* Creates a payment order using specified or default payment gateway
|
|
25177
|
+
* @summary Create a new payment order
|
|
25178
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25172
25179
|
* @param {*} [options] Override http request option.
|
|
25173
25180
|
* @throws {RequiredError}
|
|
25174
25181
|
*/
|
|
25175
|
-
|
|
25182
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>>;
|
|
25176
25183
|
/**
|
|
25177
25184
|
* Returns list of all available payment gateways
|
|
25178
25185
|
* @summary Get available payment gateways
|
|
@@ -25196,6 +25203,13 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
25196
25203
|
* @throws {RequiredError}
|
|
25197
25204
|
*/
|
|
25198
25205
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>>;
|
|
25206
|
+
/**
|
|
25207
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25208
|
+
* @summary Get available credit plans
|
|
25209
|
+
* @param {*} [options] Override http request option.
|
|
25210
|
+
* @throws {RequiredError}
|
|
25211
|
+
*/
|
|
25212
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
|
|
25199
25213
|
};
|
|
25200
25214
|
/**
|
|
25201
25215
|
* PaymentGatewayApi - factory interface
|
|
@@ -25203,20 +25217,20 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
25203
25217
|
*/
|
|
25204
25218
|
export declare const PaymentGatewayApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25205
25219
|
/**
|
|
25206
|
-
*
|
|
25207
|
-
* @summary
|
|
25208
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25220
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25221
|
+
* @summary Get available credit plans
|
|
25209
25222
|
* @param {*} [options] Override http request option.
|
|
25210
25223
|
* @throws {RequiredError}
|
|
25211
25224
|
*/
|
|
25212
|
-
|
|
25225
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
|
|
25213
25226
|
/**
|
|
25214
|
-
*
|
|
25215
|
-
* @summary
|
|
25227
|
+
* Creates a payment order using specified or default payment gateway
|
|
25228
|
+
* @summary Create a new payment order
|
|
25229
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25216
25230
|
* @param {*} [options] Override http request option.
|
|
25217
25231
|
* @throws {RequiredError}
|
|
25218
25232
|
*/
|
|
25219
|
-
|
|
25233
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse>;
|
|
25220
25234
|
/**
|
|
25221
25235
|
* Returns list of all available payment gateways
|
|
25222
25236
|
* @summary Get available payment gateways
|
|
@@ -25240,6 +25254,13 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
25240
25254
|
* @throws {RequiredError}
|
|
25241
25255
|
*/
|
|
25242
25256
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse>;
|
|
25257
|
+
/**
|
|
25258
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25259
|
+
* @summary Get available credit plans
|
|
25260
|
+
* @param {*} [options] Override http request option.
|
|
25261
|
+
* @throws {RequiredError}
|
|
25262
|
+
*/
|
|
25263
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
|
|
25243
25264
|
};
|
|
25244
25265
|
/**
|
|
25245
25266
|
* PaymentGatewayApi - object-oriented interface
|
|
@@ -25249,22 +25270,22 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
25249
25270
|
*/
|
|
25250
25271
|
export declare class PaymentGatewayApi extends BaseAPI {
|
|
25251
25272
|
/**
|
|
25252
|
-
*
|
|
25253
|
-
* @summary
|
|
25254
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25273
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25274
|
+
* @summary Get available credit plans
|
|
25255
25275
|
* @param {*} [options] Override http request option.
|
|
25256
25276
|
* @throws {RequiredError}
|
|
25257
25277
|
* @memberof PaymentGatewayApi
|
|
25258
25278
|
*/
|
|
25259
|
-
|
|
25279
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
|
|
25260
25280
|
/**
|
|
25261
|
-
*
|
|
25262
|
-
* @summary
|
|
25281
|
+
* Creates a payment order using specified or default payment gateway
|
|
25282
|
+
* @summary Create a new payment order
|
|
25283
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
25263
25284
|
* @param {*} [options] Override http request option.
|
|
25264
25285
|
* @throws {RequiredError}
|
|
25265
25286
|
* @memberof PaymentGatewayApi
|
|
25266
25287
|
*/
|
|
25267
|
-
|
|
25288
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreatePaymentOrderResponse, any, {}>>;
|
|
25268
25289
|
/**
|
|
25269
25290
|
* Returns list of all available payment gateways
|
|
25270
25291
|
* @summary Get available payment gateways
|
|
@@ -25291,6 +25312,14 @@ export declare class PaymentGatewayApi extends BaseAPI {
|
|
|
25291
25312
|
* @memberof PaymentGatewayApi
|
|
25292
25313
|
*/
|
|
25293
25314
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesPaymentStatusResponse, any, {}>>;
|
|
25315
|
+
/**
|
|
25316
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
25317
|
+
* @summary Get available credit plans
|
|
25318
|
+
* @param {*} [options] Override http request option.
|
|
25319
|
+
* @throws {RequiredError}
|
|
25320
|
+
* @memberof PaymentGatewayApi
|
|
25321
|
+
*/
|
|
25322
|
+
v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
|
|
25294
25323
|
}
|
|
25295
25324
|
/**
|
|
25296
25325
|
* PaymentsApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -13834,59 +13834,57 @@ export class ParentMenusApi extends BaseAPI {
|
|
|
13834
13834
|
export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
13835
13835
|
return {
|
|
13836
13836
|
/**
|
|
13837
|
-
*
|
|
13838
|
-
* @summary
|
|
13839
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
13837
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
13838
|
+
* @summary Get available credit plans
|
|
13840
13839
|
* @param {*} [options] Override http request option.
|
|
13841
13840
|
* @throws {RequiredError}
|
|
13842
13841
|
*/
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
|
|
13846
|
-
const localVarPath = `/payment-gateway/create-order`;
|
|
13842
|
+
adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
13843
|
+
const localVarPath = `/admin/payment-gateway/credit-plans`;
|
|
13847
13844
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13848
13845
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13849
13846
|
let baseOptions;
|
|
13850
13847
|
if (configuration) {
|
|
13851
13848
|
baseOptions = configuration.baseOptions;
|
|
13852
13849
|
}
|
|
13853
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13850
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13854
13851
|
const localVarHeaderParameter = {};
|
|
13855
13852
|
const localVarQueryParameter = {};
|
|
13856
|
-
// authentication BearerAuth required
|
|
13857
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
13858
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13859
13853
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13860
13854
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13861
13855
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13862
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
|
|
13863
13856
|
return {
|
|
13864
13857
|
url: toPathString(localVarUrlObj),
|
|
13865
13858
|
options: localVarRequestOptions,
|
|
13866
13859
|
};
|
|
13867
13860
|
}),
|
|
13868
13861
|
/**
|
|
13869
|
-
*
|
|
13870
|
-
* @summary
|
|
13862
|
+
* Creates a payment order using specified or default payment gateway
|
|
13863
|
+
* @summary Create a new payment order
|
|
13864
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
13871
13865
|
* @param {*} [options] Override http request option.
|
|
13872
13866
|
* @throws {RequiredError}
|
|
13873
13867
|
*/
|
|
13874
|
-
|
|
13875
|
-
|
|
13868
|
+
paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
|
|
13869
|
+
// verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
|
|
13870
|
+
assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
|
|
13871
|
+
const localVarPath = `/payment-gateway/create-order`;
|
|
13876
13872
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13877
13873
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13878
13874
|
let baseOptions;
|
|
13879
13875
|
if (configuration) {
|
|
13880
13876
|
baseOptions = configuration.baseOptions;
|
|
13881
13877
|
}
|
|
13882
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13878
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13883
13879
|
const localVarHeaderParameter = {};
|
|
13884
13880
|
const localVarQueryParameter = {};
|
|
13885
13881
|
// authentication BearerAuth required
|
|
13886
13882
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
13883
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13887
13884
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13888
13885
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13889
13886
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13887
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
|
|
13890
13888
|
return {
|
|
13891
13889
|
url: toPathString(localVarUrlObj),
|
|
13892
13890
|
options: localVarRequestOptions,
|
|
@@ -13983,6 +13981,31 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
13983
13981
|
options: localVarRequestOptions,
|
|
13984
13982
|
};
|
|
13985
13983
|
}),
|
|
13984
|
+
/**
|
|
13985
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
13986
|
+
* @summary Get available credit plans
|
|
13987
|
+
* @param {*} [options] Override http request option.
|
|
13988
|
+
* @throws {RequiredError}
|
|
13989
|
+
*/
|
|
13990
|
+
v1CreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
13991
|
+
const localVarPath = `/v1/credit-plans`;
|
|
13992
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13993
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13994
|
+
let baseOptions;
|
|
13995
|
+
if (configuration) {
|
|
13996
|
+
baseOptions = configuration.baseOptions;
|
|
13997
|
+
}
|
|
13998
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13999
|
+
const localVarHeaderParameter = {};
|
|
14000
|
+
const localVarQueryParameter = {};
|
|
14001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14003
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14004
|
+
return {
|
|
14005
|
+
url: toPathString(localVarUrlObj),
|
|
14006
|
+
options: localVarRequestOptions,
|
|
14007
|
+
};
|
|
14008
|
+
}),
|
|
13986
14009
|
};
|
|
13987
14010
|
};
|
|
13988
14011
|
/**
|
|
@@ -13993,33 +14016,33 @@ export const PaymentGatewayApiFp = function (configuration) {
|
|
|
13993
14016
|
const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration);
|
|
13994
14017
|
return {
|
|
13995
14018
|
/**
|
|
13996
|
-
*
|
|
13997
|
-
* @summary
|
|
13998
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14019
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14020
|
+
* @summary Get available credit plans
|
|
13999
14021
|
* @param {*} [options] Override http request option.
|
|
14000
14022
|
* @throws {RequiredError}
|
|
14001
14023
|
*/
|
|
14002
|
-
|
|
14024
|
+
adminPaymentGatewayCreditPlansGet(options) {
|
|
14003
14025
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14004
14026
|
var _a, _b, _c;
|
|
14005
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
14027
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
|
|
14006
14028
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14007
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.
|
|
14029
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14008
14030
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14009
14031
|
});
|
|
14010
14032
|
},
|
|
14011
14033
|
/**
|
|
14012
|
-
*
|
|
14013
|
-
* @summary
|
|
14034
|
+
* Creates a payment order using specified or default payment gateway
|
|
14035
|
+
* @summary Create a new payment order
|
|
14036
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14014
14037
|
* @param {*} [options] Override http request option.
|
|
14015
14038
|
* @throws {RequiredError}
|
|
14016
14039
|
*/
|
|
14017
|
-
|
|
14040
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
|
|
14018
14041
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14019
14042
|
var _a, _b, _c;
|
|
14020
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
14043
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
|
|
14021
14044
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14022
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.
|
|
14045
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14023
14046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14024
14047
|
});
|
|
14025
14048
|
},
|
|
@@ -14070,6 +14093,21 @@ export const PaymentGatewayApiFp = function (configuration) {
|
|
|
14070
14093
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14071
14094
|
});
|
|
14072
14095
|
},
|
|
14096
|
+
/**
|
|
14097
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14098
|
+
* @summary Get available credit plans
|
|
14099
|
+
* @param {*} [options] Override http request option.
|
|
14100
|
+
* @throws {RequiredError}
|
|
14101
|
+
*/
|
|
14102
|
+
v1CreditPlansGet(options) {
|
|
14103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14104
|
+
var _a, _b, _c;
|
|
14105
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreditPlansGet(options);
|
|
14106
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14107
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.v1CreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14108
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14109
|
+
});
|
|
14110
|
+
},
|
|
14073
14111
|
};
|
|
14074
14112
|
};
|
|
14075
14113
|
/**
|
|
@@ -14080,23 +14118,23 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
|
|
|
14080
14118
|
const localVarFp = PaymentGatewayApiFp(configuration);
|
|
14081
14119
|
return {
|
|
14082
14120
|
/**
|
|
14083
|
-
*
|
|
14084
|
-
* @summary
|
|
14085
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14121
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14122
|
+
* @summary Get available credit plans
|
|
14086
14123
|
* @param {*} [options] Override http request option.
|
|
14087
14124
|
* @throws {RequiredError}
|
|
14088
14125
|
*/
|
|
14089
|
-
|
|
14090
|
-
return localVarFp.
|
|
14126
|
+
adminPaymentGatewayCreditPlansGet(options) {
|
|
14127
|
+
return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
|
|
14091
14128
|
},
|
|
14092
14129
|
/**
|
|
14093
|
-
*
|
|
14094
|
-
* @summary
|
|
14130
|
+
* Creates a payment order using specified or default payment gateway
|
|
14131
|
+
* @summary Create a new payment order
|
|
14132
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14095
14133
|
* @param {*} [options] Override http request option.
|
|
14096
14134
|
* @throws {RequiredError}
|
|
14097
14135
|
*/
|
|
14098
|
-
|
|
14099
|
-
return localVarFp.
|
|
14136
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
|
|
14137
|
+
return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
|
|
14100
14138
|
},
|
|
14101
14139
|
/**
|
|
14102
14140
|
* Returns list of all available payment gateways
|
|
@@ -14127,6 +14165,15 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
|
|
|
14127
14165
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
|
|
14128
14166
|
return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
|
|
14129
14167
|
},
|
|
14168
|
+
/**
|
|
14169
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14170
|
+
* @summary Get available credit plans
|
|
14171
|
+
* @param {*} [options] Override http request option.
|
|
14172
|
+
* @throws {RequiredError}
|
|
14173
|
+
*/
|
|
14174
|
+
v1CreditPlansGet(options) {
|
|
14175
|
+
return localVarFp.v1CreditPlansGet(options).then((request) => request(axios, basePath));
|
|
14176
|
+
},
|
|
14130
14177
|
};
|
|
14131
14178
|
};
|
|
14132
14179
|
/**
|
|
@@ -14137,25 +14184,25 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
|
|
|
14137
14184
|
*/
|
|
14138
14185
|
export class PaymentGatewayApi extends BaseAPI {
|
|
14139
14186
|
/**
|
|
14140
|
-
*
|
|
14141
|
-
* @summary
|
|
14142
|
-
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14187
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14188
|
+
* @summary Get available credit plans
|
|
14143
14189
|
* @param {*} [options] Override http request option.
|
|
14144
14190
|
* @throws {RequiredError}
|
|
14145
14191
|
* @memberof PaymentGatewayApi
|
|
14146
14192
|
*/
|
|
14147
|
-
|
|
14148
|
-
return PaymentGatewayApiFp(this.configuration).
|
|
14193
|
+
adminPaymentGatewayCreditPlansGet(options) {
|
|
14194
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
14149
14195
|
}
|
|
14150
14196
|
/**
|
|
14151
|
-
*
|
|
14152
|
-
* @summary
|
|
14197
|
+
* Creates a payment order using specified or default payment gateway
|
|
14198
|
+
* @summary Create a new payment order
|
|
14199
|
+
* @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
|
|
14153
14200
|
* @param {*} [options] Override http request option.
|
|
14154
14201
|
* @throws {RequiredError}
|
|
14155
14202
|
* @memberof PaymentGatewayApi
|
|
14156
14203
|
*/
|
|
14157
|
-
|
|
14158
|
-
return PaymentGatewayApiFp(this.configuration).
|
|
14204
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
|
|
14205
|
+
return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14159
14206
|
}
|
|
14160
14207
|
/**
|
|
14161
14208
|
* Returns list of all available payment gateways
|
|
@@ -14189,6 +14236,16 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
14189
14236
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
|
|
14190
14237
|
return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14191
14238
|
}
|
|
14239
|
+
/**
|
|
14240
|
+
* Returns list of all active credit plans for purchase (available both as public and protected endpoint)
|
|
14241
|
+
* @summary Get available credit plans
|
|
14242
|
+
* @param {*} [options] Override http request option.
|
|
14243
|
+
* @throws {RequiredError}
|
|
14244
|
+
* @memberof PaymentGatewayApi
|
|
14245
|
+
*/
|
|
14246
|
+
v1CreditPlansGet(options) {
|
|
14247
|
+
return PaymentGatewayApiFp(this.configuration).v1CreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
14248
|
+
}
|
|
14192
14249
|
}
|
|
14193
14250
|
/**
|
|
14194
14251
|
* PaymentsApi - axios parameter creator
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|