forked from sanchezvem/PyroFetes
53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using PyroFetes.DTO.Product.Request;
|
||
|
||
namespace PyroFetes.DTO.Product.Request
|
||
{
|
||
// DTO utilisé pour la mise à jour d’un produit existant
|
||
public class UpdateProductDto
|
||
{
|
||
// Identifiant unique du produit à modifier
|
||
public int Id { get; set; }
|
||
|
||
// Référence interne du produit
|
||
public int References { get; set; }
|
||
|
||
// Nom du produit
|
||
public string? Name { get; set; }
|
||
|
||
// Durée de l’effet du produit
|
||
public decimal Duration { get; set; }
|
||
|
||
// Calibre du produit
|
||
public decimal Caliber { get; set; }
|
||
|
||
// Numéro d’homologation
|
||
public int ApprovalNumber { get; set; }
|
||
|
||
// Poids du produit
|
||
public decimal Weight { get; set; }
|
||
|
||
// Matière active (NEC)
|
||
public decimal Nec { get; set; }
|
||
|
||
// Prix de vente du produit
|
||
public decimal SellingPrice { get; set; }
|
||
|
||
// Image associée au produit (URL ou chemin)
|
||
public string? Image { get; set; }
|
||
|
||
// Lien vers une ressource externe (fiche, vidéo, etc.)
|
||
public string? Link { get; set; }
|
||
|
||
// Identifiant de la classification du produit
|
||
public int ClassificationId { get; set; }
|
||
|
||
// Identifiant de la catégorie du produit
|
||
public int ProductCategoryId { get; set; }
|
||
|
||
// Liste des fournisseurs associés venant du DTO ProductSupplierPriceDto
|
||
public List<ProductSupplierPriceDto> Suppliers { get; set; } = new();
|
||
|
||
// Liste des entrepôts associés venant du DTO UpdateProductWarehouseDto
|
||
public List<UpdateProductWarehouseDto> Warehouses { get; set; } = new();
|
||
}
|
||
} |