コード例 #1
0
        public SendReversalValidationResponse SendReversalValidation(SendReversalValidationRequest sendReversalValidationRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.SendReversalValidation(agent, sendReversalValidationRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #2
0
        public DwProfileResponse DwProfile(DwProfileRequest dwProfileRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.DwProfile(agent, dwProfileRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #3
0
        public ReceiveReversalValidationResponse ReceiveReversalValidation(ReceiveReversalValidationRequest receiveReversalValidationRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.ReceiveReversalValidation(agent, receiveReversalValidationRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #4
0
        public IndustryResponse Industry(IndustryRequest request)
        {
            var agent = AuthIntegration.GetAgent();

            var industryResponse = _agentConnect.Industry(agent, request);

            return(industryResponse);
        }
コード例 #5
0
        public SearchStagedTransactionsResponse SearchStagedTransactions(SearchStagedTransactionsRequest searchStagedTransactionsRequest)
        {
            var agent = AuthIntegration.GetAgent();

            var response = _agentConnect.SearchStagedTransactions(agent, searchStagedTransactionsRequest);

            return(response);
        }
コード例 #6
0
        public GetCountrySubdivisionResponse GetCountrySubdivision(GetCountrySubdivisionRequest req)
        {
            var agent = AuthIntegration.GetAgent();

            var acStatesResponse = _agentConnect.GetCountrySubdivision(agent, req);

            return(acStatesResponse);
        }
コード例 #7
0
        public TransactionLookupResponse TransactionLookup(TransactionLookupRequest tranLookupRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.TransactionLookup(agent, tranLookupRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #8
0
        public BillerSearchResponse BillerSearch(BillerSearchRequest billerSearchRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.BillerSearch(agent, billerSearchRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #9
0
        public AmendValidationResponse AmendValidation(AmendValidationRequest amendValidationRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.AmendValidation(agent, amendValidationRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #10
0
        public BPValidationResponse BPValidation(BPValidationRequest bpValidationRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.BpValidation(agent, bpValidationRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #11
0
        public FeeLookupResponse FeeLookup(FeeLookupRequest feeLookupRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.FeeLookup(agent, feeLookupRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #12
0
        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());
        }
コード例 #13
0
        public DepositAnnouncementResponse DepositAnnouncement(DepositAnnouncementRequest depositAnnouncementRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.DepositAnnouncement(agent, depositAnnouncementRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #14
0
        public GetDepositBankListResponse GetDepositBankList(GetDepositBankListRequest getDepositBankListRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetDepositBankList(agent, getDepositBankListRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #15
0
        public GetBankDetailsByLevelResponse GetBankDetailsByLevel(GetBankDetailsByLevelRequest getBankDetailsByLevelRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetBankDetailsByLevel(agent, getBankDetailsByLevelRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #16
0
        public ConsumerHistoryLookupResponse ConsumerHistoryLookup(ConsumerHistoryLookupRequest consumerHistoryLookupReq)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupReq);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #17
0
        public GetEnumerationsResponse GetEnumerations(GetEnumerationsRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetEnumerations(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #18
0
        public GetConsumerProfileTransactionHistoryResponse GetConsumerProfileTransactionHistory(
            GetConsumerProfileTransactionHistoryRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetConsumerProfileTransactionHistory(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #19
0
        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);
        }
コード例 #20
0
        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);
        }
コード例 #21
0
        /// <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);
        }
コード例 #22
0
        /// <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);
        }
コード例 #23
0
        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);
        }
コード例 #24
0
        public GetServiceOptionsResponse GetServiceOptions(GetServiceOptionsRequest getServiceOptionsRequest)
        {
            var agent = AuthIntegration.GetAgent();

            return(_agentConnect.GetServiceOptions(agent, getServiceOptionsRequest));
        }
コード例 #25
0
        public ProfileResponse Profile(ProfileRequest profileRequest)
        {
            var agent = AuthIntegration.GetAgent();

            return(_agentConnect.Profile(agent, profileRequest));
        }
コード例 #26
0
        public GetCurrencyInfoResponse GetCurrencyInfo(GetCurrencyInfoRequest getCurrencyInfoRequest)
        {
            var agent = AuthIntegration.GetAgent();

            return(_agentConnect.GetCurrencyInfo(agent, getCurrencyInfoRequest));
        }