@mft/moneyhub-api-client
Version:
Node.JS client for the Moneyhub API
41 lines • 1.13 kB
TypeScript
import type { Amount } from "./amount";
export interface AffordabilityMetadata {
createdAt: string;
id: string;
}
export interface Affordability extends AffordabilityMetadata {
income: {
amountConsistency: number;
longevity: {
consecutiveIncomeMonths: number;
incomePeriodLengthMonths: number;
};
predicted: Amount;
regularIncomeDetected: boolean;
};
overdraftUseByAccount: {
id: string;
daysInOverdraft: number;
earliestBalanceDate: string;
}[];
overview: {
discretionaryExpenses: Amount;
fixedExpenses: Amount;
flexibleExpenses: Amount;
income: Amount;
incomeIncludingTransfers: Amount;
nonDiscretionaryExpenses: Amount;
};
primaryIncomeAccountId: string;
riskIndicators: {
cashWithdrawals: Amount;
gambling: Amount;
loanRepayments: Amount;
outgoingTransfers: Amount;
returnedDirectDebits: {
count: number;
periodMonths: number;
};
};
}
//# sourceMappingURL=affordability.d.ts.map