Fix naming conflict in ReceiptAutoMapResult

Renamed static factory method from 'MultipleMatches' to
'WithMultipleMatches' to avoid conflict with the 'MultipleMatches'
property in the same class.

This resolves the compilation error: "The type 'ReceiptAutoMapResult'
already contains a definition for 'MultipleMatches'".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
AJ
2025-10-12 13:13:09 -04:00
parent 5511709a86
commit a5bda6f94f
2 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,8 @@
"Bash(dotnet build)", "Bash(dotnet build)",
"Bash(dotnet ef database:*)", "Bash(dotnet ef database:*)",
"Bash(dotnet ef migrations:*)", "Bash(dotnet ef migrations:*)",
"Bash(git reset:*)" "Bash(git reset:*)",
"Bash(already contains a definition for 'MultipleMatches'\".\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@@ -45,7 +45,7 @@ namespace MoneyMap.Services
return ReceiptAutoMapResult.NoMatch(); return ReceiptAutoMapResult.NoMatch();
if (candidateTransactions.Count > 1) if (candidateTransactions.Count > 1)
return ReceiptAutoMapResult.MultipleMatches(candidateTransactions); return ReceiptAutoMapResult.WithMultipleMatches(candidateTransactions);
// Single match found - auto-map it // Single match found - auto-map it
var transaction = candidateTransactions[0]; var transaction = candidateTransactions[0];
@@ -164,7 +164,7 @@ namespace MoneyMap.Services
public static ReceiptAutoMapResult NoMatch() => public static ReceiptAutoMapResult NoMatch() =>
new() { Status = AutoMapStatus.NoMatch, Message = "No matching transaction found." }; new() { Status = AutoMapStatus.NoMatch, Message = "No matching transaction found." };
public static ReceiptAutoMapResult MultipleMatches(List<Transaction> matches) => public static ReceiptAutoMapResult WithMultipleMatches(List<Transaction> matches) =>
new() { Status = AutoMapStatus.MultipleMatches, MultipleMatches = matches, Message = $"Found {matches.Count} potential matches." }; new() { Status = AutoMapStatus.MultipleMatches, MultipleMatches = matches, Message = $"Found {matches.Count} potential matches." };
public static ReceiptAutoMapResult NotParsed() => public static ReceiptAutoMapResult NotParsed() =>