Contact.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Quadarax.Application.QLiberace.Common.Entities.Base;
  2. using Quadarax.Application.QLiberace.Customer.Enums;
  3. namespace Quadarax.Application.QLiberace.Customer.Entities
  4. {
  5. public class Contact : QlbrcEntityTenantCode
  6. {
  7. /// <summary>
  8. /// Reference to customer that contact belongs
  9. /// </summary>
  10. public long CustomerId { get; set; }
  11. /// <summary>
  12. /// Contact type (0-Email, 1-Address, 2-Phone, 3-SMS)
  13. /// </summary>
  14. public ContactTypeEnum Type { get; set; }
  15. /// <summary>
  16. /// Contact heading caption.
  17. /// </summary>
  18. public string Caption { get; set; } = null!;
  19. /// <summary>
  20. /// Main address value. If phone, email, sms stores email address or telephone number.
  21. /// </summary>
  22. public string Address { get; set; } = null!;
  23. /// <summary>
  24. /// Secondary address value.
  25. /// </summary>
  26. public string? Address1 { get; set; }
  27. /// <summary>
  28. /// Contact city.
  29. /// </summary>
  30. public string? City { get; set; }
  31. /// <summary>
  32. /// Contact ZIP code.
  33. /// </summary>
  34. public string? Zip { get; set; }
  35. /// <summary>
  36. /// Contact country code.
  37. /// </summary>
  38. public string? CountryCode { get; set; }
  39. /// <summary>
  40. /// Flag if Contact is preffered.
  41. /// </summary>
  42. public bool IsPreferred { get; set; }
  43. public virtual Customer Customer { get; set; } = null!;
  44. }
  45. }