SignalR improvements; etc...

This commit is contained in:
Loretta 2025-10-30 14:54:33 +01:00
parent df9157c4ab
commit ec71f81d4c
6 changed files with 14 additions and 3 deletions

View File

@ -8,6 +8,7 @@ using Nop.Core.Domain.Catalog;
using Nop.Core.Domain.Common;
using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Orders;
using Nop.Core.Domain.Payments;
using Nop.Core.Domain.Shipping;
namespace Mango.Nop.Core.Dtos;
@ -23,6 +24,7 @@ public abstract class MgOrderDto<TOrderItemDto, TProductDto> : MgEntityBase, IMo
public decimal OrderTotal { get; set; }
public DateTime CreatedOnUtc { get; set; }
public DateTime? PaidDateUtc { get; set; }
public int PaymentStatusId { get; set; }
public string ShippingMethod { get; set; }
public string CustomOrderNumber { get; set; }
public string CustomValuesXml { get; set; }
@ -44,6 +46,11 @@ public abstract class MgOrderDto<TOrderItemDto, TProductDto> : MgEntityBase, IMo
get => (ShippingStatus)ShippingStatusId;
set => ShippingStatusId = (int)value;
}
public PaymentStatus PaymentStatus
{
get => (PaymentStatus)PaymentStatusId;
set => PaymentStatusId = (int)value;
}
protected MgOrderDto() :base()
{ }

View File

@ -17,6 +17,7 @@ public abstract class MgProductDto : MgEntityBase, IModelDtoBase<Product>, IMgPr
public string FullDescription { get; set; }
public int WarehouseId { get; set; }
public decimal Price { get; set; }
public int StockQuantity { get; set; }
public decimal ProductCost { get; set; }

View File

@ -18,6 +18,7 @@ public interface IMgProductDto : IEntityInt, ILocalizedEntity, ISlugSupported, I
string FullDescription { get; set; }
int WarehouseId { get; set; }
decimal Price { get; set; }
int StockQuantity { get; set; }
decimal ProductCost { get; set; }

View File

@ -5,7 +5,7 @@ using AyCode.Core.Loggers;
using AyCode.Utils.Extensions;
using Mango.Nop.Core.Interfaces;
using Mango.Nop.Core.Loggers;
using Mango.Nop.Services;
using Mango.Nop.Core.Services;
using Nop.Core.Caching;
using Nop.Core.Domain.Catalog;
using Nop.Core.Domain.Orders;

View File

@ -1,4 +1,4 @@
namespace Mango.Nop.Services;
namespace Mango.Nop.Core.Services;
public interface IMgLockService
{

View File

@ -1,4 +1,6 @@
namespace Mango.Nop.Services;
using Mango.Nop.Core.Services;
namespace Mango.Nop.Services;
public abstract class MgLockServiceBase : IMgLockService
{