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.

142 lines
3.5 KiB

  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace GMENepal.Model
  4. {
  5. public class GMESendMoney : GMECommonRequest
  6. {
  7. [MaxLength(50)]
  8. public string ExConfirmId { get; set; }
  9. [MaxLength(50)]
  10. public string MembershipId { get; set; }
  11. [Required]
  12. [MaxLength(50)]
  13. public string CustomerName { get; set; }
  14. [MaxLength(50)]
  15. public string CustomerAddress { get; set; }
  16. [MaxLength(50)]
  17. public string CustomerContact { get; set; }
  18. [MaxLength(100)]
  19. public string CustomerCity { get; set; }
  20. [MaxLength(50)]
  21. [Required]
  22. public string CustomerCountry { get; set; }
  23. [MaxLength(50)]
  24. public string CustomerIdType { get; set; }
  25. [MaxLength(50)]
  26. public string CustomerIdNumber { get; set; }
  27. [MaxLength(50)]
  28. [Required]
  29. public string BeneName { get; set; }
  30. [MaxLength(50)]
  31. [Required]
  32. public string BeneAddress { get; set; }
  33. [MaxLength(50)]
  34. public string BeneContact { get; set; }
  35. [MaxLength(50)]
  36. public string BeneCity { get; set; }
  37. [MaxLength(50)]
  38. [Required]
  39. public string BeneCountry { get; set; }
  40. [MaxLength(50)]
  41. public string Profession { get; set; }
  42. [MaxLength(50)]
  43. [Required]
  44. public string IncomeSource { get; set; }
  45. [MaxLength(50)]
  46. public string Relationship { get; set; }
  47. [MaxLength(50)]
  48. [Required]
  49. public string PurposeOfRemittance { get; set; }
  50. [MaxLength(50)]
  51. [Required]
  52. public string SendingAmount { get; set; }
  53. [Required]
  54. public string ReceivingAmount { get; set; }
  55. [Required]
  56. public string ControlNo { get; set; }
  57. [Required]
  58. public string PayoutCurrency { get; set; }
  59. [Required]
  60. public string ReceiverCostRate { get; set; }
  61. public string SenderCostRate { get; set; }
  62. private string _PaymentMethod;
  63. public string Signature { get; set; }
  64. public string CollectionCurrency { get; set; }
  65. [Required]
  66. public string PaymentMethod
  67. {
  68. get
  69. {
  70. if (_PaymentMethod.ToLower().Equals("cash payment"))
  71. {
  72. return "C";
  73. }
  74. return "B";
  75. }
  76. set { _PaymentMethod = value; }
  77. }
  78. [MaxLength(50)]
  79. public string BankCode { get; set; }
  80. [MaxLength(50)]
  81. public string BankName { get; set; }
  82. [MaxLength(50)]
  83. public string BankBranchName { get; set; }
  84. [MaxLength(50)]
  85. public string BankAccountNumber { get; set; }
  86. private string _TransactionDate;
  87. [Required]
  88. public string TransactionDate
  89. {
  90. get
  91. {
  92. if (!string.IsNullOrEmpty(_TransactionDate))
  93. {
  94. return Convert.ToDateTime(_TransactionDate).ToString("yyyy-MM-dd");
  95. }
  96. return "";
  97. }
  98. set { _TransactionDate = value; }
  99. }
  100. public string CalculateBy { get; set; }
  101. [MaxLength(50)]
  102. public string FreeCharge { get; set; }
  103. public string TransactionFee { get; set; }
  104. public decimal CollectionAmount { get; set; }
  105. public string PayoutCommCurr { get; set; }
  106. public decimal ExRate { get; set; }
  107. }
  108. }