You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.0 KiB

  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace Transfast.Model.Sender
  4. {
  5. public class SenderRequest
  6. {
  7. public int SenderId { get; set; }
  8. public string LoyaltyCardNumber { get; set; }
  9. [Required]
  10. public string Name { get; set; }
  11. public string NameOtherLanguage { get; set; }
  12. [Required]
  13. public string Address { get; set; }
  14. public string AddressOtherLanguage { get; set; }
  15. [Required]
  16. public string PhoneMobile { get; set; }
  17. public string PhoneHome { get; set; }
  18. public string PhoneWork { get; set; }
  19. public string ZipCode { get; set; }
  20. [Required]
  21. public int CityId { get; set; }
  22. [Required]
  23. public string StateId { get; set; }
  24. [Required]
  25. public string CountryIsoCode { get; set; }
  26. public string TypeOfId { get; set; }
  27. public string IdNumber { get; set; }
  28. private string _IdExpiryDate;
  29. public string IdExpiryDate
  30. {
  31. get
  32. {
  33. if (!string.IsNullOrWhiteSpace(_IdExpiryDate))
  34. {
  35. return Convert.ToDateTime(_IdExpiryDate).ToString("yyyy-MM-dd");
  36. }
  37. else
  38. {
  39. return null;
  40. }
  41. }
  42. set { _IdExpiryDate = value; }
  43. }
  44. public string NationalityIsoCode { get; set; }
  45. private string _DateOfBirth;
  46. public string DateOfBirth
  47. {
  48. get
  49. {
  50. if (!string.IsNullOrWhiteSpace(_DateOfBirth))
  51. {
  52. return Convert.ToDateTime(_DateOfBirth).ToString("yyyy-MM-dd");
  53. }
  54. else
  55. {
  56. return null;
  57. }
  58. }
  59. set { _DateOfBirth = value; }
  60. }
  61. public string Email { get; set; }
  62. public bool IsIndividual { get; set; }
  63. }
  64. }