Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Wink API
* # Introduction Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways. # Integrations We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. 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. # 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 ## APIs Not every integrator needs every API. For that reason, we have separated APIs into context. ### Test API - [Ping](/ping): The Ping API is a quick test endpoint to verify that your credentials work Wink. ### Common APIs - [Notifications](/notifications): The Notifications API is a way for us to stay in touch with your user, property or affiliate account. - [User Settings](/user-settings): The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink. ### Consume APIs Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts. - [Configuration](/engine-client): A single endpoint to retrieve whitelabel + customization information for the booking engine. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Booking](/booking): All APIs related to creating bookings on the platform. - [Travel Agent](/travel-agent): The Travel Agent API exposes endpoints to manage agent-facilitated bookings. ### Produce APIs Produce endpoints are for developers who want to create and manage travel inventory. #### Property - [Property registration](/extranet/property/register): As a producer, this is, oftentimes, where you start your journey. These endpoints let you create properties on Wink. - [Property](/extranet/property): This collection of property endpoints are mostly management endpoints that let you display, change status and similar for your existing properties. - [Facilities](/extranet/facilities): This collection of endpoints let you manage facilities; such as room types. - [Experiences](/extranet/experiences): This collection of endpoints let you manage experiences, such as activities. - [Monetize](/extranet/monetize): The Monetize API exposes endpoints for managing cancellation polies, rate plans, promotions and more on Wink. - [Distribution](/extranet/distribution): The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. - [Property Booking](/extranet/booking): The Property Booking API exposes endpoints for managing bookings and reviews at the property-level. #### Affiliate - [Affiliate](/affiliate): This collection of affiliate endpoints are mostly management endpoints that let you display, change status and similar for your existing accounts. - [Browse](/affiliate/browse): The Browse API exposes endpoints for affiliates to find suppliers and inventory to sell. - [Inventory](/affiliate/inventory): The Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it. - [Sales Channel](/affiliate/sales-channel): The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones. - [WinkLinks](/affiliate/winklinks): The WinkLinks API exposes endpoints for affiliates to manage their WinkLinks page. #### Rate provider - [Channel manager](/channel-manager): The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties. ### Taxonomy APIs Taxonomy endpoints are for developers who want to consume and produce travel inventory and need taxonomies of standard and non-standard codes for inventory types, classes, statuses etc. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. ### Insight APIs Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. ### Payment APIs Payment endpoints are for developers who want to purchase travel inventory. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant payment widget for all other entities. - [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 minimally. 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 # Extranet Distribution API The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. This API lets you: 1. Verifier: Test your availability and promotions and create test bookings to simulate the entire booking workflow. 2. Sales Channels: Manage your sales channels. 3. Explore Network: Find new affiliates to work with. 4. Inventory: Manage inventory at the sales channel-level. 5. Calendars: Manage availability calendars for all your inventory. Browse the endpoints in the left navigation bar to get started.
*
* The version of the OpenAPI document: 30.5.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.distribution.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.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import travel.wink.sdk.extranet.distribution.model.AdvanceBookingRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.ArrivalDaysOfWeekRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.AvailableDaysOfWeekRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.BlackoutDateSupplier;
import travel.wink.sdk.extranet.distribution.model.CityRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.ContinentRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.CountryRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.DepartureDaysOfWeekRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.IPRangeRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.LengthOfStayRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.LocalizedDescriptionSupplier;
import travel.wink.sdk.extranet.distribution.model.MinutesBeforeBookingStartDateRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.PrepayRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.PromotionRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.RefundableRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.RequiredDaysOfWeekRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.RoomRangeRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.SellDateRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.StayDateRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.TimezoneRateQualifierSupplier;
import travel.wink.sdk.extranet.distribution.model.VariableChargeSupplier;
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.*;
/**
* Promotions that go together to make up this ancillary.
*/
@JsonPropertyOrder({
RateModifierSupplier.JSON_PROPERTY_IDENTIFIER,
RateModifierSupplier.JSON_PROPERTY_HOTEL_IDENTIFIER,
RateModifierSupplier.JSON_PROPERTY_NAME,
RateModifierSupplier.JSON_PROPERTY_TYPE,
RateModifierSupplier.JSON_PROPERTY_MODIFIER,
RateModifierSupplier.JSON_PROPERTY_ENABLED,
RateModifierSupplier.JSON_PROPERTY_PRICING_TYPE,
RateModifierSupplier.JSON_PROPERTY_DESCRIPTIONS,
RateModifierSupplier.JSON_PROPERTY_CITY_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_CONTINENT_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_COUNTRY_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_PROMOTION_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_IP_RANGE_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_ROOM_RANGE_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_PREPAY_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_REFUNDABLE_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_TIMEZONE_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_LAST_MINUTE_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_LENGTH_OF_STAY_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_ADVANCE_BOOKING_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_STAY_DATE_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_SELL_DATE_RATE_QUALIFIERS,
RateModifierSupplier.JSON_PROPERTY_AVAILABLE_DAYS_OF_WEEK_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_ARRIVAL_DAYS_OF_WEEK_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_DEPARTURE_DAYS_OF_WEEK_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_REQUIRED_DAYS_OF_WEEK_RATE_QUALIFIER,
RateModifierSupplier.JSON_PROPERTY_MASTER_RATE_IDENTIFIERS,
RateModifierSupplier.JSON_PROPERTY_ADD_ON_IDENTIFIERS,
RateModifierSupplier.JSON_PROPERTY_RATE_PLAN_IDENTIFIERS,
RateModifierSupplier.JSON_PROPERTY_BLACKOUT_DATES
})
@JsonTypeName("RateModifier_Supplier")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-15T11:58:01.003340498+07:00[Asia/Bangkok]")
public class RateModifierSupplier {
public static final String JSON_PROPERTY_IDENTIFIER = "identifier";
private UUID identifier;
public static final String JSON_PROPERTY_HOTEL_IDENTIFIER = "hotelIdentifier";
private UUID hotelIdentifier;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
/**
* Set whether you want the price to go up or down when the rules of this promotion have been satisfied.
*/
public enum TypeEnum {
PREMIUM("PREMIUM"),
DISCOUNT("DISCOUNT");
private String value;
TypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_TYPE = "type";
private TypeEnum type;
public static final String JSON_PROPERTY_MODIFIER = "modifier";
private VariableChargeSupplier modifier;
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled = true;
/**
* This determines whether this discount should be applied per night, per stay or per person - per night
*/
public enum PricingTypeEnum {
STAY("PER_STAY"),
DAY("PER_DAY"),
NIGHT("PER_NIGHT"),
USE("PER_USE"),
HOUR("PER_HOUR"),
PERSON("PER_PERSON"),
PERSON_PER_NIGHT("PER_PERSON_PER_NIGHT"),
PERSON_PER_HOUR("PER_PERSON_PER_HOUR"),
ADULT("PER_ADULT"),
ADULT_PER_NIGHT("PER_ADULT_PER_NIGHT"),
ADULT_PER_HOUR("PER_ADULT_PER_HOUR"),
CHILD("PER_CHILD"),
CHILD_PER_NIGHT("PER_CHILD_PER_NIGHT"),
CHILD_PER_HOUR("PER_CHILD_PER_HOUR");
private String value;
PricingTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PricingTypeEnum fromValue(String value) {
for (PricingTypeEnum b : PricingTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PRICING_TYPE = "pricingType";
private PricingTypeEnum pricingType;
public static final String JSON_PROPERTY_DESCRIPTIONS = "descriptions";
private List descriptions = new ArrayList<>();
public static final String JSON_PROPERTY_CITY_RATE_QUALIFIERS = "cityRateQualifiers";
private List cityRateQualifiers;
public static final String JSON_PROPERTY_CONTINENT_RATE_QUALIFIERS = "continentRateQualifiers";
private List continentRateQualifiers;
public static final String JSON_PROPERTY_COUNTRY_RATE_QUALIFIERS = "countryRateQualifiers";
private List countryRateQualifiers;
public static final String JSON_PROPERTY_PROMOTION_RATE_QUALIFIERS = "promotionRateQualifiers";
private List promotionRateQualifiers;
public static final String JSON_PROPERTY_IP_RANGE_RATE_QUALIFIERS = "ipRangeRateQualifiers";
private List ipRangeRateQualifiers;
public static final String JSON_PROPERTY_ROOM_RANGE_RATE_QUALIFIER = "roomRangeRateQualifier";
private RoomRangeRateQualifierSupplier roomRangeRateQualifier;
public static final String JSON_PROPERTY_PREPAY_RATE_QUALIFIER = "prepayRateQualifier";
private PrepayRateQualifierSupplier prepayRateQualifier;
public static final String JSON_PROPERTY_REFUNDABLE_RATE_QUALIFIER = "refundableRateQualifier";
private RefundableRateQualifierSupplier refundableRateQualifier;
public static final String JSON_PROPERTY_TIMEZONE_RATE_QUALIFIERS = "timezoneRateQualifiers";
private List timezoneRateQualifiers;
public static final String JSON_PROPERTY_LAST_MINUTE_RATE_QUALIFIER = "lastMinuteRateQualifier";
private MinutesBeforeBookingStartDateRateQualifierSupplier lastMinuteRateQualifier;
public static final String JSON_PROPERTY_LENGTH_OF_STAY_RATE_QUALIFIER = "lengthOfStayRateQualifier";
private LengthOfStayRateQualifierSupplier lengthOfStayRateQualifier;
public static final String JSON_PROPERTY_ADVANCE_BOOKING_RATE_QUALIFIER = "advanceBookingRateQualifier";
private AdvanceBookingRateQualifierSupplier advanceBookingRateQualifier;
public static final String JSON_PROPERTY_STAY_DATE_RATE_QUALIFIERS = "stayDateRateQualifiers";
private List stayDateRateQualifiers;
public static final String JSON_PROPERTY_SELL_DATE_RATE_QUALIFIERS = "sellDateRateQualifiers";
private List sellDateRateQualifiers;
public static final String JSON_PROPERTY_AVAILABLE_DAYS_OF_WEEK_RATE_QUALIFIER = "availableDaysOfWeekRateQualifier";
private AvailableDaysOfWeekRateQualifierSupplier availableDaysOfWeekRateQualifier;
public static final String JSON_PROPERTY_ARRIVAL_DAYS_OF_WEEK_RATE_QUALIFIER = "arrivalDaysOfWeekRateQualifier";
private ArrivalDaysOfWeekRateQualifierSupplier arrivalDaysOfWeekRateQualifier;
public static final String JSON_PROPERTY_DEPARTURE_DAYS_OF_WEEK_RATE_QUALIFIER = "departureDaysOfWeekRateQualifier";
private DepartureDaysOfWeekRateQualifierSupplier departureDaysOfWeekRateQualifier;
public static final String JSON_PROPERTY_REQUIRED_DAYS_OF_WEEK_RATE_QUALIFIER = "requiredDaysOfWeekRateQualifier";
private RequiredDaysOfWeekRateQualifierSupplier requiredDaysOfWeekRateQualifier;
public static final String JSON_PROPERTY_MASTER_RATE_IDENTIFIERS = "masterRateIdentifiers";
private List masterRateIdentifiers;
public static final String JSON_PROPERTY_ADD_ON_IDENTIFIERS = "addOnIdentifiers";
private List addOnIdentifiers;
public static final String JSON_PROPERTY_RATE_PLAN_IDENTIFIERS = "ratePlanIdentifiers";
private List ratePlanIdentifiers;
public static final String JSON_PROPERTY_BLACKOUT_DATES = "blackoutDates";
private List blackoutDates;
public RateModifierSupplier() {
}
public RateModifierSupplier identifier(UUID identifier) {
this.identifier = identifier;
return this;
}
/**
* Unique record identifier
* @return identifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public UUID getIdentifier() {
return identifier;
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIdentifier(UUID identifier) {
this.identifier = identifier;
}
public RateModifierSupplier hotelIdentifier(UUID hotelIdentifier) {
this.hotelIdentifier = hotelIdentifier;
return this;
}
/**
* Hotel identifier.
* @return hotelIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_HOTEL_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public UUID getHotelIdentifier() {
return hotelIdentifier;
}
@JsonProperty(JSON_PROPERTY_HOTEL_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHotelIdentifier(UUID hotelIdentifier) {
this.hotelIdentifier = hotelIdentifier;
}
public RateModifierSupplier name(String name) {
this.name = name;
return this;
}
/**
* Internal name of promotion.
* @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 RateModifierSupplier type(TypeEnum type) {
this.type = type;
return this;
}
/**
* Set whether you want the price to go up or down when the rules of this promotion have been satisfied.
* @return type
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public TypeEnum getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setType(TypeEnum type) {
this.type = type;
}
public RateModifierSupplier modifier(VariableChargeSupplier modifier) {
this.modifier = modifier;
return this;
}
/**
* Get modifier
* @return modifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_MODIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public VariableChargeSupplier getModifier() {
return modifier;
}
@JsonProperty(JSON_PROPERTY_MODIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setModifier(VariableChargeSupplier modifier) {
this.modifier = modifier;
}
public RateModifierSupplier enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Whether this promotion is enabled or not.
* @return enabled
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getEnabled() {
return enabled;
}
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public RateModifierSupplier pricingType(PricingTypeEnum pricingType) {
this.pricingType = pricingType;
return this;
}
/**
* This determines whether this discount should be applied per night, per stay or per person - per night
* @return pricingType
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_PRICING_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public PricingTypeEnum getPricingType() {
return pricingType;
}
@JsonProperty(JSON_PROPERTY_PRICING_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPricingType(PricingTypeEnum pricingType) {
this.pricingType = pricingType;
}
public RateModifierSupplier descriptions(List descriptions) {
this.descriptions = descriptions;
return this;
}
public RateModifierSupplier addDescriptionsItem(LocalizedDescriptionSupplier descriptionsItem) {
if (this.descriptions == null) {
this.descriptions = new ArrayList<>();
}
this.descriptions.add(descriptionsItem);
return this;
}
/**
* Localized descriptions describing promotion. At least one English entry is required.
* @return descriptions
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_DESCRIPTIONS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDescriptions() {
return descriptions;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTIONS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDescriptions(List descriptions) {
this.descriptions = descriptions;
}
public RateModifierSupplier cityRateQualifiers(List cityRateQualifiers) {
this.cityRateQualifiers = cityRateQualifiers;
return this;
}
public RateModifierSupplier addCityRateQualifiersItem(CityRateQualifierSupplier cityRateQualifiersItem) {
if (this.cityRateQualifiers == null) {
this.cityRateQualifiers = new ArrayList<>();
}
this.cityRateQualifiers.add(cityRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific cities. See [Geo-IP city geoname data](#operation/searchForCity)
* @return cityRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_CITY_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCityRateQualifiers() {
return cityRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_CITY_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCityRateQualifiers(List cityRateQualifiers) {
this.cityRateQualifiers = cityRateQualifiers;
}
public RateModifierSupplier continentRateQualifiers(List continentRateQualifiers) {
this.continentRateQualifiers = continentRateQualifiers;
return this;
}
public RateModifierSupplier addContinentRateQualifiersItem(ContinentRateQualifierSupplier continentRateQualifiersItem) {
if (this.continentRateQualifiers == null) {
this.continentRateQualifiers = new ArrayList<>();
}
this.continentRateQualifiers.add(continentRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific continents. See [Geo-IP continent geoname data](#operation/showContinents)
* @return continentRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_CONTINENT_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getContinentRateQualifiers() {
return continentRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_CONTINENT_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setContinentRateQualifiers(List continentRateQualifiers) {
this.continentRateQualifiers = continentRateQualifiers;
}
public RateModifierSupplier countryRateQualifiers(List countryRateQualifiers) {
this.countryRateQualifiers = countryRateQualifiers;
return this;
}
public RateModifierSupplier addCountryRateQualifiersItem(CountryRateQualifierSupplier countryRateQualifiersItem) {
if (this.countryRateQualifiers == null) {
this.countryRateQualifiers = new ArrayList<>();
}
this.countryRateQualifiers.add(countryRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific countries. See [Geo-IP country geoname data](#operation/showCountries)
* @return countryRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_COUNTRY_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCountryRateQualifiers() {
return countryRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_COUNTRY_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCountryRateQualifiers(List countryRateQualifiers) {
this.countryRateQualifiers = countryRateQualifiers;
}
public RateModifierSupplier promotionRateQualifiers(List promotionRateQualifiers) {
this.promotionRateQualifiers = promotionRateQualifiers;
return this;
}
public RateModifierSupplier addPromotionRateQualifiersItem(PromotionRateQualifierSupplier promotionRateQualifiersItem) {
if (this.promotionRateQualifiers == null) {
this.promotionRateQualifiers = new ArrayList<>();
}
this.promotionRateQualifiers.add(promotionRateQualifiersItem);
return this;
}
/**
* Restrict promotion by requiring users to enter a promo code.
* @return promotionRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_PROMOTION_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPromotionRateQualifiers() {
return promotionRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_PROMOTION_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPromotionRateQualifiers(List promotionRateQualifiers) {
this.promotionRateQualifiers = promotionRateQualifiers;
}
public RateModifierSupplier ipRangeRateQualifiers(List ipRangeRateQualifiers) {
this.ipRangeRateQualifiers = ipRangeRateQualifiers;
return this;
}
public RateModifierSupplier addIpRangeRateQualifiersItem(IPRangeRateQualifierSupplier ipRangeRateQualifiersItem) {
if (this.ipRangeRateQualifiers == null) {
this.ipRangeRateQualifiers = new ArrayList<>();
}
this.ipRangeRateQualifiers.add(ipRangeRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific IP ranges.
* @return ipRangeRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_IP_RANGE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getIpRangeRateQualifiers() {
return ipRangeRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_IP_RANGE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIpRangeRateQualifiers(List ipRangeRateQualifiers) {
this.ipRangeRateQualifiers = ipRangeRateQualifiers;
}
public RateModifierSupplier roomRangeRateQualifier(RoomRangeRateQualifierSupplier roomRangeRateQualifier) {
this.roomRangeRateQualifier = roomRangeRateQualifier;
return this;
}
/**
* Get roomRangeRateQualifier
* @return roomRangeRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ROOM_RANGE_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RoomRangeRateQualifierSupplier getRoomRangeRateQualifier() {
return roomRangeRateQualifier;
}
@JsonProperty(JSON_PROPERTY_ROOM_RANGE_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRoomRangeRateQualifier(RoomRangeRateQualifierSupplier roomRangeRateQualifier) {
this.roomRangeRateQualifier = roomRangeRateQualifier;
}
public RateModifierSupplier prepayRateQualifier(PrepayRateQualifierSupplier prepayRateQualifier) {
this.prepayRateQualifier = prepayRateQualifier;
return this;
}
/**
* Get prepayRateQualifier
* @return prepayRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_PREPAY_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PrepayRateQualifierSupplier getPrepayRateQualifier() {
return prepayRateQualifier;
}
@JsonProperty(JSON_PROPERTY_PREPAY_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPrepayRateQualifier(PrepayRateQualifierSupplier prepayRateQualifier) {
this.prepayRateQualifier = prepayRateQualifier;
}
public RateModifierSupplier refundableRateQualifier(RefundableRateQualifierSupplier refundableRateQualifier) {
this.refundableRateQualifier = refundableRateQualifier;
return this;
}
/**
* Get refundableRateQualifier
* @return refundableRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_REFUNDABLE_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RefundableRateQualifierSupplier getRefundableRateQualifier() {
return refundableRateQualifier;
}
@JsonProperty(JSON_PROPERTY_REFUNDABLE_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRefundableRateQualifier(RefundableRateQualifierSupplier refundableRateQualifier) {
this.refundableRateQualifier = refundableRateQualifier;
}
public RateModifierSupplier timezoneRateQualifiers(List timezoneRateQualifiers) {
this.timezoneRateQualifiers = timezoneRateQualifiers;
return this;
}
public RateModifierSupplier addTimezoneRateQualifiersItem(TimezoneRateQualifierSupplier timezoneRateQualifiersItem) {
if (this.timezoneRateQualifiers == null) {
this.timezoneRateQualifiers = new ArrayList<>();
}
this.timezoneRateQualifiers.add(timezoneRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific time zones. See [Geo-IP timezone geoname data](#operation/showTimezones)
* @return timezoneRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_TIMEZONE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getTimezoneRateQualifiers() {
return timezoneRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_TIMEZONE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTimezoneRateQualifiers(List timezoneRateQualifiers) {
this.timezoneRateQualifiers = timezoneRateQualifiers;
}
public RateModifierSupplier lastMinuteRateQualifier(MinutesBeforeBookingStartDateRateQualifierSupplier lastMinuteRateQualifier) {
this.lastMinuteRateQualifier = lastMinuteRateQualifier;
return this;
}
/**
* Get lastMinuteRateQualifier
* @return lastMinuteRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_LAST_MINUTE_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MinutesBeforeBookingStartDateRateQualifierSupplier getLastMinuteRateQualifier() {
return lastMinuteRateQualifier;
}
@JsonProperty(JSON_PROPERTY_LAST_MINUTE_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastMinuteRateQualifier(MinutesBeforeBookingStartDateRateQualifierSupplier lastMinuteRateQualifier) {
this.lastMinuteRateQualifier = lastMinuteRateQualifier;
}
public RateModifierSupplier lengthOfStayRateQualifier(LengthOfStayRateQualifierSupplier lengthOfStayRateQualifier) {
this.lengthOfStayRateQualifier = lengthOfStayRateQualifier;
return this;
}
/**
* Get lengthOfStayRateQualifier
* @return lengthOfStayRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_LENGTH_OF_STAY_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LengthOfStayRateQualifierSupplier getLengthOfStayRateQualifier() {
return lengthOfStayRateQualifier;
}
@JsonProperty(JSON_PROPERTY_LENGTH_OF_STAY_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLengthOfStayRateQualifier(LengthOfStayRateQualifierSupplier lengthOfStayRateQualifier) {
this.lengthOfStayRateQualifier = lengthOfStayRateQualifier;
}
public RateModifierSupplier advanceBookingRateQualifier(AdvanceBookingRateQualifierSupplier advanceBookingRateQualifier) {
this.advanceBookingRateQualifier = advanceBookingRateQualifier;
return this;
}
/**
* Get advanceBookingRateQualifier
* @return advanceBookingRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ADVANCE_BOOKING_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AdvanceBookingRateQualifierSupplier getAdvanceBookingRateQualifier() {
return advanceBookingRateQualifier;
}
@JsonProperty(JSON_PROPERTY_ADVANCE_BOOKING_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdvanceBookingRateQualifier(AdvanceBookingRateQualifierSupplier advanceBookingRateQualifier) {
this.advanceBookingRateQualifier = advanceBookingRateQualifier;
}
public RateModifierSupplier stayDateRateQualifiers(List stayDateRateQualifiers) {
this.stayDateRateQualifiers = stayDateRateQualifiers;
return this;
}
public RateModifierSupplier addStayDateRateQualifiersItem(StayDateRateQualifierSupplier stayDateRateQualifiersItem) {
if (this.stayDateRateQualifiers == null) {
this.stayDateRateQualifiers = new ArrayList<>();
}
this.stayDateRateQualifiers.add(stayDateRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific stay dates the user wants to arrive.
* @return stayDateRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_STAY_DATE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getStayDateRateQualifiers() {
return stayDateRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_STAY_DATE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStayDateRateQualifiers(List stayDateRateQualifiers) {
this.stayDateRateQualifiers = stayDateRateQualifiers;
}
public RateModifierSupplier sellDateRateQualifiers(List sellDateRateQualifiers) {
this.sellDateRateQualifiers = sellDateRateQualifiers;
return this;
}
public RateModifierSupplier addSellDateRateQualifiersItem(SellDateRateQualifierSupplier sellDateRateQualifiersItem) {
if (this.sellDateRateQualifiers == null) {
this.sellDateRateQualifiers = new ArrayList<>();
}
this.sellDateRateQualifiers.add(sellDateRateQualifiersItem);
return this;
}
/**
* Restrict promotion to specific dates the booking is made.
* @return sellDateRateQualifiers
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_SELL_DATE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getSellDateRateQualifiers() {
return sellDateRateQualifiers;
}
@JsonProperty(JSON_PROPERTY_SELL_DATE_RATE_QUALIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSellDateRateQualifiers(List sellDateRateQualifiers) {
this.sellDateRateQualifiers = sellDateRateQualifiers;
}
public RateModifierSupplier availableDaysOfWeekRateQualifier(AvailableDaysOfWeekRateQualifierSupplier availableDaysOfWeekRateQualifier) {
this.availableDaysOfWeekRateQualifier = availableDaysOfWeekRateQualifier;
return this;
}
/**
* Get availableDaysOfWeekRateQualifier
* @return availableDaysOfWeekRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_AVAILABLE_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AvailableDaysOfWeekRateQualifierSupplier getAvailableDaysOfWeekRateQualifier() {
return availableDaysOfWeekRateQualifier;
}
@JsonProperty(JSON_PROPERTY_AVAILABLE_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAvailableDaysOfWeekRateQualifier(AvailableDaysOfWeekRateQualifierSupplier availableDaysOfWeekRateQualifier) {
this.availableDaysOfWeekRateQualifier = availableDaysOfWeekRateQualifier;
}
public RateModifierSupplier arrivalDaysOfWeekRateQualifier(ArrivalDaysOfWeekRateQualifierSupplier arrivalDaysOfWeekRateQualifier) {
this.arrivalDaysOfWeekRateQualifier = arrivalDaysOfWeekRateQualifier;
return this;
}
/**
* Get arrivalDaysOfWeekRateQualifier
* @return arrivalDaysOfWeekRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ARRIVAL_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ArrivalDaysOfWeekRateQualifierSupplier getArrivalDaysOfWeekRateQualifier() {
return arrivalDaysOfWeekRateQualifier;
}
@JsonProperty(JSON_PROPERTY_ARRIVAL_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrivalDaysOfWeekRateQualifier(ArrivalDaysOfWeekRateQualifierSupplier arrivalDaysOfWeekRateQualifier) {
this.arrivalDaysOfWeekRateQualifier = arrivalDaysOfWeekRateQualifier;
}
public RateModifierSupplier departureDaysOfWeekRateQualifier(DepartureDaysOfWeekRateQualifierSupplier departureDaysOfWeekRateQualifier) {
this.departureDaysOfWeekRateQualifier = departureDaysOfWeekRateQualifier;
return this;
}
/**
* Get departureDaysOfWeekRateQualifier
* @return departureDaysOfWeekRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_DEPARTURE_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DepartureDaysOfWeekRateQualifierSupplier getDepartureDaysOfWeekRateQualifier() {
return departureDaysOfWeekRateQualifier;
}
@JsonProperty(JSON_PROPERTY_DEPARTURE_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDepartureDaysOfWeekRateQualifier(DepartureDaysOfWeekRateQualifierSupplier departureDaysOfWeekRateQualifier) {
this.departureDaysOfWeekRateQualifier = departureDaysOfWeekRateQualifier;
}
public RateModifierSupplier requiredDaysOfWeekRateQualifier(RequiredDaysOfWeekRateQualifierSupplier requiredDaysOfWeekRateQualifier) {
this.requiredDaysOfWeekRateQualifier = requiredDaysOfWeekRateQualifier;
return this;
}
/**
* Get requiredDaysOfWeekRateQualifier
* @return requiredDaysOfWeekRateQualifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_REQUIRED_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RequiredDaysOfWeekRateQualifierSupplier getRequiredDaysOfWeekRateQualifier() {
return requiredDaysOfWeekRateQualifier;
}
@JsonProperty(JSON_PROPERTY_REQUIRED_DAYS_OF_WEEK_RATE_QUALIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRequiredDaysOfWeekRateQualifier(RequiredDaysOfWeekRateQualifierSupplier requiredDaysOfWeekRateQualifier) {
this.requiredDaysOfWeekRateQualifier = requiredDaysOfWeekRateQualifier;
}
public RateModifierSupplier masterRateIdentifiers(List masterRateIdentifiers) {
this.masterRateIdentifiers = masterRateIdentifiers;
return this;
}
public RateModifierSupplier addMasterRateIdentifiersItem(String masterRateIdentifiersItem) {
if (this.masterRateIdentifiers == null) {
this.masterRateIdentifiers = new ArrayList<>();
}
this.masterRateIdentifiers.add(masterRateIdentifiersItem);
return this;
}
/**
* Restrict on specific master rates.
* @return masterRateIdentifiers
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MASTER_RATE_IDENTIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMasterRateIdentifiers() {
return masterRateIdentifiers;
}
@JsonProperty(JSON_PROPERTY_MASTER_RATE_IDENTIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMasterRateIdentifiers(List masterRateIdentifiers) {
this.masterRateIdentifiers = masterRateIdentifiers;
}
public RateModifierSupplier addOnIdentifiers(List addOnIdentifiers) {
this.addOnIdentifiers = addOnIdentifiers;
return this;
}
public RateModifierSupplier addAddOnIdentifiersItem(String addOnIdentifiersItem) {
if (this.addOnIdentifiers == null) {
this.addOnIdentifiers = new ArrayList<>();
}
this.addOnIdentifiers.add(addOnIdentifiersItem);
return this;
}
/**
* Restrict on specific add-ons.
* @return addOnIdentifiers
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADD_ON_IDENTIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAddOnIdentifiers() {
return addOnIdentifiers;
}
@JsonProperty(JSON_PROPERTY_ADD_ON_IDENTIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddOnIdentifiers(List addOnIdentifiers) {
this.addOnIdentifiers = addOnIdentifiers;
}
public RateModifierSupplier ratePlanIdentifiers(List ratePlanIdentifiers) {
this.ratePlanIdentifiers = ratePlanIdentifiers;
return this;
}
public RateModifierSupplier addRatePlanIdentifiersItem(String ratePlanIdentifiersItem) {
if (this.ratePlanIdentifiers == null) {
this.ratePlanIdentifiers = new ArrayList<>();
}
this.ratePlanIdentifiers.add(ratePlanIdentifiersItem);
return this;
}
/**
* Restrict on specific rate plans.
* @return ratePlanIdentifiers
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RATE_PLAN_IDENTIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRatePlanIdentifiers() {
return ratePlanIdentifiers;
}
@JsonProperty(JSON_PROPERTY_RATE_PLAN_IDENTIFIERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatePlanIdentifiers(List ratePlanIdentifiers) {
this.ratePlanIdentifiers = ratePlanIdentifiers;
}
public RateModifierSupplier blackoutDates(List blackoutDates) {
this.blackoutDates = blackoutDates;
return this;
}
public RateModifierSupplier addBlackoutDatesItem(BlackoutDateSupplier blackoutDatesItem) {
if (this.blackoutDates == null) {
this.blackoutDates = new ArrayList<>();
}
this.blackoutDates.add(blackoutDatesItem);
return this;
}
/**
* Exclude this promotion from specific date ranges.
* @return blackoutDates
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_BLACKOUT_DATES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getBlackoutDates() {
return blackoutDates;
}
@JsonProperty(JSON_PROPERTY_BLACKOUT_DATES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBlackoutDates(List blackoutDates) {
this.blackoutDates = blackoutDates;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RateModifierSupplier rateModifierSupplier = (RateModifierSupplier) o;
return Objects.equals(this.identifier, rateModifierSupplier.identifier) &&
Objects.equals(this.hotelIdentifier, rateModifierSupplier.hotelIdentifier) &&
Objects.equals(this.name, rateModifierSupplier.name) &&
Objects.equals(this.type, rateModifierSupplier.type) &&
Objects.equals(this.modifier, rateModifierSupplier.modifier) &&
Objects.equals(this.enabled, rateModifierSupplier.enabled) &&
Objects.equals(this.pricingType, rateModifierSupplier.pricingType) &&
Objects.equals(this.descriptions, rateModifierSupplier.descriptions) &&
Objects.equals(this.cityRateQualifiers, rateModifierSupplier.cityRateQualifiers) &&
Objects.equals(this.continentRateQualifiers, rateModifierSupplier.continentRateQualifiers) &&
Objects.equals(this.countryRateQualifiers, rateModifierSupplier.countryRateQualifiers) &&
Objects.equals(this.promotionRateQualifiers, rateModifierSupplier.promotionRateQualifiers) &&
Objects.equals(this.ipRangeRateQualifiers, rateModifierSupplier.ipRangeRateQualifiers) &&
Objects.equals(this.roomRangeRateQualifier, rateModifierSupplier.roomRangeRateQualifier) &&
Objects.equals(this.prepayRateQualifier, rateModifierSupplier.prepayRateQualifier) &&
Objects.equals(this.refundableRateQualifier, rateModifierSupplier.refundableRateQualifier) &&
Objects.equals(this.timezoneRateQualifiers, rateModifierSupplier.timezoneRateQualifiers) &&
Objects.equals(this.lastMinuteRateQualifier, rateModifierSupplier.lastMinuteRateQualifier) &&
Objects.equals(this.lengthOfStayRateQualifier, rateModifierSupplier.lengthOfStayRateQualifier) &&
Objects.equals(this.advanceBookingRateQualifier, rateModifierSupplier.advanceBookingRateQualifier) &&
Objects.equals(this.stayDateRateQualifiers, rateModifierSupplier.stayDateRateQualifiers) &&
Objects.equals(this.sellDateRateQualifiers, rateModifierSupplier.sellDateRateQualifiers) &&
Objects.equals(this.availableDaysOfWeekRateQualifier, rateModifierSupplier.availableDaysOfWeekRateQualifier) &&
Objects.equals(this.arrivalDaysOfWeekRateQualifier, rateModifierSupplier.arrivalDaysOfWeekRateQualifier) &&
Objects.equals(this.departureDaysOfWeekRateQualifier, rateModifierSupplier.departureDaysOfWeekRateQualifier) &&
Objects.equals(this.requiredDaysOfWeekRateQualifier, rateModifierSupplier.requiredDaysOfWeekRateQualifier) &&
Objects.equals(this.masterRateIdentifiers, rateModifierSupplier.masterRateIdentifiers) &&
Objects.equals(this.addOnIdentifiers, rateModifierSupplier.addOnIdentifiers) &&
Objects.equals(this.ratePlanIdentifiers, rateModifierSupplier.ratePlanIdentifiers) &&
Objects.equals(this.blackoutDates, rateModifierSupplier.blackoutDates);
}
@Override
public int hashCode() {
return Objects.hash(identifier, hotelIdentifier, name, type, modifier, enabled, pricingType, descriptions, cityRateQualifiers, continentRateQualifiers, countryRateQualifiers, promotionRateQualifiers, ipRangeRateQualifiers, roomRangeRateQualifier, prepayRateQualifier, refundableRateQualifier, timezoneRateQualifiers, lastMinuteRateQualifier, lengthOfStayRateQualifier, advanceBookingRateQualifier, stayDateRateQualifiers, sellDateRateQualifiers, availableDaysOfWeekRateQualifier, arrivalDaysOfWeekRateQualifier, departureDaysOfWeekRateQualifier, requiredDaysOfWeekRateQualifier, masterRateIdentifiers, addOnIdentifiers, ratePlanIdentifiers, blackoutDates);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RateModifierSupplier {\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" hotelIdentifier: ").append(toIndentedString(hotelIdentifier)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" modifier: ").append(toIndentedString(modifier)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" pricingType: ").append(toIndentedString(pricingType)).append("\n");
sb.append(" descriptions: ").append(toIndentedString(descriptions)).append("\n");
sb.append(" cityRateQualifiers: ").append(toIndentedString(cityRateQualifiers)).append("\n");
sb.append(" continentRateQualifiers: ").append(toIndentedString(continentRateQualifiers)).append("\n");
sb.append(" countryRateQualifiers: ").append(toIndentedString(countryRateQualifiers)).append("\n");
sb.append(" promotionRateQualifiers: ").append(toIndentedString(promotionRateQualifiers)).append("\n");
sb.append(" ipRangeRateQualifiers: ").append(toIndentedString(ipRangeRateQualifiers)).append("\n");
sb.append(" roomRangeRateQualifier: ").append(toIndentedString(roomRangeRateQualifier)).append("\n");
sb.append(" prepayRateQualifier: ").append(toIndentedString(prepayRateQualifier)).append("\n");
sb.append(" refundableRateQualifier: ").append(toIndentedString(refundableRateQualifier)).append("\n");
sb.append(" timezoneRateQualifiers: ").append(toIndentedString(timezoneRateQualifiers)).append("\n");
sb.append(" lastMinuteRateQualifier: ").append(toIndentedString(lastMinuteRateQualifier)).append("\n");
sb.append(" lengthOfStayRateQualifier: ").append(toIndentedString(lengthOfStayRateQualifier)).append("\n");
sb.append(" advanceBookingRateQualifier: ").append(toIndentedString(advanceBookingRateQualifier)).append("\n");
sb.append(" stayDateRateQualifiers: ").append(toIndentedString(stayDateRateQualifiers)).append("\n");
sb.append(" sellDateRateQualifiers: ").append(toIndentedString(sellDateRateQualifiers)).append("\n");
sb.append(" availableDaysOfWeekRateQualifier: ").append(toIndentedString(availableDaysOfWeekRateQualifier)).append("\n");
sb.append(" arrivalDaysOfWeekRateQualifier: ").append(toIndentedString(arrivalDaysOfWeekRateQualifier)).append("\n");
sb.append(" departureDaysOfWeekRateQualifier: ").append(toIndentedString(departureDaysOfWeekRateQualifier)).append("\n");
sb.append(" requiredDaysOfWeekRateQualifier: ").append(toIndentedString(requiredDaysOfWeekRateQualifier)).append("\n");
sb.append(" masterRateIdentifiers: ").append(toIndentedString(masterRateIdentifiers)).append("\n");
sb.append(" addOnIdentifiers: ").append(toIndentedString(addOnIdentifiers)).append("\n");
sb.append(" ratePlanIdentifiers: ").append(toIndentedString(ratePlanIdentifiers)).append("\n");
sb.append(" blackoutDates: ").append(toIndentedString(blackoutDates)).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 ");
}
}