feat(payment): update payment status values to use 'success' and 'failed' instead of 'received' and add new status

This commit is contained in:
hamed
2026-06-19 01:21:57 +03:30
parent e7be54b84e
commit 9b0af282e0
3 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -15,9 +15,10 @@ const appointmentMap: Record<AppointmentStatus, { color: BadgeColor; label: stri
const paymentMap: Record<PaymentStatus, { color: BadgeColor; label: string }> = {
pending: { color: 'amber', label: 'در انتظار' },
received: { color: 'green', label: 'موفق' },
success: { color: 'green', label: 'موفق' },
failed: { color: 'red', label: 'ناموفق' },
canceled: { color: 'red', label: 'لغو شده' },
refund: { color: 'blue', label: 'استرداد' },
refunded: { color: 'blue', label: 'استرداد' },
};
const smsMap: Record<SmsTemplateStatus, { color: BadgeColor; label: string }> = {