travel.wink.sdk.channel.manager.model.PropertyBooking Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of channel-manager-sdk-java Show documentation
Show all versions of channel-manager-sdk-java Show documentation
Java SDK for the channel manager integrators wanting to communicate with the Wink Travel Platform.
The newest version!
/*
* Wink API
* ## APIs Not every integrator needs every APIs. For that reason, we have separated APIs into context. - [Affiliate](/affiliate): All APIs related to selling travel inventory as an affiliate. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. - [Booking](/booking): All APIs related to creating platform bookings. - [Channel Manager](/channel-manager): All APIs related to channel managers who want to integrate with our platform. - [Extranet](/extranet): All APIs related to managing travel inventory and suppliers. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. - [TripPay](/payment): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/wink-sdk-java](https://github.com/wink-travel/wink-sdk-java) ## Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. ## Versioning We chose to version our endpoints in a way that we hope affects your integration with us the least. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md # Channel Manager API Wink exposes a secured REST-based, JSON API to its channel manager partners. The connection is \"channel-wide\". Partners are free to integrate with the REST-based API using any programming language. # Intended Audience This document is intended for external channel partners who wish to integrate with Wink. # Requirements - Active account with Wink. Sign up for your Channel Manager account: - Staging: [https://staging-studio.wink.travel](https://staging-studio.wink.travel). - Production: [https://studio.wink.travel](https://studio.wink.travel). - Active application. An application provides you with Oauth2 credentials you can pass to our endpoints. One is already created for you upon account creation. - Your production IP numbers. They need to be whitelisted before you can talk to our production environment. # Performance A particular attention to performance should be given when integrating with this API. A few things to be aware of: - Enable gzip compression to make payloads smaller. - Fewer large REST calls are preferred to many small ones. E.g. It is better to update many dates instead of individual dates. - It is possible to update both rate and availability with a single request. - Request only date ranges that you will use. There is no need to request an entire year if you will only be working with the first seven days. ## Reservation notification (PUSH) Wink supports PUSH notifications to communicate reservations. We also support BASIC AUTH to your endpoint. If you want to enable PUSH, add your PUSH endpoint and credentials (optional) to your account.
*
* The version of the OpenAPI document: 30.5.13
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package travel.wink.sdk.channel.manager.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.hibernate.validator.constraints.*;
/**
* PropertyBooking
*/
@JsonPropertyOrder({
PropertyBooking.JSON_PROPERTY_BOOKING_IDENTIFIER,
PropertyBooking.JSON_PROPERTY_PROPERTY_IDENTIFIER,
PropertyBooking.JSON_PROPERTY_ROOM_RATE_IDENTIFIER,
PropertyBooking.JSON_PROPERTY_NAME,
PropertyBooking.JSON_PROPERTY_GUEST_ROOM_NAME,
PropertyBooking.JSON_PROPERTY_RATE_PLAN_NAME,
PropertyBooking.JSON_PROPERTY_ROOMS,
PropertyBooking.JSON_PROPERTY_GUESTS,
PropertyBooking.JSON_PROPERTY_ADULTS,
PropertyBooking.JSON_PROPERTY_CHILDREN,
PropertyBooking.JSON_PROPERTY_FIRST_NAME,
PropertyBooking.JSON_PROPERTY_LAST_NAME,
PropertyBooking.JSON_PROPERTY_EMAIL,
PropertyBooking.JSON_PROPERTY_AMOUNT,
PropertyBooking.JSON_PROPERTY_CURRENCY_CODE,
PropertyBooking.JSON_PROPERTY_BOOKING_CODE,
PropertyBooking.JSON_PROPERTY_START_DATE,
PropertyBooking.JSON_PROPERTY_END_DATE,
PropertyBooking.JSON_PROPERTY_CREATED_DATE,
PropertyBooking.JSON_PROPERTY_CANCELLED,
PropertyBooking.JSON_PROPERTY_CANCEL_DATE,
PropertyBooking.JSON_PROPERTY_PAYMENT_METHOD_TYPE,
PropertyBooking.JSON_PROPERTY_PAYMENT_WALLET_TYPE,
PropertyBooking.JSON_PROPERTY_PAYMENT_METHOD_STATUS,
PropertyBooking.JSON_PROPERTY_SALES_CHANNEL_NAME,
PropertyBooking.JSON_PROPERTY_SALES_CHANNEL_IDENTIFIER
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T20:21:48.540278877+07:00[Asia/Bangkok]")
public class PropertyBooking {
public static final String JSON_PROPERTY_BOOKING_IDENTIFIER = "bookingIdentifier";
private String bookingIdentifier;
public static final String JSON_PROPERTY_PROPERTY_IDENTIFIER = "propertyIdentifier";
private String propertyIdentifier;
public static final String JSON_PROPERTY_ROOM_RATE_IDENTIFIER = "roomRateIdentifier";
private String roomRateIdentifier;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_GUEST_ROOM_NAME = "guestRoomName";
private String guestRoomName;
public static final String JSON_PROPERTY_RATE_PLAN_NAME = "ratePlanName";
private String ratePlanName;
public static final String JSON_PROPERTY_ROOMS = "rooms";
private Integer rooms;
public static final String JSON_PROPERTY_GUESTS = "guests";
private Integer guests;
public static final String JSON_PROPERTY_ADULTS = "adults";
private Integer adults;
public static final String JSON_PROPERTY_CHILDREN = "children";
private Integer children;
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
private String firstName;
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
private String lastName;
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public static final String JSON_PROPERTY_AMOUNT = "amount";
private BigDecimal amount;
public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode";
private String currencyCode;
public static final String JSON_PROPERTY_BOOKING_CODE = "bookingCode";
private String bookingCode;
public static final String JSON_PROPERTY_START_DATE = "startDate";
private LocalDate startDate;
public static final String JSON_PROPERTY_END_DATE = "endDate";
private LocalDate endDate;
public static final String JSON_PROPERTY_CREATED_DATE = "createdDate";
private java.time.LocalDateTime createdDate;
public static final String JSON_PROPERTY_CANCELLED = "cancelled";
private Boolean cancelled;
public static final String JSON_PROPERTY_CANCEL_DATE = "cancelDate";
private java.time.LocalDateTime cancelDate;
public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType";
private String paymentMethodType;
public static final String JSON_PROPERTY_PAYMENT_WALLET_TYPE = "paymentWalletType";
private String paymentWalletType;
/**
* Gets or Sets paymentMethodStatus
*/
public enum PaymentMethodStatusEnum {
PENDING("PENDING"),
COMPLETE("COMPLETE"),
PAY_ON_ARRIVAL("PAY_ON_ARRIVAL"),
PROPERTY_MERCHANT_OF_RECORD("PROPERTY_MERCHANT_OF_RECORD"),
FAILED("FAILED"),
UNKNOWN("UNKNOWN");
private String value;
PaymentMethodStatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PaymentMethodStatusEnum fromValue(String value) {
for (PaymentMethodStatusEnum b : PaymentMethodStatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PAYMENT_METHOD_STATUS = "paymentMethodStatus";
private PaymentMethodStatusEnum paymentMethodStatus;
public static final String JSON_PROPERTY_SALES_CHANNEL_NAME = "salesChannelName";
private String salesChannelName;
public static final String JSON_PROPERTY_SALES_CHANNEL_IDENTIFIER = "salesChannelIdentifier";
private String salesChannelIdentifier;
public PropertyBooking() {
}
public PropertyBooking bookingIdentifier(String bookingIdentifier) {
this.bookingIdentifier = bookingIdentifier;
return this;
}
/**
* Get bookingIdentifier
* @return bookingIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_BOOKING_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBookingIdentifier() {
return bookingIdentifier;
}
@JsonProperty(JSON_PROPERTY_BOOKING_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBookingIdentifier(String bookingIdentifier) {
this.bookingIdentifier = bookingIdentifier;
}
public PropertyBooking propertyIdentifier(String propertyIdentifier) {
this.propertyIdentifier = propertyIdentifier;
return this;
}
/**
* Get propertyIdentifier
* @return propertyIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPropertyIdentifier() {
return propertyIdentifier;
}
@JsonProperty(JSON_PROPERTY_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPropertyIdentifier(String propertyIdentifier) {
this.propertyIdentifier = propertyIdentifier;
}
public PropertyBooking roomRateIdentifier(String roomRateIdentifier) {
this.roomRateIdentifier = roomRateIdentifier;
return this;
}
/**
* Get roomRateIdentifier
* @return roomRateIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ROOM_RATE_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getRoomRateIdentifier() {
return roomRateIdentifier;
}
@JsonProperty(JSON_PROPERTY_ROOM_RATE_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRoomRateIdentifier(String roomRateIdentifier) {
this.roomRateIdentifier = roomRateIdentifier;
}
public PropertyBooking name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public PropertyBooking guestRoomName(String guestRoomName) {
this.guestRoomName = guestRoomName;
return this;
}
/**
* Get guestRoomName
* @return guestRoomName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_GUEST_ROOM_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getGuestRoomName() {
return guestRoomName;
}
@JsonProperty(JSON_PROPERTY_GUEST_ROOM_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setGuestRoomName(String guestRoomName) {
this.guestRoomName = guestRoomName;
}
public PropertyBooking ratePlanName(String ratePlanName) {
this.ratePlanName = ratePlanName;
return this;
}
/**
* Get ratePlanName
* @return ratePlanName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_RATE_PLAN_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getRatePlanName() {
return ratePlanName;
}
@JsonProperty(JSON_PROPERTY_RATE_PLAN_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRatePlanName(String ratePlanName) {
this.ratePlanName = ratePlanName;
}
public PropertyBooking rooms(Integer rooms) {
this.rooms = rooms;
return this;
}
/**
* Get rooms
* @return rooms
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ROOMS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getRooms() {
return rooms;
}
@JsonProperty(JSON_PROPERTY_ROOMS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRooms(Integer rooms) {
this.rooms = rooms;
}
public PropertyBooking guests(Integer guests) {
this.guests = guests;
return this;
}
/**
* Get guests
* @return guests
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_GUESTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getGuests() {
return guests;
}
@JsonProperty(JSON_PROPERTY_GUESTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setGuests(Integer guests) {
this.guests = guests;
}
public PropertyBooking adults(Integer adults) {
this.adults = adults;
return this;
}
/**
* Get adults
* @return adults
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ADULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getAdults() {
return adults;
}
@JsonProperty(JSON_PROPERTY_ADULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAdults(Integer adults) {
this.adults = adults;
}
public PropertyBooking children(Integer children) {
this.children = children;
return this;
}
/**
* Get children
* @return children
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_CHILDREN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getChildren() {
return children;
}
@JsonProperty(JSON_PROPERTY_CHILDREN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setChildren(Integer children) {
this.children = children;
}
public PropertyBooking firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get firstName
* @return firstName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFirstName() {
return firstName;
}
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public PropertyBooking lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get lastName
* @return lastName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLastName() {
return lastName;
}
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLastName(String lastName) {
this.lastName = lastName;
}
public PropertyBooking email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEmail() {
return email;
}
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEmail(String email) {
this.email = email;
}
public PropertyBooking amount(BigDecimal amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getAmount() {
return amount;
}
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public PropertyBooking currencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* Get currencyCode
* @return currencyCode
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_CURRENCY_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCurrencyCode() {
return currencyCode;
}
@JsonProperty(JSON_PROPERTY_CURRENCY_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
public PropertyBooking bookingCode(String bookingCode) {
this.bookingCode = bookingCode;
return this;
}
/**
* Get bookingCode
* @return bookingCode
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_BOOKING_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBookingCode() {
return bookingCode;
}
@JsonProperty(JSON_PROPERTY_BOOKING_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBookingCode(String bookingCode) {
this.bookingCode = bookingCode;
}
public PropertyBooking startDate(LocalDate startDate) {
this.startDate = startDate;
return this;
}
/**
* Get startDate
* @return startDate
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LocalDate getStartDate() {
return startDate;
}
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public PropertyBooking endDate(LocalDate endDate) {
this.endDate = endDate;
return this;
}
/**
* Get endDate
* @return endDate
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LocalDate getEndDate() {
return endDate;
}
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public PropertyBooking createdDate(java.time.LocalDateTime createdDate) {
this.createdDate = createdDate;
return this;
}
/**
* Get createdDate
* @return createdDate
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_CREATED_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public java.time.LocalDateTime getCreatedDate() {
return createdDate;
}
@JsonProperty(JSON_PROPERTY_CREATED_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedDate(java.time.LocalDateTime createdDate) {
this.createdDate = createdDate;
}
public PropertyBooking cancelled(Boolean cancelled) {
this.cancelled = cancelled;
return this;
}
/**
* Get cancelled
* @return cancelled
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_CANCELLED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getCancelled() {
return cancelled;
}
@JsonProperty(JSON_PROPERTY_CANCELLED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCancelled(Boolean cancelled) {
this.cancelled = cancelled;
}
public PropertyBooking cancelDate(java.time.LocalDateTime cancelDate) {
this.cancelDate = cancelDate;
return this;
}
/**
* Get cancelDate
* @return cancelDate
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_CANCEL_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.time.LocalDateTime getCancelDate() {
return cancelDate;
}
@JsonProperty(JSON_PROPERTY_CANCEL_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCancelDate(java.time.LocalDateTime cancelDate) {
this.cancelDate = cancelDate;
}
public PropertyBooking paymentMethodType(String paymentMethodType) {
this.paymentMethodType = paymentMethodType;
return this;
}
/**
* Get paymentMethodType
* @return paymentMethodType
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPaymentMethodType() {
return paymentMethodType;
}
@JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentMethodType(String paymentMethodType) {
this.paymentMethodType = paymentMethodType;
}
public PropertyBooking paymentWalletType(String paymentWalletType) {
this.paymentWalletType = paymentWalletType;
return this;
}
/**
* Get paymentWalletType
* @return paymentWalletType
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAYMENT_WALLET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPaymentWalletType() {
return paymentWalletType;
}
@JsonProperty(JSON_PROPERTY_PAYMENT_WALLET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentWalletType(String paymentWalletType) {
this.paymentWalletType = paymentWalletType;
}
public PropertyBooking paymentMethodStatus(PaymentMethodStatusEnum paymentMethodStatus) {
this.paymentMethodStatus = paymentMethodStatus;
return this;
}
/**
* Get paymentMethodStatus
* @return paymentMethodStatus
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PaymentMethodStatusEnum getPaymentMethodStatus() {
return paymentMethodStatus;
}
@JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentMethodStatus(PaymentMethodStatusEnum paymentMethodStatus) {
this.paymentMethodStatus = paymentMethodStatus;
}
public PropertyBooking salesChannelName(String salesChannelName) {
this.salesChannelName = salesChannelName;
return this;
}
/**
* Get salesChannelName
* @return salesChannelName
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SALES_CHANNEL_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSalesChannelName() {
return salesChannelName;
}
@JsonProperty(JSON_PROPERTY_SALES_CHANNEL_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSalesChannelName(String salesChannelName) {
this.salesChannelName = salesChannelName;
}
public PropertyBooking salesChannelIdentifier(String salesChannelIdentifier) {
this.salesChannelIdentifier = salesChannelIdentifier;
return this;
}
/**
* Get salesChannelIdentifier
* @return salesChannelIdentifier
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SALES_CHANNEL_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSalesChannelIdentifier() {
return salesChannelIdentifier;
}
@JsonProperty(JSON_PROPERTY_SALES_CHANNEL_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSalesChannelIdentifier(String salesChannelIdentifier) {
this.salesChannelIdentifier = salesChannelIdentifier;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PropertyBooking propertyBooking = (PropertyBooking) o;
return Objects.equals(this.bookingIdentifier, propertyBooking.bookingIdentifier) &&
Objects.equals(this.propertyIdentifier, propertyBooking.propertyIdentifier) &&
Objects.equals(this.roomRateIdentifier, propertyBooking.roomRateIdentifier) &&
Objects.equals(this.name, propertyBooking.name) &&
Objects.equals(this.guestRoomName, propertyBooking.guestRoomName) &&
Objects.equals(this.ratePlanName, propertyBooking.ratePlanName) &&
Objects.equals(this.rooms, propertyBooking.rooms) &&
Objects.equals(this.guests, propertyBooking.guests) &&
Objects.equals(this.adults, propertyBooking.adults) &&
Objects.equals(this.children, propertyBooking.children) &&
Objects.equals(this.firstName, propertyBooking.firstName) &&
Objects.equals(this.lastName, propertyBooking.lastName) &&
Objects.equals(this.email, propertyBooking.email) &&
Objects.equals(this.amount, propertyBooking.amount) &&
Objects.equals(this.currencyCode, propertyBooking.currencyCode) &&
Objects.equals(this.bookingCode, propertyBooking.bookingCode) &&
Objects.equals(this.startDate, propertyBooking.startDate) &&
Objects.equals(this.endDate, propertyBooking.endDate) &&
Objects.equals(this.createdDate, propertyBooking.createdDate) &&
Objects.equals(this.cancelled, propertyBooking.cancelled) &&
Objects.equals(this.cancelDate, propertyBooking.cancelDate) &&
Objects.equals(this.paymentMethodType, propertyBooking.paymentMethodType) &&
Objects.equals(this.paymentWalletType, propertyBooking.paymentWalletType) &&
Objects.equals(this.paymentMethodStatus, propertyBooking.paymentMethodStatus) &&
Objects.equals(this.salesChannelName, propertyBooking.salesChannelName) &&
Objects.equals(this.salesChannelIdentifier, propertyBooking.salesChannelIdentifier);
}
@Override
public int hashCode() {
return Objects.hash(bookingIdentifier, propertyIdentifier, roomRateIdentifier, name, guestRoomName, ratePlanName, rooms, guests, adults, children, firstName, lastName, email, amount, currencyCode, bookingCode, startDate, endDate, createdDate, cancelled, cancelDate, paymentMethodType, paymentWalletType, paymentMethodStatus, salesChannelName, salesChannelIdentifier);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PropertyBooking {\n");
sb.append(" bookingIdentifier: ").append(toIndentedString(bookingIdentifier)).append("\n");
sb.append(" propertyIdentifier: ").append(toIndentedString(propertyIdentifier)).append("\n");
sb.append(" roomRateIdentifier: ").append(toIndentedString(roomRateIdentifier)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" guestRoomName: ").append(toIndentedString(guestRoomName)).append("\n");
sb.append(" ratePlanName: ").append(toIndentedString(ratePlanName)).append("\n");
sb.append(" rooms: ").append(toIndentedString(rooms)).append("\n");
sb.append(" guests: ").append(toIndentedString(guests)).append("\n");
sb.append(" adults: ").append(toIndentedString(adults)).append("\n");
sb.append(" children: ").append(toIndentedString(children)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
sb.append(" bookingCode: ").append(toIndentedString(bookingCode)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n");
sb.append(" cancelled: ").append(toIndentedString(cancelled)).append("\n");
sb.append(" cancelDate: ").append(toIndentedString(cancelDate)).append("\n");
sb.append(" paymentMethodType: ").append(toIndentedString(paymentMethodType)).append("\n");
sb.append(" paymentWalletType: ").append(toIndentedString(paymentWalletType)).append("\n");
sb.append(" paymentMethodStatus: ").append(toIndentedString(paymentMethodStatus)).append("\n");
sb.append(" salesChannelName: ").append(toIndentedString(salesChannelName)).append("\n");
sb.append(" salesChannelIdentifier: ").append(toIndentedString(salesChannelIdentifier)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}