dev add notification entity
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-04-02 11:01:09 +07:00
parent 051f1ef5d4
commit 8bc95efa2b
5 changed files with 32 additions and 3 deletions
@@ -177,7 +177,7 @@ public class PaymentService {
String reason = (String) cancellationDetails.get("reason");
payment.setCancellationReason(reason);
notificationService.addNotification(NotificationType.PAYOUT_RESULT, payment.getUser().getId(), reason);
notificationService.addNotification(NotificationType.PAYMENT_RESULT, payment.getUser().getId(), reason);
} else if ("payment.waiting_for_capture".equals(eventType)) {
payment.setStatus(PaymentStatus.WAITING);
payment.setCancellationReason(null);
@@ -190,7 +190,7 @@ public class PaymentService {
String reason = (String) cancellationDetails.get("reason");
payment.setCancellationReason(reason);
notificationService.addNotification(NotificationType.PAYOUT_RESULT, payment.getUser().getId(), reason);
notificationService.addNotification(NotificationType.PAYMENT_RESULT, payment.getUser().getId(), reason);
}
paymentRepository.save(payment);