feat(payments): rename match reason from 'exact_amount_different_dni' to 'exact_amount_near_dni'

This commit is contained in:
2026-08-27 16:40:32 -03:00
parent 9bca41bfa5
commit b617285148
4 changed files with 25 additions and 4 deletions

View File

@@ -317,7 +317,7 @@ class TelepagosWebhookService
abs((float) $purchaseAmount - (float) $amount),
),
'match_reason' => $amountMatches
? ($dniMatches ? 'ambiguous_exact_match' : 'exact_amount_different_dni')
? ($dniMatches ? 'ambiguous_exact_match' : 'exact_amount_near_dni')
: 'exact_dni_near_amount',
'confidence' => $amountMatches
? ($dniMatches ? 'exact' : 'medium')