refactor: remove LockedWalletAmount from DayaLoan processing logic
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m56s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m56s
This commit is contained in:
+1
-4
@@ -23,10 +23,7 @@ public record ProcessDayaLoanApprovalCommand : IRequest<ProcessDayaLoanApprovalR
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public long WalletAmount { get; init; } = SystemConstants.DayaLoanAmount;
|
public long WalletAmount { get; init; } = SystemConstants.DayaLoanAmount;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// مبلغ کیف پول قفل شده
|
|
||||||
/// </summary>
|
|
||||||
public long LockedWalletAmount { get; init; } = SystemConstants.DayaLoanAmount;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// مبلغ کیف پول تخفیف (دو برابر)
|
/// مبلغ کیف پول تخفیف (دو برابر)
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ public class ProcessDayaLoanApprovalCommandHandler : IRequestHandler<ProcessDaya
|
|||||||
// ایجاد تراکنش با RefId = شماره قرارداد دایا
|
// ایجاد تراکنش با RefId = شماره قرارداد دایا
|
||||||
var transaction = new Transaction
|
var transaction = new Transaction
|
||||||
{
|
{
|
||||||
Amount = request.WalletAmount + request.LockedWalletAmount + request.DiscountWalletAmount, // 168 میلیون
|
Amount = request.WalletAmount , // 168 میلیون
|
||||||
Description = $"دریافت اعتبار دایا - قرارداد {request.ContractNumber}",
|
Description = $"دریافت اعتبار دایا - قرارداد {request.ContractNumber}",
|
||||||
PaymentStatus = PaymentStatus.Success,
|
PaymentStatus = PaymentStatus.Success,
|
||||||
PaymentDate = DateTime.Now,
|
PaymentDate = DateTime.Now,
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ public class DayaLoanCheckWorker
|
|||||||
{
|
{
|
||||||
UserId = user.Id,
|
UserId = user.Id,
|
||||||
ContractNumber = result.ContractNumber,
|
ContractNumber = result.ContractNumber,
|
||||||
LockedWalletAmount = 0, // TODO: not needed for now
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var processResult = await _mediator.Send(processCommand);
|
var processResult = await _mediator.Send(processCommand);
|
||||||
|
|||||||
Reference in New Issue
Block a user