using System; using System.ComponentModel.DataAnnotations; namespace GMENepal.Model { public class GMESendMoney : GMECommonRequest { [MaxLength(50)] public string ExConfirmId { get; set; } [MaxLength(50)] public string MembershipId { get; set; } [Required] [MaxLength(50)] public string CustomerName { get; set; } [MaxLength(50)] public string CustomerAddress { get; set; } [MaxLength(50)] public string CustomerContact { get; set; } [MaxLength(100)] public string CustomerCity { get; set; } [MaxLength(50)] [Required] public string CustomerCountry { get; set; } [MaxLength(50)] public string CustomerIdType { get; set; } [MaxLength(50)] public string CustomerIdNumber { get; set; } [MaxLength(50)] [Required] public string BeneName { get; set; } [MaxLength(50)] [Required] public string BeneAddress { get; set; } [MaxLength(50)] public string BeneContact { get; set; } [MaxLength(50)] public string BeneCity { get; set; } [MaxLength(50)] [Required] public string BeneCountry { get; set; } [MaxLength(50)] public string Profession { get; set; } [MaxLength(50)] [Required] public string IncomeSource { get; set; } [MaxLength(50)] public string Relationship { get; set; } [MaxLength(50)] [Required] public string PurposeOfRemittance { get; set; } [MaxLength(50)] [Required] public string SendingAmount { get; set; } [Required] public string ReceivingAmount { get; set; } [Required] public string ControlNo { get; set; } [Required] public string PayoutCurrency { get; set; } [Required] public string ReceiverCostRate { get; set; } public string SenderCostRate { get; set; } private string _PaymentMethod; public string Signature { get; set; } public string CollectionCurrency { get; set; } [Required] public string PaymentMethod { get { if (_PaymentMethod.ToLower().Equals("cash payment")) { return "C"; } return "B"; } set { _PaymentMethod = value; } } [MaxLength(50)] public string BankCode { get; set; } [MaxLength(50)] public string BankName { get; set; } [MaxLength(50)] public string BankBranchName { get; set; } [MaxLength(50)] public string BankAccountNumber { get; set; } private string _TransactionDate; [Required] public string TransactionDate { get { if (!string.IsNullOrEmpty(_TransactionDate)) { return Convert.ToDateTime(_TransactionDate).ToString("yyyy-MM-dd"); } return ""; } set { _TransactionDate = value; } } public string CalculateBy { get; set; } [MaxLength(50)] public string FreeCharge { get; set; } public string TransactionFee { get; set; } public decimal CollectionAmount { get; set; } public string PayoutCommCurr { get; set; } public decimal ExRate { get; set; } } }