public MTTransactionDetailLookupResponse MTTransactionDetailLookup( MTTransactionDetailLookupRequest mtTransactionDetailLookupRequest, IList <string> strPosIdList) { var agent = AuthIntegration.GetAgent(); return(_repo.MTTransactionDetailLookup(agent.IsInTrainingMode, mtTransactionDetailLookupRequest, strPosIdList)); }
public DailyTransactionDetailLookupResponse DailyTransactionDetailLookup( DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest) { var agent = AuthIntegration.GetAgent(); return(_repo.DailyTransactionDetailLookup(agent.IsInTrainingMode, dailyTransactionDetailLookupRequest)); }
public ConsumerHistoryLookupResponse ConsumerHistoryLookup(ConsumerHistoryLookupRequest consumerHistoryLookupReq) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupReq); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetCountrySubdivisionResponse GetCountrySubdivision(GetCountrySubdivisionRequest req) { var agent = AuthIntegration.GetAgent(); var acStatesResponse = _agentConnect.GetCountrySubdivision(agent, req); return(acStatesResponse); }
public SaveTransactionDocumentResponse SaveTransactionDocument(SaveTransactionDocumentRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.SaveTransactionDocument(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetConsumerProfileDocumentResponse GetConsumerProfileDocument(GetConsumerProfileDocumentRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetConsumerProfileDocument(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public SaveConsumerProfileImageResponse SaveConsumerProfileImage(SaveConsumerProfileImageRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.SaveConsumerProfileImage(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetProfileConsumerResponse GetProfileConsumer(GetProfileConsumerRequest getProfileConsumerRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetProfileConsumer(agent, getProfileConsumerRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public List <SenderLookupInfo> BillPaymentConsumerLookup(ConsumerHistoryLookupRequest consumerHistoryLookupRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response.Payload.SenderInfos.SenderInfo.ToList()); }
public FeeLookupResponse FeeLookup(FeeLookupRequest feeLookupRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.FeeLookup(agent, feeLookupRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public DepositAnnouncementResponse DepositAnnouncement(DepositAnnouncementRequest depositAnnouncementRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.DepositAnnouncement(agent, depositAnnouncementRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetDepositBankListResponse GetDepositBankList(GetDepositBankListRequest getDepositBankListRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetDepositBankList(agent, getDepositBankListRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetBankDetailsByLevelResponse GetBankDetailsByLevel(GetBankDetailsByLevelRequest getBankDetailsByLevelRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetBankDetailsByLevel(agent, getBankDetailsByLevelRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public SearchStagedTransactionsResponse SearchStagedTransactions(SearchStagedTransactionsRequest searchStagedTransactionsRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.SearchStagedTransactions(agent, searchStagedTransactionsRequest); return(response); }
public SendReversalValidationResponse SendReversalValidation(SendReversalValidationRequest sendReversalValidationRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.SendReversalValidation(agent, sendReversalValidationRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public SaveProfileResponse SaveProfile(SaveProfileRequest saveProfileRequest) { var agent = AuthIntegration.GetAgent(); var saveProfileResponse = _agentConnect.SaveProfile(agent, saveProfileRequest); ClearAgentProfileCache(agent); return(saveProfileResponse); }
public BillerSearchResponse BillerSearch(BillerSearchRequest billerSearchRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.BillerSearch(agent, billerSearchRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public CreateOrUpdateProfileConsumerResponse CreateOrUpdateProfileConsumer(CreateOrUpdateProfileConsumerRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.CreateOrUpdateProfileConsumer(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public BPValidationResponse BPValidation(BPValidationRequest bpValidationRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.BpValidation(agent, bpValidationRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public ReceiveValidationResponse ReceiveValidation(ReceiveValidationRequest receiveValidationReq) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.ReceiveValidation(agent, receiveValidationReq); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public DwProfileResponse DwProfile(DwProfileRequest dwProfileRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.DwProfile(agent, dwProfileRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetPersonalIDImageResponse GetPersonalIDImage(GetPersonalIDImageRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetPersonalIDImage(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public TransactionLookupResponse TransactionLookup(TransactionLookupRequest tranLookupRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.TransactionLookup(agent, tranLookupRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
/// <summary> /// SEND, RECV Commit AgentConnect call /// </summary> /// <param name="completeSessionReq">CommitTransactionRequest Model</param> /// <returns>CommitTransactionResponse Model</returns> public CompleteSessionResponse CompleteSession(CompleteSessionRequest completeSessionReq) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.CompleteSession(agent, completeSessionReq); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public IndustryResponse Industry(IndustryRequest request) { var agent = AuthIntegration.GetAgent(); var industryResponse = _agentConnect.Industry(agent, request); return(industryResponse); }
public AmendValidationResponse AmendValidation(AmendValidationRequest amendValidationRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.AmendValidation(agent, amendValidationRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public void DeleteCache() { var token = AuthIntegration.GetToken(); var agent = AuthIntegration.GetAgent(); // Delete all auth-related cache var camsClaimsKey = string.Format(CacheKeys.CAMSCLAIMS, token); _cacheManager.Remove(camsClaimsKey, CacheRegion.Global); var authClaimsKey = string.Format(CacheKeys.AUTHCLAIMS, token); _cacheManager.Remove(authClaimsKey, CacheRegion.Global); var authRolesKey = string.Format(CacheKeys.AUTHROLES, token); _cacheManager.Remove(authRolesKey, CacheRegion.Global); var partnerServiceClaimsKey = string.Format(CacheKeys.PARTNERSERVICECLAIMS, token); _cacheManager.Remove(partnerServiceClaimsKey, CacheRegion.Global); var agentPasswordKeyFormatted = string.Format(CacheKeys.AGENTPASSWORDKEY, agent.AgentId, agent.AgentSequence); _cacheManager.Remove(agentPasswordKeyFormatted, CacheRegion.Global); var agentProfileClaimsKey = string.Format(CacheKeys.AGENTPROFILECLAIMS, token); _cacheManager.Remove(agentProfileClaimsKey, CacheRegion.Global); // Delete cached Agent Profile var agentProfileKeyFormatted = string.Format(CacheKeys.AGENTPROFILEKEY, agent.AgentId, agent.AgentSequence); _cacheManager.Remove(agentProfileKeyFormatted, CacheRegion.Global); // Delete cache for Countries, States, Currencies, Industries. var currencyInfoKeyFormatted = string.Format(CacheKeys.CURRENCYINFOKEY, agent.Language); _cacheManager.Remove(currencyInfoKeyFormatted, CacheRegion.Global); var countriesKeyFormatted = string.Format(CacheKeys.COUNTRYINFOKEY, agent.Language); _cacheManager.Remove(countriesKeyFormatted, CacheRegion.Global); var countrySubdivitionKeyFormatted = string.Format(CacheKeys.COUNTRYSUBDIVISIONKEY, agent.Language); _cacheManager.Remove(countrySubdivitionKeyFormatted, CacheRegion.Global); var industryKeyFormatted = string.Format(CacheKeys.INDUSTRYKEY, agent.Language); _cacheManager.Remove(industryKeyFormatted, CacheRegion.Global); }
/// <summary> /// MONEY ORDER MoneyOrderTotal AgentConnect Call /// </summary> /// <param name="moneyOrderTotalRequest">moneyOrderTotalRequest Model</param> /// <returns>MoneyOrderTotalResponse Model</returns> public MoneyOrderTotalResponse MoneyOrderTotal(MoneyOrderTotalRequest moneyOrderTotalRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.MoneyOrderTotal(agent, moneyOrderTotalRequest); if ((response.Payload?.Flags & 1) != 0 || (response.Payload?.Flags & 16) != 0) { // ignore code table updates. } else { CheckFlagsForDataChange(response.Payload?.Flags, agent); } return(response); }
/// <summary> /// MONEY ORDER Compliance AgentConnect Call /// </summary> /// <param name="complianceTransactionRequest">ComplianceTransactionRequest Model</param> /// <returns>ComplianceTransactionResponse Model</returns> public ComplianceTransactionResponse ComplianceTransaction(ComplianceTransactionRequest complianceTransactionRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.ComplianceTransaction(agent, complianceTransactionRequest); if ((response.Payload?.Flags & 1) != 0 || (response.Payload?.Flags & 16) != 0) { // ignore code table updates. } else { CheckFlagsForDataChange(response.Payload?.Flags, agent); } return(response); }
public DwInitialSetupResponse DwInitialSetup(DwInitialSetupRequest dwInitialSetupRequest) { var agent = AuthIntegration.GetAgent(); if (dwInitialSetupRequest.DeviceID == null) { dwInitialSetupRequest.DeviceID = AuthIntegration.GetDeviceId(); } // Map values of DeviceID and Device setup PIN to AgentId and Password agent.AgentId = dwInitialSetupRequest.DeviceID; agent.AgentSequence = string.Empty; agent.AgentPassword = dwInitialSetupRequest.Password; var response = _agentConnect.DwInitialSetup(agent, dwInitialSetupRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }