chore(app): сгенерированный Dart-клиент
just gen-client — покрывает links, cashflow-broker, ручные цены, imports/pending, goals/income/rebalance/tax/benchmarks.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for AccountSuggestion
|
||||
void main() {
|
||||
final AccountSuggestion? instance = /* AccountSuggestion(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(AccountSuggestion, () {
|
||||
// String broker
|
||||
test('to test the property `broker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sourceId
|
||||
test('to test the property `sourceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for BenchmarkComparisonOut
|
||||
void main() {
|
||||
final BenchmarkComparisonOut? instance = /* BenchmarkComparisonOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(BenchmarkComparisonOut, () {
|
||||
// List<BenchmarkReturnOut> benchmarks
|
||||
test('to test the property `benchmarks`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime dateFrom
|
||||
test('to test the property `dateFrom`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime dateTo
|
||||
test('to test the property `dateTo`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String period
|
||||
test('to test the property `period`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int portfolioDaysSkipped
|
||||
test('to test the property `portfolioDaysSkipped`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String portfolioTwr
|
||||
test('to test the property `portfolioTwr`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String portfolioTwrAnnualized
|
||||
test('to test the property `portfolioTwrAnnualized`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for BenchmarkComparison
|
||||
void main() {
|
||||
final BenchmarkComparison? instance = /* BenchmarkComparison(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(BenchmarkComparison, () {
|
||||
// List<BenchmarkComparisonOut> rows
|
||||
test('to test the property `rows`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for BenchmarkCreate
|
||||
void main() {
|
||||
final BenchmarkCreate? instance = /* BenchmarkCreate(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(BenchmarkCreate, () {
|
||||
// String code
|
||||
test('to test the property `code`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency (default value: 'RUB')
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isActive (default value: true)
|
||||
test('to test the property `isActive`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isDefault (default value: false)
|
||||
test('to test the property `isDefault`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String source_ (default value: 'moex')
|
||||
test('to test the property `source_`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for BenchmarkOut
|
||||
void main() {
|
||||
final BenchmarkOut? instance = /* BenchmarkOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(BenchmarkOut, () {
|
||||
// String code
|
||||
test('to test the property `code`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime historyFrom
|
||||
test('to test the property `historyFrom`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime historyTo
|
||||
test('to test the property `historyTo`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isActive
|
||||
test('to test the property `isActive`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isDefault
|
||||
test('to test the property `isDefault`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String source_
|
||||
test('to test the property `source_`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for BenchmarkPatch
|
||||
void main() {
|
||||
final BenchmarkPatch? instance = /* BenchmarkPatch(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(BenchmarkPatch, () {
|
||||
// String code
|
||||
test('to test the property `code`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isActive
|
||||
test('to test the property `isActive`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isDefault
|
||||
test('to test the property `isDefault`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String source_
|
||||
test('to test the property `source_`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for BenchmarkReturnOut
|
||||
void main() {
|
||||
final BenchmarkReturnOut? instance = /* BenchmarkReturnOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(BenchmarkReturnOut, () {
|
||||
// int benchmarkId
|
||||
test('to test the property `benchmarkId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String code
|
||||
test('to test the property `code`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int daysSkipped
|
||||
test('to test the property `daysSkipped`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String excess
|
||||
test('to test the property `excess`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String twr
|
||||
test('to test the property `twr`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String twrAnnualized
|
||||
test('to test the property `twrAnnualized`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for BenchmarksApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getBenchmarksApi();
|
||||
|
||||
group(BenchmarksApi, () {
|
||||
// Benchmarks
|
||||
//
|
||||
// The portfolio's TWR beside each benchmark's, on the same grid of days. `days_skipped` is returned on both sides and is not cosmetic: a non-zero value on either means the two chains did not cover the same days, and the difference is then an approximation of an excess return rather than one.
|
||||
//
|
||||
//Future<BenchmarkComparison> benchmarksBenchmarks({ String scope, List<String?> period }) async
|
||||
test('test benchmarksBenchmarks', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Create
|
||||
//
|
||||
//Future<BenchmarkOut> benchmarksCreate(BenchmarkCreate benchmarkCreate) async
|
||||
test('test benchmarksCreate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Delete
|
||||
//
|
||||
//Future benchmarksDelete(int benchmarkId) async
|
||||
test('test benchmarksDelete', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List
|
||||
//
|
||||
// Every benchmark, defaults first — the order the comparison block shows them in.
|
||||
//
|
||||
//Future<List<BenchmarkOut>> benchmarksList() async
|
||||
test('test benchmarksList', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Patch
|
||||
//
|
||||
//Future<BenchmarkOut> benchmarksPatch(int benchmarkId, BenchmarkPatch benchmarkPatch) async
|
||||
test('test benchmarksPatch', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for CalendarEntry
|
||||
void main() {
|
||||
final CalendarEntry? instance = /* CalendarEntry(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(CalendarEntry, () {
|
||||
// decimal as string
|
||||
// String amount
|
||||
test('to test the property `amount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String amountRub
|
||||
test('to test the property `amountRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String basis
|
||||
test('to test the property `basis`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime expectedDate
|
||||
test('to test the property `expectedDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String perUnit
|
||||
test('to test the property `perUnit`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String qty
|
||||
test('to test the property `qty`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime recordDate
|
||||
test('to test the property `recordDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxWithheld
|
||||
test('to test the property `taxWithheld`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String ticker
|
||||
test('to test the property `ticker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for CalendarOut
|
||||
void main() {
|
||||
final CalendarOut? instance = /* CalendarOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(CalendarOut, () {
|
||||
// DateTime asOf
|
||||
test('to test the property `asOf`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Map<String, String> byBasis
|
||||
test('to test the property `byBasis`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<CalendarEntry> entries
|
||||
test('to test the property `entries`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String totalExpectedRub
|
||||
test('to test the property `totalExpectedRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for CashAvailable
|
||||
void main() {
|
||||
final CashAvailable? instance = /* CashAvailable(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(CashAvailable, () {
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for CashFlowBrokerMonth
|
||||
void main() {
|
||||
final CashFlowBrokerMonth? instance = /* CashFlowBrokerMonth(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(CashFlowBrokerMonth, () {
|
||||
// decimal as string
|
||||
// String depositsRub
|
||||
test('to test the property `depositsRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventCount
|
||||
test('to test the property `eventCount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime month
|
||||
test('to test the property `month`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String netRub
|
||||
test('to test the property `netRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String withdrawalsRub
|
||||
test('to test the property `withdrawalsRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for CommitRequest
|
||||
void main() {
|
||||
final CommitRequest? instance = /* CommitRequest(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(CommitRequest, () {
|
||||
// int accountId
|
||||
test('to test the property `accountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool confirmDuplicates (default value: false)
|
||||
test('to test the property `confirmDuplicates`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool dryRun (default value: false)
|
||||
test('to test the property `dryRun`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ForecastMonth
|
||||
void main() {
|
||||
final ForecastMonth? instance = /* ForecastMonth(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ForecastMonth, () {
|
||||
// decimal as string
|
||||
// String amountRub
|
||||
test('to test the property `amountRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Map<String, String> byBasis
|
||||
test('to test the property `byBasis`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime month
|
||||
test('to test the property `month`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ForecastOut
|
||||
void main() {
|
||||
final ForecastOut? instance = /* ForecastOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ForecastOut, () {
|
||||
// decimal as string
|
||||
// String annualYieldOnValue
|
||||
test('to test the property `annualYieldOnValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<ForecastMonth> months
|
||||
test('to test the property `months`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String totalRub
|
||||
test('to test the property `totalRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> warnings
|
||||
test('to test the property `warnings`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for GoalCreate
|
||||
void main() {
|
||||
final GoalCreate? instance = /* GoalCreate(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(GoalCreate, () {
|
||||
// bool archived (default value: false)
|
||||
test('to test the property `archived`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency (default value: 'RUB')
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String monthlyContribution
|
||||
test('to test the property `monthlyContribution`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String scope (default value: 'all')
|
||||
test('to test the property `scope`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetAmount
|
||||
test('to test the property `targetAmount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime targetDate
|
||||
test('to test the property `targetDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for GoalOut
|
||||
void main() {
|
||||
final GoalOut? instance = /* GoalOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(GoalOut, () {
|
||||
// bool archived
|
||||
test('to test the property `archived`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String monthlyContribution
|
||||
test('to test the property `monthlyContribution`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String scope
|
||||
test('to test the property `scope`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetAmount
|
||||
test('to test the property `targetAmount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime targetDate
|
||||
test('to test the property `targetDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for GoalPatch
|
||||
void main() {
|
||||
final GoalPatch? instance = /* GoalPatch(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(GoalPatch, () {
|
||||
// bool archived
|
||||
test('to test the property `archived`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String monthlyContribution
|
||||
test('to test the property `monthlyContribution`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String scope
|
||||
test('to test the property `scope`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetAmount
|
||||
test('to test the property `targetAmount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime targetDate
|
||||
test('to test the property `targetDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for GoalProgressOut
|
||||
void main() {
|
||||
final GoalProgressOut? instance = /* GoalProgressOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(GoalProgressOut, () {
|
||||
// DateTime asOf
|
||||
test('to test the property `asOf`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String assumedRate
|
||||
test('to test the property `assumedRate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String basis
|
||||
test('to test the property `basis`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String currentValueRub
|
||||
test('to test the property `currentValueRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int goalId
|
||||
test('to test the property `goalId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String monthlyNeededRub
|
||||
test('to test the property `monthlyNeededRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool onTrack
|
||||
test('to test the property `onTrack`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String progress
|
||||
test('to test the property `progress`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime projectedDate
|
||||
test('to test the property `projectedDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetAmountRub
|
||||
test('to test the property `targetAmountRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for GoalsApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getGoalsApi();
|
||||
|
||||
group(GoalsApi, () {
|
||||
// Create
|
||||
//
|
||||
//Future<GoalOut> goalsCreate(GoalCreate goalCreate) async
|
||||
test('test goalsCreate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Delete
|
||||
//
|
||||
//Future goalsDelete(int goalId) async
|
||||
test('test goalsDelete', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List
|
||||
//
|
||||
//Future<List<GoalOut>> goalsList({ bool includeArchived }) async
|
||||
test('test goalsList', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Patch
|
||||
//
|
||||
//Future<GoalOut> goalsPatch(int goalId, GoalPatch goalPatch) async
|
||||
test('test goalsPatch', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Progress
|
||||
//
|
||||
//Future<GoalProgressOut> goalsProgress(int goalId) async
|
||||
test('test goalsProgress', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for HistoryOut
|
||||
void main() {
|
||||
final HistoryOut? instance = /* HistoryOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(HistoryOut, () {
|
||||
// List<HistoryRow> rows
|
||||
test('to test the property `rows`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// HistoryTotals totals
|
||||
test('to test the property `totals`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for HistoryRow
|
||||
void main() {
|
||||
final HistoryRow? instance = /* HistoryRow(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(HistoryRow, () {
|
||||
// decimal as string
|
||||
// String amount
|
||||
test('to test the property `amount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String amountRub
|
||||
test('to test the property `amountRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime month
|
||||
test('to test the property `month`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int paymentCount
|
||||
test('to test the property `paymentCount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxWithheld
|
||||
test('to test the property `taxWithheld`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for HistoryTotals
|
||||
void main() {
|
||||
final HistoryTotals? instance = /* HistoryTotals(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(HistoryTotals, () {
|
||||
// decimal as string
|
||||
// String amountRub
|
||||
test('to test the property `amountRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxWithheldRub
|
||||
test('to test the property `taxWithheldRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ImportCounts
|
||||
void main() {
|
||||
final ImportCounts? instance = /* ImportCounts(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ImportCounts, () {
|
||||
// Map<String, int> byKind
|
||||
test('to test the property `byKind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsDuplicate
|
||||
test('to test the property `eventsDuplicate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsNew
|
||||
test('to test the property `eventsNew`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsPending
|
||||
test('to test the property `eventsPending`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsShadow
|
||||
test('to test the property `eventsShadow`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsTotal
|
||||
test('to test the property `eventsTotal`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int lines
|
||||
test('to test the property `lines`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ImportPreview
|
||||
void main() {
|
||||
final ImportPreview? instance = /* ImportPreview(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ImportPreview, () {
|
||||
// String accountExternalId
|
||||
test('to test the property `accountExternalId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int accountId
|
||||
test('to test the property `accountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String accountName
|
||||
test('to test the property `accountName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<AccountSuggestion> accountSuggestions
|
||||
test('to test the property `accountSuggestions`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String broker
|
||||
test('to test the property `broker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime committedAt
|
||||
test('to test the property `committedAt`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ImportCounts counts
|
||||
test('to test the property `counts`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int duplicateOfId
|
||||
test('to test the property `duplicateOfId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String error
|
||||
test('to test the property `error`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String filename
|
||||
test('to test the property `filename`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String parseStatus
|
||||
test('to test the property `parseStatus`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String parserName
|
||||
test('to test the property `parserName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String parserVersion
|
||||
test('to test the property `parserVersion`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<PendingInstrumentOut> pendingInstruments
|
||||
test('to test the property `pendingInstruments`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime periodFrom
|
||||
test('to test the property `periodFrom`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime periodTo
|
||||
test('to test the property `periodTo`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ReconciliationOut reconciliation
|
||||
test('to test the property `reconciliation`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<SampleEventOut> sampleEvents
|
||||
test('to test the property `sampleEvents`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sha256
|
||||
test('to test the property `sha256`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int sizeBytes
|
||||
test('to test the property `sizeBytes`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime uploadedAt
|
||||
test('to test the property `uploadedAt`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> warnings
|
||||
test('to test the property `warnings`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ImportResult
|
||||
void main() {
|
||||
final ImportResult? instance = /* ImportResult(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ImportResult, () {
|
||||
// bool committed
|
||||
test('to test the property `committed`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsCreated
|
||||
test('to test the property `eventsCreated`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsShadow
|
||||
test('to test the property `eventsShadow`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsSkipped
|
||||
test('to test the property `eventsSkipped`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsUpdated
|
||||
test('to test the property `eventsUpdated`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int importId
|
||||
test('to test the property `importId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool metricsRefreshed
|
||||
test('to test the property `metricsRefreshed`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int pendingInstruments
|
||||
test('to test the property `pendingInstruments`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ReconciliationOut reconciliation
|
||||
test('to test the property `reconciliation`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ImportSummary
|
||||
void main() {
|
||||
final ImportSummary? instance = /* ImportSummary(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ImportSummary, () {
|
||||
// String accountExternalId
|
||||
test('to test the property `accountExternalId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int accountId
|
||||
test('to test the property `accountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String accountName
|
||||
test('to test the property `accountName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String broker
|
||||
test('to test the property `broker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime committedAt
|
||||
test('to test the property `committedAt`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ImportCounts counts
|
||||
test('to test the property `counts`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int duplicateOfId
|
||||
test('to test the property `duplicateOfId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String error
|
||||
test('to test the property `error`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String filename
|
||||
test('to test the property `filename`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String parseStatus
|
||||
test('to test the property `parseStatus`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String parserName
|
||||
test('to test the property `parserName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String parserVersion
|
||||
test('to test the property `parserVersion`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime periodFrom
|
||||
test('to test the property `periodFrom`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime periodTo
|
||||
test('to test the property `periodTo`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sha256
|
||||
test('to test the property `sha256`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int sizeBytes
|
||||
test('to test the property `sizeBytes`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime uploadedAt
|
||||
test('to test the property `uploadedAt`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for ImportsApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getImportsApi();
|
||||
|
||||
group(ImportsApi, () {
|
||||
// Commit
|
||||
//
|
||||
// Write the file's events into the ledger and rebuild every metric.
|
||||
//
|
||||
//Future<ImportResult> importsCommit(int importId, CommitRequest commitRequest) async
|
||||
test('test importsCommit', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Create
|
||||
//
|
||||
// Upload a report, parse it and show what committing it would do. Writes no event.
|
||||
//
|
||||
//Future<ImportPreview> importsCreate(MultipartFile file, { int accountId, String parser }) async
|
||||
test('test importsCreate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Delete
|
||||
//
|
||||
// Drop an uncommitted import. A committed one stays: `raw_*` is append-only.
|
||||
//
|
||||
//Future importsDelete(int importId) async
|
||||
test('test importsDelete', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Get
|
||||
//
|
||||
// The preview again — recomputed for an uncommitted import, replayed for a committed one.
|
||||
//
|
||||
//Future<ImportPreview> importsGet(int importId) async
|
||||
test('test importsGet', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List
|
||||
//
|
||||
// Newest imports first, with the counters each was committed with.
|
||||
//
|
||||
//Future<List<ImportSummary>> importsList({ String status, int limit, int offset }) async
|
||||
test('test importsList', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
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
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for LinkCreate
|
||||
void main() {
|
||||
final LinkCreate? instance = /* LinkCreate(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(LinkCreate, () {
|
||||
// int cashTxnId
|
||||
test('to test the property `cashTxnId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventId
|
||||
test('to test the property `eventId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for LinkOut
|
||||
void main() {
|
||||
final LinkOut? instance = /* LinkOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(LinkOut, () {
|
||||
// decimal as string
|
||||
// String amountDelta
|
||||
test('to test the property `amountDelta`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int cashTxnId
|
||||
test('to test the property `cashTxnId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String confidence
|
||||
test('to test the property `confidence`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int dayGap
|
||||
test('to test the property `dayGap`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventId
|
||||
test('to test the property `eventId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for LinksApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getLinksApi();
|
||||
|
||||
group(LinksApi, () {
|
||||
// Create
|
||||
//
|
||||
// Confirm a pairing the matcher missed. Never touched by the automatic rebuild afterwards.
|
||||
//
|
||||
//Future<LinkOut> linksCreate(LinkCreate linkCreate) async
|
||||
test('test linksCreate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Delete
|
||||
//
|
||||
// Undo a link, manual or automatic. `flow_type` reverts on the next `POST /metrics/refresh`, when `classify` rebuilds it from the rules and `matching` no longer overwrites it.
|
||||
//
|
||||
//Future linksDelete(int linkId) async
|
||||
test('test linksDelete', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Unmatched
|
||||
//
|
||||
// Every candidate that survives matching without a link, on either side.
|
||||
//
|
||||
//Future<UnmatchedOut> linksUnmatched() async
|
||||
test('test linksUnmatched', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for NewInstrument
|
||||
void main() {
|
||||
final NewInstrument? instance = /* NewInstrument(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(NewInstrument, () {
|
||||
// String assetClass
|
||||
test('to test the property `assetClass`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String board
|
||||
test('to test the property `board`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency (default value: 'RUB')
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String isin
|
||||
test('to test the property `isin`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int lot (default value: 1)
|
||||
test('to test the property `lot`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String ticker
|
||||
test('to test the property `ticker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for PendingInstrumentOut
|
||||
void main() {
|
||||
final PendingInstrumentOut? instance = /* PendingInstrumentOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(PendingInstrumentOut, () {
|
||||
// String assetClassHint
|
||||
test('to test the property `assetClassHint`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String board
|
||||
test('to test the property `board`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime createdAt
|
||||
test('to test the property `createdAt`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int firstSeenFileId
|
||||
test('to test the property `firstSeenFileId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String isin
|
||||
test('to test the property `isin`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int occurrences
|
||||
test('to test the property `occurrences`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String samplePrice
|
||||
test('to test the property `samplePrice`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String sampleQuantity
|
||||
test('to test the property `sampleQuantity`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String source_
|
||||
test('to test the property `source_`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sourceKey
|
||||
test('to test the property `sourceKey`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String status
|
||||
test('to test the property `status`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String ticker
|
||||
test('to test the property `ticker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for PendingResolveRequest
|
||||
void main() {
|
||||
final PendingResolveRequest? instance = /* PendingResolveRequest(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(PendingResolveRequest, () {
|
||||
// String action
|
||||
test('to test the property `action`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// NewInstrument instrument
|
||||
test('to test the property `instrument`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for PendingResolveResult
|
||||
void main() {
|
||||
final PendingResolveResult? instance = /* PendingResolveResult(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(PendingResolveResult, () {
|
||||
// bool aliasCreated
|
||||
test('to test the property `aliasCreated`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventsBound
|
||||
test('to test the property `eventsBound`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool metricsRefreshed
|
||||
test('to test the property `metricsRefreshed`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String status
|
||||
test('to test the property `status`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for PriceManualIn
|
||||
void main() {
|
||||
final PriceManualIn? instance = /* PriceManualIn(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(PriceManualIn, () {
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime d
|
||||
test('to test the property `d`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String price
|
||||
test('to test the property `price`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for PriceManualOut
|
||||
void main() {
|
||||
final PriceManualOut? instance = /* PriceManualOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(PriceManualOut, () {
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime d
|
||||
test('to test the property `d`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String price
|
||||
test('to test the property `price`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for RebalanceApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getRebalanceApi();
|
||||
|
||||
group(RebalanceApi, () {
|
||||
// Rebalance
|
||||
//
|
||||
//Future<RebalanceOut> rebalanceRebalance(int portfolioId, { String dimension, CashAvailable cashAvailable }) async
|
||||
test('test rebalanceRebalance', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Set Targets
|
||||
//
|
||||
// Replace the whole set for one dimension. The weights must add up to 1 within `WEIGHT_TOLERANCE`; otherwise the request is refused with the actual sum in the message, so the user can see by how much the plan misses rather than being handed a silently rescaled one.
|
||||
//
|
||||
//Future<TargetsOut> rebalanceSetTargets(int portfolioId, TargetsIn targetsIn) async
|
||||
test('test rebalanceSetTargets', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Targets
|
||||
//
|
||||
//Future<TargetsOut> rebalanceTargets(int portfolioId, { String dimension }) async
|
||||
test('test rebalanceTargets', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for RebalanceBucketOut
|
||||
void main() {
|
||||
final RebalanceBucketOut? instance = /* RebalanceBucketOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(RebalanceBucketOut, () {
|
||||
// String bucket
|
||||
test('to test the property `bucket`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String currentValueRub
|
||||
test('to test the property `currentValueRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String currentWeight
|
||||
test('to test the property `currentWeight`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String deltaValueRub
|
||||
test('to test the property `deltaValueRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String drift
|
||||
test('to test the property `drift`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetWeight
|
||||
test('to test the property `targetWeight`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<TradeOut> trades
|
||||
test('to test the property `trades`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool withinBand
|
||||
test('to test the property `withinBand`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for RebalanceOut
|
||||
void main() {
|
||||
final RebalanceOut? instance = /* RebalanceOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(RebalanceOut, () {
|
||||
// DateTime asOf
|
||||
test('to test the property `asOf`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<RebalanceBucketOut> buckets
|
||||
test('to test the property `buckets`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String cashAvailableRub
|
||||
test('to test the property `cashAvailableRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String dimension
|
||||
test('to test the property `dimension`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int portfolioId
|
||||
test('to test the property `portfolioId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String totalValueRub
|
||||
test('to test the property `totalValueRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> warnings
|
||||
test('to test the property `warnings`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ReconciliationCash
|
||||
void main() {
|
||||
final ReconciliationCash? instance = /* ReconciliationCash(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ReconciliationCash, () {
|
||||
// decimal as string
|
||||
// String balanceDerived
|
||||
test('to test the property `balanceDerived`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String balanceReport
|
||||
test('to test the property `balanceReport`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String delta
|
||||
test('to test the property `delta`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool matches
|
||||
test('to test the property `matches`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ReconciliationOut
|
||||
void main() {
|
||||
final ReconciliationOut? instance = /* ReconciliationOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ReconciliationOut, () {
|
||||
// DateTime asOf
|
||||
test('to test the property `asOf`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<ReconciliationCash> cash
|
||||
test('to test the property `cash`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool matches (default value: true)
|
||||
test('to test the property `matches`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<ReconciliationPosition> positions
|
||||
test('to test the property `positions`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for ReconciliationPosition
|
||||
void main() {
|
||||
final ReconciliationPosition? instance = /* ReconciliationPosition(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(ReconciliationPosition, () {
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instrumentName
|
||||
test('to test the property `instrumentName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String isin
|
||||
test('to test the property `isin`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool matches
|
||||
test('to test the property `matches`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String qtyDelta
|
||||
test('to test the property `qtyDelta`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String qtyDerived
|
||||
test('to test the property `qtyDerived`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String qtyReport
|
||||
test('to test the property `qtyReport`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String ticker
|
||||
test('to test the property `ticker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for SampleEventOut
|
||||
void main() {
|
||||
final SampleEventOut? instance = /* SampleEventOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(SampleEventOut, () {
|
||||
// decimal as string
|
||||
// String amount
|
||||
test('to test the property `amount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String dedupeKey
|
||||
test('to test the property `dedupeKey`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String description
|
||||
test('to test the property `description`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String fee
|
||||
test('to test the property `fee`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instrumentKey
|
||||
test('to test the property `instrumentKey`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instrumentName
|
||||
test('to test the property `instrumentName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isDuplicate
|
||||
test('to test the property `isDuplicate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int lineNo
|
||||
test('to test the property `lineNo`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String price
|
||||
test('to test the property `price`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String quantity
|
||||
test('to test the property `quantity`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime settleDate
|
||||
test('to test the property `settleDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime tradeDate
|
||||
test('to test the property `tradeDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String tradeNo
|
||||
test('to test the property `tradeNo`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TargetIn
|
||||
void main() {
|
||||
final TargetIn? instance = /* TargetIn(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TargetIn, () {
|
||||
// decimal as string
|
||||
// String band
|
||||
test('to test the property `band`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String bucket
|
||||
test('to test the property `bucket`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetWeight
|
||||
test('to test the property `targetWeight`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TargetOut
|
||||
void main() {
|
||||
final TargetOut? instance = /* TargetOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TargetOut, () {
|
||||
// decimal as string
|
||||
// String band
|
||||
test('to test the property `band`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String bucket
|
||||
test('to test the property `bucket`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String note
|
||||
test('to test the property `note`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String targetWeight
|
||||
test('to test the property `targetWeight`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TargetsIn
|
||||
void main() {
|
||||
final TargetsIn? instance = /* TargetsIn(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TargetsIn, () {
|
||||
// asset_class | sector | country | currency
|
||||
// String dimension
|
||||
test('to test the property `dimension`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<TargetIn> targets
|
||||
test('to test the property `targets`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TargetsOut
|
||||
void main() {
|
||||
final TargetsOut? instance = /* TargetsOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TargetsOut, () {
|
||||
// String dimension
|
||||
test('to test the property `dimension`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int portfolioId
|
||||
test('to test the property `portfolioId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<TargetOut> targets
|
||||
test('to test the property `targets`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String weightsSum
|
||||
test('to test the property `weightsSum`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TaxAccountOut
|
||||
void main() {
|
||||
final TaxAccountOut? instance = /* TaxAccountOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TaxAccountOut, () {
|
||||
// int accountId
|
||||
test('to test the property `accountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String accountName
|
||||
test('to test the property `accountName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String couponsGrossRub
|
||||
test('to test the property `couponsGrossRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String dividendsGrossRub
|
||||
test('to test the property `dividendsGrossRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String estimatedTaxRub
|
||||
test('to test the property `estimatedTaxRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String ldvExemptRub
|
||||
test('to test the property `ldvExemptRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String realizedGainRub
|
||||
test('to test the property `realizedGainRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String realizedLossRub
|
||||
test('to test the property `realizedLossRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxWithheldRub
|
||||
test('to test the property `taxWithheldRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxableBaseRub
|
||||
test('to test the property `taxableBaseRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for TaxApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getTaxApi();
|
||||
|
||||
group(TaxApi, () {
|
||||
// Lots
|
||||
//
|
||||
// Open lots with the date after which a sale falls under the long-term exemption. `year` selects the rate the \"what if I sold today\" figure is computed at; the lots themselves are always the ones open right now. `lot` is rebuilt from the ledger on every refresh and holds today's state only, so there is no honest way to answer \"which lots were open on 31 December two years ago\" — and inventing one would be worse than the limitation.
|
||||
//
|
||||
//Future<TaxLotsOut> taxLots({ int year, int accountId }) async
|
||||
test('test taxLots', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Summary
|
||||
//
|
||||
// The year's estimated tax position, per account and in total.
|
||||
//
|
||||
//Future<TaxYearOut> taxSummary({ int year, int accountId }) async
|
||||
test('test taxSummary', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TaxLotOut
|
||||
void main() {
|
||||
final TaxLotOut? instance = /* TaxLotOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TaxLotOut, () {
|
||||
// int accountId
|
||||
test('to test the property `accountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String accountName
|
||||
test('to test the property `accountName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String costRub
|
||||
test('to test the property `costRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int daysToLdv
|
||||
test('to test the property `daysToLdv`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime ldvDate
|
||||
test('to test the property `ldvDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool ldvEligible
|
||||
test('to test the property `ldvEligible`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int lotId
|
||||
test('to test the property `lotId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String marketValueRub
|
||||
test('to test the property `marketValueRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime openDate
|
||||
test('to test the property `openDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String qtyRemaining
|
||||
test('to test the property `qtyRemaining`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxIfSoldNowRub
|
||||
test('to test the property `taxIfSoldNowRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String ticker
|
||||
test('to test the property `ticker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String unrealizedGainRub
|
||||
test('to test the property `unrealizedGainRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TaxLotsOut
|
||||
void main() {
|
||||
final TaxLotsOut? instance = /* TaxLotsOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TaxLotsOut, () {
|
||||
// DateTime asOf
|
||||
test('to test the property `asOf`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String disclaimer
|
||||
test('to test the property `disclaimer`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool estimated (default value: true)
|
||||
test('to test the property `estimated`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<TaxLotOut> lots
|
||||
test('to test the property `lots`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxRate
|
||||
test('to test the property `taxRate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int year
|
||||
test('to test the property `year`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TaxTotals
|
||||
void main() {
|
||||
final TaxTotals? instance = /* TaxTotals(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TaxTotals, () {
|
||||
// decimal as string
|
||||
// String couponsGrossRub
|
||||
test('to test the property `couponsGrossRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String dividendsGrossRub
|
||||
test('to test the property `dividendsGrossRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String estimatedTaxRub
|
||||
test('to test the property `estimatedTaxRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String ldvExemptRub
|
||||
test('to test the property `ldvExemptRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String realizedGainRub
|
||||
test('to test the property `realizedGainRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String realizedLossRub
|
||||
test('to test the property `realizedLossRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxWithheldRub
|
||||
test('to test the property `taxWithheldRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxableBaseRub
|
||||
test('to test the property `taxableBaseRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TaxYearOut
|
||||
void main() {
|
||||
final TaxYearOut? instance = /* TaxYearOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TaxYearOut, () {
|
||||
// List<TaxAccountOut> accounts
|
||||
test('to test the property `accounts`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String disclaimer
|
||||
test('to test the property `disclaimer`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool estimated (default value: true)
|
||||
test('to test the property `estimated`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String taxRate
|
||||
test('to test the property `taxRate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// TaxTotals totals
|
||||
test('to test the property `totals`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int year
|
||||
test('to test the property `year`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for TradeOut
|
||||
void main() {
|
||||
final TradeOut? instance = /* TradeOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(TradeOut, () {
|
||||
// String action
|
||||
test('to test the property `action`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String amountRub
|
||||
test('to test the property `amountRub`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool blockedByCash
|
||||
test('to test the property `blockedByCash`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int instrumentId
|
||||
test('to test the property `instrumentId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int lot
|
||||
test('to test the property `lot`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String price
|
||||
test('to test the property `price`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String priceCurrency
|
||||
test('to test the property `priceCurrency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String suggestedQty
|
||||
test('to test the property `suggestedQty`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String ticker
|
||||
test('to test the property `ticker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for UnmatchedBrokerOut
|
||||
void main() {
|
||||
final UnmatchedBrokerOut? instance = /* UnmatchedBrokerOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(UnmatchedBrokerOut, () {
|
||||
// int accountId
|
||||
test('to test the property `accountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// decimal as string
|
||||
// String amount
|
||||
test('to test the property `amount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime date
|
||||
test('to test the property `date`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String direction
|
||||
test('to test the property `direction`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int eventId
|
||||
test('to test the property `eventId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for UnmatchedOut
|
||||
void main() {
|
||||
final UnmatchedOut? instance = /* UnmatchedOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(UnmatchedOut, () {
|
||||
// List<UnmatchedBrokerOut> broker
|
||||
test('to test the property `broker`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<UnmatchedZmOut> zm
|
||||
test('to test the property `zm`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
// tests for UnmatchedZmOut
|
||||
void main() {
|
||||
final UnmatchedZmOut? instance = /* UnmatchedZmOut(...) */ null;
|
||||
// TODO add properties to the entity
|
||||
|
||||
group(UnmatchedZmOut, () {
|
||||
// decimal as string
|
||||
// String amount
|
||||
test('to test the property `amount`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int brokerAccountId
|
||||
test('to test the property `brokerAccountId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int cashTxnId
|
||||
test('to test the property `cashTxnId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String comment
|
||||
test('to test the property `comment`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String currency
|
||||
test('to test the property `currency`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime date
|
||||
test('to test the property `date`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String direction
|
||||
test('to test the property `direction`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String payee
|
||||
test('to test the property `payee`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String route
|
||||
test('to test the property `route`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user