Пример #1
0
        public CashAccountTransaction
        (
            CashTransactionType transactionType,
            CashAccountId cashAcctID,
            CashAcctTransactionDate transactionDate,
            CashAcctTransactionAmount transactionAmount,
            ExternalAgentId agentId,
            EconomicEventId eventId,
            CheckNumber checkNumber,
            string remittanceAdvice,
            UserId userID
        )
            : this()
        {
            CashTransactionType       = transactionType;
            CashAccountId             = cashAcctID ?? throw new ArgumentNullException("The cash account id is required.");
            CashAcctTransactionDate   = transactionDate ?? throw new ArgumentNullException("The cash transaction date is required.");
            CashAcctTransactionAmount = transactionAmount ?? throw new ArgumentNullException("The cash transaction amount is required.");
            AgentId          = agentId ?? throw new ArgumentNullException("The external agent id is required.");
            EventId          = eventId ?? throw new ArgumentNullException("The cash economic event id is required.");
            CheckNumber      = checkNumber ?? throw new ArgumentNullException("The check number is required.");
            RemittanceAdvice = remittanceAdvice;
            UserId           = userID ?? throw new ArgumentNullException("The user id is required.");

            CheckValidity();
        }
Пример #2
0
        public CashAccount
        (
            CashAccountId id,
            BankName bankName,
            CashAccountName acctName,
            CashAccountNumber acctNumber,
            RoutingTransitNumber routingTransitNumber,
            DateOpened openedDate,
            UserId userID
        )
            : this()
        {
            Id                   = id ?? throw new ArgumentNullException("The cash account id is required.");
            BankName             = bankName ?? throw new ArgumentNullException("The bank name is required.");
            CashAccountName      = acctName ?? throw new ArgumentNullException("The cash account name is required.");
            CashAccountNumber    = acctNumber ?? throw new ArgumentNullException("The cash account number is required.");
            RoutingTransitNumber = routingTransitNumber ?? throw new ArgumentNullException("The routing account number is required.");
            DateOpened           = openedDate ?? throw new ArgumentNullException("The date that the cash account was opened is required.");
            UserId               = userID ?? throw new ArgumentNullException("The user id is required.");

            CheckValidity();
        }
Пример #3
0
 public void UpdateCashAccountId(CashAccountId cashAcctID)
 {
     CashAccountId = cashAcctID ?? throw new ArgumentNullException("The cash account id is required.");
     UpdateLastModifiedDate();
     CheckValidity();
 }