From 2d42fa10176dae2cb99a3571154620250f1af518 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 9 Oct 2025 16:46:22 +0200 Subject: [PATCH] Creating all PurchaseProduct DTO --- .../Request/CreatePurchaseProductDto.cs | 23 ++++++++++++++++++ .../PatchPurchaseProductQuantityDto.cs | 11 +++++++++ .../Request/UpdatePurchaseProductDto.cs | 24 +++++++++++++++++++ .../Response/GetPurchaseProductDto.cs | 24 +++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 PyroFetes/DTO/PurchaseProduct/Request/CreatePurchaseProductDto.cs create mode 100644 PyroFetes/DTO/PurchaseProduct/Request/PatchPurchaseProductQuantityDto.cs create mode 100644 PyroFetes/DTO/PurchaseProduct/Request/UpdatePurchaseProductDto.cs create mode 100644 PyroFetes/DTO/PurchaseProduct/Response/GetPurchaseProductDto.cs diff --git a/PyroFetes/DTO/PurchaseProduct/Request/CreatePurchaseProductDto.cs b/PyroFetes/DTO/PurchaseProduct/Request/CreatePurchaseProductDto.cs new file mode 100644 index 0000000..5b36db9 --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Request/CreatePurchaseProductDto.cs @@ -0,0 +1,23 @@ +namespace PyroFetes.DTO.PurchaseProduct.Request; + +public class CreatePurchaseProductDto +{ + public int Quantity { 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 decimal ProductSellingPrice { get; set; } + public string? ProductImage { get; set; } + public string? ProductLink { get; set; } + public int ProductMinimalQuantity { get; set; } + + + public int PurchaseOrderId { get; set; } + public string? PurchaseOrderPurchaseConditions { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/PurchaseProduct/Request/PatchPurchaseProductQuantityDto.cs b/PyroFetes/DTO/PurchaseProduct/Request/PatchPurchaseProductQuantityDto.cs new file mode 100644 index 0000000..785e6e6 --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Request/PatchPurchaseProductQuantityDto.cs @@ -0,0 +1,11 @@ +namespace PyroFetes.DTO.PurchaseProduct.Request; + +public class PatchPurchaseProductQuantityDto +{ + public int Id { get; set; } + public int Quantity { get; set; } + + public int ProductId { get; set; } + + public int PurchaseOrderId { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/PurchaseProduct/Request/UpdatePurchaseProductDto.cs b/PyroFetes/DTO/PurchaseProduct/Request/UpdatePurchaseProductDto.cs new file mode 100644 index 0000000..cb23f75 --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Request/UpdatePurchaseProductDto.cs @@ -0,0 +1,24 @@ +namespace PyroFetes.DTO.PurchaseProduct.Request; + +public class UpdatePurchaseProductDto +{ + public int Id { get; set; } + public int Quantity { 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 decimal ProductSellingPrice { get; set; } + public string? ProductImage { get; set; } + public string? ProductLink { get; set; } + public int ProductMinimalQuantity { get; set; } + + + public int PurchaseOrderId { get; set; } + public string? PurchaseOrderPurchaseConditions { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/PurchaseProduct/Response/GetPurchaseProductDto.cs b/PyroFetes/DTO/PurchaseProduct/Response/GetPurchaseProductDto.cs new file mode 100644 index 0000000..1858e3f --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Response/GetPurchaseProductDto.cs @@ -0,0 +1,24 @@ +namespace PyroFetes.DTO.PurchaseProduct.Response; + +public class GetPurchaseProductDto +{ + public int Id { get; set; } + public int Quantity { 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 decimal ProductSellingPrice { get; set; } + public string? ProductImage { get; set; } + public string? ProductLink { get; set; } + public int ProductMinimalQuantity { get; set; } + + + public int PurchaseOrderId { get; set; } + public string? PurchaseOrderPurchaseConditions { get; set; } +} \ No newline at end of file