
org.easytravelapi.swagger.client.model.Booking Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easytravelapi-swagger-java-client Show documentation
Show all versions of easytravelapi-swagger-java-client Show documentation
This is a java client SDK for the easy travel api. Use it to send requests to an easy travel api server.
package org.easytravelapi.swagger.client.model;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Booking
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-09-18T08:43:59.135Z")
public class Booking {
@SerializedName("bookingId")
private String bookingId = null;
@SerializedName("created")
private String created = null;
@SerializedName("createdBy")
private String createdBy = null;
@SerializedName("modified")
private String modified = null;
@SerializedName("serviceType")
private String serviceType = null;
@SerializedName("serviceDescription")
private String serviceDescription = null;
@SerializedName("start")
private String start = null;
@SerializedName("end")
private String end = null;
@SerializedName("status")
private String status = null;
@SerializedName("leadName")
private String leadName = null;
@SerializedName("retailValue")
private Amount retailValue = null;
@SerializedName("netValue")
private Amount netValue = null;
@SerializedName("commissionValue")
private Amount commissionValue = null;
@SerializedName("commentsToProvider")
private String commentsToProvider = null;
@SerializedName("privateComments")
private String privateComments = null;
public Booking bookingId(String bookingId) {
this.bookingId = bookingId;
return this;
}
/**
* The booking id
* @return bookingId
**/
@ApiModelProperty(value = "The booking id")
public String getBookingId() {
return bookingId;
}
public void setBookingId(String bookingId) {
this.bookingId = bookingId;
}
public Booking created(String created) {
this.created = created;
return this;
}
/**
* When this service was created. In ISO8651 format
* @return created
**/
@ApiModelProperty(value = "When this service was created. In ISO8651 format")
public String getCreated() {
return created;
}
public void setCreated(String created) {
this.created = created;
}
public Booking createdBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
/**
* Who created this service booking
* @return createdBy
**/
@ApiModelProperty(value = "Who created this service booking")
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Booking modified(String modified) {
this.modified = modified;
return this;
}
/**
* Last modification date for this service in ISO8651 format
* @return modified
**/
@ApiModelProperty(value = "Last modification date for this service in ISO8651 format")
public String getModified() {
return modified;
}
public void setModified(String modified) {
this.modified = modified;
}
public Booking serviceType(String serviceType) {
this.serviceType = serviceType;
return this;
}
/**
* Type of service. Intended to be HOTEL, TRANSFER, ACTIVITY, ...
* @return serviceType
**/
@ApiModelProperty(value = "Type of service. Intended to be HOTEL, TRANSFER, ACTIVITY, ...")
public String getServiceType() {
return serviceType;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
}
public Booking serviceDescription(String serviceDescription) {
this.serviceDescription = serviceDescription;
return this;
}
/**
* Description of the service
* @return serviceDescription
**/
@ApiModelProperty(value = "Description of the service")
public String getServiceDescription() {
return serviceDescription;
}
public void setServiceDescription(String serviceDescription) {
this.serviceDescription = serviceDescription;
}
public Booking start(String start) {
this.start = start;
return this;
}
/**
* When this service starts using locale. In YYYYMMDD format
* @return start
**/
@ApiModelProperty(value = "When this service starts using locale. In YYYYMMDD format")
public String getStart() {
return start;
}
public void setStart(String start) {
this.start = start;
}
public Booking end(String end) {
this.end = end;
return this;
}
/**
* When this service ends using locale. In YYYYMMDD format
* @return end
**/
@ApiModelProperty(value = "When this service ends using locale. In YYYYMMDD format")
public String getEnd() {
return end;
}
public void setEnd(String end) {
this.end = end;
}
public Booking status(String status) {
this.status = status;
return this;
}
/**
* Status for this service. E.g. OK, ONREQUEST, CANCELLED, ...
* @return status
**/
@ApiModelProperty(value = "Status for this service. E.g. OK, ONREQUEST, CANCELLED, ...")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Booking leadName(String leadName) {
this.leadName = leadName;
return this;
}
/**
* This service lead name
* @return leadName
**/
@ApiModelProperty(value = "This service lead name")
public String getLeadName() {
return leadName;
}
public void setLeadName(String leadName) {
this.leadName = leadName;
}
public Booking retailValue(Amount retailValue) {
this.retailValue = retailValue;
return this;
}
/**
* Get retailValue
* @return retailValue
**/
@ApiModelProperty(value = "")
public Amount getRetailValue() {
return retailValue;
}
public void setRetailValue(Amount retailValue) {
this.retailValue = retailValue;
}
public Booking netValue(Amount netValue) {
this.netValue = netValue;
return this;
}
/**
* Get netValue
* @return netValue
**/
@ApiModelProperty(value = "")
public Amount getNetValue() {
return netValue;
}
public void setNetValue(Amount netValue) {
this.netValue = netValue;
}
public Booking commissionValue(Amount commissionValue) {
this.commissionValue = commissionValue;
return this;
}
/**
* Get commissionValue
* @return commissionValue
**/
@ApiModelProperty(value = "")
public Amount getCommissionValue() {
return commissionValue;
}
public void setCommissionValue(Amount commissionValue) {
this.commissionValue = commissionValue;
}
public Booking commentsToProvider(String commentsToProvider) {
this.commentsToProvider = commentsToProvider;
return this;
}
/**
* Comments from the customer
* @return commentsToProvider
**/
@ApiModelProperty(value = "Comments from the customer")
public String getCommentsToProvider() {
return commentsToProvider;
}
public void setCommentsToProvider(String commentsToProvider) {
this.commentsToProvider = commentsToProvider;
}
public Booking privateComments(String privateComments) {
this.privateComments = privateComments;
return this;
}
/**
* Comments for you. Not to be shown to the customer
* @return privateComments
**/
@ApiModelProperty(value = "Comments for you. Not to be shown to the customer")
public String getPrivateComments() {
return privateComments;
}
public void setPrivateComments(String privateComments) {
this.privateComments = privateComments;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Booking booking = (Booking) o;
return Objects.equals(this.bookingId, booking.bookingId) &&
Objects.equals(this.created, booking.created) &&
Objects.equals(this.createdBy, booking.createdBy) &&
Objects.equals(this.modified, booking.modified) &&
Objects.equals(this.serviceType, booking.serviceType) &&
Objects.equals(this.serviceDescription, booking.serviceDescription) &&
Objects.equals(this.start, booking.start) &&
Objects.equals(this.end, booking.end) &&
Objects.equals(this.status, booking.status) &&
Objects.equals(this.leadName, booking.leadName) &&
Objects.equals(this.retailValue, booking.retailValue) &&
Objects.equals(this.netValue, booking.netValue) &&
Objects.equals(this.commissionValue, booking.commissionValue) &&
Objects.equals(this.commentsToProvider, booking.commentsToProvider) &&
Objects.equals(this.privateComments, booking.privateComments);
}
@Override
public int hashCode() {
return Objects.hash(bookingId, created, createdBy, modified, serviceType, serviceDescription, start, end, status, leadName, retailValue, netValue, commissionValue, commentsToProvider, privateComments);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Booking {\n");
sb.append(" bookingId: ").append(toIndentedString(bookingId)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n");
sb.append(" serviceDescription: ").append(toIndentedString(serviceDescription)).append("\n");
sb.append(" start: ").append(toIndentedString(start)).append("\n");
sb.append(" end: ").append(toIndentedString(end)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" leadName: ").append(toIndentedString(leadName)).append("\n");
sb.append(" retailValue: ").append(toIndentedString(retailValue)).append("\n");
sb.append(" netValue: ").append(toIndentedString(netValue)).append("\n");
sb.append(" commissionValue: ").append(toIndentedString(commissionValue)).append("\n");
sb.append(" commentsToProvider: ").append(toIndentedString(commentsToProvider)).append("\n");
sb.append(" privateComments: ").append(toIndentedString(privateComments)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy