| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using System.Runtime.CompilerServices;
- using Quadarax.Application.QLiberace.Common.Dtos;
- using Quadarax.Application.QLiberace.Customer.Enums;
- using Quadarax.Foundation.Core.Data.Interface.Entity;
- #if DEBUG
- [assembly: InternalsVisibleTo("qdr.app.qlbrc.base.Tests")]
- [assembly: InternalsVisibleTo("qdr.app.qlbrc.common.Tests")]
- #endif
- namespace Quadarax.Application.QLiberace.Customer.Dtos
- {
- public class ContactRDto : QlbrcDtoTrackedWithId, IReadDto
- {
- /// <summary>
- /// Reference to customer that contact belongs
- /// </summary>
- public long CustomerId { get; set; }
- /// <summary>
- /// Contact type (0-Email, 1-Address, 2-Phone, 3-SMS)
- /// </summary>
- public ContactTypeEnum Type { get; set; }
- /// <summary>
- /// Contact heading caption.
- /// </summary>
- public string Caption { get; set; } = null!;
- /// <summary>
- /// Main address value. If phone, email, sms stores email address or telephone number.
- /// </summary>
- public string Address { get; set; } = null!;
- /// <summary>
- /// Secondary address value.
- /// </summary>
- public string? Address1 { get; set; }
- /// <summary>
- /// Contact city.
- /// </summary>
- public string? City { get; set; }
- /// <summary>
- /// Contact ZIP code.
- /// </summary>
- public string? Zip { get; set; }
- /// <summary>
- /// Contact country code.
- /// </summary>
- public string? CountryCode { get; set; }
- /// <summary>
- /// Flag if Contact is preffered.
- /// </summary>
- public bool IsPreffered { get; set; }
- }
- public class ContactWDto : QlbrcDtoWithoutId, IUpdateDto, ICreateDto
- {
- /// <summary>
- /// Contact type (0-Email, 1-Address, 2-Phone, 3-SMS)
- /// </summary>
- public ContactTypeEnum Type { get; set; }
- /// <summary>
- /// Contact heading caption.
- /// </summary>
- public string Caption { get; set; } = null!;
- /// <summary>
- /// Main address value. If phone, email, sms stores email address or telephone number.
- /// </summary>
- public string Address { get; set; } = null!;
- /// <summary>
- /// Secondary address value.
- /// </summary>
- public string? Address1 { get; set; }
- /// <summary>
- /// Contact city.
- /// </summary>
- public string? City { get; set; }
- /// <summary>
- /// Contact ZIP code.
- /// </summary>
- public string? Zip { get; set; }
- /// <summary>
- /// Contact country code.
- /// </summary>
- public string? CountryCode { get; set; }
- /// <summary>
- /// Flag if Contact is preffered.
- /// </summary>
- public bool IsPreferred { get; set; }
- }
- public class ContactDDto : QlbrcDtoWithId, IDeleteDto
- {
- }
- }
|