@seekora-ai/admin-api 1.1.68 → 1.1.70
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 +20 -3
- package/api.ts +1173 -6
- package/base.ts +1 -1
- package/dist/api.d.ts +855 -6
- package/dist/api.js +605 -6
- package/dist/base.js +1 -1
- package/dist/esm/api.d.ts +855 -6
- package/dist/esm/api.js +595 -4
- package/dist/esm/base.js +1 -1
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.70.tgz +0 -0
- package/seekora-ai-admin-api-1.1.68.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -32471,6 +32471,216 @@ export class RolesApi extends BaseAPI {
|
|
|
32471
32471
|
return RolesApiFp(this.configuration).adminRolesRoleIdPermissionsPut(roleId, dataTypesUpdateRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32472
32472
|
}
|
|
32473
32473
|
}
|
|
32474
|
+
/**
|
|
32475
|
+
* SDKQuerySuggestionsConfigApi - axios parameter creator
|
|
32476
|
+
* @export
|
|
32477
|
+
*/
|
|
32478
|
+
export const SDKQuerySuggestionsConfigApiAxiosParamCreator = function (configuration) {
|
|
32479
|
+
return {
|
|
32480
|
+
/**
|
|
32481
|
+
* Retrieves the store-specific query suggestions configuration using x-store ID and read secret. This is a public API for SDK integration, similar to Algolia\'s GET /1/configs/{configID} endpoint. Uses read secret (x-storesecret).
|
|
32482
|
+
* @summary Get Query Suggestions Config (Public SDK API)
|
|
32483
|
+
* @param {string} xStoreid Store ID
|
|
32484
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
32485
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32486
|
+
* @param {*} [options] Override http request option.
|
|
32487
|
+
* @throws {RequiredError}
|
|
32488
|
+
*/
|
|
32489
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigGet: (xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xStoreID, options = {}) {
|
|
32490
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
32491
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigGet', 'xStoreid', xStoreid);
|
|
32492
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
32493
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigGet', 'xStoresecret', xStoresecret);
|
|
32494
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
32495
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigGet', 'xStoreID', xStoreID);
|
|
32496
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/query-suggestions/config`
|
|
32497
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
32498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32500
|
+
let baseOptions;
|
|
32501
|
+
if (configuration) {
|
|
32502
|
+
baseOptions = configuration.baseOptions;
|
|
32503
|
+
}
|
|
32504
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
32505
|
+
const localVarHeaderParameter = {};
|
|
32506
|
+
const localVarQueryParameter = {};
|
|
32507
|
+
if (xStoreid != null) {
|
|
32508
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
32509
|
+
}
|
|
32510
|
+
if (xStoresecret != null) {
|
|
32511
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
32512
|
+
}
|
|
32513
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32515
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
32516
|
+
return {
|
|
32517
|
+
url: toPathString(localVarUrlObj),
|
|
32518
|
+
options: localVarRequestOptions,
|
|
32519
|
+
};
|
|
32520
|
+
}),
|
|
32521
|
+
/**
|
|
32522
|
+
* Updates the store-specific query suggestions configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration, similar to Algolia\'s PUT /1/configs/{configID} endpoint. Requires write secret (x-store-write-secret).
|
|
32523
|
+
* @summary Update Query Suggestions Config (Public SDK API)
|
|
32524
|
+
* @param {string} xStoreid Store ID
|
|
32525
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
32526
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32527
|
+
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Query suggestions configuration (partial updates supported)
|
|
32528
|
+
* @param {*} [options] Override http request option.
|
|
32529
|
+
* @throws {RequiredError}
|
|
32530
|
+
*/
|
|
32531
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigPut: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, querySuggestionsServiceUpdateSuggestionConfigRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, querySuggestionsServiceUpdateSuggestionConfigRequest_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options = {}) {
|
|
32532
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
32533
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigPut', 'xStoreid', xStoreid);
|
|
32534
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
32535
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigPut', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
32536
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
32537
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigPut', 'xStoreID', xStoreID);
|
|
32538
|
+
// verify required parameter 'querySuggestionsServiceUpdateSuggestionConfigRequest' is not null or undefined
|
|
32539
|
+
assertParamExists('apiV1StoresXStoreIDQuerySuggestionsConfigPut', 'querySuggestionsServiceUpdateSuggestionConfigRequest', querySuggestionsServiceUpdateSuggestionConfigRequest);
|
|
32540
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/query-suggestions/config`
|
|
32541
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
32542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32544
|
+
let baseOptions;
|
|
32545
|
+
if (configuration) {
|
|
32546
|
+
baseOptions = configuration.baseOptions;
|
|
32547
|
+
}
|
|
32548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
32549
|
+
const localVarHeaderParameter = {};
|
|
32550
|
+
const localVarQueryParameter = {};
|
|
32551
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32552
|
+
if (xStoreid != null) {
|
|
32553
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
32554
|
+
}
|
|
32555
|
+
if (xStoreWriteSecret != null) {
|
|
32556
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
32557
|
+
}
|
|
32558
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32560
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
32561
|
+
localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceUpdateSuggestionConfigRequest, localVarRequestOptions, configuration);
|
|
32562
|
+
return {
|
|
32563
|
+
url: toPathString(localVarUrlObj),
|
|
32564
|
+
options: localVarRequestOptions,
|
|
32565
|
+
};
|
|
32566
|
+
}),
|
|
32567
|
+
};
|
|
32568
|
+
};
|
|
32569
|
+
/**
|
|
32570
|
+
* SDKQuerySuggestionsConfigApi - functional programming interface
|
|
32571
|
+
* @export
|
|
32572
|
+
*/
|
|
32573
|
+
export const SDKQuerySuggestionsConfigApiFp = function (configuration) {
|
|
32574
|
+
const localVarAxiosParamCreator = SDKQuerySuggestionsConfigApiAxiosParamCreator(configuration);
|
|
32575
|
+
return {
|
|
32576
|
+
/**
|
|
32577
|
+
* Retrieves the store-specific query suggestions configuration using x-store ID and read secret. This is a public API for SDK integration, similar to Algolia\'s GET /1/configs/{configID} endpoint. Uses read secret (x-storesecret).
|
|
32578
|
+
* @summary Get Query Suggestions Config (Public SDK API)
|
|
32579
|
+
* @param {string} xStoreid Store ID
|
|
32580
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
32581
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32582
|
+
* @param {*} [options] Override http request option.
|
|
32583
|
+
* @throws {RequiredError}
|
|
32584
|
+
*/
|
|
32585
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
32586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32587
|
+
var _a, _b, _c;
|
|
32588
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDQuerySuggestionsConfigGet(xStoreid, xStoresecret, xStoreID, options);
|
|
32589
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
32590
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKQuerySuggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
32591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32592
|
+
});
|
|
32593
|
+
},
|
|
32594
|
+
/**
|
|
32595
|
+
* Updates the store-specific query suggestions configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration, similar to Algolia\'s PUT /1/configs/{configID} endpoint. Requires write secret (x-store-write-secret).
|
|
32596
|
+
* @summary Update Query Suggestions Config (Public SDK API)
|
|
32597
|
+
* @param {string} xStoreid Store ID
|
|
32598
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
32599
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32600
|
+
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Query suggestions configuration (partial updates supported)
|
|
32601
|
+
* @param {*} [options] Override http request option.
|
|
32602
|
+
* @throws {RequiredError}
|
|
32603
|
+
*/
|
|
32604
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
|
|
32605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32606
|
+
var _a, _b, _c;
|
|
32607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options);
|
|
32608
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
32609
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKQuerySuggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
32610
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32611
|
+
});
|
|
32612
|
+
},
|
|
32613
|
+
};
|
|
32614
|
+
};
|
|
32615
|
+
/**
|
|
32616
|
+
* SDKQuerySuggestionsConfigApi - factory interface
|
|
32617
|
+
* @export
|
|
32618
|
+
*/
|
|
32619
|
+
export const SDKQuerySuggestionsConfigApiFactory = function (configuration, basePath, axios) {
|
|
32620
|
+
const localVarFp = SDKQuerySuggestionsConfigApiFp(configuration);
|
|
32621
|
+
return {
|
|
32622
|
+
/**
|
|
32623
|
+
* Retrieves the store-specific query suggestions configuration using x-store ID and read secret. This is a public API for SDK integration, similar to Algolia\'s GET /1/configs/{configID} endpoint. Uses read secret (x-storesecret).
|
|
32624
|
+
* @summary Get Query Suggestions Config (Public SDK API)
|
|
32625
|
+
* @param {string} xStoreid Store ID
|
|
32626
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
32627
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32628
|
+
* @param {*} [options] Override http request option.
|
|
32629
|
+
* @throws {RequiredError}
|
|
32630
|
+
*/
|
|
32631
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
32632
|
+
return localVarFp.apiV1StoresXStoreIDQuerySuggestionsConfigGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
32633
|
+
},
|
|
32634
|
+
/**
|
|
32635
|
+
* Updates the store-specific query suggestions configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration, similar to Algolia\'s PUT /1/configs/{configID} endpoint. Requires write secret (x-store-write-secret).
|
|
32636
|
+
* @summary Update Query Suggestions Config (Public SDK API)
|
|
32637
|
+
* @param {string} xStoreid Store ID
|
|
32638
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
32639
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32640
|
+
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Query suggestions configuration (partial updates supported)
|
|
32641
|
+
* @param {*} [options] Override http request option.
|
|
32642
|
+
* @throws {RequiredError}
|
|
32643
|
+
*/
|
|
32644
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
|
|
32645
|
+
return localVarFp.apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(axios, basePath));
|
|
32646
|
+
},
|
|
32647
|
+
};
|
|
32648
|
+
};
|
|
32649
|
+
/**
|
|
32650
|
+
* SDKQuerySuggestionsConfigApi - object-oriented interface
|
|
32651
|
+
* @export
|
|
32652
|
+
* @class SDKQuerySuggestionsConfigApi
|
|
32653
|
+
* @extends {BaseAPI}
|
|
32654
|
+
*/
|
|
32655
|
+
export class SDKQuerySuggestionsConfigApi extends BaseAPI {
|
|
32656
|
+
/**
|
|
32657
|
+
* Retrieves the store-specific query suggestions configuration using x-store ID and read secret. This is a public API for SDK integration, similar to Algolia\'s GET /1/configs/{configID} endpoint. Uses read secret (x-storesecret).
|
|
32658
|
+
* @summary Get Query Suggestions Config (Public SDK API)
|
|
32659
|
+
* @param {string} xStoreid Store ID
|
|
32660
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
32661
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32662
|
+
* @param {*} [options] Override http request option.
|
|
32663
|
+
* @throws {RequiredError}
|
|
32664
|
+
* @memberof SDKQuerySuggestionsConfigApi
|
|
32665
|
+
*/
|
|
32666
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
32667
|
+
return SDKQuerySuggestionsConfigApiFp(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
32668
|
+
}
|
|
32669
|
+
/**
|
|
32670
|
+
* Updates the store-specific query suggestions configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration, similar to Algolia\'s PUT /1/configs/{configID} endpoint. Requires write secret (x-store-write-secret).
|
|
32671
|
+
* @summary Update Query Suggestions Config (Public SDK API)
|
|
32672
|
+
* @param {string} xStoreid Store ID
|
|
32673
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
32674
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
32675
|
+
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Query suggestions configuration (partial updates supported)
|
|
32676
|
+
* @param {*} [options] Override http request option.
|
|
32677
|
+
* @throws {RequiredError}
|
|
32678
|
+
* @memberof SDKQuerySuggestionsConfigApi
|
|
32679
|
+
*/
|
|
32680
|
+
apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
|
|
32681
|
+
return SDKQuerySuggestionsConfigApiFp(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32682
|
+
}
|
|
32683
|
+
}
|
|
32474
32684
|
/**
|
|
32475
32685
|
* SDKStoreConfigApi - axios parameter creator
|
|
32476
32686
|
* @export
|
|
@@ -32478,7 +32688,7 @@ export class RolesApi extends BaseAPI {
|
|
|
32478
32688
|
export const SDKStoreConfigApiAxiosParamCreator = function (configuration) {
|
|
32479
32689
|
return {
|
|
32480
32690
|
/**
|
|
32481
|
-
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
32691
|
+
* Retrieves the store configuration (search config and query suggestions config) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret). Includes both search configuration and query suggestions configuration in a single response.
|
|
32482
32692
|
* @summary Get Store Config (Public SDK API)
|
|
32483
32693
|
* @param {string} xStoreid Store ID
|
|
32484
32694
|
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
@@ -32615,7 +32825,7 @@ export const SDKStoreConfigApiFp = function (configuration) {
|
|
|
32615
32825
|
const localVarAxiosParamCreator = SDKStoreConfigApiAxiosParamCreator(configuration);
|
|
32616
32826
|
return {
|
|
32617
32827
|
/**
|
|
32618
|
-
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
32828
|
+
* Retrieves the store configuration (search config and query suggestions config) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret). Includes both search configuration and query suggestions configuration in a single response.
|
|
32619
32829
|
* @summary Get Store Config (Public SDK API)
|
|
32620
32830
|
* @param {string} xStoreid Store ID
|
|
32621
32831
|
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
@@ -32679,7 +32889,7 @@ export const SDKStoreConfigApiFactory = function (configuration, basePath, axios
|
|
|
32679
32889
|
const localVarFp = SDKStoreConfigApiFp(configuration);
|
|
32680
32890
|
return {
|
|
32681
32891
|
/**
|
|
32682
|
-
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
32892
|
+
* Retrieves the store configuration (search config and query suggestions config) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret). Includes both search configuration and query suggestions configuration in a single response.
|
|
32683
32893
|
* @summary Get Store Config (Public SDK API)
|
|
32684
32894
|
* @param {string} xStoreid Store ID
|
|
32685
32895
|
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
@@ -32725,7 +32935,7 @@ export const SDKStoreConfigApiFactory = function (configuration, basePath, axios
|
|
|
32725
32935
|
*/
|
|
32726
32936
|
export class SDKStoreConfigApi extends BaseAPI {
|
|
32727
32937
|
/**
|
|
32728
|
-
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
32938
|
+
* Retrieves the store configuration (search config and query suggestions config) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret). Includes both search configuration and query suggestions configuration in a single response.
|
|
32729
32939
|
* @summary Get Store Config (Public SDK API)
|
|
32730
32940
|
* @param {string} xStoreid Store ID
|
|
32731
32941
|
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
@@ -37093,6 +37303,387 @@ export class StoresApi extends BaseAPI {
|
|
|
37093
37303
|
return StoresApiFp(this.configuration).xstoreidRegenerateUidPut(xstoreid, options).then((request) => request(this.axios, this.basePath));
|
|
37094
37304
|
}
|
|
37095
37305
|
}
|
|
37306
|
+
/**
|
|
37307
|
+
* SubscriptionPaymentsApi - axios parameter creator
|
|
37308
|
+
* @export
|
|
37309
|
+
*/
|
|
37310
|
+
export const SubscriptionPaymentsApiAxiosParamCreator = function (configuration) {
|
|
37311
|
+
return {
|
|
37312
|
+
/**
|
|
37313
|
+
* Returns subscriptions that are due for payment based on next_billing_date
|
|
37314
|
+
* @summary Get subscriptions due for payment
|
|
37315
|
+
* @param {number} [daysAhead] How many days ahead to look (default: 0)
|
|
37316
|
+
* @param {number} [limit] Max number of subscriptions (default: 100)
|
|
37317
|
+
* @param {number} [offset] Offset for pagination (default: 0)
|
|
37318
|
+
* @param {*} [options] Override http request option.
|
|
37319
|
+
* @throws {RequiredError}
|
|
37320
|
+
*/
|
|
37321
|
+
apiInternalSubscriptionPaymentsDueGet: (daysAhead_1, limit_1, offset_1, ...args_1) => __awaiter(this, [daysAhead_1, limit_1, offset_1, ...args_1], void 0, function* (daysAhead, limit, offset, options = {}) {
|
|
37322
|
+
const localVarPath = `/api/internal/subscription-payments/due`;
|
|
37323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37325
|
+
let baseOptions;
|
|
37326
|
+
if (configuration) {
|
|
37327
|
+
baseOptions = configuration.baseOptions;
|
|
37328
|
+
}
|
|
37329
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
37330
|
+
const localVarHeaderParameter = {};
|
|
37331
|
+
const localVarQueryParameter = {};
|
|
37332
|
+
if (daysAhead !== undefined) {
|
|
37333
|
+
localVarQueryParameter['days_ahead'] = daysAhead;
|
|
37334
|
+
}
|
|
37335
|
+
if (limit !== undefined) {
|
|
37336
|
+
localVarQueryParameter['limit'] = limit;
|
|
37337
|
+
}
|
|
37338
|
+
if (offset !== undefined) {
|
|
37339
|
+
localVarQueryParameter['offset'] = offset;
|
|
37340
|
+
}
|
|
37341
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37342
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37343
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37344
|
+
return {
|
|
37345
|
+
url: toPathString(localVarUrlObj),
|
|
37346
|
+
options: localVarRequestOptions,
|
|
37347
|
+
};
|
|
37348
|
+
}),
|
|
37349
|
+
/**
|
|
37350
|
+
* Generates invoice and receipt for a completed payment
|
|
37351
|
+
* @summary Generate invoice and receipt for a payment
|
|
37352
|
+
* @param {DataTypesGenerateInvoiceReceiptRequest} dataTypesGenerateInvoiceReceiptRequest Generate invoice/receipt request
|
|
37353
|
+
* @param {*} [options] Override http request option.
|
|
37354
|
+
* @throws {RequiredError}
|
|
37355
|
+
*/
|
|
37356
|
+
apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost: (dataTypesGenerateInvoiceReceiptRequest_1, ...args_1) => __awaiter(this, [dataTypesGenerateInvoiceReceiptRequest_1, ...args_1], void 0, function* (dataTypesGenerateInvoiceReceiptRequest, options = {}) {
|
|
37357
|
+
// verify required parameter 'dataTypesGenerateInvoiceReceiptRequest' is not null or undefined
|
|
37358
|
+
assertParamExists('apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost', 'dataTypesGenerateInvoiceReceiptRequest', dataTypesGenerateInvoiceReceiptRequest);
|
|
37359
|
+
const localVarPath = `/api/internal/subscription-payments/generate-invoice-receipt`;
|
|
37360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37361
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37362
|
+
let baseOptions;
|
|
37363
|
+
if (configuration) {
|
|
37364
|
+
baseOptions = configuration.baseOptions;
|
|
37365
|
+
}
|
|
37366
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37367
|
+
const localVarHeaderParameter = {};
|
|
37368
|
+
const localVarQueryParameter = {};
|
|
37369
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37372
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37373
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesGenerateInvoiceReceiptRequest, localVarRequestOptions, configuration);
|
|
37374
|
+
return {
|
|
37375
|
+
url: toPathString(localVarUrlObj),
|
|
37376
|
+
options: localVarRequestOptions,
|
|
37377
|
+
};
|
|
37378
|
+
}),
|
|
37379
|
+
/**
|
|
37380
|
+
* Processes payment for a subscription by checking Razorpay status and generating invoices
|
|
37381
|
+
* @summary Process a subscription payment
|
|
37382
|
+
* @param {DataTypesSubscriptionPaymentRequest} dataTypesSubscriptionPaymentRequest Subscription payment request
|
|
37383
|
+
* @param {*} [options] Override http request option.
|
|
37384
|
+
* @throws {RequiredError}
|
|
37385
|
+
*/
|
|
37386
|
+
apiInternalSubscriptionPaymentsProcessPost: (dataTypesSubscriptionPaymentRequest_1, ...args_1) => __awaiter(this, [dataTypesSubscriptionPaymentRequest_1, ...args_1], void 0, function* (dataTypesSubscriptionPaymentRequest, options = {}) {
|
|
37387
|
+
// verify required parameter 'dataTypesSubscriptionPaymentRequest' is not null or undefined
|
|
37388
|
+
assertParamExists('apiInternalSubscriptionPaymentsProcessPost', 'dataTypesSubscriptionPaymentRequest', dataTypesSubscriptionPaymentRequest);
|
|
37389
|
+
const localVarPath = `/api/internal/subscription-payments/process`;
|
|
37390
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37391
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37392
|
+
let baseOptions;
|
|
37393
|
+
if (configuration) {
|
|
37394
|
+
baseOptions = configuration.baseOptions;
|
|
37395
|
+
}
|
|
37396
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37397
|
+
const localVarHeaderParameter = {};
|
|
37398
|
+
const localVarQueryParameter = {};
|
|
37399
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37400
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37401
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37402
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSubscriptionPaymentRequest, localVarRequestOptions, configuration);
|
|
37404
|
+
return {
|
|
37405
|
+
url: toPathString(localVarUrlObj),
|
|
37406
|
+
options: localVarRequestOptions,
|
|
37407
|
+
};
|
|
37408
|
+
}),
|
|
37409
|
+
/**
|
|
37410
|
+
* Checks status and handles retry logic for failed subscription payments
|
|
37411
|
+
* @summary Retry a failed payment
|
|
37412
|
+
* @param {DataTypesRetryFailedPaymentRequest} dataTypesRetryFailedPaymentRequest Retry payment request
|
|
37413
|
+
* @param {*} [options] Override http request option.
|
|
37414
|
+
* @throws {RequiredError}
|
|
37415
|
+
*/
|
|
37416
|
+
apiInternalSubscriptionPaymentsRetryPost: (dataTypesRetryFailedPaymentRequest_1, ...args_1) => __awaiter(this, [dataTypesRetryFailedPaymentRequest_1, ...args_1], void 0, function* (dataTypesRetryFailedPaymentRequest, options = {}) {
|
|
37417
|
+
// verify required parameter 'dataTypesRetryFailedPaymentRequest' is not null or undefined
|
|
37418
|
+
assertParamExists('apiInternalSubscriptionPaymentsRetryPost', 'dataTypesRetryFailedPaymentRequest', dataTypesRetryFailedPaymentRequest);
|
|
37419
|
+
const localVarPath = `/api/internal/subscription-payments/retry`;
|
|
37420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37422
|
+
let baseOptions;
|
|
37423
|
+
if (configuration) {
|
|
37424
|
+
baseOptions = configuration.baseOptions;
|
|
37425
|
+
}
|
|
37426
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37427
|
+
const localVarHeaderParameter = {};
|
|
37428
|
+
const localVarQueryParameter = {};
|
|
37429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37430
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37433
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesRetryFailedPaymentRequest, localVarRequestOptions, configuration);
|
|
37434
|
+
return {
|
|
37435
|
+
url: toPathString(localVarUrlObj),
|
|
37436
|
+
options: localVarRequestOptions,
|
|
37437
|
+
};
|
|
37438
|
+
}),
|
|
37439
|
+
/**
|
|
37440
|
+
* Gets the current payment status for a subscription
|
|
37441
|
+
* @summary Get subscription payment status
|
|
37442
|
+
* @param {number} subscriptionId Subscription ID
|
|
37443
|
+
* @param {*} [options] Override http request option.
|
|
37444
|
+
* @throws {RequiredError}
|
|
37445
|
+
*/
|
|
37446
|
+
apiInternalSubscriptionPaymentsStatusSubscriptionIdGet: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
37447
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
37448
|
+
assertParamExists('apiInternalSubscriptionPaymentsStatusSubscriptionIdGet', 'subscriptionId', subscriptionId);
|
|
37449
|
+
const localVarPath = `/api/internal/subscription-payments/status/{subscription_id}`
|
|
37450
|
+
.replace(`{${"subscription_id"}}`, encodeURIComponent(String(subscriptionId)));
|
|
37451
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37452
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37453
|
+
let baseOptions;
|
|
37454
|
+
if (configuration) {
|
|
37455
|
+
baseOptions = configuration.baseOptions;
|
|
37456
|
+
}
|
|
37457
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
37458
|
+
const localVarHeaderParameter = {};
|
|
37459
|
+
const localVarQueryParameter = {};
|
|
37460
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37461
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37462
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37463
|
+
return {
|
|
37464
|
+
url: toPathString(localVarUrlObj),
|
|
37465
|
+
options: localVarRequestOptions,
|
|
37466
|
+
};
|
|
37467
|
+
}),
|
|
37468
|
+
};
|
|
37469
|
+
};
|
|
37470
|
+
/**
|
|
37471
|
+
* SubscriptionPaymentsApi - functional programming interface
|
|
37472
|
+
* @export
|
|
37473
|
+
*/
|
|
37474
|
+
export const SubscriptionPaymentsApiFp = function (configuration) {
|
|
37475
|
+
const localVarAxiosParamCreator = SubscriptionPaymentsApiAxiosParamCreator(configuration);
|
|
37476
|
+
return {
|
|
37477
|
+
/**
|
|
37478
|
+
* Returns subscriptions that are due for payment based on next_billing_date
|
|
37479
|
+
* @summary Get subscriptions due for payment
|
|
37480
|
+
* @param {number} [daysAhead] How many days ahead to look (default: 0)
|
|
37481
|
+
* @param {number} [limit] Max number of subscriptions (default: 100)
|
|
37482
|
+
* @param {number} [offset] Offset for pagination (default: 0)
|
|
37483
|
+
* @param {*} [options] Override http request option.
|
|
37484
|
+
* @throws {RequiredError}
|
|
37485
|
+
*/
|
|
37486
|
+
apiInternalSubscriptionPaymentsDueGet(daysAhead, limit, offset, options) {
|
|
37487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37488
|
+
var _a, _b, _c;
|
|
37489
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiInternalSubscriptionPaymentsDueGet(daysAhead, limit, offset, options);
|
|
37490
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37491
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionPaymentsApi.apiInternalSubscriptionPaymentsDueGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37492
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37493
|
+
});
|
|
37494
|
+
},
|
|
37495
|
+
/**
|
|
37496
|
+
* Generates invoice and receipt for a completed payment
|
|
37497
|
+
* @summary Generate invoice and receipt for a payment
|
|
37498
|
+
* @param {DataTypesGenerateInvoiceReceiptRequest} dataTypesGenerateInvoiceReceiptRequest Generate invoice/receipt request
|
|
37499
|
+
* @param {*} [options] Override http request option.
|
|
37500
|
+
* @throws {RequiredError}
|
|
37501
|
+
*/
|
|
37502
|
+
apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost(dataTypesGenerateInvoiceReceiptRequest, options) {
|
|
37503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37504
|
+
var _a, _b, _c;
|
|
37505
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost(dataTypesGenerateInvoiceReceiptRequest, options);
|
|
37506
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37507
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionPaymentsApi.apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37509
|
+
});
|
|
37510
|
+
},
|
|
37511
|
+
/**
|
|
37512
|
+
* Processes payment for a subscription by checking Razorpay status and generating invoices
|
|
37513
|
+
* @summary Process a subscription payment
|
|
37514
|
+
* @param {DataTypesSubscriptionPaymentRequest} dataTypesSubscriptionPaymentRequest Subscription payment request
|
|
37515
|
+
* @param {*} [options] Override http request option.
|
|
37516
|
+
* @throws {RequiredError}
|
|
37517
|
+
*/
|
|
37518
|
+
apiInternalSubscriptionPaymentsProcessPost(dataTypesSubscriptionPaymentRequest, options) {
|
|
37519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37520
|
+
var _a, _b, _c;
|
|
37521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiInternalSubscriptionPaymentsProcessPost(dataTypesSubscriptionPaymentRequest, options);
|
|
37522
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37523
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionPaymentsApi.apiInternalSubscriptionPaymentsProcessPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37525
|
+
});
|
|
37526
|
+
},
|
|
37527
|
+
/**
|
|
37528
|
+
* Checks status and handles retry logic for failed subscription payments
|
|
37529
|
+
* @summary Retry a failed payment
|
|
37530
|
+
* @param {DataTypesRetryFailedPaymentRequest} dataTypesRetryFailedPaymentRequest Retry payment request
|
|
37531
|
+
* @param {*} [options] Override http request option.
|
|
37532
|
+
* @throws {RequiredError}
|
|
37533
|
+
*/
|
|
37534
|
+
apiInternalSubscriptionPaymentsRetryPost(dataTypesRetryFailedPaymentRequest, options) {
|
|
37535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37536
|
+
var _a, _b, _c;
|
|
37537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiInternalSubscriptionPaymentsRetryPost(dataTypesRetryFailedPaymentRequest, options);
|
|
37538
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37539
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionPaymentsApi.apiInternalSubscriptionPaymentsRetryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37541
|
+
});
|
|
37542
|
+
},
|
|
37543
|
+
/**
|
|
37544
|
+
* Gets the current payment status for a subscription
|
|
37545
|
+
* @summary Get subscription payment status
|
|
37546
|
+
* @param {number} subscriptionId Subscription ID
|
|
37547
|
+
* @param {*} [options] Override http request option.
|
|
37548
|
+
* @throws {RequiredError}
|
|
37549
|
+
*/
|
|
37550
|
+
apiInternalSubscriptionPaymentsStatusSubscriptionIdGet(subscriptionId, options) {
|
|
37551
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37552
|
+
var _a, _b, _c;
|
|
37553
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiInternalSubscriptionPaymentsStatusSubscriptionIdGet(subscriptionId, options);
|
|
37554
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37555
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionPaymentsApi.apiInternalSubscriptionPaymentsStatusSubscriptionIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37556
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37557
|
+
});
|
|
37558
|
+
},
|
|
37559
|
+
};
|
|
37560
|
+
};
|
|
37561
|
+
/**
|
|
37562
|
+
* SubscriptionPaymentsApi - factory interface
|
|
37563
|
+
* @export
|
|
37564
|
+
*/
|
|
37565
|
+
export const SubscriptionPaymentsApiFactory = function (configuration, basePath, axios) {
|
|
37566
|
+
const localVarFp = SubscriptionPaymentsApiFp(configuration);
|
|
37567
|
+
return {
|
|
37568
|
+
/**
|
|
37569
|
+
* Returns subscriptions that are due for payment based on next_billing_date
|
|
37570
|
+
* @summary Get subscriptions due for payment
|
|
37571
|
+
* @param {number} [daysAhead] How many days ahead to look (default: 0)
|
|
37572
|
+
* @param {number} [limit] Max number of subscriptions (default: 100)
|
|
37573
|
+
* @param {number} [offset] Offset for pagination (default: 0)
|
|
37574
|
+
* @param {*} [options] Override http request option.
|
|
37575
|
+
* @throws {RequiredError}
|
|
37576
|
+
*/
|
|
37577
|
+
apiInternalSubscriptionPaymentsDueGet(daysAhead, limit, offset, options) {
|
|
37578
|
+
return localVarFp.apiInternalSubscriptionPaymentsDueGet(daysAhead, limit, offset, options).then((request) => request(axios, basePath));
|
|
37579
|
+
},
|
|
37580
|
+
/**
|
|
37581
|
+
* Generates invoice and receipt for a completed payment
|
|
37582
|
+
* @summary Generate invoice and receipt for a payment
|
|
37583
|
+
* @param {DataTypesGenerateInvoiceReceiptRequest} dataTypesGenerateInvoiceReceiptRequest Generate invoice/receipt request
|
|
37584
|
+
* @param {*} [options] Override http request option.
|
|
37585
|
+
* @throws {RequiredError}
|
|
37586
|
+
*/
|
|
37587
|
+
apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost(dataTypesGenerateInvoiceReceiptRequest, options) {
|
|
37588
|
+
return localVarFp.apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost(dataTypesGenerateInvoiceReceiptRequest, options).then((request) => request(axios, basePath));
|
|
37589
|
+
},
|
|
37590
|
+
/**
|
|
37591
|
+
* Processes payment for a subscription by checking Razorpay status and generating invoices
|
|
37592
|
+
* @summary Process a subscription payment
|
|
37593
|
+
* @param {DataTypesSubscriptionPaymentRequest} dataTypesSubscriptionPaymentRequest Subscription payment request
|
|
37594
|
+
* @param {*} [options] Override http request option.
|
|
37595
|
+
* @throws {RequiredError}
|
|
37596
|
+
*/
|
|
37597
|
+
apiInternalSubscriptionPaymentsProcessPost(dataTypesSubscriptionPaymentRequest, options) {
|
|
37598
|
+
return localVarFp.apiInternalSubscriptionPaymentsProcessPost(dataTypesSubscriptionPaymentRequest, options).then((request) => request(axios, basePath));
|
|
37599
|
+
},
|
|
37600
|
+
/**
|
|
37601
|
+
* Checks status and handles retry logic for failed subscription payments
|
|
37602
|
+
* @summary Retry a failed payment
|
|
37603
|
+
* @param {DataTypesRetryFailedPaymentRequest} dataTypesRetryFailedPaymentRequest Retry payment request
|
|
37604
|
+
* @param {*} [options] Override http request option.
|
|
37605
|
+
* @throws {RequiredError}
|
|
37606
|
+
*/
|
|
37607
|
+
apiInternalSubscriptionPaymentsRetryPost(dataTypesRetryFailedPaymentRequest, options) {
|
|
37608
|
+
return localVarFp.apiInternalSubscriptionPaymentsRetryPost(dataTypesRetryFailedPaymentRequest, options).then((request) => request(axios, basePath));
|
|
37609
|
+
},
|
|
37610
|
+
/**
|
|
37611
|
+
* Gets the current payment status for a subscription
|
|
37612
|
+
* @summary Get subscription payment status
|
|
37613
|
+
* @param {number} subscriptionId Subscription ID
|
|
37614
|
+
* @param {*} [options] Override http request option.
|
|
37615
|
+
* @throws {RequiredError}
|
|
37616
|
+
*/
|
|
37617
|
+
apiInternalSubscriptionPaymentsStatusSubscriptionIdGet(subscriptionId, options) {
|
|
37618
|
+
return localVarFp.apiInternalSubscriptionPaymentsStatusSubscriptionIdGet(subscriptionId, options).then((request) => request(axios, basePath));
|
|
37619
|
+
},
|
|
37620
|
+
};
|
|
37621
|
+
};
|
|
37622
|
+
/**
|
|
37623
|
+
* SubscriptionPaymentsApi - object-oriented interface
|
|
37624
|
+
* @export
|
|
37625
|
+
* @class SubscriptionPaymentsApi
|
|
37626
|
+
* @extends {BaseAPI}
|
|
37627
|
+
*/
|
|
37628
|
+
export class SubscriptionPaymentsApi extends BaseAPI {
|
|
37629
|
+
/**
|
|
37630
|
+
* Returns subscriptions that are due for payment based on next_billing_date
|
|
37631
|
+
* @summary Get subscriptions due for payment
|
|
37632
|
+
* @param {number} [daysAhead] How many days ahead to look (default: 0)
|
|
37633
|
+
* @param {number} [limit] Max number of subscriptions (default: 100)
|
|
37634
|
+
* @param {number} [offset] Offset for pagination (default: 0)
|
|
37635
|
+
* @param {*} [options] Override http request option.
|
|
37636
|
+
* @throws {RequiredError}
|
|
37637
|
+
* @memberof SubscriptionPaymentsApi
|
|
37638
|
+
*/
|
|
37639
|
+
apiInternalSubscriptionPaymentsDueGet(daysAhead, limit, offset, options) {
|
|
37640
|
+
return SubscriptionPaymentsApiFp(this.configuration).apiInternalSubscriptionPaymentsDueGet(daysAhead, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
37641
|
+
}
|
|
37642
|
+
/**
|
|
37643
|
+
* Generates invoice and receipt for a completed payment
|
|
37644
|
+
* @summary Generate invoice and receipt for a payment
|
|
37645
|
+
* @param {DataTypesGenerateInvoiceReceiptRequest} dataTypesGenerateInvoiceReceiptRequest Generate invoice/receipt request
|
|
37646
|
+
* @param {*} [options] Override http request option.
|
|
37647
|
+
* @throws {RequiredError}
|
|
37648
|
+
* @memberof SubscriptionPaymentsApi
|
|
37649
|
+
*/
|
|
37650
|
+
apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost(dataTypesGenerateInvoiceReceiptRequest, options) {
|
|
37651
|
+
return SubscriptionPaymentsApiFp(this.configuration).apiInternalSubscriptionPaymentsGenerateInvoiceReceiptPost(dataTypesGenerateInvoiceReceiptRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37652
|
+
}
|
|
37653
|
+
/**
|
|
37654
|
+
* Processes payment for a subscription by checking Razorpay status and generating invoices
|
|
37655
|
+
* @summary Process a subscription payment
|
|
37656
|
+
* @param {DataTypesSubscriptionPaymentRequest} dataTypesSubscriptionPaymentRequest Subscription payment request
|
|
37657
|
+
* @param {*} [options] Override http request option.
|
|
37658
|
+
* @throws {RequiredError}
|
|
37659
|
+
* @memberof SubscriptionPaymentsApi
|
|
37660
|
+
*/
|
|
37661
|
+
apiInternalSubscriptionPaymentsProcessPost(dataTypesSubscriptionPaymentRequest, options) {
|
|
37662
|
+
return SubscriptionPaymentsApiFp(this.configuration).apiInternalSubscriptionPaymentsProcessPost(dataTypesSubscriptionPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37663
|
+
}
|
|
37664
|
+
/**
|
|
37665
|
+
* Checks status and handles retry logic for failed subscription payments
|
|
37666
|
+
* @summary Retry a failed payment
|
|
37667
|
+
* @param {DataTypesRetryFailedPaymentRequest} dataTypesRetryFailedPaymentRequest Retry payment request
|
|
37668
|
+
* @param {*} [options] Override http request option.
|
|
37669
|
+
* @throws {RequiredError}
|
|
37670
|
+
* @memberof SubscriptionPaymentsApi
|
|
37671
|
+
*/
|
|
37672
|
+
apiInternalSubscriptionPaymentsRetryPost(dataTypesRetryFailedPaymentRequest, options) {
|
|
37673
|
+
return SubscriptionPaymentsApiFp(this.configuration).apiInternalSubscriptionPaymentsRetryPost(dataTypesRetryFailedPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37674
|
+
}
|
|
37675
|
+
/**
|
|
37676
|
+
* Gets the current payment status for a subscription
|
|
37677
|
+
* @summary Get subscription payment status
|
|
37678
|
+
* @param {number} subscriptionId Subscription ID
|
|
37679
|
+
* @param {*} [options] Override http request option.
|
|
37680
|
+
* @throws {RequiredError}
|
|
37681
|
+
* @memberof SubscriptionPaymentsApi
|
|
37682
|
+
*/
|
|
37683
|
+
apiInternalSubscriptionPaymentsStatusSubscriptionIdGet(subscriptionId, options) {
|
|
37684
|
+
return SubscriptionPaymentsApiFp(this.configuration).apiInternalSubscriptionPaymentsStatusSubscriptionIdGet(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
37685
|
+
}
|
|
37686
|
+
}
|
|
37096
37687
|
/**
|
|
37097
37688
|
* SubscriptionsApi - axios parameter creator
|
|
37098
37689
|
* @export
|