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:
@@ -7,7 +7,8 @@
|
||||
"Bash(dotnet build)",
|
||||
"Bash(dotnet ef database:*)",
|
||||
"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": [],
|
||||
"ask": []
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace MoneyMap.Services
|
||||
return ReceiptAutoMapResult.NoMatch();
|
||||
|
||||
if (candidateTransactions.Count > 1)
|
||||
return ReceiptAutoMapResult.MultipleMatches(candidateTransactions);
|
||||
return ReceiptAutoMapResult.WithMultipleMatches(candidateTransactions);
|
||||
|
||||
// Single match found - auto-map it
|
||||
var transaction = candidateTransactions[0];
|
||||
@@ -164,7 +164,7 @@ namespace MoneyMap.Services
|
||||
public static ReceiptAutoMapResult NoMatch() =>
|
||||
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." };
|
||||
|
||||
public static ReceiptAutoMapResult NotParsed() =>
|
||||
|
||||
Reference in New Issue
Block a user