rename combining ledger to combined
This commit is contained in:
+42
-42
@@ -23,20 +23,20 @@ import type { RequestArgs } from './base';
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
||||
|
||||
export interface CombiningLedgerResponse extends LedgerResponse {
|
||||
export interface CombinedLedgerResponse extends LedgerResponse {
|
||||
'ledgerId': string;
|
||||
'name': string;
|
||||
'memberLedgerIds': Array<string>;
|
||||
'type'?: CombiningLedgerResponseTypeEnum;
|
||||
'type'?: CombinedLedgerResponseTypeEnum;
|
||||
}
|
||||
|
||||
export const CombiningLedgerResponseTypeEnum = {
|
||||
Combining: 'COMBINING',
|
||||
export const CombinedLedgerResponseTypeEnum = {
|
||||
Combined: 'COMBINED',
|
||||
} as const;
|
||||
|
||||
export type CombiningLedgerResponseTypeEnum = typeof CombiningLedgerResponseTypeEnum[keyof typeof CombiningLedgerResponseTypeEnum];
|
||||
export type CombinedLedgerResponseTypeEnum = typeof CombinedLedgerResponseTypeEnum[keyof typeof CombinedLedgerResponseTypeEnum];
|
||||
|
||||
export interface CreateCombiningLedgerRequest {
|
||||
export interface CreateCombinedLedgerRequest {
|
||||
'name': string;
|
||||
'memberLedgerIds': Array<string>;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ export interface CreateMainLedgerRequest {
|
||||
/**
|
||||
* @type FindAll200ResponseInner
|
||||
*/
|
||||
export type FindAll200ResponseInner = CombiningLedgerResponse | MainLedgerResponse;
|
||||
export type FindAll200ResponseInner = CombinedLedgerResponse | MainLedgerResponse;
|
||||
|
||||
export interface LedgerResponse {
|
||||
'type'?: LedgerResponseTypeEnum;
|
||||
@@ -54,7 +54,7 @@ export interface LedgerResponse {
|
||||
|
||||
export const LedgerResponseTypeEnum = {
|
||||
Main: 'MAIN',
|
||||
Combining: 'COMBINING',
|
||||
Combined: 'COMBINED',
|
||||
} as const;
|
||||
|
||||
export type LedgerResponseTypeEnum = typeof LedgerResponseTypeEnum[keyof typeof LedgerResponseTypeEnum];
|
||||
@@ -71,7 +71,7 @@ export const MainLedgerResponseTypeEnum = {
|
||||
|
||||
export type MainLedgerResponseTypeEnum = typeof MainLedgerResponseTypeEnum[keyof typeof MainLedgerResponseTypeEnum];
|
||||
|
||||
export interface UpdateCombiningLedgerRequest {
|
||||
export interface UpdateCombinedLedgerRequest {
|
||||
'name': string;
|
||||
'memberLedgerIds': Array<string>;
|
||||
}
|
||||
@@ -86,14 +86,14 @@ export const LedgerControllerApiAxiosParamCreator = function (configuration?: Co
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {CreateCombiningLedgerRequest} createCombiningLedgerRequest
|
||||
* @param {CreateCombinedLedgerRequest} createCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createCombiningLedger: async (createCombiningLedgerRequest: CreateCombiningLedgerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'createCombiningLedgerRequest' is not null or undefined
|
||||
assertParamExists('createCombiningLedger', 'createCombiningLedgerRequest', createCombiningLedgerRequest)
|
||||
const localVarPath = `/ledgers/combining`;
|
||||
createCombinedLedger: async (createCombinedLedgerRequest: CreateCombinedLedgerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'createCombinedLedgerRequest' is not null or undefined
|
||||
assertParamExists('createCombinedLedger', 'createCombinedLedgerRequest', createCombinedLedgerRequest)
|
||||
const localVarPath = `/ledgers/combined`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
@@ -111,7 +111,7 @@ export const LedgerControllerApiAxiosParamCreator = function (configuration?: Co
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(createCombiningLedgerRequest, localVarRequestOptions, configuration)
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(createCombinedLedgerRequest, localVarRequestOptions, configuration)
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
@@ -217,16 +217,16 @@ export const LedgerControllerApiAxiosParamCreator = function (configuration?: Co
|
||||
/**
|
||||
*
|
||||
* @param {string} ledgerId
|
||||
* @param {UpdateCombiningLedgerRequest} updateCombiningLedgerRequest
|
||||
* @param {UpdateCombinedLedgerRequest} updateCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updateCombiningLedger: async (ledgerId: string, updateCombiningLedgerRequest: UpdateCombiningLedgerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
updateCombinedLedger: async (ledgerId: string, updateCombinedLedgerRequest: UpdateCombinedLedgerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'ledgerId' is not null or undefined
|
||||
assertParamExists('updateCombiningLedger', 'ledgerId', ledgerId)
|
||||
// verify required parameter 'updateCombiningLedgerRequest' is not null or undefined
|
||||
assertParamExists('updateCombiningLedger', 'updateCombiningLedgerRequest', updateCombiningLedgerRequest)
|
||||
const localVarPath = `/ledgers/combining/{ledgerId}`
|
||||
assertParamExists('updateCombinedLedger', 'ledgerId', ledgerId)
|
||||
// verify required parameter 'updateCombinedLedgerRequest' is not null or undefined
|
||||
assertParamExists('updateCombinedLedger', 'updateCombinedLedgerRequest', updateCombinedLedgerRequest)
|
||||
const localVarPath = `/ledgers/combined/{ledgerId}`
|
||||
.replace('{ledgerId}', encodeURIComponent(String(ledgerId)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
@@ -245,7 +245,7 @@ export const LedgerControllerApiAxiosParamCreator = function (configuration?: Co
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(updateCombiningLedgerRequest, localVarRequestOptions, configuration)
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(updateCombinedLedgerRequest, localVarRequestOptions, configuration)
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
@@ -301,14 +301,14 @@ export const LedgerControllerApiFp = function(configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {CreateCombiningLedgerRequest} createCombiningLedgerRequest
|
||||
* @param {CreateCombinedLedgerRequest} createCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async createCombiningLedger(createCombiningLedgerRequest: CreateCombiningLedgerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CombiningLedgerResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createCombiningLedger(createCombiningLedgerRequest, options);
|
||||
async createCombinedLedger(createCombinedLedgerRequest: CreateCombinedLedgerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CombinedLedgerResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createCombinedLedger(createCombinedLedgerRequest, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.createCombiningLedger']?.[localVarOperationServerIndex]?.url;
|
||||
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.createCombinedLedger']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
@@ -349,14 +349,14 @@ export const LedgerControllerApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @param {string} ledgerId
|
||||
* @param {UpdateCombiningLedgerRequest} updateCombiningLedgerRequest
|
||||
* @param {UpdateCombinedLedgerRequest} updateCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async updateCombiningLedger(ledgerId: string, updateCombiningLedgerRequest: UpdateCombiningLedgerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CombiningLedgerResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCombiningLedger(ledgerId, updateCombiningLedgerRequest, options);
|
||||
async updateCombinedLedger(ledgerId: string, updateCombinedLedgerRequest: UpdateCombinedLedgerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CombinedLedgerResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCombinedLedger(ledgerId, updateCombinedLedgerRequest, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.updateCombiningLedger']?.[localVarOperationServerIndex]?.url;
|
||||
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.updateCombinedLedger']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
@@ -383,12 +383,12 @@ export const LedgerControllerApiFactory = function (configuration?: Configuratio
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {CreateCombiningLedgerRequest} createCombiningLedgerRequest
|
||||
* @param {CreateCombinedLedgerRequest} createCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createCombiningLedger(createCombiningLedgerRequest: CreateCombiningLedgerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CombiningLedgerResponse> {
|
||||
return localVarFp.createCombiningLedger(createCombiningLedgerRequest, options).then((request) => request(axios, basePath));
|
||||
createCombinedLedger(createCombinedLedgerRequest: CreateCombinedLedgerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CombinedLedgerResponse> {
|
||||
return localVarFp.createCombinedLedger(createCombinedLedgerRequest, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
@@ -419,12 +419,12 @@ export const LedgerControllerApiFactory = function (configuration?: Configuratio
|
||||
/**
|
||||
*
|
||||
* @param {string} ledgerId
|
||||
* @param {UpdateCombiningLedgerRequest} updateCombiningLedgerRequest
|
||||
* @param {UpdateCombinedLedgerRequest} updateCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updateCombiningLedger(ledgerId: string, updateCombiningLedgerRequest: UpdateCombiningLedgerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CombiningLedgerResponse> {
|
||||
return localVarFp.updateCombiningLedger(ledgerId, updateCombiningLedgerRequest, options).then((request) => request(axios, basePath));
|
||||
updateCombinedLedger(ledgerId: string, updateCombinedLedgerRequest: UpdateCombinedLedgerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CombinedLedgerResponse> {
|
||||
return localVarFp.updateCombinedLedger(ledgerId, updateCombinedLedgerRequest, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
@@ -445,12 +445,12 @@ export const LedgerControllerApiFactory = function (configuration?: Configuratio
|
||||
export class LedgerControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @param {CreateCombiningLedgerRequest} createCombiningLedgerRequest
|
||||
* @param {CreateCombinedLedgerRequest} createCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public createCombiningLedger(createCombiningLedgerRequest: CreateCombiningLedgerRequest, options?: RawAxiosRequestConfig) {
|
||||
return LedgerControllerApiFp(this.configuration).createCombiningLedger(createCombiningLedgerRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
public createCombinedLedger(createCombinedLedgerRequest: CreateCombinedLedgerRequest, options?: RawAxiosRequestConfig) {
|
||||
return LedgerControllerApiFp(this.configuration).createCombinedLedger(createCombinedLedgerRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -485,12 +485,12 @@ export class LedgerControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @param {string} ledgerId
|
||||
* @param {UpdateCombiningLedgerRequest} updateCombiningLedgerRequest
|
||||
* @param {UpdateCombinedLedgerRequest} updateCombinedLedgerRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public updateCombiningLedger(ledgerId: string, updateCombiningLedgerRequest: UpdateCombiningLedgerRequest, options?: RawAxiosRequestConfig) {
|
||||
return LedgerControllerApiFp(this.configuration).updateCombiningLedger(ledgerId, updateCombiningLedgerRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
public updateCombinedLedger(ledgerId: string, updateCombinedLedgerRequest: UpdateCombinedLedgerRequest, options?: RawAxiosRequestConfig) {
|
||||
return LedgerControllerApiFp(this.configuration).updateCombinedLedger(ledgerId, updateCombinedLedgerRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user