public RfrRequest() { _config = new Dictionary<string, string>(); _config["url"] = Settings.Default.url; _config["reportGroup"] = Settings.Default.reportGroup; _config["username"] = Settings.Default.username; _config["printxml"] = Settings.Default.printxml; _config["timeout"] = Settings.Default.timeout; _config["proxyHost"] = Settings.Default.proxyHost; _config["merchantId"] = Settings.Default.merchantId; _config["password"] = Settings.Default.password; _config["proxyPort"] = Settings.Default.proxyPort; _config["sftpUrl"] = Settings.Default.sftpUrl; _config["sftpUsername"] = Settings.Default.sftpUsername; _config["sftpPassword"] = Settings.Default.sftpPassword; _config["knownHostsFile"] = Settings.Default.knownHostsFile; _config["requestDirectory"] = Settings.Default.requestDirectory; _config["responseDirectory"] = Settings.Default.responseDirectory; _litleTime = new LitleTime(); _litleFile = new LitleFile(); _requestDirectory = _config["requestDirectory"] + "\\Requests\\"; _responseDirectory = _config["responseDirectory"] + "\\Responses\\"; }
private void InitializeRequest() { _requestDirectory = _config["requestDirectory"] + "\\Requests\\"; _responseDirectory = _config["responseDirectory"] + "\\Responses\\"; _litleFile = new LitleFile(); _litleTime = new LitleTime(); }
public void SetLitleFile(LitleFile litleFile) { _litleFile = litleFile; }
private void InitializeRequest() { _communication = new Communications(); _authentication = new Authentication {User = _config["username"], Password = _config["password"]}; _requestDirectory = _config["requestDirectory"] + "\\Requests\\"; _responseDirectory = _config["responseDirectory"] + "\\Responses\\"; _litleXmlSerializer = new LitleXmlSerializer(); _litleTime = new LitleTime(); _litleFile = new LitleFile(); }
private string SaveElement(LitleFile litleFile, LitleTime litleTime, string filePath, TransactionRequest element) { string fPath = litleFile.CreateRandomFile(_requestDirectory, Path.GetFileName(filePath), "_temp_batchRequest.xml", litleTime); litleFile.AppendLineToFile(fPath, element.Serialize()); return fPath; }
private void InitializeRequest() { _requestDirectory = Config["requestDirectory"] + "\\Requests\\"; _responseDirectory = Config["responseDirectory"] + "\\Responses\\"; _litleFile = new LitleFile(); _litleTime = new LitleTime(); _numAuthorization = 0; _numAuthReversal = 0; _numCapture = 0; _numCaptureGivenAuth = 0; _numCredit = 0; _numEcheckCredit = 0; _numEcheckRedeposit = 0; _numEcheckPreNoteSale = 0; _numEcheckPreNoteCredit = 0; _numEcheckSale = 0; _numEcheckVerification = 0; _numForceCapture = 0; _numRegisterTokenRequest = 0; _numSale = 0; _numUpdateCardValidationNumOnToken = 0; _numUpdateSubscriptions = 0; _numCancelSubscriptions = 0; _numPayFacCredit = 0; _numSubmerchantCredit = 0; _numReserveCredit = 0; _numVendorCredit = 0; _numPhysicalCheckCredit = 0; _numPayFacDebit = 0; _numSubmerchantDebit = 0; _numReserveDebit = 0; _numVendorDebit = 0; _numPhysicalCheckDebit = 0; _sumOfAuthorization = 0; _sumOfAuthReversal = 0; _sumOfCapture = 0; _sumOfCredit = 0; _sumOfSale = 0; _sumOfForceCapture = 0; _sumOfEcheckSale = 0; _sumOfEcheckCredit = 0; _sumOfEcheckVerification = 0; _sumOfCaptureGivenAuth = 0; _payFacCreditAmount = 0; _submerchantCreditAmount = 0; _reserveCreditAmount = 0; _vendorCreditAmount = 0; _physicalCheckCreditAmount = 0; _payFacDebitAmount = 0; _submerchantDebitAmount = 0; _reserveDebitAmount = 0; _vendorDebitAmount = 0; _physicalCheckDebitAmount = 0; }