/* tslint:disable */ /* eslint-disable */ /** * loans/schedule * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded, } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap, } from '../base'; // @ts-ignore import type { ErrorResponse } from '../models'; // @ts-ignore import type { Installment } from '../models'; // @ts-ignore import type { LoanAccountPreviewProcessPMTTransactionally } from '../models'; // @ts-ignore import type { LoanAccountSchedule } from '../models'; // @ts-ignore import type { LoanTranche } from '../models'; // @ts-ignore import type { PreviewLoanAccountSchedule } from '../models'; /** * LoanAccountScheduleApi - axios parameter creator */ export const LoanAccountScheduleApiAxiosParamCreator = function ( configuration?: Configuration, ) { return { /** * * @summary Update loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} installment The list of installments to update the current loan account schedule. * @param {*} [options] Override http request option. * @throws {RequiredError} */ editSchedule: async ( loanAccountId: string, installment: Array, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'loanAccountId' is not null or undefined assertParamExists('editSchedule', 'loanAccountId', loanAccountId); // verify required parameter 'installment' is not null or undefined assertParamExists('editSchedule', 'installment', installment); const localVarPath = `/loans/{loanAccountId}/schedule`.replace( `{${'loanAccountId'}}`, encodeURIComponent(String(loanAccountId)), ); // 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: 'PUT', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( installment, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {GetScheduleForLoanAccountDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScheduleForLoanAccount: async ( loanAccountId: string, detailsLevel?: GetScheduleForLoanAccountDetailsLevelEnum, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'loanAccountId' is not null or undefined assertParamExists( 'getScheduleForLoanAccount', 'loanAccountId', loanAccountId, ); const localVarPath = `/loans/{loanAccountId}/schedule`.replace( `{${'loanAccountId'}}`, encodeURIComponent(String(loanAccountId)), ); // 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: 'GET', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); if (detailsLevel !== undefined) { localVarQueryParameter['detailsLevel'] = detailsLevel; } localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Preview loan account schedule using transactional processing for PMT. * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewProcessPMTTransactionally: async ( loanAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'loanAccountId' is not null or undefined assertParamExists( 'previewProcessPMTTransactionally', 'loanAccountId', loanAccountId, ); const localVarPath = `/loans/{loanAccountId}/schedule/previewProcessPMTTransactionally`.replace( `{${'loanAccountId'}}`, encodeURIComponent(String(loanAccountId)), ); // 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; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Preview loan account schedule for non-existent loan account * @param {PreviewLoanAccountSchedule} previewLoanAccountSchedule Loan account parameters for a schedule to be previewed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewSchedule: async ( previewLoanAccountSchedule: PreviewLoanAccountSchedule, idempotencyKey?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'previewLoanAccountSchedule' is not null or undefined assertParamExists( 'previewSchedule', 'previewLoanAccountSchedule', previewLoanAccountSchedule, ); const localVarPath = `/loans/schedule:preview`; // 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; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( previewLoanAccountSchedule, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Preview loan account schedule for non-existent loan account * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} loanTranche List of tranches to be considered in the schedule preview. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewTranchesOnSchedule: async ( loanAccountId: string, loanTranche: Array, idempotencyKey?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'loanAccountId' is not null or undefined assertParamExists( 'previewTranchesOnSchedule', 'loanAccountId', loanAccountId, ); // verify required parameter 'loanTranche' is not null or undefined assertParamExists( 'previewTranchesOnSchedule', 'loanTranche', loanTranche, ); const localVarPath = `/loans/{loanAccountId}/schedule:previewTranches`.replace( `{${'loanAccountId'}}`, encodeURIComponent(String(loanAccountId)), ); // 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; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( loanTranche, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, }; }; /** * LoanAccountScheduleApi - functional programming interface */ export const LoanAccountScheduleApiFp = function ( configuration?: Configuration, ) { const localVarAxiosParamCreator = LoanAccountScheduleApiAxiosParamCreator(configuration); return { /** * * @summary Update loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} installment The list of installments to update the current loan account schedule. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async editSchedule( loanAccountId: string, installment: Array, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.editSchedule( loanAccountId, installment, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LoanAccountScheduleApi.editSchedule']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {GetScheduleForLoanAccountDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getScheduleForLoanAccount( loanAccountId: string, detailsLevel?: GetScheduleForLoanAccountDetailsLevelEnum, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.getScheduleForLoanAccount( loanAccountId, detailsLevel, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ 'LoanAccountScheduleApi.getScheduleForLoanAccount' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Preview loan account schedule using transactional processing for PMT. * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async previewProcessPMTTransactionally( loanAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.previewProcessPMTTransactionally( loanAccountId, idempotencyKey, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ 'LoanAccountScheduleApi.previewProcessPMTTransactionally' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Preview loan account schedule for non-existent loan account * @param {PreviewLoanAccountSchedule} previewLoanAccountSchedule Loan account parameters for a schedule to be previewed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async previewSchedule( previewLoanAccountSchedule: PreviewLoanAccountSchedule, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.previewSchedule( previewLoanAccountSchedule, idempotencyKey, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LoanAccountScheduleApi.previewSchedule']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Preview loan account schedule for non-existent loan account * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} loanTranche List of tranches to be considered in the schedule preview. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async previewTranchesOnSchedule( loanAccountId: string, loanTranche: Array, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.previewTranchesOnSchedule( loanAccountId, loanTranche, idempotencyKey, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ 'LoanAccountScheduleApi.previewTranchesOnSchedule' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, }; }; /** * LoanAccountScheduleApi - factory interface */ export const LoanAccountScheduleApiFactory = function ( configuration?: Configuration, basePath?: string, axios?: AxiosInstance, ) { const localVarFp = LoanAccountScheduleApiFp(configuration); return { /** * * @summary Update loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} installment The list of installments to update the current loan account schedule. * @param {*} [options] Override http request option. * @throws {RequiredError} */ editSchedule( loanAccountId: string, installment: Array, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .editSchedule(loanAccountId, installment, options) .then((request) => request(axios, basePath)); }, /** * * @summary Get loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {GetScheduleForLoanAccountDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScheduleForLoanAccount( loanAccountId: string, detailsLevel?: GetScheduleForLoanAccountDetailsLevelEnum, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .getScheduleForLoanAccount(loanAccountId, detailsLevel, options) .then((request) => request(axios, basePath)); }, /** * * @summary Preview loan account schedule using transactional processing for PMT. * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewProcessPMTTransactionally( loanAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .previewProcessPMTTransactionally( loanAccountId, idempotencyKey, options, ) .then((request) => request(axios, basePath)); }, /** * * @summary Preview loan account schedule for non-existent loan account * @param {PreviewLoanAccountSchedule} previewLoanAccountSchedule Loan account parameters for a schedule to be previewed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewSchedule( previewLoanAccountSchedule: PreviewLoanAccountSchedule, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .previewSchedule(previewLoanAccountSchedule, idempotencyKey, options) .then((request) => request(axios, basePath)); }, /** * * @summary Preview loan account schedule for non-existent loan account * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} loanTranche List of tranches to be considered in the schedule preview. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewTranchesOnSchedule( loanAccountId: string, loanTranche: Array, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .previewTranchesOnSchedule( loanAccountId, loanTranche, idempotencyKey, options, ) .then((request) => request(axios, basePath)); }, }; }; /** * LoanAccountScheduleApi - object-oriented interface */ export class LoanAccountScheduleApi extends BaseAPI { /** * * @summary Update loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} installment The list of installments to update the current loan account schedule. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public editSchedule( loanAccountId: string, installment: Array, options?: RawAxiosRequestConfig, ) { return LoanAccountScheduleApiFp(this.configuration) .editSchedule(loanAccountId, installment, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Get loan account schedule * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {GetScheduleForLoanAccountDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getScheduleForLoanAccount( loanAccountId: string, detailsLevel?: GetScheduleForLoanAccountDetailsLevelEnum, options?: RawAxiosRequestConfig, ) { return LoanAccountScheduleApiFp(this.configuration) .getScheduleForLoanAccount(loanAccountId, detailsLevel, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Preview loan account schedule using transactional processing for PMT. * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public previewProcessPMTTransactionally( loanAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig, ) { return LoanAccountScheduleApiFp(this.configuration) .previewProcessPMTTransactionally(loanAccountId, idempotencyKey, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Preview loan account schedule for non-existent loan account * @param {PreviewLoanAccountSchedule} previewLoanAccountSchedule Loan account parameters for a schedule to be previewed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public previewSchedule( previewLoanAccountSchedule: PreviewLoanAccountSchedule, idempotencyKey?: string, options?: RawAxiosRequestConfig, ) { return LoanAccountScheduleApiFp(this.configuration) .previewSchedule(previewLoanAccountSchedule, idempotencyKey, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Preview loan account schedule for non-existent loan account * @param {string} loanAccountId The ID or encoded key of the loan account. * @param {Array} loanTranche List of tranches to be considered in the schedule preview. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public previewTranchesOnSchedule( loanAccountId: string, loanTranche: Array, idempotencyKey?: string, options?: RawAxiosRequestConfig, ) { return LoanAccountScheduleApiFp(this.configuration) .previewTranchesOnSchedule( loanAccountId, loanTranche, idempotencyKey, options, ) .then((request) => request(this.axios, this.basePath)); } } export const GetScheduleForLoanAccountDetailsLevelEnum = { Basic: 'BASIC', Full: 'FULL', } as const; export type GetScheduleForLoanAccountDetailsLevelEnum = (typeof GetScheduleForLoanAccountDetailsLevelEnum)[keyof typeof GetScheduleForLoanAccountDetailsLevelEnum];