ledger balance
This commit is contained in:
@@ -26,6 +26,7 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
||||
export interface CombinedLedgerResponse extends LedgerResponse {
|
||||
'ledgerId': string;
|
||||
'name': string;
|
||||
'balance': number;
|
||||
'memberLedgerIds': Array<string>;
|
||||
'type'?: CombinedLedgerResponseTypeEnum;
|
||||
}
|
||||
@@ -62,6 +63,7 @@ export type LedgerResponseTypeEnum = typeof LedgerResponseTypeEnum[keyof typeof
|
||||
export interface MainLedgerResponse extends LedgerResponse {
|
||||
'ledgerId': string;
|
||||
'name': string;
|
||||
'balance': number;
|
||||
'type'?: MainLedgerResponseTypeEnum;
|
||||
}
|
||||
|
||||
@@ -79,6 +81,102 @@ export interface UpdateMainLedgerRequest {
|
||||
'name': string;
|
||||
}
|
||||
|
||||
/**
|
||||
* ActivityControllerApi - axios parameter creator
|
||||
*/
|
||||
export const ActivityControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {number} characterId
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
fetchNewActivitiesForCharacter: async (characterId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'characterId' is not null or undefined
|
||||
assertParamExists('fetchNewActivitiesForCharacter', 'characterId', characterId)
|
||||
const localVarPath = `/activity/fetch/{characterId}`
|
||||
.replace('{characterId}', encodeURIComponent(String(characterId)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* ActivityControllerApi - functional programming interface
|
||||
*/
|
||||
export const ActivityControllerApiFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ActivityControllerApiAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {number} characterId
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async fetchNewActivitiesForCharacter(characterId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchNewActivitiesForCharacter(characterId, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['ActivityControllerApi.fetchNewActivitiesForCharacter']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* ActivityControllerApi - factory interface
|
||||
*/
|
||||
export const ActivityControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = ActivityControllerApiFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {number} characterId
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
fetchNewActivitiesForCharacter(characterId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||
return localVarFp.fetchNewActivitiesForCharacter(characterId, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ActivityControllerApi - object-oriented interface
|
||||
*/
|
||||
export class ActivityControllerApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @param {number} characterId
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public fetchNewActivitiesForCharacter(characterId: number, options?: RawAxiosRequestConfig) {
|
||||
return ActivityControllerApiFp(this.configuration).fetchNewActivitiesForCharacter(characterId, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* LedgerControllerApi - axios parameter creator
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user