Creating of all price dto
This commit is contained in:
27
PyroFetes/DTO/Price/Request/CreatePriceDto.cs
Normal file
27
PyroFetes/DTO/Price/Request/CreatePriceDto.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
namespace PyroFetes.DTO.Price.Request;
|
||||||
|
|
||||||
|
public class CreatePriceDto
|
||||||
|
{
|
||||||
|
public decimal SellingPrice { get; set; }
|
||||||
|
|
||||||
|
public int SupplierId { get; set; }
|
||||||
|
public string? SupplierName { get; set; }
|
||||||
|
public string? SupplierEmail { get; set; }
|
||||||
|
public string? SupplierPhone { get; set; }
|
||||||
|
public string? SupplierAddress { get; set; }
|
||||||
|
public int SupplierZipCode { get; set; }
|
||||||
|
public string? SupplierCity { get; set; }
|
||||||
|
public int SupplierDeliveryDelay { get; set; }
|
||||||
|
|
||||||
|
public int ProductId { get; set; }
|
||||||
|
public int ProductReferences { get; set; }
|
||||||
|
public string? ProductName { get; set; }
|
||||||
|
public decimal ProductDuration {get; set;}
|
||||||
|
public decimal ProductCaliber { get; set; }
|
||||||
|
public int ProductApprovalNumber { get; set; }
|
||||||
|
public decimal ProductWeight { get; set; }
|
||||||
|
public decimal ProductNec { get; set; }
|
||||||
|
public string? ProductImage { get; set; }
|
||||||
|
public string? ProductLink { get; set; }
|
||||||
|
public int ProductMinimalQuantity { get; set; }
|
||||||
|
}
|
7
PyroFetes/DTO/Price/Request/PatchPriceSellingPriceDto.cs
Normal file
7
PyroFetes/DTO/Price/Request/PatchPriceSellingPriceDto.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace PyroFetes.DTO.Price.Request;
|
||||||
|
|
||||||
|
public class PatchPriceSellingPriceDto
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public decimal SellingPrice { get; set; }
|
||||||
|
}
|
28
PyroFetes/DTO/Price/Request/UpdatePriceDto.cs
Normal file
28
PyroFetes/DTO/Price/Request/UpdatePriceDto.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
namespace PyroFetes.DTO.Price.Request;
|
||||||
|
|
||||||
|
public class UpdatePriceDto
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public decimal SellingPrice { get; set; }
|
||||||
|
|
||||||
|
public int SupplierId { get; set; }
|
||||||
|
public string? SupplierName { get; set; }
|
||||||
|
public string? SupplierEmail { get; set; }
|
||||||
|
public string? SupplierPhone { get; set; }
|
||||||
|
public string? SupplierAddress { get; set; }
|
||||||
|
public int SupplierZipCode { get; set; }
|
||||||
|
public string? SupplierCity { get; set; }
|
||||||
|
public int SupplierDeliveryDelay { get; set; }
|
||||||
|
|
||||||
|
public int ProductId { get; set; }
|
||||||
|
public int ProductReferences { get; set; }
|
||||||
|
public string? ProductName { get; set; }
|
||||||
|
public decimal ProductDuration {get; set;}
|
||||||
|
public decimal ProductCaliber { get; set; }
|
||||||
|
public int ProductApprovalNumber { get; set; }
|
||||||
|
public decimal ProductWeight { get; set; }
|
||||||
|
public decimal ProductNec { get; set; }
|
||||||
|
public string? ProductImage { get; set; }
|
||||||
|
public string? ProductLink { get; set; }
|
||||||
|
public int ProductMinimalQuantity { get; set; }
|
||||||
|
}
|
28
PyroFetes/DTO/Price/Response/GetPriceDto.cs
Normal file
28
PyroFetes/DTO/Price/Response/GetPriceDto.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
namespace PyroFetes.DTO.Price.Response;
|
||||||
|
|
||||||
|
public class GetPriceDto
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public decimal SellingPrice { get; set; }
|
||||||
|
|
||||||
|
public int SupplierId { get; set; }
|
||||||
|
public string? SupplierName { get; set; }
|
||||||
|
public string? SupplierEmail { get; set; }
|
||||||
|
public string? SupplierPhone { get; set; }
|
||||||
|
public string? SupplierAddress { get; set; }
|
||||||
|
public int SupplierZipCode { get; set; }
|
||||||
|
public string? SupplierCity { get; set; }
|
||||||
|
public int SupplierDeliveryDelay { get; set; }
|
||||||
|
|
||||||
|
public int ProductId { get; set; }
|
||||||
|
public int ProductReferences { get; set; }
|
||||||
|
public string? ProductName { get; set; }
|
||||||
|
public decimal ProductDuration {get; set;}
|
||||||
|
public decimal ProductCaliber { get; set; }
|
||||||
|
public int ProductApprovalNumber { get; set; }
|
||||||
|
public decimal ProductWeight { get; set; }
|
||||||
|
public decimal ProductNec { get; set; }
|
||||||
|
public string? ProductImage { get; set; }
|
||||||
|
public string? ProductLink { get; set; }
|
||||||
|
public int ProductMinimalQuantity { get; set; }
|
||||||
|
}
|
Reference in New Issue
Block a user