feat(scanner): update scan attempt result labels for consistency
This commit is contained in:
@@ -23,15 +23,10 @@ class ScanAttemptResource extends JsonResource
|
||||
'resolved_at' => $this->resolved_at,
|
||||
'result' => $this->result->value,
|
||||
'result_label' => match ($this->result) {
|
||||
ScanAttemptResult::Processing => 'Procesando',
|
||||
ScanAttemptResult::Accepted => 'Verificado',
|
||||
ScanAttemptResult::InvalidQr => 'QR inválido',
|
||||
ScanAttemptResult::TicketNotFound => 'Ticket inexistente',
|
||||
ScanAttemptResult::CategoryForbidden => 'Categoría no permitida',
|
||||
ScanAttemptResult::AlreadyScanned => 'Ya escaneado',
|
||||
ScanAttemptResult::AlreadyScanned => 'Usado',
|
||||
ScanAttemptResult::Expired => 'Vencido',
|
||||
ScanAttemptResult::NotValid => 'No válido',
|
||||
ScanAttemptResult::UnexpectedError => 'Error',
|
||||
default => 'Error',
|
||||
},
|
||||
'result_detail_label' => match ($this->result) {
|
||||
ScanAttemptResult::Processing => 'Error',
|
||||
|
||||
Reference in New Issue
Block a user