feat: Add ClearCart command and response, implement CancelOrder command with validation, and enhance DeliveryStatus and User models
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
|
||||
public class CancelOrderEvent : BaseEvent
|
||||
{
|
||||
public CancelOrderEvent(UserOrder order, string reason)
|
||||
{
|
||||
Order = order;
|
||||
CancelReason = reason;
|
||||
}
|
||||
|
||||
public UserOrder Order { get; }
|
||||
public string CancelReason { get; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
|
||||
public class ClearCartEvent : BaseEvent
|
||||
{
|
||||
public ClearCartEvent(UserCarts item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public UserCarts Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
|
||||
public class DayaLoanApprovedEvent : BaseEvent
|
||||
{
|
||||
public DayaLoanApprovedEvent(User user, Transactions transaction, string contractNumber)
|
||||
{
|
||||
User = user;
|
||||
Transaction = transaction;
|
||||
ContractNumber = contractNumber;
|
||||
}
|
||||
|
||||
public User User { get; }
|
||||
public Transactions Transaction { get; }
|
||||
public string ContractNumber { get; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
|
||||
public class RefundTransactionEvent : BaseEvent
|
||||
{
|
||||
public RefundTransactionEvent(Transactions refundTransaction, Transactions originalTransaction)
|
||||
{
|
||||
RefundTransaction = refundTransaction;
|
||||
OriginalTransaction = originalTransaction;
|
||||
}
|
||||
|
||||
public Transactions RefundTransaction { get; }
|
||||
public Transactions OriginalTransaction { get; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
|
||||
public class VerifyTransactionEvent : BaseEvent
|
||||
{
|
||||
public VerifyTransactionEvent(Transactions item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public Transactions Item { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user