@seekora-ai/admin-api 1.1.72 → 1.1.74

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/dist/esm/api.js CHANGED
@@ -11338,6 +11338,101 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
11338
11338
  options: localVarRequestOptions,
11339
11339
  };
11340
11340
  }),
11341
+ /**
11342
+ * Calculates and previews how credits would be handled when changing from current plan to a new plan
11343
+ * @summary Preview credit proration for plan change
11344
+ * @param {number} toPlanId Target plan ID
11345
+ * @param {*} [options] Override http request option.
11346
+ * @throws {RequiredError}
11347
+ */
11348
+ apiAdminBillingCreditProrationPreviewGet: (toPlanId_1, ...args_1) => __awaiter(this, [toPlanId_1, ...args_1], void 0, function* (toPlanId, options = {}) {
11349
+ // verify required parameter 'toPlanId' is not null or undefined
11350
+ assertParamExists('apiAdminBillingCreditProrationPreviewGet', 'toPlanId', toPlanId);
11351
+ const localVarPath = `/api/admin/billing/credit-proration-preview`;
11352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11354
+ let baseOptions;
11355
+ if (configuration) {
11356
+ baseOptions = configuration.baseOptions;
11357
+ }
11358
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11359
+ const localVarHeaderParameter = {};
11360
+ const localVarQueryParameter = {};
11361
+ // authentication BearerAuth required
11362
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11363
+ if (toPlanId !== undefined) {
11364
+ localVarQueryParameter['to_plan_id'] = toPlanId;
11365
+ }
11366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11368
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11369
+ return {
11370
+ url: toPathString(localVarUrlObj),
11371
+ options: localVarRequestOptions,
11372
+ };
11373
+ }),
11374
+ /**
11375
+ * Retrieves a list of all subscription plan changes (upgrades/downgrades) with credit proration details
11376
+ * @summary Get subscription plan change history
11377
+ * @param {number} [limit] Number of results per page (default 20)
11378
+ * @param {number} [offset] Offset for pagination (default 0)
11379
+ * @param {*} [options] Override http request option.
11380
+ * @throws {RequiredError}
11381
+ */
11382
+ apiAdminBillingSubscriptionChangesGet: (limit_1, offset_1, ...args_1) => __awaiter(this, [limit_1, offset_1, ...args_1], void 0, function* (limit, offset, options = {}) {
11383
+ const localVarPath = `/api/admin/billing/subscription-changes`;
11384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11386
+ let baseOptions;
11387
+ if (configuration) {
11388
+ baseOptions = configuration.baseOptions;
11389
+ }
11390
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11391
+ const localVarHeaderParameter = {};
11392
+ const localVarQueryParameter = {};
11393
+ // authentication BearerAuth required
11394
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11395
+ if (limit !== undefined) {
11396
+ localVarQueryParameter['limit'] = limit;
11397
+ }
11398
+ if (offset !== undefined) {
11399
+ localVarQueryParameter['offset'] = offset;
11400
+ }
11401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11403
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11404
+ return {
11405
+ url: toPathString(localVarUrlObj),
11406
+ options: localVarRequestOptions,
11407
+ };
11408
+ }),
11409
+ /**
11410
+ * Checks if the organization is eligible for a trial subscription (one trial per organization rule)
11411
+ * @summary Check trial eligibility
11412
+ * @param {*} [options] Override http request option.
11413
+ * @throws {RequiredError}
11414
+ */
11415
+ apiAdminBillingTrialEligibilityGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11416
+ const localVarPath = `/api/admin/billing/trial-eligibility`;
11417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11419
+ let baseOptions;
11420
+ if (configuration) {
11421
+ baseOptions = configuration.baseOptions;
11422
+ }
11423
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11424
+ const localVarHeaderParameter = {};
11425
+ const localVarQueryParameter = {};
11426
+ // authentication BearerAuth required
11427
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11428
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11430
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11431
+ return {
11432
+ url: toPathString(localVarUrlObj),
11433
+ options: localVarRequestOptions,
11434
+ };
11435
+ }),
11341
11436
  };
11342
11437
  };
11343
11438
  /**
@@ -11967,6 +12062,54 @@ export const BillingDashboardApiFp = function (configuration) {
11967
12062
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11968
12063
  });
11969
12064
  },
12065
+ /**
12066
+ * Calculates and previews how credits would be handled when changing from current plan to a new plan
12067
+ * @summary Preview credit proration for plan change
12068
+ * @param {number} toPlanId Target plan ID
12069
+ * @param {*} [options] Override http request option.
12070
+ * @throws {RequiredError}
12071
+ */
12072
+ apiAdminBillingCreditProrationPreviewGet(toPlanId, options) {
12073
+ return __awaiter(this, void 0, void 0, function* () {
12074
+ var _a, _b, _c;
12075
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminBillingCreditProrationPreviewGet(toPlanId, options);
12076
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12077
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.apiAdminBillingCreditProrationPreviewGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12078
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12079
+ });
12080
+ },
12081
+ /**
12082
+ * Retrieves a list of all subscription plan changes (upgrades/downgrades) with credit proration details
12083
+ * @summary Get subscription plan change history
12084
+ * @param {number} [limit] Number of results per page (default 20)
12085
+ * @param {number} [offset] Offset for pagination (default 0)
12086
+ * @param {*} [options] Override http request option.
12087
+ * @throws {RequiredError}
12088
+ */
12089
+ apiAdminBillingSubscriptionChangesGet(limit, offset, options) {
12090
+ return __awaiter(this, void 0, void 0, function* () {
12091
+ var _a, _b, _c;
12092
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminBillingSubscriptionChangesGet(limit, offset, options);
12093
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12094
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.apiAdminBillingSubscriptionChangesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12095
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12096
+ });
12097
+ },
12098
+ /**
12099
+ * Checks if the organization is eligible for a trial subscription (one trial per organization rule)
12100
+ * @summary Check trial eligibility
12101
+ * @param {*} [options] Override http request option.
12102
+ * @throws {RequiredError}
12103
+ */
12104
+ apiAdminBillingTrialEligibilityGet(options) {
12105
+ return __awaiter(this, void 0, void 0, function* () {
12106
+ var _a, _b, _c;
12107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminBillingTrialEligibilityGet(options);
12108
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12109
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.apiAdminBillingTrialEligibilityGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12110
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12111
+ });
12112
+ },
11970
12113
  };
11971
12114
  };
11972
12115
  /**
@@ -12392,6 +12535,36 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
12392
12535
  apiAdminBillingCancelledSubscriptionsGet(options) {
12393
12536
  return localVarFp.apiAdminBillingCancelledSubscriptionsGet(options).then((request) => request(axios, basePath));
12394
12537
  },
12538
+ /**
12539
+ * Calculates and previews how credits would be handled when changing from current plan to a new plan
12540
+ * @summary Preview credit proration for plan change
12541
+ * @param {number} toPlanId Target plan ID
12542
+ * @param {*} [options] Override http request option.
12543
+ * @throws {RequiredError}
12544
+ */
12545
+ apiAdminBillingCreditProrationPreviewGet(toPlanId, options) {
12546
+ return localVarFp.apiAdminBillingCreditProrationPreviewGet(toPlanId, options).then((request) => request(axios, basePath));
12547
+ },
12548
+ /**
12549
+ * Retrieves a list of all subscription plan changes (upgrades/downgrades) with credit proration details
12550
+ * @summary Get subscription plan change history
12551
+ * @param {number} [limit] Number of results per page (default 20)
12552
+ * @param {number} [offset] Offset for pagination (default 0)
12553
+ * @param {*} [options] Override http request option.
12554
+ * @throws {RequiredError}
12555
+ */
12556
+ apiAdminBillingSubscriptionChangesGet(limit, offset, options) {
12557
+ return localVarFp.apiAdminBillingSubscriptionChangesGet(limit, offset, options).then((request) => request(axios, basePath));
12558
+ },
12559
+ /**
12560
+ * Checks if the organization is eligible for a trial subscription (one trial per organization rule)
12561
+ * @summary Check trial eligibility
12562
+ * @param {*} [options] Override http request option.
12563
+ * @throws {RequiredError}
12564
+ */
12565
+ apiAdminBillingTrialEligibilityGet(options) {
12566
+ return localVarFp.apiAdminBillingTrialEligibilityGet(options).then((request) => request(axios, basePath));
12567
+ },
12395
12568
  };
12396
12569
  };
12397
12570
  /**
@@ -12851,6 +13024,39 @@ export class BillingDashboardApi extends BaseAPI {
12851
13024
  apiAdminBillingCancelledSubscriptionsGet(options) {
12852
13025
  return BillingDashboardApiFp(this.configuration).apiAdminBillingCancelledSubscriptionsGet(options).then((request) => request(this.axios, this.basePath));
12853
13026
  }
13027
+ /**
13028
+ * Calculates and previews how credits would be handled when changing from current plan to a new plan
13029
+ * @summary Preview credit proration for plan change
13030
+ * @param {number} toPlanId Target plan ID
13031
+ * @param {*} [options] Override http request option.
13032
+ * @throws {RequiredError}
13033
+ * @memberof BillingDashboardApi
13034
+ */
13035
+ apiAdminBillingCreditProrationPreviewGet(toPlanId, options) {
13036
+ return BillingDashboardApiFp(this.configuration).apiAdminBillingCreditProrationPreviewGet(toPlanId, options).then((request) => request(this.axios, this.basePath));
13037
+ }
13038
+ /**
13039
+ * Retrieves a list of all subscription plan changes (upgrades/downgrades) with credit proration details
13040
+ * @summary Get subscription plan change history
13041
+ * @param {number} [limit] Number of results per page (default 20)
13042
+ * @param {number} [offset] Offset for pagination (default 0)
13043
+ * @param {*} [options] Override http request option.
13044
+ * @throws {RequiredError}
13045
+ * @memberof BillingDashboardApi
13046
+ */
13047
+ apiAdminBillingSubscriptionChangesGet(limit, offset, options) {
13048
+ return BillingDashboardApiFp(this.configuration).apiAdminBillingSubscriptionChangesGet(limit, offset, options).then((request) => request(this.axios, this.basePath));
13049
+ }
13050
+ /**
13051
+ * Checks if the organization is eligible for a trial subscription (one trial per organization rule)
13052
+ * @summary Check trial eligibility
13053
+ * @param {*} [options] Override http request option.
13054
+ * @throws {RequiredError}
13055
+ * @memberof BillingDashboardApi
13056
+ */
13057
+ apiAdminBillingTrialEligibilityGet(options) {
13058
+ return BillingDashboardApiFp(this.configuration).apiAdminBillingTrialEligibilityGet(options).then((request) => request(this.axios, this.basePath));
13059
+ }
12854
13060
  }
12855
13061
  /**
12856
13062
  * @export
@@ -13441,6 +13647,177 @@ export const AdminBillingGraphsUsageBreakdownGetGranularityEnum = {
13441
13647
  Week: 'week',
13442
13648
  Month: 'month'
13443
13649
  };
13650
+ /**
13651
+ * BillingUserPaymentsApi - axios parameter creator
13652
+ * @export
13653
+ */
13654
+ export const BillingUserPaymentsApiAxiosParamCreator = function (configuration) {
13655
+ return {
13656
+ /**
13657
+ * Allows user to retry a failed payment for their subscription
13658
+ * @summary Retry a failed subscription payment
13659
+ * @param {BillingServiceRetryPaymentRequest} billingServiceRetryPaymentRequest Retry payment request
13660
+ * @param {*} [options] Override http request option.
13661
+ * @throws {RequiredError}
13662
+ */
13663
+ apiBillingPaymentsRetryPost: (billingServiceRetryPaymentRequest_1, ...args_1) => __awaiter(this, [billingServiceRetryPaymentRequest_1, ...args_1], void 0, function* (billingServiceRetryPaymentRequest, options = {}) {
13664
+ // verify required parameter 'billingServiceRetryPaymentRequest' is not null or undefined
13665
+ assertParamExists('apiBillingPaymentsRetryPost', 'billingServiceRetryPaymentRequest', billingServiceRetryPaymentRequest);
13666
+ const localVarPath = `/api/billing/payments/retry`;
13667
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13668
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13669
+ let baseOptions;
13670
+ if (configuration) {
13671
+ baseOptions = configuration.baseOptions;
13672
+ }
13673
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13674
+ const localVarHeaderParameter = {};
13675
+ const localVarQueryParameter = {};
13676
+ // authentication BearerAuth required
13677
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
13678
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13681
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13682
+ localVarRequestOptions.data = serializeDataIfNeeded(billingServiceRetryPaymentRequest, localVarRequestOptions, configuration);
13683
+ return {
13684
+ url: toPathString(localVarUrlObj),
13685
+ options: localVarRequestOptions,
13686
+ };
13687
+ }),
13688
+ /**
13689
+ * Gets the current payment status, dunning state, and retry options for a subscription
13690
+ * @summary Get payment status for a subscription
13691
+ * @param {number} id Subscription ID
13692
+ * @param {*} [options] Override http request option.
13693
+ * @throws {RequiredError}
13694
+ */
13695
+ apiBillingSubscriptionsIdPaymentStatusGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
13696
+ // verify required parameter 'id' is not null or undefined
13697
+ assertParamExists('apiBillingSubscriptionsIdPaymentStatusGet', 'id', id);
13698
+ const localVarPath = `/api/billing/subscriptions/{id}/payment-status`
13699
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13702
+ let baseOptions;
13703
+ if (configuration) {
13704
+ baseOptions = configuration.baseOptions;
13705
+ }
13706
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13707
+ const localVarHeaderParameter = {};
13708
+ const localVarQueryParameter = {};
13709
+ // authentication BearerAuth required
13710
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
13711
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13713
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13714
+ return {
13715
+ url: toPathString(localVarUrlObj),
13716
+ options: localVarRequestOptions,
13717
+ };
13718
+ }),
13719
+ };
13720
+ };
13721
+ /**
13722
+ * BillingUserPaymentsApi - functional programming interface
13723
+ * @export
13724
+ */
13725
+ export const BillingUserPaymentsApiFp = function (configuration) {
13726
+ const localVarAxiosParamCreator = BillingUserPaymentsApiAxiosParamCreator(configuration);
13727
+ return {
13728
+ /**
13729
+ * Allows user to retry a failed payment for their subscription
13730
+ * @summary Retry a failed subscription payment
13731
+ * @param {BillingServiceRetryPaymentRequest} billingServiceRetryPaymentRequest Retry payment request
13732
+ * @param {*} [options] Override http request option.
13733
+ * @throws {RequiredError}
13734
+ */
13735
+ apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
13736
+ return __awaiter(this, void 0, void 0, function* () {
13737
+ var _a, _b, _c;
13738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options);
13739
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13740
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingUserPaymentsApi.apiBillingPaymentsRetryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13742
+ });
13743
+ },
13744
+ /**
13745
+ * Gets the current payment status, dunning state, and retry options for a subscription
13746
+ * @summary Get payment status for a subscription
13747
+ * @param {number} id Subscription ID
13748
+ * @param {*} [options] Override http request option.
13749
+ * @throws {RequiredError}
13750
+ */
13751
+ apiBillingSubscriptionsIdPaymentStatusGet(id, options) {
13752
+ return __awaiter(this, void 0, void 0, function* () {
13753
+ var _a, _b, _c;
13754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiBillingSubscriptionsIdPaymentStatusGet(id, options);
13755
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13756
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingUserPaymentsApi.apiBillingSubscriptionsIdPaymentStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13757
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13758
+ });
13759
+ },
13760
+ };
13761
+ };
13762
+ /**
13763
+ * BillingUserPaymentsApi - factory interface
13764
+ * @export
13765
+ */
13766
+ export const BillingUserPaymentsApiFactory = function (configuration, basePath, axios) {
13767
+ const localVarFp = BillingUserPaymentsApiFp(configuration);
13768
+ return {
13769
+ /**
13770
+ * Allows user to retry a failed payment for their subscription
13771
+ * @summary Retry a failed subscription payment
13772
+ * @param {BillingServiceRetryPaymentRequest} billingServiceRetryPaymentRequest Retry payment request
13773
+ * @param {*} [options] Override http request option.
13774
+ * @throws {RequiredError}
13775
+ */
13776
+ apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
13777
+ return localVarFp.apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(axios, basePath));
13778
+ },
13779
+ /**
13780
+ * Gets the current payment status, dunning state, and retry options for a subscription
13781
+ * @summary Get payment status for a subscription
13782
+ * @param {number} id Subscription ID
13783
+ * @param {*} [options] Override http request option.
13784
+ * @throws {RequiredError}
13785
+ */
13786
+ apiBillingSubscriptionsIdPaymentStatusGet(id, options) {
13787
+ return localVarFp.apiBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(axios, basePath));
13788
+ },
13789
+ };
13790
+ };
13791
+ /**
13792
+ * BillingUserPaymentsApi - object-oriented interface
13793
+ * @export
13794
+ * @class BillingUserPaymentsApi
13795
+ * @extends {BaseAPI}
13796
+ */
13797
+ export class BillingUserPaymentsApi extends BaseAPI {
13798
+ /**
13799
+ * Allows user to retry a failed payment for their subscription
13800
+ * @summary Retry a failed subscription payment
13801
+ * @param {BillingServiceRetryPaymentRequest} billingServiceRetryPaymentRequest Retry payment request
13802
+ * @param {*} [options] Override http request option.
13803
+ * @throws {RequiredError}
13804
+ * @memberof BillingUserPaymentsApi
13805
+ */
13806
+ apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
13807
+ return BillingUserPaymentsApiFp(this.configuration).apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(this.axios, this.basePath));
13808
+ }
13809
+ /**
13810
+ * Gets the current payment status, dunning state, and retry options for a subscription
13811
+ * @summary Get payment status for a subscription
13812
+ * @param {number} id Subscription ID
13813
+ * @param {*} [options] Override http request option.
13814
+ * @throws {RequiredError}
13815
+ * @memberof BillingUserPaymentsApi
13816
+ */
13817
+ apiBillingSubscriptionsIdPaymentStatusGet(id, options) {
13818
+ return BillingUserPaymentsApiFp(this.configuration).apiBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(this.axios, this.basePath));
13819
+ }
13820
+ }
13444
13821
  /**
13445
13822
  * CommonApi - axios parameter creator
13446
13823
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file