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.

87 lines
2.1 KiB

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