/// <remarks/> public void SummaryPNRAsync(SummaryPNR SummaryPnrRequest, object userState) { if ((this.SummaryPNROperationCompleted == null)) { this.SummaryPNROperationCompleted = new System.Threading.SendOrPostCallback(this.OnSummaryPNROperationCompleted); } this.InvokeAsync("SummaryPNR", new object[] { SummaryPnrRequest}, this.SummaryPNROperationCompleted, userState); }
/// <summary> /// 3. Create summary /// </summary> /// <param name="objColPaxWiseFareId"></param> /// <param name="token"></param> /// <param name="adtCount"></param> /// <param name="childCount"></param> /// <param name="infantCount"></param> /// <param name="lastName"></param> /// <returns></returns> public ViewPNR GenerateSummary(List<PaxWiseFareIdResult> objColPaxWiseFareId, string token, int adtCount, int childCount, int infantCount, string lastName, FlightRequest objFlightRequest) { ViewPNR viewPnr = new ViewPNR(); try { var request = new SummaryPNR { ActionType = SummaryPNRActionTypes.GetSummary, Address = GetEmptyAddress(), CarrierCodes = GetCarrierCodes(), SecurityGUID = token, ClientIPAddress = string.Empty, SecurityToken = token, ReceiptLanguageID = "1", ReservationInfo = new ReservationInfo { ConfirmationNumber = "NA", SeriesNumber = "299" }, User = "******", CarrierCurrency = ReservationService.EnumerationsCurrencyCodeTypes.AED, ContactInfos = GetPassengerContactInfos().ToArray(), DisplayCurrency = ReservationService.EnumerationsCurrencyCodeTypes.AED, Payments = GetEmptyPayments().ToArray(), }; List<Person> lstPersons = GetPersons(adtCount, childCount, infantCount, lastName); request.Passengers = lstPersons.ToArray(); request.Segments = GetSegments(token, lstPersons, objColPaxWiseFareId, objFlightRequest).ToArray(); using (ReservationService.ConnectPoint_Reservation client = new ReservationService.ConnectPoint_Reservation()) { viewPnr = client.SummaryPNR(request); if (viewPnr.Exceptions != null) { foreach (var exception in viewPnr.Exceptions) { if (exception.ExceptionCode != 0) { var radixxException = new RadixxException( message: exception.ExceptionDescription, radixxExceptionCode: this.ParseErrorCode(exception.ExceptionDescription) ?? exception.ExceptionCode, radixxExceptionSource: exception.ExceptionSource, type: new StackFrame(1, true).GetType(), flydubaiOperation: new StackFrame(1, true).GetMethod().Name, securityGuid: token, request: "",//DataHelpers.SerializeToString(request), responseMessage: "");//DataHelpers.SerializeToString(response)); throw radixxException; } } } } } catch (Exception ex) { throw ex; } return viewPnr; }
/// <remarks/> public void SummaryPNRAsync(SummaryPNR SummaryPnrRequest) { this.SummaryPNRAsync(SummaryPnrRequest, null); }