Files
Dmitry ccd06f32f7 chore(app): сгенерированный Dart-клиент
just gen-client — покрывает links, cashflow-broker, ручные цены,
imports/pending, goals/income/rebalance/tax/benchmarks.
2026-09-19 10:46:09 +03:00

39 lines
1.2 KiB
Dart

import 'package:test/test.dart';
import 'package:fintracker_api/fintracker_api.dart';
/// tests for IncomeApi
void main() {
final instance = FintrackerApi().getIncomeApi();
group(IncomeApi, () {
// Calendar
//
// Payments in a window, one row each; defaults to the next 12 months, forecast only.
//
//Future<CalendarOut> incomeCalendar({ String scope, DateTime dateFrom, DateTime dateTo, bool includePaid }) async
test('test incomeCalendar', () async {
// TODO
});
// Forecast
//
// Expected income per month, split by basis, plus the yield it implies.
//
//Future<ForecastOut> incomeForecast({ String scope, int months }) async
test('test incomeForecast', () async {
// TODO
});
// History
//
// Income actually received, grouped by month, kind and currency. `group` exists for the contract's sake and accepts only `month`: the table is stored monthly, and a finer grouping would have to re-read the ledger, which is what the calendar's `paid` rows already do per payment.
//
//Future<HistoryOut> incomeHistory({ String scope, String group, DateTime dateFrom, DateTime dateTo, String kind }) async
test('test incomeHistory', () async {
// TODO
});
});
}