add supplier attributes
This commit is contained in:
11
AB.Domain/Entities/CommunicationType.cs
Normal file
11
AB.Domain/Entities/CommunicationType.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace AB.Domain.Enums
|
||||
{
|
||||
public enum CommunicationType
|
||||
{
|
||||
Email,
|
||||
Postal,
|
||||
Phone,
|
||||
Fax
|
||||
|
||||
}
|
||||
}
|
||||
20
AB.Domain/Entities/ContactPerson.cs
Normal file
20
AB.Domain/Entities/ContactPerson.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace AB.Domain.Entities;
|
||||
|
||||
public class ContactPerson
|
||||
{
|
||||
|
||||
public Guid ContactPersonId { get; set; }
|
||||
|
||||
public Guid SupplierId { get; set; }
|
||||
|
||||
public string Salutation { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string Notes { get; set; }
|
||||
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AB.Domain.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -10,4 +11,20 @@ public class Supplier
|
||||
{
|
||||
|
||||
public Guid SupplierId { get; set; }
|
||||
|
||||
public string Salutation { get; set; }
|
||||
|
||||
public string Name1 { get; set; }
|
||||
|
||||
public string Name2 { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public string TaxId { get; set; }
|
||||
|
||||
public CommunicationType PreferredCommunication { get; set; }
|
||||
|
||||
public List<ContactPerson> ContactPersons { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user