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.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import travel.wink.sdk.extranet.distribution.model.EngineConfigurationThemeSupplierDetails;
import travel.wink.sdk.extranet.distribution.model.GeoNameSupplierDetails;
import travel.wink.sdk.extranet.distribution.model.RoomConfigurationSupplierDetails;
import travel.wink.sdk.extranet.distribution.model.SimpleMultimediaSupplierDetails;
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.*;
/**
* Which engine configuration record did the entity application used to facilitate in making this booking happen.
*/
@JsonPropertyOrder({
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_IDENTIFIER,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_NAME,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_USER_IDENTIFIER,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_OWNER_IDENTIFIER,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_OWNER_NAME,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SUB_TYPE,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_DEFAULT_CURRENCY,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_DEFAULT_LANGUAGE,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_DEFAULT_LIFESTYLE,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_LOGOS,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_HOSTED_BOOKING_ENGINE_URL,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SELF_HOSTED,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_THEME_COLORS,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_NUMBER_OF_ADVANCE_DAYS,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_NUMBER_OF_STAY_DAYS,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_START_DATE,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_END_DATE,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_ROOM_CONFIGURATIONS,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_USE_DAYS,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_PROMOTIONAL_CODES,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_PROPERTY,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_BOOKER,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SEND_BOOKING_NOTIFICATION_EMAILS_TO_CHANNEL_MANAGER,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_WC_BOOK_CLICK_ACTION,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_CITY,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SHOW_UNAVAILABLE_CARD,
EngineConfigurationBookingReportSupplierDetails.JSON_PROPERTY_SHOW_RANKINGS
})
@JsonTypeName("EngineConfigurationBookingReport_SupplierDetails")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-15T11:58:01.003340498+07:00[Asia/Bangkok]")
public class EngineConfigurationBookingReportSupplierDetails {
public static final String JSON_PROPERTY_IDENTIFIER = "identifier";
private UUID identifier;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_USER_IDENTIFIER = "userIdentifier";
private UUID userIdentifier;
public static final String JSON_PROPERTY_OWNER_IDENTIFIER = "ownerIdentifier";
private UUID ownerIdentifier;
public static final String JSON_PROPERTY_OWNER_NAME = "ownerName";
private String ownerName;
/**
* Sales channel sub-type.
*/
public enum SubTypeEnum {
DIRECT("DIRECT"),
APPLICATION("APPLICATION"),
HOTEL("HOTEL"),
TRAVELIKO("TRAVELIKO"),
CORPORATE("CORPORATE"),
TRAVEL_AGENT("TRAVEL_AGENT"),
INFLUENCER("INFLUENCER"),
BLOGGER("BLOGGER"),
DESTINATION("DESTINATION"),
CHANNEL_MANAGER("CHANNEL_MANAGER"),
PROPERTY_MANAGEMENT_SYSTEM("PROPERTY_MANAGEMENT_SYSTEM"),
CENTRAL_RESERVATION_SYSTEM("CENTRAL_RESERVATION_SYSTEM"),
GOOGLE_HOTEL_API("GOOGLE_HOTEL_API"),
MANAGEMENT_COMPANY("MANAGEMENT_COMPANY"),
CHAIN("CHAIN"),
BRAND("BRAND"),
EVENT_ORGANIZER("EVENT_ORGANIZER");
private String value;
SubTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SubTypeEnum fromValue(String value) {
for (SubTypeEnum b : SubTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SUB_TYPE = "subType";
private SubTypeEnum subType;
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";
/**
* Control which lifestyle contextx your users see initially.
*/
public enum DefaultLifestyleEnum {
HEALTH_FITNESS("LIFESTYLE_HEALTH_FITNESS"),
RELAX("LIFESTYLE_RELAX"),
ADULT_ONLY("LIFESTYLE_ADULT_ONLY"),
ADVENTURE("LIFESTYLE_ADVENTURE"),
BUSINESS("LIFESTYLE_BUSINESS"),
LGBT("LIFESTYLE_LGBT"),
SINGLE_PARENT("LIFESTYLE_SINGLE_PARENT"),
SOLO_FEMALE("LIFESTYLE_SOLO_FEMALE"),
BEAUTY("LIFESTYLE_BEAUTY"),
FOODIE("LIFESTYLE_FOODIE"),
FAMILY("LIFESTYLE_FAMILY"),
ROMANCE("LIFESTYLE_ROMANCE"),
COUPLE("LIFESTYLE_COUPLE"),
SOLO("LIFESTYLE_SOLO"),
BACKPACKER("LIFESTYLE_BACKPACKER"),
SHOPPING("LIFESTYLE_SHOPPING"),
SPORTS("LIFESTYLE_SPORTS"),
MOUNTAIN("LIFESTYLE_MOUNTAIN"),
BEACH("LIFESTYLE_BEACH"),
CITY("LIFESTYLE_CITY"),
COUNTRY("LIFESTYLE_COUNTRY"),
CULTURE("LIFESTYLE_CULTURE"),
ECO("LIFESTYLE_ECO");
private String value;
DefaultLifestyleEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DefaultLifestyleEnum fromValue(String value) {
for (DefaultLifestyleEnum b : DefaultLifestyleEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_DEFAULT_LIFESTYLE = "defaultLifestyle";
private DefaultLifestyleEnum defaultLifestyle;
public static final String JSON_PROPERTY_LOGOS = "logos";
private List logos;
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 EngineConfigurationThemeSupplierDetails 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;
public static final String JSON_PROPERTY_USE_DAYS = "useDays";
private Boolean useDays;
public static final String JSON_PROPERTY_PROMOTIONAL_CODES = "promotionalCodes";
private List promotionalCodes;
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 static final String JSON_PROPERTY_CITY = "city";
private GeoNameSupplierDetails city;
public static final String JSON_PROPERTY_SHOW_UNAVAILABLE_CARD = "showUnavailableCard";
private Boolean showUnavailableCard;
public static final String JSON_PROPERTY_SHOW_RANKINGS = "showRankings";
private Boolean showRankings;
public EngineConfigurationBookingReportSupplierDetails() {
}
public EngineConfigurationBookingReportSupplierDetails identifier(UUID identifier) {
this.identifier = identifier;
return this;
}
/**
* Unique engine configuration 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 EngineConfigurationBookingReportSupplierDetails name(String name) {
this.name = name;
return this;
}
/**
* Engine configuration name
* @return name
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public EngineConfigurationBookingReportSupplierDetails userIdentifier(UUID userIdentifier) {
this.userIdentifier = userIdentifier;
return this;
}
/**
* Authenticated user identifier
* @return userIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_USER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public UUID getUserIdentifier() {
return userIdentifier;
}
@JsonProperty(JSON_PROPERTY_USER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUserIdentifier(UUID userIdentifier) {
this.userIdentifier = userIdentifier;
}
public EngineConfigurationBookingReportSupplierDetails ownerIdentifier(UUID ownerIdentifier) {
this.ownerIdentifier = ownerIdentifier;
return this;
}
/**
* Engine configuration record creator identifier
* @return ownerIdentifier
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_OWNER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public UUID getOwnerIdentifier() {
return ownerIdentifier;
}
@JsonProperty(JSON_PROPERTY_OWNER_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOwnerIdentifier(UUID ownerIdentifier) {
this.ownerIdentifier = ownerIdentifier;
}
public EngineConfigurationBookingReportSupplierDetails ownerName(String ownerName) {
this.ownerName = ownerName;
return this;
}
/**
* Name of company owner.
* @return ownerName
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_OWNER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getOwnerName() {
return ownerName;
}
@JsonProperty(JSON_PROPERTY_OWNER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOwnerName(String ownerName) {
this.ownerName = ownerName;
}
public EngineConfigurationBookingReportSupplierDetails subType(SubTypeEnum subType) {
this.subType = subType;
return this;
}
/**
* Sales channel sub-type.
* @return subType
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_SUB_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public SubTypeEnum getSubType() {
return subType;
}
@JsonProperty(JSON_PROPERTY_SUB_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSubType(SubTypeEnum subType) {
this.subType = subType;
}
public EngineConfigurationBookingReportSupplierDetails defaultCurrency(String defaultCurrency) {
this.defaultCurrency = defaultCurrency;
return this;
}
/**
* Control which currency your users see prices in initially.
* @return defaultCurrency
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails defaultLanguage(String defaultLanguage) {
this.defaultLanguage = defaultLanguage;
return this;
}
/**
* Control which language your users see text in initially.
* @return defaultLanguage
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails defaultLifestyle(DefaultLifestyleEnum defaultLifestyle) {
this.defaultLifestyle = defaultLifestyle;
return this;
}
/**
* Control which lifestyle contextx your users see initially.
* @return defaultLifestyle
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DEFAULT_LIFESTYLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DefaultLifestyleEnum getDefaultLifestyle() {
return defaultLifestyle;
}
@JsonProperty(JSON_PROPERTY_DEFAULT_LIFESTYLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDefaultLifestyle(DefaultLifestyleEnum defaultLifestyle) {
this.defaultLifestyle = defaultLifestyle;
}
public EngineConfigurationBookingReportSupplierDetails logos(List logos) {
this.logos = logos;
return this;
}
public EngineConfigurationBookingReportSupplierDetails addLogosItem(SimpleMultimediaSupplierDetails 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
**/
@jakarta.annotation.Nullable
@Valid
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails themeColors(EngineConfigurationThemeSupplierDetails themeColors) {
this.themeColors = themeColors;
return this;
}
/**
* Get themeColors
* @return themeColors
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_THEME_COLORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EngineConfigurationThemeSupplierDetails getThemeColors() {
return themeColors;
}
@JsonProperty(JSON_PROPERTY_THEME_COLORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThemeColors(EngineConfigurationThemeSupplierDetails themeColors) {
this.themeColors = themeColors;
}
public EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@Valid
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@Valid
@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 EngineConfigurationBookingReportSupplierDetails roomConfigurations(List roomConfigurations) {
this.roomConfigurations = roomConfigurations;
return this;
}
public EngineConfigurationBookingReportSupplierDetails addRoomConfigurationsItem(RoomConfigurationSupplierDetails 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
**/
@jakarta.annotation.Nullable
@Valid
@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 EngineConfigurationBookingReportSupplierDetails useDays(Boolean useDays) {
this.useDays = useDays;
return this;
}
/**
* if true, we use numberOfAdvanceDays / numberOfStayDays properties - false, we use startDate / endDate
* @return useDays
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails promotionalCodes(List promotionalCodes) {
this.promotionalCodes = promotionalCodes;
return this;
}
public EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails 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
**/
@jakarta.annotation.Nullable
@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 EngineConfigurationBookingReportSupplierDetails wcBookClickAction(WcBookClickActionEnum wcBookClickAction) {
this.wcBookClickAction = wcBookClickAction;
return this;
}
/**
* Action to complete once a user clicks on the CTA button on inventory.
* @return wcBookClickAction
**/
@jakarta.annotation.Nullable
@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;
}
public EngineConfigurationBookingReportSupplierDetails city(GeoNameSupplierDetails city) {
this.city = city;
return this;
}
/**
* Get city
* @return city
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_CITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public GeoNameSupplierDetails getCity() {
return city;
}
@JsonProperty(JSON_PROPERTY_CITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCity(GeoNameSupplierDetails city) {
this.city = city;
}
public EngineConfigurationBookingReportSupplierDetails showUnavailableCard(Boolean showUnavailableCard) {
this.showUnavailableCard = showUnavailableCard;
return this;
}
/**
* Show unavailable inventory card when inventory not currently for sale. Otherwise, it displays a normal card but without the price.
* @return showUnavailableCard
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SHOW_UNAVAILABLE_CARD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShowUnavailableCard() {
return showUnavailableCard;
}
@JsonProperty(JSON_PROPERTY_SHOW_UNAVAILABLE_CARD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShowUnavailableCard(Boolean showUnavailableCard) {
this.showUnavailableCard = showUnavailableCard;
}
public EngineConfigurationBookingReportSupplierDetails showRankings(Boolean showRankings) {
this.showRankings = showRankings;
return this;
}
/**
* Whether to display rankings (lifestyle, eco score and reviews) on hotel landing page.
* @return showRankings
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SHOW_RANKINGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShowRankings() {
return showRankings;
}
@JsonProperty(JSON_PROPERTY_SHOW_RANKINGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShowRankings(Boolean showRankings) {
this.showRankings = showRankings;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EngineConfigurationBookingReportSupplierDetails engineConfigurationBookingReportSupplierDetails = (EngineConfigurationBookingReportSupplierDetails) o;
return Objects.equals(this.identifier, engineConfigurationBookingReportSupplierDetails.identifier) &&
Objects.equals(this.name, engineConfigurationBookingReportSupplierDetails.name) &&
Objects.equals(this.userIdentifier, engineConfigurationBookingReportSupplierDetails.userIdentifier) &&
Objects.equals(this.ownerIdentifier, engineConfigurationBookingReportSupplierDetails.ownerIdentifier) &&
Objects.equals(this.ownerName, engineConfigurationBookingReportSupplierDetails.ownerName) &&
Objects.equals(this.subType, engineConfigurationBookingReportSupplierDetails.subType) &&
Objects.equals(this.defaultCurrency, engineConfigurationBookingReportSupplierDetails.defaultCurrency) &&
Objects.equals(this.defaultLanguage, engineConfigurationBookingReportSupplierDetails.defaultLanguage) &&
Objects.equals(this.defaultLifestyle, engineConfigurationBookingReportSupplierDetails.defaultLifestyle) &&
Objects.equals(this.logos, engineConfigurationBookingReportSupplierDetails.logos) &&
Objects.equals(this.hostedBookingEngineUrl, engineConfigurationBookingReportSupplierDetails.hostedBookingEngineUrl) &&
Objects.equals(this.selfHosted, engineConfigurationBookingReportSupplierDetails.selfHosted) &&
Objects.equals(this.themeColors, engineConfigurationBookingReportSupplierDetails.themeColors) &&
Objects.equals(this.numberOfAdvanceDays, engineConfigurationBookingReportSupplierDetails.numberOfAdvanceDays) &&
Objects.equals(this.numberOfStayDays, engineConfigurationBookingReportSupplierDetails.numberOfStayDays) &&
Objects.equals(this.startDate, engineConfigurationBookingReportSupplierDetails.startDate) &&
Objects.equals(this.endDate, engineConfigurationBookingReportSupplierDetails.endDate) &&
Objects.equals(this.roomConfigurations, engineConfigurationBookingReportSupplierDetails.roomConfigurations) &&
Objects.equals(this.useDays, engineConfigurationBookingReportSupplierDetails.useDays) &&
Objects.equals(this.promotionalCodes, engineConfigurationBookingReportSupplierDetails.promotionalCodes) &&
Objects.equals(this.sendBookingNotificationEmailsToProperty, engineConfigurationBookingReportSupplierDetails.sendBookingNotificationEmailsToProperty) &&
Objects.equals(this.sendBookingNotificationEmailsToBooker, engineConfigurationBookingReportSupplierDetails.sendBookingNotificationEmailsToBooker) &&
Objects.equals(this.sendBookingNotificationEmailsToChannelManager, engineConfigurationBookingReportSupplierDetails.sendBookingNotificationEmailsToChannelManager) &&
Objects.equals(this.wcBookClickAction, engineConfigurationBookingReportSupplierDetails.wcBookClickAction) &&
Objects.equals(this.city, engineConfigurationBookingReportSupplierDetails.city) &&
Objects.equals(this.showUnavailableCard, engineConfigurationBookingReportSupplierDetails.showUnavailableCard) &&
Objects.equals(this.showRankings, engineConfigurationBookingReportSupplierDetails.showRankings);
}
@Override
public int hashCode() {
return Objects.hash(identifier, name, userIdentifier, ownerIdentifier, ownerName, subType, defaultCurrency, defaultLanguage, defaultLifestyle, logos, hostedBookingEngineUrl, selfHosted, themeColors, numberOfAdvanceDays, numberOfStayDays, startDate, endDate, roomConfigurations, useDays, promotionalCodes, sendBookingNotificationEmailsToProperty, sendBookingNotificationEmailsToBooker, sendBookingNotificationEmailsToChannelManager, wcBookClickAction, city, showUnavailableCard, showRankings);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EngineConfigurationBookingReportSupplierDetails {\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" userIdentifier: ").append(toIndentedString(userIdentifier)).append("\n");
sb.append(" ownerIdentifier: ").append(toIndentedString(ownerIdentifier)).append("\n");
sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n");
sb.append(" subType: ").append(toIndentedString(subType)).append("\n");
sb.append(" defaultCurrency: ").append(toIndentedString(defaultCurrency)).append("\n");
sb.append(" defaultLanguage: ").append(toIndentedString(defaultLanguage)).append("\n");
sb.append(" defaultLifestyle: ").append(toIndentedString(defaultLifestyle)).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(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" showUnavailableCard: ").append(toIndentedString(showUnavailableCard)).append("\n");
sb.append(" showRankings: ").append(toIndentedString(showRankings)).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 ");
}
}