ing connected, makign some features
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user