コード例 #1
0
 public TransactionTransfer(
     string transactionId,
     CaptureTransfer captureTransfer,
     ChargeTransfer chargeTransfer,
     ILoggingService loggingService
     )
 {
     _transactionId  = transactionId;
     CaptureTransfer = captureTransfer;
     ChargeTransfer  = chargeTransfer;
     _loggingService = loggingService;
 }
コード例 #2
0
        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.");
            }
        }