64 lines
2.1 KiB
C#
64 lines
2.1 KiB
C#
using System;
|
|
|
|
namespace Zentral.API.Apps.Purchases.Dtos;
|
|
|
|
public class SupplierDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Code { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? VatNumber { get; set; }
|
|
public string? FiscalCode { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? City { get; set; }
|
|
public string? Province { get; set; }
|
|
public string? ZipCode { get; set; }
|
|
public string? Country { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Pec { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? Website { get; set; }
|
|
public string? PaymentTerms { get; set; }
|
|
public string? Notes { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public DateTime? CreatedAt { get; set; }
|
|
public DateTime? UpdatedAt { get; set; }
|
|
}
|
|
|
|
public class CreateSupplierDto
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? VatNumber { get; set; }
|
|
public string? FiscalCode { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? City { get; set; }
|
|
public string? Province { get; set; }
|
|
public string? ZipCode { get; set; }
|
|
public string? Country { get; set; } = "Italia";
|
|
public string? Email { get; set; }
|
|
public string? Pec { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? Website { get; set; }
|
|
public string? PaymentTerms { get; set; }
|
|
public string? Notes { get; set; }
|
|
}
|
|
|
|
public class UpdateSupplierDto
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? VatNumber { get; set; }
|
|
public string? FiscalCode { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? City { get; set; }
|
|
public string? Province { get; set; }
|
|
public string? ZipCode { get; set; }
|
|
public string? Country { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Pec { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? Website { get; set; }
|
|
public string? PaymentTerms { get; set; }
|
|
public string? Notes { get; set; }
|
|
public bool IsActive { get; set; }
|
|
}
|