Files
components/LiteCharms.Features.MidrandBooks/Customers/Models/Records.cs
T

60 lines
1.3 KiB
C#

using LiteCharms.Features.Models;
namespace LiteCharms.Features.MidrandBooks.Customers.Models;
public record CreateCustomer
{
public string? Company { get; set; }
public string? VatNumber { get; set; }
public string? Email { get; set; }
public string? Website { get; set; }
public string? Phone { get; set; }
public ICollection<SocialMedia>? SocialMedia { get; set; }
}
public sealed record UpdateCustomer : CreateCustomer;
public record CreateCustomerContact
{
public ContactTypes Type { get; set; }
public string? Name { get; set; }
public string? LastName { get; set; }
public string? Email { get; set; }
public string? Phone { get; set; }
}
public sealed record UpdateCustomerContact : CreateCustomerContact;
public record CreateCustomerAddress
{
public string? Name { get; set; }
public AddressType Type { get; set; }
public AddressBuildingTypes BuildingType { get; set; }
public string? Street { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? PostalCode { get; set; }
public string? Country { get; set; }
public bool IsPrimary { get; set; }
public bool Enabled { get; set; }
}
public sealed record UpdateCustomerAddress : CreateCustomerAddress;