Files
monorepo/LCU.API.Internal.OnlineLoanApp/Landmark.OLA.Models/Loan/BranchConfig.cs
T
2026-03-11 11:18:25 -05:00

33 lines
788 B
C#

using MongoDB.Bson.Serialization.Attributes;
using System.ComponentModel.DataAnnotations;
namespace Landmark.OLA.Models.Loan
{
public class BranchData
{
[Required]
[StringLength(5, MinimumLength = 5, ErrorMessage = "Zipcodes must be 5 digits")]
public string Zipcode { get; set; }
[Required]
[Range(minimum: 1, maximum: 99999999)]
public int ChannelId { get; set; }
public BranchData(string zip, int channel)
{
this.Zipcode = zip;
this.ChannelId = channel;
}
}
[BsonIgnoreExtraElements]
public class BranchConfig : OlaModel
{
public DateTime Date { get; set; }
[Required]
public List<BranchData> BranchCodesByZip { get; set; }
}
}