ing connected, makign some features

This commit is contained in:
davmar
2026-09-07 00:20:58 +02:00
parent 87afe271b7
commit 21df7b0085
15 changed files with 1197 additions and 322 deletions
+5
View File
@@ -1,6 +1,8 @@
/// Domain models for the personal ingtrak bank-data API.
library;
import 'transaction_meta.dart' show merchantKeyFromDescription;
/// Result of `POST /api/connect`.
class ConnectStart {
const ConnectStart({required this.authUrl, required this.state});
@@ -101,6 +103,9 @@ class BankTransaction {
String get descriptionKey =>
description.trim().toLowerCase().replaceAll(RegExp(r'\s+'), ' ');
/// Fuzzy merchant key — strips dates / terminal / SEPA noise.
String get merchantKey => merchantKeyFromDescription(description);
/// Exact match for copying notes (same description + amount + currency).
String get exactKey => '$descriptionKey|$amount|$currency';