first commit
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
namespace CRIF.ACTion.Services.Landmark.DistributionChannel
|
||||
{
|
||||
public interface IDistributionChannelLookupService
|
||||
{
|
||||
int GetDistributionChannelByZipCode(string zipCode);
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
using CRIF.ACTion.Configuration;
|
||||
using Landmark.OLA.Models.Loan;
|
||||
|
||||
namespace CRIF.ACTion.Services.Landmark.DistributionChannel
|
||||
{
|
||||
public class LandmarkDistributionChannelLookupService : IDistributionChannelLookupService
|
||||
{
|
||||
private readonly ServicingChannelSettings _settings;
|
||||
|
||||
public LandmarkDistributionChannelLookupService(CrifSettings settings)
|
||||
{
|
||||
_settings = settings.ServicingChannels;
|
||||
}
|
||||
|
||||
public int GetDistributionChannelByZipCode(string zipCode)
|
||||
{
|
||||
var partyId = BranchMapping.BranchCodesByZip.TryGetValue(zipCode, out int foundValue)
|
||||
? foundValue : _settings.DefaultServicingChannel;
|
||||
|
||||
return partyId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user