From 59ddb9f7b2bf29970a46f4dec7699e4495aa7257 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 9 Oct 2025 17:08:01 +0200 Subject: [PATCH] Creating all WareHouseProduct DTO --- .../Request/CreateWareHouseProductDto.cs | 28 +++++++++++++++++ .../PatchWareHouseProductQuantityDto.cs | 7 +++++ .../Request/UpdateWareHouseProductDto.cs | 29 +++++++++++++++++ .../Response/GetWareHouseProductDto.cs | 31 +++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 PyroFetes/DTO/PurchaseProduct/Request/CreateWareHouseProductDto.cs create mode 100644 PyroFetes/DTO/PurchaseProduct/Request/PatchWareHouseProductQuantityDto.cs create mode 100644 PyroFetes/DTO/PurchaseProduct/Request/UpdateWareHouseProductDto.cs create mode 100644 PyroFetes/DTO/PurchaseProduct/Response/GetWareHouseProductDto.cs diff --git a/PyroFetes/DTO/PurchaseProduct/Request/CreateWareHouseProductDto.cs b/PyroFetes/DTO/PurchaseProduct/Request/CreateWareHouseProductDto.cs new file mode 100644 index 0000000..a617180 --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Request/CreateWareHouseProductDto.cs @@ -0,0 +1,28 @@ +namespace PyroFetes.DTO.PurchaseProduct.Request; + +public class CreateWareHouseProductDto +{ + public int Quantity { get; set; } + + public int WareHouseId { get; set; } + public string? WareHouseName {get; set;} + public int WareHouseMaxWeight {get; set;} + public int WareHouseCurrent {get; set;} + public int WareHouseMinWeight {get; set;} + public string? WareHouseAddress { get; set; } + public int WareHouseZipCode { get; set; } + public string? WareHouseCity { 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; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/PurchaseProduct/Request/PatchWareHouseProductQuantityDto.cs b/PyroFetes/DTO/PurchaseProduct/Request/PatchWareHouseProductQuantityDto.cs new file mode 100644 index 0000000..15a7cc0 --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Request/PatchWareHouseProductQuantityDto.cs @@ -0,0 +1,7 @@ +namespace PyroFetes.DTO.PurchaseProduct.Request; + +public class PatchWareHouseProductQuantityDto +{ + public int Id { get; set; } + public int Quantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/PurchaseProduct/Request/UpdateWareHouseProductDto.cs b/PyroFetes/DTO/PurchaseProduct/Request/UpdateWareHouseProductDto.cs new file mode 100644 index 0000000..302962c --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Request/UpdateWareHouseProductDto.cs @@ -0,0 +1,29 @@ +namespace PyroFetes.DTO.PurchaseProduct.Request; + +public class UpdateWareHouseProductDto +{ + public int Id { get; set; } + public int Quantity { get; set; } + + public int WareHouseId { get; set; } + public string? WareHouseName {get; set;} + public int WareHouseMaxWeight {get; set;} + public int WareHouseCurrent {get; set;} + public int WareHouseMinWeight {get; set;} + public string? WareHouseAddress { get; set; } + public int WareHouseZipCode { get; set; } + public string? WareHouseCity { 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; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/PurchaseProduct/Response/GetWareHouseProductDto.cs b/PyroFetes/DTO/PurchaseProduct/Response/GetWareHouseProductDto.cs new file mode 100644 index 0000000..d2ec8a2 --- /dev/null +++ b/PyroFetes/DTO/PurchaseProduct/Response/GetWareHouseProductDto.cs @@ -0,0 +1,31 @@ +using PyroFetes.Models; + +namespace PyroFetes.DTO.PurchaseProduct.Response; + +public class GetWareHouseProductDto +{ + public int Id { get; set; } + public int Quantity { get; set; } + + public int WareHouseId { get; set; } + public string? WareHouseName {get; set;} + public int WareHouseMaxWeight {get; set;} + public int WareHouseCurrent {get; set;} + public int WareHouseMinWeight {get; set;} + public string? WareHouseAddress { get; set; } + public int WareHouseZipCode { get; set; } + public string? WareHouseCity { 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; } +} \ No newline at end of file