@seekora-ai/admin-api 1.2.4 → 1.2.6
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 +23 -2
- package/api.ts +1448 -8
- package/dist/api.d.ts +798 -4
- package/dist/api.js +1124 -14
- package/dist/esm/api.d.ts +798 -4
- package/dist/esm/api.js +1118 -8
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.6.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)
|
|
@@ -14387,6 +14457,61 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14387
14457
|
options: localVarRequestOptions,
|
|
14388
14458
|
};
|
|
14389
14459
|
}),
|
|
14460
|
+
/**
|
|
14461
|
+
* Returns paginated alert trigger history with optional filters
|
|
14462
|
+
* @summary Get alert trigger history
|
|
14463
|
+
* @param {string} [storeId] Filter by store xStoreID
|
|
14464
|
+
* @param {string} [from] Start date (YYYY-MM-DD)
|
|
14465
|
+
* @param {string} [to] End date (YYYY-MM-DD)
|
|
14466
|
+
* @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
|
|
14467
|
+
* @param {string} [status] Filter by status (resolved, unresolved)
|
|
14468
|
+
* @param {number} [page] Page number
|
|
14469
|
+
* @param {number} [perPage] Items per page
|
|
14470
|
+
* @param {*} [options] Override http request option.
|
|
14471
|
+
* @throws {RequiredError}
|
|
14472
|
+
*/
|
|
14473
|
+
adminBillingAlertHistoryGet: (storeId_1, from_1, to_1, alertType_1, status_1, page_1, perPage_1, ...args_1) => __awaiter(this, [storeId_1, from_1, to_1, alertType_1, status_1, page_1, perPage_1, ...args_1], void 0, function* (storeId, from, to, alertType, status, page, perPage, options = {}) {
|
|
14474
|
+
const localVarPath = `/admin/billing/alert-history`;
|
|
14475
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14476
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14477
|
+
let baseOptions;
|
|
14478
|
+
if (configuration) {
|
|
14479
|
+
baseOptions = configuration.baseOptions;
|
|
14480
|
+
}
|
|
14481
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14482
|
+
const localVarHeaderParameter = {};
|
|
14483
|
+
const localVarQueryParameter = {};
|
|
14484
|
+
// authentication BearerAuth required
|
|
14485
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
14486
|
+
if (storeId !== undefined) {
|
|
14487
|
+
localVarQueryParameter['store_id'] = storeId;
|
|
14488
|
+
}
|
|
14489
|
+
if (from !== undefined) {
|
|
14490
|
+
localVarQueryParameter['from'] = from;
|
|
14491
|
+
}
|
|
14492
|
+
if (to !== undefined) {
|
|
14493
|
+
localVarQueryParameter['to'] = to;
|
|
14494
|
+
}
|
|
14495
|
+
if (alertType !== undefined) {
|
|
14496
|
+
localVarQueryParameter['alert_type'] = alertType;
|
|
14497
|
+
}
|
|
14498
|
+
if (status !== undefined) {
|
|
14499
|
+
localVarQueryParameter['status'] = status;
|
|
14500
|
+
}
|
|
14501
|
+
if (page !== undefined) {
|
|
14502
|
+
localVarQueryParameter['page'] = page;
|
|
14503
|
+
}
|
|
14504
|
+
if (perPage !== undefined) {
|
|
14505
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
14506
|
+
}
|
|
14507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14509
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14510
|
+
return {
|
|
14511
|
+
url: toPathString(localVarUrlObj),
|
|
14512
|
+
options: localVarRequestOptions,
|
|
14513
|
+
};
|
|
14514
|
+
}),
|
|
14390
14515
|
/**
|
|
14391
14516
|
* Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
|
|
14392
14517
|
* @summary Get billing alerts
|
|
@@ -14682,6 +14807,45 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14682
14807
|
options: localVarRequestOptions,
|
|
14683
14808
|
};
|
|
14684
14809
|
}),
|
|
14810
|
+
/**
|
|
14811
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
14812
|
+
* @summary Export credit notes for GSTR-1
|
|
14813
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
14814
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
14815
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
14816
|
+
* @param {*} [options] Override http request option.
|
|
14817
|
+
* @throws {RequiredError}
|
|
14818
|
+
*/
|
|
14819
|
+
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 = {}) {
|
|
14820
|
+
const localVarPath = `/admin/billing/credit-notes/export`;
|
|
14821
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14822
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14823
|
+
let baseOptions;
|
|
14824
|
+
if (configuration) {
|
|
14825
|
+
baseOptions = configuration.baseOptions;
|
|
14826
|
+
}
|
|
14827
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14828
|
+
const localVarHeaderParameter = {};
|
|
14829
|
+
const localVarQueryParameter = {};
|
|
14830
|
+
// authentication BearerAuth required
|
|
14831
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
14832
|
+
if (startDate !== undefined) {
|
|
14833
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14834
|
+
}
|
|
14835
|
+
if (endDate !== undefined) {
|
|
14836
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14837
|
+
}
|
|
14838
|
+
if (fiscalYear !== undefined) {
|
|
14839
|
+
localVarQueryParameter['fiscal_year'] = fiscalYear;
|
|
14840
|
+
}
|
|
14841
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14842
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14843
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14844
|
+
return {
|
|
14845
|
+
url: toPathString(localVarUrlObj),
|
|
14846
|
+
options: localVarRequestOptions,
|
|
14847
|
+
};
|
|
14848
|
+
}),
|
|
14685
14849
|
/**
|
|
14686
14850
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
14687
14851
|
* @summary Get credit purchases
|
|
@@ -14910,10 +15074,11 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14910
15074
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
14911
15075
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
14912
15076
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
15077
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
14913
15078
|
* @param {*} [options] Override http request option.
|
|
14914
15079
|
* @throws {RequiredError}
|
|
14915
15080
|
*/
|
|
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 = {}) {
|
|
15081
|
+
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
15082
|
const localVarPath = `/admin/billing/invoices`;
|
|
14918
15083
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14919
15084
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14956,6 +15121,9 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
14956
15121
|
if (sortOrder !== undefined) {
|
|
14957
15122
|
localVarQueryParameter['sort_order'] = sortOrder;
|
|
14958
15123
|
}
|
|
15124
|
+
if (invoiceType !== undefined) {
|
|
15125
|
+
localVarQueryParameter['invoice_type'] = invoiceType;
|
|
15126
|
+
}
|
|
14959
15127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14960
15128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14961
15129
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -15124,6 +15292,37 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
15124
15292
|
options: localVarRequestOptions,
|
|
15125
15293
|
};
|
|
15126
15294
|
}),
|
|
15295
|
+
/**
|
|
15296
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
15297
|
+
* @summary Void a credit note
|
|
15298
|
+
* @param {string} id Invoice ID (UUID)
|
|
15299
|
+
* @param {*} [options] Override http request option.
|
|
15300
|
+
* @throws {RequiredError}
|
|
15301
|
+
*/
|
|
15302
|
+
adminBillingInvoicesIdVoidPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
15303
|
+
// verify required parameter 'id' is not null or undefined
|
|
15304
|
+
assertParamExists('adminBillingInvoicesIdVoidPost', 'id', id);
|
|
15305
|
+
const localVarPath = `/admin/billing/invoices/{id}/void`
|
|
15306
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15309
|
+
let baseOptions;
|
|
15310
|
+
if (configuration) {
|
|
15311
|
+
baseOptions = configuration.baseOptions;
|
|
15312
|
+
}
|
|
15313
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15314
|
+
const localVarHeaderParameter = {};
|
|
15315
|
+
const localVarQueryParameter = {};
|
|
15316
|
+
// authentication BearerAuth required
|
|
15317
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15320
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15321
|
+
return {
|
|
15322
|
+
url: toPathString(localVarUrlObj),
|
|
15323
|
+
options: localVarRequestOptions,
|
|
15324
|
+
};
|
|
15325
|
+
}),
|
|
15127
15326
|
/**
|
|
15128
15327
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
15129
15328
|
* @summary Pay a pending invoice
|
|
@@ -15688,6 +15887,241 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
15688
15887
|
options: localVarRequestOptions,
|
|
15689
15888
|
};
|
|
15690
15889
|
}),
|
|
15890
|
+
/**
|
|
15891
|
+
* Returns paginated list of per-store credit quotas for the organization
|
|
15892
|
+
* @summary List store credit quotas
|
|
15893
|
+
* @param {number} [page] Page number
|
|
15894
|
+
* @param {number} [perPage] Items per page
|
|
15895
|
+
* @param {string} [search] Search by store name
|
|
15896
|
+
* @param {*} [options] Override http request option.
|
|
15897
|
+
* @throws {RequiredError}
|
|
15898
|
+
*/
|
|
15899
|
+
adminBillingStoreQuotasGet: (page_1, perPage_1, search_1, ...args_1) => __awaiter(this, [page_1, perPage_1, search_1, ...args_1], void 0, function* (page, perPage, search, options = {}) {
|
|
15900
|
+
const localVarPath = `/admin/billing/store-quotas`;
|
|
15901
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15902
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15903
|
+
let baseOptions;
|
|
15904
|
+
if (configuration) {
|
|
15905
|
+
baseOptions = configuration.baseOptions;
|
|
15906
|
+
}
|
|
15907
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15908
|
+
const localVarHeaderParameter = {};
|
|
15909
|
+
const localVarQueryParameter = {};
|
|
15910
|
+
// authentication BearerAuth required
|
|
15911
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15912
|
+
if (page !== undefined) {
|
|
15913
|
+
localVarQueryParameter['page'] = page;
|
|
15914
|
+
}
|
|
15915
|
+
if (perPage !== undefined) {
|
|
15916
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
15917
|
+
}
|
|
15918
|
+
if (search !== undefined) {
|
|
15919
|
+
localVarQueryParameter['search'] = search;
|
|
15920
|
+
}
|
|
15921
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15923
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15924
|
+
return {
|
|
15925
|
+
url: toPathString(localVarUrlObj),
|
|
15926
|
+
options: localVarRequestOptions,
|
|
15927
|
+
};
|
|
15928
|
+
}),
|
|
15929
|
+
/**
|
|
15930
|
+
* Creates a per-store credit quota with configurable window and enforcement
|
|
15931
|
+
* @summary Create store credit quota
|
|
15932
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
|
|
15933
|
+
* @param {*} [options] Override http request option.
|
|
15934
|
+
* @throws {RequiredError}
|
|
15935
|
+
*/
|
|
15936
|
+
adminBillingStoreQuotasPost: (dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (dataTypesStoreQuotaRequest, options = {}) {
|
|
15937
|
+
// verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
|
|
15938
|
+
assertParamExists('adminBillingStoreQuotasPost', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
|
|
15939
|
+
const localVarPath = `/admin/billing/store-quotas`;
|
|
15940
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15941
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15942
|
+
let baseOptions;
|
|
15943
|
+
if (configuration) {
|
|
15944
|
+
baseOptions = configuration.baseOptions;
|
|
15945
|
+
}
|
|
15946
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15947
|
+
const localVarHeaderParameter = {};
|
|
15948
|
+
const localVarQueryParameter = {};
|
|
15949
|
+
// authentication BearerAuth required
|
|
15950
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15951
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15952
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15954
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15955
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
|
|
15956
|
+
return {
|
|
15957
|
+
url: toPathString(localVarUrlObj),
|
|
15958
|
+
options: localVarRequestOptions,
|
|
15959
|
+
};
|
|
15960
|
+
}),
|
|
15961
|
+
/**
|
|
15962
|
+
* Deletes a per-store credit quota by UUID
|
|
15963
|
+
* @summary Delete store credit quota
|
|
15964
|
+
* @param {string} quotaUuid Quota UUID
|
|
15965
|
+
* @param {*} [options] Override http request option.
|
|
15966
|
+
* @throws {RequiredError}
|
|
15967
|
+
*/
|
|
15968
|
+
adminBillingStoreQuotasQuotaUuidDelete: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
|
|
15969
|
+
// verify required parameter 'quotaUuid' is not null or undefined
|
|
15970
|
+
assertParamExists('adminBillingStoreQuotasQuotaUuidDelete', 'quotaUuid', quotaUuid);
|
|
15971
|
+
const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
|
|
15972
|
+
.replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
|
|
15973
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15974
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15975
|
+
let baseOptions;
|
|
15976
|
+
if (configuration) {
|
|
15977
|
+
baseOptions = configuration.baseOptions;
|
|
15978
|
+
}
|
|
15979
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
15980
|
+
const localVarHeaderParameter = {};
|
|
15981
|
+
const localVarQueryParameter = {};
|
|
15982
|
+
// authentication BearerAuth required
|
|
15983
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15984
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15985
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15986
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15987
|
+
return {
|
|
15988
|
+
url: toPathString(localVarUrlObj),
|
|
15989
|
+
options: localVarRequestOptions,
|
|
15990
|
+
};
|
|
15991
|
+
}),
|
|
15992
|
+
/**
|
|
15993
|
+
* Returns a single store credit quota by UUID
|
|
15994
|
+
* @summary Get store credit quota
|
|
15995
|
+
* @param {string} quotaUuid Quota UUID
|
|
15996
|
+
* @param {*} [options] Override http request option.
|
|
15997
|
+
* @throws {RequiredError}
|
|
15998
|
+
*/
|
|
15999
|
+
adminBillingStoreQuotasQuotaUuidGet: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
|
|
16000
|
+
// verify required parameter 'quotaUuid' is not null or undefined
|
|
16001
|
+
assertParamExists('adminBillingStoreQuotasQuotaUuidGet', 'quotaUuid', quotaUuid);
|
|
16002
|
+
const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
|
|
16003
|
+
.replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
|
|
16004
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16005
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16006
|
+
let baseOptions;
|
|
16007
|
+
if (configuration) {
|
|
16008
|
+
baseOptions = configuration.baseOptions;
|
|
16009
|
+
}
|
|
16010
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16011
|
+
const localVarHeaderParameter = {};
|
|
16012
|
+
const localVarQueryParameter = {};
|
|
16013
|
+
// authentication BearerAuth required
|
|
16014
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16015
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16017
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16018
|
+
return {
|
|
16019
|
+
url: toPathString(localVarUrlObj),
|
|
16020
|
+
options: localVarRequestOptions,
|
|
16021
|
+
};
|
|
16022
|
+
}),
|
|
16023
|
+
/**
|
|
16024
|
+
* Updates an existing per-store credit quota
|
|
16025
|
+
* @summary Update store credit quota
|
|
16026
|
+
* @param {string} quotaUuid Quota UUID
|
|
16027
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
|
|
16028
|
+
* @param {*} [options] Override http request option.
|
|
16029
|
+
* @throws {RequiredError}
|
|
16030
|
+
*/
|
|
16031
|
+
adminBillingStoreQuotasQuotaUuidPut: (quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (quotaUuid, dataTypesStoreQuotaRequest, options = {}) {
|
|
16032
|
+
// verify required parameter 'quotaUuid' is not null or undefined
|
|
16033
|
+
assertParamExists('adminBillingStoreQuotasQuotaUuidPut', 'quotaUuid', quotaUuid);
|
|
16034
|
+
// verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
|
|
16035
|
+
assertParamExists('adminBillingStoreQuotasQuotaUuidPut', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
|
|
16036
|
+
const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
|
|
16037
|
+
.replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
|
|
16038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16039
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16040
|
+
let baseOptions;
|
|
16041
|
+
if (configuration) {
|
|
16042
|
+
baseOptions = configuration.baseOptions;
|
|
16043
|
+
}
|
|
16044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
16045
|
+
const localVarHeaderParameter = {};
|
|
16046
|
+
const localVarQueryParameter = {};
|
|
16047
|
+
// authentication BearerAuth required
|
|
16048
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16049
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16050
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16052
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16053
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
|
|
16054
|
+
return {
|
|
16055
|
+
url: toPathString(localVarUrlObj),
|
|
16056
|
+
options: localVarRequestOptions,
|
|
16057
|
+
};
|
|
16058
|
+
}),
|
|
16059
|
+
/**
|
|
16060
|
+
* Returns paginated usage summary for all stores in the organization
|
|
16061
|
+
* @summary Get all stores usage summary
|
|
16062
|
+
* @param {number} [page] Page number
|
|
16063
|
+
* @param {number} [perPage] Items per page
|
|
16064
|
+
* @param {*} [options] Override http request option.
|
|
16065
|
+
* @throws {RequiredError}
|
|
16066
|
+
*/
|
|
16067
|
+
adminBillingStoreUsageGet: (page_1, perPage_1, ...args_1) => __awaiter(this, [page_1, perPage_1, ...args_1], void 0, function* (page, perPage, options = {}) {
|
|
16068
|
+
const localVarPath = `/admin/billing/store-usage`;
|
|
16069
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16070
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16071
|
+
let baseOptions;
|
|
16072
|
+
if (configuration) {
|
|
16073
|
+
baseOptions = configuration.baseOptions;
|
|
16074
|
+
}
|
|
16075
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16076
|
+
const localVarHeaderParameter = {};
|
|
16077
|
+
const localVarQueryParameter = {};
|
|
16078
|
+
// authentication BearerAuth required
|
|
16079
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16080
|
+
if (page !== undefined) {
|
|
16081
|
+
localVarQueryParameter['page'] = page;
|
|
16082
|
+
}
|
|
16083
|
+
if (perPage !== undefined) {
|
|
16084
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
16085
|
+
}
|
|
16086
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16087
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16088
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16089
|
+
return {
|
|
16090
|
+
url: toPathString(localVarUrlObj),
|
|
16091
|
+
options: localVarRequestOptions,
|
|
16092
|
+
};
|
|
16093
|
+
}),
|
|
16094
|
+
/**
|
|
16095
|
+
* Returns detailed usage breakdown for a single store
|
|
16096
|
+
* @summary Get single store usage detail
|
|
16097
|
+
* @param {string} xStoreId Store external ID
|
|
16098
|
+
* @param {*} [options] Override http request option.
|
|
16099
|
+
* @throws {RequiredError}
|
|
16100
|
+
*/
|
|
16101
|
+
adminBillingStoreUsageXStoreIdGet: (xStoreId_1, ...args_1) => __awaiter(this, [xStoreId_1, ...args_1], void 0, function* (xStoreId, options = {}) {
|
|
16102
|
+
// verify required parameter 'xStoreId' is not null or undefined
|
|
16103
|
+
assertParamExists('adminBillingStoreUsageXStoreIdGet', 'xStoreId', xStoreId);
|
|
16104
|
+
const localVarPath = `/admin/billing/store-usage/{xStoreId}`
|
|
16105
|
+
.replace(`{${"xStoreId"}}`, encodeURIComponent(String(xStoreId)));
|
|
16106
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16107
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16108
|
+
let baseOptions;
|
|
16109
|
+
if (configuration) {
|
|
16110
|
+
baseOptions = configuration.baseOptions;
|
|
16111
|
+
}
|
|
16112
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16113
|
+
const localVarHeaderParameter = {};
|
|
16114
|
+
const localVarQueryParameter = {};
|
|
16115
|
+
// authentication BearerAuth required
|
|
16116
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16120
|
+
return {
|
|
16121
|
+
url: toPathString(localVarUrlObj),
|
|
16122
|
+
options: localVarRequestOptions,
|
|
16123
|
+
};
|
|
16124
|
+
}),
|
|
15691
16125
|
/**
|
|
15692
16126
|
* Returns detailed usage information with charts and breakdown, supports time granularity and pagination
|
|
15693
16127
|
* @summary Get usage details with granularity and pagination
|
|
@@ -15901,6 +16335,28 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
15901
16335
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15902
16336
|
});
|
|
15903
16337
|
},
|
|
16338
|
+
/**
|
|
16339
|
+
* Returns paginated alert trigger history with optional filters
|
|
16340
|
+
* @summary Get alert trigger history
|
|
16341
|
+
* @param {string} [storeId] Filter by store xStoreID
|
|
16342
|
+
* @param {string} [from] Start date (YYYY-MM-DD)
|
|
16343
|
+
* @param {string} [to] End date (YYYY-MM-DD)
|
|
16344
|
+
* @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
|
|
16345
|
+
* @param {string} [status] Filter by status (resolved, unresolved)
|
|
16346
|
+
* @param {number} [page] Page number
|
|
16347
|
+
* @param {number} [perPage] Items per page
|
|
16348
|
+
* @param {*} [options] Override http request option.
|
|
16349
|
+
* @throws {RequiredError}
|
|
16350
|
+
*/
|
|
16351
|
+
adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
|
|
16352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16353
|
+
var _a, _b, _c;
|
|
16354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options);
|
|
16355
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16356
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16357
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16358
|
+
});
|
|
16359
|
+
},
|
|
15904
16360
|
/**
|
|
15905
16361
|
* Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
|
|
15906
16362
|
* @summary Get billing alerts
|
|
@@ -16032,6 +16488,24 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16032
16488
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16033
16489
|
});
|
|
16034
16490
|
},
|
|
16491
|
+
/**
|
|
16492
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
16493
|
+
* @summary Export credit notes for GSTR-1
|
|
16494
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
16495
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
16496
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
16497
|
+
* @param {*} [options] Override http request option.
|
|
16498
|
+
* @throws {RequiredError}
|
|
16499
|
+
*/
|
|
16500
|
+
adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
|
|
16501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16502
|
+
var _a, _b, _c;
|
|
16503
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options);
|
|
16504
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16505
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditNotesExportGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16506
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16507
|
+
});
|
|
16508
|
+
},
|
|
16035
16509
|
/**
|
|
16036
16510
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
16037
16511
|
* @summary Get credit purchases
|
|
@@ -16140,13 +16614,14 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16140
16614
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
16141
16615
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
16142
16616
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
16617
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
16143
16618
|
* @param {*} [options] Override http request option.
|
|
16144
16619
|
* @throws {RequiredError}
|
|
16145
16620
|
*/
|
|
16146
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
16621
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
|
|
16147
16622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16148
16623
|
var _a, _b, _c;
|
|
16149
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
|
|
16624
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options);
|
|
16150
16625
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16151
16626
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16152
16627
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16233,6 +16708,22 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16233
16708
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16234
16709
|
});
|
|
16235
16710
|
},
|
|
16711
|
+
/**
|
|
16712
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
16713
|
+
* @summary Void a credit note
|
|
16714
|
+
* @param {string} id Invoice ID (UUID)
|
|
16715
|
+
* @param {*} [options] Override http request option.
|
|
16716
|
+
* @throws {RequiredError}
|
|
16717
|
+
*/
|
|
16718
|
+
adminBillingInvoicesIdVoidPost(id, options) {
|
|
16719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16720
|
+
var _a, _b, _c;
|
|
16721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdVoidPost(id, options);
|
|
16722
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16723
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdVoidPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16724
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16725
|
+
});
|
|
16726
|
+
},
|
|
16236
16727
|
/**
|
|
16237
16728
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
16238
16729
|
* @summary Pay a pending invoice
|
|
@@ -16498,6 +16989,122 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
16498
16989
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16499
16990
|
});
|
|
16500
16991
|
},
|
|
16992
|
+
/**
|
|
16993
|
+
* Returns paginated list of per-store credit quotas for the organization
|
|
16994
|
+
* @summary List store credit quotas
|
|
16995
|
+
* @param {number} [page] Page number
|
|
16996
|
+
* @param {number} [perPage] Items per page
|
|
16997
|
+
* @param {string} [search] Search by store name
|
|
16998
|
+
* @param {*} [options] Override http request option.
|
|
16999
|
+
* @throws {RequiredError}
|
|
17000
|
+
*/
|
|
17001
|
+
adminBillingStoreQuotasGet(page, perPage, search, options) {
|
|
17002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17003
|
+
var _a, _b, _c;
|
|
17004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasGet(page, perPage, search, options);
|
|
17005
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17006
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17007
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17008
|
+
});
|
|
17009
|
+
},
|
|
17010
|
+
/**
|
|
17011
|
+
* Creates a per-store credit quota with configurable window and enforcement
|
|
17012
|
+
* @summary Create store credit quota
|
|
17013
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
|
|
17014
|
+
* @param {*} [options] Override http request option.
|
|
17015
|
+
* @throws {RequiredError}
|
|
17016
|
+
*/
|
|
17017
|
+
adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
|
|
17018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17019
|
+
var _a, _b, _c;
|
|
17020
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options);
|
|
17021
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17022
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17023
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17024
|
+
});
|
|
17025
|
+
},
|
|
17026
|
+
/**
|
|
17027
|
+
* Deletes a per-store credit quota by UUID
|
|
17028
|
+
* @summary Delete store credit quota
|
|
17029
|
+
* @param {string} quotaUuid Quota UUID
|
|
17030
|
+
* @param {*} [options] Override http request option.
|
|
17031
|
+
* @throws {RequiredError}
|
|
17032
|
+
*/
|
|
17033
|
+
adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
|
|
17034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17035
|
+
var _a, _b, _c;
|
|
17036
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options);
|
|
17037
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17038
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17039
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17040
|
+
});
|
|
17041
|
+
},
|
|
17042
|
+
/**
|
|
17043
|
+
* Returns a single store credit quota by UUID
|
|
17044
|
+
* @summary Get store credit quota
|
|
17045
|
+
* @param {string} quotaUuid Quota UUID
|
|
17046
|
+
* @param {*} [options] Override http request option.
|
|
17047
|
+
* @throws {RequiredError}
|
|
17048
|
+
*/
|
|
17049
|
+
adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
|
|
17050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17051
|
+
var _a, _b, _c;
|
|
17052
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options);
|
|
17053
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17054
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17055
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17056
|
+
});
|
|
17057
|
+
},
|
|
17058
|
+
/**
|
|
17059
|
+
* Updates an existing per-store credit quota
|
|
17060
|
+
* @summary Update store credit quota
|
|
17061
|
+
* @param {string} quotaUuid Quota UUID
|
|
17062
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
|
|
17063
|
+
* @param {*} [options] Override http request option.
|
|
17064
|
+
* @throws {RequiredError}
|
|
17065
|
+
*/
|
|
17066
|
+
adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
|
|
17067
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17068
|
+
var _a, _b, _c;
|
|
17069
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options);
|
|
17070
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17071
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17072
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17073
|
+
});
|
|
17074
|
+
},
|
|
17075
|
+
/**
|
|
17076
|
+
* Returns paginated usage summary for all stores in the organization
|
|
17077
|
+
* @summary Get all stores usage summary
|
|
17078
|
+
* @param {number} [page] Page number
|
|
17079
|
+
* @param {number} [perPage] Items per page
|
|
17080
|
+
* @param {*} [options] Override http request option.
|
|
17081
|
+
* @throws {RequiredError}
|
|
17082
|
+
*/
|
|
17083
|
+
adminBillingStoreUsageGet(page, perPage, options) {
|
|
17084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17085
|
+
var _a, _b, _c;
|
|
17086
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageGet(page, perPage, options);
|
|
17087
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17088
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17089
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17090
|
+
});
|
|
17091
|
+
},
|
|
17092
|
+
/**
|
|
17093
|
+
* Returns detailed usage breakdown for a single store
|
|
17094
|
+
* @summary Get single store usage detail
|
|
17095
|
+
* @param {string} xStoreId Store external ID
|
|
17096
|
+
* @param {*} [options] Override http request option.
|
|
17097
|
+
* @throws {RequiredError}
|
|
17098
|
+
*/
|
|
17099
|
+
adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
|
|
17100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17101
|
+
var _a, _b, _c;
|
|
17102
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageXStoreIdGet(xStoreId, options);
|
|
17103
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17104
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreUsageXStoreIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17105
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17106
|
+
});
|
|
17107
|
+
},
|
|
16501
17108
|
/**
|
|
16502
17109
|
* Returns detailed usage information with charts and breakdown, supports time granularity and pagination
|
|
16503
17110
|
* @summary Get usage details with granularity and pagination
|
|
@@ -16604,6 +17211,22 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16604
17211
|
adminBillingActivePlanGet(options) {
|
|
16605
17212
|
return localVarFp.adminBillingActivePlanGet(options).then((request) => request(axios, basePath));
|
|
16606
17213
|
},
|
|
17214
|
+
/**
|
|
17215
|
+
* Returns paginated alert trigger history with optional filters
|
|
17216
|
+
* @summary Get alert trigger history
|
|
17217
|
+
* @param {string} [storeId] Filter by store xStoreID
|
|
17218
|
+
* @param {string} [from] Start date (YYYY-MM-DD)
|
|
17219
|
+
* @param {string} [to] End date (YYYY-MM-DD)
|
|
17220
|
+
* @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
|
|
17221
|
+
* @param {string} [status] Filter by status (resolved, unresolved)
|
|
17222
|
+
* @param {number} [page] Page number
|
|
17223
|
+
* @param {number} [perPage] Items per page
|
|
17224
|
+
* @param {*} [options] Override http request option.
|
|
17225
|
+
* @throws {RequiredError}
|
|
17226
|
+
*/
|
|
17227
|
+
adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
|
|
17228
|
+
return localVarFp.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(axios, basePath));
|
|
17229
|
+
},
|
|
16607
17230
|
/**
|
|
16608
17231
|
* Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
|
|
16609
17232
|
* @summary Get billing alerts
|
|
@@ -16693,6 +17316,18 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16693
17316
|
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
16694
17317
|
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
16695
17318
|
},
|
|
17319
|
+
/**
|
|
17320
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
17321
|
+
* @summary Export credit notes for GSTR-1
|
|
17322
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
17323
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
17324
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
17325
|
+
* @param {*} [options] Override http request option.
|
|
17326
|
+
* @throws {RequiredError}
|
|
17327
|
+
*/
|
|
17328
|
+
adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
|
|
17329
|
+
return localVarFp.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(axios, basePath));
|
|
17330
|
+
},
|
|
16696
17331
|
/**
|
|
16697
17332
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
16698
17333
|
* @summary Get credit purchases
|
|
@@ -16771,11 +17406,12 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16771
17406
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
16772
17407
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
16773
17408
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
17409
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
16774
17410
|
* @param {*} [options] Override http request option.
|
|
16775
17411
|
* @throws {RequiredError}
|
|
16776
17412
|
*/
|
|
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));
|
|
17413
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
|
|
17414
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(axios, basePath));
|
|
16779
17415
|
},
|
|
16780
17416
|
/**
|
|
16781
17417
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -16828,6 +17464,16 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
16828
17464
|
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
16829
17465
|
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
16830
17466
|
},
|
|
17467
|
+
/**
|
|
17468
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
17469
|
+
* @summary Void a credit note
|
|
17470
|
+
* @param {string} id Invoice ID (UUID)
|
|
17471
|
+
* @param {*} [options] Override http request option.
|
|
17472
|
+
* @throws {RequiredError}
|
|
17473
|
+
*/
|
|
17474
|
+
adminBillingInvoicesIdVoidPost(id, options) {
|
|
17475
|
+
return localVarFp.adminBillingInvoicesIdVoidPost(id, options).then((request) => request(axios, basePath));
|
|
17476
|
+
},
|
|
16831
17477
|
/**
|
|
16832
17478
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
16833
17479
|
* @summary Pay a pending invoice
|
|
@@ -17003,6 +17649,80 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
17003
17649
|
adminBillingSavedCardsGet(options) {
|
|
17004
17650
|
return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
|
|
17005
17651
|
},
|
|
17652
|
+
/**
|
|
17653
|
+
* Returns paginated list of per-store credit quotas for the organization
|
|
17654
|
+
* @summary List store credit quotas
|
|
17655
|
+
* @param {number} [page] Page number
|
|
17656
|
+
* @param {number} [perPage] Items per page
|
|
17657
|
+
* @param {string} [search] Search by store name
|
|
17658
|
+
* @param {*} [options] Override http request option.
|
|
17659
|
+
* @throws {RequiredError}
|
|
17660
|
+
*/
|
|
17661
|
+
adminBillingStoreQuotasGet(page, perPage, search, options) {
|
|
17662
|
+
return localVarFp.adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(axios, basePath));
|
|
17663
|
+
},
|
|
17664
|
+
/**
|
|
17665
|
+
* Creates a per-store credit quota with configurable window and enforcement
|
|
17666
|
+
* @summary Create store credit quota
|
|
17667
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
|
|
17668
|
+
* @param {*} [options] Override http request option.
|
|
17669
|
+
* @throws {RequiredError}
|
|
17670
|
+
*/
|
|
17671
|
+
adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
|
|
17672
|
+
return localVarFp.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
|
|
17673
|
+
},
|
|
17674
|
+
/**
|
|
17675
|
+
* Deletes a per-store credit quota by UUID
|
|
17676
|
+
* @summary Delete store credit quota
|
|
17677
|
+
* @param {string} quotaUuid Quota UUID
|
|
17678
|
+
* @param {*} [options] Override http request option.
|
|
17679
|
+
* @throws {RequiredError}
|
|
17680
|
+
*/
|
|
17681
|
+
adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
|
|
17682
|
+
return localVarFp.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(axios, basePath));
|
|
17683
|
+
},
|
|
17684
|
+
/**
|
|
17685
|
+
* Returns a single store credit quota by UUID
|
|
17686
|
+
* @summary Get store credit quota
|
|
17687
|
+
* @param {string} quotaUuid Quota UUID
|
|
17688
|
+
* @param {*} [options] Override http request option.
|
|
17689
|
+
* @throws {RequiredError}
|
|
17690
|
+
*/
|
|
17691
|
+
adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
|
|
17692
|
+
return localVarFp.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(axios, basePath));
|
|
17693
|
+
},
|
|
17694
|
+
/**
|
|
17695
|
+
* Updates an existing per-store credit quota
|
|
17696
|
+
* @summary Update store credit quota
|
|
17697
|
+
* @param {string} quotaUuid Quota UUID
|
|
17698
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
|
|
17699
|
+
* @param {*} [options] Override http request option.
|
|
17700
|
+
* @throws {RequiredError}
|
|
17701
|
+
*/
|
|
17702
|
+
adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
|
|
17703
|
+
return localVarFp.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
|
|
17704
|
+
},
|
|
17705
|
+
/**
|
|
17706
|
+
* Returns paginated usage summary for all stores in the organization
|
|
17707
|
+
* @summary Get all stores usage summary
|
|
17708
|
+
* @param {number} [page] Page number
|
|
17709
|
+
* @param {number} [perPage] Items per page
|
|
17710
|
+
* @param {*} [options] Override http request option.
|
|
17711
|
+
* @throws {RequiredError}
|
|
17712
|
+
*/
|
|
17713
|
+
adminBillingStoreUsageGet(page, perPage, options) {
|
|
17714
|
+
return localVarFp.adminBillingStoreUsageGet(page, perPage, options).then((request) => request(axios, basePath));
|
|
17715
|
+
},
|
|
17716
|
+
/**
|
|
17717
|
+
* Returns detailed usage breakdown for a single store
|
|
17718
|
+
* @summary Get single store usage detail
|
|
17719
|
+
* @param {string} xStoreId Store external ID
|
|
17720
|
+
* @param {*} [options] Override http request option.
|
|
17721
|
+
* @throws {RequiredError}
|
|
17722
|
+
*/
|
|
17723
|
+
adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
|
|
17724
|
+
return localVarFp.adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(axios, basePath));
|
|
17725
|
+
},
|
|
17006
17726
|
/**
|
|
17007
17727
|
* Returns detailed usage information with charts and breakdown, supports time granularity and pagination
|
|
17008
17728
|
* @summary Get usage details with granularity and pagination
|
|
@@ -17080,6 +17800,23 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17080
17800
|
adminBillingActivePlanGet(options) {
|
|
17081
17801
|
return BillingDashboardApiFp(this.configuration).adminBillingActivePlanGet(options).then((request) => request(this.axios, this.basePath));
|
|
17082
17802
|
}
|
|
17803
|
+
/**
|
|
17804
|
+
* Returns paginated alert trigger history with optional filters
|
|
17805
|
+
* @summary Get alert trigger history
|
|
17806
|
+
* @param {string} [storeId] Filter by store xStoreID
|
|
17807
|
+
* @param {string} [from] Start date (YYYY-MM-DD)
|
|
17808
|
+
* @param {string} [to] End date (YYYY-MM-DD)
|
|
17809
|
+
* @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
|
|
17810
|
+
* @param {string} [status] Filter by status (resolved, unresolved)
|
|
17811
|
+
* @param {number} [page] Page number
|
|
17812
|
+
* @param {number} [perPage] Items per page
|
|
17813
|
+
* @param {*} [options] Override http request option.
|
|
17814
|
+
* @throws {RequiredError}
|
|
17815
|
+
* @memberof BillingDashboardApi
|
|
17816
|
+
*/
|
|
17817
|
+
adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
|
|
17818
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
17819
|
+
}
|
|
17083
17820
|
/**
|
|
17084
17821
|
* Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
|
|
17085
17822
|
* @summary Get billing alerts
|
|
@@ -17176,6 +17913,19 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17176
17913
|
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
17177
17914
|
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
17178
17915
|
}
|
|
17916
|
+
/**
|
|
17917
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
17918
|
+
* @summary Export credit notes for GSTR-1
|
|
17919
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
17920
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
17921
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
17922
|
+
* @param {*} [options] Override http request option.
|
|
17923
|
+
* @throws {RequiredError}
|
|
17924
|
+
* @memberof BillingDashboardApi
|
|
17925
|
+
*/
|
|
17926
|
+
adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
|
|
17927
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(this.axios, this.basePath));
|
|
17928
|
+
}
|
|
17179
17929
|
/**
|
|
17180
17930
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
17181
17931
|
* @summary Get credit purchases
|
|
@@ -17259,12 +18009,13 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17259
18009
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
17260
18010
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
17261
18011
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
18012
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
17262
18013
|
* @param {*} [options] Override http request option.
|
|
17263
18014
|
* @throws {RequiredError}
|
|
17264
18015
|
* @memberof BillingDashboardApi
|
|
17265
18016
|
*/
|
|
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));
|
|
18017
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
|
|
18018
|
+
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
18019
|
}
|
|
17269
18020
|
/**
|
|
17270
18021
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -17322,6 +18073,17 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17322
18073
|
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
17323
18074
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17324
18075
|
}
|
|
18076
|
+
/**
|
|
18077
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
18078
|
+
* @summary Void a credit note
|
|
18079
|
+
* @param {string} id Invoice ID (UUID)
|
|
18080
|
+
* @param {*} [options] Override http request option.
|
|
18081
|
+
* @throws {RequiredError}
|
|
18082
|
+
* @memberof BillingDashboardApi
|
|
18083
|
+
*/
|
|
18084
|
+
adminBillingInvoicesIdVoidPost(id, options) {
|
|
18085
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdVoidPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
18086
|
+
}
|
|
17325
18087
|
/**
|
|
17326
18088
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
17327
18089
|
* @summary Pay a pending invoice
|
|
@@ -17512,6 +18274,87 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
17512
18274
|
adminBillingSavedCardsGet(options) {
|
|
17513
18275
|
return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
|
|
17514
18276
|
}
|
|
18277
|
+
/**
|
|
18278
|
+
* Returns paginated list of per-store credit quotas for the organization
|
|
18279
|
+
* @summary List store credit quotas
|
|
18280
|
+
* @param {number} [page] Page number
|
|
18281
|
+
* @param {number} [perPage] Items per page
|
|
18282
|
+
* @param {string} [search] Search by store name
|
|
18283
|
+
* @param {*} [options] Override http request option.
|
|
18284
|
+
* @throws {RequiredError}
|
|
18285
|
+
* @memberof BillingDashboardApi
|
|
18286
|
+
*/
|
|
18287
|
+
adminBillingStoreQuotasGet(page, perPage, search, options) {
|
|
18288
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(this.axios, this.basePath));
|
|
18289
|
+
}
|
|
18290
|
+
/**
|
|
18291
|
+
* Creates a per-store credit quota with configurable window and enforcement
|
|
18292
|
+
* @summary Create store credit quota
|
|
18293
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
|
|
18294
|
+
* @param {*} [options] Override http request option.
|
|
18295
|
+
* @throws {RequiredError}
|
|
18296
|
+
* @memberof BillingDashboardApi
|
|
18297
|
+
*/
|
|
18298
|
+
adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
|
|
18299
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18300
|
+
}
|
|
18301
|
+
/**
|
|
18302
|
+
* Deletes a per-store credit quota by UUID
|
|
18303
|
+
* @summary Delete store credit quota
|
|
18304
|
+
* @param {string} quotaUuid Quota UUID
|
|
18305
|
+
* @param {*} [options] Override http request option.
|
|
18306
|
+
* @throws {RequiredError}
|
|
18307
|
+
* @memberof BillingDashboardApi
|
|
18308
|
+
*/
|
|
18309
|
+
adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
|
|
18310
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(this.axios, this.basePath));
|
|
18311
|
+
}
|
|
18312
|
+
/**
|
|
18313
|
+
* Returns a single store credit quota by UUID
|
|
18314
|
+
* @summary Get store credit quota
|
|
18315
|
+
* @param {string} quotaUuid Quota UUID
|
|
18316
|
+
* @param {*} [options] Override http request option.
|
|
18317
|
+
* @throws {RequiredError}
|
|
18318
|
+
* @memberof BillingDashboardApi
|
|
18319
|
+
*/
|
|
18320
|
+
adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
|
|
18321
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(this.axios, this.basePath));
|
|
18322
|
+
}
|
|
18323
|
+
/**
|
|
18324
|
+
* Updates an existing per-store credit quota
|
|
18325
|
+
* @summary Update store credit quota
|
|
18326
|
+
* @param {string} quotaUuid Quota UUID
|
|
18327
|
+
* @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
|
|
18328
|
+
* @param {*} [options] Override http request option.
|
|
18329
|
+
* @throws {RequiredError}
|
|
18330
|
+
* @memberof BillingDashboardApi
|
|
18331
|
+
*/
|
|
18332
|
+
adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
|
|
18333
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18334
|
+
}
|
|
18335
|
+
/**
|
|
18336
|
+
* Returns paginated usage summary for all stores in the organization
|
|
18337
|
+
* @summary Get all stores usage summary
|
|
18338
|
+
* @param {number} [page] Page number
|
|
18339
|
+
* @param {number} [perPage] Items per page
|
|
18340
|
+
* @param {*} [options] Override http request option.
|
|
18341
|
+
* @throws {RequiredError}
|
|
18342
|
+
* @memberof BillingDashboardApi
|
|
18343
|
+
*/
|
|
18344
|
+
adminBillingStoreUsageGet(page, perPage, options) {
|
|
18345
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreUsageGet(page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
18346
|
+
}
|
|
18347
|
+
/**
|
|
18348
|
+
* Returns detailed usage breakdown for a single store
|
|
18349
|
+
* @summary Get single store usage detail
|
|
18350
|
+
* @param {string} xStoreId Store external ID
|
|
18351
|
+
* @param {*} [options] Override http request option.
|
|
18352
|
+
* @throws {RequiredError}
|
|
18353
|
+
* @memberof BillingDashboardApi
|
|
18354
|
+
*/
|
|
18355
|
+
adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
|
|
18356
|
+
return BillingDashboardApiFp(this.configuration).adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(this.axios, this.basePath));
|
|
18357
|
+
}
|
|
17515
18358
|
/**
|
|
17516
18359
|
* Returns detailed usage information with charts and breakdown, supports time granularity and pagination
|
|
17517
18360
|
* @summary Get usage details with granularity and pagination
|
|
@@ -17654,6 +18497,13 @@ export const AdminBillingInvoicesGetSortOrderEnum = {
|
|
|
17654
18497
|
Asc2: 'ASC',
|
|
17655
18498
|
Desc2: 'DESC'
|
|
17656
18499
|
};
|
|
18500
|
+
/**
|
|
18501
|
+
* @export
|
|
18502
|
+
*/
|
|
18503
|
+
export const AdminBillingInvoicesGetInvoiceTypeEnum = {
|
|
18504
|
+
TaxInvoice: 'tax_invoice',
|
|
18505
|
+
CreditNote: 'credit_note'
|
|
18506
|
+
};
|
|
17657
18507
|
/**
|
|
17658
18508
|
* @export
|
|
17659
18509
|
*/
|
|
@@ -50294,6 +51144,38 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
50294
51144
|
options: localVarRequestOptions,
|
|
50295
51145
|
};
|
|
50296
51146
|
}),
|
|
51147
|
+
/**
|
|
51148
|
+
* 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.
|
|
51149
|
+
* @summary Create an immediate plan change order
|
|
51150
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
51151
|
+
* @param {*} [options] Override http request option.
|
|
51152
|
+
* @throws {RequiredError}
|
|
51153
|
+
*/
|
|
51154
|
+
adminSubscriptionsPlanChangeImmediateOrderPost: (subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options = {}) {
|
|
51155
|
+
// verify required parameter 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest' is not null or undefined
|
|
51156
|
+
assertParamExists('adminSubscriptionsPlanChangeImmediateOrderPost', 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest', subscriptionRouteImmediatePlanChangeOrderHTTPRequest);
|
|
51157
|
+
const localVarPath = `/admin/subscriptions/plan-change/immediate/order`;
|
|
51158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51159
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51160
|
+
let baseOptions;
|
|
51161
|
+
if (configuration) {
|
|
51162
|
+
baseOptions = configuration.baseOptions;
|
|
51163
|
+
}
|
|
51164
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
51165
|
+
const localVarHeaderParameter = {};
|
|
51166
|
+
const localVarQueryParameter = {};
|
|
51167
|
+
// authentication BearerAuth required
|
|
51168
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
51169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51172
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
51173
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, localVarRequestOptions, configuration);
|
|
51174
|
+
return {
|
|
51175
|
+
url: toPathString(localVarUrlObj),
|
|
51176
|
+
options: localVarRequestOptions,
|
|
51177
|
+
};
|
|
51178
|
+
}),
|
|
50297
51179
|
/**
|
|
50298
51180
|
* 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
51181
|
* @summary Preview plan change details
|
|
@@ -50326,6 +51208,92 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
50326
51208
|
options: localVarRequestOptions,
|
|
50327
51209
|
};
|
|
50328
51210
|
}),
|
|
51211
|
+
/**
|
|
51212
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
51213
|
+
* @summary Cancel a scheduled plan change
|
|
51214
|
+
* @param {*} [options] Override http request option.
|
|
51215
|
+
* @throws {RequiredError}
|
|
51216
|
+
*/
|
|
51217
|
+
adminSubscriptionsPlanChangeScheduleDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
51218
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
51219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51221
|
+
let baseOptions;
|
|
51222
|
+
if (configuration) {
|
|
51223
|
+
baseOptions = configuration.baseOptions;
|
|
51224
|
+
}
|
|
51225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
51226
|
+
const localVarHeaderParameter = {};
|
|
51227
|
+
const localVarQueryParameter = {};
|
|
51228
|
+
// authentication BearerAuth required
|
|
51229
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
51230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
51233
|
+
return {
|
|
51234
|
+
url: toPathString(localVarUrlObj),
|
|
51235
|
+
options: localVarRequestOptions,
|
|
51236
|
+
};
|
|
51237
|
+
}),
|
|
51238
|
+
/**
|
|
51239
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
51240
|
+
* @summary Get pending scheduled plan change
|
|
51241
|
+
* @param {*} [options] Override http request option.
|
|
51242
|
+
* @throws {RequiredError}
|
|
51243
|
+
*/
|
|
51244
|
+
adminSubscriptionsPlanChangeScheduleGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
51245
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
51246
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51247
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51248
|
+
let baseOptions;
|
|
51249
|
+
if (configuration) {
|
|
51250
|
+
baseOptions = configuration.baseOptions;
|
|
51251
|
+
}
|
|
51252
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
51253
|
+
const localVarHeaderParameter = {};
|
|
51254
|
+
const localVarQueryParameter = {};
|
|
51255
|
+
// authentication BearerAuth required
|
|
51256
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
51257
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51259
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
51260
|
+
return {
|
|
51261
|
+
url: toPathString(localVarUrlObj),
|
|
51262
|
+
options: localVarRequestOptions,
|
|
51263
|
+
};
|
|
51264
|
+
}),
|
|
51265
|
+
/**
|
|
51266
|
+
* 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.
|
|
51267
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
51268
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
51269
|
+
* @param {*} [options] Override http request option.
|
|
51270
|
+
* @throws {RequiredError}
|
|
51271
|
+
*/
|
|
51272
|
+
adminSubscriptionsPlanChangeSchedulePost: (subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteSchedulePlanChangeHTTPRequest, options = {}) {
|
|
51273
|
+
// verify required parameter 'subscriptionRouteSchedulePlanChangeHTTPRequest' is not null or undefined
|
|
51274
|
+
assertParamExists('adminSubscriptionsPlanChangeSchedulePost', 'subscriptionRouteSchedulePlanChangeHTTPRequest', subscriptionRouteSchedulePlanChangeHTTPRequest);
|
|
51275
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
51276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51277
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51278
|
+
let baseOptions;
|
|
51279
|
+
if (configuration) {
|
|
51280
|
+
baseOptions = configuration.baseOptions;
|
|
51281
|
+
}
|
|
51282
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
51283
|
+
const localVarHeaderParameter = {};
|
|
51284
|
+
const localVarQueryParameter = {};
|
|
51285
|
+
// authentication BearerAuth required
|
|
51286
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
51287
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51290
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
51291
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteSchedulePlanChangeHTTPRequest, localVarRequestOptions, configuration);
|
|
51292
|
+
return {
|
|
51293
|
+
url: toPathString(localVarUrlObj),
|
|
51294
|
+
options: localVarRequestOptions,
|
|
51295
|
+
};
|
|
51296
|
+
}),
|
|
50329
51297
|
/**
|
|
50330
51298
|
* Updates Subscription information by ID.
|
|
50331
51299
|
* @summary Update an existing Subscription
|
|
@@ -50528,6 +51496,22 @@ export const SubscriptionsApiFp = function (configuration) {
|
|
|
50528
51496
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50529
51497
|
});
|
|
50530
51498
|
},
|
|
51499
|
+
/**
|
|
51500
|
+
* 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.
|
|
51501
|
+
* @summary Create an immediate plan change order
|
|
51502
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
51503
|
+
* @param {*} [options] Override http request option.
|
|
51504
|
+
* @throws {RequiredError}
|
|
51505
|
+
*/
|
|
51506
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
|
|
51507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51508
|
+
var _a, _b, _c;
|
|
51509
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options);
|
|
51510
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
51511
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeImmediateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
51512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51513
|
+
});
|
|
51514
|
+
},
|
|
50531
51515
|
/**
|
|
50532
51516
|
* 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
51517
|
* @summary Preview plan change details
|
|
@@ -50544,6 +51528,52 @@ export const SubscriptionsApiFp = function (configuration) {
|
|
|
50544
51528
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50545
51529
|
});
|
|
50546
51530
|
},
|
|
51531
|
+
/**
|
|
51532
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
51533
|
+
* @summary Cancel a scheduled plan change
|
|
51534
|
+
* @param {*} [options] Override http request option.
|
|
51535
|
+
* @throws {RequiredError}
|
|
51536
|
+
*/
|
|
51537
|
+
adminSubscriptionsPlanChangeScheduleDelete(options) {
|
|
51538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51539
|
+
var _a, _b, _c;
|
|
51540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleDelete(options);
|
|
51541
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
51542
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
51543
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51544
|
+
});
|
|
51545
|
+
},
|
|
51546
|
+
/**
|
|
51547
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
51548
|
+
* @summary Get pending scheduled plan change
|
|
51549
|
+
* @param {*} [options] Override http request option.
|
|
51550
|
+
* @throws {RequiredError}
|
|
51551
|
+
*/
|
|
51552
|
+
adminSubscriptionsPlanChangeScheduleGet(options) {
|
|
51553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51554
|
+
var _a, _b, _c;
|
|
51555
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleGet(options);
|
|
51556
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
51557
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
51558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51559
|
+
});
|
|
51560
|
+
},
|
|
51561
|
+
/**
|
|
51562
|
+
* 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.
|
|
51563
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
51564
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
51565
|
+
* @param {*} [options] Override http request option.
|
|
51566
|
+
* @throws {RequiredError}
|
|
51567
|
+
*/
|
|
51568
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
|
|
51569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51570
|
+
var _a, _b, _c;
|
|
51571
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options);
|
|
51572
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
51573
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeSchedulePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
51574
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51575
|
+
});
|
|
51576
|
+
},
|
|
50547
51577
|
/**
|
|
50548
51578
|
* Updates Subscription information by ID.
|
|
50549
51579
|
* @summary Update an existing Subscription
|
|
@@ -50654,6 +51684,16 @@ export const SubscriptionsApiFactory = function (configuration, basePath, axios)
|
|
|
50654
51684
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50655
51685
|
return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
|
|
50656
51686
|
},
|
|
51687
|
+
/**
|
|
51688
|
+
* 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.
|
|
51689
|
+
* @summary Create an immediate plan change order
|
|
51690
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
51691
|
+
* @param {*} [options] Override http request option.
|
|
51692
|
+
* @throws {RequiredError}
|
|
51693
|
+
*/
|
|
51694
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
|
|
51695
|
+
return localVarFp.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(axios, basePath));
|
|
51696
|
+
},
|
|
50657
51697
|
/**
|
|
50658
51698
|
* 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
51699
|
* @summary Preview plan change details
|
|
@@ -50664,6 +51704,34 @@ export const SubscriptionsApiFactory = function (configuration, basePath, axios)
|
|
|
50664
51704
|
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50665
51705
|
return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
|
|
50666
51706
|
},
|
|
51707
|
+
/**
|
|
51708
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
51709
|
+
* @summary Cancel a scheduled plan change
|
|
51710
|
+
* @param {*} [options] Override http request option.
|
|
51711
|
+
* @throws {RequiredError}
|
|
51712
|
+
*/
|
|
51713
|
+
adminSubscriptionsPlanChangeScheduleDelete(options) {
|
|
51714
|
+
return localVarFp.adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(axios, basePath));
|
|
51715
|
+
},
|
|
51716
|
+
/**
|
|
51717
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
51718
|
+
* @summary Get pending scheduled plan change
|
|
51719
|
+
* @param {*} [options] Override http request option.
|
|
51720
|
+
* @throws {RequiredError}
|
|
51721
|
+
*/
|
|
51722
|
+
adminSubscriptionsPlanChangeScheduleGet(options) {
|
|
51723
|
+
return localVarFp.adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(axios, basePath));
|
|
51724
|
+
},
|
|
51725
|
+
/**
|
|
51726
|
+
* 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.
|
|
51727
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
51728
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
51729
|
+
* @param {*} [options] Override http request option.
|
|
51730
|
+
* @throws {RequiredError}
|
|
51731
|
+
*/
|
|
51732
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
|
|
51733
|
+
return localVarFp.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(axios, basePath));
|
|
51734
|
+
},
|
|
50667
51735
|
/**
|
|
50668
51736
|
* Updates Subscription information by ID.
|
|
50669
51737
|
* @summary Update an existing Subscription
|
|
@@ -50746,6 +51814,17 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
50746
51814
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
|
|
50747
51815
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50748
51816
|
}
|
|
51817
|
+
/**
|
|
51818
|
+
* 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.
|
|
51819
|
+
* @summary Create an immediate plan change order
|
|
51820
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
51821
|
+
* @param {*} [options] Override http request option.
|
|
51822
|
+
* @throws {RequiredError}
|
|
51823
|
+
* @memberof SubscriptionsApi
|
|
51824
|
+
*/
|
|
51825
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
|
|
51826
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51827
|
+
}
|
|
50749
51828
|
/**
|
|
50750
51829
|
* 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
51830
|
* @summary Preview plan change details
|
|
@@ -50757,6 +51836,37 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
50757
51836
|
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
|
|
50758
51837
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50759
51838
|
}
|
|
51839
|
+
/**
|
|
51840
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
51841
|
+
* @summary Cancel a scheduled plan change
|
|
51842
|
+
* @param {*} [options] Override http request option.
|
|
51843
|
+
* @throws {RequiredError}
|
|
51844
|
+
* @memberof SubscriptionsApi
|
|
51845
|
+
*/
|
|
51846
|
+
adminSubscriptionsPlanChangeScheduleDelete(options) {
|
|
51847
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(this.axios, this.basePath));
|
|
51848
|
+
}
|
|
51849
|
+
/**
|
|
51850
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
51851
|
+
* @summary Get pending scheduled plan change
|
|
51852
|
+
* @param {*} [options] Override http request option.
|
|
51853
|
+
* @throws {RequiredError}
|
|
51854
|
+
* @memberof SubscriptionsApi
|
|
51855
|
+
*/
|
|
51856
|
+
adminSubscriptionsPlanChangeScheduleGet(options) {
|
|
51857
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(this.axios, this.basePath));
|
|
51858
|
+
}
|
|
51859
|
+
/**
|
|
51860
|
+
* 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.
|
|
51861
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
51862
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
51863
|
+
* @param {*} [options] Override http request option.
|
|
51864
|
+
* @throws {RequiredError}
|
|
51865
|
+
* @memberof SubscriptionsApi
|
|
51866
|
+
*/
|
|
51867
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
|
|
51868
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51869
|
+
}
|
|
50760
51870
|
/**
|
|
50761
51871
|
* Updates Subscription information by ID.
|
|
50762
51872
|
* @summary Update an existing Subscription
|