Пример #1
0
        public async Task <LocationsForMoResponse> GetLocationsForMoAsync(LocationsForMoRequest locationForMoRequest)
        {
            locationForMoRequest.ThrowIfNull(nameof(locationForMoRequest));

            var locationForMoResponse = await PartnerServiceProxyFactory.UseService(service => service.getLocationsForMoAsync(locationForMoRequest.ToLocationsForMoRequest1Service()));

            return(locationForMoResponse.getLocationsForMoResponse.ToDomain());
        }
Пример #2
0
        public LocationsForMoResponse GetLocationsForMo(LocationsForMoRequest locationForMoRequest)
        {
            Task <LocationsForMoResponse> task = Task.Run(() => this.GetLocationsForMoAsync(locationForMoRequest));

            task.Wait();

            return(task.Result);
        }
Пример #3
0
        private List <AgentVm> GetLocationsForMo(LocationRequest poeLocRequest)
        {
            var req                = new LocationsForMoRequest();
            var header             = new MoneyGram.PartnerService.DomainModel.Header();
            var processInstruction = new MoneyGram.PartnerService.DomainModel.ProcessingInstruction();

            req.header = header;
            req.header.ProcessingInstruction = processInstruction;

            req.header.ProcessingInstruction.Action = "GetLocationsForMo";
            req.MainOfficeId           = poeLocRequest.MainOfficeId;
            req.StoreNameNumberAgentId = poeLocRequest.StoreNameNumberAgentId ?? string.Empty;
            req.SubLevelNameId         = poeLocRequest.SubLevelNameId ?? string.Empty;
            req.City          = poeLocRequest.City ?? string.Empty;
            req.StateProvince = poeLocRequest.StateProvince ?? string.Empty;
            req.Country       = poeLocRequest.Country ?? string.Empty;
            req.ZipCode       = poeLocRequest.ZipCode ?? string.Empty;

            var searchedLocationsResp = _partnerIntegration.GetLocationsForMo(req);

            return(searchedLocationsResp.ToVm().Agents);
        }
Пример #4
0
 public Task <LocationsForMoResponse> GetLocationsForMoAsync(LocationsForMoRequest locationForMoRequest)
 {
     return(_partnerService.GetLocationsForMoAsync(locationForMoRequest));
 }
Пример #5
0
 public virtual LocationsForMoResponse GetLocationsForMo(LocationsForMoRequest locationForMoRequest)
 {
     return(_partnerService.GetLocationsForMo(locationForMoRequest));
 }
Пример #6
0
 public LocationsForMoResponse GetLocationsForMo(LocationsForMoRequest locationForMoRequest)
 {
     return(_partnerServiceRepository.GetLocationsForMo(locationForMoRequest));
 }