patrimoniumjs
Version:
Patrimonium.js is a JavaScript library providing a set of tools to modelize the real estate operations of an individual and their impact on the financial situation of the same individual.
14 lines (13 loc) • 519 B
TypeScript
import { SimpleDate } from '../simple-date';
import { PersonSituation } from "../person-situation";
import { PLStatement } from '../reporting/pl-statement';
/**
* Represents an action that has an impact on the balance sheet of a person (saving money, buying a house etc.).
*/
export interface PersonAction {
readonly date: SimpleDate;
/**
* Executes the action and updates the `PersonSituation` accordingly.
*/
execute(situation: PersonSituation, plStatement: PLStatement): void;
}