fix change status in payment issue

release
Amir Hossein Khademi 2024-04-02 11:40:45 +03:30
parent dada0113c4
commit caf1bdd904
5 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
0.17.22.36
0.17.22.37

View File

@ -6,8 +6,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyVersion>0.17.22.36</AssemblyVersion>
<FileVersion>0.17.22.36</FileVersion>
<AssemblyVersion>0.17.22.37</AssemblyVersion>
<FileVersion>0.17.22.37</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -35,6 +35,8 @@ public class SubmitOrderPaymentCommandHandler : IRequestHandler<SubmitOrderPayme
{
response.NeedToPayOnline = false;
order.SetOrderPayment(request.PaymentMethod);
_repositoryWrapper.SetRepository<Order>().Update(order);
await _repositoryWrapper.SaveChangesAsync(cancellationToken);
}
else
{

View File

@ -5,6 +5,8 @@ public class ShopSetting
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Slogan { get; set; } = string.Empty;
public string City { get; set; } = string.Empty;
public string Province { get; set; } = string.Empty;
public double LocationLat { get; set; }
public double LocationLon { get; set; }
public string Address { get; set; } = string.Empty;

View File

@ -40,6 +40,8 @@ public class CreateOrUpdatePaymentCommandHandler : IRequestHandler<CreateOrUpdat
var newEnt = Payment.Create(request.FactorNumber, request.Amount, request.Description, request.TransactionCode,
request.CardPan, request.Authority, request.Type, request.Status, request.OrderId, request.UserId);
newEnt.Id = orderPayment.Id;
newEnt.CreatedAt = orderPayment.CreatedAt;
newEnt.CreatedBy = orderPayment.CreatedBy;
_repositoryWrapper.SetRepository<Payment>()
.Update(newEnt);