travel.wink.sdk.extranet.model.RoomConfigurationPriceSupplierDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extranet-sdk-java Show documentation
Show all versions of extranet-sdk-java Show documentation
Java SDK for the wink Extranet API
/*
* 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 - 2022-10-15: v2.0 - Removed HATEOAS and added Wink-Version header - 2022-05-08: v1 - Exposed channel manager API - 2021-07-01: v1 - Initial release # Extranet API Welcome to the Extranet API - A programmer-friendly way to manage your travel inventory on the wink payment. This API offers a superset of the features you can find at [https://extranet.wink.travel](https://extranet.wink.travel) and gives you all the tools you need to ready your properties and inventory for sale across 10000s of our unique sales channels. What differentiates us from existing Extranets is 1. we make it available for everyone to use and 2. the care we take in only working with properties that have quality, curated content and ways to bundle and cross sell customers with ancillary products and experiences. Content creators have the ability to make their inventory look great and be searchable in a wide variety of ways. You won't find properties with generic inventory, low resolution pictures and little ancillary content that can easily be found everywhere else on the internet. # Integrations We have already integrated with the most well-known channel managers so you don't have to. Once your properties are set up, you can finish the setup by mapping your property to wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API. - Allotz - CloudBeds / MyAllocator - Comanche - d-edge - FastBooking - HotelLink - HoteliersGuru - Omnibees - RateGain - Rate Tiger - ResAvenue - Siteminder - Sabre SynXis - Travelclick - Yieldplanet # Intended Audience Programmers are [most likely] a requirement to start integrating with wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible. - Hotel chains - Hotel brands - Travel tech companies - Destination sites - Integrators - Aggregators - Destination management companies - Travel agencies - OTAs
*
* The version of the OpenAPI document: 29.61.2
* 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.extranet.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.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import travel.wink.sdk.extranet.model.AddOnLocalizedInventorySupplierDetails;
import travel.wink.sdk.extranet.model.CancellationPolicySupplierDetails;
import travel.wink.sdk.extranet.model.CustomMonetaryAmount;
import travel.wink.sdk.extranet.model.ExtraChargesSupplierDetails;
import travel.wink.sdk.extranet.model.LocalizedTransactionalTravelInventorySupplierDetails;
import travel.wink.sdk.extranet.model.RatePlanSupplierDetails;
import travel.wink.sdk.extranet.model.RoomConfigurationSupplierDetails;
import travel.wink.sdk.extranet.model.StayRateSupplierDetails;
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.*;
/**
* RoomConfigurationPriceSupplierDetails
*/
@JsonPropertyOrder({
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_ADULTS,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_CHILDREN,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_START_DATE,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_END_DATE,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_ROOM_RATE_IDENTIFIER,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_ROOM_RATE_INTERNAL_NAME,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_RATE_PLAN,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_PERK_TYPES,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_PRICE,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_EXTRA_CHARGES,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_CONFIGURATION,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_ADD_ON_OFFERS,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_PERK_VALUE,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_ACTIVE_CANCELLATION_POLICY,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_ROOM_NIGHTS,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_LIST,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_CHANNEL_INVENTORY_IDENTIFIER,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_COMMISSIONABLE,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_COMMISSION,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_PRICE_LIST,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_SOURCE_TOTAL,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_USER_SPECIFIED_CURRENCY_TOTAL,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_INTERNAL_TOTAL,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_AVAILABLE,
RoomConfigurationPriceSupplierDetails.JSON_PROPERTY_RATE_SOURCE
})
@JsonTypeName("RoomConfigurationPrice_SupplierDetails")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T22:29:13.908295668+07:00[Asia/Bangkok]")
public class RoomConfigurationPriceSupplierDetails {
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_START_DATE = "startDate";
private LocalDate startDate;
public static final String JSON_PROPERTY_END_DATE = "endDate";
private LocalDate endDate;
public static final String JSON_PROPERTY_ROOM_RATE_IDENTIFIER = "roomRateIdentifier";
private String roomRateIdentifier;
public static final String JSON_PROPERTY_ROOM_RATE_INTERNAL_NAME = "roomRateInternalName";
private String roomRateInternalName;
public static final String JSON_PROPERTY_RATE_PLAN = "ratePlan";
private RatePlanSupplierDetails ratePlan;
/**
* Perks that accompany the master rate
*/
public enum PerkTypesEnum {
LOYALTY_POINTS("PERK_LOYALTY_POINTS"),
WINE("PERK_WINE"),
FREE_DRINK_VOUCHER("PERK_FREE_DRINK_VOUCHER"),
FREE_MEAL_TWO_PEOPLE("PERK_FREE_MEAL_TWO_PEOPLE"),
FREE_ONE_HOUR_MASSAGE("PERK_FREE_ONE_HOUR_MASSAGE"),
TWENTY_PERCENT_FOOD_BEVERAGE_DISCOUNT("PERK_TWENTY_PERCENT_FOOD_BEVERAGE_DISCOUNT"),
TWENTY_PERCENT_SPA_DISCOUNT_VOUCHER("PERK_TWENTY_PERCENT_SPA_DISCOUNT_VOUCHER"),
GUARANTEED_UPGRADE("PERK_GUARANTEED_UPGRADE"),
EARLY_CHECKIN("PERK_EARLY_CHECKIN"),
ROOM_UPGRADE("PERK_ROOM_UPGRADE"),
LATE_CHECKOUT("PERK_LATE_CHECKOUT"),
AIRPORT_TRANSFER("PERK_AIRPORT_TRANSFER"),
AIRPORT_PICK_UP("PERK_AIRPORT_PICK_UP"),
BOTTLE_CHAMPAGNE_ON_ARRIVAL("PERK_BOTTLE_CHAMPAGNE_ON_ARRIVAL"),
BOTTLE_SPARKLING_WINE_ON_ARRIVAL("PERK_BOTTLE_SPARKLING_WINE_ON_ARRIVAL"),
BOTTLE_WINE_ON_ARRIVAL("PERK_BOTTLE_WINE_ON_ARRIVAL");
private String value;
PerkTypesEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PerkTypesEnum fromValue(String value) {
for (PerkTypesEnum b : PerkTypesEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PERK_TYPES = "perkTypes";
private List perkTypes;
public static final String JSON_PROPERTY_PRICE = "price";
private StayRateSupplierDetails price;
public static final String JSON_PROPERTY_EXTRA_CHARGES = "extraCharges";
private ExtraChargesSupplierDetails extraCharges;
public static final String JSON_PROPERTY_CONFIGURATION = "configuration";
private RoomConfigurationSupplierDetails _configuration;
public static final String JSON_PROPERTY_ADD_ON_OFFERS = "addOnOffers";
private List addOnOffers;
public static final String JSON_PROPERTY_PERK_VALUE = "perkValue";
private Integer perkValue;
public static final String JSON_PROPERTY_ACTIVE_CANCELLATION_POLICY = "activeCancellationPolicy";
private CancellationPolicySupplierDetails activeCancellationPolicy;
public static final String JSON_PROPERTY_ROOM_NIGHTS = "roomNights";
private Integer roomNights;
public static final String JSON_PROPERTY_LIST = "list";
private List _list;
public static final String JSON_PROPERTY_CHANNEL_INVENTORY_IDENTIFIER = "channelInventoryIdentifier";
private String channelInventoryIdentifier;
public static final String JSON_PROPERTY_COMMISSIONABLE = "commissionable";
private Boolean commissionable;
public static final String JSON_PROPERTY_COMMISSION = "commission";
private Float commission;
public static final String JSON_PROPERTY_PRICE_LIST = "priceList";
private List priceList;
public static final String JSON_PROPERTY_SOURCE_TOTAL = "sourceTotal";
private CustomMonetaryAmount sourceTotal;
public static final String JSON_PROPERTY_USER_SPECIFIED_CURRENCY_TOTAL = "userSpecifiedCurrencyTotal";
private CustomMonetaryAmount userSpecifiedCurrencyTotal;
public static final String JSON_PROPERTY_INTERNAL_TOTAL = "internalTotal";
private CustomMonetaryAmount internalTotal;
public static final String JSON_PROPERTY_AVAILABLE = "available";
private Boolean available;
public static final String JSON_PROPERTY_RATE_SOURCE = "rateSource";
private String rateSource;
public RoomConfigurationPriceSupplierDetails() {
}
public RoomConfigurationPriceSupplierDetails adults(Integer adults) {
this.adults = adults;
return this;
}
/**
* The actual amount of adults as determined by the hotel's policy
* @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 RoomConfigurationPriceSupplierDetails children(Integer children) {
this.children = children;
return this;
}
/**
* The actual amount of children as determined by the hotel's policy
* @return children
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CHILDREN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getChildren() {
return children;
}
@JsonProperty(JSON_PROPERTY_CHILDREN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setChildren(Integer children) {
this.children = children;
}
public RoomConfigurationPriceSupplierDetails startDate(LocalDate startDate) {
this.startDate = startDate;
return this;
}
/**
* SimpleDateTimeItinerary 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 RoomConfigurationPriceSupplierDetails endDate(LocalDate endDate) {
this.endDate = endDate;
return this;
}
/**
* SimpleDateTimeItinerary 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 RoomConfigurationPriceSupplierDetails roomRateIdentifier(String roomRateIdentifier) {
this.roomRateIdentifier = roomRateIdentifier;
return this;
}
/**
* Specified master rate identifier
* @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 RoomConfigurationPriceSupplierDetails roomRateInternalName(String roomRateInternalName) {
this.roomRateInternalName = roomRateInternalName;
return this;
}
/**
* Specified master rate internal name
* @return roomRateInternalName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ROOM_RATE_INTERNAL_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getRoomRateInternalName() {
return roomRateInternalName;
}
@JsonProperty(JSON_PROPERTY_ROOM_RATE_INTERNAL_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRoomRateInternalName(String roomRateInternalName) {
this.roomRateInternalName = roomRateInternalName;
}
public RoomConfigurationPriceSupplierDetails ratePlan(RatePlanSupplierDetails ratePlan) {
this.ratePlan = ratePlan;
return this;
}
/**
* Get ratePlan
* @return ratePlan
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_RATE_PLAN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public RatePlanSupplierDetails getRatePlan() {
return ratePlan;
}
@JsonProperty(JSON_PROPERTY_RATE_PLAN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRatePlan(RatePlanSupplierDetails ratePlan) {
this.ratePlan = ratePlan;
}
public RoomConfigurationPriceSupplierDetails perkTypes(List perkTypes) {
this.perkTypes = perkTypes;
return this;
}
public RoomConfigurationPriceSupplierDetails addPerkTypesItem(PerkTypesEnum perkTypesItem) {
if (this.perkTypes == null) {
this.perkTypes = new ArrayList<>();
}
this.perkTypes.add(perkTypesItem);
return this;
}
/**
* Get perkTypes
* @return perkTypes
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PERK_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPerkTypes() {
return perkTypes;
}
@JsonProperty(JSON_PROPERTY_PERK_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPerkTypes(List perkTypes) {
this.perkTypes = perkTypes;
}
public RoomConfigurationPriceSupplierDetails price(StayRateSupplierDetails price) {
this.price = price;
return this;
}
/**
* Get price
* @return price
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_PRICE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public StayRateSupplierDetails getPrice() {
return price;
}
@JsonProperty(JSON_PROPERTY_PRICE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrice(StayRateSupplierDetails price) {
this.price = price;
}
public RoomConfigurationPriceSupplierDetails extraCharges(ExtraChargesSupplierDetails extraCharges) {
this.extraCharges = extraCharges;
return this;
}
/**
* Get extraCharges
* @return extraCharges
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_EXTRA_CHARGES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ExtraChargesSupplierDetails getExtraCharges() {
return extraCharges;
}
@JsonProperty(JSON_PROPERTY_EXTRA_CHARGES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExtraCharges(ExtraChargesSupplierDetails extraCharges) {
this.extraCharges = extraCharges;
}
public RoomConfigurationPriceSupplierDetails _configuration(RoomConfigurationSupplierDetails _configuration) {
this._configuration = _configuration;
return this;
}
/**
* Get _configuration
* @return _configuration
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_CONFIGURATION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public RoomConfigurationSupplierDetails getConfiguration() {
return _configuration;
}
@JsonProperty(JSON_PROPERTY_CONFIGURATION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setConfiguration(RoomConfigurationSupplierDetails _configuration) {
this._configuration = _configuration;
}
public RoomConfigurationPriceSupplierDetails addOnOffers(List addOnOffers) {
this.addOnOffers = addOnOffers;
return this;
}
public RoomConfigurationPriceSupplierDetails addAddOnOffersItem(AddOnLocalizedInventorySupplierDetails addOnOffersItem) {
if (this.addOnOffers == null) {
this.addOnOffers = new ArrayList<>();
}
this.addOnOffers.add(addOnOffersItem);
return this;
}
/**
* Get addOnOffers
* @return addOnOffers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ADD_ON_OFFERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAddOnOffers() {
return addOnOffers;
}
@JsonProperty(JSON_PROPERTY_ADD_ON_OFFERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddOnOffers(List addOnOffers) {
this.addOnOffers = addOnOffers;
}
public RoomConfigurationPriceSupplierDetails perkValue(Integer perkValue) {
this.perkValue = perkValue;
return this;
}
/**
* The combined value of these perks
* @return perkValue
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PERK_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPerkValue() {
return perkValue;
}
@JsonProperty(JSON_PROPERTY_PERK_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPerkValue(Integer perkValue) {
this.perkValue = perkValue;
}
public RoomConfigurationPriceSupplierDetails activeCancellationPolicy(CancellationPolicySupplierDetails activeCancellationPolicy) {
this.activeCancellationPolicy = activeCancellationPolicy;
return this;
}
/**
* Get activeCancellationPolicy
* @return activeCancellationPolicy
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_ACTIVE_CANCELLATION_POLICY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public CancellationPolicySupplierDetails getActiveCancellationPolicy() {
return activeCancellationPolicy;
}
@JsonProperty(JSON_PROPERTY_ACTIVE_CANCELLATION_POLICY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setActiveCancellationPolicy(CancellationPolicySupplierDetails activeCancellationPolicy) {
this.activeCancellationPolicy = activeCancellationPolicy;
}
public RoomConfigurationPriceSupplierDetails roomNights(Integer roomNights) {
this.roomNights = roomNights;
return this;
}
/**
* Number of nights the guests will be staying
* @return roomNights
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ROOM_NIGHTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getRoomNights() {
return roomNights;
}
@JsonProperty(JSON_PROPERTY_ROOM_NIGHTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRoomNights(Integer roomNights) {
this.roomNights = roomNights;
}
public RoomConfigurationPriceSupplierDetails _list(List _list) {
this._list = _list;
return this;
}
public RoomConfigurationPriceSupplierDetails addListItem(LocalizedTransactionalTravelInventorySupplierDetails _listItem) {
if (this._list == null) {
this._list = new ArrayList<>();
}
this._list.add(_listItem);
return this;
}
/**
* Get _list
* @return _list
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getList() {
return _list;
}
@JsonProperty(JSON_PROPERTY_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setList(List _list) {
this._list = _list;
}
public RoomConfigurationPriceSupplierDetails channelInventoryIdentifier(String channelInventoryIdentifier) {
this.channelInventoryIdentifier = channelInventoryIdentifier;
return this;
}
/**
* Sales channel inventory identifier
* @return channelInventoryIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_CHANNEL_INVENTORY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getChannelInventoryIdentifier() {
return channelInventoryIdentifier;
}
@JsonProperty(JSON_PROPERTY_CHANNEL_INVENTORY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setChannelInventoryIdentifier(String channelInventoryIdentifier) {
this.channelInventoryIdentifier = channelInventoryIdentifier;
}
public RoomConfigurationPriceSupplierDetails commissionable(Boolean commissionable) {
this.commissionable = commissionable;
return this;
}
/**
* Whether this package is commissionable based on the incoming sales channel.
* @return commissionable
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_COMMISSIONABLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getCommissionable() {
return commissionable;
}
@JsonProperty(JSON_PROPERTY_COMMISSIONABLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCommissionable(Boolean commissionable) {
this.commissionable = commissionable;
}
public RoomConfigurationPriceSupplierDetails commission(Float commission) {
this.commission = commission;
return this;
}
/**
* The commission percentage.
* @return commission
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_COMMISSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Float getCommission() {
return commission;
}
@JsonProperty(JSON_PROPERTY_COMMISSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCommission(Float commission) {
this.commission = commission;
}
public RoomConfigurationPriceSupplierDetails priceList(List priceList) {
this.priceList = priceList;
return this;
}
public RoomConfigurationPriceSupplierDetails addPriceListItem(LocalizedTransactionalTravelInventorySupplierDetails priceListItem) {
if (this.priceList == null) {
this.priceList = new ArrayList<>();
}
this.priceList.add(priceListItem);
return this;
}
/**
* Get priceList
* @return priceList
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_PRICE_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPriceList() {
return priceList;
}
@JsonProperty(JSON_PROPERTY_PRICE_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPriceList(List priceList) {
this.priceList = priceList;
}
public RoomConfigurationPriceSupplierDetails sourceTotal(CustomMonetaryAmount sourceTotal) {
this.sourceTotal = sourceTotal;
return this;
}
/**
* Get sourceTotal
* @return sourceTotal
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_SOURCE_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getSourceTotal() {
return sourceTotal;
}
@JsonProperty(JSON_PROPERTY_SOURCE_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSourceTotal(CustomMonetaryAmount sourceTotal) {
this.sourceTotal = sourceTotal;
}
public RoomConfigurationPriceSupplierDetails userSpecifiedCurrencyTotal(CustomMonetaryAmount userSpecifiedCurrencyTotal) {
this.userSpecifiedCurrencyTotal = userSpecifiedCurrencyTotal;
return this;
}
/**
* Get userSpecifiedCurrencyTotal
* @return userSpecifiedCurrencyTotal
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_USER_SPECIFIED_CURRENCY_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getUserSpecifiedCurrencyTotal() {
return userSpecifiedCurrencyTotal;
}
@JsonProperty(JSON_PROPERTY_USER_SPECIFIED_CURRENCY_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUserSpecifiedCurrencyTotal(CustomMonetaryAmount userSpecifiedCurrencyTotal) {
this.userSpecifiedCurrencyTotal = userSpecifiedCurrencyTotal;
}
public RoomConfigurationPriceSupplierDetails internalTotal(CustomMonetaryAmount internalTotal) {
this.internalTotal = internalTotal;
return this;
}
/**
* Get internalTotal
* @return internalTotal
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_INTERNAL_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomMonetaryAmount getInternalTotal() {
return internalTotal;
}
@JsonProperty(JSON_PROPERTY_INTERNAL_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInternalTotal(CustomMonetaryAmount internalTotal) {
this.internalTotal = internalTotal;
}
public RoomConfigurationPriceSupplierDetails available(Boolean available) {
this.available = available;
return this;
}
/**
* Get available
* @return available
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AVAILABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAvailable() {
return available;
}
@JsonProperty(JSON_PROPERTY_AVAILABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAvailable(Boolean available) {
this.available = available;
}
public RoomConfigurationPriceSupplierDetails rateSource(String rateSource) {
this.rateSource = rateSource;
return this;
}
/**
* Get rateSource
* @return rateSource
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RATE_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRateSource() {
return rateSource;
}
@JsonProperty(JSON_PROPERTY_RATE_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRateSource(String rateSource) {
this.rateSource = rateSource;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RoomConfigurationPriceSupplierDetails roomConfigurationPriceSupplierDetails = (RoomConfigurationPriceSupplierDetails) o;
return Objects.equals(this.adults, roomConfigurationPriceSupplierDetails.adults) &&
Objects.equals(this.children, roomConfigurationPriceSupplierDetails.children) &&
Objects.equals(this.startDate, roomConfigurationPriceSupplierDetails.startDate) &&
Objects.equals(this.endDate, roomConfigurationPriceSupplierDetails.endDate) &&
Objects.equals(this.roomRateIdentifier, roomConfigurationPriceSupplierDetails.roomRateIdentifier) &&
Objects.equals(this.roomRateInternalName, roomConfigurationPriceSupplierDetails.roomRateInternalName) &&
Objects.equals(this.ratePlan, roomConfigurationPriceSupplierDetails.ratePlan) &&
Objects.equals(this.perkTypes, roomConfigurationPriceSupplierDetails.perkTypes) &&
Objects.equals(this.price, roomConfigurationPriceSupplierDetails.price) &&
Objects.equals(this.extraCharges, roomConfigurationPriceSupplierDetails.extraCharges) &&
Objects.equals(this._configuration, roomConfigurationPriceSupplierDetails._configuration) &&
Objects.equals(this.addOnOffers, roomConfigurationPriceSupplierDetails.addOnOffers) &&
Objects.equals(this.perkValue, roomConfigurationPriceSupplierDetails.perkValue) &&
Objects.equals(this.activeCancellationPolicy, roomConfigurationPriceSupplierDetails.activeCancellationPolicy) &&
Objects.equals(this.roomNights, roomConfigurationPriceSupplierDetails.roomNights) &&
Objects.equals(this._list, roomConfigurationPriceSupplierDetails._list) &&
Objects.equals(this.channelInventoryIdentifier, roomConfigurationPriceSupplierDetails.channelInventoryIdentifier) &&
Objects.equals(this.commissionable, roomConfigurationPriceSupplierDetails.commissionable) &&
Objects.equals(this.commission, roomConfigurationPriceSupplierDetails.commission) &&
Objects.equals(this.priceList, roomConfigurationPriceSupplierDetails.priceList) &&
Objects.equals(this.sourceTotal, roomConfigurationPriceSupplierDetails.sourceTotal) &&
Objects.equals(this.userSpecifiedCurrencyTotal, roomConfigurationPriceSupplierDetails.userSpecifiedCurrencyTotal) &&
Objects.equals(this.internalTotal, roomConfigurationPriceSupplierDetails.internalTotal) &&
Objects.equals(this.available, roomConfigurationPriceSupplierDetails.available) &&
Objects.equals(this.rateSource, roomConfigurationPriceSupplierDetails.rateSource);
}
@Override
public int hashCode() {
return Objects.hash(adults, children, startDate, endDate, roomRateIdentifier, roomRateInternalName, ratePlan, perkTypes, price, extraCharges, _configuration, addOnOffers, perkValue, activeCancellationPolicy, roomNights, _list, channelInventoryIdentifier, commissionable, commission, priceList, sourceTotal, userSpecifiedCurrencyTotal, internalTotal, available, rateSource);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoomConfigurationPriceSupplierDetails {\n");
sb.append(" adults: ").append(toIndentedString(adults)).append("\n");
sb.append(" children: ").append(toIndentedString(children)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" roomRateIdentifier: ").append(toIndentedString(roomRateIdentifier)).append("\n");
sb.append(" roomRateInternalName: ").append(toIndentedString(roomRateInternalName)).append("\n");
sb.append(" ratePlan: ").append(toIndentedString(ratePlan)).append("\n");
sb.append(" perkTypes: ").append(toIndentedString(perkTypes)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" extraCharges: ").append(toIndentedString(extraCharges)).append("\n");
sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
sb.append(" addOnOffers: ").append(toIndentedString(addOnOffers)).append("\n");
sb.append(" perkValue: ").append(toIndentedString(perkValue)).append("\n");
sb.append(" activeCancellationPolicy: ").append(toIndentedString(activeCancellationPolicy)).append("\n");
sb.append(" roomNights: ").append(toIndentedString(roomNights)).append("\n");
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
sb.append(" channelInventoryIdentifier: ").append(toIndentedString(channelInventoryIdentifier)).append("\n");
sb.append(" commissionable: ").append(toIndentedString(commissionable)).append("\n");
sb.append(" commission: ").append(toIndentedString(commission)).append("\n");
sb.append(" priceList: ").append(toIndentedString(priceList)).append("\n");
sb.append(" sourceTotal: ").append(toIndentedString(sourceTotal)).append("\n");
sb.append(" userSpecifiedCurrencyTotal: ").append(toIndentedString(userSpecifiedCurrencyTotal)).append("\n");
sb.append(" internalTotal: ").append(toIndentedString(internalTotal)).append("\n");
sb.append(" available: ").append(toIndentedString(available)).append("\n");
sb.append(" rateSource: ").append(toIndentedString(rateSource)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy