travel.wink.sdk.affiliate.model.UpsertEngineConfigurationRequestAffiliate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of affiliate-sdk-java Show documentation
Show all versions of affiliate-sdk-java Show documentation
Java SDK for the wink Affiliate 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 Acquiring](/payment-acquiring): All APIs related to capture payment details such as a Stripe payment intent. - [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 # Affiliate API Welcome to the Affiliate API - A programmer-friendly way to search for and display bespoke travel inventory for your audience. Use this API to help you prepare travel inventory for sale. # Intended Audience Programmers are a requirement to start integrating with wink. You will benefit from an API integration if you are new or existing travel related company that want easy access to great inventory.## Examples: - Hotel brands / chains that want to make their own booking engine - Travel tech companies that want to create the next hot mobile travel app - Destination sites that want to make their own booking engine - Bloggers and influencers who want to sell travel inventory to their audience - OTAs that want access direct relationships with suppliers and better quality hotel inventory
*
* The version of the OpenAPI document: 24.0.0
* 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.affiliate.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import travel.wink.sdk.affiliate.model.EngineConfigurationThemeAffiliate;
import travel.wink.sdk.affiliate.model.RoomConfigurationAffiliate;
import travel.wink.sdk.affiliate.model.SimpleMultimediaAffiliate;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import javax.validation.constraints.*;
import javax.validation.Valid;
import org.hibernate.validator.constraints.*;
/**
* UpsertEngineConfigurationRequestAffiliate
*/
@JsonPropertyOrder({
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_NAME,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_APPEND_TO_PAGE_TITLE,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_GOOGLE_TAG_MANAGER_KEY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_WC_GOOGLE_TAG_MANAGER_KEY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_GOOGLE_MAPS_A_P_I_KEY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_WC_GOOGLE_MAPS_A_P_I_KEY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_TAWK_TO_KEY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_WC_TAWK_TO_KEY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_DEFAULT_CURRENCY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_DEFAULT_LANGUAGE,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_LOGOS,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_HOSTED_BOOKING_ENGINE_URL,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_SELF_HOSTED,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_THEME_COLORS,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_NUMBER_OF_ADVANCE_DAYS,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_NUMBER_OF_STAY_DAYS,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_START_DATE,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_END_DATE,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_ROOM_CONFIGURATIONS,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_USE_DAYS,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_PROMOTIONAL_CODES,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_PROPERTY,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_BOOKER,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_CHANNEL_MANAGER,
UpsertEngineConfigurationRequestAffiliate.JSON_PROPERTY_WC_BOOK_CLICK_ACTION
})
@JsonTypeName("UpsertEngineConfigurationRequest_Affiliate")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-03-06T16:56:30.815925180+07:00[Asia/Bangkok]")
public class UpsertEngineConfigurationRequestAffiliate {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_APPEND_TO_PAGE_TITLE = "appendToPageTitle";
private String appendToPageTitle;
public static final String JSON_PROPERTY_GOOGLE_TAG_MANAGER_KEY = "googleTagManagerKey";
private String googleTagManagerKey;
public static final String JSON_PROPERTY_WC_GOOGLE_TAG_MANAGER_KEY = "wcGoogleTagManagerKey";
private String wcGoogleTagManagerKey;
public static final String JSON_PROPERTY_GOOGLE_MAPS_A_P_I_KEY = "googleMapsAPIKey";
private String googleMapsAPIKey;
public static final String JSON_PROPERTY_WC_GOOGLE_MAPS_A_P_I_KEY = "wcGoogleMapsAPIKey";
private String wcGoogleMapsAPIKey;
public static final String JSON_PROPERTY_TAWK_TO_KEY = "tawkToKey";
private String tawkToKey;
public static final String JSON_PROPERTY_WC_TAWK_TO_KEY = "wcTawkToKey";
private String wcTawkToKey;
public static final String JSON_PROPERTY_DEFAULT_CURRENCY = "defaultCurrency";
private String defaultCurrency = "USD";
public static final String JSON_PROPERTY_DEFAULT_LANGUAGE = "defaultLanguage";
private String defaultLanguage = "en";
public static final String JSON_PROPERTY_LOGOS = "logos";
private List logos = null;
public static final String JSON_PROPERTY_HOSTED_BOOKING_ENGINE_URL = "hostedBookingEngineUrl";
private String hostedBookingEngineUrl = "https://ota.wink.travel";
public static final String JSON_PROPERTY_SELF_HOSTED = "selfHosted";
private Boolean selfHosted = false;
public static final String JSON_PROPERTY_THEME_COLORS = "themeColors";
private EngineConfigurationThemeAffiliate themeColors;
public static final String JSON_PROPERTY_NUMBER_OF_ADVANCE_DAYS = "numberOfAdvanceDays";
private Integer numberOfAdvanceDays;
public static final String JSON_PROPERTY_NUMBER_OF_STAY_DAYS = "numberOfStayDays";
private Integer numberOfStayDays;
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_CONFIGURATIONS = "roomConfigurations";
private List roomConfigurations = null;
public static final String JSON_PROPERTY_USE_DAYS = "useDays";
private Boolean useDays;
public static final String JSON_PROPERTY_PROMOTIONAL_CODES = "promotionalCodes";
private List promotionalCodes = null;
public static final String JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_PROPERTY = "sendBookingNotificationEmailsToProperty";
private Boolean sendBookingNotificationEmailsToProperty = true;
public static final String JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_BOOKER = "sendBookingNotificationEmailsToBooker";
private Boolean sendBookingNotificationEmailsToBooker = true;
public static final String JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_CHANNEL_MANAGER = "sendBookingNotificationEmailsToChannelManager";
private Boolean sendBookingNotificationEmailsToChannelManager = true;
/**
* Action to complete once a user clicks on the CTA button on inventory.
*/
public enum WcBookClickActionEnum {
FORWARD_TO_IBE("FORWARD_TO_IBE"),
IBE_MODAL("IBE_MODAL");
private String value;
WcBookClickActionEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static WcBookClickActionEnum fromValue(String value) {
for (WcBookClickActionEnum b : WcBookClickActionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_WC_BOOK_CLICK_ACTION = "wcBookClickAction";
private WcBookClickActionEnum wcBookClickAction;
public UpsertEngineConfigurationRequestAffiliate() {
}
public UpsertEngineConfigurationRequestAffiliate name(String name) {
this.name = name;
return this;
}
/**
* Engine configuration name
* @return name
**/
@javax.annotation.Nonnull
@NotNull
@ApiModelProperty(example = "Engine Configuration 1", required = true, value = "Engine configuration name")
@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 UpsertEngineConfigurationRequestAffiliate appendToPageTitle(String appendToPageTitle) {
this.appendToPageTitle = appendToPageTitle;
return this;
}
/**
* Whether to append text to the existing booking engine page title.
* @return appendToPageTitle
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Whether to append text to the existing booking engine page title.")
@JsonProperty(JSON_PROPERTY_APPEND_TO_PAGE_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAppendToPageTitle() {
return appendToPageTitle;
}
@JsonProperty(JSON_PROPERTY_APPEND_TO_PAGE_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAppendToPageTitle(String appendToPageTitle) {
this.appendToPageTitle = appendToPageTitle;
}
public UpsertEngineConfigurationRequestAffiliate googleTagManagerKey(String googleTagManagerKey) {
this.googleTagManagerKey = googleTagManagerKey;
return this;
}
/**
* If you want to track analytics with Google Analytics and GTM for your self-hosted booking engine, you need to import our [GTM profile](https://www.dropbox.com/s/o6rwluclvsgydma/gtm-template-2020-2.json?dl=0) into your GTM container and link it with your Google Analytics account. [More about that here](https://bearchoke.atlassian.net/wiki/spaces/TC/pages/2941648897/Linking+your+Google+Tag+Manager+account)
* @return googleTagManagerKey
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If you want to track analytics with Google Analytics and GTM for your self-hosted booking engine, you need to import our [GTM profile](https://www.dropbox.com/s/o6rwluclvsgydma/gtm-template-2020-2.json?dl=0) into your GTM container and link it with your Google Analytics account. [More about that here](https://bearchoke.atlassian.net/wiki/spaces/TC/pages/2941648897/Linking+your+Google+Tag+Manager+account) ")
@JsonProperty(JSON_PROPERTY_GOOGLE_TAG_MANAGER_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGoogleTagManagerKey() {
return googleTagManagerKey;
}
@JsonProperty(JSON_PROPERTY_GOOGLE_TAG_MANAGER_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGoogleTagManagerKey(String googleTagManagerKey) {
this.googleTagManagerKey = googleTagManagerKey;
}
public UpsertEngineConfigurationRequestAffiliate wcGoogleTagManagerKey(String wcGoogleTagManagerKey) {
this.wcGoogleTagManagerKey = wcGoogleTagManagerKey;
return this;
}
/**
* If you want to track analytics with Google Analytics and GTM for the Web Components you've embedded, you need to import our [GTM profile](https://www.dropbox.com/s/o6rwluclvsgydma/gtm-template-2020-2.json?dl=0) into your GTM container and link it with your Google Analytics account. [More about that here](https://bearchoke.atlassian.net/wiki/spaces/TC/pages/2941648897/Linking+your+Google+Tag+Manager+account)
* @return wcGoogleTagManagerKey
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If you want to track analytics with Google Analytics and GTM for the Web Components you've embedded, you need to import our [GTM profile](https://www.dropbox.com/s/o6rwluclvsgydma/gtm-template-2020-2.json?dl=0) into your GTM container and link it with your Google Analytics account. [More about that here](https://bearchoke.atlassian.net/wiki/spaces/TC/pages/2941648897/Linking+your+Google+Tag+Manager+account) ")
@JsonProperty(JSON_PROPERTY_WC_GOOGLE_TAG_MANAGER_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWcGoogleTagManagerKey() {
return wcGoogleTagManagerKey;
}
@JsonProperty(JSON_PROPERTY_WC_GOOGLE_TAG_MANAGER_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWcGoogleTagManagerKey(String wcGoogleTagManagerKey) {
this.wcGoogleTagManagerKey = wcGoogleTagManagerKey;
}
public UpsertEngineConfigurationRequestAffiliate googleMapsAPIKey(String googleMapsAPIKey) {
this.googleMapsAPIKey = googleMapsAPIKey;
return this;
}
/**
* If you want your users to see Google Maps in your hosted booking engine, go to [Google Maps](https://console.developers.google.com/projectselector2/apis/credentials?supportedpurview=project) and create an API key for your site.
* @return googleMapsAPIKey
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "google-maps-api-123", value = "If you want your users to see Google Maps in your hosted booking engine, go to [Google Maps](https://console.developers.google.com/projectselector2/apis/credentials?supportedpurview=project) and create an API key for your site.")
@JsonProperty(JSON_PROPERTY_GOOGLE_MAPS_A_P_I_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGoogleMapsAPIKey() {
return googleMapsAPIKey;
}
@JsonProperty(JSON_PROPERTY_GOOGLE_MAPS_A_P_I_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGoogleMapsAPIKey(String googleMapsAPIKey) {
this.googleMapsAPIKey = googleMapsAPIKey;
}
public UpsertEngineConfigurationRequestAffiliate wcGoogleMapsAPIKey(String wcGoogleMapsAPIKey) {
this.wcGoogleMapsAPIKey = wcGoogleMapsAPIKey;
return this;
}
/**
* If you want your users to see Google Maps in any of our Web Components, go to [Google Maps](https://console.developers.google.com/projectselector2/apis/credentials?supportedpurview=project) and create an API key for your site.
* @return wcGoogleMapsAPIKey
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "google-maps-api-321", value = "If you want your users to see Google Maps in any of our Web Components, go to [Google Maps](https://console.developers.google.com/projectselector2/apis/credentials?supportedpurview=project) and create an API key for your site.")
@JsonProperty(JSON_PROPERTY_WC_GOOGLE_MAPS_A_P_I_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWcGoogleMapsAPIKey() {
return wcGoogleMapsAPIKey;
}
@JsonProperty(JSON_PROPERTY_WC_GOOGLE_MAPS_A_P_I_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWcGoogleMapsAPIKey(String wcGoogleMapsAPIKey) {
this.wcGoogleMapsAPIKey = wcGoogleMapsAPIKey;
}
public UpsertEngineConfigurationRequestAffiliate tawkToKey(String tawkToKey) {
this.tawkToKey = tawkToKey;
return this;
}
/**
* If you want your users to be able to chat with you on your hosted booking engine, set yourself up with a [tawk.to account](https://dashboard.tawk.to/signup) and add your API key here.
* @return tawkToKey
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "tawk-to-1", value = "If you want your users to be able to chat with you on your hosted booking engine, set yourself up with a [tawk.to account](https://dashboard.tawk.to/signup) and add your API key here.")
@JsonProperty(JSON_PROPERTY_TAWK_TO_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTawkToKey() {
return tawkToKey;
}
@JsonProperty(JSON_PROPERTY_TAWK_TO_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTawkToKey(String tawkToKey) {
this.tawkToKey = tawkToKey;
}
public UpsertEngineConfigurationRequestAffiliate wcTawkToKey(String wcTawkToKey) {
this.wcTawkToKey = wcTawkToKey;
return this;
}
/**
* If you want your users to be able to chat with in any of our Web Components, set yourself up with a [tawk.to account](https://dashboard.tawk.to/signup) and add your API key here.
* @return wcTawkToKey
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "tawk-to-2", value = "If you want your users to be able to chat with in any of our Web Components, set yourself up with a [tawk.to account](https://dashboard.tawk.to/signup) and add your API key here.")
@JsonProperty(JSON_PROPERTY_WC_TAWK_TO_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWcTawkToKey() {
return wcTawkToKey;
}
@JsonProperty(JSON_PROPERTY_WC_TAWK_TO_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWcTawkToKey(String wcTawkToKey) {
this.wcTawkToKey = wcTawkToKey;
}
public UpsertEngineConfigurationRequestAffiliate defaultCurrency(String defaultCurrency) {
this.defaultCurrency = defaultCurrency;
return this;
}
/**
* Control which currency your users see prices in initially.
* @return defaultCurrency
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "USD", value = "Control which currency your users see prices in initially.")
@JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDefaultCurrency() {
return defaultCurrency;
}
@JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDefaultCurrency(String defaultCurrency) {
this.defaultCurrency = defaultCurrency;
}
public UpsertEngineConfigurationRequestAffiliate defaultLanguage(String defaultLanguage) {
this.defaultLanguage = defaultLanguage;
return this;
}
/**
* Control which language your users see text in initially.
* @return defaultLanguage
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "en", value = "Control which language your users see text in initially.")
@JsonProperty(JSON_PROPERTY_DEFAULT_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDefaultLanguage() {
return defaultLanguage;
}
@JsonProperty(JSON_PROPERTY_DEFAULT_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDefaultLanguage(String defaultLanguage) {
this.defaultLanguage = defaultLanguage;
}
public UpsertEngineConfigurationRequestAffiliate logos(List logos) {
this.logos = logos;
return this;
}
public UpsertEngineConfigurationRequestAffiliate addLogosItem(SimpleMultimediaAffiliate logosItem) {
if (this.logos == null) {
this.logos = new ArrayList<>();
}
this.logos.add(logosItem);
return this;
}
/**
* Customize booking confirmation emails by adding a custom logo to your configuration.
* @return logos
**/
@javax.annotation.Nullable
@Valid
@ApiModelProperty(value = "Customize booking confirmation emails by adding a custom logo to your configuration.")
@JsonProperty(JSON_PROPERTY_LOGOS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getLogos() {
return logos;
}
@JsonProperty(JSON_PROPERTY_LOGOS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLogos(List logos) {
this.logos = logos;
}
public UpsertEngineConfigurationRequestAffiliate hostedBookingEngineUrl(String hostedBookingEngineUrl) {
this.hostedBookingEngineUrl = hostedBookingEngineUrl;
return this;
}
/**
* If you are self-hosting our booking engine, let us know where it is hosted. Note: This url needs to be secured with SSL.
* @return hostedBookingEngineUrl
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://my.customtravelsite.com/book", value = "If you are self-hosting our booking engine, let us know where it is hosted. Note: This url needs to be secured with SSL.")
@JsonProperty(JSON_PROPERTY_HOSTED_BOOKING_ENGINE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getHostedBookingEngineUrl() {
return hostedBookingEngineUrl;
}
@JsonProperty(JSON_PROPERTY_HOSTED_BOOKING_ENGINE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHostedBookingEngineUrl(String hostedBookingEngineUrl) {
this.hostedBookingEngineUrl = hostedBookingEngineUrl;
}
public UpsertEngineConfigurationRequestAffiliate selfHosted(Boolean selfHosted) {
this.selfHosted = selfHosted;
return this;
}
/**
* Flag to indicate you are self-hosting our booking engine and not using our default booking engine url.
* @return selfHosted
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "Flag to indicate you are self-hosting our booking engine and not using our default booking engine url.")
@JsonProperty(JSON_PROPERTY_SELF_HOSTED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSelfHosted() {
return selfHosted;
}
@JsonProperty(JSON_PROPERTY_SELF_HOSTED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSelfHosted(Boolean selfHosted) {
this.selfHosted = selfHosted;
}
public UpsertEngineConfigurationRequestAffiliate themeColors(EngineConfigurationThemeAffiliate themeColors) {
this.themeColors = themeColors;
return this;
}
/**
* Get themeColors
* @return themeColors
**/
@javax.annotation.Nullable
@Valid
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_THEME_COLORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EngineConfigurationThemeAffiliate getThemeColors() {
return themeColors;
}
@JsonProperty(JSON_PROPERTY_THEME_COLORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThemeColors(EngineConfigurationThemeAffiliate themeColors) {
this.themeColors = themeColors;
}
public UpsertEngineConfigurationRequestAffiliate numberOfAdvanceDays(Integer numberOfAdvanceDays) {
this.numberOfAdvanceDays = numberOfAdvanceDays;
return this;
}
/**
* You can control the initial itinerary date used to retrieve travel inventory prices. You can do it in one of two ways: 1. Dynamically set the date by indicating how long and how many days in advance (this field), of today's date, you want to display prices for. 2. Set a fixed date to display prices for. Option 1 is the most shared. Option 2 is for when you want to create a new customization and apply it to a specific event that occurs on a specific date. If you don't use either of these options, the itinerary will default to today's date with one night stay. ONLY populate this field if you want to control the itinerary date. Also, leave `startDate` and `endDate` empty.
* @return numberOfAdvanceDays
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "10", value = "You can control the initial itinerary date used to retrieve travel inventory prices. You can do it in one of two ways: 1. Dynamically set the date by indicating how long and how many days in advance (this field), of today's date, you want to display prices for. 2. Set a fixed date to display prices for. Option 1 is the most shared. Option 2 is for when you want to create a new customization and apply it to a specific event that occurs on a specific date. If you don't use either of these options, the itinerary will default to today's date with one night stay. ONLY populate this field if you want to control the itinerary date. Also, leave `startDate` and `endDate` empty.")
@JsonProperty(JSON_PROPERTY_NUMBER_OF_ADVANCE_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNumberOfAdvanceDays() {
return numberOfAdvanceDays;
}
@JsonProperty(JSON_PROPERTY_NUMBER_OF_ADVANCE_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumberOfAdvanceDays(Integer numberOfAdvanceDays) {
this.numberOfAdvanceDays = numberOfAdvanceDays;
}
public UpsertEngineConfigurationRequestAffiliate numberOfStayDays(Integer numberOfStayDays) {
this.numberOfStayDays = numberOfStayDays;
return this;
}
/**
* You can control the initial itinerary date used to retrieve travel inventory prices. You can do it in one of two ways: 1. Dynamically set the date by indicating how long (this field) and how many days in advance, of today's date, you want to display prices for. 2. Set a fixed date to display prices for. Option 1 is the most shared. Option 2 is for when you want to create a new customization and apply it to a specific event that occurs on a specific date. If you don't use either of these options, the itinerary will default to today's date with one night stay. ONLY populate this field if you want to control the itinerary date. Also, leave `startDate` and `endDate` empty.
* @return numberOfStayDays
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2", value = "You can control the initial itinerary date used to retrieve travel inventory prices. You can do it in one of two ways: 1. Dynamically set the date by indicating how long (this field) and how many days in advance, of today's date, you want to display prices for. 2. Set a fixed date to display prices for. Option 1 is the most shared. Option 2 is for when you want to create a new customization and apply it to a specific event that occurs on a specific date. If you don't use either of these options, the itinerary will default to today's date with one night stay. ONLY populate this field if you want to control the itinerary date. Also, leave `startDate` and `endDate` empty.")
@JsonProperty(JSON_PROPERTY_NUMBER_OF_STAY_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNumberOfStayDays() {
return numberOfStayDays;
}
@JsonProperty(JSON_PROPERTY_NUMBER_OF_STAY_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumberOfStayDays(Integer numberOfStayDays) {
this.numberOfStayDays = numberOfStayDays;
}
public UpsertEngineConfigurationRequestAffiliate startDate(LocalDate startDate) {
this.startDate = startDate;
return this;
}
/**
* Set a fixed itinerary start date. ONLY populate this field if you want to fix the itinerary date. Also, leave `numberOfAdvanceDays` and `numberOfStayDays` empty.
* @return startDate
**/
@javax.annotation.Nullable
@Valid
@ApiModelProperty(example = "Fri Dec 24 07:00:00 ICT 2021", value = "Set a fixed itinerary start date. ONLY populate this field if you want to fix the itinerary date. Also, leave `numberOfAdvanceDays` and `numberOfStayDays` empty.")
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDate getStartDate() {
return startDate;
}
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public UpsertEngineConfigurationRequestAffiliate endDate(LocalDate endDate) {
this.endDate = endDate;
return this;
}
/**
* Set a fixed itinerary end date ONLY populate this field if you want to fix the itinerary date. Also, leave `numberOfAdvanceDays` and `numberOfStayDays` empty.
* @return endDate
**/
@javax.annotation.Nullable
@Valid
@ApiModelProperty(example = "Fri Dec 31 07:00:00 ICT 2021", value = "Set a fixed itinerary end date ONLY populate this field if you want to fix the itinerary date. Also, leave `numberOfAdvanceDays` and `numberOfStayDays` empty.")
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDate getEndDate() {
return endDate;
}
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public UpsertEngineConfigurationRequestAffiliate roomConfigurations(List roomConfigurations) {
this.roomConfigurations = roomConfigurations;
return this;
}
public UpsertEngineConfigurationRequestAffiliate addRoomConfigurationsItem(RoomConfigurationAffiliate roomConfigurationsItem) {
if (this.roomConfigurations == null) {
this.roomConfigurations = new ArrayList<>();
}
this.roomConfigurations.add(roomConfigurationsItem);
return this;
}
/**
* Control how many adults / children will be staying and how many rooms. Defaults to: One room, two adults.
* @return roomConfigurations
**/
@javax.annotation.Nullable
@Valid
@ApiModelProperty(value = "Control how many adults / children will be staying and how many rooms. Defaults to: One room, two adults.")
@JsonProperty(JSON_PROPERTY_ROOM_CONFIGURATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRoomConfigurations() {
return roomConfigurations;
}
@JsonProperty(JSON_PROPERTY_ROOM_CONFIGURATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRoomConfigurations(List roomConfigurations) {
this.roomConfigurations = roomConfigurations;
}
public UpsertEngineConfigurationRequestAffiliate useDays(Boolean useDays) {
this.useDays = useDays;
return this;
}
/**
* if true, we use numberOfAdvanceDays / numberOfStayDays properties - false, we use startDate / endDate
* @return useDays
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "if true, we use numberOfAdvanceDays / numberOfStayDays properties - false, we use startDate / endDate")
@JsonProperty(JSON_PROPERTY_USE_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getUseDays() {
return useDays;
}
@JsonProperty(JSON_PROPERTY_USE_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUseDays(Boolean useDays) {
this.useDays = useDays;
}
public UpsertEngineConfigurationRequestAffiliate promotionalCodes(List promotionalCodes) {
this.promotionalCodes = promotionalCodes;
return this;
}
public UpsertEngineConfigurationRequestAffiliate addPromotionalCodesItem(String promotionalCodesItem) {
if (this.promotionalCodes == null) {
this.promotionalCodes = new ArrayList<>();
}
this.promotionalCodes.add(promotionalCodesItem);
return this;
}
/**
* If you've received special promotional codes from suppliers to give to your audience, you can choose to bake these code directly into the price by entering them here.
* @return promotionalCodes
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "[\"promo-1\"]", value = "If you've received special promotional codes from suppliers to give to your audience, you can choose to bake these code directly into the price by entering them here.")
@JsonProperty(JSON_PROPERTY_PROMOTIONAL_CODES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPromotionalCodes() {
return promotionalCodes;
}
@JsonProperty(JSON_PROPERTY_PROMOTIONAL_CODES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPromotionalCodes(List promotionalCodes) {
this.promotionalCodes = promotionalCodes;
}
public UpsertEngineConfigurationRequestAffiliate sendBookingNotificationEmailsToProperty(Boolean sendBookingNotificationEmailsToProperty) {
this.sendBookingNotificationEmailsToProperty = sendBookingNotificationEmailsToProperty;
return this;
}
/**
* An integrator can choose to disable outgoing emails to properties because they want to do that themselves.
* @return sendBookingNotificationEmailsToProperty
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "An integrator can choose to disable outgoing emails to properties because they want to do that themselves.")
@JsonProperty(JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSendBookingNotificationEmailsToProperty() {
return sendBookingNotificationEmailsToProperty;
}
@JsonProperty(JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSendBookingNotificationEmailsToProperty(Boolean sendBookingNotificationEmailsToProperty) {
this.sendBookingNotificationEmailsToProperty = sendBookingNotificationEmailsToProperty;
}
public UpsertEngineConfigurationRequestAffiliate sendBookingNotificationEmailsToBooker(Boolean sendBookingNotificationEmailsToBooker) {
this.sendBookingNotificationEmailsToBooker = sendBookingNotificationEmailsToBooker;
return this;
}
/**
* An integrator can choose to disable outgoing emails to users because they want to do that themselves.
* @return sendBookingNotificationEmailsToBooker
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "An integrator can choose to disable outgoing emails to users because they want to do that themselves.")
@JsonProperty(JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_BOOKER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSendBookingNotificationEmailsToBooker() {
return sendBookingNotificationEmailsToBooker;
}
@JsonProperty(JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_BOOKER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSendBookingNotificationEmailsToBooker(Boolean sendBookingNotificationEmailsToBooker) {
this.sendBookingNotificationEmailsToBooker = sendBookingNotificationEmailsToBooker;
}
public UpsertEngineConfigurationRequestAffiliate sendBookingNotificationEmailsToChannelManager(Boolean sendBookingNotificationEmailsToChannelManager) {
this.sendBookingNotificationEmailsToChannelManager = sendBookingNotificationEmailsToChannelManager;
return this;
}
/**
* An integrator can choose to disable notifying the property's channel manager. Note: This should ONLY be done for testing.
* @return sendBookingNotificationEmailsToChannelManager
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "An integrator can choose to disable notifying the property's channel manager. Note: This should ONLY be done for testing.")
@JsonProperty(JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_CHANNEL_MANAGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSendBookingNotificationEmailsToChannelManager() {
return sendBookingNotificationEmailsToChannelManager;
}
@JsonProperty(JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_CHANNEL_MANAGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSendBookingNotificationEmailsToChannelManager(Boolean sendBookingNotificationEmailsToChannelManager) {
this.sendBookingNotificationEmailsToChannelManager = sendBookingNotificationEmailsToChannelManager;
}
public UpsertEngineConfigurationRequestAffiliate wcBookClickAction(WcBookClickActionEnum wcBookClickAction) {
this.wcBookClickAction = wcBookClickAction;
return this;
}
/**
* Action to complete once a user clicks on the CTA button on inventory.
* @return wcBookClickAction
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "IBE_MODAL", value = "Action to complete once a user clicks on the CTA button on inventory.")
@JsonProperty(JSON_PROPERTY_WC_BOOK_CLICK_ACTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public WcBookClickActionEnum getWcBookClickAction() {
return wcBookClickAction;
}
@JsonProperty(JSON_PROPERTY_WC_BOOK_CLICK_ACTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWcBookClickAction(WcBookClickActionEnum wcBookClickAction) {
this.wcBookClickAction = wcBookClickAction;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate = (UpsertEngineConfigurationRequestAffiliate) o;
return Objects.equals(this.name, upsertEngineConfigurationRequestAffiliate.name) &&
Objects.equals(this.appendToPageTitle, upsertEngineConfigurationRequestAffiliate.appendToPageTitle) &&
Objects.equals(this.googleTagManagerKey, upsertEngineConfigurationRequestAffiliate.googleTagManagerKey) &&
Objects.equals(this.wcGoogleTagManagerKey, upsertEngineConfigurationRequestAffiliate.wcGoogleTagManagerKey) &&
Objects.equals(this.googleMapsAPIKey, upsertEngineConfigurationRequestAffiliate.googleMapsAPIKey) &&
Objects.equals(this.wcGoogleMapsAPIKey, upsertEngineConfigurationRequestAffiliate.wcGoogleMapsAPIKey) &&
Objects.equals(this.tawkToKey, upsertEngineConfigurationRequestAffiliate.tawkToKey) &&
Objects.equals(this.wcTawkToKey, upsertEngineConfigurationRequestAffiliate.wcTawkToKey) &&
Objects.equals(this.defaultCurrency, upsertEngineConfigurationRequestAffiliate.defaultCurrency) &&
Objects.equals(this.defaultLanguage, upsertEngineConfigurationRequestAffiliate.defaultLanguage) &&
Objects.equals(this.logos, upsertEngineConfigurationRequestAffiliate.logos) &&
Objects.equals(this.hostedBookingEngineUrl, upsertEngineConfigurationRequestAffiliate.hostedBookingEngineUrl) &&
Objects.equals(this.selfHosted, upsertEngineConfigurationRequestAffiliate.selfHosted) &&
Objects.equals(this.themeColors, upsertEngineConfigurationRequestAffiliate.themeColors) &&
Objects.equals(this.numberOfAdvanceDays, upsertEngineConfigurationRequestAffiliate.numberOfAdvanceDays) &&
Objects.equals(this.numberOfStayDays, upsertEngineConfigurationRequestAffiliate.numberOfStayDays) &&
Objects.equals(this.startDate, upsertEngineConfigurationRequestAffiliate.startDate) &&
Objects.equals(this.endDate, upsertEngineConfigurationRequestAffiliate.endDate) &&
Objects.equals(this.roomConfigurations, upsertEngineConfigurationRequestAffiliate.roomConfigurations) &&
Objects.equals(this.useDays, upsertEngineConfigurationRequestAffiliate.useDays) &&
Objects.equals(this.promotionalCodes, upsertEngineConfigurationRequestAffiliate.promotionalCodes) &&
Objects.equals(this.sendBookingNotificationEmailsToProperty, upsertEngineConfigurationRequestAffiliate.sendBookingNotificationEmailsToProperty) &&
Objects.equals(this.sendBookingNotificationEmailsToBooker, upsertEngineConfigurationRequestAffiliate.sendBookingNotificationEmailsToBooker) &&
Objects.equals(this.sendBookingNotificationEmailsToChannelManager, upsertEngineConfigurationRequestAffiliate.sendBookingNotificationEmailsToChannelManager) &&
Objects.equals(this.wcBookClickAction, upsertEngineConfigurationRequestAffiliate.wcBookClickAction);
}
@Override
public int hashCode() {
return Objects.hash(name, appendToPageTitle, googleTagManagerKey, wcGoogleTagManagerKey, googleMapsAPIKey, wcGoogleMapsAPIKey, tawkToKey, wcTawkToKey, defaultCurrency, defaultLanguage, logos, hostedBookingEngineUrl, selfHosted, themeColors, numberOfAdvanceDays, numberOfStayDays, startDate, endDate, roomConfigurations, useDays, promotionalCodes, sendBookingNotificationEmailsToProperty, sendBookingNotificationEmailsToBooker, sendBookingNotificationEmailsToChannelManager, wcBookClickAction);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpsertEngineConfigurationRequestAffiliate {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" appendToPageTitle: ").append(toIndentedString(appendToPageTitle)).append("\n");
sb.append(" googleTagManagerKey: ").append(toIndentedString(googleTagManagerKey)).append("\n");
sb.append(" wcGoogleTagManagerKey: ").append(toIndentedString(wcGoogleTagManagerKey)).append("\n");
sb.append(" googleMapsAPIKey: ").append(toIndentedString(googleMapsAPIKey)).append("\n");
sb.append(" wcGoogleMapsAPIKey: ").append(toIndentedString(wcGoogleMapsAPIKey)).append("\n");
sb.append(" tawkToKey: ").append(toIndentedString(tawkToKey)).append("\n");
sb.append(" wcTawkToKey: ").append(toIndentedString(wcTawkToKey)).append("\n");
sb.append(" defaultCurrency: ").append(toIndentedString(defaultCurrency)).append("\n");
sb.append(" defaultLanguage: ").append(toIndentedString(defaultLanguage)).append("\n");
sb.append(" logos: ").append(toIndentedString(logos)).append("\n");
sb.append(" hostedBookingEngineUrl: ").append(toIndentedString(hostedBookingEngineUrl)).append("\n");
sb.append(" selfHosted: ").append(toIndentedString(selfHosted)).append("\n");
sb.append(" themeColors: ").append(toIndentedString(themeColors)).append("\n");
sb.append(" numberOfAdvanceDays: ").append(toIndentedString(numberOfAdvanceDays)).append("\n");
sb.append(" numberOfStayDays: ").append(toIndentedString(numberOfStayDays)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" roomConfigurations: ").append(toIndentedString(roomConfigurations)).append("\n");
sb.append(" useDays: ").append(toIndentedString(useDays)).append("\n");
sb.append(" promotionalCodes: ").append(toIndentedString(promotionalCodes)).append("\n");
sb.append(" sendBookingNotificationEmailsToProperty: ").append(toIndentedString(sendBookingNotificationEmailsToProperty)).append("\n");
sb.append(" sendBookingNotificationEmailsToBooker: ").append(toIndentedString(sendBookingNotificationEmailsToBooker)).append("\n");
sb.append(" sendBookingNotificationEmailsToChannelManager: ").append(toIndentedString(sendBookingNotificationEmailsToChannelManager)).append("\n");
sb.append(" wcBookClickAction: ").append(toIndentedString(wcBookClickAction)).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 - 2025 Weber Informatics LLC | Privacy Policy