CustomerDto.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System.Runtime.CompilerServices;
  2. using Quadarax.Application.QLiberace.Common.Dtos;
  3. using Quadarax.Foundation.Core.Data.Interface.Entity;
  4. #if DEBUG
  5. [assembly: InternalsVisibleTo("qdr.app.qlbrc.base.Tests")]
  6. [assembly: InternalsVisibleTo("qdr.app.qlbrc.common.Tests")]
  7. #endif
  8. namespace Quadarax.Application.QLiberace.Customer.Dtos
  9. {
  10. public class CustomerRDto : QlbrcDtoTrackedWithId, IReadDto
  11. {
  12. /// <summary>
  13. /// Customer code. Main key to search.
  14. /// </summary>
  15. public string Code { get; set; } = null!;
  16. /// <summary>
  17. /// Customer head name. For identification usage.
  18. /// </summary>
  19. public string Name { get; set; } = null!;
  20. /// <summary>
  21. /// Customer tax number (business identifier)
  22. /// </summary>
  23. public string? TaxNumber { get; set; }
  24. /// <summary>
  25. /// Customer VAT number (VAT identification)
  26. /// </summary>
  27. public string? VatNumber { get; set; }
  28. /// <summary>
  29. /// Flag if VAT calculation is allowed
  30. /// </summary>
  31. public bool? VatIncluded { get; set; }
  32. /// <summary>
  33. /// Tax country region code
  34. /// </summary>
  35. public string TaxCountryCode { get; set; } = null!;
  36. }
  37. public class CustomerWDto : QlbrcDtoWithoutId, IUpdateDto, ICreateDto
  38. {
  39. /// <summary>
  40. /// Customer head name. For identification usage.
  41. /// </summary>
  42. public string Name { get; set; } = null!;
  43. /// <summary>
  44. /// Customer tax number (business identifier)
  45. /// </summary>
  46. public string? TaxNumber { get; set; }
  47. /// <summary>
  48. /// Customer VAT number (VAT identification)
  49. /// </summary>
  50. public string? VatNumber { get; set; }
  51. /// <summary>
  52. /// Flag if VAT calculation is allowed
  53. /// </summary>
  54. public bool? VatIncluded { get; set; }
  55. /// <summary>
  56. /// Tax country region code
  57. /// </summary>
  58. public string TaxCountryCode { get; set; } = null!;
  59. }
  60. public class CustomerDDto : QlbrcDtoWithId, IDeleteDto
  61. {
  62. }
  63. }