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.
64 lines
2.0 KiB
64 lines
2.0 KiB
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Transfast.Model.Receiver
|
|
{
|
|
public class ReceiverRequest
|
|
{
|
|
public string FullName { get; set; }
|
|
public string FullNameOtherLanguage { get; set; }
|
|
public string FirstName { get; set; }
|
|
public string FirstNameOtherLanguage { get; set; }
|
|
public string SecondName { get; set; }
|
|
public string SecondNameOtherLanguage { get; set; }
|
|
public string LastName { get; set; }
|
|
public string LastNameOtherLanguage { get; set; }
|
|
public string SecondLastName { get; set; }
|
|
public string SecondLastNameOtherLanguage { get; set; }
|
|
public string CompleteAddress { get; set; }
|
|
public string CompleteAddressOtherLanguage { get; set; }
|
|
public string ZipCode { get; set; }
|
|
|
|
[Required]
|
|
public string MobilePhone { get; set; }
|
|
|
|
public string HomePhone { get; set; }
|
|
public string WorkPhone { get; set; }
|
|
|
|
[Required]
|
|
public string Email { get; set; }
|
|
|
|
public string NationalityIsoCode { get; set; }
|
|
private string _DateOfBirth;
|
|
|
|
public string DateOfBirth
|
|
{
|
|
get
|
|
{
|
|
if (!string.IsNullOrWhiteSpace(_DateOfBirth))
|
|
{
|
|
return Convert.ToDateTime(_DateOfBirth).ToString("yyyy-MM-ddTHH:mm:sszzz");
|
|
}
|
|
else
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
set { _DateOfBirth = value; }
|
|
}
|
|
|
|
public bool IsIndividual { get; set; }
|
|
public string ReceiverIdNumber { get; set; }
|
|
public string ReceiverTypeOfId { get; set; }
|
|
public string Notes { get; set; }
|
|
public string NotesOtherLanguage { get; set; }
|
|
|
|
[Required]
|
|
public string CountryIsoCode { get; set; }
|
|
|
|
public string Cpf { get; set; }
|
|
public string StateId { get; set; }
|
|
public string CityId { get; set; }
|
|
public string TownId { get; set; }
|
|
}
|
|
}
|