CheckPoint: Avances Varios
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace SIGCM.Application;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
@@ -9,14 +9,38 @@ public class CreateListingDto
|
||||
public decimal Price { get; set; }
|
||||
public string Currency { get; set; } = "ARS";
|
||||
public int? UserId { get; set; }
|
||||
|
||||
// Dictionary of AttributeDefinitionId -> Value
|
||||
public Dictionary<int, string> Attributes { get; set; } = new();
|
||||
public string? PrintText { get; set; }
|
||||
public string? PrintFontSize { get; set; }
|
||||
public string? PrintAlignment { get; set; }
|
||||
public int PrintDaysCount { get; set; }
|
||||
}
|
||||
|
||||
public class ListingDto : CreateListingDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public string Status { get; set; }
|
||||
public required string Status { get; set; }
|
||||
}
|
||||
|
||||
public class ListingDetailDto : ListingDto
|
||||
{
|
||||
public IEnumerable<ListingAttributeDto> AttributeValues { get; set; } = new List<ListingAttributeDto>();
|
||||
public IEnumerable<ListingImageDto> Images { get; set; } = new List<ListingImageDto>();
|
||||
}
|
||||
|
||||
public class ListingAttributeDto
|
||||
{
|
||||
public int ListingId { get; set; }
|
||||
public int AttributeDefinitionId { get; set; }
|
||||
public required string AttributeName { get; set; }
|
||||
public required string Value { get; set; }
|
||||
}
|
||||
|
||||
public class ListingImageDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Url { get; set; }
|
||||
public bool IsMainInfo { get; set; }
|
||||
public int DisplayOrder { get; set; }
|
||||
}
|
||||
24
src/SIGCM.Application/DTOs/PricingDtos.cs
Normal file
24
src/SIGCM.Application/DTOs/PricingDtos.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace SIGCM.Application.DTOs;
|
||||
|
||||
public class CalculatePriceRequest
|
||||
{
|
||||
public int CategoryId { get; set; }
|
||||
public required string Text { get; set; }
|
||||
public int Days { get; set; }
|
||||
public bool IsBold { get; set; }
|
||||
public bool IsFrame { get; set; }
|
||||
public DateTime StartDate { get; set; }
|
||||
}
|
||||
|
||||
public class CalculatePriceResponse
|
||||
{
|
||||
public decimal TotalPrice { get; set; }
|
||||
public int WordCount { get; set; }
|
||||
public int SpecialCharCount { get; set; }
|
||||
public decimal BaseCost { get; set; }
|
||||
public decimal ExtraCost { get; set; }
|
||||
public decimal Surcharges { get; set; }
|
||||
public decimal Discount { get; set; }
|
||||
public string Details { get; set; } = string.Empty;
|
||||
public string AppliedPromotion { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user