@seekora-ai/admin-api 1.2.3 → 1.2.4
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 +7 -4
- package/api.ts +197 -20
- package/dist/api.d.ts +111 -8
- package/dist/api.js +157 -20
- package/dist/esm/api.d.ts +111 -8
- package/dist/esm/api.js +157 -20
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.4.tgz +0 -0
- package/seekora-ai-admin-api-1.2.3.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -18294,10 +18294,10 @@ const BillingUserPaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
18294
18294
|
* @param {*} [options] Override http request option.
|
|
18295
18295
|
* @throws {RequiredError}
|
|
18296
18296
|
*/
|
|
18297
|
-
|
|
18297
|
+
adminBillingPaymentsRetryPost: (billingServiceRetryPaymentRequest_1, ...args_1) => __awaiter(this, [billingServiceRetryPaymentRequest_1, ...args_1], void 0, function* (billingServiceRetryPaymentRequest, options = {}) {
|
|
18298
18298
|
// verify required parameter 'billingServiceRetryPaymentRequest' is not null or undefined
|
|
18299
|
-
(0, common_1.assertParamExists)('
|
|
18300
|
-
const localVarPath = `/
|
|
18299
|
+
(0, common_1.assertParamExists)('adminBillingPaymentsRetryPost', 'billingServiceRetryPaymentRequest', billingServiceRetryPaymentRequest);
|
|
18300
|
+
const localVarPath = `/admin/billing/payments/retry`;
|
|
18301
18301
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18302
18302
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18303
18303
|
let baseOptions;
|
|
@@ -18326,10 +18326,10 @@ const BillingUserPaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
18326
18326
|
* @param {*} [options] Override http request option.
|
|
18327
18327
|
* @throws {RequiredError}
|
|
18328
18328
|
*/
|
|
18329
|
-
|
|
18329
|
+
adminBillingSubscriptionsIdPaymentStatusGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
18330
18330
|
// verify required parameter 'id' is not null or undefined
|
|
18331
|
-
(0, common_1.assertParamExists)('
|
|
18332
|
-
const localVarPath = `/
|
|
18331
|
+
(0, common_1.assertParamExists)('adminBillingSubscriptionsIdPaymentStatusGet', 'id', id);
|
|
18332
|
+
const localVarPath = `/admin/billing/subscriptions/{id}/payment-status`
|
|
18333
18333
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18334
18334
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18335
18335
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -18367,12 +18367,12 @@ const BillingUserPaymentsApiFp = function (configuration) {
|
|
|
18367
18367
|
* @param {*} [options] Override http request option.
|
|
18368
18368
|
* @throws {RequiredError}
|
|
18369
18369
|
*/
|
|
18370
|
-
|
|
18370
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
|
|
18371
18371
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18372
18372
|
var _a, _b, _c;
|
|
18373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
18373
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options);
|
|
18374
18374
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18375
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.
|
|
18375
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.adminBillingPaymentsRetryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18376
18376
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18377
18377
|
});
|
|
18378
18378
|
},
|
|
@@ -18383,12 +18383,12 @@ const BillingUserPaymentsApiFp = function (configuration) {
|
|
|
18383
18383
|
* @param {*} [options] Override http request option.
|
|
18384
18384
|
* @throws {RequiredError}
|
|
18385
18385
|
*/
|
|
18386
|
-
|
|
18386
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
|
|
18387
18387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18388
18388
|
var _a, _b, _c;
|
|
18389
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
18389
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSubscriptionsIdPaymentStatusGet(id, options);
|
|
18390
18390
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18391
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.
|
|
18391
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.adminBillingSubscriptionsIdPaymentStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18392
18392
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18393
18393
|
});
|
|
18394
18394
|
},
|
|
@@ -18409,8 +18409,8 @@ const BillingUserPaymentsApiFactory = function (configuration, basePath, axios)
|
|
|
18409
18409
|
* @param {*} [options] Override http request option.
|
|
18410
18410
|
* @throws {RequiredError}
|
|
18411
18411
|
*/
|
|
18412
|
-
|
|
18413
|
-
return localVarFp.
|
|
18412
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
|
|
18413
|
+
return localVarFp.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(axios, basePath));
|
|
18414
18414
|
},
|
|
18415
18415
|
/**
|
|
18416
18416
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
@@ -18419,8 +18419,8 @@ const BillingUserPaymentsApiFactory = function (configuration, basePath, axios)
|
|
|
18419
18419
|
* @param {*} [options] Override http request option.
|
|
18420
18420
|
* @throws {RequiredError}
|
|
18421
18421
|
*/
|
|
18422
|
-
|
|
18423
|
-
return localVarFp.
|
|
18422
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
|
|
18423
|
+
return localVarFp.adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(axios, basePath));
|
|
18424
18424
|
},
|
|
18425
18425
|
};
|
|
18426
18426
|
};
|
|
@@ -18440,8 +18440,8 @@ class BillingUserPaymentsApi extends base_1.BaseAPI {
|
|
|
18440
18440
|
* @throws {RequiredError}
|
|
18441
18441
|
* @memberof BillingUserPaymentsApi
|
|
18442
18442
|
*/
|
|
18443
|
-
|
|
18444
|
-
return (0, exports.BillingUserPaymentsApiFp)(this.configuration).
|
|
18443
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
|
|
18444
|
+
return (0, exports.BillingUserPaymentsApiFp)(this.configuration).adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18445
18445
|
}
|
|
18446
18446
|
/**
|
|
18447
18447
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
@@ -18451,8 +18451,8 @@ class BillingUserPaymentsApi extends base_1.BaseAPI {
|
|
|
18451
18451
|
* @throws {RequiredError}
|
|
18452
18452
|
* @memberof BillingUserPaymentsApi
|
|
18453
18453
|
*/
|
|
18454
|
-
|
|
18455
|
-
return (0, exports.BillingUserPaymentsApiFp)(this.configuration).
|
|
18454
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
|
|
18455
|
+
return (0, exports.BillingUserPaymentsApiFp)(this.configuration).adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
18456
18456
|
}
|
|
18457
18457
|
}
|
|
18458
18458
|
exports.BillingUserPaymentsApi = BillingUserPaymentsApi;
|
|
@@ -35900,6 +35900,37 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
35900
35900
|
options: localVarRequestOptions,
|
|
35901
35901
|
};
|
|
35902
35902
|
}),
|
|
35903
|
+
/**
|
|
35904
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
35905
|
+
* @summary Get order retry payment info
|
|
35906
|
+
* @param {string} id Order UUID
|
|
35907
|
+
* @param {*} [options] Override http request option.
|
|
35908
|
+
* @throws {RequiredError}
|
|
35909
|
+
*/
|
|
35910
|
+
adminPaymentGatewayOrdersIdRetryInfoGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
35911
|
+
// verify required parameter 'id' is not null or undefined
|
|
35912
|
+
(0, common_1.assertParamExists)('adminPaymentGatewayOrdersIdRetryInfoGet', 'id', id);
|
|
35913
|
+
const localVarPath = `/admin/payment-gateway/orders/{id}/retry-info`
|
|
35914
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
35915
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35916
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
35917
|
+
let baseOptions;
|
|
35918
|
+
if (configuration) {
|
|
35919
|
+
baseOptions = configuration.baseOptions;
|
|
35920
|
+
}
|
|
35921
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
35922
|
+
const localVarHeaderParameter = {};
|
|
35923
|
+
const localVarQueryParameter = {};
|
|
35924
|
+
// authentication BearerAuth required
|
|
35925
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
35926
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
35927
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35928
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35929
|
+
return {
|
|
35930
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
35931
|
+
options: localVarRequestOptions,
|
|
35932
|
+
};
|
|
35933
|
+
}),
|
|
35903
35934
|
/**
|
|
35904
35935
|
* 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.
|
|
35905
35936
|
* @summary Get payment status for polling (frontend)
|
|
@@ -36246,6 +36277,22 @@ const PaymentGatewayApiFp = function (configuration) {
|
|
|
36246
36277
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36247
36278
|
});
|
|
36248
36279
|
},
|
|
36280
|
+
/**
|
|
36281
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
36282
|
+
* @summary Get order retry payment info
|
|
36283
|
+
* @param {string} id Order UUID
|
|
36284
|
+
* @param {*} [options] Override http request option.
|
|
36285
|
+
* @throws {RequiredError}
|
|
36286
|
+
*/
|
|
36287
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
|
|
36288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36289
|
+
var _a, _b, _c;
|
|
36290
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersIdRetryInfoGet(id, options);
|
|
36291
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36292
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersIdRetryInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36293
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36294
|
+
});
|
|
36295
|
+
},
|
|
36249
36296
|
/**
|
|
36250
36297
|
* 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.
|
|
36251
36298
|
* @summary Get payment status for polling (frontend)
|
|
@@ -36445,6 +36492,16 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
|
|
|
36445
36492
|
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
36446
36493
|
return localVarFp.adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(axios, basePath));
|
|
36447
36494
|
},
|
|
36495
|
+
/**
|
|
36496
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
36497
|
+
* @summary Get order retry payment info
|
|
36498
|
+
* @param {string} id Order UUID
|
|
36499
|
+
* @param {*} [options] Override http request option.
|
|
36500
|
+
* @throws {RequiredError}
|
|
36501
|
+
*/
|
|
36502
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
|
|
36503
|
+
return localVarFp.adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(axios, basePath));
|
|
36504
|
+
},
|
|
36448
36505
|
/**
|
|
36449
36506
|
* 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.
|
|
36450
36507
|
* @summary Get payment status for polling (frontend)
|
|
@@ -36601,6 +36658,17 @@ class PaymentGatewayApi extends base_1.BaseAPI {
|
|
|
36601
36658
|
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
36602
36659
|
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
36603
36660
|
}
|
|
36661
|
+
/**
|
|
36662
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
36663
|
+
* @summary Get order retry payment info
|
|
36664
|
+
* @param {string} id Order UUID
|
|
36665
|
+
* @param {*} [options] Override http request option.
|
|
36666
|
+
* @throws {RequiredError}
|
|
36667
|
+
* @memberof PaymentGatewayApi
|
|
36668
|
+
*/
|
|
36669
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
|
|
36670
|
+
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
36671
|
+
}
|
|
36604
36672
|
/**
|
|
36605
36673
|
* 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.
|
|
36606
36674
|
* @summary Get payment status for polling (frontend)
|
|
@@ -50554,6 +50622,38 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
50554
50622
|
options: localVarRequestOptions,
|
|
50555
50623
|
};
|
|
50556
50624
|
}),
|
|
50625
|
+
/**
|
|
50626
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
50627
|
+
* @summary Preview plan change details
|
|
50628
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
50629
|
+
* @param {*} [options] Override http request option.
|
|
50630
|
+
* @throws {RequiredError}
|
|
50631
|
+
*/
|
|
50632
|
+
adminSubscriptionsPlanChangePreviewPost: (subscriptionRoutePlanChangePreviewHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRoutePlanChangePreviewHTTPRequest_1, ...args_1], void 0, function* (subscriptionRoutePlanChangePreviewHTTPRequest, options = {}) {
|
|
50633
|
+
// verify required parameter 'subscriptionRoutePlanChangePreviewHTTPRequest' is not null or undefined
|
|
50634
|
+
(0, common_1.assertParamExists)('adminSubscriptionsPlanChangePreviewPost', 'subscriptionRoutePlanChangePreviewHTTPRequest', subscriptionRoutePlanChangePreviewHTTPRequest);
|
|
50635
|
+
const localVarPath = `/admin/subscriptions/plan-change/preview`;
|
|
50636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50637
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50638
|
+
let baseOptions;
|
|
50639
|
+
if (configuration) {
|
|
50640
|
+
baseOptions = configuration.baseOptions;
|
|
50641
|
+
}
|
|
50642
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50643
|
+
const localVarHeaderParameter = {};
|
|
50644
|
+
const localVarQueryParameter = {};
|
|
50645
|
+
// authentication BearerAuth required
|
|
50646
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
50647
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50648
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
50649
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50650
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50651
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionRoutePlanChangePreviewHTTPRequest, localVarRequestOptions, configuration);
|
|
50652
|
+
return {
|
|
50653
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
50654
|
+
options: localVarRequestOptions,
|
|
50655
|
+
};
|
|
50656
|
+
}),
|
|
50557
50657
|
/**
|
|
50558
50658
|
* Updates Subscription information by ID.
|
|
50559
50659
|
* @summary Update an existing Subscription
|
|
@@ -50757,6 +50857,22 @@ const SubscriptionsApiFp = function (configuration) {
|
|
|
50757
50857
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50758
50858
|
});
|
|
50759
50859
|
},
|
|
50860
|
+
/**
|
|
50861
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
50862
|
+
* @summary Preview plan change details
|
|
50863
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
50864
|
+
* @param {*} [options] Override http request option.
|
|
50865
|
+
* @throws {RequiredError}
|
|
50866
|
+
*/
|
|
50867
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50869
|
+
var _a, _b, _c;
|
|
50870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options);
|
|
50871
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50872
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangePreviewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50873
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50874
|
+
});
|
|
50875
|
+
},
|
|
50760
50876
|
/**
|
|
50761
50877
|
* Updates Subscription information by ID.
|
|
50762
50878
|
* @summary Update an existing Subscription
|
|
@@ -50868,6 +50984,16 @@ const SubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
50868
50984
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50869
50985
|
return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
|
|
50870
50986
|
},
|
|
50987
|
+
/**
|
|
50988
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
50989
|
+
* @summary Preview plan change details
|
|
50990
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
50991
|
+
* @param {*} [options] Override http request option.
|
|
50992
|
+
* @throws {RequiredError}
|
|
50993
|
+
*/
|
|
50994
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50995
|
+
return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
|
|
50996
|
+
},
|
|
50871
50997
|
/**
|
|
50872
50998
|
* Updates Subscription information by ID.
|
|
50873
50999
|
* @summary Update an existing Subscription
|
|
@@ -50951,6 +51077,17 @@ class SubscriptionsApi extends base_1.BaseAPI {
|
|
|
50951
51077
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50952
51078
|
return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50953
51079
|
}
|
|
51080
|
+
/**
|
|
51081
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
51082
|
+
* @summary Preview plan change details
|
|
51083
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
51084
|
+
* @param {*} [options] Override http request option.
|
|
51085
|
+
* @throws {RequiredError}
|
|
51086
|
+
* @memberof SubscriptionsApi
|
|
51087
|
+
*/
|
|
51088
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
51089
|
+
return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51090
|
+
}
|
|
50954
51091
|
/**
|
|
50955
51092
|
* Updates Subscription information by ID.
|
|
50956
51093
|
* @summary Update an existing Subscription
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -40506,6 +40506,37 @@ export interface SubscriptionRouteCancelProcessRequest {
|
|
|
40506
40506
|
*/
|
|
40507
40507
|
'subscription_id'?: string;
|
|
40508
40508
|
}
|
|
40509
|
+
/**
|
|
40510
|
+
*
|
|
40511
|
+
* @export
|
|
40512
|
+
* @interface SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40513
|
+
*/
|
|
40514
|
+
export interface SubscriptionRoutePlanChangePreviewHTTPRequest {
|
|
40515
|
+
/**
|
|
40516
|
+
*
|
|
40517
|
+
* @type {string}
|
|
40518
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40519
|
+
*/
|
|
40520
|
+
'billing_cycle'?: string;
|
|
40521
|
+
/**
|
|
40522
|
+
*
|
|
40523
|
+
* @type {string}
|
|
40524
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40525
|
+
*/
|
|
40526
|
+
'currency'?: string;
|
|
40527
|
+
/**
|
|
40528
|
+
*
|
|
40529
|
+
* @type {number}
|
|
40530
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40531
|
+
*/
|
|
40532
|
+
'new_plan_id'?: number;
|
|
40533
|
+
/**
|
|
40534
|
+
*
|
|
40535
|
+
* @type {string}
|
|
40536
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40537
|
+
*/
|
|
40538
|
+
'new_plan_identifier'?: string;
|
|
40539
|
+
}
|
|
40509
40540
|
/**
|
|
40510
40541
|
*
|
|
40511
40542
|
* @export
|
|
@@ -50235,7 +50266,7 @@ export declare const BillingUserPaymentsApiAxiosParamCreator: (configuration?: C
|
|
|
50235
50266
|
* @param {*} [options] Override http request option.
|
|
50236
50267
|
* @throws {RequiredError}
|
|
50237
50268
|
*/
|
|
50238
|
-
|
|
50269
|
+
adminBillingPaymentsRetryPost: (billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
50239
50270
|
/**
|
|
50240
50271
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
50241
50272
|
* @summary Get payment status for a subscription
|
|
@@ -50243,7 +50274,7 @@ export declare const BillingUserPaymentsApiAxiosParamCreator: (configuration?: C
|
|
|
50243
50274
|
* @param {*} [options] Override http request option.
|
|
50244
50275
|
* @throws {RequiredError}
|
|
50245
50276
|
*/
|
|
50246
|
-
|
|
50277
|
+
adminBillingSubscriptionsIdPaymentStatusGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
50247
50278
|
};
|
|
50248
50279
|
/**
|
|
50249
50280
|
* BillingUserPaymentsApi - functional programming interface
|
|
@@ -50257,7 +50288,7 @@ export declare const BillingUserPaymentsApiFp: (configuration?: Configuration) =
|
|
|
50257
50288
|
* @param {*} [options] Override http request option.
|
|
50258
50289
|
* @throws {RequiredError}
|
|
50259
50290
|
*/
|
|
50260
|
-
|
|
50291
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingServiceRetryPaymentResponse>>;
|
|
50261
50292
|
/**
|
|
50262
50293
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
50263
50294
|
* @summary Get payment status for a subscription
|
|
@@ -50265,7 +50296,7 @@ export declare const BillingUserPaymentsApiFp: (configuration?: Configuration) =
|
|
|
50265
50296
|
* @param {*} [options] Override http request option.
|
|
50266
50297
|
* @throws {RequiredError}
|
|
50267
50298
|
*/
|
|
50268
|
-
|
|
50299
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingServicePaymentStatusResponse>>;
|
|
50269
50300
|
};
|
|
50270
50301
|
/**
|
|
50271
50302
|
* BillingUserPaymentsApi - factory interface
|
|
@@ -50279,7 +50310,7 @@ export declare const BillingUserPaymentsApiFactory: (configuration?: Configurati
|
|
|
50279
50310
|
* @param {*} [options] Override http request option.
|
|
50280
50311
|
* @throws {RequiredError}
|
|
50281
50312
|
*/
|
|
50282
|
-
|
|
50313
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingServiceRetryPaymentResponse>;
|
|
50283
50314
|
/**
|
|
50284
50315
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
50285
50316
|
* @summary Get payment status for a subscription
|
|
@@ -50287,7 +50318,7 @@ export declare const BillingUserPaymentsApiFactory: (configuration?: Configurati
|
|
|
50287
50318
|
* @param {*} [options] Override http request option.
|
|
50288
50319
|
* @throws {RequiredError}
|
|
50289
50320
|
*/
|
|
50290
|
-
|
|
50321
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingServicePaymentStatusResponse>;
|
|
50291
50322
|
};
|
|
50292
50323
|
/**
|
|
50293
50324
|
* BillingUserPaymentsApi - object-oriented interface
|
|
@@ -50304,7 +50335,7 @@ export declare class BillingUserPaymentsApi extends BaseAPI {
|
|
|
50304
50335
|
* @throws {RequiredError}
|
|
50305
50336
|
* @memberof BillingUserPaymentsApi
|
|
50306
50337
|
*/
|
|
50307
|
-
|
|
50338
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingServiceRetryPaymentResponse, any, {}>>;
|
|
50308
50339
|
/**
|
|
50309
50340
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
50310
50341
|
* @summary Get payment status for a subscription
|
|
@@ -50313,7 +50344,7 @@ export declare class BillingUserPaymentsApi extends BaseAPI {
|
|
|
50313
50344
|
* @throws {RequiredError}
|
|
50314
50345
|
* @memberof BillingUserPaymentsApi
|
|
50315
50346
|
*/
|
|
50316
|
-
|
|
50347
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingServicePaymentStatusResponse, any, {}>>;
|
|
50317
50348
|
}
|
|
50318
50349
|
/**
|
|
50319
50350
|
* CommonApi - axios parameter creator
|
|
@@ -59461,6 +59492,14 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
|
|
|
59461
59492
|
* @throws {RequiredError}
|
|
59462
59493
|
*/
|
|
59463
59494
|
adminPaymentGatewayOrdersIdGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
59495
|
+
/**
|
|
59496
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
59497
|
+
* @summary Get order retry payment info
|
|
59498
|
+
* @param {string} id Order UUID
|
|
59499
|
+
* @param {*} [options] Override http request option.
|
|
59500
|
+
* @throws {RequiredError}
|
|
59501
|
+
*/
|
|
59502
|
+
adminPaymentGatewayOrdersIdRetryInfoGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
59464
59503
|
/**
|
|
59465
59504
|
* 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.
|
|
59466
59505
|
* @summary Get payment status for polling (frontend)
|
|
@@ -59582,6 +59621,16 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
|
|
|
59582
59621
|
* @throws {RequiredError}
|
|
59583
59622
|
*/
|
|
59584
59623
|
adminPaymentGatewayOrdersIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOrderDetailsResponse>>;
|
|
59624
|
+
/**
|
|
59625
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
59626
|
+
* @summary Get order retry payment info
|
|
59627
|
+
* @param {string} id Order UUID
|
|
59628
|
+
* @param {*} [options] Override http request option.
|
|
59629
|
+
* @throws {RequiredError}
|
|
59630
|
+
*/
|
|
59631
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
59632
|
+
[key: string]: any;
|
|
59633
|
+
}>>;
|
|
59585
59634
|
/**
|
|
59586
59635
|
* 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.
|
|
59587
59636
|
* @summary Get payment status for polling (frontend)
|
|
@@ -59707,6 +59756,16 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
|
|
|
59707
59756
|
* @throws {RequiredError}
|
|
59708
59757
|
*/
|
|
59709
59758
|
adminPaymentGatewayOrdersIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOrderDetailsResponse>;
|
|
59759
|
+
/**
|
|
59760
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
59761
|
+
* @summary Get order retry payment info
|
|
59762
|
+
* @param {string} id Order UUID
|
|
59763
|
+
* @param {*} [options] Override http request option.
|
|
59764
|
+
* @throws {RequiredError}
|
|
59765
|
+
*/
|
|
59766
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
59767
|
+
[key: string]: any;
|
|
59768
|
+
}>;
|
|
59710
59769
|
/**
|
|
59711
59770
|
* 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.
|
|
59712
59771
|
* @summary Get payment status for polling (frontend)
|
|
@@ -59839,6 +59898,17 @@ export declare class PaymentGatewayApi extends BaseAPI {
|
|
|
59839
59898
|
* @memberof PaymentGatewayApi
|
|
59840
59899
|
*/
|
|
59841
59900
|
adminPaymentGatewayOrdersIdGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesOrderDetailsResponse, any, {}>>;
|
|
59901
|
+
/**
|
|
59902
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
59903
|
+
* @summary Get order retry payment info
|
|
59904
|
+
* @param {string} id Order UUID
|
|
59905
|
+
* @param {*} [options] Override http request option.
|
|
59906
|
+
* @throws {RequiredError}
|
|
59907
|
+
* @memberof PaymentGatewayApi
|
|
59908
|
+
*/
|
|
59909
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
59910
|
+
[key: string]: any;
|
|
59911
|
+
}, any, {}>>;
|
|
59842
59912
|
/**
|
|
59843
59913
|
* 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.
|
|
59844
59914
|
* @summary Get payment status for polling (frontend)
|
|
@@ -66844,6 +66914,14 @@ export declare const SubscriptionsApiAxiosParamCreator: (configuration?: Configu
|
|
|
66844
66914
|
* @throws {RequiredError}
|
|
66845
66915
|
*/
|
|
66846
66916
|
adminSubscriptionsCancelProcessPost: (subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
66917
|
+
/**
|
|
66918
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
66919
|
+
* @summary Preview plan change details
|
|
66920
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
66921
|
+
* @param {*} [options] Override http request option.
|
|
66922
|
+
* @throws {RequiredError}
|
|
66923
|
+
*/
|
|
66924
|
+
adminSubscriptionsPlanChangePreviewPost: (subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
66847
66925
|
/**
|
|
66848
66926
|
* Updates Subscription information by ID.
|
|
66849
66927
|
* @summary Update an existing Subscription
|
|
@@ -66907,6 +66985,14 @@ export declare const SubscriptionsApiFp: (configuration?: Configuration) => {
|
|
|
66907
66985
|
* @throws {RequiredError}
|
|
66908
66986
|
*/
|
|
66909
66987
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
66988
|
+
/**
|
|
66989
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
66990
|
+
* @summary Preview plan change details
|
|
66991
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
66992
|
+
* @param {*} [options] Override http request option.
|
|
66993
|
+
* @throws {RequiredError}
|
|
66994
|
+
*/
|
|
66995
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
66910
66996
|
/**
|
|
66911
66997
|
* Updates Subscription information by ID.
|
|
66912
66998
|
* @summary Update an existing Subscription
|
|
@@ -66970,6 +67056,14 @@ export declare const SubscriptionsApiFactory: (configuration?: Configuration, ba
|
|
|
66970
67056
|
* @throws {RequiredError}
|
|
66971
67057
|
*/
|
|
66972
67058
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
67059
|
+
/**
|
|
67060
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
67061
|
+
* @summary Preview plan change details
|
|
67062
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
67063
|
+
* @param {*} [options] Override http request option.
|
|
67064
|
+
* @throws {RequiredError}
|
|
67065
|
+
*/
|
|
67066
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
66973
67067
|
/**
|
|
66974
67068
|
* Updates Subscription information by ID.
|
|
66975
67069
|
* @summary Update an existing Subscription
|
|
@@ -67037,6 +67131,15 @@ export declare class SubscriptionsApi extends BaseAPI {
|
|
|
67037
67131
|
* @memberof SubscriptionsApi
|
|
67038
67132
|
*/
|
|
67039
67133
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
67134
|
+
/**
|
|
67135
|
+
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
67136
|
+
* @summary Preview plan change details
|
|
67137
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
67138
|
+
* @param {*} [options] Override http request option.
|
|
67139
|
+
* @throws {RequiredError}
|
|
67140
|
+
* @memberof SubscriptionsApi
|
|
67141
|
+
*/
|
|
67142
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
67040
67143
|
/**
|
|
67041
67144
|
* Updates Subscription information by ID.
|
|
67042
67145
|
* @summary Update an existing Subscription
|