2026-02-24 20:44:16 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sozsoft.Platform.Public;
|
|
|
|
|
|
|
|
|
|
|
|
public class ProductDto : EntityDto<Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid? TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
public string Category { get; set; }
|
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
|
public decimal? MonthlyPrice { get; set; }
|
|
|
|
|
|
public decimal? YearlyPrice { get; set; }
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public decimal VatRate { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public bool IsQuantityBased { get; set; }
|
|
|
|
|
|
public string ImageUrl { get; set; }
|
|
|
|
|
|
public string Unit =>
|
|
|
|
|
|
MonthlyPrice.HasValue && YearlyPrice.HasValue && MonthlyPrice != YearlyPrice
|
|
|
|
|
|
? "monthly"
|
|
|
|
|
|
: "yearly";
|
|
|
|
|
|
}
|
|
|
|
|
|
|