com.ean.wsapi.hotel.v3.Customer 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.XmlType;
/**
* Java class for Customer complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Customer">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="lastName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="homePhone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="workPhone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="extension" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="faxPhone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="CustomerAddresses" type="{http://v3.hotel.wsapi.ean.com/}CustomerAddress" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Customer", propOrder = {
"email",
"firstName",
"lastName",
"homePhone",
"workPhone",
"extension",
"faxPhone",
"customerAddresses"
})
public class Customer {
protected String email;
protected String firstName;
protected String lastName;
protected String homePhone;
protected String workPhone;
protected String extension;
protected String faxPhone;
@XmlElement(name = "CustomerAddresses")
protected List customerAddresses;
/**
* Gets the value of the email property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmail() {
return email;
}
/**
* Sets the value of the email property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmail(String value) {
this.email = value;
}
/**
* Gets the value of the firstName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFirstName() {
return firstName;
}
/**
* Sets the value of the firstName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFirstName(String value) {
this.firstName = value;
}
/**
* Gets the value of the lastName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLastName() {
return lastName;
}
/**
* Sets the value of the lastName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastName(String value) {
this.lastName = value;
}
/**
* Gets the value of the homePhone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHomePhone() {
return homePhone;
}
/**
* Sets the value of the homePhone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHomePhone(String value) {
this.homePhone = value;
}
/**
* Gets the value of the workPhone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWorkPhone() {
return workPhone;
}
/**
* Sets the value of the workPhone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWorkPhone(String value) {
this.workPhone = value;
}
/**
* Gets the value of the extension property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExtension() {
return extension;
}
/**
* Sets the value of the extension property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExtension(String value) {
this.extension = value;
}
/**
* Gets the value of the faxPhone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaxPhone() {
return faxPhone;
}
/**
* Sets the value of the faxPhone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaxPhone(String value) {
this.faxPhone = value;
}
/**
* Gets the value of the customerAddresses 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 customerAddresses property.
*
*
* For example, to add a new item, do as follows:
*
* getCustomerAddresses().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CustomerAddress }
*
*
*/
public List getCustomerAddresses() {
if (customerAddresses == null) {
customerAddresses = new ArrayList();
}
return this.customerAddresses;
}
}