public BankAccount(InternationalAccountBankNumberIBAN iban) { this.iban=iban; this.ccc = new ClientAccountCodeCCC(iban.CCC); this.bankAccountFields = new BankAccountFields( ccc.BankCode, ccc.OfficeCode, ccc.CCCCheck.bankOfficeCheckDigit + ccc.CCCCheck.accountNumberCheckDigit, ccc.AccountNumber); }
public BankAccount(ClientAccountCodeCCC ccc) { this.ccc = ccc; this.bankAccountFields = new BankAccountFields( ccc.BankCode, ccc.OfficeCode, ccc.CCCCheck.bankOfficeCheckDigit + ccc.CCCCheck.accountNumberCheckDigit, ccc.AccountNumber); this.iban = new InternationalAccountBankNumberIBAN(ccc); }
public InternationalAccountBankNumberIBAN(ClientAccountCodeCCC ccc) { if (ClientAccountCodeCCC.IsValidCCC(ccc.CCC)) { this.iban = CalculateSpanishIBAN(ccc.CCC); } }
public BankAccount(BankAccountFields bankAccountFields) { this.bankAccountFields = bankAccountFields; ccc = new ClientAccountCodeCCC(bankAccountFields.BankCode, bankAccountFields.OfficeCode, bankAccountFields.CheckDigits, bankAccountFields.AccountNumber); iban = new InternationalAccountBankNumberIBAN(ccc); }