@seekora-ai/admin-api 1.0.67 → 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 +5 -3
- package/api.ts +208 -48
- package/dist/api.d.ts +118 -28
- package/dist/api.js +204 -50
- package/dist/esm/api.d.ts +118 -28
- package/dist/esm/api.js +196 -46
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.69.tgz +0 -0
- package/seekora-ai-admin-api-1.0.67.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):_
|
|
@@ -102,6 +102,7 @@ Class | Method | HTTP request | Description
|
|
|
102
102
|
*BillingDashboardApi* | [**adminBillingOrganizationsGet**](docs/BillingDashboardApi.md#adminbillingorganizationsget) | **GET** /admin/billing/organizations | Get organization billing summary
|
|
103
103
|
*BillingDashboardApi* | [**adminBillingOverviewGet**](docs/BillingDashboardApi.md#adminbillingoverviewget) | **GET** /admin/billing/overview | Get billing overview
|
|
104
104
|
*BillingDashboardApi* | [**adminBillingPaymentTransactionsGet**](docs/BillingDashboardApi.md#adminbillingpaymenttransactionsget) | **GET** /admin/billing/payment-transactions | Get payment transactions
|
|
105
|
+
*CommonApi* | [**commonLanguagesGet**](docs/CommonApi.md#commonlanguagesget) | **GET** /common/languages | Get Supported Languages
|
|
105
106
|
*ConnectorsApi* | [**v1ConnectorsSearchIndexGet**](docs/ConnectorsApi.md#v1connectorssearchindexget) | **GET** /v1/connectors/search/{index} | Test search
|
|
106
107
|
*ConnectorsApi* | [**v1ConnectorsSourcesGet**](docs/ConnectorsApi.md#v1connectorssourcesget) | **GET** /v1/connectors/sources | Get all sources
|
|
107
108
|
*ConnectorsApi* | [**v1ConnectorsSourcesPost**](docs/ConnectorsApi.md#v1connectorssourcespost) | **POST** /v1/connectors/sources | Create source
|
|
@@ -190,11 +191,12 @@ Class | Method | HTTP request | Description
|
|
|
190
191
|
*ParentMenusApi* | [**miscParentMenusIdGet**](docs/ParentMenusApi.md#miscparentmenusidget) | **GET** /misc/ParentMenus/{id} | Fetches parent menus by id
|
|
191
192
|
*ParentMenusApi* | [**miscParentMenusIdPut**](docs/ParentMenusApi.md#miscparentmenusidput) | **PUT** /misc/ParentMenus/{id} | Update an existing parent menu
|
|
192
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
|
|
193
195
|
*PaymentGatewayApi* | [**paymentGatewayCreateOrderPost**](docs/PaymentGatewayApi.md#paymentgatewaycreateorderpost) | **POST** /payment-gateway/create-order | Create a new payment order
|
|
194
|
-
*PaymentGatewayApi* | [**paymentGatewayCreditPlansGet**](docs/PaymentGatewayApi.md#paymentgatewaycreditplansget) | **GET** /payment-gateway/credit-plans | Get available credit plans
|
|
195
196
|
*PaymentGatewayApi* | [**paymentGatewayGatewaysGet**](docs/PaymentGatewayApi.md#paymentgatewaygatewaysget) | **GET** /payment-gateway/gateways | Get available payment gateways
|
|
196
197
|
*PaymentGatewayApi* | [**paymentGatewayRefundPost**](docs/PaymentGatewayApi.md#paymentgatewayrefundpost) | **POST** /payment-gateway/refund | Process payment refund
|
|
197
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
|
|
198
200
|
*PaymentsApi* | [**adminPaymentsGet**](docs/PaymentsApi.md#adminpaymentsget) | **GET** /admin/payments/ | Fetches list of all payments
|
|
199
201
|
*PaymentsApi* | [**adminPaymentsPaymentIDDelete**](docs/PaymentsApi.md#adminpaymentspaymentiddelete) | **DELETE** /admin/payments/{paymentID} | Delete a payment
|
|
200
202
|
*PaymentsApi* | [**adminPaymentsPaymentIDGet**](docs/PaymentsApi.md#adminpaymentspaymentidget) | **GET** /admin/payments/{paymentID} | Fetches payment by id
|
package/api.ts
CHANGED
|
@@ -24419,6 +24419,107 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
24419
24419
|
|
|
24420
24420
|
|
|
24421
24421
|
|
|
24422
|
+
/**
|
|
24423
|
+
* CommonApi - axios parameter creator
|
|
24424
|
+
* @export
|
|
24425
|
+
*/
|
|
24426
|
+
export const CommonApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24427
|
+
return {
|
|
24428
|
+
/**
|
|
24429
|
+
* Retrieve list of supported languages for query suggestions with language codes, names, and locales
|
|
24430
|
+
* @summary Get Supported Languages
|
|
24431
|
+
* @param {*} [options] Override http request option.
|
|
24432
|
+
* @throws {RequiredError}
|
|
24433
|
+
*/
|
|
24434
|
+
commonLanguagesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24435
|
+
const localVarPath = `/common/languages`;
|
|
24436
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24437
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24438
|
+
let baseOptions;
|
|
24439
|
+
if (configuration) {
|
|
24440
|
+
baseOptions = configuration.baseOptions;
|
|
24441
|
+
}
|
|
24442
|
+
|
|
24443
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24444
|
+
const localVarHeaderParameter = {} as any;
|
|
24445
|
+
const localVarQueryParameter = {} as any;
|
|
24446
|
+
|
|
24447
|
+
|
|
24448
|
+
|
|
24449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24452
|
+
|
|
24453
|
+
return {
|
|
24454
|
+
url: toPathString(localVarUrlObj),
|
|
24455
|
+
options: localVarRequestOptions,
|
|
24456
|
+
};
|
|
24457
|
+
},
|
|
24458
|
+
}
|
|
24459
|
+
};
|
|
24460
|
+
|
|
24461
|
+
/**
|
|
24462
|
+
* CommonApi - functional programming interface
|
|
24463
|
+
* @export
|
|
24464
|
+
*/
|
|
24465
|
+
export const CommonApiFp = function(configuration?: Configuration) {
|
|
24466
|
+
const localVarAxiosParamCreator = CommonApiAxiosParamCreator(configuration)
|
|
24467
|
+
return {
|
|
24468
|
+
/**
|
|
24469
|
+
* Retrieve list of supported languages for query suggestions with language codes, names, and locales
|
|
24470
|
+
* @summary Get Supported Languages
|
|
24471
|
+
* @param {*} [options] Override http request option.
|
|
24472
|
+
* @throws {RequiredError}
|
|
24473
|
+
*/
|
|
24474
|
+
async commonLanguagesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
24475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.commonLanguagesGet(options);
|
|
24476
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24477
|
+
const localVarOperationServerBasePath = operationServerMap['CommonApi.commonLanguagesGet']?.[localVarOperationServerIndex]?.url;
|
|
24478
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24479
|
+
},
|
|
24480
|
+
}
|
|
24481
|
+
};
|
|
24482
|
+
|
|
24483
|
+
/**
|
|
24484
|
+
* CommonApi - factory interface
|
|
24485
|
+
* @export
|
|
24486
|
+
*/
|
|
24487
|
+
export const CommonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
24488
|
+
const localVarFp = CommonApiFp(configuration)
|
|
24489
|
+
return {
|
|
24490
|
+
/**
|
|
24491
|
+
* Retrieve list of supported languages for query suggestions with language codes, names, and locales
|
|
24492
|
+
* @summary Get Supported Languages
|
|
24493
|
+
* @param {*} [options] Override http request option.
|
|
24494
|
+
* @throws {RequiredError}
|
|
24495
|
+
*/
|
|
24496
|
+
commonLanguagesGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
24497
|
+
return localVarFp.commonLanguagesGet(options).then((request) => request(axios, basePath));
|
|
24498
|
+
},
|
|
24499
|
+
};
|
|
24500
|
+
};
|
|
24501
|
+
|
|
24502
|
+
/**
|
|
24503
|
+
* CommonApi - object-oriented interface
|
|
24504
|
+
* @export
|
|
24505
|
+
* @class CommonApi
|
|
24506
|
+
* @extends {BaseAPI}
|
|
24507
|
+
*/
|
|
24508
|
+
export class CommonApi extends BaseAPI {
|
|
24509
|
+
/**
|
|
24510
|
+
* Retrieve list of supported languages for query suggestions with language codes, names, and locales
|
|
24511
|
+
* @summary Get Supported Languages
|
|
24512
|
+
* @param {*} [options] Override http request option.
|
|
24513
|
+
* @throws {RequiredError}
|
|
24514
|
+
* @memberof CommonApi
|
|
24515
|
+
*/
|
|
24516
|
+
public commonLanguagesGet(options?: RawAxiosRequestConfig) {
|
|
24517
|
+
return CommonApiFp(this.configuration).commonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
|
|
24518
|
+
}
|
|
24519
|
+
}
|
|
24520
|
+
|
|
24521
|
+
|
|
24522
|
+
|
|
24422
24523
|
/**
|
|
24423
24524
|
* ConnectorsApi - axios parameter creator
|
|
24424
24525
|
* @export
|
|
@@ -32443,16 +32544,13 @@ export class ParentMenusApi extends BaseAPI {
|
|
|
32443
32544
|
export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32444
32545
|
return {
|
|
32445
32546
|
/**
|
|
32446
|
-
*
|
|
32447
|
-
* @summary
|
|
32448
|
-
* @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
|
|
32449
32549
|
* @param {*} [options] Override http request option.
|
|
32450
32550
|
* @throws {RequiredError}
|
|
32451
32551
|
*/
|
|
32452
|
-
|
|
32453
|
-
|
|
32454
|
-
assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest)
|
|
32455
|
-
const localVarPath = `/payment-gateway/create-order`;
|
|
32552
|
+
adminPaymentGatewayCreditPlansGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32553
|
+
const localVarPath = `/admin/payment-gateway/credit-plans`;
|
|
32456
32554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32457
32555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32458
32556
|
let baseOptions;
|
|
@@ -32460,21 +32558,15 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32460
32558
|
baseOptions = configuration.baseOptions;
|
|
32461
32559
|
}
|
|
32462
32560
|
|
|
32463
|
-
const localVarRequestOptions = { method: '
|
|
32561
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32464
32562
|
const localVarHeaderParameter = {} as any;
|
|
32465
32563
|
const localVarQueryParameter = {} as any;
|
|
32466
32564
|
|
|
32467
|
-
// authentication BearerAuth required
|
|
32468
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
32469
|
-
|
|
32470
32565
|
|
|
32471
32566
|
|
|
32472
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32473
|
-
|
|
32474
32567
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32475
32568
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32476
32569
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32477
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
|
|
32478
32570
|
|
|
32479
32571
|
return {
|
|
32480
32572
|
url: toPathString(localVarUrlObj),
|
|
@@ -32482,13 +32574,16 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32482
32574
|
};
|
|
32483
32575
|
},
|
|
32484
32576
|
/**
|
|
32485
|
-
*
|
|
32486
|
-
* @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
|
|
32487
32580
|
* @param {*} [options] Override http request option.
|
|
32488
32581
|
* @throws {RequiredError}
|
|
32489
32582
|
*/
|
|
32490
|
-
|
|
32491
|
-
|
|
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`;
|
|
32492
32587
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32493
32588
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32494
32589
|
let baseOptions;
|
|
@@ -32496,7 +32591,7 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32496
32591
|
baseOptions = configuration.baseOptions;
|
|
32497
32592
|
}
|
|
32498
32593
|
|
|
32499
|
-
const localVarRequestOptions = { method: '
|
|
32594
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32500
32595
|
const localVarHeaderParameter = {} as any;
|
|
32501
32596
|
const localVarQueryParameter = {} as any;
|
|
32502
32597
|
|
|
@@ -32505,9 +32600,12 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32505
32600
|
|
|
32506
32601
|
|
|
32507
32602
|
|
|
32603
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32604
|
+
|
|
32508
32605
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32509
32606
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32510
32607
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32608
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration)
|
|
32511
32609
|
|
|
32512
32610
|
return {
|
|
32513
32611
|
url: toPathString(localVarUrlObj),
|
|
@@ -32620,6 +32718,36 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32620
32718
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32621
32719
|
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesVerifyPaymentRequest, localVarRequestOptions, configuration)
|
|
32622
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
|
+
|
|
32623
32751
|
return {
|
|
32624
32752
|
url: toPathString(localVarUrlObj),
|
|
32625
32753
|
options: localVarRequestOptions,
|
|
@@ -32636,28 +32764,28 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
32636
32764
|
const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration)
|
|
32637
32765
|
return {
|
|
32638
32766
|
/**
|
|
32639
|
-
*
|
|
32640
|
-
* @summary
|
|
32641
|
-
* @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
|
|
32642
32769
|
* @param {*} [options] Override http request option.
|
|
32643
32770
|
* @throws {RequiredError}
|
|
32644
32771
|
*/
|
|
32645
|
-
async
|
|
32646
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
32772
|
+
async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>> {
|
|
32773
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
|
|
32647
32774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32648
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.
|
|
32775
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
|
|
32649
32776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32650
32777
|
},
|
|
32651
32778
|
/**
|
|
32652
|
-
*
|
|
32653
|
-
* @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
|
|
32654
32782
|
* @param {*} [options] Override http request option.
|
|
32655
32783
|
* @throws {RequiredError}
|
|
32656
32784
|
*/
|
|
32657
|
-
async
|
|
32658
|
-
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);
|
|
32659
32787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32660
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.
|
|
32788
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']?.[localVarOperationServerIndex]?.url;
|
|
32661
32789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32662
32790
|
},
|
|
32663
32791
|
/**
|
|
@@ -32698,6 +32826,18 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
32698
32826
|
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.paymentGatewayVerifyPost']?.[localVarOperationServerIndex]?.url;
|
|
32699
32827
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32700
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
|
+
},
|
|
32701
32841
|
}
|
|
32702
32842
|
};
|
|
32703
32843
|
|
|
@@ -32709,23 +32849,23 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
32709
32849
|
const localVarFp = PaymentGatewayApiFp(configuration)
|
|
32710
32850
|
return {
|
|
32711
32851
|
/**
|
|
32712
|
-
*
|
|
32713
|
-
* @summary
|
|
32714
|
-
* @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
|
|
32715
32854
|
* @param {*} [options] Override http request option.
|
|
32716
32855
|
* @throws {RequiredError}
|
|
32717
32856
|
*/
|
|
32718
|
-
|
|
32719
|
-
return localVarFp.
|
|
32857
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>> {
|
|
32858
|
+
return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
|
|
32720
32859
|
},
|
|
32721
32860
|
/**
|
|
32722
|
-
*
|
|
32723
|
-
* @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
|
|
32724
32864
|
* @param {*} [options] Override http request option.
|
|
32725
32865
|
* @throws {RequiredError}
|
|
32726
32866
|
*/
|
|
32727
|
-
|
|
32728
|
-
return localVarFp.
|
|
32867
|
+
paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse> {
|
|
32868
|
+
return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
|
|
32729
32869
|
},
|
|
32730
32870
|
/**
|
|
32731
32871
|
* Returns list of all available payment gateways
|
|
@@ -32756,6 +32896,15 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
32756
32896
|
paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse> {
|
|
32757
32897
|
return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
|
|
32758
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
|
+
},
|
|
32759
32908
|
};
|
|
32760
32909
|
};
|
|
32761
32910
|
|
|
@@ -32767,26 +32916,26 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
32767
32916
|
*/
|
|
32768
32917
|
export class PaymentGatewayApi extends BaseAPI {
|
|
32769
32918
|
/**
|
|
32770
|
-
*
|
|
32771
|
-
* @summary
|
|
32772
|
-
* @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
|
|
32773
32921
|
* @param {*} [options] Override http request option.
|
|
32774
32922
|
* @throws {RequiredError}
|
|
32775
32923
|
* @memberof PaymentGatewayApi
|
|
32776
32924
|
*/
|
|
32777
|
-
public
|
|
32778
|
-
return PaymentGatewayApiFp(this.configuration).
|
|
32925
|
+
public adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig) {
|
|
32926
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
32779
32927
|
}
|
|
32780
32928
|
|
|
32781
32929
|
/**
|
|
32782
|
-
*
|
|
32783
|
-
* @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
|
|
32784
32933
|
* @param {*} [options] Override http request option.
|
|
32785
32934
|
* @throws {RequiredError}
|
|
32786
32935
|
* @memberof PaymentGatewayApi
|
|
32787
32936
|
*/
|
|
32788
|
-
public
|
|
32789
|
-
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));
|
|
32790
32939
|
}
|
|
32791
32940
|
|
|
32792
32941
|
/**
|
|
@@ -32823,6 +32972,17 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
32823
32972
|
public paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) {
|
|
32824
32973
|
return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32825
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
|
+
}
|
|
32826
32986
|
}
|
|
32827
32987
|
|
|
32828
32988
|
|