Added Customer, Contact and Address with Service
Labeled all service to enable assembly scanning
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
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 SocialMedia[]? SocialMedia { get; set; }
|
||||
}
|
||||
|
||||
public 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 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 record UpdateCustomerAddress : CreateCustomerAddress;
|
||||
Reference in New Issue
Block a user