46 lines
1.6 KiB
C#
46 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using _0_Framework_b.Domain;
|
|
|
|
namespace Company.Domain.AuthorizedBankDetailsAgg
|
|
{
|
|
public class AuthorizedBankDetails : EntityBase
|
|
{
|
|
private AuthorizedBankDetails()
|
|
{
|
|
OwnersList = new List<AuthorizedBankDetailsOwner>();
|
|
}
|
|
|
|
public AuthorizedBankDetails(string cardNumber, string accountNumber, string ban, string bankName, List<AuthorizedBankDetailsOwner> ownersList)
|
|
{
|
|
CardNumber = cardNumber;
|
|
AccountNumber = accountNumber;
|
|
IBan = ban;
|
|
BankName = bankName;
|
|
OwnersList = ownersList ?? new List<AuthorizedBankDetailsOwner>();
|
|
}
|
|
|
|
public string CardNumber { get; private set; }
|
|
public string AccountNumber { get; private set; }
|
|
public string IBan { get; private set; }
|
|
public string BankName { get; private set; }
|
|
public List<AuthorizedBankDetailsOwner> OwnersList { get; private set; }
|
|
}
|
|
|
|
public class AuthorizedBankDetailsOwner // Value Object - not inheriting from EntityBase
|
|
{
|
|
private AuthorizedBankDetailsOwner() { }
|
|
|
|
public AuthorizedBankDetailsOwner(string fName, string lName, string nationalIdentifier, string customerType)
|
|
{
|
|
FName = fName;
|
|
LName = lName;
|
|
NationalIdentifier = nationalIdentifier;
|
|
CustomerType = customerType;
|
|
}
|
|
|
|
public string FName { get; private set; }
|
|
public string LName { get; private set; }
|
|
public string NationalIdentifier { get; private set; }
|
|
public string CustomerType { get; private set; }
|
|
}
|
|
} |