@seekora-ai/admin-api 1.2.4 → 1.2.5
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 +14 -2
- package/api.ts +725 -8
- package/dist/api.d.ts +433 -4
- package/dist/api.js +508 -14
- package/dist/esm/api.d.ts +433 -4
- package/dist/esm/api.js +502 -8
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.5.tgz +0 -0
- package/seekora-ai-admin-api-1.2.4.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -89,7 +89,8 @@ export const DataTypesCreateCustomWordListRequestTypeEnum = {
|
|
|
89
89
|
export const DataTypesCreatePaymentOrderRequestPaymentTypeEnum = {
|
|
90
90
|
Generic: 'generic',
|
|
91
91
|
Subscription: 'subscription',
|
|
92
|
-
CreditTopup: 'credit_topup'
|
|
92
|
+
CreditTopup: 'credit_topup',
|
|
93
|
+
PlanChange: 'plan_change'
|
|
93
94
|
};
|
|
94
95
|
export const DataTypesCreatePluralDeclensionRequestTypeEnum = {
|
|
95
96
|
Custom: 'custom',
|
|
@@ -2206,6 +2207,38 @@ export const AdminNotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
2206
2207
|
options: localVarRequestOptions,
|
|
2207
2208
|
};
|
|
2208
2209
|
}),
|
|
2210
|
+
/**
|
|
2211
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
2212
|
+
* @summary Send org-wide notification (Admin)
|
|
2213
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
2214
|
+
* @param {*} [options] Override http request option.
|
|
2215
|
+
* @throws {RequiredError}
|
|
2216
|
+
*/
|
|
2217
|
+
v1AdminNotificationsSendOrgPost: (dataTypesSendOrgNotificationRequest_1, ...args_1) => __awaiter(this, [dataTypesSendOrgNotificationRequest_1, ...args_1], void 0, function* (dataTypesSendOrgNotificationRequest, options = {}) {
|
|
2218
|
+
// verify required parameter 'dataTypesSendOrgNotificationRequest' is not null or undefined
|
|
2219
|
+
assertParamExists('v1AdminNotificationsSendOrgPost', 'dataTypesSendOrgNotificationRequest', dataTypesSendOrgNotificationRequest);
|
|
2220
|
+
const localVarPath = `/v1/admin/notifications/send-org`;
|
|
2221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2223
|
+
let baseOptions;
|
|
2224
|
+
if (configuration) {
|
|
2225
|
+
baseOptions = configuration.baseOptions;
|
|
2226
|
+
}
|
|
2227
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2228
|
+
const localVarHeaderParameter = {};
|
|
2229
|
+
const localVarQueryParameter = {};
|
|
2230
|
+
// authentication BearerAuth required
|
|
2231
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2235
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2236
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSendOrgNotificationRequest, localVarRequestOptions, configuration);
|
|
2237
|
+
return {
|
|
2238
|
+
url: toPathString(localVarUrlObj),
|
|
2239
|
+
options: localVarRequestOptions,
|
|
2240
|
+
};
|
|
2241
|
+
}),
|
|
2209
2242
|
/**
|
|
2210
2243
|
* Sends a notification to specified users (requires admin privileges)
|
|
2211
2244
|
* @summary Send notification (Admin)
|
|
@@ -2463,6 +2496,22 @@ export const AdminNotificationsApiFp = function (configuration) {
|
|
|
2463
2496
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2464
2497
|
});
|
|
2465
2498
|
},
|
|
2499
|
+
/**
|
|
2500
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
2501
|
+
* @summary Send org-wide notification (Admin)
|
|
2502
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
2503
|
+
* @param {*} [options] Override http request option.
|
|
2504
|
+
* @throws {RequiredError}
|
|
2505
|
+
*/
|
|
2506
|
+
v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options) {
|
|
2507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2508
|
+
var _a, _b, _c;
|
|
2509
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options);
|
|
2510
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2511
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminNotificationsApi.v1AdminNotificationsSendOrgPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2513
|
+
});
|
|
2514
|
+
},
|
|
2466
2515
|
/**
|
|
2467
2516
|
* Sends a notification to specified users (requires admin privileges)
|
|
2468
2517
|
* @summary Send notification (Admin)
|
|
@@ -2607,6 +2656,16 @@ export const AdminNotificationsApiFactory = function (configuration, basePath, a
|
|
|
2607
2656
|
v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options) {
|
|
2608
2657
|
return localVarFp.v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(axios, basePath));
|
|
2609
2658
|
},
|
|
2659
|
+
/**
|
|
2660
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
2661
|
+
* @summary Send org-wide notification (Admin)
|
|
2662
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
2663
|
+
* @param {*} [options] Override http request option.
|
|
2664
|
+
* @throws {RequiredError}
|
|
2665
|
+
*/
|
|
2666
|
+
v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options) {
|
|
2667
|
+
return localVarFp.v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options).then((request) => request(axios, basePath));
|
|
2668
|
+
},
|
|
2610
2669
|
/**
|
|
2611
2670
|
* Sends a notification to specified users (requires admin privileges)
|
|
2612
2671
|
* @summary Send notification (Admin)
|
|
@@ -2734,6 +2793,17 @@ export class AdminNotificationsApi extends BaseAPI {
|
|
|
2734
2793
|
v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options) {
|
|
2735
2794
|
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(this.axios, this.basePath));
|
|
2736
2795
|
}
|
|
2796
|
+
/**
|
|
2797
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
2798
|
+
* @summary Send org-wide notification (Admin)
|
|
2799
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
2800
|
+
* @param {*} [options] Override http request option.
|
|
2801
|
+
* @throws {RequiredError}
|
|
2802
|
+
* @memberof AdminNotificationsApi
|
|
2803
|
+
*/
|
|
2804
|
+
v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options) {
|
|
2805
|
+
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2806
|
+
}
|
|
2737
2807
|
/**
|
|
2738
2808
|
* Sends a notification to specified users (requires admin privileges)
|
|
2739
2809
|
* @summary Send notification (Admin)
|
|
@@ -14682,6 +14752,45 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14682
14752
|
options: localVarRequestOptions,
|
|
14683
14753
|
};
|
|
14684
14754
|
}),
|
|
14755
|
+
/**
|
|
14756
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
14757
|
+
* @summary Export credit notes for GSTR-1
|
|
14758
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
14759
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
14760
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
14761
|
+
* @param {*} [options] Override http request option.
|
|
14762
|
+
* @throws {RequiredError}
|
|
14763
|
+
*/
|
|
14764
|
+
adminBillingCreditNotesExportGet: (startDate_1, endDate_1, fiscalYear_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, fiscalYear_1, ...args_1], void 0, function* (startDate, endDate, fiscalYear, options = {}) {
|
|
14765
|
+
const localVarPath = `/admin/billing/credit-notes/export`;
|
|
14766
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14767
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14768
|
+
let baseOptions;
|
|
14769
|
+
if (configuration) {
|
|
14770
|
+
baseOptions = configuration.baseOptions;
|
|
14771
|
+
}
|
|
14772
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14773
|
+
const localVarHeaderParameter = {};
|
|
14774
|
+
const localVarQueryParameter = {};
|
|
14775
|
+
// authentication BearerAuth required
|
|
14776
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
14777
|
+
if (startDate !== undefined) {
|
|
14778
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14779
|
+
}
|
|
14780
|
+
if (endDate !== undefined) {
|
|
14781
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14782
|
+
}
|
|
14783
|
+
if (fiscalYear !== undefined) {
|
|
14784
|
+
localVarQueryParameter['fiscal_year'] = fiscalYear;
|
|
14785
|
+
}
|
|
14786
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14788
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14789
|
+
return {
|
|
14790
|
+
url: toPathString(localVarUrlObj),
|
|
14791
|
+
options: localVarRequestOptions,
|
|
14792
|
+
};
|
|
14793
|
+
}),
|
|
14685
14794
|
/**
|
|
14686
14795
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
14687
14796
|
* @summary Get credit purchases
|
|
@@ -14910,10 +15019,11 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14910
15019
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
14911
15020
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
14912
15021
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
15022
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
14913
15023
|
* @param {*} [options] Override http request option.
|
|
14914
15024
|
* @throws {RequiredError}
|
|
14915
15025
|
*/
|
|
14916
|
-
adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options = {}) {
|
|
15026
|
+
adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, invoiceType_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, invoiceType_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options = {}) {
|
|
14917
15027
|
const localVarPath = `/admin/billing/invoices`;
|
|
14918
15028
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14919
15029
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14956,6 +15066,9 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14956
15066
|
if (sortOrder !== undefined) {
|
|
14957
15067
|
localVarQueryParameter['sort_order'] = sortOrder;
|
|
14958
15068
|
}
|
|
15069
|
+
if (invoiceType !== undefined) {
|
|
15070
|
+
localVarQueryParameter['invoice_type'] = invoiceType;
|
|
15071
|
+
}
|
|
14959
15072
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14960
15073
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14961
15074
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -15124,6 +15237,37 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
15124
15237
|
options: localVarRequestOptions,
|
|
15125
15238
|
};
|
|
15126
15239
|
}),
|
|
15240
|
+
/**
|
|
15241
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
15242
|
+
* @summary Void a credit note
|
|
15243
|
+
* @param {string} id Invoice ID (UUID)
|
|
15244
|
+
* @param {*} [options] Override http request option.
|
|
15245
|
+
* @throws {RequiredError}
|
|
15246
|
+
*/
|
|
15247
|
+
adminBillingInvoicesIdVoidPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
15248
|
+
// verify required parameter 'id' is not null or undefined
|
|
15249
|
+
assertParamExists('adminBillingInvoicesIdVoidPost', 'id', id);
|
|
15250
|
+
const localVarPath = `/admin/billing/invoices/{id}/void`
|
|
15251
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15254
|
+
let baseOptions;
|
|
15255
|
+
if (configuration) {
|
|
15256
|
+
baseOptions = configuration.baseOptions;
|
|
15257
|
+
}
|
|
15258
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15259
|
+
const localVarHeaderParameter = {};
|
|
15260
|
+
const localVarQueryParameter = {};
|
|
15261
|
+
// authentication BearerAuth required
|
|
15262
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15263
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15264
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15265
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15266
|
+
return {
|
|
15267
|
+
url: toPathString(localVarUrlObj),
|
|
15268
|
+
options: localVarRequestOptions,
|
|
15269
|
+
};
|
|
15270
|
+
}),
|
|
15127
15271
|
/**
|
|
15128
15272
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
15129
15273
|
* @summary Pay a pending invoice
|
|
@@ -16032,6 +16176,24 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16032
16176
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16033
16177
|
});
|
|
16034
16178
|
},
|
|
16179
|
+
/**
|
|
16180
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
16181
|
+
* @summary Export credit notes for GSTR-1
|
|
16182
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
16183
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
16184
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
16185
|
+
* @param {*} [options] Override http request option.
|
|
16186
|
+
* @throws {RequiredError}
|
|
16187
|
+
*/
|
|
16188
|
+
adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
|
|
16189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16190
|
+
var _a, _b, _c;
|
|
16191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options);
|
|
16192
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16193
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditNotesExportGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16195
|
+
});
|
|
16196
|
+
},
|
|
16035
16197
|
/**
|
|
16036
16198
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
16037
16199
|
* @summary Get credit purchases
|
|
@@ -16140,13 +16302,14 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16140
16302
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
16141
16303
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
16142
16304
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
16305
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
16143
16306
|
* @param {*} [options] Override http request option.
|
|
16144
16307
|
* @throws {RequiredError}
|
|
16145
16308
|
*/
|
|
16146
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
16309
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
|
|
16147
16310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16148
16311
|
var _a, _b, _c;
|
|
16149
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
|
|
16312
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options);
|
|
16150
16313
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16151
16314
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16152
16315
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16233,6 +16396,22 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16233
16396
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16234
16397
|
});
|
|
16235
16398
|
},
|
|
16399
|
+
/**
|
|
16400
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
16401
|
+
* @summary Void a credit note
|
|
16402
|
+
* @param {string} id Invoice ID (UUID)
|
|
16403
|
+
* @param {*} [options] Override http request option.
|
|
16404
|
+
* @throws {RequiredError}
|
|
16405
|
+
*/
|
|
16406
|
+
adminBillingInvoicesIdVoidPost(id, options) {
|
|
16407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16408
|
+
var _a, _b, _c;
|
|
16409
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdVoidPost(id, options);
|
|
16410
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16411
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdVoidPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16412
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16413
|
+
});
|
|
16414
|
+
},
|
|
16236
16415
|
/**
|
|
16237
16416
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
16238
16417
|
* @summary Pay a pending invoice
|
|
@@ -16693,6 +16872,18 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16693
16872
|
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
16694
16873
|
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
16695
16874
|
},
|
|
16875
|
+
/**
|
|
16876
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
16877
|
+
* @summary Export credit notes for GSTR-1
|
|
16878
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
16879
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
16880
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
16881
|
+
* @param {*} [options] Override http request option.
|
|
16882
|
+
* @throws {RequiredError}
|
|
16883
|
+
*/
|
|
16884
|
+
adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
|
|
16885
|
+
return localVarFp.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(axios, basePath));
|
|
16886
|
+
},
|
|
16696
16887
|
/**
|
|
16697
16888
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
16698
16889
|
* @summary Get credit purchases
|
|
@@ -16771,11 +16962,12 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16771
16962
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
16772
16963
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
16773
16964
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
16965
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
16774
16966
|
* @param {*} [options] Override http request option.
|
|
16775
16967
|
* @throws {RequiredError}
|
|
16776
16968
|
*/
|
|
16777
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
16778
|
-
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
16969
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
|
|
16970
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(axios, basePath));
|
|
16779
16971
|
},
|
|
16780
16972
|
/**
|
|
16781
16973
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -16828,6 +17020,16 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16828
17020
|
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
16829
17021
|
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
16830
17022
|
},
|
|
17023
|
+
/**
|
|
17024
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
17025
|
+
* @summary Void a credit note
|
|
17026
|
+
* @param {string} id Invoice ID (UUID)
|
|
17027
|
+
* @param {*} [options] Override http request option.
|
|
17028
|
+
* @throws {RequiredError}
|
|
17029
|
+
*/
|
|
17030
|
+
adminBillingInvoicesIdVoidPost(id, options) {
|
|
17031
|
+
return localVarFp.adminBillingInvoicesIdVoidPost(id, options).then((request) => request(axios, basePath));
|
|
17032
|
+
},
|
|
16831
17033
|
/**
|
|
16832
17034
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
16833
17035
|
* @summary Pay a pending invoice
|
|
@@ -17176,6 +17378,19 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17176
17378
|
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
17177
17379
|
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
17178
17380
|
}
|
|
17381
|
+
/**
|
|
17382
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
17383
|
+
* @summary Export credit notes for GSTR-1
|
|
17384
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
17385
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
17386
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
17387
|
+
* @param {*} [options] Override http request option.
|
|
17388
|
+
* @throws {RequiredError}
|
|
17389
|
+
* @memberof BillingDashboardApi
|
|
17390
|
+
*/
|
|
17391
|
+
adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
|
|
17392
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(this.axios, this.basePath));
|
|
17393
|
+
}
|
|
17179
17394
|
/**
|
|
17180
17395
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
17181
17396
|
* @summary Get credit purchases
|
|
@@ -17259,12 +17474,13 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17259
17474
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
17260
17475
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
17261
17476
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
17477
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
17262
17478
|
* @param {*} [options] Override http request option.
|
|
17263
17479
|
* @throws {RequiredError}
|
|
17264
17480
|
* @memberof BillingDashboardApi
|
|
17265
17481
|
*/
|
|
17266
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
17267
|
-
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
17482
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
|
|
17483
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(this.axios, this.basePath));
|
|
17268
17484
|
}
|
|
17269
17485
|
/**
|
|
17270
17486
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -17322,6 +17538,17 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17322
17538
|
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
17323
17539
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17324
17540
|
}
|
|
17541
|
+
/**
|
|
17542
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
17543
|
+
* @summary Void a credit note
|
|
17544
|
+
* @param {string} id Invoice ID (UUID)
|
|
17545
|
+
* @param {*} [options] Override http request option.
|
|
17546
|
+
* @throws {RequiredError}
|
|
17547
|
+
* @memberof BillingDashboardApi
|
|
17548
|
+
*/
|
|
17549
|
+
adminBillingInvoicesIdVoidPost(id, options) {
|
|
17550
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdVoidPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
17551
|
+
}
|
|
17325
17552
|
/**
|
|
17326
17553
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
17327
17554
|
* @summary Pay a pending invoice
|
|
@@ -17654,6 +17881,13 @@ export const AdminBillingInvoicesGetSortOrderEnum = {
|
|
|
17654
17881
|
Asc2: 'ASC',
|
|
17655
17882
|
Desc2: 'DESC'
|
|
17656
17883
|
};
|
|
17884
|
+
/**
|
|
17885
|
+
* @export
|
|
17886
|
+
*/
|
|
17887
|
+
export const AdminBillingInvoicesGetInvoiceTypeEnum = {
|
|
17888
|
+
TaxInvoice: 'tax_invoice',
|
|
17889
|
+
CreditNote: 'credit_note'
|
|
17890
|
+
};
|
|
17657
17891
|
/**
|
|
17658
17892
|
* @export
|
|
17659
17893
|
*/
|
|
@@ -50294,6 +50528,38 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
50294
50528
|
options: localVarRequestOptions,
|
|
50295
50529
|
};
|
|
50296
50530
|
}),
|
|
50531
|
+
/**
|
|
50532
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
50533
|
+
* @summary Create an immediate plan change order
|
|
50534
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
50535
|
+
* @param {*} [options] Override http request option.
|
|
50536
|
+
* @throws {RequiredError}
|
|
50537
|
+
*/
|
|
50538
|
+
adminSubscriptionsPlanChangeImmediateOrderPost: (subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options = {}) {
|
|
50539
|
+
// verify required parameter 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest' is not null or undefined
|
|
50540
|
+
assertParamExists('adminSubscriptionsPlanChangeImmediateOrderPost', 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest', subscriptionRouteImmediatePlanChangeOrderHTTPRequest);
|
|
50541
|
+
const localVarPath = `/admin/subscriptions/plan-change/immediate/order`;
|
|
50542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50544
|
+
let baseOptions;
|
|
50545
|
+
if (configuration) {
|
|
50546
|
+
baseOptions = configuration.baseOptions;
|
|
50547
|
+
}
|
|
50548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50549
|
+
const localVarHeaderParameter = {};
|
|
50550
|
+
const localVarQueryParameter = {};
|
|
50551
|
+
// authentication BearerAuth required
|
|
50552
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
50553
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50554
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50556
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50557
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, localVarRequestOptions, configuration);
|
|
50558
|
+
return {
|
|
50559
|
+
url: toPathString(localVarUrlObj),
|
|
50560
|
+
options: localVarRequestOptions,
|
|
50561
|
+
};
|
|
50562
|
+
}),
|
|
50297
50563
|
/**
|
|
50298
50564
|
* 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.
|
|
50299
50565
|
* @summary Preview plan change details
|
|
@@ -50326,6 +50592,92 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
50326
50592
|
options: localVarRequestOptions,
|
|
50327
50593
|
};
|
|
50328
50594
|
}),
|
|
50595
|
+
/**
|
|
50596
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
50597
|
+
* @summary Cancel a scheduled plan change
|
|
50598
|
+
* @param {*} [options] Override http request option.
|
|
50599
|
+
* @throws {RequiredError}
|
|
50600
|
+
*/
|
|
50601
|
+
adminSubscriptionsPlanChangeScheduleDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
50602
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
50603
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50604
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50605
|
+
let baseOptions;
|
|
50606
|
+
if (configuration) {
|
|
50607
|
+
baseOptions = configuration.baseOptions;
|
|
50608
|
+
}
|
|
50609
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
50610
|
+
const localVarHeaderParameter = {};
|
|
50611
|
+
const localVarQueryParameter = {};
|
|
50612
|
+
// authentication BearerAuth required
|
|
50613
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
50614
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50616
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50617
|
+
return {
|
|
50618
|
+
url: toPathString(localVarUrlObj),
|
|
50619
|
+
options: localVarRequestOptions,
|
|
50620
|
+
};
|
|
50621
|
+
}),
|
|
50622
|
+
/**
|
|
50623
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
50624
|
+
* @summary Get pending scheduled plan change
|
|
50625
|
+
* @param {*} [options] Override http request option.
|
|
50626
|
+
* @throws {RequiredError}
|
|
50627
|
+
*/
|
|
50628
|
+
adminSubscriptionsPlanChangeScheduleGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
50629
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
50630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50631
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50632
|
+
let baseOptions;
|
|
50633
|
+
if (configuration) {
|
|
50634
|
+
baseOptions = configuration.baseOptions;
|
|
50635
|
+
}
|
|
50636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
50637
|
+
const localVarHeaderParameter = {};
|
|
50638
|
+
const localVarQueryParameter = {};
|
|
50639
|
+
// authentication BearerAuth required
|
|
50640
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
50641
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50642
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50643
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50644
|
+
return {
|
|
50645
|
+
url: toPathString(localVarUrlObj),
|
|
50646
|
+
options: localVarRequestOptions,
|
|
50647
|
+
};
|
|
50648
|
+
}),
|
|
50649
|
+
/**
|
|
50650
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
50651
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
50652
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
50653
|
+
* @param {*} [options] Override http request option.
|
|
50654
|
+
* @throws {RequiredError}
|
|
50655
|
+
*/
|
|
50656
|
+
adminSubscriptionsPlanChangeSchedulePost: (subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteSchedulePlanChangeHTTPRequest, options = {}) {
|
|
50657
|
+
// verify required parameter 'subscriptionRouteSchedulePlanChangeHTTPRequest' is not null or undefined
|
|
50658
|
+
assertParamExists('adminSubscriptionsPlanChangeSchedulePost', 'subscriptionRouteSchedulePlanChangeHTTPRequest', subscriptionRouteSchedulePlanChangeHTTPRequest);
|
|
50659
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
50660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50662
|
+
let baseOptions;
|
|
50663
|
+
if (configuration) {
|
|
50664
|
+
baseOptions = configuration.baseOptions;
|
|
50665
|
+
}
|
|
50666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50667
|
+
const localVarHeaderParameter = {};
|
|
50668
|
+
const localVarQueryParameter = {};
|
|
50669
|
+
// authentication BearerAuth required
|
|
50670
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
50671
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50672
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50673
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50674
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50675
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteSchedulePlanChangeHTTPRequest, localVarRequestOptions, configuration);
|
|
50676
|
+
return {
|
|
50677
|
+
url: toPathString(localVarUrlObj),
|
|
50678
|
+
options: localVarRequestOptions,
|
|
50679
|
+
};
|
|
50680
|
+
}),
|
|
50329
50681
|
/**
|
|
50330
50682
|
* Updates Subscription information by ID.
|
|
50331
50683
|
* @summary Update an existing Subscription
|
|
@@ -50528,6 +50880,22 @@ export const SubscriptionsApiFp = function (configuration) {
|
|
|
50528
50880
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50529
50881
|
});
|
|
50530
50882
|
},
|
|
50883
|
+
/**
|
|
50884
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
50885
|
+
* @summary Create an immediate plan change order
|
|
50886
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
50887
|
+
* @param {*} [options] Override http request option.
|
|
50888
|
+
* @throws {RequiredError}
|
|
50889
|
+
*/
|
|
50890
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
|
|
50891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50892
|
+
var _a, _b, _c;
|
|
50893
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options);
|
|
50894
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50895
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeImmediateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50896
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50897
|
+
});
|
|
50898
|
+
},
|
|
50531
50899
|
/**
|
|
50532
50900
|
* 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.
|
|
50533
50901
|
* @summary Preview plan change details
|
|
@@ -50544,6 +50912,52 @@ export const SubscriptionsApiFp = function (configuration) {
|
|
|
50544
50912
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50545
50913
|
});
|
|
50546
50914
|
},
|
|
50915
|
+
/**
|
|
50916
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
50917
|
+
* @summary Cancel a scheduled plan change
|
|
50918
|
+
* @param {*} [options] Override http request option.
|
|
50919
|
+
* @throws {RequiredError}
|
|
50920
|
+
*/
|
|
50921
|
+
adminSubscriptionsPlanChangeScheduleDelete(options) {
|
|
50922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50923
|
+
var _a, _b, _c;
|
|
50924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleDelete(options);
|
|
50925
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50926
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50927
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50928
|
+
});
|
|
50929
|
+
},
|
|
50930
|
+
/**
|
|
50931
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
50932
|
+
* @summary Get pending scheduled plan change
|
|
50933
|
+
* @param {*} [options] Override http request option.
|
|
50934
|
+
* @throws {RequiredError}
|
|
50935
|
+
*/
|
|
50936
|
+
adminSubscriptionsPlanChangeScheduleGet(options) {
|
|
50937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50938
|
+
var _a, _b, _c;
|
|
50939
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleGet(options);
|
|
50940
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50941
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50942
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50943
|
+
});
|
|
50944
|
+
},
|
|
50945
|
+
/**
|
|
50946
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
50947
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
50948
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
50949
|
+
* @param {*} [options] Override http request option.
|
|
50950
|
+
* @throws {RequiredError}
|
|
50951
|
+
*/
|
|
50952
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
|
|
50953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50954
|
+
var _a, _b, _c;
|
|
50955
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options);
|
|
50956
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50957
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeSchedulePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50958
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50959
|
+
});
|
|
50960
|
+
},
|
|
50547
50961
|
/**
|
|
50548
50962
|
* Updates Subscription information by ID.
|
|
50549
50963
|
* @summary Update an existing Subscription
|
|
@@ -50654,6 +51068,16 @@ export const SubscriptionsApiFactory = function (configuration, basePath, axios)
|
|
|
50654
51068
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50655
51069
|
return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
|
|
50656
51070
|
},
|
|
51071
|
+
/**
|
|
51072
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
51073
|
+
* @summary Create an immediate plan change order
|
|
51074
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
51075
|
+
* @param {*} [options] Override http request option.
|
|
51076
|
+
* @throws {RequiredError}
|
|
51077
|
+
*/
|
|
51078
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
|
|
51079
|
+
return localVarFp.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(axios, basePath));
|
|
51080
|
+
},
|
|
50657
51081
|
/**
|
|
50658
51082
|
* 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.
|
|
50659
51083
|
* @summary Preview plan change details
|
|
@@ -50664,6 +51088,34 @@ export const SubscriptionsApiFactory = function (configuration, basePath, axios)
|
|
|
50664
51088
|
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50665
51089
|
return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
|
|
50666
51090
|
},
|
|
51091
|
+
/**
|
|
51092
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
51093
|
+
* @summary Cancel a scheduled plan change
|
|
51094
|
+
* @param {*} [options] Override http request option.
|
|
51095
|
+
* @throws {RequiredError}
|
|
51096
|
+
*/
|
|
51097
|
+
adminSubscriptionsPlanChangeScheduleDelete(options) {
|
|
51098
|
+
return localVarFp.adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(axios, basePath));
|
|
51099
|
+
},
|
|
51100
|
+
/**
|
|
51101
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
51102
|
+
* @summary Get pending scheduled plan change
|
|
51103
|
+
* @param {*} [options] Override http request option.
|
|
51104
|
+
* @throws {RequiredError}
|
|
51105
|
+
*/
|
|
51106
|
+
adminSubscriptionsPlanChangeScheduleGet(options) {
|
|
51107
|
+
return localVarFp.adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(axios, basePath));
|
|
51108
|
+
},
|
|
51109
|
+
/**
|
|
51110
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
51111
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
51112
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
51113
|
+
* @param {*} [options] Override http request option.
|
|
51114
|
+
* @throws {RequiredError}
|
|
51115
|
+
*/
|
|
51116
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
|
|
51117
|
+
return localVarFp.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(axios, basePath));
|
|
51118
|
+
},
|
|
50667
51119
|
/**
|
|
50668
51120
|
* Updates Subscription information by ID.
|
|
50669
51121
|
* @summary Update an existing Subscription
|
|
@@ -50746,6 +51198,17 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
50746
51198
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50747
51199
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50748
51200
|
}
|
|
51201
|
+
/**
|
|
51202
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
51203
|
+
* @summary Create an immediate plan change order
|
|
51204
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
51205
|
+
* @param {*} [options] Override http request option.
|
|
51206
|
+
* @throws {RequiredError}
|
|
51207
|
+
* @memberof SubscriptionsApi
|
|
51208
|
+
*/
|
|
51209
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
|
|
51210
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51211
|
+
}
|
|
50749
51212
|
/**
|
|
50750
51213
|
* 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.
|
|
50751
51214
|
* @summary Preview plan change details
|
|
@@ -50757,6 +51220,37 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
50757
51220
|
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50758
51221
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50759
51222
|
}
|
|
51223
|
+
/**
|
|
51224
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
51225
|
+
* @summary Cancel a scheduled plan change
|
|
51226
|
+
* @param {*} [options] Override http request option.
|
|
51227
|
+
* @throws {RequiredError}
|
|
51228
|
+
* @memberof SubscriptionsApi
|
|
51229
|
+
*/
|
|
51230
|
+
adminSubscriptionsPlanChangeScheduleDelete(options) {
|
|
51231
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(this.axios, this.basePath));
|
|
51232
|
+
}
|
|
51233
|
+
/**
|
|
51234
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
51235
|
+
* @summary Get pending scheduled plan change
|
|
51236
|
+
* @param {*} [options] Override http request option.
|
|
51237
|
+
* @throws {RequiredError}
|
|
51238
|
+
* @memberof SubscriptionsApi
|
|
51239
|
+
*/
|
|
51240
|
+
adminSubscriptionsPlanChangeScheduleGet(options) {
|
|
51241
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(this.axios, this.basePath));
|
|
51242
|
+
}
|
|
51243
|
+
/**
|
|
51244
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
51245
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
51246
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
51247
|
+
* @param {*} [options] Override http request option.
|
|
51248
|
+
* @throws {RequiredError}
|
|
51249
|
+
* @memberof SubscriptionsApi
|
|
51250
|
+
*/
|
|
51251
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
|
|
51252
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51253
|
+
}
|
|
50760
51254
|
/**
|
|
50761
51255
|
* Updates Subscription information by ID.
|
|
50762
51256
|
* @summary Update an existing Subscription
|