@seekora-ai/admin-api 1.0.97 → 1.0.98
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 +9 -93
- package/api.ts +2416 -5733
- package/dist/api.d.ts +2383 -5833
- package/dist/api.js +240 -36
- package/dist/esm/api.d.ts +2383 -5833
- package/dist/esm/api.js +234 -30
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.98.tgz +0 -0
- package/seekora-ai-admin-api-1.0.97.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -120,13 +120,6 @@ export const DataTypesCreateTaskRequestTypeEnum = {
|
|
|
120
120
|
Manual: 'manual',
|
|
121
121
|
PluginConnector: 'plugin_connector'
|
|
122
122
|
};
|
|
123
|
-
export const DataTypesCreditTransactionTransactionTypeEnum = {
|
|
124
|
-
Purchase: 'purchase',
|
|
125
|
-
Consume: 'consume',
|
|
126
|
-
Refund: 'refund',
|
|
127
|
-
Bonus: 'bonus',
|
|
128
|
-
Expire: 'expire'
|
|
129
|
-
};
|
|
130
123
|
export const DataTypesProcessRefundRequestDtoRefundTypeEnum = {
|
|
131
124
|
Full: 'full',
|
|
132
125
|
Partial: 'partial',
|
|
@@ -7469,6 +7462,37 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7469
7462
|
options: localVarRequestOptions,
|
|
7470
7463
|
};
|
|
7471
7464
|
}),
|
|
7465
|
+
/**
|
|
7466
|
+
* Downloads an invoice as an HTML file (PDF can be added later)
|
|
7467
|
+
* @summary Download invoice
|
|
7468
|
+
* @param {string} id Invoice ID
|
|
7469
|
+
* @param {*} [options] Override http request option.
|
|
7470
|
+
* @throws {RequiredError}
|
|
7471
|
+
*/
|
|
7472
|
+
adminBillingInvoicesIdDownloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7473
|
+
// verify required parameter 'id' is not null or undefined
|
|
7474
|
+
assertParamExists('adminBillingInvoicesIdDownloadGet', 'id', id);
|
|
7475
|
+
const localVarPath = `/admin/billing/invoices/{id}/download`
|
|
7476
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7477
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7478
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7479
|
+
let baseOptions;
|
|
7480
|
+
if (configuration) {
|
|
7481
|
+
baseOptions = configuration.baseOptions;
|
|
7482
|
+
}
|
|
7483
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7484
|
+
const localVarHeaderParameter = {};
|
|
7485
|
+
const localVarQueryParameter = {};
|
|
7486
|
+
// authentication BearerAuth required
|
|
7487
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7491
|
+
return {
|
|
7492
|
+
url: toPathString(localVarUrlObj),
|
|
7493
|
+
options: localVarRequestOptions,
|
|
7494
|
+
};
|
|
7495
|
+
}),
|
|
7472
7496
|
/**
|
|
7473
7497
|
* Retrieves a single invoice by ID
|
|
7474
7498
|
* @summary Get invoice
|
|
@@ -7537,17 +7561,17 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7537
7561
|
};
|
|
7538
7562
|
}),
|
|
7539
7563
|
/**
|
|
7540
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
7564
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7541
7565
|
* @summary Get orders
|
|
7542
7566
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7543
7567
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7544
7568
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7545
|
-
* @param {number} [
|
|
7546
|
-
* @param {number} [
|
|
7569
|
+
* @param {number} [page] Page number (default: 1)
|
|
7570
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7547
7571
|
* @param {*} [options] Override http request option.
|
|
7548
7572
|
* @throws {RequiredError}
|
|
7549
7573
|
*/
|
|
7550
|
-
adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1,
|
|
7574
|
+
adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, options = {}) {
|
|
7551
7575
|
const localVarPath = `/admin/billing/orders`;
|
|
7552
7576
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7553
7577
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7569,11 +7593,11 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7569
7593
|
if (endDate !== undefined) {
|
|
7570
7594
|
localVarQueryParameter['end_date'] = endDate;
|
|
7571
7595
|
}
|
|
7572
|
-
if (
|
|
7573
|
-
localVarQueryParameter['
|
|
7596
|
+
if (page !== undefined) {
|
|
7597
|
+
localVarQueryParameter['page'] = page;
|
|
7574
7598
|
}
|
|
7575
|
-
if (
|
|
7576
|
-
localVarQueryParameter['
|
|
7599
|
+
if (pageSize !== undefined) {
|
|
7600
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7577
7601
|
}
|
|
7578
7602
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7579
7603
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -8087,6 +8111,22 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8087
8111
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8088
8112
|
});
|
|
8089
8113
|
},
|
|
8114
|
+
/**
|
|
8115
|
+
* Downloads an invoice as an HTML file (PDF can be added later)
|
|
8116
|
+
* @summary Download invoice
|
|
8117
|
+
* @param {string} id Invoice ID
|
|
8118
|
+
* @param {*} [options] Override http request option.
|
|
8119
|
+
* @throws {RequiredError}
|
|
8120
|
+
*/
|
|
8121
|
+
adminBillingInvoicesIdDownloadGet(id, options) {
|
|
8122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8123
|
+
var _a, _b, _c;
|
|
8124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdDownloadGet(id, options);
|
|
8125
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8126
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdDownloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8127
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8128
|
+
});
|
|
8129
|
+
},
|
|
8090
8130
|
/**
|
|
8091
8131
|
* Retrieves a single invoice by ID
|
|
8092
8132
|
* @summary Get invoice
|
|
@@ -8121,20 +8161,20 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8121
8161
|
});
|
|
8122
8162
|
},
|
|
8123
8163
|
/**
|
|
8124
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
8164
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8125
8165
|
* @summary Get orders
|
|
8126
8166
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8127
8167
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8128
8168
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8129
|
-
* @param {number} [
|
|
8130
|
-
* @param {number} [
|
|
8169
|
+
* @param {number} [page] Page number (default: 1)
|
|
8170
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8131
8171
|
* @param {*} [options] Override http request option.
|
|
8132
8172
|
* @throws {RequiredError}
|
|
8133
8173
|
*/
|
|
8134
|
-
adminBillingOrdersGet(orgId, startDate, endDate,
|
|
8174
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
8135
8175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8136
8176
|
var _a, _b, _c;
|
|
8137
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate,
|
|
8177
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
|
|
8138
8178
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8139
8179
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8140
8180
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8419,6 +8459,16 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
8419
8459
|
adminBillingInvoicesIdDelete(id, options) {
|
|
8420
8460
|
return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
|
|
8421
8461
|
},
|
|
8462
|
+
/**
|
|
8463
|
+
* Downloads an invoice as an HTML file (PDF can be added later)
|
|
8464
|
+
* @summary Download invoice
|
|
8465
|
+
* @param {string} id Invoice ID
|
|
8466
|
+
* @param {*} [options] Override http request option.
|
|
8467
|
+
* @throws {RequiredError}
|
|
8468
|
+
*/
|
|
8469
|
+
adminBillingInvoicesIdDownloadGet(id, options) {
|
|
8470
|
+
return localVarFp.adminBillingInvoicesIdDownloadGet(id, options).then((request) => request(axios, basePath));
|
|
8471
|
+
},
|
|
8422
8472
|
/**
|
|
8423
8473
|
* Retrieves a single invoice by ID
|
|
8424
8474
|
* @summary Get invoice
|
|
@@ -8441,18 +8491,18 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
8441
8491
|
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
8442
8492
|
},
|
|
8443
8493
|
/**
|
|
8444
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
8494
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8445
8495
|
* @summary Get orders
|
|
8446
8496
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8447
8497
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8448
8498
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8449
|
-
* @param {number} [
|
|
8450
|
-
* @param {number} [
|
|
8499
|
+
* @param {number} [page] Page number (default: 1)
|
|
8500
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8451
8501
|
* @param {*} [options] Override http request option.
|
|
8452
8502
|
* @throws {RequiredError}
|
|
8453
8503
|
*/
|
|
8454
|
-
adminBillingOrdersGet(orgId, startDate, endDate,
|
|
8455
|
-
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate,
|
|
8504
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
8505
|
+
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
|
|
8456
8506
|
},
|
|
8457
8507
|
/**
|
|
8458
8508
|
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
@@ -8703,6 +8753,17 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
8703
8753
|
adminBillingInvoicesIdDelete(id, options) {
|
|
8704
8754
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
8705
8755
|
}
|
|
8756
|
+
/**
|
|
8757
|
+
* Downloads an invoice as an HTML file (PDF can be added later)
|
|
8758
|
+
* @summary Download invoice
|
|
8759
|
+
* @param {string} id Invoice ID
|
|
8760
|
+
* @param {*} [options] Override http request option.
|
|
8761
|
+
* @throws {RequiredError}
|
|
8762
|
+
* @memberof BillingDashboardApi
|
|
8763
|
+
*/
|
|
8764
|
+
adminBillingInvoicesIdDownloadGet(id, options) {
|
|
8765
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdDownloadGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
8766
|
+
}
|
|
8706
8767
|
/**
|
|
8707
8768
|
* Retrieves a single invoice by ID
|
|
8708
8769
|
* @summary Get invoice
|
|
@@ -8727,19 +8788,19 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
8727
8788
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8728
8789
|
}
|
|
8729
8790
|
/**
|
|
8730
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
8791
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8731
8792
|
* @summary Get orders
|
|
8732
8793
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8733
8794
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8734
8795
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8735
|
-
* @param {number} [
|
|
8736
|
-
* @param {number} [
|
|
8796
|
+
* @param {number} [page] Page number (default: 1)
|
|
8797
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8737
8798
|
* @param {*} [options] Override http request option.
|
|
8738
8799
|
* @throws {RequiredError}
|
|
8739
8800
|
* @memberof BillingDashboardApi
|
|
8740
8801
|
*/
|
|
8741
|
-
adminBillingOrdersGet(orgId, startDate, endDate,
|
|
8742
|
-
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate,
|
|
8802
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
8803
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8743
8804
|
}
|
|
8744
8805
|
/**
|
|
8745
8806
|
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
@@ -17028,6 +17089,72 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
17028
17089
|
options: localVarRequestOptions,
|
|
17029
17090
|
};
|
|
17030
17091
|
}),
|
|
17092
|
+
/**
|
|
17093
|
+
* Returns paginated orders for the authenticated user\'s organization
|
|
17094
|
+
* @summary List orders (paginated)
|
|
17095
|
+
* @param {number} [page] Page number (default 1)
|
|
17096
|
+
* @param {number} [pageSize] Page size (default 20, max 100)
|
|
17097
|
+
* @param {*} [options] Override http request option.
|
|
17098
|
+
* @throws {RequiredError}
|
|
17099
|
+
*/
|
|
17100
|
+
adminPaymentGatewayOrdersGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
|
|
17101
|
+
const localVarPath = `/admin/payment-gateway/orders`;
|
|
17102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17104
|
+
let baseOptions;
|
|
17105
|
+
if (configuration) {
|
|
17106
|
+
baseOptions = configuration.baseOptions;
|
|
17107
|
+
}
|
|
17108
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17109
|
+
const localVarHeaderParameter = {};
|
|
17110
|
+
const localVarQueryParameter = {};
|
|
17111
|
+
// authentication BearerAuth required
|
|
17112
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
17113
|
+
if (page !== undefined) {
|
|
17114
|
+
localVarQueryParameter['page'] = page;
|
|
17115
|
+
}
|
|
17116
|
+
if (pageSize !== undefined) {
|
|
17117
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
17118
|
+
}
|
|
17119
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17121
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17122
|
+
return {
|
|
17123
|
+
url: toPathString(localVarUrlObj),
|
|
17124
|
+
options: localVarRequestOptions,
|
|
17125
|
+
};
|
|
17126
|
+
}),
|
|
17127
|
+
/**
|
|
17128
|
+
* Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
|
|
17129
|
+
* @summary Get single order details with transactions and invoice
|
|
17130
|
+
* @param {number} id Order ID
|
|
17131
|
+
* @param {*} [options] Override http request option.
|
|
17132
|
+
* @throws {RequiredError}
|
|
17133
|
+
*/
|
|
17134
|
+
adminPaymentGatewayOrdersIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
17135
|
+
// verify required parameter 'id' is not null or undefined
|
|
17136
|
+
assertParamExists('adminPaymentGatewayOrdersIdGet', 'id', id);
|
|
17137
|
+
const localVarPath = `/admin/payment-gateway/orders/{id}`
|
|
17138
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17141
|
+
let baseOptions;
|
|
17142
|
+
if (configuration) {
|
|
17143
|
+
baseOptions = configuration.baseOptions;
|
|
17144
|
+
}
|
|
17145
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17146
|
+
const localVarHeaderParameter = {};
|
|
17147
|
+
const localVarQueryParameter = {};
|
|
17148
|
+
// authentication BearerAuth required
|
|
17149
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
17150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17152
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17153
|
+
return {
|
|
17154
|
+
url: toPathString(localVarUrlObj),
|
|
17155
|
+
options: localVarRequestOptions,
|
|
17156
|
+
};
|
|
17157
|
+
}),
|
|
17031
17158
|
/**
|
|
17032
17159
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
17033
17160
|
* @summary Get payment status for polling (frontend)
|
|
@@ -17296,6 +17423,39 @@ export const PaymentGatewayApiFp = function (configuration) {
|
|
|
17296
17423
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17297
17424
|
});
|
|
17298
17425
|
},
|
|
17426
|
+
/**
|
|
17427
|
+
* Returns paginated orders for the authenticated user\'s organization
|
|
17428
|
+
* @summary List orders (paginated)
|
|
17429
|
+
* @param {number} [page] Page number (default 1)
|
|
17430
|
+
* @param {number} [pageSize] Page size (default 20, max 100)
|
|
17431
|
+
* @param {*} [options] Override http request option.
|
|
17432
|
+
* @throws {RequiredError}
|
|
17433
|
+
*/
|
|
17434
|
+
adminPaymentGatewayOrdersGet(page, pageSize, options) {
|
|
17435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17436
|
+
var _a, _b, _c;
|
|
17437
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersGet(page, pageSize, options);
|
|
17438
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17439
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17440
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17441
|
+
});
|
|
17442
|
+
},
|
|
17443
|
+
/**
|
|
17444
|
+
* Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
|
|
17445
|
+
* @summary Get single order details with transactions and invoice
|
|
17446
|
+
* @param {number} id Order ID
|
|
17447
|
+
* @param {*} [options] Override http request option.
|
|
17448
|
+
* @throws {RequiredError}
|
|
17449
|
+
*/
|
|
17450
|
+
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
17451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17452
|
+
var _a, _b, _c;
|
|
17453
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersIdGet(id, options);
|
|
17454
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17455
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17456
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17457
|
+
});
|
|
17458
|
+
},
|
|
17299
17459
|
/**
|
|
17300
17460
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
17301
17461
|
* @summary Get payment status for polling (frontend)
|
|
@@ -17445,6 +17605,27 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
|
|
|
17445
17605
|
adminPaymentGatewayGatewaysGet(options) {
|
|
17446
17606
|
return localVarFp.adminPaymentGatewayGatewaysGet(options).then((request) => request(axios, basePath));
|
|
17447
17607
|
},
|
|
17608
|
+
/**
|
|
17609
|
+
* Returns paginated orders for the authenticated user\'s organization
|
|
17610
|
+
* @summary List orders (paginated)
|
|
17611
|
+
* @param {number} [page] Page number (default 1)
|
|
17612
|
+
* @param {number} [pageSize] Page size (default 20, max 100)
|
|
17613
|
+
* @param {*} [options] Override http request option.
|
|
17614
|
+
* @throws {RequiredError}
|
|
17615
|
+
*/
|
|
17616
|
+
adminPaymentGatewayOrdersGet(page, pageSize, options) {
|
|
17617
|
+
return localVarFp.adminPaymentGatewayOrdersGet(page, pageSize, options).then((request) => request(axios, basePath));
|
|
17618
|
+
},
|
|
17619
|
+
/**
|
|
17620
|
+
* Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
|
|
17621
|
+
* @summary Get single order details with transactions and invoice
|
|
17622
|
+
* @param {number} id Order ID
|
|
17623
|
+
* @param {*} [options] Override http request option.
|
|
17624
|
+
* @throws {RequiredError}
|
|
17625
|
+
*/
|
|
17626
|
+
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
17627
|
+
return localVarFp.adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(axios, basePath));
|
|
17628
|
+
},
|
|
17448
17629
|
/**
|
|
17449
17630
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
17450
17631
|
* @summary Get payment status for polling (frontend)
|
|
@@ -17555,6 +17736,29 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
17555
17736
|
adminPaymentGatewayGatewaysGet(options) {
|
|
17556
17737
|
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayGatewaysGet(options).then((request) => request(this.axios, this.basePath));
|
|
17557
17738
|
}
|
|
17739
|
+
/**
|
|
17740
|
+
* Returns paginated orders for the authenticated user\'s organization
|
|
17741
|
+
* @summary List orders (paginated)
|
|
17742
|
+
* @param {number} [page] Page number (default 1)
|
|
17743
|
+
* @param {number} [pageSize] Page size (default 20, max 100)
|
|
17744
|
+
* @param {*} [options] Override http request option.
|
|
17745
|
+
* @throws {RequiredError}
|
|
17746
|
+
* @memberof PaymentGatewayApi
|
|
17747
|
+
*/
|
|
17748
|
+
adminPaymentGatewayOrdersGet(page, pageSize, options) {
|
|
17749
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
17750
|
+
}
|
|
17751
|
+
/**
|
|
17752
|
+
* Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
|
|
17753
|
+
* @summary Get single order details with transactions and invoice
|
|
17754
|
+
* @param {number} id Order ID
|
|
17755
|
+
* @param {*} [options] Override http request option.
|
|
17756
|
+
* @throws {RequiredError}
|
|
17757
|
+
* @memberof PaymentGatewayApi
|
|
17758
|
+
*/
|
|
17759
|
+
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
17760
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
17761
|
+
}
|
|
17558
17762
|
/**
|
|
17559
17763
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
17560
17764
|
* @summary Get payment status for polling (frontend)
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|