Commit a6c181f6 by ED-DRIF

Teldar PreOrderBook

parent 7e8943cb
......@@ -93,21 +93,21 @@
</dependency>
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-core</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-databind</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-annotations</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-core</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-databind</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-annotations</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- </dependency> -->
<dependency>
<groupId>org.apache.camel</groupId>
......@@ -116,24 +116,24 @@
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160212</version>
</dependency>
<dependency>
-->
<!-- <dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jetty</artifactId>
<version>${camelVersion}</version>
<!-- use the same version as your Camel core version -->
use the same version as your Camel core version
</dependency>
<dependency>
-->
<!-- <dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jxpath</artifactId>
<version>${camelVersion}</version>
</dependency>
</dependency> -->
<!-- <dependency> <groupId>com.github.seratch</groupId> <artifactId>java-time-backport</artifactId>
......@@ -154,11 +154,6 @@
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
......@@ -237,17 +232,17 @@
<!--<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId>
<version>3.0.0</version> </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-databind</artifactId> -->
<!-- <version>2.9.8</version> -->
<!-- <exclusions> -->
<!-- <exclusion> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-core</artifactId> -->
<!-- </exclusion> -->
<!-- </exclusions> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-databind</artifactId> -->
<!-- <version>2.9.8</version> -->
<!-- <exclusions> -->
<!-- <exclusion> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-core</artifactId> -->
<!-- </exclusion> -->
<!-- </exclusions> -->
<!-- </dependency> -->
</dependencies>
......@@ -297,7 +292,6 @@
org.slf4j, org.xml.sax,
org.joda.time,
org.joda.time.format,
org.eclipse.jetty*
javax.xml.*,
com.fasterxml.jackson.*,
org.apache.camel.builder,
......@@ -307,7 +301,7 @@
</configuration>
</plugin>
<!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId>
<!-- org.eclipse.jetty*<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version> <executions> <execution> <id>wsdltoJava</id> <goals>
<goal>wsimport</goal> </goals> <configuration> <wsdlUrls> <wsdlUrl>${basedir}/src/main/resources/wsdl</wsdlUrl>
</wsdlUrls> <vmArgs> <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
......
......@@ -51,6 +51,8 @@ public class MarshallingJAXB {
String serverURI = "http://webservice.gekko-holding.com/v2_4";
envelope.addNamespaceDeclaration("ns2", serverURI);
//SOAPBody
soapMessage.getSOAPBody().addDocument(document);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
......
package com.fractalite.hermes.teldar.Marshaller;
import org.apache.camel.Exchange;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import com.gekko_holding.webservice.Availability.AvailabilityResponse;
import java.io.ByteArrayInputStream;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import java.io.ByteArrayInputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.gekko_holding.webservice.v2_4.BookHotelResponse;
import com.gekko_holding.webservice.v2_4.GetHotelDetailsResponse;
import com.gekko_holding.webservice.v2_4.GetPreBookingInfoResponse;
import com.gekko_holding.webservice.v2_4.HotelAvailabilityResponse;;
@Component
public class UnmarshallingJAXB {
......@@ -30,11 +29,11 @@ public class UnmarshallingJAXB {
Unmarshaller unmarshaller = null;
try {
message = MessageFactory.newInstance().createMessage(null,
new ByteArrayInputStream(xml.getBytes()));
message = MessageFactory.newInstance().createMessage(null, new ByteArrayInputStream(xml.getBytes()));
jaxbContext = JAXBContext.newInstance(objectClass);
unmarshaller = jaxbContext.createUnmarshaller();
if (message.getSOAPBody().getFirstChild().getLocalName().toLowerCase().equals(objectClass.getSimpleName().toLowerCase())) {
if (message.getSOAPBody().getFirstChild().getLocalName().toLowerCase()
.equals(objectClass.getSimpleName().toLowerCase())) {
rslt = (T) unmarshaller.unmarshal(message.getSOAPBody().extractContentAsDocument());
} else {
logger.error("Error in printObject function to set result");
......@@ -48,38 +47,26 @@ public class UnmarshallingJAXB {
}
/* Availability Response Unmashaller. */
public static AvailabilityResponse fromHotelAvailabilityResponse(String exchangeBody) {
AvailabilityResponse unmarshalledObject = printObject(AvailabilityResponse.class, exchangeBody);
public static HotelAvailabilityResponse fromHotelAvailabilityResponse(String exchangeBody) {
HotelAvailabilityResponse unmarshalledObject = printObject(HotelAvailabilityResponse.class, exchangeBody);
return unmarshalledObject;
}
/* public static GetHotelDetailsResponse fromGetHotelDetailsResponse(String exchangeBody) {
GetHotelDetailsResponse unmarshalledObject=printObject(GetHotelDetailsResponse.class, exchangeBody);
public static GetHotelDetailsResponse fromGetDetailsResponse(String exchangeBody) {
GetHotelDetailsResponse unmarshalledObject = printObject(GetHotelDetailsResponse.class, exchangeBody);
return unmarshalledObject;
}
public static GetCitiesResponse fromGetCitiesResponse(String exchangeBody) {
GetCitiesResponse unmarshalledObject = printObject(GetCitiesResponse.class, exchangeBody);
return unmarshalledObject;
}
public static GetPreBookingInfoResponse fromPreBookingInfoResponse(String exchangeBody) {
public static GetPreBookingInfoResponse fromPreBookingInfoResponse1(String exchangeBody) {
GetPreBookingInfoResponse unmarshalledObject = printObject(GetPreBookingInfoResponse.class, exchangeBody);
return unmarshalledObject;
}
public static BookHotelResponse fromBookHotelResponse(String exchangeBody) {
BookHotelResponse unmarshalledObject=printObject(BookHotelResponse.class, exchangeBody);
BookHotelResponse unmarshalledObject = printObject(BookHotelResponse.class, exchangeBody);
return unmarshalledObject;
}
public static CancelBookingSegmentResponse fromBookingCancellation(String exchangeBody) {
CancelBookingSegmentResponse unmarshalledObject=printObject(CancelBookingSegmentResponse.class, exchangeBody);
return unmarshalledObject;*/
// }
}
......@@ -3,6 +3,7 @@ package com.fractalite.hermes.teldar.cfg;
import com.fractalite.hermes.services.stay.ContentProviderDescriptor;
/**
* TELDAR Content Provider Descriptor.
* Supported Operations (Endpoints)
......@@ -19,6 +20,7 @@ import com.fractalite.hermes.services.stay.ContentProviderDescriptor;
* </ul>
*
*/
public class ContentProvider implements ContentProviderDescriptor {
public static final String PROVIDER_ID = "teldar";
......
/*
* package com.fractalite.hermes.teldar.parsers;
*
* import java.io.IOException; import java.io.StringReader; import java.net.URL;
* import java.security.NoSuchAlgorithmException; import
* java.text.SimpleDateFormat; import java.util.ArrayList; import
* java.util.HashMap; import java.util.List;
*
* import javax.xml.bind.JAXBContext; import javax.xml.bind.Unmarshaller;
*
* import org.apache.commons.lang3.StringUtils;
*
* import com.fasterxml.jackson.dataformat.xml.XmlMapper; import
* com.fractalite.hermes.teldar.cfg.TeldarRouteBuilder; import
* com.fractalite.models.travel.PaxType; import
* com.fractalite.models.travel.Traveller; import
* com.fractalite.models.travel.stay.HotelStay; import
* com.fractalite.models.travel.stay.Occupancy2; import
* com.fractalite.models.travel.stay.Room; import
* com.gekko_holding.webservice.Availability.AvailabilityCriteria; import
* com.gekko_holding.webservice.Availability.Child; import
* com.gekko_holding.webservice.Availability.CityDestination; import
* com.gekko_holding.webservice.Availability.CustomerIdentification; import
* com.gekko_holding.webservice.Availability.DestinationCriteria; import
* com.gekko_holding.webservice.Availability.Facility; import
* com.gekko_holding.webservice.Availability.GeoCodeDestination; import
* com.gekko_holding.webservice.Availability.HotelAvailability; import
* com.gekko_holding.webservice.Availability.HotelCodeDestination; import
* com.gekko_holding.webservice.Availability.HotelCodeListDestination; import
* com.gekko_holding.webservice.Availability.RoomPlan; import
* com.gekko_holding.webservice.Availability.AvailabilityCriteria.RoomCriterias;
* import com.gekko_holding.webservice.Availability.AvailabilityResponse; import
* com.gekko_holding.webservice.Availability.RoomPlan.Children;
*
*
*
*
* public class AvailabilityTeld {
*
* public static final String CLIENTID = "atlasvoyages/master/test"; public
* static final String PASSWORD = "p*TE*kH!e8$%dS"; public static final String
* CUSTOMERKEY = "atlasvoyages/test";
*
* static { System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2"); }
* public static void main(String[] args) throws NoSuchAlgorithmException {
*
* try {
*
* String endpoint =
* "https://api.teldartravel.com/gekko-front/ws/v2_4/AvailabilityService";
*
* URL url = new URL(endpoint);
*
* HotelAvailability hotelavailability = new HotelAvailability();
* hotelavailability.setLanguage("EN"); CustomerIdentification
* customeridentification = new CustomerIdentification();
* customeridentification.setClientId(CLIENTID);
* customeridentification.setPassword(PASSWORD);
* hotelavailability.setIdentification(customeridentification);
*
* AvailabilityCriteria avaCriteria = new AvailabilityCriteria();
* avaCriteria.setCheckIn("2020-11-16"); avaCriteria.setCheckOut("2020-11-18");
*
* DestinationCriteria destinationcriteria = new DestinationCriteria();
* CityDestination citydestination = new CityDestination();
* citydestination.setCode("FRLIO"); citydestination.setStandard("locode");
* destinationcriteria.setCity(citydestination);
* avaCriteria.setDestinationCriteria(destinationcriteria);
*
* RoomCriterias roomingList = new RoomCriterias(); RoomPlan roomPlan = new
* RoomPlan(); roomPlan.setAdultsCount(2); roomPlan.setRoomType("DOUB");
*
*
*
* roomingList.getRoomPlan().add(roomPlan);
* avaCriteria.setRoomCriterias(roomingList);
*
* avaCriteria.setLimit(0);
*
* hotelavailability.setAvailCriteria(avaCriteria);
*
* Utils.constructXml(url, hotelavailability, CLIENTID, PASSWORD);
*
* } catch (IOException e) { System.out.println("the errors : " +
* e.getMessage()); } }
*
* }
*/
\ No newline at end of file
......@@ -3,7 +3,7 @@ package com.fractalite.hermes.teldar.parsers;
public enum Facility {
SVGEKO_1("acces internet"),
SVGEKKO_1("acces internet"),
SVGEKKO_2("Parking"),
SVGEKKO_3("Court de tennis"),
SVGEKKO_4("Etablissement adapté pour handicapés"),
......@@ -114,7 +114,9 @@ public enum Facility {
SVGEKKO_132("chambres insonorisées"),
SVGEKKO_133("Télévision par satellite avec chaînes françaises"),
SVGEKKO_134("WIFI gratuit"),
SVGEKKO_135("baignoire");
SVGEKKO_135("baignoire"),
SVGEKKO_181("park");
/**
......
package com.fractalite.hermes.teldar.parsers;
import java.io.IOException;
import java.text.ParseException;
import java.util.Currency;
import java.util.HashMap;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;
import com.fractalite.hermes.teldar.tools.ObjectToXml;
import com.fractalite.models.commerce.Order;
import com.fractalite.models.commerce.OrderStatus;
import com.fractalite.models.commerce.PriceScope;
import com.fractalite.models.common.Money;
import com.fractalite.models.travel.stay.HotelStay;
import com.gekko_holding.webservice.v2_4.CancellationFeesPolicy;
import com.gekko_holding.webservice.v2_4.CancellationPolicyResponse;
import com.gekko_holding.webservice.v2_4.GetPreBookingInfoResponse;
public class ParseAddBookingTeldar extends TeldarParsers{
protected static Logger logger = LoggerFactory.getLogger(ParseAddBookingTeldar.class);
@Override
public void process(Exchange exchange) throws InvalidPayloadException, ParserConfigurationException, SAXException,
IOException, XPathExpressionException, ParseException {
logger.info("Invoking TELDAR ParseAddBookingTeldar Processor......."+exchange.getIn().getBody());
Order oldOrder = exchange.getProperty("hermesorder", Order.class);
GetPreBookingInfoResponse respbook = exchange.getIn().getBody(GetPreBookingInfoResponse.class);
Order order = printHotelInfo(respbook.getPreBookingInfo(), oldOrder);
logger.debug("new one " + ObjectToXml.printXML(order));
exchange.setProperty("order", order);
exchange.getIn().setBody(order.getTrip().getContent(HotelStay.class).get(0).getHotel().getCode());
logger.info("End TELDAR ParseAddBookingTeldar Processor......."+ ObjectToXml.printXML(order));
}
private Order printHotelInfo(CancellationPolicyResponse teldarHotels, Order order) throws XPathExpressionException {
if (teldarHotels != null && teldarHotels.getCancellationFeesPolicy() != null
&& !teldarHotels.getCancellationFeesPolicy().isEmpty()) {
logger.info("teldarHotels" + teldarHotels + "̣ size " + teldarHotels.getCancellationFeesPolicy().size());
HashMap<String, HashMap<String, String>> cancellationFees = new HashMap<String, HashMap<String, String>>();
for (CancellationFeesPolicy respHotelBook : teldarHotels.getCancellationFeesPolicy()) {
if (!respHotelBook.isAllDates()){
if (respHotelBook.getFromDate() != null) {
cancellationFees.put(respHotelBook.getFromDate(), new HashMap<String, String>());
}
if (respHotelBook.getToDate()!=null){
cancellationFees.get(respHotelBook.getFromDate()).put("ToDate", respHotelBook.getToDate());
}
if (respHotelBook.getRoomIndex() != null){
cancellationFees.get(respHotelBook.getFromDate()).put("RoomIndex", respHotelBook.getRoomIndex().toString());
}
if (respHotelBook.getCurrency() != null) {
cancellationFees.get(respHotelBook.getFromDate()).put("Currency", respHotelBook.getCurrency());
}
if (respHotelBook.getPrice() != null) {
cancellationFees.get(respHotelBook.getFromDate()).put("Price", respHotelBook.getPrice());
}
}else {
cancellationFees.put("allDates", new HashMap<String, String>());
if (respHotelBook.getCurrency() != null) {
cancellationFees.get("allDates").put("Currency", respHotelBook.getCurrency());
}
if (respHotelBook.getPrice() != null) {
cancellationFees.get("allDates").put("Price", respHotelBook.getPrice());
}
}
}
if (teldarHotels.getVoucherObservation() != null && !teldarHotels.getVoucherObservation().isEmpty()){
HashMap<String, String> voucherMap = new HashMap<String, String>();
voucherMap.put("voucher", teldarHotels.getVoucherObservation());
cancellationFees.put("voucherObservation", voucherMap);
}
if (teldarHotels.getOfferCode() != null && !teldarHotels.getOfferCode().isEmpty()){
// order.setNumber(accorHotels.getOfferCode());
logger.info(" Offer codeteladr is : " + teldarHotels.getOfferCode());
order.setNumber(teldarHotels.getOfferCode());
order.setStatus(OrderStatus.PREORDER);
} else
try {
throw(new Exception() );
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (teldarHotels.getOfferPrice() != null){
if (teldarHotels.getOfferPrice().isChanged()){
Money newMoney = new Money(teldarHotels.getOfferPrice().getTotalPrice().getValue(), Currency.getInstance(teldarHotels.getOfferPrice().getTotalPrice().getCurrency()));
order.getPricing().setPrice(PriceScope.TOTAL, newMoney);
logger.info("priceeeeeess " +teldarHotels.getOfferPrice().getTotalPrice().getCurrency());
if (teldarHotels.getOfferPrice().getPricePerRoom() != null){
// Room pricing
}
}
logger.info("Cancellation fees list content");
for (String key : cancellationFees.keySet()){
for (String value: cancellationFees.get(key).keySet()
) {
logger.info(key);
logger.info(value + " : " + cancellationFees.get(key).get(value));
logger.info("vaueeeeeeeeeeee "+ cancellationFees.get(key).get(value));
}
}
}
}
logger.debug("new one in processorPreOrder1 " + ObjectToXml.printXML(order));
return order;
}
}
package com.fractalite.hermes.teldar.parsers;
import java.io.IOException;
import java.text.ParseException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;
import com.fractalite.hermes.teldar.tools.ObjectToXml;
import com.fractalite.models.commerce.Order;
import com.fractalite.models.commerce.OrderStatus;
import com.fractalite.models.commerce.TermOfSale;
import com.fractalite.models.travel.stay.StayItem2;
import com.gekko_holding.webservice.v2_4.BookHotelResponse;
import com.gekko_holding.webservice.v2_4.BookResponse;
import com.gekko_holding.webservice.v2_4.Segment;
public class ParseConfirmBookResponse extends TeldarParsers{
protected static Logger logger = LoggerFactory.getLogger(ParseConfirmBookResponse.class);
@Override
public void process(Exchange exchange) throws InvalidPayloadException, ParserConfigurationException, SAXException,
IOException, XPathExpressionException, ParseException {
logger.info("Invoking TELDAR ParseConfirmBookResponse Processor.......");
Order oldOrder = exchange.getProperty("order", Order.class);
String custoNumber = exchange.getProperty("custoNumber", String.class);
BookHotelResponse respbookhotel = exchange.getIn().getBody(BookHotelResponse.class);
Order order = printHotelInfo(respbookhotel.getBookResponse(), oldOrder, custoNumber);
logger.info("new one " + ObjectToXml.printXML(order));
exchange.getIn().setBody(order);
logger.info("End TELDAR ParseConfirmBookResponse Processor.......");
/*
* } catch (Exception e) { logger.info(e.getMessage()); // TODO Auto-generated
* catch block e.printStackTrace(); }
*/
}
private Order printHotelInfo(BookResponse bookHotels, Order order, String custoNumber) {
if (bookHotels != null && bookHotels.getBookingId() != null) {
logger.info(" \n bookHotels" + bookHotels + "̣ size " + bookHotels.getBookingId());
order.setNumber(bookHotels.getBookingId());
for (Segment respSegment : bookHotels.getSegments().getSegment()) {
order.setStatus(OrderStatus.CONFIRMED);
TermOfSale termsOfSalePayable = new TermOfSale();
termsOfSalePayable.setCode("PAYEDBY");
termsOfSalePayable.setDescription(
"Infinite Hotel , Teldar Hotels Group " + respSegment.getSupplierBookingNumber());
order.getPricing().getItems(StayItem2.class).get(0).getProduct().getTermsOfSales()
.add(termsOfSalePayable);
for (StayItem2 lineItem : order.getPricing().getItems(StayItem2.class)) {
lineItem.setStatus(OrderStatus.CONFIRMED);
lineItem.setReference(bookHotels.getBookingId());
}
// SupplierBookingNumber
if (respSegment.getSupplierBookingNumber() != null) {
order.setNumber(bookHotels.getBookingId() + "_" + respSegment.getSupplierBookingNumber() + "_"
+ custoNumber);
}
/*
* if(respSegment.getStatus() != null) {
* orderhotel.setStatus(respSegment.getStatus()); }
*/
}
}
logger.debug("new one in processor " + ObjectToXml.printXML(order));
return order;
}
}
package com.fractalite.hermes.teldar.parsers;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;
import com.fractalite.models.common.Address;
import com.fractalite.models.common.CodeNamePair;
import com.fractalite.models.common.Company;
import com.fractalite.models.common.Location;
import com.fractalite.models.common.PhoneNumberEntry;
import com.fractalite.models.travel.stay.Hotel;
import com.fractalite.models.travel.stay.Image;
import com.gekko_holding.webservice.v2_4.Description;
import com.gekko_holding.webservice.v2_4.Facility;
import com.gekko_holding.webservice.v2_4.GetHotelDetailsResponse;
import com.gekko_holding.webservice.v2_4.HotelBean;
import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
public class ParseHoteldetailsResponse extends TeldarParsers {
protected static Logger logger = LoggerFactory.getLogger(ParseHoteldetailsResponse.class);
@Override
public void process(Exchange exchange) throws InvalidPayloadException, ParserConfigurationException, SAXException,
IOException, XPathExpressionException, ParseException {
// TODO Auto-generated method stub
logger.info("\n Invoking TELDAR ParseDetailHotel Processor....... "+exchange.getIn().getBody());
GetHotelDetailsResponse resp = exchange.getIn().getMandatoryBody(GetHotelDetailsResponse.class);
logger.info("\n Invoking TELDAR ParseDetailHotel Processor....... " + resp.getHotel().size());
Hotel result = printHotelInfo(resp);
logger.info("\n End TELDAR ParseDetailHotel Processor" + result.getPhoneNumber("Phone"));
exchange.getIn().setBody(new Hotel("codehotel", "ibis"), Hotel.class);
}
private Hotel printHotelInfo(GetHotelDetailsResponse respdetail) throws XPathExpressionException {
Hotel hermesHotel = new Hotel();
if (respdetail != null && respdetail.getHotel() != null && !respdetail.getHotel().isEmpty()) {
for (HotelBean respBean : respdetail.getHotel()) {
if (respBean.getHotelRating() != null) {
HotelRating rating = null;
if (respBean.getHotelRating().equals("UNKNOWN") || respBean.getHotelRating().equals("UNRATED")) {
rating = HotelRating.valueOf(respBean.getHotelRating());
} /*
* else { rating = HotelRating.valueOf("_" + respBean.getHotelRating()); }
*/
if (rating != null) {
hermesHotel.setRating(new CodeNamePair(String.valueOf(rating.value()), rating.value() + "ST"));
}
}
if (respBean.getHotelCode() != null) {
hermesHotel.setCode("fffff");
}
if (respBean.getHotelName() != null) {
hermesHotel.setName(respBean.getHotelName());
}
if (respBean.getHotelChain().getCode() != null) {
hermesHotel.setChain(new Company(respBean.getHotelChain().getCode()));
}
if (respBean.getGeoLocalization() != null) {
hermesHotel.setLatitude((float) respBean.getGeoLocalization().getLatitude());
hermesHotel.setLongitude((float) respBean.getGeoLocalization().getLongitude());
}
if (respBean.getFax() != null) {
hermesHotel.addPhoneNumber("fax", new PhoneNumber().setExtension(respBean.getFax()));
}
if (respBean.getGeoLocalization() != null) {
hermesHotel.setDescription(String.valueOf(respBean.getDescriptions()));
}
if (respBean.getAddress() != null) {
hermesHotel.setAddress(new Address("", "", new Location(String.valueOf(respBean.getCity())),
new Location("", "")));
com.fractalite.models.common.Address hermesAddress = new Address(respBean.getAddress(), "",
new Location(respBean.getCity().getCode().substring(2, 5),
respBean.getCity().getCode().substring(2, 5)),
new Location(respBean.getCity().getCode().substring(0, 2),
respBean.getCity().getCode().substring(0, 2)));
hermesHotel.setAddress(hermesAddress);
}
// long ii = 12345678910L;
if (respBean.getPhone() != null) {
PhoneNumber phone;
logger.info("phhhhhhhhh" +respBean.getPhone());
try {
phone = PhoneNumberUtil.getInstance().parse(respBean.getPhone(), "FR");
hermesHotel.getPhoneNumbers().add( new PhoneNumberEntry("Phone", phone));
} catch (NumberParseException e) {
// TODO Auto-generated catch block
logger.info("mesgggggg" +e.getMessage());
}
}
else {
logger.info("no numbrrr" );
}
if (respBean.getEmail() != null) {
hermesHotel.setEmail(respBean.getEmail());
}
if (respBean.getShortDescription() != null) {
hermesHotel.setDescription(respBean.getShortDescription());
}
if (respBean.getThumbnailUrl() != null) {
hermesHotel.setTaRatingUrl(respBean.getThumbnailUrl());
}
if (respBean.getDescriptions() != null && respBean.getDescriptions().getDescription() != null
&& !respBean.getDescriptions().getDescription().isEmpty()) {
Description description = new Description();
List<String> descriptions = new ArrayList<String>();
for (Description respdesc : respBean.getDescriptions().getDescription()) {
if (respdesc.getType() != null && !respdesc.getType().isEmpty()) {
descriptions.add(description.getType());
}
hermesHotel.setType(respdesc.getType());
}
}
if (respBean.getFacilities() != null && respBean.getFacilities().getFacility() != null
&& !respBean.getFacilities().getFacility().isEmpty()) {
// list of all facilities content[e.g: Accès Internet] not code[e.g : SVGEKKO-1]
List<String> facilities = new ArrayList<String>();
for (Facility respFacility : respBean.getFacilities().getFacility()) {
if (respFacility.getCode() != null && !respFacility.getCode().isEmpty()) {
facilities.add(respFacility.getValue());
String a = respFacility.getValue();
logger.info("facilecode"+a);
/*
* com.fractalite.hermes.accor.parsers.Facility hermesFacility =
* com.fractalite.hermes.accor.parsers.Facility
* .valueOf(respFacility.getCode().replace("-", "_"));
*/
// logger.info("facecode"+respFacility.getCode());
/*
* if (hermesFacility != null) { facilities.add(respFacility.getValue());
*
* }
*/
}
}
hermesHotel.setAmenities(facilities);
}
if (respBean.getImages() != null) {
List<Image> hermesimages = new ArrayList<Image>();
int id = 0;
logger.info("imgesssss"+respBean.getImages().getImage().size());
for (int i = 0; i < respBean.getImages().getImage().size(); i++) {
String ig = respBean.getImages().getImage().get(i).getValue().toString();
logger.info("imgesssss12"+ig);
Image img = new Image();
img.setUrl(ig);
hermesimages.add(img);
}
// hermesimages.add(ig)
/*
* List<String> lst= new ArrayList<String>();
* lst.add(respBean.getImages().getImage().toArray().toString());
*
*
* logger.info("imgesssss1"+lst.size());
* logger.info("imgesssss2"+lst.toString());
*
*
* for(int i=0;i<lst.size();i++) { Image ig= new Image();
*
* }
*/
// for (ImageUrl respImage : respBean.getImages().getImage().get(i).getValue())
// hermesimages.add(new Image(""+id + id++, respImage.getType(),
// respImage.getValue(), respImage.getValue(), Short.parseShort("" +
// 800),Short.parseShort("" + 600)));
/*
* for(int i=0;i<100;i++) hermesimagest.add(new Image(""+id + id++,
* respImage.getType(), respImage.getValue(), respImage.getValue(),
* Short.parseShort("" + 800),Short.parseShort("" + 600)));
*/
// logger.info("immmmmages"+hermesimages.size()+" "+id);
/*
* if (respImage.getType() != null && !respImage.getType().isEmpty()) { id++;
* hermesimages.add(new Image("" + id, respImage.getType(),
* respImage.getValue(), respImage.getValue(), Short.parseShort("" + 800),
* Short.parseShort("" + 600))); }
*/
hermesHotel.setType(String.valueOf(respBean.getImages()));
hermesHotel.setImages(hermesimages);
}
}
}
return hermesHotel;
}
public static void main(String[] args) {
String phone = "00 33 1 44 40 52 52";
PhoneNumber phonenumber =null;
try {
phonenumber = PhoneNumberUtil.getInstance().parse(phone, "FR");
} catch (NumberParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
phonenumber.setRawInput(phone);
PhoneNumberEntry pn = new PhoneNumberEntry("phone", phonenumber );
//h.set
System.out.println(phonenumber.getCountryCode()+" "+phonenumber.getNationalNumber());
}
}
\ No newline at end of file
/*
* package com.fractalite.hermes.teldar.parsers;
*
* import java.io.ByteArrayOutputStream; import java.io.IOException; import
* java.io.InputStream; import java.io.OutputStream; import
* java.net.HttpURLConnection; import java.net.ProtocolException; import
* java.net.URL;
*
* import javax.xml.bind.JAXBContext; import javax.xml.bind.Marshaller; import
* javax.xml.parsers.DocumentBuilder; import
* javax.xml.parsers.DocumentBuilderFactory; import
* javax.xml.soap.MessageFactory; import javax.xml.soap.SOAPEnvelope; import
* javax.xml.soap.SOAPMessage; import javax.xml.soap.SOAPPart;
*
* import org.w3c.dom.Document; import org.w3c.dom.Element;
*
* public class Utils { private static final String serverURI =
* "http://webservice.gekko-holding.com/v2_4";
*
* public static String constructXml(URL url, Object request, String CLIENTID,
* String PASSWORD) throws IOException { String xml = ""; // /end request xml =
* xml = printXMLPrime(request); System.out.println("RequestAvailability= " +
* xml.toString());
*
* HttpURLConnection connection = construireConnexion(url);
*
* // Write XML OutputStream outputStream = connection.getOutputStream(); byte[]
* b = xml.getBytes("UTF-8"); outputStream.write(b); outputStream.flush();
* outputStream.close();
*
* // Read XML InputStream inputStream = connection.getInputStream(); byte[] res
* = new byte[2048]; int i = 0; StringBuilder response = new StringBuilder();
* while ((i = inputStream.read(res)) != -1) { response.append(new String(res,
* 0, i)); } inputStream.close();
*
* System.out.println("ResponseAvailability= " + response.toString()); return
* xml;
*
* }
*
* private static HttpURLConnection construireConnexion(URL url) throws
* IOException { HttpURLConnection connection = (HttpURLConnection)
* url.openConnection();
*
* // Set timeout as per needs connection.setConnectTimeout(20000);
* connection.setReadTimeout(20000);
*
* // Set DoOutput to true if you want to use URLConnection for output. //
* Default is false connection.setDoOutput(true);
*
* connection.setUseCaches(true); connection.setRequestMethod("POST");
*
* // Set Headers connection.setRequestProperty("Accept", "application/xml");
* connection.setRequestProperty("Content-Type", "application/xml"); return
* connection; }
*
* public static String printXMLPrime(Object object) {
*
* DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
* JAXBContext jc; String output = ""; try { DocumentBuilder builder =
* factory.newDocumentBuilder(); Document document = builder.newDocument();
*
* jc = JAXBContext.newInstance(object.getClass()); // Marshaller and properties
* Marshaller marshaller = jc.createMarshaller();
* marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
* marshaller.setProperty("jaxb.fragment", Boolean.TRUE);
*
* marshaller.marshal(object, document); SOAPMessage soapMessage =
* MessageFactory.newInstance().createMessage();
*
* // Whole envolope of request SOAPPart soapPart = soapMessage.getSOAPPart();
* SOAPEnvelope envelope = soapPart.getEnvelope();
*
* // Teldar namespace uri for prefix
*
* envelope.addNamespaceDeclaration("ns2", serverURI);
*
* Element documentElement = document.getDocumentElement();
*
* documentElement.setAttribute("xmlns:ns2",
* "=http://webservice.gekko-holding.com/v2_4");
*
* soapMessage.getSOAPBody().addDocument(document); ByteArrayOutputStream
* outputStream = new ByteArrayOutputStream();
* soapMessage.writeTo(outputStream);
*
* output = new String(outputStream.toByteArray());
*
* return output;
*
* } catch (Exception e) {
*
* }
*
* return null;
*
* }
*
* }
*/
\ No newline at end of file
package com.fractalite.hermes.teldar.services;
import java.text.ParseException;
import javax.xml.datatype.DatatypeConfigurationException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fractalite.hermes.teldar.cfg.TeldarRouteBuilder;
import com.fractalite.hermes.teldar.tools.ObjectToXml;
import com.fractalite.models.commerce.Order;
import com.fractalite.models.travel.PaxType;
import com.fractalite.models.travel.Traveller;
import com.fractalite.models.travel.stay.HotelStay;
import com.fractalite.models.travel.stay.Room;
import com.fractalite.models.travel.stay.StayItem2;
import com.gekko_holding.webservice.v2_4.BookHotel;
import com.gekko_holding.webservice.v2_4.BookedOffer;
import com.gekko_holding.webservice.v2_4.BookedRoom;
import com.gekko_holding.webservice.v2_4.CustomerIdentification;
import com.gekko_holding.webservice.v2_4.HotelBooking;
import com.gekko_holding.webservice.v2_4.Pax;
import com.gekko_holding.webservice.v2_4.RequestedBookings;
import com.gekko_holding.webservice.v2_4.StaticticField;
public class ConfirmBookTeldarRequest extends TeldarServices{
protected static Logger logger = LoggerFactory.getLogger(ConfirmBookTeldarRequest.class);
@Override
public void process(Exchange exchange)
throws InvalidPayloadException, DatatypeConfigurationException, ParseException {
logger.info("Invoking TELDAR ConfirmBookTeldarRequest Processor.......");
Order order = exchange.getIn().getMandatoryBody(Order.class);
exchange.setProperty("order", order);
logger.info("Order is " + ObjectToXml.printXML(order));
String custoNumber = "Av"+(System.currentTimeMillis() / 1000l);
exchange.setProperty("custoNumber", custoNumber);
BookHotel book = addBookhotel(order, custoNumber);
logger.info("End TELDAR ConfirmBookTeldarRequest Processor....... \n" + ObjectToXml.printXML(book));
exchange.getIn().setBody(book, BookHotel.class);
}
public BookHotel addBookhotel(Order order, String custonumber) throws DatatypeConfigurationException {
BookHotel bookhotel = new BookHotel();
CustomerIdentification customeridentification = new CustomerIdentification();
customeridentification.setClientId(TeldarRouteBuilder.clientId);
customeridentification.setPassword(TeldarRouteBuilder.password);
HotelStay hotelstay = ((HotelStay) order.getTrip().getContent().get(0));
bookhotel.setLanguage("EN");
bookhotel.setIdentification(customeridentification);
RequestedBookings requestbooking = new RequestedBookings();
requestbooking.setInsurance(true);
RequestedBookings.StatisticalFields satisticalfields = new RequestedBookings.StatisticalFields();
StaticticField staticticField = new StaticticField();
staticticField.setType("REM_EXTERNAL_REF");
staticticField.setValue(custonumber);
logger.info("avvvv" +custonumber);
satisticalfields.getStatisticalField().add(staticticField);
requestbooking.setStatisticalFields(satisticalfields);
HotelBooking hotelbooking = new HotelBooking();
// hotelbooking.setHotelCode("FR004294");
hotelbooking.setHotelCode(hotelstay.getHotel().getCode());
hotelbooking.setCheckIn(hotelstay.getCheckin().toString());
// hotelbooking.setCheckIn(hotelstay.getCheckin().toString());
hotelbooking.setCheckOut(hotelstay.getCheckout().toString());
// hotelbooking.setCheckOut(hotelstay.getCheckin().toString());
BookedOffer bookedoffer = new BookedOffer();
// bookedoffer.setCode("5cdbf3f2cc71932ceacce265");
bookedoffer.setCode(order.getNumber());
// bookedoffer.setCode(order.getPricing().getItems(StayItem2.class).get(0).getProduct().getCode());
BookedOffer.BookedRooms bookedRooms = new BookedOffer.BookedRooms();
int roomId=0;
for(StayItem2 item: order.getPricing().getItems(StayItem2.class)) //Item
{
for(Room room: item.getRooms())
{
BookedRoom bookedroom2 = new BookedRoom();
bookedroom2.setRoomIndex(roomId++);
for( Traveller tr :room.getGuests())
{
Pax pax2 = new Pax();
pax2.setTitle("Mr");
if(tr.getClassification() == PaxType.CHILD)
{
pax2.setIsChild(true);
pax2.setChildAge(""+tr.getAge());
}
pax2.setFirstName(tr.getName().getFirst());
pax2.setLastName(tr.getName().getLast());
bookedroom2.getRegisteredUserOrPax().add(pax2);
}
bookedRooms.getBookedRoom().add(bookedroom2);
}
}
bookedoffer.setBookedRooms(bookedRooms);
hotelbooking.setBookedOffer(bookedoffer);
requestbooking.getHotelBooking().add(hotelbooking);
bookhotel.setBookRequest(requestbooking);
return bookhotel;
}
}
package com.fractalite.hermes.teldar.services;
import java.text.ParseException;
import javax.xml.datatype.DatatypeConfigurationException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fractalite.hermes.teldar.Marshaller.MarshallingJAXB;
import com.fractalite.hermes.teldar.cfg.TeldarRouteBuilder;
import com.gekko_holding.webservice.v2_4.CustomerIdentification;
import com.gekko_holding.webservice.v2_4.GetHotelDetails;
import com.gekko_holding.webservice.v2_4.HotelCode;
import com.gekko_holding.webservice.v2_4.HotelCodes;
public class GetHotelDetailsRequest extends TeldarServices {
protected static Logger logger = LoggerFactory.getLogger(GetHotelDetailsRequest.class);
@Override
public void process(Exchange exchange)
throws InvalidPayloadException, DatatypeConfigurationException, ParseException {
logger.info("Invoking TELDAR GetHotelDetailsRequest Processor.......");
// HotelStay hotelstay = exchange.getIn().getMandatoryBody(HotelStay.class);
String hotelCode = exchange.getIn().getMandatoryBody(String.class);
GetHotelDetails hoteldetailReq = getDetail(hotelCode);
logger.info("End TELDAR GetHotelDetailsRequest Processor......." +MarshallingJAXB.printXML(hoteldetailReq));
exchange.getIn().setBody(hoteldetailReq, GetHotelDetails.class);
}
public GetHotelDetails getDetail(String code) throws ParseException, DatatypeConfigurationException {
GetHotelDetails gethoteldetails = new GetHotelDetails();
CustomerIdentification customeridentification = new CustomerIdentification();
customeridentification.setClientId(TeldarRouteBuilder.clientId);
customeridentification.setPassword(TeldarRouteBuilder.password);
gethoteldetails.setLanguage("FR");
gethoteldetails.setIdentification(customeridentification);
HotelCode hotelcode = new HotelCode();
hotelcode.setCode(code);
HotelCodes hotelsCode = new HotelCodes();
hotelsCode.getHotelCode().add(hotelcode);
gethoteldetails.setHotelCodes(hotelsCode);
// hotelcode.setCode("FR000070");
return gethoteldetails;
}
}
package com.fractalite.hermes.teldar.services;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.xml.datatype.DatatypeConfigurationException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fractalite.hermes.teldar.Marshaller.MarshallingJAXB;
import com.fractalite.hermes.teldar.cfg.TeldarRouteBuilder;
import com.fractalite.models.commerce.QuoteTemplate;
import com.fractalite.models.travel.PaxType;
import com.fractalite.models.travel.Traveller;
import com.fractalite.models.travel.stay.HotelStay;
import com.fractalite.models.travel.stay.Occupancy2;
import com.fractalite.models.travel.stay.Room;
import com.gekko_holding.webservice.v2_4.AvailabilityCriteria;
import com.gekko_holding.webservice.v2_4.AvailabilityCriteria.RoomCriterias;
import com.gekko_holding.webservice.v2_4.Child;
import com.gekko_holding.webservice.v2_4.CustomerIdentification;
import com.gekko_holding.webservice.v2_4.DestinationCriteria;
import com.gekko_holding.webservice.v2_4.Facility;
import com.gekko_holding.webservice.v2_4.HotelAvailability;
import com.gekko_holding.webservice.v2_4.HotelCodeDestination;
import com.gekko_holding.webservice.v2_4.RoomPlan;
import com.gekko_holding.webservice.v2_4.RoomPlan.Children;
public class HotelQuotesRequest extends TeldarServices {
protected static Logger logger = LoggerFactory.getLogger(HotelQuotesRequest.class);
@Override
public void process(Exchange exchange)
throws InvalidPayloadException, ParseException, DatatypeConfigurationException {
logger.trace("Invoking TELDARQuote SearchHotelsPriceRequest Processor.......");
QuoteTemplate q = exchange.getIn().getMandatoryBody(QuoteTemplate.class);
// exchange.setProperty("QuoteTemplate", q);
HotelStay hotelstay = q.getTrip().getContent(HotelStay.class).get(0);
exchange.setProperty("hermesquery", q);
HotelAvailability teldarReq = getList(hotelstay);
logger.info("End TELDAR QuoteRequest Processor......." + MarshallingJAXB.printXML(teldarReq));
exchange.getIn().setBody(teldarReq, HotelAvailability.class);
}
public HotelAvailability getList(HotelStay hotelstay) throws ParseException, DatatypeConfigurationException
{
HotelAvailability hotelavailability=new HotelAvailability();
CustomerIdentification customeridentification=new CustomerIdentification();
/*
* customeridentification.setClientId("atlasvoyages_test/xml");
* customeridentification.setPassword("RmsSj7tbKxUu");
*/
customeridentification.setClientId(TeldarRouteBuilder.clientId);
customeridentification.setPassword(TeldarRouteBuilder.password);
AvailabilityCriteria avaCriteria = new AvailabilityCriteria();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd");
hotelavailability.setIdentification(customeridentification);
// GetHotelDetails gethoteldetails=new GetHotelDetails();
DestinationCriteria destinationcriteria=new DestinationCriteria();
// HotelCodeDestination hotelcodedestination=new HotelCodeDestination();
// hotelcodedestination.setCode(hotelstay.getHotel().getAddress().getLocality().getCode());
// destinationcriteria.setHotel(hotelcodedestination);
HotelCodeDestination hotel = new HotelCodeDestination();
hotel.setCode(hotelstay.getHotel().getCode());
/*CityDestination citydestination=new CityDestination();
citydestination.setCode("FRLIO");
// citydestination.setCode("FRUIP");
citydestination.setStandard("locode");
destinationcriteria.setCity(citydestination);*/
destinationcriteria.setHotel(hotel );
avaCriteria.setDestinationCriteria(destinationcriteria);
hotelavailability.setLanguage("EN");
avaCriteria.setCheckIn(hotelstay.getCheckin().toString());
avaCriteria.setCheckOut(hotelstay.getCheckout().toString());
// avaCriteria.setCheckIn("2019-11-07");
//avaCriteria.setCheckOut("2019-11-09");
Facility facility=new Facility();
facility.getCode();
facility.getValue();
/* GeoCodeDestination geocodedestination=new GeoCodeDestination();
geocodedestination.setLatitude(0);
geocodedestination.setLatitude(0);
geocodedestination.setRange(null);
destinationcriteria.setGeoCode(geocodedestination);
PoiDestination poidestination=new PoiDestination();
poidestination.setCode("");
poidestination.setRange(null);
destinationcriteria.setPoi(poidestination);
*/
/*
RoomOffer roomoffers=new RoomOffer();
Iterator<Room> iterator = hotelstay.getRooms().iterator();
while (iterator.hasNext()) {
RoomOffer roomoffer=new RoomOffer();
Room chambre = new Room();
int nbreOfAdult=0;
int nbreOfInfant=0;
List<Integer> age = new ArrayList<Integer>();
chambre = iterator.next();
for(Traveller traveller : chambre.getGuests())
if(traveller.getClassification()==PaxType.ADULT)
nbreOfAdult++;
else if(traveller.getClassification()==PaxType.CHILD) {
age.add(traveller.getAge().intValue());
}
else
nbreOfInfant++;
roomoffer.setRoomIndex(1);
roomoffer.setAdultsCount(nbreOfInfant);
roomoffer.setAdultsCount(nbreOfAdult);
roomoffers.getRoomType();
}*/
RoomCriterias crit = new RoomCriterias();
//Room rooms = new Room();
String roo = "";
for (Room chambre : hotelstay.getRooms()) {
//Log.info("rooooooooommm " +hotelstay.getRooms().size());
Occupancy2 occupancy = new Occupancy2();
RoomPlan roomoffers = new RoomPlan();
int nbreOfAdult = 0;
Children chlidren = new Children();
for (Traveller traveller : chambre.getGuests()) {
if (traveller.getClassification() == PaxType.ADULT)
nbreOfAdult++;
else if (traveller.getClassification() == PaxType.CHILD)
{
Child child=new Child();
child.setAge(traveller.getAge());
chlidren.getChild().add(child);
}
}
occupancy.setAdults(nbreOfAdult);
roomoffers.setRoomType(roo);
roomoffers.setAdultsCount(nbreOfAdult);
roomoffers.setChildren(chlidren);
roomoffers.getRoomType();
crit.getRoomPlan().add(roomoffers);
}
avaCriteria.setRoomCriterias(crit);
/*
* avaCriteria.setRoomCriterias(crit);
* Log.info("tsssscot "+avaCriteria.getRoomCriterias().getRoomPlan().size());
*/
hotelavailability.setAvailCriteria(avaCriteria);
/*
* RoomCriterias roomingList = new RoomCriterias(); RoomPlan roomPlan = new
* RoomPlan(); roomPlan.setAdultsCount(2); roomPlan.setRoomType("DOUB");
* roomingList.getRoomPlan().add(roomPlan );
*
* avaCriteria.setRoomCriterias(roomingList);
* hotelavailability.setLanguage("EN");
* hotelavailability.setAvailCriteria(avaCriteria);
*/
return hotelavailability;
// roomPlan.setAdultsCount(hotelstay.getTravellers().get(0).getClassification().equals(PaxType.ADULT));
/*
* Children children = new Children(); Child child = new Child();
* child.setAge(5); children.getChild().add(child);
* roomPlan.setChildren(children );
*/
/*
Children children = new Children();
Child child = new Child();
child.setAge(5);
children.getChild().add(child);
Child child2 = new Child();
child2.setAge(1);
children.getChild().add(child2);
roomPlan.setChildren(children );*/
}
}
\ No newline at end of file
package com.fractalite.hermes.teldar.services;
import java.text.SimpleDateFormat;
import javax.xml.datatype.DatatypeConfigurationException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fractalite.hermes.teldar.cfg.TeldarRouteBuilder;
import com.fractalite.hermes.teldar.tools.ObjectToXml;
import com.fractalite.models.commerce.Order;
import com.fractalite.models.travel.stay.HotelStay;
import com.fractalite.models.travel.stay.StayItem2;
import com.gekko_holding.webservice.v2_4.CustomerIdentification;
import com.gekko_holding.webservice.v2_4.GetPreBookingInfo;
import com.gekko_holding.webservice.v2_4.HotelCode;
import com.gekko_holding.webservice.v2_4.SearchCriteria;
public class PreBookingTeldarRequest extends TeldarServices{
protected static Logger logger = LoggerFactory.getLogger(PreBookingTeldarRequest.class);
@Override
public void process(Exchange exchange) throws InvalidPayloadException, DatatypeConfigurationException {
logger.info("Invoking TELDAR PreBookingTeldarRequest Processor.......");
Order order = exchange.getIn().getMandatoryBody(Order.class);
exchange.setProperty("hermesorder", order);
logger.info("Order is " + ObjectToXml.printXML(order));
GetPreBookingInfo prebook = addBooking(order);
logger.info("End TELDAR PreBookingTeldarRequest Processor....... \n" + ObjectToXml.printXML(prebook));
exchange.getIn().setBody(prebook, GetPreBookingInfo.class);
}
public GetPreBookingInfo addBooking(Order order) throws DatatypeConfigurationException {
GetPreBookingInfo bookinginfo = new GetPreBookingInfo();
CustomerIdentification customeridentification = new CustomerIdentification();
customeridentification.setClientId(TeldarRouteBuilder.clientId);
customeridentification.setPassword(TeldarRouteBuilder.password);
bookinginfo.setLanguage("EN");
bookinginfo.setIdentification(customeridentification);
SearchCriteria searchcriteria = new SearchCriteria();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd");
HotelStay hotelstay = ((HotelStay) order.getTrip().getContent().get(0));
HotelCode hotelcode = new HotelCode();
hotelcode.setCode(hotelstay.getHotel().getCode());
searchcriteria.setHotelCode(hotelcode);
logger.info("codeeeee"+hotelcode);
searchcriteria.setStartDate(hotelstay.getCheckin().toString());
searchcriteria.setEndDate(hotelstay.getCheckout().toString());
bookinginfo.setSearchCriteria(searchcriteria);
searchcriteria.setOfferCode(order.getPricing().getItems(StayItem2.class).get(0).getProduct().getCode());
logger.info("CodeCriteria" + order.getPricing().getItems(StayItem2.class).get(0).getProduct().getCode());
return bookinginfo;
}
}
\ No newline at end of file
package com.fractalite.hermes.teldar.tools;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.fractalite.models.travel.stay.Hotel;
@XmlRootElement
@XmlType(name = "hotels", propOrder = {
"hotel"
})
public class Hotels {
List<Hotel> hotel = new ArrayList<Hotel>();
public List<Hotel> getHotel() {
return hotel;
}
public void setHotel(List<Hotel> hotel) {
this.hotel = hotel;
}
public void addHotel(Hotel hotel) {
this.hotel.add(hotel);
}
public int size() {
// TODO Auto-generated method stub
return this.hotel.size();
}
}
package com.fractalite.hermes.teldar.tools;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Random;
/**
* Code to generate page ids.
* IdGenerators are expensive to setup so it is suggested that you share
* instances wherever possible. This action will also enhance security.
* Much of this code is adapted from org.apache.catalina.session.ManagerBase.
* Specifically Revision 1.37 which has been unchanged in the past 18 months.
* I have taken out the /dev/urandom stuff and simplified things to the point
* where we can audit it to work out what might be broken.
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public class IdGenerator
{
/**
* Seed the random number
*/
public IdGenerator()
{
// Start with the current system time as a seed
long seed = System.currentTimeMillis();
// Also throw in the system identifier for 'this' from toString
char[] entropy = toString().toCharArray();
for (int i = 0; i < entropy.length; i++)
{
//noinspection IntegerMultiplicationImplicitCastToLong
long update = ((byte) entropy[i]) << ((i % 8) * 8);
seed ^= update;
}
random.setSeed(seed);
}
/**
* Generate and return a new session identifier.
* @param length The number of bytes to generate
* @return A new page id string
*/
public synchronized String generateId(int length)
{
byte[] buffer = new byte[length];
// Render the result as a String of hexadecimal digits
StringBuffer reply = new StringBuffer();
int resultLenBytes = 0;
while (resultLenBytes < length)
{
random.nextBytes(buffer);
buffer = getDigest().digest(buffer);
for (int j = 0; j < buffer.length && resultLenBytes < length; j++)
{
byte b1 = (byte) ((buffer[j] & 0xf0) >> 4);
if (b1 < 10)
{
reply.append((char) ('0' + b1));
}
else
{
reply.append((char) ('A' + (b1 - 10)));
}
byte b2 = (byte) (buffer[j] & 0x0f);
if (b2 < 10)
{
reply.append((char) ('0' + b2));
}
else
{
reply.append((char) ('A' + (b2 - 10)));
}
resultLenBytes++;
}
}
return reply.toString();
}
/**
* @return the algorithm
*/
public synchronized String getAlgorithm()
{
return algorithm;
}
/**
* @param algorithm the algorithm to set
*/
public synchronized void setAlgorithm(String algorithm)
{
this.algorithm = algorithm;
digest = null;
}
/**
* Return the MessageDigest object to be used for calculating
* session identifiers. If none has been created yet, initialize
* one the first time this method is called.
* @return The hashing algorithm
*/
private MessageDigest getDigest()
{
if (digest == null)
{
try
{
digest = MessageDigest.getInstance(algorithm);
}
catch (NoSuchAlgorithmException ex)
{
try
{
digest = MessageDigest.getInstance(DEFAULT_ALGORITHM);
}
catch (NoSuchAlgorithmException ex2)
{
digest = null;
throw new IllegalStateException("No algorithms for IdGenerator");
}
}
System.out.println("Using MessageDigest: " + digest.getAlgorithm());
}
return digest;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@SuppressWarnings({"EmptyMethod"})
@Override
public final String toString()
{
// This is to make the point that we need toString to return something
// that includes some sort of system identifier as does the default.
// Don't change this unless you really know what you are doing.
return super.toString();
}
/**
* The default message digest algorithm to use if we cannot use
* the requested one.
*/
protected static final String DEFAULT_ALGORITHM = "MD5";
/**
* The message digest algorithm to be used when generating session
* identifiers. This must be an algorithm supported by the
* <code>java.security.MessageDigest</code> class on your platform.
*/
private String algorithm = DEFAULT_ALGORITHM;
/**
* A random number generator to use when generating session identifiers.
*/
private Random random = new SecureRandom();
/**
* Return the MessageDigest implementation to be used when creating session
* identifiers.
*/
private MessageDigest digest = null;
}
package com.fractalite.hermes.teldar.tools;
import java.io.ByteArrayOutputStream;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
public class ObjectToXml {
public static String printXML(final Object object) {
ByteArrayOutputStream s = new ByteArrayOutputStream();
JAXBContext jc;
try {
jc = JAXBContext.newInstance(object.getClass());
Marshaller marshaller = jc.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(object, s);
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return s.toString();
}
}
package com.fractalite.hermes.teldar.tools;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
public class ReadWriteTextFile {
/**
* Fetch the entire contents of a text file, and return it in a String.
* This style of implementation does not throw Exceptions to the caller.
*
* @param aFile is a file which already exists and can be read.
* @throws IOException
*/
static public String getContents(File file) throws IOException {
StringBuilder contents = new StringBuilder();
try {
//use buffering, reading one line at a time
//FileReader always assumes default encoding is OK!
BufferedReader input = new BufferedReader(new FileReader(file));
try {
String line = null; //not declared within while loop
/*
* readLine is a bit quirky :
* it returns the content of a line MINUS the newline.
* it returns null only for the END of the stream.
* it returns an empty String if two newlines appear in a row.
*/
while (( line = input.readLine()) != null){
contents.append(line);
contents.append(System.getProperty("line.separator"));
}
}
finally {
input.close();
}
}
catch (IOException ex){
ex.printStackTrace();
}
return contents.toString();
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for acceptedCreditCardBean complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="acceptedCreditCardBean">
* &lt;simpleContent>
* &lt;extension base="&lt;http://webservice.gekko-holding.com/v2_4>entityBean">
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "acceptedCreditCardBean")
public class AcceptedCreditCardBean
extends EntityBean
{
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for availabilityResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="availabilityResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="event" type="{http://webservice.gekko-holding.com/v2_4}conferenceBean" minOccurs="0"/>
* &lt;element name="hotelResponse" type="{http://webservice.gekko-holding.com/v2_4}hotelResponse" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "availabilityResponse", propOrder = {
"event",
"hotelResponse"
})
public class AvailabilityResponse {
protected ConferenceBean event;
protected List<HotelResponse> hotelResponse;
/**
* Gets the value of the event property.
*
* @return
* possible object is
* {@link ConferenceBean }
*
*/
public ConferenceBean getEvent() {
return event;
}
/**
* Sets the value of the event property.
*
* @param value
* allowed object is
* {@link ConferenceBean }
*
*/
public void setEvent(ConferenceBean value) {
this.event = value;
}
/**
* Gets the value of the hotelResponse property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the hotelResponse property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getHotelResponse().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link HotelResponse }
*
*
*/
public List<HotelResponse> getHotelResponse() {
if (hotelResponse == null) {
hotelResponse = new ArrayList<HotelResponse>();
}
return this.hotelResponse;
}
}
package com.gekko_holding.webservice.referential;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 2.4.3
* 2019-04-05T11:53:44.680+01:00
* Generated source version: 2.4.3
*
*/
@WebServiceClient(name = "AvailabilityService",
wsdlLocation = "file:/home/dev/eclipse-workspace/fractaliute/Accor-hotels-master-e63c6ce4b949aa7f9d2a957e7c4521598069ca66/Accor-hotels/src/main/resources/wsdl/Availability.wsdl",
targetNamespace = "http://webservice.gekko-holding.com/v2_4")
public class AvailabilityService extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://webservice.gekko-holding.com/v2_4", "AvailabilityService");
public final static QName AvailabilityServicePort = new QName("http://webservice.gekko-holding.com/v2_4", "AvailabilityServicePort");
public final static QName AvailabilityServiceSecurePort = new QName("http://webservice.gekko-holding.com/v2_4", "AvailabilityServiceSecurePort");
static {
URL url = null;
try {
url = new URL("file:/home/dev/eclipse-workspace/fractaliute/Accor-hotels-master-e63c6ce4b949aa7f9d2a957e7c4521598069ca66/Accor-hotels/src/main/resources/wsdl/Availability.wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(AvailabilityService.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "file:/home/dev/eclipse-workspace/fractaliute/Accor-hotels-master-e63c6ce4b949aa7f9d2a957e7c4521598069ca66/Accor-hotels/src/main/resources/wsdl/Availability.wsdl");
}
WSDL_LOCATION = url;
}
public AvailabilityService(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public AvailabilityService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public AvailabilityService() {
super(WSDL_LOCATION, SERVICE);
}
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//compliant code instead.
public AvailabilityService(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//compliant code instead.
public AvailabilityService(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//compliant code instead.
public AvailabilityService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns AvailabilityWS
*/
@WebEndpoint(name = "AvailabilityServicePort")
public AvailabilityWS getAvailabilityServicePort() {
return super.getPort(AvailabilityServicePort, AvailabilityWS.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns AvailabilityWS
*/
@WebEndpoint(name = "AvailabilityServicePort")
public AvailabilityWS getAvailabilityServicePort(WebServiceFeature... features) {
return super.getPort(AvailabilityServicePort, AvailabilityWS.class, features);
}
/**
*
* @return
* returns AvailabilityWS
*/
@WebEndpoint(name = "AvailabilityServiceSecurePort")
public AvailabilityWS getAvailabilityServiceSecurePort() {
return super.getPort(AvailabilityServiceSecurePort, AvailabilityWS.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns AvailabilityWS
*/
@WebEndpoint(name = "AvailabilityServiceSecurePort")
public AvailabilityWS getAvailabilityServiceSecurePort(WebServiceFeature... features) {
return super.getPort(AvailabilityServiceSecurePort, AvailabilityWS.class, features);
}
}
package com.gekko_holding.webservice.referential;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 2.4.3
* 2019-04-05T11:53:44.664+01:00
* Generated source version: 2.4.3
*
*/
@WebService(targetNamespace = "http://webservice.gekko-holding.com/v2_4", name = "AvailabilityWS")
@XmlSeeAlso({ObjectFactory.class})
public interface AvailabilityWS {
@WebMethod
@RequestWrapper(localName = "getHotelDetails", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetHotelDetails")
@ResponseWrapper(localName = "getHotelDetailsResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetHotelDetailsResponse")
@WebResult(name = "hotel", targetNamespace = "")
public java.util.List<com.gekko_holding.webservice.referential.HotelBean> getHotelDetails(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.Identification identification,
@WebParam(name = "cityCodeStandard", targetNamespace = "")
java.lang.String cityCodeStandard,
@WebParam(name = "hotelCodes", targetNamespace = "")
com.gekko_holding.webservice.referential.HotelCodes hotelCodes
) throws ServiceException;
@WebMethod
@RequestWrapper(localName = "getWhiteListHotels", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetWhiteListHotels")
@ResponseWrapper(localName = "getWhiteListHotelsResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetWhiteListHotelsResponse")
@WebResult(name = "hotel", targetNamespace = "")
public java.util.List<com.gekko_holding.webservice.referential.HotelCode> getWhiteListHotels(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification
) throws ServiceException;
@WebMethod
@RequestWrapper(localName = "cancelBookingSegment", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.CancelBookingSegment")
@ResponseWrapper(localName = "cancelBookingSegmentResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.CancelBookingSegmentResponse")
@WebResult(name = "operationStatus", targetNamespace = "")
public java.lang.String cancelBookingSegment(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "segmentId", targetNamespace = "")
java.lang.String segmentId
) throws ServiceException;
@WebMethod
@RequestWrapper(localName = "hotelAvailability", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.HotelAvailability")
@ResponseWrapper(localName = "hotelAvailabilityResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.HotelAvailabilityResponse")
@WebResult(name = "availResponse", targetNamespace = "")
public com.gekko_holding.webservice.referential.AvailabilityResponse hotelAvailability(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "availCriteria", targetNamespace = "")
com.gekko_holding.webservice.referential.AvailabilityCriteria availCriteria
) throws TimeoutException_Exception, ServiceException;
@WebMethod
@RequestWrapper(localName = "getVoucher", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetVoucher")
@ResponseWrapper(localName = "getVoucherResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetVoucherResponse")
@WebResult(name = "voucher", targetNamespace = "")
public java.lang.String getVoucher(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "segmentId", targetNamespace = "")
java.lang.String segmentId,
@WebParam(name = "emailAddress", targetNamespace = "")
java.util.List<java.lang.String> emailAddress
) throws TimeoutException_Exception, ServiceException;
@WebMethod
@RequestWrapper(localName = "getBookingDetails", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetBookingDetails")
@ResponseWrapper(localName = "getBookingDetailsResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetBookingDetailsResponse")
@WebResult(name = "bookingDetails", targetNamespace = "")
public com.gekko_holding.webservice.referential.BookingDetails getBookingDetails(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "bookId", targetNamespace = "")
java.lang.String bookId,
@WebParam(name = "segmentId", targetNamespace = "")
java.lang.String segmentId
) throws ServiceException;
@WebMethod
@RequestWrapper(localName = "getPreBookingInfo", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetPreBookingInfo")
@ResponseWrapper(localName = "getPreBookingInfoResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.GetPreBookingInfoResponse")
@WebResult(name = "preBookingInfo", targetNamespace = "")
public com.gekko_holding.webservice.referential.CancellationPolicyResponse getPreBookingInfo(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "searchCriteria", targetNamespace = "")
com.gekko_holding.webservice.referential.SearchCriteria searchCriteria
) throws TimeoutException_Exception, ServiceException;
@WebMethod
@RequestWrapper(localName = "searchBookingSegments", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.SearchBookingSegments")
@ResponseWrapper(localName = "searchBookingSegmentsResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.SearchBookingSegmentsResponse")
@WebResult(name = "bookings", targetNamespace = "")
public com.gekko_holding.webservice.referential.Bookings searchBookingSegments(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "bookingsCriteria", targetNamespace = "")
com.gekko_holding.webservice.referential.BookingsCriteria bookingsCriteria
) throws ServiceException;
@WebMethod
@RequestWrapper(localName = "bookHotel", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.BookHotel")
@ResponseWrapper(localName = "bookHotelResponse", targetNamespace = "http://webservice.gekko-holding.com/v2_4", className = "com.gekko_holding.webservice.v2_4.BookHotelResponse")
@WebResult(name = "bookResponse", targetNamespace = "")
public com.gekko_holding.webservice.referential.BookResponse bookHotel(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.referential.CustomerIdentification identification,
@WebParam(name = "bookRequest", targetNamespace = "")
com.gekko_holding.webservice.referential.RequestedBookings bookRequest
) throws TimeoutException_Exception, ServiceException;
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for board complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="board">
* &lt;simpleContent>
* &lt;extension base="&lt;http://webservice.gekko-holding.com/v2_4>entityBean">
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "board")
public class Board
extends EntityBean
{
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookHotel complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookHotel">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="identification" type="{http://webservice.gekko-holding.com/v2_4}customerIdentification"/>
* &lt;element name="bookRequest" type="{http://webservice.gekko-holding.com/v2_4}requestedBookings"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookHotel", propOrder = {
"language",
"identification",
"bookRequest"
})
public class BookHotel {
protected String language;
@XmlElement(required = true)
protected CustomerIdentification identification;
@XmlElement(required = true)
protected RequestedBookings bookRequest;
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguage(String value) {
this.language = value;
}
/**
* Gets the value of the identification property.
*
* @return
* possible object is
* {@link CustomerIdentification }
*
*/
public CustomerIdentification getIdentification() {
return identification;
}
/**
* Sets the value of the identification property.
*
* @param value
* allowed object is
* {@link CustomerIdentification }
*
*/
public void setIdentification(CustomerIdentification value) {
this.identification = value;
}
/**
* Gets the value of the bookRequest property.
*
* @return
* possible object is
* {@link RequestedBookings }
*
*/
public RequestedBookings getBookRequest() {
return bookRequest;
}
/**
* Sets the value of the bookRequest property.
*
* @param value
* allowed object is
* {@link RequestedBookings }
*
*/
public void setBookRequest(RequestedBookings value) {
this.bookRequest = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookHotelResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookHotelResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="bookResponse" type="{http://webservice.gekko-holding.com/v2_4}bookResponse" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookHotelResponse", propOrder = {
"bookResponse"
})
public class BookHotelResponse {
protected BookResponse bookResponse;
/**
* Gets the value of the bookResponse property.
*
* @return
* possible object is
* {@link BookResponse }
*
*/
public BookResponse getBookResponse() {
return bookResponse;
}
/**
* Sets the value of the bookResponse property.
*
* @param value
* allowed object is
* {@link BookResponse }
*
*/
public void setBookResponse(BookResponse value) {
this.bookResponse = value;
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="segments" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="segment" type="{http://webservice.gekko-holding.com/v2_4}segment" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;attribute name="bookingId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="rejected" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookResponse", propOrder = {
"segments"
})
public class BookResponse {
protected BookResponse.Segments segments;
@XmlAttribute(name = "bookingId", required = true)
protected String bookingId;
@XmlAttribute(name = "rejected")
protected Boolean rejected;
/**
* Gets the value of the segments property.
*
* @return
* possible object is
* {@link BookResponse.Segments }
*
*/
public BookResponse.Segments getSegments() {
return segments;
}
/**
* Sets the value of the segments property.
*
* @param value
* allowed object is
* {@link BookResponse.Segments }
*
*/
public void setSegments(BookResponse.Segments value) {
this.segments = value;
}
/**
* Gets the value of the bookingId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBookingId() {
return bookingId;
}
/**
* Sets the value of the bookingId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBookingId(String value) {
this.bookingId = value;
}
/**
* Gets the value of the rejected property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isRejected() {
return rejected;
}
/**
* Sets the value of the rejected property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRejected(Boolean value) {
this.rejected = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="segment" type="{http://webservice.gekko-holding.com/v2_4}segment" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"segment"
})
public static class Segments {
protected List<Segment> segment;
/**
* Gets the value of the segment property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the segment property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSegment().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Segment }
*
*
*/
public List<Segment> getSegment() {
if (segment == null) {
segment = new ArrayList<Segment>();
}
return this.segment;
}
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookedOffer complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookedOffer">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="bookedRooms">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="bookedRoom" type="{http://webservice.gekko-holding.com/v2_4}bookedRoom" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookedOffer", propOrder = {
"code",
"bookedRooms"
})
public class BookedOffer {
@XmlElement(required = true)
protected String code;
@XmlElement(required = true)
protected BookedOffer.BookedRooms bookedRooms;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* Gets the value of the bookedRooms property.
*
* @return
* possible object is
* {@link BookedOffer.BookedRooms }
*
*/
public BookedOffer.BookedRooms getBookedRooms() {
return bookedRooms;
}
/**
* Sets the value of the bookedRooms property.
*
* @param value
* allowed object is
* {@link BookedOffer.BookedRooms }
*
*/
public void setBookedRooms(BookedOffer.BookedRooms value) {
this.bookedRooms = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="bookedRoom" type="{http://webservice.gekko-holding.com/v2_4}bookedRoom" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"bookedRoom"
})
public static class BookedRooms {
protected List<BookedRoom> bookedRoom;
/**
* Gets the value of the bookedRoom property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the bookedRoom property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBookedRoom().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BookedRoom }
*
*
*/
public List<BookedRoom> getBookedRoom() {
if (bookedRoom == null) {
bookedRoom = new ArrayList<BookedRoom>();
}
return this.bookedRoom;
}
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookedRoom complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookedRoom">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;choice maxOccurs="unbounded" minOccurs="0">
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}registeredUser"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}pax"/>
* &lt;/choice>
* &lt;/sequence>
* &lt;attribute name="roomIndex" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookedRoom", propOrder = {
"registeredUserOrPax"
})
public class BookedRoom {
@XmlElements({
@XmlElement(name = "registeredUser", namespace = "http://webservice.gekko-holding.com/v2_4", type = RegisteredUser.class),
@XmlElement(name = "pax", namespace = "http://webservice.gekko-holding.com/v2_4", type = Pax.class)
})
protected List<PaxBean> registeredUserOrPax;
@XmlAttribute(name = "roomIndex", required = true)
protected int roomIndex;
/**
* Gets the value of the registeredUserOrPax property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the registeredUserOrPax property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRegisteredUserOrPax().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link RegisteredUser }
* {@link Pax }
*
*
*/
public List<PaxBean> getRegisteredUserOrPax() {
if (registeredUserOrPax == null) {
registeredUserOrPax = new ArrayList<PaxBean>();
}
return this.registeredUserOrPax;
}
/**
* Gets the value of the roomIndex property.
*
*/
public int getRoomIndex() {
return roomIndex;
}
/**
* Sets the value of the roomIndex property.
*
*/
public void setRoomIndex(int value) {
this.roomIndex = value;
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookingDetails complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookingDetails">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="contact" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="creationDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="segments" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;choice maxOccurs="unbounded" minOccurs="0">
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}hotelSegment"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}insuranceSegment"/>
* &lt;/choice>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;attribute name="bookingId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="status" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookingDetails", propOrder = {
"contact",
"creationDate",
"segments"
})
public class BookingDetails {
protected String contact;
@XmlElement(required = true)
protected String creationDate;
protected BookingDetails.Segments segments;
@XmlAttribute(name = "bookingId", required = true)
protected String bookingId;
@XmlAttribute(name = "status", required = true)
protected String status;
/**
* Gets the value of the contact property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContact() {
return contact;
}
/**
* Sets the value of the contact property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContact(String value) {
this.contact = value;
}
/**
* Gets the value of the creationDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCreationDate() {
return creationDate;
}
/**
* Sets the value of the creationDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCreationDate(String value) {
this.creationDate = value;
}
/**
* Gets the value of the segments property.
*
* @return
* possible object is
* {@link BookingDetails.Segments }
*
*/
public BookingDetails.Segments getSegments() {
return segments;
}
/**
* Sets the value of the segments property.
*
* @param value
* allowed object is
* {@link BookingDetails.Segments }
*
*/
public void setSegments(BookingDetails.Segments value) {
this.segments = value;
}
/**
* Gets the value of the bookingId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBookingId() {
return bookingId;
}
/**
* Sets the value of the bookingId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBookingId(String value) {
this.bookingId = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;choice maxOccurs="unbounded" minOccurs="0">
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}hotelSegment"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}insuranceSegment"/>
* &lt;/choice>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"hotelSegmentOrInsuranceSegment"
})
public static class Segments {
@XmlElements({
@XmlElement(name = "hotelSegment", namespace = "http://webservice.gekko-holding.com/v2_4", type = HotelSegmentDetailsBean.class),
@XmlElement(name = "insuranceSegment", namespace = "http://webservice.gekko-holding.com/v2_4", type = InsuranceSegmentDetailsBean.class)
})
protected List<SegmentDetailsBean> hotelSegmentOrInsuranceSegment;
/**
* Gets the value of the hotelSegmentOrInsuranceSegment property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the hotelSegmentOrInsuranceSegment property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getHotelSegmentOrInsuranceSegment().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link HotelSegmentDetailsBean }
* {@link InsuranceSegmentDetailsBean }
*
*
*/
public List<SegmentDetailsBean> getHotelSegmentOrInsuranceSegment() {
if (hotelSegmentOrInsuranceSegment == null) {
hotelSegmentOrInsuranceSegment = new ArrayList<SegmentDetailsBean>();
}
return this.hotelSegmentOrInsuranceSegment;
}
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookingInfoBean complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookingInfoBean">
* &lt;complexContent>
* &lt;extension base="{http://webservice.gekko-holding.com/v2_4}segmentInfoBean">
* &lt;sequence>
* &lt;element name="segments" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="segment" type="{http://webservice.gekko-holding.com/v2_4}segmentInfoBean" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookingInfoBean", propOrder = {
"segments"
})
public class BookingInfoBean
extends SegmentInfoBean
{
protected BookingInfoBean.Segments segments;
/**
* Gets the value of the segments property.
*
* @return
* possible object is
* {@link BookingInfoBean.Segments }
*
*/
public BookingInfoBean.Segments getSegments() {
return segments;
}
/**
* Sets the value of the segments property.
*
* @param value
* allowed object is
* {@link BookingInfoBean.Segments }
*
*/
public void setSegments(BookingInfoBean.Segments value) {
this.segments = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="segment" type="{http://webservice.gekko-holding.com/v2_4}segmentInfoBean" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"segment"
})
public static class Segments {
protected List<SegmentInfoBean> segment;
/**
* Gets the value of the segment property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the segment property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSegment().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SegmentInfoBean }
*
*
*/
public List<SegmentInfoBean> getSegment() {
if (segment == null) {
segment = new ArrayList<SegmentInfoBean>();
}
return this.segment;
}
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookings complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookings">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="booking" type="{http://webservice.gekko-holding.com/v2_4}bookingInfoBean" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookings", propOrder = {
"booking"
})
public class Bookings {
protected List<BookingInfoBean> booking;
/**
* Gets the value of the booking property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the booking property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBooking().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BookingInfoBean }
*
*
*/
public List<BookingInfoBean> getBooking() {
if (booking == null) {
booking = new ArrayList<BookingInfoBean>();
}
return this.booking;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bookingsCriteria complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="bookingsCriteria">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="bookingCreationDate" type="{http://webservice.gekko-holding.com/v2_4}rangeCriteria"/>
* &lt;element name="city" type="{http://webservice.gekko-holding.com/v2_4}cityBean" minOccurs="0"/>
* &lt;element name="country" type="{http://webservice.gekko-holding.com/v2_4}country" minOccurs="0"/>
* &lt;element name="checkInDate" type="{http://webservice.gekko-holding.com/v2_4}rangeCriteria" minOccurs="0"/>
* &lt;element name="paxName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="bookId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bookingsCriteria", propOrder = {
"bookingCreationDate",
"city",
"country",
"checkInDate",
"paxName",
"bookId",
"status"
})
public class BookingsCriteria {
@XmlElement(required = true)
protected RangeCriteria bookingCreationDate;
protected CityBean city;
protected Country country;
protected RangeCriteria checkInDate;
protected String paxName;
protected String bookId;
protected String status;
/**
* Gets the value of the bookingCreationDate property.
*
* @return
* possible object is
* {@link RangeCriteria }
*
*/
public RangeCriteria getBookingCreationDate() {
return bookingCreationDate;
}
/**
* Sets the value of the bookingCreationDate property.
*
* @param value
* allowed object is
* {@link RangeCriteria }
*
*/
public void setBookingCreationDate(RangeCriteria value) {
this.bookingCreationDate = value;
}
/**
* Gets the value of the city property.
*
* @return
* possible object is
* {@link CityBean }
*
*/
public CityBean getCity() {
return city;
}
/**
* Sets the value of the city property.
*
* @param value
* allowed object is
* {@link CityBean }
*
*/
public void setCity(CityBean value) {
this.city = value;
}
/**
* Gets the value of the country property.
*
* @return
* possible object is
* {@link Country }
*
*/
public Country getCountry() {
return country;
}
/**
* Sets the value of the country property.
*
* @param value
* allowed object is
* {@link Country }
*
*/
public void setCountry(Country value) {
this.country = value;
}
/**
* Gets the value of the checkInDate property.
*
* @return
* possible object is
* {@link RangeCriteria }
*
*/
public RangeCriteria getCheckInDate() {
return checkInDate;
}
/**
* Sets the value of the checkInDate property.
*
* @param value
* allowed object is
* {@link RangeCriteria }
*
*/
public void setCheckInDate(RangeCriteria value) {
this.checkInDate = value;
}
/**
* Gets the value of the paxName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPaxName() {
return paxName;
}
/**
* Sets the value of the paxName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPaxName(String value) {
this.paxName = value;
}
/**
* Gets the value of the bookId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBookId() {
return bookId;
}
/**
* Sets the value of the bookId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBookId(String value) {
this.bookId = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cancelBookingSegment complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cancelBookingSegment">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="identification" type="{http://webservice.gekko-holding.com/v2_4}customerIdentification"/>
* &lt;element name="segmentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cancelBookingSegment", propOrder = {
"language",
"identification",
"segmentId"
})
public class CancelBookingSegment {
protected String language;
@XmlElement(required = true)
protected CustomerIdentification identification;
@XmlElement(required = true)
protected String segmentId;
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguage(String value) {
this.language = value;
}
/**
* Gets the value of the identification property.
*
* @return
* possible object is
* {@link CustomerIdentification }
*
*/
public CustomerIdentification getIdentification() {
return identification;
}
/**
* Sets the value of the identification property.
*
* @param value
* allowed object is
* {@link CustomerIdentification }
*
*/
public void setIdentification(CustomerIdentification value) {
this.identification = value;
}
/**
* Gets the value of the segmentId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSegmentId() {
return segmentId;
}
/**
* Sets the value of the segmentId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSegmentId(String value) {
this.segmentId = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cancelBookingSegmentResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cancelBookingSegmentResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="operationStatus" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cancelBookingSegmentResponse", propOrder = {
"operationStatus"
})
public class CancelBookingSegmentResponse {
protected String operationStatus;
/**
* Gets the value of the operationStatus property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOperationStatus() {
return operationStatus;
}
/**
* Sets the value of the operationStatus property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOperationStatus(String value) {
this.operationStatus = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cancellationFeesPolicy complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cancellationFeesPolicy">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="fromDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="toDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="currency" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;attribute name="allDates" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* &lt;attribute name="roomIndex" type="{http://www.w3.org/2001/XMLSchema}int" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cancellationFeesPolicy", propOrder = {
"fromDate",
"toDate",
"price",
"currency"
})
public class CancellationFeesPolicy {
protected String fromDate;
protected String toDate;
@XmlElement(required = true)
protected String price;
@XmlElement(required = true)
protected String currency;
@XmlAttribute(name = "allDates")
protected Boolean allDates;
@XmlAttribute(name = "roomIndex")
protected Integer roomIndex;
/**
* Gets the value of the fromDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFromDate() {
return fromDate;
}
/**
* Sets the value of the fromDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFromDate(String value) {
this.fromDate = value;
}
/**
* Gets the value of the toDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToDate() {
return toDate;
}
/**
* Sets the value of the toDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToDate(String value) {
this.toDate = value;
}
/**
* Gets the value of the price property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrice() {
return price;
}
/**
* Sets the value of the price property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPrice(String value) {
this.price = value;
}
/**
* Gets the value of the currency property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCurrency() {
return currency;
}
/**
* Sets the value of the currency property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCurrency(String value) {
this.currency = value;
}
/**
* Gets the value of the allDates property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isAllDates() {
return allDates;
}
/**
* Sets the value of the allDates property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAllDates(Boolean value) {
this.allDates = value;
}
/**
* Gets the value of the roomIndex property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getRoomIndex() {
return roomIndex;
}
/**
* Sets the value of the roomIndex property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setRoomIndex(Integer value) {
this.roomIndex = value;
}
}
package com.gekko_holding.webservice.referential;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cancellationPolicyResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cancellationPolicyResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="cancellationFeesPolicy" type="{http://webservice.gekko-holding.com/v2_4}cancellationFeesPolicy" maxOccurs="unbounded" minOccurs="0"/>
* &lt;element name="voucherObservation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="offerCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="offerPrice" type="{http://webservice.gekko-holding.com/v2_4}offerPrice"/>
* &lt;element name="acceptedCreditCards" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="creditCardType" type="{http://webservice.gekko-holding.com/v2_4}acceptedCreditCardBean" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cancellationPolicyResponse", propOrder = {
"cancellationFeesPolicy",
"voucherObservation",
"offerCode",
"offerPrice",
"acceptedCreditCards"
})
public class CancellationPolicyResponse {
@XmlElement(nillable = true)
protected List<CancellationFeesPolicy> cancellationFeesPolicy;
protected String voucherObservation;
@XmlElement(required = true)
protected String offerCode;
@XmlElement(required = true)
protected OfferPrice offerPrice;
protected CancellationPolicyResponse.AcceptedCreditCards acceptedCreditCards;
/**
* Gets the value of the cancellationFeesPolicy property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the cancellationFeesPolicy property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCancellationFeesPolicy().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CancellationFeesPolicy }
*
*
*/
public List<CancellationFeesPolicy> getCancellationFeesPolicy() {
if (cancellationFeesPolicy == null) {
cancellationFeesPolicy = new ArrayList<CancellationFeesPolicy>();
}
return this.cancellationFeesPolicy;
}
/**
* Gets the value of the voucherObservation property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVoucherObservation() {
return voucherObservation;
}
/**
* Sets the value of the voucherObservation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVoucherObservation(String value) {
this.voucherObservation = value;
}
/**
* Gets the value of the offerCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOfferCode() {
return offerCode;
}
/**
* Sets the value of the offerCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOfferCode(String value) {
this.offerCode = value;
}
/**
* Gets the value of the offerPrice property.
*
* @return
* possible object is
* {@link OfferPrice }
*
*/
public OfferPrice getOfferPrice() {
return offerPrice;
}
/**
* Sets the value of the offerPrice property.
*
* @param value
* allowed object is
* {@link OfferPrice }
*
*/
public void setOfferPrice(OfferPrice value) {
this.offerPrice = value;
}
/**
* Gets the value of the acceptedCreditCards property.
*
* @return
* possible object is
* {@link CancellationPolicyResponse.AcceptedCreditCards }
*
*/
public CancellationPolicyResponse.AcceptedCreditCards getAcceptedCreditCards() {
return acceptedCreditCards;
}
/**
* Sets the value of the acceptedCreditCards property.
*
* @param value
* allowed object is
* {@link CancellationPolicyResponse.AcceptedCreditCards }
*
*/
public void setAcceptedCreditCards(CancellationPolicyResponse.AcceptedCreditCards value) {
this.acceptedCreditCards = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="creditCardType" type="{http://webservice.gekko-holding.com/v2_4}acceptedCreditCardBean" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"creditCardType"
})
public static class AcceptedCreditCards {
protected List<AcceptedCreditCardBean> creditCardType;
/**
* Gets the value of the creditCardType property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the creditCardType property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCreditCardType().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AcceptedCreditCardBean }
*
*
*/
public List<AcceptedCreditCardBean> getCreditCardType() {
if (creditCardType == null) {
creditCardType = new ArrayList<AcceptedCreditCardBean>();
}
return this.creditCardType;
}
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for child complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="child">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;/sequence>
* &lt;attribute name="age" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "child")
public class Child {
@XmlAttribute(name = "age", required = true)
protected int age;
/**
* Gets the value of the age property.
*
*/
public int getAge() {
return age;
}
/**
* Sets the value of the age property.
*
*/
public void setAge(int value) {
this.age = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cityBean complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cityBean">
* &lt;simpleContent>
* &lt;extension base="&lt;http://webservice.gekko-holding.com/v2_4>entityBean">
* &lt;attribute name="standard" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cityBean")
public class CityBean
extends EntityBean
{
@XmlAttribute(name = "standard", required = true)
protected String standard;
/**
* Gets the value of the standard property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStandard() {
return standard;
}
/**
* Sets the value of the standard property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandard(String value) {
this.standard = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>Java class for cityCode complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cityCode">
* &lt;simpleContent>
* &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
* &lt;attribute name="standard" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cityCode", propOrder = {
"value"
})
public class CityCode {
@XmlValue
protected String value;
@XmlAttribute(name = "standard", required = true)
protected String standard;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the standard property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStandard() {
return standard;
}
/**
* Sets the value of the standard property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandard(String value) {
this.standard = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cityDestination complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="cityDestination">
* &lt;complexContent>
* &lt;extension base="{http://webservice.gekko-holding.com/v2_4}destination">
* &lt;sequence>
* &lt;/sequence>
* &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="standard" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="range" type="{http://www.w3.org/2001/XMLSchema}double" />
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cityDestination")
public class CityDestination
extends Destination
{
@XmlAttribute(name = "code", required = true)
protected String code;
@XmlAttribute(name = "standard", required = true)
protected String standard;
@XmlAttribute(name = "range")
protected Double range;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* Gets the value of the standard property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStandard() {
return standard;
}
/**
* Sets the value of the standard property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandard(String value) {
this.standard = value;
}
/**
* Gets the value of the range property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getRange() {
return range;
}
/**
* Sets the value of the range property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setRange(Double value) {
this.range = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for conferenceBean complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="conferenceBean">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;/sequence>
* &lt;attribute name="hasEvent" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "conferenceBean")
public class ConferenceBean {
@XmlAttribute(name = "hasEvent", required = true)
protected boolean hasEvent;
/**
* Gets the value of the hasEvent property.
*
*/
public boolean isHasEvent() {
return hasEvent;
}
/**
* Sets the value of the hasEvent property.
*
*/
public void setHasEvent(boolean value) {
this.hasEvent = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for country complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="country">
* &lt;simpleContent>
* &lt;extension base="&lt;http://webservice.gekko-holding.com/v2_4>entityBean">
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "country")
public class Country
extends EntityBean
{
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for creditCardInformation complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="creditCardInformation">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="cardHolder" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="cardNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="cvc" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="expiryDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "creditCardInformation", propOrder = {
"cardHolder",
"cardNumber",
"cvc",
"expiryDate"
})
public class CreditCardInformation {
@XmlElement(required = true)
protected String cardHolder;
@XmlElement(required = true)
protected String cardNumber;
@XmlElement(required = true)
protected String cvc;
@XmlElement(required = true)
protected String expiryDate;
/**
* Gets the value of the cardHolder property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCardHolder() {
return cardHolder;
}
/**
* Sets the value of the cardHolder property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCardHolder(String value) {
this.cardHolder = value;
}
/**
* Gets the value of the cardNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCardNumber() {
return cardNumber;
}
/**
* Sets the value of the cardNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCardNumber(String value) {
this.cardNumber = value;
}
/**
* Gets the value of the cvc property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCvc() {
return cvc;
}
/**
* Sets the value of the cvc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCvc(String value) {
this.cvc = value;
}
/**
* Gets the value of the expiryDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExpiryDate() {
return expiryDate;
}
/**
* Sets the value of the expiryDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExpiryDate(String value) {
this.expiryDate = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for customerIdentification complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="customerIdentification">
* &lt;complexContent>
* &lt;extension base="{http://webservice.gekko-holding.com/v2_4}identification">
* &lt;sequence>
* &lt;/sequence>
* &lt;attribute name="customerKey" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "customerIdentification")
public class CustomerIdentification
extends Identification
{
@XmlAttribute(name = "customerKey", required = true)
protected String customerKey;
/**
* Gets the value of the customerKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCustomerKey() {
return customerKey;
}
/**
* Sets the value of the customerKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCustomerKey(String value) {
this.customerKey = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>Java class for description complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="description">
* &lt;simpleContent>
* &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
* &lt;attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "description", propOrder = {
"value"
})
public class Description {
@XmlValue
protected String value;
@XmlAttribute(name = "type", required = true)
protected String type;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for destination complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="destination">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "destination")
@XmlSeeAlso({
CityDestination.class,
PoiDestination.class,
HotelCodeDestination.class,
GeoCodeDestination.class,
HotelCodeListDestination.class
})
public abstract class Destination {
}
package com.gekko_holding.webservice.referential;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for destinationCriteria complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="destinationCriteria">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;choice>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}city"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}poi"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}geoCode"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}hotel"/>
* &lt;element ref="{http://webservice.gekko-holding.com/v2_4}hotels"/>
* &lt;/choice>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "destinationCriteria", propOrder = {
"city",
"poi",
"geoCode",
"hotel",
"hotels"
})
public class DestinationCriteria {
@XmlElement(namespace = "http://webservice.gekko-holding.com/v2_4")
protected CityDestination city;
@XmlElement(namespace = "http://webservice.gekko-holding.com/v2_4")
protected PoiDestination poi;
@XmlElement(namespace = "http://webservice.gekko-holding.com/v2_4")
protected GeoCodeDestination geoCode;
@XmlElement(namespace = "http://webservice.gekko-holding.com/v2_4")
protected HotelCodeDestination hotel;
@XmlElement(namespace = "http://webservice.gekko-holding.com/v2_4")
protected HotelCodeListDestination hotels;
/**
* Gets the value of the city property.
*
* @return
* possible object is
* {@link CityDestination }
*
*/
public CityDestination getCity() {
return city;
}
/**
* Sets the value of the city property.
*
* @param value
* allowed object is
* {@link CityDestination }
*
*/
public void setCity(CityDestination value) {
this.city = value;
}
/**
* Gets the value of the poi property.
*
* @return
* possible object is
* {@link PoiDestination }
*
*/
public PoiDestination getPoi() {
return poi;
}
/**
* Sets the value of the poi property.
*
* @param value
* allowed object is
* {@link PoiDestination }
*
*/
public void setPoi(PoiDestination value) {
this.poi = value;
}
/**
* Gets the value of the geoCode property.
*
* @return
* possible object is
* {@link GeoCodeDestination }
*
*/
public GeoCodeDestination getGeoCode() {
return geoCode;
}
/**
* Sets the value of the geoCode property.
*
* @param value
* allowed object is
* {@link GeoCodeDestination }
*
*/
public void setGeoCode(GeoCodeDestination value) {
this.geoCode = value;
}
/**
* Gets the value of the hotel property.
*
* @return
* possible object is
* {@link HotelCodeDestination }
*
*/
public HotelCodeDestination getHotel() {
return hotel;
}
/**
* Sets the value of the hotel property.
*
* @param value
* allowed object is
* {@link HotelCodeDestination }
*
*/
public void setHotel(HotelCodeDestination value) {
this.hotel = value;
}
/**
* Gets the value of the hotels property.
*
* @return
* possible object is
* {@link HotelCodeListDestination }
*
*/
public HotelCodeListDestination getHotels() {
return hotels;
}
/**
* Sets the value of the hotels property.
*
* @param value
* allowed object is
* {@link HotelCodeListDestination }
*
*/
public void setHotels(HotelCodeListDestination value) {
this.hotels = value;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment