forked from sanchezvem/PyroFetes
correction types warehouses, products et suppliers
This commit is contained in:
@@ -6,7 +6,7 @@ namespace PyroFetes.DTO.Product.Request
|
||||
public class CreateProductDto
|
||||
{
|
||||
// Référence interne du produit
|
||||
public int References { get; set; }
|
||||
public string? Reference { get; set; }
|
||||
|
||||
// Nom du produit
|
||||
public string? Name { get; set; }
|
||||
@@ -18,7 +18,7 @@ namespace PyroFetes.DTO.Product.Request
|
||||
public decimal Caliber { get; set; }
|
||||
|
||||
// Numéro d’homologation
|
||||
public int ApprovalNumber { get; set; }
|
||||
public string? ApprovalNumber { get; set; }
|
||||
|
||||
// Poids du produit
|
||||
public decimal Weight { get; set; }
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace PyroFetes.DTO.Product.Request
|
||||
public int Id { get; set; }
|
||||
|
||||
// Référence interne du produit
|
||||
public int References { get; set; }
|
||||
public string? Reference { get; set; }
|
||||
|
||||
// Nom du produit
|
||||
public string? Name { get; set; }
|
||||
@@ -21,7 +21,7 @@ namespace PyroFetes.DTO.Product.Request
|
||||
public decimal Caliber { get; set; }
|
||||
|
||||
// Numéro d’homologation
|
||||
public int ApprovalNumber { get; set; }
|
||||
public string? ApprovalNumber { get; set; }
|
||||
|
||||
// Poids du produit
|
||||
public decimal Weight { get; set; }
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace PyroFetes.DTO.Product.Response
|
||||
public int Id { get; set; }
|
||||
|
||||
// Référence interne du produit
|
||||
public int Reference { get; set; }
|
||||
public string? Reference { get; set; }
|
||||
|
||||
// Nom du produit
|
||||
public string? Name { get; set; }
|
||||
@@ -22,7 +22,7 @@ namespace PyroFetes.DTO.Product.Response
|
||||
public decimal Caliber { get; set; }
|
||||
|
||||
// Numéro d’homologation
|
||||
public int ApprovalNumber { get; set; }
|
||||
public string? ApprovalNumber { get; set; }
|
||||
|
||||
// Poids du produit
|
||||
public decimal Weight { get; set; }
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
public class CreateSupplierDto
|
||||
{
|
||||
// Nom du fournisseur
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Email du fournisseur
|
||||
public string Email { get; set; }
|
||||
public string? Email { get; set; }
|
||||
|
||||
// Numéro de téléphone du fournisseur
|
||||
public string PhoneNumber { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
// Adresse du fournisseur
|
||||
public string Adress { get; set; }
|
||||
public string? Adress { get; set; }
|
||||
|
||||
// Code postal de l'adresse
|
||||
public int ZipCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
|
||||
// Ville de l'adresse
|
||||
public string City { get; set; }
|
||||
public string? City { get; set; }
|
||||
|
||||
// Liste des produits fournis par ce fournisseur dans la classe SupplierProductPriceDto
|
||||
public List<SupplierProductPriceDto>? Products { get; set; }
|
||||
|
||||
@@ -7,22 +7,22 @@
|
||||
public int Id { get; set; }
|
||||
|
||||
// Nom du fournisseur
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Email du fournisseur
|
||||
public string Email { get; set; }
|
||||
public string? Email { get; set; }
|
||||
|
||||
// Numéro de téléphone du fournisseur
|
||||
public string PhoneNumber { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
// Adresse du fournisseur
|
||||
public string Adress { get; set; }
|
||||
public string? Adress { get; set; }
|
||||
|
||||
// Code postal de l'adresse
|
||||
public int ZipCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
|
||||
// Ville de l'adresse
|
||||
public string City { get; set; }
|
||||
public string? City { get; set; }
|
||||
|
||||
// Liste des produits fournis par ce fournisseur relié à la classe SupplierProductPriceDto
|
||||
public List<SupplierProductPriceDto>? Products { get; set; }
|
||||
|
||||
@@ -9,22 +9,22 @@ namespace PyroFetes.DTO.Supplier.Response
|
||||
public int Id { get; set; }
|
||||
|
||||
// Nom du fournisseur
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Email du fournisseur
|
||||
public string Email { get; set; }
|
||||
public string? Email { get; set; }
|
||||
|
||||
// Numéro de téléphone
|
||||
public string PhoneNumber { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
// Adresse du fournisseur
|
||||
public string Adress { get; set; }
|
||||
public string? Adress { get; set; }
|
||||
|
||||
// Code postal
|
||||
public int ZipCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
|
||||
// Ville
|
||||
public string City { get; set; }
|
||||
public string? City { get; set; }
|
||||
|
||||
// Liste des produits fournis par la classe SupplierProductPriceDto
|
||||
public List<SupplierProductPriceDto> Products { get; set; } = new();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
public class CreateWarehouseDto
|
||||
{
|
||||
// Nom de l'entrepôt
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Poids maximal que l'entrepôt peut contenir
|
||||
public int MaxWeight { get; set; }
|
||||
@@ -16,13 +16,13 @@
|
||||
public int MinWeight { get; set; }
|
||||
|
||||
// Adresse de l'entrepôt
|
||||
public string Adress { get; set; }
|
||||
public string? Adress { get; set; }
|
||||
|
||||
// Code postal
|
||||
public int ZipCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
|
||||
// Ville
|
||||
public string City { get; set; }
|
||||
public string? City { get; set; }
|
||||
|
||||
// Liste des produits à stocker dans cet entrepôt venant de la classe en dessous
|
||||
public List<CreateWarehouseProductDto>? Products { get; set; }
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
public int Id { get; set; }
|
||||
|
||||
// Nom de l'entrepôt
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Poids maximal que l'entrepôt peut contenir
|
||||
public int MaxWeight { get; set; }
|
||||
@@ -19,13 +19,13 @@
|
||||
public int MinWeight { get; set; }
|
||||
|
||||
// Adresse de l'entrepôt
|
||||
public string Adress { get; set; }
|
||||
public string? Adress { get; set; }
|
||||
|
||||
// Code postal
|
||||
public int ZipCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
|
||||
// Ville
|
||||
public string City { get; set; }
|
||||
public string? City { get; set; }
|
||||
|
||||
// Liste des produits à mettre à jour dans cet entrepôt
|
||||
public List<UpdateWarehouseProductDto>? Products { get; set; }
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
public int Id { get; set; }
|
||||
|
||||
// Nom de l'entrepôt
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
// Poids maximal que l'entrepôt peut contenir
|
||||
public int MaxWeight { get; set; }
|
||||
@@ -19,13 +19,13 @@
|
||||
public int MinWeight { get; set; }
|
||||
|
||||
// Adresse de l'entrepôt
|
||||
public string Adress { get; set; }
|
||||
public string? Adress { get; set; }
|
||||
|
||||
// Code postal
|
||||
public int ZipCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
|
||||
// Ville
|
||||
public string City { get; set; }
|
||||
public string? City { get; set; }
|
||||
|
||||
// Liste des produits stockés dans l'entrepôt
|
||||
public List<WarehouseProductDto>? Products { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user