public TransactionTransfer( string transactionId, CaptureTransfer captureTransfer, ChargeTransfer chargeTransfer, ILoggingService loggingService ) { _transactionId = transactionId; CaptureTransfer = captureTransfer; ChargeTransfer = chargeTransfer; _loggingService = loggingService; }
public void TransferCharge() { if (ChargeTransfer == null) { ChargeTransfer = new ChargeTransfer { TransactionId = _transactionId, TransferDate = DateTime.Now, TransferState = TransferStateType.ReadyForProcess, CreateUser = Environment.UserName, CreateDate = DateTime.Now, ModifiedUser = Environment.UserName, ModifiedDate = DateTime.Now }; _loggingService.Log(_transactionId, "Transfer charge."); } }