fix: proper DeliveryStatus mapping + cancel delivery on failed payment
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m22s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m22s
- Added MapDeliveryStatus() to correctly map Domain→Proto enum values - Domain Pending(1) was incorrectly cast to Proto PROCESSING(1) instead of PROCESSING - Set DeliveryStatus=Cancelled when payment fails (CompleteOrderPaymentCommandHandler) - Set DeliveryStatus=Cancelled when order expires (ExpirePendingOrdersService)
This commit is contained in:
@@ -89,6 +89,7 @@ public class ExpirePendingOrdersService : BackgroundService
|
||||
|
||||
// تغییر وضعیت به Reject
|
||||
order.PaymentStatus = PaymentStatus.Reject;
|
||||
order.DeliveryStatus = DeliveryStatus.Cancelled;
|
||||
|
||||
// آپدیت تراکنش مربوطه
|
||||
if (order.TransactionId.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user