Example #1
0
 /// <remarks/>
 public void TravelItineraryAddInfoRQAsync(TravelItineraryAddInfoRQ TravelItineraryAddInfoRQ1, object userState) {
     if ((this.TravelItineraryAddInfoRQOperationCompleted == null)) {
         this.TravelItineraryAddInfoRQOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTravelItineraryAddInfoRQOperationCompleted);
     }
     this.InvokeAsync("TravelItineraryAddInfoRQ", new object[] {
                 TravelItineraryAddInfoRQ1}, this.TravelItineraryAddInfoRQOperationCompleted, userState);
 }
Example #2
0
        public TravelItineraryAddInfoRS AddTraveler(string securityToken)
        {
            TravelItineraryAddInfoRQ tirq = new TravelItineraryAddInfoRQ();

            tirq.CustomerInfo = new TravelItineraryAddInfoRQCustomerInfo();

            List<TravelItineraryAddInfoRQCustomerInfoPersonName> travelerInfos =
                new List<TravelItineraryAddInfoRQCustomerInfoPersonName>();

            TravelItineraryAddInfoRQCustomerInfoPersonName travelerInfo
                = new TravelItineraryAddInfoRQCustomerInfoPersonName();

            travelerInfo.NameNumber = "1.1";
            travelerInfo.GivenName = "RICHARD";
            travelerInfo.Surname = "FEYNMAN";
            travelerInfo.NameReference = "REF1";

            travelerInfos.Add(travelerInfo);

            tirq.CustomerInfo.PersonName = travelerInfos.ToArray();

            List<TravelItineraryAddInfoRQCustomerInfoEmail> emails =
                new List<TravelItineraryAddInfoRQCustomerInfoEmail>();
            emails.Add(new TravelItineraryAddInfoRQCustomerInfoEmail {
                Address = "*****@*****.**",
                NameNumber = "1.1"
            });
            tirq.CustomerInfo.Email = emails.ToArray();

            tirq.CustomerInfo.CustomerIdentifier = "1234567890";

            List<TravelItineraryAddInfoRQCustomerInfoContactNumber> contacts
                = new List<TravelItineraryAddInfoRQCustomerInfoContactNumber>();
            contacts.Add(new TravelItineraryAddInfoRQCustomerInfoContactNumber {
                Phone = "8175551212",
                NameNumber = "1.1",
                LocationCode = "YYZ",
                 PhoneUseType = "H"
            });
            tirq.CustomerInfo.ContactNumbers = contacts.ToArray();

            tirq.AgencyInfo = new TravelItineraryAddInfoRQAgencyInfo();
            tirq.AgencyInfo.Address = new TravelItineraryAddInfoRQAgencyInfoAddress();
            tirq.AgencyInfo.Address.AddressLine = "SABRE TRAVEL";
            tirq.AgencyInfo.Address.StreetNmbr = "3150 SABRE DRIVE";
            tirq.AgencyInfo.Address.CityName = "SOUTHLAKE";
            tirq.AgencyInfo.Address.PostalCode = "76092";
            tirq.AgencyInfo.Address.StateCountyProv = new TravelItineraryAddInfoRQAgencyInfoAddressStateCountyProv();
            tirq.AgencyInfo.Address.StateCountyProv.StateCode = "TX";
            tirq.AgencyInfo.Address.CountryCode = "US";

            tirq.AgencyInfo.Ticketing = new TravelItineraryAddInfoRQAgencyInfoTicketing();
            tirq.AgencyInfo.Ticketing.TicketType = "7T-";

            TravelItineraryAddInfoService
                ti = new TravelItineraryAddInfoService();
            ti.Security = this.CreateSecurityDto(securityToken);
            ti.MessageHeaderValue = this.CreateMessageHeader();

            return ti.TravelItineraryAddInfoRQ(tirq);
        }
Example #3
0
 /// <remarks/>
 public void TravelItineraryAddInfoRQAsync(TravelItineraryAddInfoRQ TravelItineraryAddInfoRQ1) {
     this.TravelItineraryAddInfoRQAsync(TravelItineraryAddInfoRQ1, null);
 }