public SendReversalValidationResponse SendReversalValidation(SendReversalValidationRequest sendReversalValidationRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.SendReversalValidation(agent, sendReversalValidationRequest); 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 ReceiveReversalValidationResponse ReceiveReversalValidation(ReceiveReversalValidationRequest receiveReversalValidationRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.ReceiveReversalValidation(agent, receiveReversalValidationRequest); 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 SearchStagedTransactionsResponse SearchStagedTransactions(SearchStagedTransactionsRequest searchStagedTransactionsRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.SearchStagedTransactions(agent, searchStagedTransactionsRequest); return(response); }
public GetCountrySubdivisionResponse GetCountrySubdivision(GetCountrySubdivisionRequest req) { var agent = AuthIntegration.GetAgent(); var acStatesResponse = _agentConnect.GetCountrySubdivision(agent, req); return(acStatesResponse); }
public TransactionLookupResponse TransactionLookup(TransactionLookupRequest tranLookupRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.TransactionLookup(agent, tranLookupRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public BillerSearchResponse BillerSearch(BillerSearchRequest billerSearchRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.BillerSearch(agent, billerSearchRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public AmendValidationResponse AmendValidation(AmendValidationRequest amendValidationRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.AmendValidation(agent, amendValidationRequest); 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 FeeLookupResponse FeeLookup(FeeLookupRequest feeLookupRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.FeeLookup(agent, feeLookupRequest); 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 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 ConsumerHistoryLookupResponse ConsumerHistoryLookup(ConsumerHistoryLookupRequest consumerHistoryLookupReq) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupReq); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetEnumerationsResponse GetEnumerations(GetEnumerationsRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetEnumerations(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public GetConsumerProfileTransactionHistoryResponse GetConsumerProfileTransactionHistory( GetConsumerProfileTransactionHistoryRequest req) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.GetConsumerProfileTransactionHistory(agent, req); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public void ClearAgentProfileCache(Agent agent) { var token = AuthIntegration.GetToken(); var authClaimsKey = string.Format(CacheKeys.AUTHCLAIMS, token); var agentProfileKey = string.Format(CacheKeys.AGENTPROFILECLAIMS, token); var agentProfileKeyFormatted = string.Format(CacheKeys.AGENTPROFILEKEY, agent.AgentId, agent.AgentSequence); _cacheManager.Remove(authClaimsKey, CacheRegion.Global); _cacheManager.Remove(agentProfileKey, CacheRegion.Global); _cacheManager.Remove(agentProfileKeyFormatted, CacheRegion.Global); }
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); }
public GetServiceOptionsResponse GetServiceOptions(GetServiceOptionsRequest getServiceOptionsRequest) { var agent = AuthIntegration.GetAgent(); return(_agentConnect.GetServiceOptions(agent, getServiceOptionsRequest)); }
public ProfileResponse Profile(ProfileRequest profileRequest) { var agent = AuthIntegration.GetAgent(); return(_agentConnect.Profile(agent, profileRequest)); }
public GetCurrencyInfoResponse GetCurrencyInfo(GetCurrencyInfoRequest getCurrencyInfoRequest) { var agent = AuthIntegration.GetAgent(); return(_agentConnect.GetCurrencyInfo(agent, getCurrencyInfoRequest)); }