UNPKG

wallee

Version:
35 lines (34 loc) 1.38 kB
import http = require("http"); import Promise = require("bluebird"); import { Authentication } from '../auth/Authentication'; import { InstallmentCalculatedPlan } from '../models/InstallmentCalculatedPlan'; declare class InstallmentPlanCalculationService { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected _timeout: number; protected _defaultAuthentication: Authentication; constructor(configuration: any); /** * Set timeout in seconds. Default timeout: 25 seconds * @param {number} timeout */ set timeout(timeout: number); private setTimeout; set basePath(basePath: string); get basePath(): string; protected setDefaultAuthentication(auth: Authentication): void; private getVersion; /** * This operation allows to calculate all plans for the given transaction. The transaction will not be changed in any way. * @summary Calculate Plans * @param spaceId * @param transactionId The transaction for which the plans should be calculated for. * @param {*} [options] Override http request options. */ calculatePlans(spaceId: number, transactionId: number, options?: any): Promise<{ response: http.IncomingMessage; body: Array<InstallmentCalculatedPlan>; }>; } export { InstallmentPlanCalculationService };