All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ean.wsapi.hotel.v3.BaseRequest Maven / Gradle / Ivy


package com.ean.wsapi.hotel.v3;

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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for BaseRequest complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="BaseRequest">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="apiKey" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="cid" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="customerIpAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="customerSessionId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="customerUserAgent" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="locale" type="{http://v3.hotel.wsapi.ean.com/}LocaleType" minOccurs="0"/>
 *         <element name="currencyCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="additionalData" type="{http://v3.hotel.wsapi.ean.com/}mapEntry" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="sig" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="debug" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="test" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BaseRequest", propOrder = { "apiKey", "cid", "customerIpAddress", "customerSessionId", "customerUserAgent", "locale", "currencyCode", "additionalData", "sig", "debug", "test" }) @XmlSeeAlso({ HotelBaseRequest.class }) public abstract class BaseRequest { @XmlElement(required = true) protected String apiKey; protected long cid; @XmlElement(required = true) protected String customerIpAddress; protected String customerSessionId; @XmlElement(required = true) protected String customerUserAgent; protected LocaleType locale; protected String currencyCode; protected List additionalData; protected String sig; protected Boolean debug; protected Boolean test; /** * Gets the value of the apiKey property. * * @return * possible object is * {@link String } * */ public String getApiKey() { return apiKey; } /** * Sets the value of the apiKey property. * * @param value * allowed object is * {@link String } * */ public void setApiKey(String value) { this.apiKey = value; } /** * Gets the value of the cid property. * */ public long getCid() { return cid; } /** * Sets the value of the cid property. * */ public void setCid(long value) { this.cid = value; } /** * Gets the value of the customerIpAddress property. * * @return * possible object is * {@link String } * */ public String getCustomerIpAddress() { return customerIpAddress; } /** * Sets the value of the customerIpAddress property. * * @param value * allowed object is * {@link String } * */ public void setCustomerIpAddress(String value) { this.customerIpAddress = value; } /** * Gets the value of the customerSessionId property. * * @return * possible object is * {@link String } * */ public String getCustomerSessionId() { return customerSessionId; } /** * Sets the value of the customerSessionId property. * * @param value * allowed object is * {@link String } * */ public void setCustomerSessionId(String value) { this.customerSessionId = value; } /** * Gets the value of the customerUserAgent property. * * @return * possible object is * {@link String } * */ public String getCustomerUserAgent() { return customerUserAgent; } /** * Sets the value of the customerUserAgent property. * * @param value * allowed object is * {@link String } * */ public void setCustomerUserAgent(String value) { this.customerUserAgent = value; } /** * Gets the value of the locale property. * * @return * possible object is * {@link LocaleType } * */ public LocaleType getLocale() { return locale; } /** * Sets the value of the locale property. * * @param value * allowed object is * {@link LocaleType } * */ public void setLocale(LocaleType value) { this.locale = value; } /** * Gets the value of the currencyCode property. * * @return * possible object is * {@link String } * */ public String getCurrencyCode() { return currencyCode; } /** * Sets the value of the currencyCode property. * * @param value * allowed object is * {@link String } * */ public void setCurrencyCode(String value) { this.currencyCode = value; } /** * Gets the value of the additionalData property. * *

* 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 set method for the additionalData property. * *

* For example, to add a new item, do as follows: *

     *    getAdditionalData().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MapEntry } * * */ public List getAdditionalData() { if (additionalData == null) { additionalData = new ArrayList(); } return this.additionalData; } /** * Gets the value of the sig property. * * @return * possible object is * {@link String } * */ public String getSig() { return sig; } /** * Sets the value of the sig property. * * @param value * allowed object is * {@link String } * */ public void setSig(String value) { this.sig = value; } /** * Gets the value of the debug property. * * @return * possible object is * {@link Boolean } * */ public Boolean isDebug() { return debug; } /** * Sets the value of the debug property. * * @param value * allowed object is * {@link Boolean } * */ public void setDebug(Boolean value) { this.debug = value; } /** * Gets the value of the test property. * * @return * possible object is * {@link Boolean } * */ public Boolean isTest() { return test; } /** * Sets the value of the test property. * * @param value * allowed object is * {@link Boolean } * */ public void setTest(Boolean value) { this.test = value; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy