コード例 #1
0
        public MTTransactionDetailLookupResponse MTTransactionDetailLookup(
            MTTransactionDetailLookupRequest mtTransactionDetailLookupRequest, IList <string> strPosIdList)
        {
            var agent = AuthIntegration.GetAgent();

            return(_repo.MTTransactionDetailLookup(agent.IsInTrainingMode, mtTransactionDetailLookupRequest, strPosIdList));
        }
コード例 #2
0
        public DailyTransactionDetailLookupResponse DailyTransactionDetailLookup(
            DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest)
        {
            var agent = AuthIntegration.GetAgent();

            return(_repo.DailyTransactionDetailLookup(agent.IsInTrainingMode, dailyTransactionDetailLookupRequest));
        }
コード例 #3
0
        public ConsumerHistoryLookupResponse ConsumerHistoryLookup(ConsumerHistoryLookupRequest consumerHistoryLookupReq)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupReq);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #4
0
        public GetCountrySubdivisionResponse GetCountrySubdivision(GetCountrySubdivisionRequest req)
        {
            var agent = AuthIntegration.GetAgent();

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

            return(acStatesResponse);
        }
コード例 #5
0
        public SaveTransactionDocumentResponse SaveTransactionDocument(SaveTransactionDocumentRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.SaveTransactionDocument(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #6
0
        public GetConsumerProfileDocumentResponse GetConsumerProfileDocument(GetConsumerProfileDocumentRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetConsumerProfileDocument(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #7
0
        public SaveConsumerProfileImageResponse SaveConsumerProfileImage(SaveConsumerProfileImageRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.SaveConsumerProfileImage(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #8
0
        public GetProfileConsumerResponse GetProfileConsumer(GetProfileConsumerRequest getProfileConsumerRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetProfileConsumer(agent, getProfileConsumerRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #9
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());
        }
コード例 #10
0
        public FeeLookupResponse FeeLookup(FeeLookupRequest feeLookupRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.FeeLookup(agent, feeLookupRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #11
0
        public DepositAnnouncementResponse DepositAnnouncement(DepositAnnouncementRequest depositAnnouncementRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.DepositAnnouncement(agent, depositAnnouncementRequest);

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

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

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #14
0
        public SearchStagedTransactionsResponse SearchStagedTransactions(SearchStagedTransactionsRequest searchStagedTransactionsRequest)
        {
            var agent = AuthIntegration.GetAgent();

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

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

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #16
0
        public SaveProfileResponse SaveProfile(SaveProfileRequest saveProfileRequest)
        {
            var agent = AuthIntegration.GetAgent();
            var saveProfileResponse = _agentConnect.SaveProfile(agent, saveProfileRequest);

            ClearAgentProfileCache(agent);
            return(saveProfileResponse);
        }
コード例 #17
0
        public BillerSearchResponse BillerSearch(BillerSearchRequest billerSearchRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.BillerSearch(agent, billerSearchRequest);

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

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

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #20
0
        public ReceiveValidationResponse ReceiveValidation(ReceiveValidationRequest receiveValidationReq)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.ReceiveValidation(agent, receiveValidationReq);

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

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #22
0
        public GetPersonalIDImageResponse GetPersonalIDImage(GetPersonalIDImageRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.GetPersonalIDImage(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #23
0
        public TransactionLookupResponse TransactionLookup(TransactionLookupRequest tranLookupRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.TransactionLookup(agent, tranLookupRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #24
0
        /// <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);
        }
コード例 #25
0
        public IndustryResponse Industry(IndustryRequest request)
        {
            var agent = AuthIntegration.GetAgent();

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

            return(industryResponse);
        }
コード例 #26
0
        public AmendValidationResponse AmendValidation(AmendValidationRequest amendValidationRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.AmendValidation(agent, amendValidationRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #27
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);
        }
コード例 #28
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);
        }
コード例 #29
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);
        }
コード例 #30
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);
        }