Required role: | Consumer |
GET | /admessage/drafts |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class ConsumerApi
{
public static class AdMessageDto
{
public Long id = null;
public UUID guid = null;
public String title = null;
public Date startAt = null;
public Date stopAt = null;
public Date publishAt = null;
public ArrayList<ImageUrls> imageUrls = new ArrayList<ImageUrls>();
public PlaceBasicApiDto place = null;
public AdMessageDetailsUnion detailsUnion = null;
public Long starredCount = null;
public Long getId() { return id; }
public AdMessageDto setId(Long value) { this.id = value; return this; }
public UUID getGuid() { return guid; }
public AdMessageDto setGuid(UUID value) { this.guid = value; return this; }
public String getTitle() { return title; }
public AdMessageDto setTitle(String value) { this.title = value; return this; }
public Date getStartAt() { return startAt; }
public AdMessageDto setStartAt(Date value) { this.startAt = value; return this; }
public Date getStopAt() { return stopAt; }
public AdMessageDto setStopAt(Date value) { this.stopAt = value; return this; }
public Date getPublishAt() { return publishAt; }
public AdMessageDto setPublishAt(Date value) { this.publishAt = value; return this; }
public ArrayList<ImageUrls> getImageUrls() { return imageUrls; }
public AdMessageDto setImageUrls(ArrayList<ImageUrls> value) { this.imageUrls = value; return this; }
public PlaceBasicApiDto getPlace() { return place; }
public AdMessageDto setPlace(PlaceBasicApiDto value) { this.place = value; return this; }
public AdMessageDetailsUnion getDetailsUnion() { return detailsUnion; }
public AdMessageDto setDetailsUnion(AdMessageDetailsUnion value) { this.detailsUnion = value; return this; }
public Long getStarredCount() { return starredCount; }
public AdMessageDto setStarredCount(Long value) { this.starredCount = value; return this; }
}
public static class ImageUrls
{
public String preview = null;
public String small = null;
public String medium = null;
public String large = null;
public String getPreview() { return preview; }
public ImageUrls setPreview(String value) { this.preview = value; return this; }
public String getSmall() { return small; }
public ImageUrls setSmall(String value) { this.small = value; return this; }
public String getMedium() { return medium; }
public ImageUrls setMedium(String value) { this.medium = value; return this; }
public String getLarge() { return large; }
public ImageUrls setLarge(String value) { this.large = value; return this; }
}
public static class PlaceBasicApiDto
{
public Long id = null;
public UUID guid = null;
public String overview = null;
public String name = null;
public Float longitude = null;
public Float latitude = null;
public Boolean claimed = null;
public String organizationNumber = null;
public String countryCode = null;
public OpeningHours openingHours = null;
public Boolean wheelchairAccessible = null;
public Boolean wifi = null;
public Boolean outdoorSeating = null;
public Boolean saveFoodAndMoney = null;
public PlaceType placeType = null;
public PriceMainDishApiDto priceMainDish = null;
public TimeZoneDto timeZoneDto = null;
public Long businessId = null;
public PlaceContact contact = null;
public PlaceAddress address = null;
public ArrayList<CategoryTreeApiDto> categories = new ArrayList<CategoryTreeApiDto>();
public ImageUrls logoUrl = null;
public ImageUrls imageUrl = null;
public ArrayList<WearPriceProfileEsDto> wearPriceProfiles = new ArrayList<WearPriceProfileEsDto>();
public ArrayList<PlaceSelectedBrandApiDto> brands = new ArrayList<PlaceSelectedBrandApiDto>();
public String floor = null;
public Long getId() { return id; }
public PlaceBasicApiDto setId(Long value) { this.id = value; return this; }
public UUID getGuid() { return guid; }
public PlaceBasicApiDto setGuid(UUID value) { this.guid = value; return this; }
public String getOverview() { return overview; }
public PlaceBasicApiDto setOverview(String value) { this.overview = value; return this; }
public String getName() { return name; }
public PlaceBasicApiDto setName(String value) { this.name = value; return this; }
public Float getLongitude() { return longitude; }
public PlaceBasicApiDto setLongitude(Float value) { this.longitude = value; return this; }
public Float getLatitude() { return latitude; }
public PlaceBasicApiDto setLatitude(Float value) { this.latitude = value; return this; }
public Boolean isClaimed() { return claimed; }
public PlaceBasicApiDto setClaimed(Boolean value) { this.claimed = value; return this; }
public String getOrganizationNumber() { return organizationNumber; }
public PlaceBasicApiDto setOrganizationNumber(String value) { this.organizationNumber = value; return this; }
public String getCountryCode() { return countryCode; }
public PlaceBasicApiDto setCountryCode(String value) { this.countryCode = value; return this; }
public OpeningHours getOpeningHours() { return openingHours; }
public PlaceBasicApiDto setOpeningHours(OpeningHours value) { this.openingHours = value; return this; }
public Boolean isWheelchairAccessible() { return wheelchairAccessible; }
public PlaceBasicApiDto setWheelchairAccessible(Boolean value) { this.wheelchairAccessible = value; return this; }
public Boolean isWifi() { return wifi; }
public PlaceBasicApiDto setWifi(Boolean value) { this.wifi = value; return this; }
public Boolean isOutdoorSeating() { return outdoorSeating; }
public PlaceBasicApiDto setOutdoorSeating(Boolean value) { this.outdoorSeating = value; return this; }
public Boolean isSaveFoodAndMoney() { return saveFoodAndMoney; }
public PlaceBasicApiDto setSaveFoodAndMoney(Boolean value) { this.saveFoodAndMoney = value; return this; }
public PlaceType getPlaceType() { return placeType; }
public PlaceBasicApiDto setPlaceType(PlaceType value) { this.placeType = value; return this; }
public PriceMainDishApiDto getPriceMainDish() { return priceMainDish; }
public PlaceBasicApiDto setPriceMainDish(PriceMainDishApiDto value) { this.priceMainDish = value; return this; }
public TimeZoneDto getTimeZoneDto() { return timeZoneDto; }
public PlaceBasicApiDto setTimeZoneDto(TimeZoneDto value) { this.timeZoneDto = value; return this; }
public Long getBusinessId() { return businessId; }
public PlaceBasicApiDto setBusinessId(Long value) { this.businessId = value; return this; }
public PlaceContact getContact() { return contact; }
public PlaceBasicApiDto setContact(PlaceContact value) { this.contact = value; return this; }
public PlaceAddress getAddress() { return address; }
public PlaceBasicApiDto setAddress(PlaceAddress value) { this.address = value; return this; }
public ArrayList<CategoryTreeApiDto> getCategories() { return categories; }
public PlaceBasicApiDto setCategories(ArrayList<CategoryTreeApiDto> value) { this.categories = value; return this; }
public ImageUrls getLogoUrl() { return logoUrl; }
public PlaceBasicApiDto setLogoUrl(ImageUrls value) { this.logoUrl = value; return this; }
public ImageUrls getImageUrl() { return imageUrl; }
public PlaceBasicApiDto setImageUrl(ImageUrls value) { this.imageUrl = value; return this; }
public ArrayList<WearPriceProfileEsDto> getWearPriceProfiles() { return wearPriceProfiles; }
public PlaceBasicApiDto setWearPriceProfiles(ArrayList<WearPriceProfileEsDto> value) { this.wearPriceProfiles = value; return this; }
public ArrayList<PlaceSelectedBrandApiDto> getBrands() { return brands; }
public PlaceBasicApiDto setBrands(ArrayList<PlaceSelectedBrandApiDto> value) { this.brands = value; return this; }
public String getFloor() { return floor; }
public PlaceBasicApiDto setFloor(String value) { this.floor = value; return this; }
}
public static class OpeningHours
{
public WeeklyOpeningHours weekly = null;
public WeeklyOpeningHours getWeekly() { return weekly; }
public OpeningHours setWeekly(WeeklyOpeningHours value) { this.weekly = value; return this; }
}
public static class WeeklyOpeningHours
{
public OpeningHour monday = null;
public OpeningHour tuesday = null;
public OpeningHour wednesday = null;
public OpeningHour thursday = null;
public OpeningHour friday = null;
public OpeningHour saturday = null;
public OpeningHour sunday = null;
public OpeningHour getMonday() { return monday; }
public WeeklyOpeningHours setMonday(OpeningHour value) { this.monday = value; return this; }
public OpeningHour getTuesday() { return tuesday; }
public WeeklyOpeningHours setTuesday(OpeningHour value) { this.tuesday = value; return this; }
public OpeningHour getWednesday() { return wednesday; }
public WeeklyOpeningHours setWednesday(OpeningHour value) { this.wednesday = value; return this; }
public OpeningHour getThursday() { return thursday; }
public WeeklyOpeningHours setThursday(OpeningHour value) { this.thursday = value; return this; }
public OpeningHour getFriday() { return friday; }
public WeeklyOpeningHours setFriday(OpeningHour value) { this.friday = value; return this; }
public OpeningHour getSaturday() { return saturday; }
public WeeklyOpeningHours setSaturday(OpeningHour value) { this.saturday = value; return this; }
public OpeningHour getSunday() { return sunday; }
public WeeklyOpeningHours setSunday(OpeningHour value) { this.sunday = value; return this; }
}
public static class OpeningHour
{
public Integer openAtHour = null;
public Integer openAtMinute = null;
public Integer closeAtHour = null;
public Integer closeAtMinute = null;
public Integer getOpenAtHour() { return openAtHour; }
public OpeningHour setOpenAtHour(Integer value) { this.openAtHour = value; return this; }
public Integer getOpenAtMinute() { return openAtMinute; }
public OpeningHour setOpenAtMinute(Integer value) { this.openAtMinute = value; return this; }
public Integer getCloseAtHour() { return closeAtHour; }
public OpeningHour setCloseAtHour(Integer value) { this.closeAtHour = value; return this; }
public Integer getCloseAtMinute() { return closeAtMinute; }
public OpeningHour setCloseAtMinute(Integer value) { this.closeAtMinute = value; return this; }
}
public static enum PlaceType
{
Mall,
Regular;
}
public static class PriceMainDishApiDto
{
public String title = null;
public PriceMainDish slug = null;
public String getTitle() { return title; }
public PriceMainDishApiDto setTitle(String value) { this.title = value; return this; }
public PriceMainDish getSlug() { return slug; }
public PriceMainDishApiDto setSlug(PriceMainDish value) { this.slug = value; return this; }
}
public static enum PriceMainDish
{
Value,
Medium,
High,
FineDining;
}
public static class TimeZoneDto
{
public TimeSpan baseUtcOffset = null;
public String daylightName = null;
public String displayName = null;
public String id = null;
public String standardName = null;
public Boolean supportsDaylightSavingTime = null;
public TimeSpan getBaseUtcOffset() { return baseUtcOffset; }
public TimeZoneDto setBaseUtcOffset(TimeSpan value) { this.baseUtcOffset = value; return this; }
public String getDaylightName() { return daylightName; }
public TimeZoneDto setDaylightName(String value) { this.daylightName = value; return this; }
public String getDisplayName() { return displayName; }
public TimeZoneDto setDisplayName(String value) { this.displayName = value; return this; }
public String getId() { return id; }
public TimeZoneDto setId(String value) { this.id = value; return this; }
public String getStandardName() { return standardName; }
public TimeZoneDto setStandardName(String value) { this.standardName = value; return this; }
public Boolean isSupportsDaylightSavingTime() { return supportsDaylightSavingTime; }
public TimeZoneDto setSupportsDaylightSavingTime(Boolean value) { this.supportsDaylightSavingTime = value; return this; }
}
public static class PlaceContact
{
public String phone = null;
public String email = null;
public String website = null;
public String webShop = null;
public String getPhone() { return phone; }
public PlaceContact setPhone(String value) { this.phone = value; return this; }
public String getEmail() { return email; }
public PlaceContact setEmail(String value) { this.email = value; return this; }
public String getWebsite() { return website; }
public PlaceContact setWebsite(String value) { this.website = value; return this; }
public String getWebShop() { return webShop; }
public PlaceContact setWebShop(String value) { this.webShop = value; return this; }
}
public static class PlaceAddress
{
public String street = null;
public String postalCode = null;
public String region = null;
public String countryCode = null;
public String getStreet() { return street; }
public PlaceAddress setStreet(String value) { this.street = value; return this; }
public String getPostalCode() { return postalCode; }
public PlaceAddress setPostalCode(String value) { this.postalCode = value; return this; }
public String getRegion() { return region; }
public PlaceAddress setRegion(String value) { this.region = value; return this; }
public String getCountryCode() { return countryCode; }
public PlaceAddress setCountryCode(String value) { this.countryCode = value; return this; }
}
public static class CategoryTreeApiDto
{
public String name = null;
public String slug = null;
public String absoluteSlug = null;
public String imageUrl = null;
public String allImageUrl = null;
public String iconImageUrl = null;
public Integer position = null;
public ArrayList<CategoryTreeApiDto> children = new ArrayList<CategoryTreeApiDto>();
public String getName() { return name; }
public CategoryTreeApiDto setName(String value) { this.name = value; return this; }
public String getSlug() { return slug; }
public CategoryTreeApiDto setSlug(String value) { this.slug = value; return this; }
public String getAbsoluteSlug() { return absoluteSlug; }
public CategoryTreeApiDto setAbsoluteSlug(String value) { this.absoluteSlug = value; return this; }
public String getImageUrl() { return imageUrl; }
public CategoryTreeApiDto setImageUrl(String value) { this.imageUrl = value; return this; }
public String getAllImageUrl() { return allImageUrl; }
public CategoryTreeApiDto setAllImageUrl(String value) { this.allImageUrl = value; return this; }
public String getIconImageUrl() { return iconImageUrl; }
public CategoryTreeApiDto setIconImageUrl(String value) { this.iconImageUrl = value; return this; }
public Integer getPosition() { return position; }
public CategoryTreeApiDto setPosition(Integer value) { this.position = value; return this; }
public ArrayList<CategoryTreeApiDto> getChildren() { return children; }
public CategoryTreeApiDto setChildren(ArrayList<CategoryTreeApiDto> value) { this.children = value; return this; }
}
public static class WearPriceProfileEsDto
{
public String slug = null;
public String label = null;
public String getSlug() { return slug; }
public WearPriceProfileEsDto setSlug(String value) { this.slug = value; return this; }
public String getLabel() { return label; }
public WearPriceProfileEsDto setLabel(String value) { this.label = value; return this; }
}
public static class PlaceSelectedBrandApiDto
{
public BrandApiDto brand = null;
public ArrayList<String> categoryAbsoluteSlugs = new ArrayList<String>();
public PlaceCustomBrandApiDto placeCustomBrand = null;
public BrandApiDto getBrand() { return brand; }
public PlaceSelectedBrandApiDto setBrand(BrandApiDto value) { this.brand = value; return this; }
public ArrayList<String> getCategoryAbsoluteSlugs() { return categoryAbsoluteSlugs; }
public PlaceSelectedBrandApiDto setCategoryAbsoluteSlugs(ArrayList<String> value) { this.categoryAbsoluteSlugs = value; return this; }
public PlaceCustomBrandApiDto getPlaceCustomBrand() { return placeCustomBrand; }
public PlaceSelectedBrandApiDto setPlaceCustomBrand(PlaceCustomBrandApiDto value) { this.placeCustomBrand = value; return this; }
}
public static class BrandApiDto
{
public String name = null;
public String getName() { return name; }
public BrandApiDto setName(String value) { this.name = value; return this; }
}
public static class PlaceCustomBrandApiDto
{
public String name = null;
public String getName() { return name; }
public PlaceCustomBrandApiDto setName(String value) { this.name = value; return this; }
}
public static class AdMessageDetailsUnion
{
public AdMessageDetailsPercentageDiscountOnAllMerchandise percentageOnAllMerchandise = null;
public AdMessageDetailsPercentageDiscountRangeOnAllMerchandise percentageRangeOnAllMerchandise = null;
public AdMessageDetailsPercentageDiscountOnSelectedMerchandise percentageOnSelectedMerchandise = null;
public AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise absoluteOnSelectedMerchandise = null;
public AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise absoluteRangeOnAllMerchandise = null;
public AdMessageDetailsTotalAmountOverXgivesYdiscount totalAmountOverXgivesYdiscount = null;
public AdMessageDetailsXforYdiscount xforY = null;
public AdMessageDetailsNewArrivals newArrivals = null;
public AdMessageDetailsFreetext freetext = null;
public AdMessageDetailsTodaysBreakFastOffer todaysBreakFastOffer = null;
public AdMessageDetailsTodaysLunchOffer todaysLunchOffer = null;
public AdMessageDetailsTodaysDinnerOffer todaysDinnerOffer = null;
public AdMessageDetailsSaveFoodAndMoney saveFoodAndMoney = null;
public AdMessageDetailsPercentageOffYourFoodBill percentageOfYourFoodBill = null;
public AdMessageDetailsHappyHour happyHour = null;
public AdMessageDetailsSomeFreeTablesLeftToday someFreeTablesLeftToday = null;
public AdMessageDetailsTwoDishesForThePriceOfOne twoDishesForThePriceOfOne = null;
public AdMessageDetailsPercentageDiscountOnAllMerchandise getPercentageOnAllMerchandise() { return percentageOnAllMerchandise; }
public AdMessageDetailsUnion setPercentageOnAllMerchandise(AdMessageDetailsPercentageDiscountOnAllMerchandise value) { this.percentageOnAllMerchandise = value; return this; }
public AdMessageDetailsPercentageDiscountRangeOnAllMerchandise getPercentageRangeOnAllMerchandise() { return percentageRangeOnAllMerchandise; }
public AdMessageDetailsUnion setPercentageRangeOnAllMerchandise(AdMessageDetailsPercentageDiscountRangeOnAllMerchandise value) { this.percentageRangeOnAllMerchandise = value; return this; }
public AdMessageDetailsPercentageDiscountOnSelectedMerchandise getPercentageOnSelectedMerchandise() { return percentageOnSelectedMerchandise; }
public AdMessageDetailsUnion setPercentageOnSelectedMerchandise(AdMessageDetailsPercentageDiscountOnSelectedMerchandise value) { this.percentageOnSelectedMerchandise = value; return this; }
public AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise getAbsoluteOnSelectedMerchandise() { return absoluteOnSelectedMerchandise; }
public AdMessageDetailsUnion setAbsoluteOnSelectedMerchandise(AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise value) { this.absoluteOnSelectedMerchandise = value; return this; }
public AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise getAbsoluteRangeOnAllMerchandise() { return absoluteRangeOnAllMerchandise; }
public AdMessageDetailsUnion setAbsoluteRangeOnAllMerchandise(AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise value) { this.absoluteRangeOnAllMerchandise = value; return this; }
public AdMessageDetailsTotalAmountOverXgivesYdiscount getTotalAmountOverXgivesYdiscount() { return totalAmountOverXgivesYdiscount; }
public AdMessageDetailsUnion setTotalAmountOverXgivesYdiscount(AdMessageDetailsTotalAmountOverXgivesYdiscount value) { this.totalAmountOverXgivesYdiscount = value; return this; }
public AdMessageDetailsXforYdiscount getXforY() { return xforY; }
public AdMessageDetailsUnion setXforY(AdMessageDetailsXforYdiscount value) { this.xforY = value; return this; }
public AdMessageDetailsNewArrivals getNewArrivals() { return newArrivals; }
public AdMessageDetailsUnion setNewArrivals(AdMessageDetailsNewArrivals value) { this.newArrivals = value; return this; }
public AdMessageDetailsFreetext getFreetext() { return freetext; }
public AdMessageDetailsUnion setFreetext(AdMessageDetailsFreetext value) { this.freetext = value; return this; }
public AdMessageDetailsTodaysBreakFastOffer getTodaysBreakFastOffer() { return todaysBreakFastOffer; }
public AdMessageDetailsUnion setTodaysBreakFastOffer(AdMessageDetailsTodaysBreakFastOffer value) { this.todaysBreakFastOffer = value; return this; }
public AdMessageDetailsTodaysLunchOffer getTodaysLunchOffer() { return todaysLunchOffer; }
public AdMessageDetailsUnion setTodaysLunchOffer(AdMessageDetailsTodaysLunchOffer value) { this.todaysLunchOffer = value; return this; }
public AdMessageDetailsTodaysDinnerOffer getTodaysDinnerOffer() { return todaysDinnerOffer; }
public AdMessageDetailsUnion setTodaysDinnerOffer(AdMessageDetailsTodaysDinnerOffer value) { this.todaysDinnerOffer = value; return this; }
public AdMessageDetailsSaveFoodAndMoney getSaveFoodAndMoney() { return saveFoodAndMoney; }
public AdMessageDetailsUnion setSaveFoodAndMoney(AdMessageDetailsSaveFoodAndMoney value) { this.saveFoodAndMoney = value; return this; }
public AdMessageDetailsPercentageOffYourFoodBill getPercentageOfYourFoodBill() { return percentageOfYourFoodBill; }
public AdMessageDetailsUnion setPercentageOfYourFoodBill(AdMessageDetailsPercentageOffYourFoodBill value) { this.percentageOfYourFoodBill = value; return this; }
public AdMessageDetailsHappyHour getHappyHour() { return happyHour; }
public AdMessageDetailsUnion setHappyHour(AdMessageDetailsHappyHour value) { this.happyHour = value; return this; }
public AdMessageDetailsSomeFreeTablesLeftToday getSomeFreeTablesLeftToday() { return someFreeTablesLeftToday; }
public AdMessageDetailsUnion setSomeFreeTablesLeftToday(AdMessageDetailsSomeFreeTablesLeftToday value) { this.someFreeTablesLeftToday = value; return this; }
public AdMessageDetailsTwoDishesForThePriceOfOne getTwoDishesForThePriceOfOne() { return twoDishesForThePriceOfOne; }
public AdMessageDetailsUnion setTwoDishesForThePriceOfOne(AdMessageDetailsTwoDishesForThePriceOfOne value) { this.twoDishesForThePriceOfOne = value; return this; }
}
public static class AdMessageDetailsPercentageDiscountOnAllMerchandise extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsPercentageDiscountOnAllMerchandise setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsBase
{
public String description = null;
public ArrayList<String> moreInformation = new ArrayList<String>();
public String getDescription() { return description; }
public AdMessageDetailsBase setDescription(String value) { this.description = value; return this; }
public ArrayList<String> getMoreInformation() { return moreInformation; }
public AdMessageDetailsBase setMoreInformation(ArrayList<String> value) { this.moreInformation = value; return this; }
}
public static class AdMessageDetailsPercentageDiscountRangeOnAllMerchandise extends AdMessageDetailsBase
{
public Double start = null;
public Double stop = null;
public Double getStart() { return start; }
public AdMessageDetailsPercentageDiscountRangeOnAllMerchandise setStart(Double value) { this.start = value; return this; }
public Double getStop() { return stop; }
public AdMessageDetailsPercentageDiscountRangeOnAllMerchandise setStop(Double value) { this.stop = value; return this; }
}
public static class AdMessageDetailsPercentageDiscountOnSelectedMerchandise extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsPercentageDiscountOnSelectedMerchandise setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise extends AdMessageDetailsBase
{
public Double start = null;
public Double stop = null;
public Double getStart() { return start; }
public AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise setStart(Double value) { this.start = value; return this; }
public Double getStop() { return stop; }
public AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise setStop(Double value) { this.stop = value; return this; }
}
public static class AdMessageDetailsTotalAmountOverXgivesYdiscount extends AdMessageDetailsBase
{
public Double ifTotalAmountMoreThanX = null;
public Double thenYouGetDiscountPercentageY = null;
public Double getIfTotalAmountMoreThanX() { return ifTotalAmountMoreThanX; }
public AdMessageDetailsTotalAmountOverXgivesYdiscount setIfTotalAmountMoreThanX(Double value) { this.ifTotalAmountMoreThanX = value; return this; }
public Double getThenYouGetDiscountPercentageY() { return thenYouGetDiscountPercentageY; }
public AdMessageDetailsTotalAmountOverXgivesYdiscount setThenYouGetDiscountPercentageY(Double value) { this.thenYouGetDiscountPercentageY = value; return this; }
}
public static class AdMessageDetailsXforYdiscount extends AdMessageDetailsBase
{
public Integer ifYouBuyX = null;
public Integer thenYouGetY = null;
public Integer getIfYouBuyX() { return ifYouBuyX; }
public AdMessageDetailsXforYdiscount setIfYouBuyX(Integer value) { this.ifYouBuyX = value; return this; }
public Integer getThenYouGetY() { return thenYouGetY; }
public AdMessageDetailsXforYdiscount setThenYouGetY(Integer value) { this.thenYouGetY = value; return this; }
}
public static class AdMessageDetailsNewArrivals extends AdMessageDetailsBase
{
}
public static class AdMessageDetailsFreetext extends AdMessageDetailsBase
{
public String title = null;
public String getTitle() { return title; }
public AdMessageDetailsFreetext setTitle(String value) { this.title = value; return this; }
}
public static class AdMessageDetailsTodaysBreakFastOffer extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsTodaysBreakFastOffer setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsTodaysLunchOffer extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsTodaysLunchOffer setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsTodaysDinnerOffer extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsTodaysDinnerOffer setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsSaveFoodAndMoney extends AdMessageDetailsBase
{
public Double value = null;
public Double getValue() { return value; }
public AdMessageDetailsSaveFoodAndMoney setValue(Double value) { this.value = value; return this; }
}
public static class AdMessageDetailsPercentageOffYourFoodBill extends AdMessageDetailsBase
{
public Double percentage = null;
public Double getPercentage() { return percentage; }
public AdMessageDetailsPercentageOffYourFoodBill setPercentage(Double value) { this.percentage = value; return this; }
}
public static class AdMessageDetailsHappyHour extends AdMessageDetailsBase
{
}
public static class AdMessageDetailsSomeFreeTablesLeftToday extends AdMessageDetailsBase
{
}
public static class AdMessageDetailsTwoDishesForThePriceOfOne extends AdMessageDetailsBase
{
}
}
Java GetAdMessageDraftsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /admessage/drafts HTTP/1.1 Host: unstable-consumer-api.brovs.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetAdMessageDraftsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsumerApi.Dto"> <DraftAdMessages xmlns:d2p1="http://schemas.datacontract.org/2004/07/Api.Dto"> <d2p1:AdMessageDto> <d2p1:DetailsUnion xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d4p1:AbsoluteOnSelectedMerchandise> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:AbsoluteOnSelectedMerchandise> <d4p1:AbsoluteRangeOnAllMerchandise> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Start>0</d4p1:Start> <d4p1:Stop>0</d4p1:Stop> </d4p1:AbsoluteRangeOnAllMerchandise> <d4p1:Freetext> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Title>String</d4p1:Title> </d4p1:Freetext> <d4p1:HappyHour> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> </d4p1:HappyHour> <d4p1:NewArrivals> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> </d4p1:NewArrivals> <d4p1:PercentageOfYourFoodBill> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Percentage>0</d4p1:Percentage> </d4p1:PercentageOfYourFoodBill> <d4p1:PercentageOnAllMerchandise> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:PercentageOnAllMerchandise> <d4p1:PercentageOnSelectedMerchandise> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:PercentageOnSelectedMerchandise> <d4p1:PercentageRangeOnAllMerchandise> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Start>0</d4p1:Start> <d4p1:Stop>0</d4p1:Stop> </d4p1:PercentageRangeOnAllMerchandise> <d4p1:SaveFoodAndMoney> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:SaveFoodAndMoney> <d4p1:SomeFreeTablesLeftToday> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> </d4p1:SomeFreeTablesLeftToday> <d4p1:TodaysBreakFastOffer> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:TodaysBreakFastOffer> <d4p1:TodaysDinnerOffer> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:TodaysDinnerOffer> <d4p1:TodaysLunchOffer> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:Value>0</d4p1:Value> </d4p1:TodaysLunchOffer> <d4p1:TotalAmountOverXgivesYdiscount> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:IfTotalAmountMoreThanX>0</d4p1:IfTotalAmountMoreThanX> <d4p1:ThenYouGetDiscountPercentageY>0</d4p1:ThenYouGetDiscountPercentageY> </d4p1:TotalAmountOverXgivesYdiscount> <d4p1:TwoDishesForThePriceOfOne> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> </d4p1:TwoDishesForThePriceOfOne> <d4p1:XforY> <d4p1:Description>String</d4p1:Description> <d4p1:MoreInformation xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>String</d6p1:string> </d4p1:MoreInformation> <d4p1:IfYouBuyX>0</d4p1:IfYouBuyX> <d4p1:ThenYouGetY>0</d4p1:ThenYouGetY> </d4p1:XforY> </d2p1:DetailsUnion> <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid> <d2p1:Id>0</d2p1:Id> <d2p1:ImageUrls xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d4p1:ImageUrls> <d4p1:Large>String</d4p1:Large> <d4p1:Medium>String</d4p1:Medium> <d4p1:Preview>String</d4p1:Preview> <d4p1:Small>String</d4p1:Small> </d4p1:ImageUrls> </d2p1:ImageUrls> <d2p1:Place> <d2p1:Address xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d5p1:CountryCode>String</d5p1:CountryCode> <d5p1:PostalCode>String</d5p1:PostalCode> <d5p1:Region>String</d5p1:Region> <d5p1:Street>String</d5p1:Street> </d2p1:Address> <d2p1:Brands> <d2p1:PlaceSelectedBrandApiDto> <d2p1:Brand> <d2p1:Name>String</d2p1:Name> </d2p1:Brand> <d2p1:CategoryAbsoluteSlugs xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>String</d7p1:string> </d2p1:CategoryAbsoluteSlugs> <d2p1:PlaceCustomBrand> <d2p1:Name>String</d2p1:Name> </d2p1:PlaceCustomBrand> </d2p1:PlaceSelectedBrandApiDto> </d2p1:Brands> <d2p1:BusinessId>0</d2p1:BusinessId> <d2p1:Categories> <d2p1:CategoryTreeApiDto> <d2p1:AbsoluteSlug>String</d2p1:AbsoluteSlug> <d2p1:AllImageUrl>String</d2p1:AllImageUrl> <d2p1:Children> <d2p1:CategoryTreeApiDto> <d2p1:AbsoluteSlug>String</d2p1:AbsoluteSlug> <d2p1:AllImageUrl>String</d2p1:AllImageUrl> <d2p1:Children> <d2p1:CategoryTreeApiDto> <d2p1:AbsoluteSlug>String</d2p1:AbsoluteSlug> <d2p1:AllImageUrl>String</d2p1:AllImageUrl> <d2p1:Children i:nil="true" /> <d2p1:IconImageUrl>String</d2p1:IconImageUrl> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:Name>String</d2p1:Name> <d2p1:Position>0</d2p1:Position> <d2p1:Slug>String</d2p1:Slug> </d2p1:CategoryTreeApiDto> </d2p1:Children> <d2p1:IconImageUrl>String</d2p1:IconImageUrl> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:Name>String</d2p1:Name> <d2p1:Position>0</d2p1:Position> <d2p1:Slug>String</d2p1:Slug> </d2p1:CategoryTreeApiDto> </d2p1:Children> <d2p1:IconImageUrl>String</d2p1:IconImageUrl> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:Name>String</d2p1:Name> <d2p1:Position>0</d2p1:Position> <d2p1:Slug>String</d2p1:Slug> </d2p1:CategoryTreeApiDto> </d2p1:Categories> <d2p1:Claimed>false</d2p1:Claimed> <d2p1:Contact xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d5p1:Email>String</d5p1:Email> <d5p1:Phone>String</d5p1:Phone> <d5p1:WebShop>String</d5p1:WebShop> <d5p1:Website>String</d5p1:Website> </d2p1:Contact> <d2p1:CountryCode>String</d2p1:CountryCode> <d2p1:Floor>String</d2p1:Floor> <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid> <d2p1:Id>0</d2p1:Id> <d2p1:ImageUrl xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d5p1:Large>String</d5p1:Large> <d5p1:Medium>String</d5p1:Medium> <d5p1:Preview>String</d5p1:Preview> <d5p1:Small>String</d5p1:Small> </d2p1:ImageUrl> <d2p1:Latitude>0</d2p1:Latitude> <d2p1:LogoUrl xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d5p1:Large>String</d5p1:Large> <d5p1:Medium>String</d5p1:Medium> <d5p1:Preview>String</d5p1:Preview> <d5p1:Small>String</d5p1:Small> </d2p1:LogoUrl> <d2p1:Longitude>0</d2p1:Longitude> <d2p1:Name>String</d2p1:Name> <d2p1:OpeningHours xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d5p1:Weekly> <d5p1:Friday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Friday> <d5p1:Monday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Monday> <d5p1:Saturday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Saturday> <d5p1:Sunday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Sunday> <d5p1:Thursday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Thursday> <d5p1:Tuesday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Tuesday> <d5p1:Wednesday> <d5p1:CloseAtHour>0</d5p1:CloseAtHour> <d5p1:CloseAtMinute>0</d5p1:CloseAtMinute> <d5p1:OpenAtHour>0</d5p1:OpenAtHour> <d5p1:OpenAtMinute>0</d5p1:OpenAtMinute> </d5p1:Wednesday> </d5p1:Weekly> </d2p1:OpeningHours> <d2p1:OrganizationNumber>String</d2p1:OrganizationNumber> <d2p1:OutdoorSeating>false</d2p1:OutdoorSeating> <d2p1:Overview>String</d2p1:Overview> <d2p1:PlaceType>Mall</d2p1:PlaceType> <d2p1:PriceMainDish> <d2p1:Slug>Value</d2p1:Slug> <d2p1:Title>String</d2p1:Title> </d2p1:PriceMainDish> <d2p1:SaveFoodAndMoney>false</d2p1:SaveFoodAndMoney> <d2p1:TimeZoneDto xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common"> <d5p1:BaseUtcOffset>PT0S</d5p1:BaseUtcOffset> <d5p1:DaylightName>String</d5p1:DaylightName> <d5p1:DisplayName>String</d5p1:DisplayName> <d5p1:Id>String</d5p1:Id> <d5p1:StandardName>String</d5p1:StandardName> <d5p1:SupportsDaylightSavingTime>false</d5p1:SupportsDaylightSavingTime> </d2p1:TimeZoneDto> <d2p1:WearPriceProfiles> <d2p1:WearPriceProfileEsDto> <d2p1:Label>String</d2p1:Label> <d2p1:Slug>String</d2p1:Slug> </d2p1:WearPriceProfileEsDto> </d2p1:WearPriceProfiles> <d2p1:WheelchairAccessible>false</d2p1:WheelchairAccessible> <d2p1:Wifi>false</d2p1:Wifi> </d2p1:Place> <d2p1:PublishAt xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>0001-01-01T00:00:00Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </d2p1:PublishAt> <d2p1:StarredCount>0</d2p1:StarredCount> <d2p1:StartAt xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>0001-01-01T00:00:00Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </d2p1:StartAt> <d2p1:StopAt xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>0001-01-01T00:00:00Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </d2p1:StopAt> <d2p1:Title>String</d2p1:Title> </d2p1:AdMessageDto> </DraftAdMessages> </GetAdMessageDraftsResponse>