From 464869e3ca3cb1b2b4e463821f7889dcc0bd6838 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 9 Oct 2025 19:00:55 +0100 Subject: [PATCH] Creating of all price dto --- PyroFetes/DTO/Price/Request/CreatePriceDto.cs | 27 ++++++++++++++++++ .../Request/PatchPriceSellingPriceDto.cs | 7 +++++ PyroFetes/DTO/Price/Request/UpdatePriceDto.cs | 28 +++++++++++++++++++ PyroFetes/DTO/Price/Response/GetPriceDto.cs | 28 +++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 PyroFetes/DTO/Price/Request/CreatePriceDto.cs create mode 100644 PyroFetes/DTO/Price/Request/PatchPriceSellingPriceDto.cs create mode 100644 PyroFetes/DTO/Price/Request/UpdatePriceDto.cs create mode 100644 PyroFetes/DTO/Price/Response/GetPriceDto.cs diff --git a/PyroFetes/DTO/Price/Request/CreatePriceDto.cs b/PyroFetes/DTO/Price/Request/CreatePriceDto.cs new file mode 100644 index 0000000..f268d21 --- /dev/null +++ b/PyroFetes/DTO/Price/Request/CreatePriceDto.cs @@ -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; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Price/Request/PatchPriceSellingPriceDto.cs b/PyroFetes/DTO/Price/Request/PatchPriceSellingPriceDto.cs new file mode 100644 index 0000000..5692248 --- /dev/null +++ b/PyroFetes/DTO/Price/Request/PatchPriceSellingPriceDto.cs @@ -0,0 +1,7 @@ +namespace PyroFetes.DTO.Price.Request; + +public class PatchPriceSellingPriceDto +{ + public int Id { get; set; } + public decimal SellingPrice { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Price/Request/UpdatePriceDto.cs b/PyroFetes/DTO/Price/Request/UpdatePriceDto.cs new file mode 100644 index 0000000..6f6af24 --- /dev/null +++ b/PyroFetes/DTO/Price/Request/UpdatePriceDto.cs @@ -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; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Price/Response/GetPriceDto.cs b/PyroFetes/DTO/Price/Response/GetPriceDto.cs new file mode 100644 index 0000000..81a8f07 --- /dev/null +++ b/PyroFetes/DTO/Price/Response/GetPriceDto.cs @@ -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; } +} \ No newline at end of file