From a262fb094c30ac974b345a846b7166bbf3c00407 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 9 Oct 2025 17:47:12 +0200 Subject: [PATCH] Creating all supplier dto --- PyroFetes/DTO/Supplier/Request/CreateSupplierDto.cs | 12 ++++++++++++ .../Request/PatchSupplierDeliveryDelayDto.cs | 7 +++++++ PyroFetes/DTO/Supplier/Request/UpdateSupplierDto.cs | 13 +++++++++++++ PyroFetes/DTO/Supplier/Response/GetSupplierDto.cs | 13 +++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 PyroFetes/DTO/Supplier/Request/CreateSupplierDto.cs create mode 100644 PyroFetes/DTO/Supplier/Request/PatchSupplierDeliveryDelayDto.cs create mode 100644 PyroFetes/DTO/Supplier/Request/UpdateSupplierDto.cs create mode 100644 PyroFetes/DTO/Supplier/Response/GetSupplierDto.cs diff --git a/PyroFetes/DTO/Supplier/Request/CreateSupplierDto.cs b/PyroFetes/DTO/Supplier/Request/CreateSupplierDto.cs new file mode 100644 index 0000000..b9e9fe0 --- /dev/null +++ b/PyroFetes/DTO/Supplier/Request/CreateSupplierDto.cs @@ -0,0 +1,12 @@ +namespace PyroFetes.DTO.Supplier.Request; + +public class CreateSupplierDto +{ + public string? Name { get; set; } + public string? Email { get; set; } + public string? Phone { get; set; } + public string? Address { get; set; } + public int ZipCode { get; set; } + public string? City { get; set; } + public int DeliveryDelay { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Supplier/Request/PatchSupplierDeliveryDelayDto.cs b/PyroFetes/DTO/Supplier/Request/PatchSupplierDeliveryDelayDto.cs new file mode 100644 index 0000000..a5e8fbc --- /dev/null +++ b/PyroFetes/DTO/Supplier/Request/PatchSupplierDeliveryDelayDto.cs @@ -0,0 +1,7 @@ +namespace PyroFetes.DTO.Supplier.Request; + +public class PatchSupplierDeliveryDelayDto +{ + public int Id { get; set; } + public int DeliveryDelay { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Supplier/Request/UpdateSupplierDto.cs b/PyroFetes/DTO/Supplier/Request/UpdateSupplierDto.cs new file mode 100644 index 0000000..b69b72b --- /dev/null +++ b/PyroFetes/DTO/Supplier/Request/UpdateSupplierDto.cs @@ -0,0 +1,13 @@ +namespace PyroFetes.DTO.Supplier.Request; + +public class UpdateSupplierDto +{ + public int Id { get; set; } + public string? Name { get; set; } + public string? Email { get; set; } + public string? Phone { get; set; } + public string? Address { get; set; } + public int ZipCode { get; set; } + public string? City { get; set; } + public int DeliveryDelay { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Supplier/Response/GetSupplierDto.cs b/PyroFetes/DTO/Supplier/Response/GetSupplierDto.cs new file mode 100644 index 0000000..7390854 --- /dev/null +++ b/PyroFetes/DTO/Supplier/Response/GetSupplierDto.cs @@ -0,0 +1,13 @@ +namespace PyroFetes.DTO.Supplier.Response; + +public class GetSupplierDto +{ + public int Id { get; set; } + public string? Name { get; set; } + public string? Email { get; set; } + public string? Phone { get; set; } + public string? Address { get; set; } + public int ZipCode { get; set; } + public string? City { get; set; } + public int DeliveryDelay { get; set; } +} \ No newline at end of file