Commit a277cd81 by ED-DRIF

AvailabilityTeld Main

parents
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/home/dev/.p2/pool/plugins/org.apache.axis_1.4.0.v201411182030/lib/axis.jar"/>
<classpathentry kind="lib" path="/home/dev/.p2/pool/plugins/org.apache.commons.discovery_0.2.0.v201004190315/lib/commons-discovery-0.2.jar"/>
<classpathentry kind="lib" path="/home/dev/.p2/pool/plugins/javax.xml.rpc_1.1.0.v201209140446/lib/jaxrpc.jar"/>
<classpathentry kind="lib" path="/home/dev/.p2/pool/plugins/javax.xml.soap_1.2.0.v201005080501/lib/saaj.jar"/>
<classpathentry kind="lib" path="/home/dev/.p2/pool/plugins/javax.wsdl_1.6.2.v201012040545.jar"/>
<classpathentry kind="lib" path="/home/dev/.p2/pool/plugins/org.apache.commons.logging_1.2.0.v20180409-1502.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tldd-hotels</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.6
eclipse.preferences.version=1
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
eclipse.preferences.version=1
org.eclipse.wst.ws.service.policy.projectEnabled=false
package com.fractalite.hermes.teldar.Marshaller;
import org.apache.camel.Exchange;
import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.w3c.dom.Document;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Marshaller;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.soap.*;
import java.io.ByteArrayOutputStream;
@Component
public class MarshallingJAXB {
private static final Logger logger = LoggerFactory.getLogger(MarshallingJAXB.class);
public MarshallingJAXB() {
}
public static String printXML(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
String serverURI = "http://webservice.gekko-holding.com/v2_4";
envelope.addNamespaceDeclaration("ns2", serverURI);
//SOAPBody
soapMessage.getSOAPBody().addDocument(document);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
soapMessage.writeTo(outputStream);
output = new String(outputStream.toByteArray());
return output;
} catch (Exception e) {
logger.info(e.toString());
}
return null;
}
public void marshallObject(Exchange exchange) throws Exception{
Object objectToMarshall= exchange.getIn().getBody();
String output = printXML(objectToMarshall);
exchange.getIn().setBody(output, String.class);
}
}
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 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;
@Component
public class UnmarshallingJAXB {
private static final Logger logger = LoggerFactory.getLogger(UnmarshallingJAXB.class);
public static <T> T printObject(Class<T> objectClass, String xml) {
T rslt = null;
SOAPMessage message = null;
JAXBContext jaxbContext = null;
Unmarshaller unmarshaller = null;
try {
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())) {
rslt = (T) unmarshaller.unmarshal(message.getSOAPBody().extractContentAsDocument());
} else {
logger.error("Error in printObject function to set result");
// throw new RuntimeException();
}
return rslt;
} catch (Exception exception) {
logger.error("Exception in printObject function" + exception.getMessage());
}
return null;
}
/* Availability Response Unmashaller. */
public static AvailabilityResponse fromHotelAvailabilityResponse(String exchangeBody) {
AvailabilityResponse unmarshalledObject = printObject(AvailabilityResponse.class, exchangeBody);
return unmarshalledObject;
}
/* public static GetHotelDetailsResponse fromGetHotelDetailsResponse(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) {
GetPreBookingInfoResponse unmarshalledObject = printObject(GetPreBookingInfoResponse.class, exchangeBody);
return unmarshalledObject;
}
public static BookHotelResponse fromBookHotelResponse(String exchangeBody) {
BookHotelResponse unmarshalledObject=printObject(BookHotelResponse.class, exchangeBody);
return unmarshalledObject;
}
public static CancelBookingSegmentResponse fromBookingCancellation(String exchangeBody) {
CancelBookingSegmentResponse unmarshalledObject=printObject(CancelBookingSegmentResponse.class, exchangeBody);
return unmarshalledObject;*/
// }
}
package com.fractalite.hermes.teldar.cfg;
import com.fractalite.hermes.services.stay.ContentProviderDescriptor;
/**
* TELDAR Content Provider Descriptor.
* Supported Operations (Endpoints)
* <ul>
* <li>Hotel Search</li>
* <li>Hotel Quotes</li>
* <li>Order</li>
* <li>Property Description</li>
* </ul>
* Unsupported Operations
* <ul>
* <li>PreOrder</li>
* <li>Cancel PreOrder</li>
* </ul>
*
*/
public class ContentProvider implements ContentProviderDescriptor {
public static final String PROVIDER_ID = "teldar";
@Override
public String getId() {
return PROVIDER_ID;
}
@Override
public String getQuoteSearchEndpoint() {
return "nmr:" + TeldarRouteBuilder.EP_SEARCH;
}
@Override
public String getPropertyQuoteEndpoint() {
return "nmr:" + TeldarRouteBuilder.EP_HOTEL_QUOTES;
}
@Override
public String getPropertyDescriptionEndpoint() {
return "nmr:" + TeldarRouteBuilder.EP_HOTEL_INFO;
}
@Override
public String getCancellationPolicy() {
return "nmr:" + TeldarRouteBuilder.EP_HOTEL_QUOTE_CANCELLATION_POLICY;
}
@Override
public String getPreOrderEndpoint() {
return "nmr:" + TeldarRouteBuilder.EP_ORDER;
}
@Override
public String getOrderEndpoint() {
return "nmr:" + TeldarRouteBuilder.EP_GET_ORDER;
}
@Override
public String getConfirmOrderEndpoint() {
return "nmr:" + TeldarRouteBuilder.EP_BOOKING_CONFIRMATION;
}
@Override
public String getModifyOrderEndpoint() {
return null;
}
@Override
public String getChargeConditionsEndpoint() {
return null;
}
@Override
public String getCancelPreOrderEndpoint() {
return null;
}
@Override
public String getCreateOrderEndpoint() {
return null;
}
@Override
public String getCancelOrderEndpoint() {
//
return "nmr:" + TeldarRouteBuilder.EP_CANCEL_ORDER;
}
@Override
public String getCancellationQuoteEndpoint() {
// TODO Auto-generated method stub
return "nmr:" + TeldarRouteBuilder.EP_CANCELLATION_FEES;
}
}
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());
}
}
}
package com.fractalite.hermes.teldar.parsers;
public enum Facility {
SVGEKO_1("acces internet"),
SVGEKKO_2("Parking"),
SVGEKKO_3("Court de tennis"),
SVGEKKO_4("Etablissement adapté pour handicapés"),
SVGEKKO_5("Business center"),
SVGEKKO_6("Animaux domestiques admis"),
SVGEKKO_7("Piscine"),
SVGEKKO_8("Spa / Estétique"),
SVGEKKO_9("Salles de réunion / conférence"),
SVGEKKO_10("climatisation"),
SVGEKKO_11("Golf"),
SVGEKKO_12("Restaurant"),
SVGEKKO_13("Baby sitting / garde d'enfants"),
SVGEKKO_14("Salle de sport / gym"),
SVGEKKO_15("Casino"),
SVGEKKO_16("Club enfants"),
SVGEKKO_17("Accès à la plage"),
SVGEKKO_18("canapé clic-clac"),
SVGEKKO_19("machine à laver"),
SVGEKKO_20("réfrigérateur"),
SVGEKKO_21("sèche-linge"),
SVGEKKO_22("Séjour /salon"),
SVGEKKO_23("fer à repasser"),
SVGEKKO_24("changement du linge"),
SVGEKKO_25("terrasse/balcon"),
SVGEKKO_26("salle à manger"),
SVGEKKO_27("menage hebdomadaire"),
SVGEKKO_28("kitchenette"),
SVGEKKO_29("cuisine"),
SVGEKKO_31("équipement de la cuisine"),
SVGEKKO_32("Four /micro-ondes"),
SVGEKKO_33("télévision"),
SVGEKKO_34("duplex"),
SVGEKKO_35("barbecue"),
SVGEKKO_36("chaise-longue"),
SVGEKKO_37("lave-vaisselle"),
SVGEKKO_38("vaisselle/couverts"),
SVGEKKO_39("cuisinière"),
SVGEKKO_40("congélateur"),
SVGEKKO_42("draps fournis"),
SVGEKKO_43("loft"),
SVGEKKO_53("chaine TV payante"),
SVGEKKO_54("presse"),
SVGEKKO_55("salon de coiffure"),
SVGEKKO_56("salle de jeux"),
SVGEKKO_58("Room Service"),
SVGEKKO_59("consigne"),
SVGEKKO_61("blanchisserie"),
SVGEKKO_62("mini-bar"),
SVGEKKO_63("presse à pantalons"),
SVGEKKO_65("discothèque"),
SVGEKKO_66("jardin<"),
SVGEKKO_67("coffre-fort dans la chambre"),
SVGEKKO_68("service transfert"),
SVGEKKO_70("Valet Parking"),
SVGEKKO_71("bar"),
SVGEKKO_73("navette gratuite vers la ville"),
SVGEKKO_74("Dvd / Vidéo"),
SVGEKKO_76("location de vélos"),
SVGEKKO_77("equitation"),
SVGEKKO_80("non-fumeur"),
SVGEKKO_81("plongée"),
SVGEKKO_82("voile"),
SVGEKKO_83("jet ski"),
SVGEKKO_85("sports nautiques à proximité"),
SVGEKKO_86("Animation"),
SVGEKKO_87("Ascenseur"),
SVGEKKO_88("Boutique"),
SVGEKKO_89("Change de devises"),
SVGEKKO_90("Location de voiture"),
SVGEKKO_91("Service fax"),
SVGEKKO_92("Service réveil"),
SVGEKKO_93("Service taxis"),
SVGEKKO_97("Aire de jeux pour enfants"),
SVGEKKO_98("Bagagiste"),
SVGEKKO_99("Service de restauration"),
SVGEKKO_100("Bibliothèque"),
SVGEKKO_101("Enfants non admis"),
SVGEKKO_102("sèche-cheveux"),
SVGEKKO_103("distributeur automatique"),
SVGEKKO_104("Accueil 24h/24"),
SVGEKKO_105("cafetière/ bouilloire en chambre"),
SVGEKKO_106("jacuzzi / bain à remous"),
SVGEKKO_107("coffre"),
SVGEKKO_108("Cheminée"),
SVGEKKO_109("club ados"),
SVGEKKO_110("club bébés"),
SVGEKKO_111("chaise pour enfants"),
SVGEKKO_112("douche"),
SVGEKKO_113("télévision écran plat"),
SVGEKKO_114("berceau disponible"),
SVGEKKO_115("concierge"),
SVGEKKO_116("Chambre fumeurs"),
SVGEKKO_117("photocopieur"),
SVGEKKO_118("lecteur cd"),
SVGEKKO_119("Gardien 24h/24 à l’entrée de la résidence"),
SVGEKKO_120("Kiosque à journaux/cadeaux"),
SVGEKKO_121("Hôtel non fumeur"),
SVGEKKO_122("navette gratuite pour l'aeroport"),
SVGEKKO_123("Imprimante"),
SVGEKKO_124("Duty free shop"),
SVGEKKO_125("Location de téléphone portable"),
SVGEKKO_126("Location d'ordinateur"),
SVGEKKO_127("Service de blanchisserie"),
SVGEKKO_128("Parking payant"),
SVGEKKO_129("centre de convention"),
SVGEKKO_130("parasols"),
SVGEKKO_131("Parking gratuit"),
SVGEKKO_132("chambres insonorisées"),
SVGEKKO_133("Télévision par satellite avec chaînes françaises"),
SVGEKKO_134("WIFI gratuit"),
SVGEKKO_135("baignoire");
/**
* @uml.property name="value"
*/
private String value;
private Facility(String v) {
this.value = v;
}
/**
* @return
* @uml.property name="value"
*/
public String getValue() {
return this.value;
}
}
package com.fractalite.hermes.teldar.parsers;
public enum HotelRating {
_1STR("1STR"),
_2STR("2STR"),
_3STR("3STR"),
_4STR("4STR"),
_5STR("5STR"),
UNKNOWN("UNKNOWN"),
UNRATED("UNRATED");
/**
* @uml.property name="value"
*/
private String value;
private HotelRating(String v) {
this.value = v;
}
/**
* @return
* @uml.property name="value"
*/
public int value() {
return (this.ordinal() + 1) ;
}
}
package com.fractalite.hermes.teldar.parsers;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Currency;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.apache.camel.Processor;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.xml.sax.SAXException;
import com.fractalite.models.travel.PaxType;
import com.fractalite.models.travel.Traveller;
import com.fractalite.models.travel.stay.Room;
public abstract class TeldarParsers implements Processor {
final Currency outputCurrency=Currency.getInstance("MAD");
final String language="FRA";
final DateTimeFormatter dateParser = DateTimeFormat.forPattern("yyyy/MM/dd");//"MM/dd/yyyy"
final SimpleDateFormat formatDateJour = new SimpleDateFormat("yyyyMMdd");
final SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd");
@Override
public abstract void process(Exchange exchange) throws InvalidPayloadException, ParserConfigurationException, SAXException, IOException, XPathExpressionException, ParseException ;
//public double tauxChange=11.55;
public static int getAdultCount(String code) {
int AdultCount=1;
if(code.equals("SB"))
AdultCount=1;
else if(code.equals("DB"))
AdultCount=2;
else if(code.equals("TR"))
AdultCount=3;
else if(code.equals("Q"))
AdultCount=4;
return AdultCount;
}
public static int countDaysBetween(Date start, Date end) {
final int MILLISECONDS_IN_DAY = 1000 * 60 * 60 * 24;
if (end.before(start)) {
//throw new IllegalArgumentException("The end date must be later than the start date");
return 0;
}
//accor all hours mins and secs to zero on start date
Calendar startCal = GregorianCalendar.getInstance();
startCal.setTime(start);
startCal.set(Calendar.HOUR_OF_DAY, 0);
startCal.set(Calendar.MINUTE, 0);
startCal.set(Calendar.SECOND, 0);
long startTime = startCal.getTimeInMillis();
//accor all hours mins and secs to zero on end date
Calendar endCal = GregorianCalendar.getInstance();
endCal.setTime(end);
endCal.set(Calendar.HOUR_OF_DAY, 0);
endCal.set(Calendar.MINUTE, 0);
endCal.set(Calendar.SECOND, 0);
long endTime = endCal.getTimeInMillis();
return (int) ((endTime - startTime) / MILLISECONDS_IN_DAY);
}
public static int childCount(Room room) {
int childNbre=0;
for(Traveller traveller : room.getGuests())
if(traveller.getClassification().equals(PaxType.CHILD))
childNbre++;
return childNbre;
}
}
/*
* package com.fractalite.hermes.teldar.parsers;
*
* import java.security.NoSuchAlgorithmException;
*
* import javax.net.ssl.SSLContext;
*
* public class Testinfo {
*
* public static void main(String[] args) {
* System.out.println("before TLSv1.1"); SSLContext ctx; try { ctx =
* SSLContext.getInstance("TLSv1.1"); } catch (NoSuchAlgorithmException e1) { //
* TODO Auto-generated catch block e1.printStackTrace(); }
* System.out.println("before TLSv1.2"); try { ctx =
* SSLContext.getInstance("TLSv1.2"); } catch (NoSuchAlgorithmException e) { //
* TODO Auto-generated catch block e.printStackTrace(); }
* System.out.println("after"); }
*
* }
*/
\ 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;
}
}
package com.fractalite.hermes.teldar.services;
import java.math.BigInteger;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.text.ParseException;
import java.util.Currency;
import java.util.Random;
import javax.xml.datatype.DatatypeConfigurationException;
import org.apache.camel.Exchange;
import org.apache.camel.InvalidPayloadException;
import org.apache.camel.Processor;
import org.apache.commons.lang.RandomStringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class TeldarServices implements Processor {
//protected static Logger logger = LoggerFactory.getLogger(RestelServices.class);
final String language="FRA";
final Currency outputCurrency=Currency.getInstance("MAD");
public TeldarServices() {
}
@Override
public abstract void process(Exchange exchange) throws InvalidPayloadException, DatatypeConfigurationException, ParseException,KeyManagementException, NoSuchAlgorithmException ;
public static String getCodeRoomType(int nbreOfAdult, int nbreOfChild) {
String codeRoomType="";
switch (nbreOfAdult) {
case 1: codeRoomType = "SG";//DU
break;
case 2: codeRoomType = "DB";//D8,TW
if(nbreOfChild==1)
codeRoomType="TN";
break;
case 3: codeRoomType = "TP";//TL
break;
case 4: codeRoomType = "CD";//C-
break;
}
return codeRoomType;
}
public static int getRandomInt(int min, int max) {
Random randomGenerator = new Random();
int nbre = max - min + 1;
return min + Math.abs(randomGenerator.nextInt()) % nbre;
}
public static String getRandomString() {
return "AV" + System.currentTimeMillis()%1000000;
}
}
package com.gekko_holding.webservice.Availability;
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.Availability;
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.XmlRootElement;
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"
})
@XmlRootElement(name ="AvailabilityResponse")
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.Availability;
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-03-21T18:01:35.185+01:00
* Generated source version: 2.4.3
*
*/
@WebServiceClient(name = "AvailabilityService",
wsdlLocation = "file:/home/user2/eclipse-workspace/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/user2/eclipse-workspace/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/user2/eclipse-workspace/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.Availability;
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-03-21T18:01:35.176+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.Availability.HotelBean> getHotelDetails(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.Identification identification,
@WebParam(name = "cityCodeStandard", targetNamespace = "")
java.lang.String cityCodeStandard,
@WebParam(name = "hotelCodes", targetNamespace = "")
com.gekko_holding.webservice.Availability.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.Availability.HotelCode> getWhiteListHotels(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.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.Availability.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.Availability.AvailabilityResponse hotelAvailability(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.CustomerIdentification identification,
@WebParam(name = "availCriteria", targetNamespace = "")
com.gekko_holding.webservice.Availability.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.Availability.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.Availability.BookingDetails getBookingDetails(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.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.Availability.CancellationPolicyResponse getPreBookingInfo(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.CustomerIdentification identification,
@WebParam(name = "searchCriteria", targetNamespace = "")
com.gekko_holding.webservice.Availability.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.Availability.Bookings searchBookingSegments(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.CustomerIdentification identification,
@WebParam(name = "bookingsCriteria", targetNamespace = "")
com.gekko_holding.webservice.Availability.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.Availability.BookResponse bookHotel(
@WebParam(name = "language", targetNamespace = "")
java.lang.String language,
@WebParam(name = "identification", targetNamespace = "")
com.gekko_holding.webservice.Availability.CustomerIdentification identification,
@WebParam(name = "bookRequest", targetNamespace = "")
com.gekko_holding.webservice.Availability.RequestedBookings bookRequest
) throws TimeoutException_Exception, ServiceException;
}
package com.gekko_holding.webservice.Availability;
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.Availability;
import javax.xml.bind.annotation.*;
/**
* <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"
})
@XmlRootElement
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.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
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"
})
@XmlRootElement
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.Availability;
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.Availability;
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.Availability;
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 = "pax", namespace = "http://webservice.gekko-holding.com/v2_4", type = Pax.class),
@XmlElement(name = "registeredUser", namespace = "http://webservice.gekko-holding.com/v2_4", type = RegisteredUser.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 Pax }
* {@link RegisteredUser }
*
*
*/
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.Availability;
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.Availability;
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.Availability;
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.Availability;
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.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
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"
})
@XmlRootElement(name="cancelBookingSegment")
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.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
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"
})
@XmlRootElement(name="cancelBookingSegmentResponse")
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.Availability;
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.Availability;
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.XmlRootElement;
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"
})
@XmlRootElement(name ="CancellationPolicyResponse")
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.Availability;
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.Availability;
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.Availability;
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.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
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")
///@XmlRootElement(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.Availability;
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.Availability;
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.Availability;
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.Availability;
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.Availability;
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.Availability;
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;
}
}
package com.gekko_holding.webservice.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>Java class for entityBean complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="entityBean">
* &lt;simpleContent>
* &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
* &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "entityBean", propOrder = {
"value"
})
@XmlSeeAlso({
Country.class,
CityBean.class,
RoomType.class,
HotelRating.class,
HotelChain.class,
AcceptedCreditCardBean.class,
Facility.class,
Board.class
})
public class EntityBean {
@XmlValue
protected String value;
@XmlAttribute(name = "code", required = true)
protected String code;
/**
* 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 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;
}
}
package com.gekko_holding.webservice.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for errorDetails complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="errorDetails">
* &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" minOccurs="0"/>
* &lt;element name="detail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "errorDetails", propOrder = {
"code",
"detail"
})
public class ErrorDetails {
protected String code;
protected String detail;
/**
* 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 detail property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDetail() {
return detail;
}
/**
* Sets the value of the detail property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDetail(String value) {
this.detail = value;
}
}
package com.gekko_holding.webservice.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for facility complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="facility">
* &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 = "facility")
public class Facility
extends EntityBean
{
}
package com.gekko_holding.webservice.Availability;
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 geoCodeDestination complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="geoCodeDestination">
* &lt;complexContent>
* &lt;extension base="{http://webservice.gekko-holding.com/v2_4}destination">
* &lt;sequence>
* &lt;/sequence>
* &lt;attribute name="latitude" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
* &lt;attribute name="longitude" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
* &lt;attribute name="range" type="{http://www.w3.org/2001/XMLSchema}double" />
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "geoCodeDestination")
public class GeoCodeDestination
extends Destination
{
@XmlAttribute(name = "latitude", required = true)
protected double latitude;
@XmlAttribute(name = "longitude", required = true)
protected double longitude;
@XmlAttribute(name = "range")
protected Double range;
/**
* Gets the value of the latitude property.
*
*/
public double getLatitude() {
return latitude;
}
/**
* Sets the value of the latitude property.
*
*/
public void setLatitude(double value) {
this.latitude = value;
}
/**
* Gets the value of the longitude property.
*
*/
public double getLongitude() {
return longitude;
}
/**
* Sets the value of the longitude property.
*
*/
public void setLongitude(double value) {
this.longitude = 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.Availability;
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 geoLocalization complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="geoLocalization">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;/sequence>
* &lt;attribute name="latitude" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
* &lt;attribute name="longitude" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "geoLocalization")
public class GeoLocalization {
@XmlAttribute(name = "latitude", required = true)
protected double latitude;
@XmlAttribute(name = "longitude", required = true)
protected double longitude;
/**
* Gets the value of the latitude property.
*
*/
public double getLatitude() {
return latitude;
}
/**
* Sets the value of the latitude property.
*
*/
public void setLatitude(double value) {
this.latitude = value;
}
/**
* Gets the value of the longitude property.
*
*/
public double getLongitude() {
return longitude;
}
/**
* Sets the value of the longitude property.
*
*/
public void setLongitude(double value) {
this.longitude = value;
}
}
package com.gekko_holding.webservice.Availability;
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 getBookingDetails complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="getBookingDetails">
* &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="bookId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &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 = "getBookingDetails", propOrder = {
"language",
"identification",
"bookId",
"segmentId"
})
public class GetBookingDetails {
protected String language;
@XmlElement(required = true)
protected CustomerIdentification identification;
protected String bookId;
@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 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 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.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getBookingDetailsResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="getBookingDetailsResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="bookingDetails" type="{http://webservice.gekko-holding.com/v2_4}bookingDetails" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getBookingDetailsResponse", propOrder = {
"bookingDetails"
})
public class GetBookingDetailsResponse {
protected BookingDetails bookingDetails;
/**
* Gets the value of the bookingDetails property.
*
* @return
* possible object is
* {@link BookingDetails }
*
*/
public BookingDetails getBookingDetails() {
return bookingDetails;
}
/**
* Sets the value of the bookingDetails property.
*
* @param value
* allowed object is
* {@link BookingDetails }
*
*/
public void setBookingDetails(BookingDetails value) {
this.bookingDetails = value;
}
}
package com.gekko_holding.webservice.Availability;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getHotelDetails complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="getHotelDetails">
* &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}identification"/>
* &lt;element name="cityCodeStandard" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="hotelCodes" type="{http://webservice.gekko-holding.com/v2_4}hotelCodes"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getHotelDetails", propOrder = {
"language",
"identification",
"cityCodeStandard",
"hotelCodes"
})
@XmlRootElement
public class GetHotelDetails {
protected String language;
@XmlElement(required = true)
protected Identification identification;
protected String cityCodeStandard;
@XmlElement(required = true)
protected HotelCodes hotelCodes;
/**
* 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 Identification }
*
*/
public Identification getIdentification() {
return identification;
}
/**
* Sets the value of the identification property.
*
* @param value
* allowed object is
* {@link Identification }
*
*/
public void setIdentification(Identification value) {
this.identification = value;
}
/**
* Gets the value of the cityCodeStandard property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCityCodeStandard() {
return cityCodeStandard;
}
/**
* Sets the value of the cityCodeStandard property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCityCodeStandard(String value) {
this.cityCodeStandard = value;
}
/**
* Gets the value of the hotelCodes property.
*
* @return
* possible object is
* {@link HotelCodes }
*
*/
public HotelCodes getHotelCodes() {
return hotelCodes;
}
/**
* Sets the value of the hotelCodes property.
*
* @param value
* allowed object is
* {@link HotelCodes }
*
*/
public void setHotelCodes(HotelCodes value) {
this.hotelCodes = value;
}
}
package com.gekko_holding.webservice.Availability;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.codehaus.jackson.map.ObjectMapper;
/**
* <p>Java class for getHotelDetailsResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="getHotelDetailsResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="hotel" type="{http://webservice.gekko-holding.com/v2_4}hotelBean" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getHotelDetailsResponse", propOrder = {
"hotel"
})
@XmlRootElement(name="GetHotelDetailsResponse")
public class GetHotelDetailsResponse {
protected List<HotelBean> hotel;
/**
* Gets the value of the hotel 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 hotel property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getHotel().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link HotelBean }
*
*
*/
public List<HotelBean> getHotel() {
if (hotel == null) {
hotel = new ArrayList<HotelBean>();
}
return this.hotel;
}
@Override
public String toString(){
ObjectMapper objectMapper = new ObjectMapper();
String harJson = "";
try {
harJson = objectMapper.writeValueAsString(this);
}catch (Exception e){
e.printStackTrace();
}
return harJson;
}
}
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