@seekora-ai/admin-api 1.2.3 → 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 +19 -4
- package/api.ts +922 -28
- package/dist/api.d.ts +544 -12
- package/dist/api.js +665 -34
- package/dist/esm/api.d.ts +544 -12
- package/dist/esm/api.js +659 -28
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.5.tgz +0 -0
- package/seekora-ai-admin-api-1.2.3.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
|
*/
|
|
@@ -18178,10 +18412,10 @@ export const BillingUserPaymentsApiAxiosParamCreator = function (configuration)
|
|
|
18178
18412
|
* @param {*} [options] Override http request option.
|
|
18179
18413
|
* @throws {RequiredError}
|
|
18180
18414
|
*/
|
|
18181
|
-
|
|
18415
|
+
adminBillingPaymentsRetryPost: (billingServiceRetryPaymentRequest_1, ...args_1) => __awaiter(this, [billingServiceRetryPaymentRequest_1, ...args_1], void 0, function* (billingServiceRetryPaymentRequest, options = {}) {
|
|
18182
18416
|
// verify required parameter 'billingServiceRetryPaymentRequest' is not null or undefined
|
|
18183
|
-
assertParamExists('
|
|
18184
|
-
const localVarPath = `/
|
|
18417
|
+
assertParamExists('adminBillingPaymentsRetryPost', 'billingServiceRetryPaymentRequest', billingServiceRetryPaymentRequest);
|
|
18418
|
+
const localVarPath = `/admin/billing/payments/retry`;
|
|
18185
18419
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18186
18420
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18187
18421
|
let baseOptions;
|
|
@@ -18210,10 +18444,10 @@ export const BillingUserPaymentsApiAxiosParamCreator = function (configuration)
|
|
|
18210
18444
|
* @param {*} [options] Override http request option.
|
|
18211
18445
|
* @throws {RequiredError}
|
|
18212
18446
|
*/
|
|
18213
|
-
|
|
18447
|
+
adminBillingSubscriptionsIdPaymentStatusGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
18214
18448
|
// verify required parameter 'id' is not null or undefined
|
|
18215
|
-
assertParamExists('
|
|
18216
|
-
const localVarPath = `/
|
|
18449
|
+
assertParamExists('adminBillingSubscriptionsIdPaymentStatusGet', 'id', id);
|
|
18450
|
+
const localVarPath = `/admin/billing/subscriptions/{id}/payment-status`
|
|
18217
18451
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18218
18452
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18219
18453
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -18250,12 +18484,12 @@ export const BillingUserPaymentsApiFp = function (configuration) {
|
|
|
18250
18484
|
* @param {*} [options] Override http request option.
|
|
18251
18485
|
* @throws {RequiredError}
|
|
18252
18486
|
*/
|
|
18253
|
-
|
|
18487
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
|
|
18254
18488
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18255
18489
|
var _a, _b, _c;
|
|
18256
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
18490
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options);
|
|
18257
18491
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18258
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingUserPaymentsApi.
|
|
18492
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingUserPaymentsApi.adminBillingPaymentsRetryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18259
18493
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18260
18494
|
});
|
|
18261
18495
|
},
|
|
@@ -18266,12 +18500,12 @@ export const BillingUserPaymentsApiFp = function (configuration) {
|
|
|
18266
18500
|
* @param {*} [options] Override http request option.
|
|
18267
18501
|
* @throws {RequiredError}
|
|
18268
18502
|
*/
|
|
18269
|
-
|
|
18503
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
|
|
18270
18504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18271
18505
|
var _a, _b, _c;
|
|
18272
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
18506
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSubscriptionsIdPaymentStatusGet(id, options);
|
|
18273
18507
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18274
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingUserPaymentsApi.
|
|
18508
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingUserPaymentsApi.adminBillingSubscriptionsIdPaymentStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18275
18509
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18276
18510
|
});
|
|
18277
18511
|
},
|
|
@@ -18291,8 +18525,8 @@ export const BillingUserPaymentsApiFactory = function (configuration, basePath,
|
|
|
18291
18525
|
* @param {*} [options] Override http request option.
|
|
18292
18526
|
* @throws {RequiredError}
|
|
18293
18527
|
*/
|
|
18294
|
-
|
|
18295
|
-
return localVarFp.
|
|
18528
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
|
|
18529
|
+
return localVarFp.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(axios, basePath));
|
|
18296
18530
|
},
|
|
18297
18531
|
/**
|
|
18298
18532
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
@@ -18301,8 +18535,8 @@ export const BillingUserPaymentsApiFactory = function (configuration, basePath,
|
|
|
18301
18535
|
* @param {*} [options] Override http request option.
|
|
18302
18536
|
* @throws {RequiredError}
|
|
18303
18537
|
*/
|
|
18304
|
-
|
|
18305
|
-
return localVarFp.
|
|
18538
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
|
|
18539
|
+
return localVarFp.adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(axios, basePath));
|
|
18306
18540
|
},
|
|
18307
18541
|
};
|
|
18308
18542
|
};
|
|
@@ -18321,8 +18555,8 @@ export class BillingUserPaymentsApi extends BaseAPI {
|
|
|
18321
18555
|
* @throws {RequiredError}
|
|
18322
18556
|
* @memberof BillingUserPaymentsApi
|
|
18323
18557
|
*/
|
|
18324
|
-
|
|
18325
|
-
return BillingUserPaymentsApiFp(this.configuration).
|
|
18558
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
|
|
18559
|
+
return BillingUserPaymentsApiFp(this.configuration).adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18326
18560
|
}
|
|
18327
18561
|
/**
|
|
18328
18562
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
@@ -18332,8 +18566,8 @@ export class BillingUserPaymentsApi extends BaseAPI {
|
|
|
18332
18566
|
* @throws {RequiredError}
|
|
18333
18567
|
* @memberof BillingUserPaymentsApi
|
|
18334
18568
|
*/
|
|
18335
|
-
|
|
18336
|
-
return BillingUserPaymentsApiFp(this.configuration).
|
|
18569
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
|
|
18570
|
+
return BillingUserPaymentsApiFp(this.configuration).adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
18337
18571
|
}
|
|
18338
18572
|
}
|
|
18339
18573
|
/**
|
|
@@ -35644,6 +35878,37 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
35644
35878
|
options: localVarRequestOptions,
|
|
35645
35879
|
};
|
|
35646
35880
|
}),
|
|
35881
|
+
/**
|
|
35882
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
35883
|
+
* @summary Get order retry payment info
|
|
35884
|
+
* @param {string} id Order UUID
|
|
35885
|
+
* @param {*} [options] Override http request option.
|
|
35886
|
+
* @throws {RequiredError}
|
|
35887
|
+
*/
|
|
35888
|
+
adminPaymentGatewayOrdersIdRetryInfoGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
35889
|
+
// verify required parameter 'id' is not null or undefined
|
|
35890
|
+
assertParamExists('adminPaymentGatewayOrdersIdRetryInfoGet', 'id', id);
|
|
35891
|
+
const localVarPath = `/admin/payment-gateway/orders/{id}/retry-info`
|
|
35892
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
35893
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35894
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35895
|
+
let baseOptions;
|
|
35896
|
+
if (configuration) {
|
|
35897
|
+
baseOptions = configuration.baseOptions;
|
|
35898
|
+
}
|
|
35899
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
35900
|
+
const localVarHeaderParameter = {};
|
|
35901
|
+
const localVarQueryParameter = {};
|
|
35902
|
+
// authentication BearerAuth required
|
|
35903
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
35904
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35906
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35907
|
+
return {
|
|
35908
|
+
url: toPathString(localVarUrlObj),
|
|
35909
|
+
options: localVarRequestOptions,
|
|
35910
|
+
};
|
|
35911
|
+
}),
|
|
35647
35912
|
/**
|
|
35648
35913
|
* 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.
|
|
35649
35914
|
* @summary Get payment status for polling (frontend)
|
|
@@ -35989,6 +36254,22 @@ export const PaymentGatewayApiFp = function (configuration) {
|
|
|
35989
36254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35990
36255
|
});
|
|
35991
36256
|
},
|
|
36257
|
+
/**
|
|
36258
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
36259
|
+
* @summary Get order retry payment info
|
|
36260
|
+
* @param {string} id Order UUID
|
|
36261
|
+
* @param {*} [options] Override http request option.
|
|
36262
|
+
* @throws {RequiredError}
|
|
36263
|
+
*/
|
|
36264
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
|
|
36265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36266
|
+
var _a, _b, _c;
|
|
36267
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersIdRetryInfoGet(id, options);
|
|
36268
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
36269
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersIdRetryInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
36270
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36271
|
+
});
|
|
36272
|
+
},
|
|
35992
36273
|
/**
|
|
35993
36274
|
* 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.
|
|
35994
36275
|
* @summary Get payment status for polling (frontend)
|
|
@@ -36187,6 +36468,16 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
|
|
|
36187
36468
|
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
36188
36469
|
return localVarFp.adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(axios, basePath));
|
|
36189
36470
|
},
|
|
36471
|
+
/**
|
|
36472
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
36473
|
+
* @summary Get order retry payment info
|
|
36474
|
+
* @param {string} id Order UUID
|
|
36475
|
+
* @param {*} [options] Override http request option.
|
|
36476
|
+
* @throws {RequiredError}
|
|
36477
|
+
*/
|
|
36478
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
|
|
36479
|
+
return localVarFp.adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(axios, basePath));
|
|
36480
|
+
},
|
|
36190
36481
|
/**
|
|
36191
36482
|
* 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.
|
|
36192
36483
|
* @summary Get payment status for polling (frontend)
|
|
@@ -36342,6 +36633,17 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
36342
36633
|
adminPaymentGatewayOrdersIdGet(id, options) {
|
|
36343
36634
|
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
36344
36635
|
}
|
|
36636
|
+
/**
|
|
36637
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
36638
|
+
* @summary Get order retry payment info
|
|
36639
|
+
* @param {string} id Order UUID
|
|
36640
|
+
* @param {*} [options] Override http request option.
|
|
36641
|
+
* @throws {RequiredError}
|
|
36642
|
+
* @memberof PaymentGatewayApi
|
|
36643
|
+
*/
|
|
36644
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
|
|
36645
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
36646
|
+
}
|
|
36345
36647
|
/**
|
|
36346
36648
|
* 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.
|
|
36347
36649
|
* @summary Get payment status for polling (frontend)
|
|
@@ -50226,6 +50528,156 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
50226
50528
|
options: localVarRequestOptions,
|
|
50227
50529
|
};
|
|
50228
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
|
+
}),
|
|
50563
|
+
/**
|
|
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.
|
|
50565
|
+
* @summary Preview plan change details
|
|
50566
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
50567
|
+
* @param {*} [options] Override http request option.
|
|
50568
|
+
* @throws {RequiredError}
|
|
50569
|
+
*/
|
|
50570
|
+
adminSubscriptionsPlanChangePreviewPost: (subscriptionRoutePlanChangePreviewHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRoutePlanChangePreviewHTTPRequest_1, ...args_1], void 0, function* (subscriptionRoutePlanChangePreviewHTTPRequest, options = {}) {
|
|
50571
|
+
// verify required parameter 'subscriptionRoutePlanChangePreviewHTTPRequest' is not null or undefined
|
|
50572
|
+
assertParamExists('adminSubscriptionsPlanChangePreviewPost', 'subscriptionRoutePlanChangePreviewHTTPRequest', subscriptionRoutePlanChangePreviewHTTPRequest);
|
|
50573
|
+
const localVarPath = `/admin/subscriptions/plan-change/preview`;
|
|
50574
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50575
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50576
|
+
let baseOptions;
|
|
50577
|
+
if (configuration) {
|
|
50578
|
+
baseOptions = configuration.baseOptions;
|
|
50579
|
+
}
|
|
50580
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50581
|
+
const localVarHeaderParameter = {};
|
|
50582
|
+
const localVarQueryParameter = {};
|
|
50583
|
+
// authentication BearerAuth required
|
|
50584
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
50585
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50588
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50589
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRoutePlanChangePreviewHTTPRequest, localVarRequestOptions, configuration);
|
|
50590
|
+
return {
|
|
50591
|
+
url: toPathString(localVarUrlObj),
|
|
50592
|
+
options: localVarRequestOptions,
|
|
50593
|
+
};
|
|
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
|
+
}),
|
|
50229
50681
|
/**
|
|
50230
50682
|
* Updates Subscription information by ID.
|
|
50231
50683
|
* @summary Update an existing Subscription
|
|
@@ -50428,6 +50880,84 @@ export const SubscriptionsApiFp = function (configuration) {
|
|
|
50428
50880
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50429
50881
|
});
|
|
50430
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
|
+
},
|
|
50899
|
+
/**
|
|
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.
|
|
50901
|
+
* @summary Preview plan change details
|
|
50902
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
50903
|
+
* @param {*} [options] Override http request option.
|
|
50904
|
+
* @throws {RequiredError}
|
|
50905
|
+
*/
|
|
50906
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50908
|
+
var _a, _b, _c;
|
|
50909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options);
|
|
50910
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50911
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangePreviewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50912
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50913
|
+
});
|
|
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
|
+
},
|
|
50431
50961
|
/**
|
|
50432
50962
|
* Updates Subscription information by ID.
|
|
50433
50963
|
* @summary Update an existing Subscription
|
|
@@ -50538,6 +51068,54 @@ export const SubscriptionsApiFactory = function (configuration, basePath, axios)
|
|
|
50538
51068
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50539
51069
|
return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
|
|
50540
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
|
+
},
|
|
51081
|
+
/**
|
|
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.
|
|
51083
|
+
* @summary Preview plan change details
|
|
51084
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
51085
|
+
* @param {*} [options] Override http request option.
|
|
51086
|
+
* @throws {RequiredError}
|
|
51087
|
+
*/
|
|
51088
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
51089
|
+
return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
50541
51119
|
/**
|
|
50542
51120
|
* Updates Subscription information by ID.
|
|
50543
51121
|
* @summary Update an existing Subscription
|
|
@@ -50620,6 +51198,59 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
50620
51198
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50621
51199
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50622
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
|
+
}
|
|
51212
|
+
/**
|
|
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.
|
|
51214
|
+
* @summary Preview plan change details
|
|
51215
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
51216
|
+
* @param {*} [options] Override http request option.
|
|
51217
|
+
* @throws {RequiredError}
|
|
51218
|
+
* @memberof SubscriptionsApi
|
|
51219
|
+
*/
|
|
51220
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
51221
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
50623
51254
|
/**
|
|
50624
51255
|
* Updates Subscription information by ID.
|
|
50625
51256
|
* @summary Update an existing Subscription
|