/* Options: Date: 2026-01-12 02:38:06 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qa-business-api.brovs.com //Package: //GlobalNamespace: BusinessApi //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: UpdateAdRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class BusinessApi { @Route(Path="/ad/update", Verbs="PUT") public static class UpdateAdRequest implements IReturn, IPut, IHasAdId { public Long adId = null; public PlaceRelativeDateTimeDto startAt = null; public PlaceRelativeDateTimeDto stopAt = null; public PlaceRelativeDateTimeDto publishAt = null; public AdDetailsUnion detailsUnion = null; public Long getAdId() { return adId; } public UpdateAdRequest setAdId(Long value) { this.adId = value; return this; } public PlaceRelativeDateTimeDto getStartAt() { return startAt; } public UpdateAdRequest setStartAt(PlaceRelativeDateTimeDto value) { this.startAt = value; return this; } public PlaceRelativeDateTimeDto getStopAt() { return stopAt; } public UpdateAdRequest setStopAt(PlaceRelativeDateTimeDto value) { this.stopAt = value; return this; } public PlaceRelativeDateTimeDto getPublishAt() { return publishAt; } public UpdateAdRequest setPublishAt(PlaceRelativeDateTimeDto value) { this.publishAt = value; return this; } public AdDetailsUnion getDetailsUnion() { return detailsUnion; } public UpdateAdRequest setDetailsUnion(AdDetailsUnion value) { this.detailsUnion = value; return this; } private static Object responseType = UpdateAdResponse.class; public Object getResponseType() { return responseType; } } public static class UpdateAdResponse { public Long adId = null; public Long getAdId() { return adId; } public UpdateAdResponse setAdId(Long value) { this.adId = value; return this; } } public static interface IHasAdId { public Long adId = null; } public static class AdDetailsUnion { public AdDetailsPercentageDiscountOnAllMerchandise percentageOnAllMerchandise = null; public AdDetailsPercentageDiscountRangeOnAllMerchandise percentageRangeOnAllMerchandise = null; public AdDetailsPercentageDiscountOnSelectedMerchandise percentageOnSelectedMerchandise = null; public AdDetailsAbsoluteDiscountOnSelectedMerchandise absoluteOnSelectedMerchandise = null; public AdDetailsAbsoluteDiscountRangeOnAllMerchandise absoluteRangeOnAllMerchandise = null; public AdDetailsTotalAmountOverXgivesYdiscount totalAmountOverXgivesYdiscount = null; public AdDetailsXforYdiscount xforY = null; public AdDetailsNewArrivals newArrivals = null; public AdDetailsFreetext freetext = null; public AdDetailsTodaysBreakFastOffer todaysBreakFastOffer = null; public AdDetailsTodaysLunchOffer todaysLunchOffer = null; public AdDetailsTodaysDinnerOffer todaysDinnerOffer = null; public AdDetailsSaveFoodAndMoney saveFoodAndMoney = null; public AdDetailsPercentageOffYourFoodBill percentageOfYourFoodBill = null; public AdDetailsHappyHour happyHour = null; public AdDetailsSomeFreeTablesLeftToday someFreeTablesLeftToday = null; public AdDetailsTwoDishesForThePriceOfOne twoDishesForThePriceOfOne = null; public AdDetailsPercentageDiscountOnAllMerchandise getPercentageOnAllMerchandise() { return percentageOnAllMerchandise; } public AdDetailsUnion setPercentageOnAllMerchandise(AdDetailsPercentageDiscountOnAllMerchandise value) { this.percentageOnAllMerchandise = value; return this; } public AdDetailsPercentageDiscountRangeOnAllMerchandise getPercentageRangeOnAllMerchandise() { return percentageRangeOnAllMerchandise; } public AdDetailsUnion setPercentageRangeOnAllMerchandise(AdDetailsPercentageDiscountRangeOnAllMerchandise value) { this.percentageRangeOnAllMerchandise = value; return this; } public AdDetailsPercentageDiscountOnSelectedMerchandise getPercentageOnSelectedMerchandise() { return percentageOnSelectedMerchandise; } public AdDetailsUnion setPercentageOnSelectedMerchandise(AdDetailsPercentageDiscountOnSelectedMerchandise value) { this.percentageOnSelectedMerchandise = value; return this; } public AdDetailsAbsoluteDiscountOnSelectedMerchandise getAbsoluteOnSelectedMerchandise() { return absoluteOnSelectedMerchandise; } public AdDetailsUnion setAbsoluteOnSelectedMerchandise(AdDetailsAbsoluteDiscountOnSelectedMerchandise value) { this.absoluteOnSelectedMerchandise = value; return this; } public AdDetailsAbsoluteDiscountRangeOnAllMerchandise getAbsoluteRangeOnAllMerchandise() { return absoluteRangeOnAllMerchandise; } public AdDetailsUnion setAbsoluteRangeOnAllMerchandise(AdDetailsAbsoluteDiscountRangeOnAllMerchandise value) { this.absoluteRangeOnAllMerchandise = value; return this; } public AdDetailsTotalAmountOverXgivesYdiscount getTotalAmountOverXgivesYdiscount() { return totalAmountOverXgivesYdiscount; } public AdDetailsUnion setTotalAmountOverXgivesYdiscount(AdDetailsTotalAmountOverXgivesYdiscount value) { this.totalAmountOverXgivesYdiscount = value; return this; } public AdDetailsXforYdiscount getXforY() { return xforY; } public AdDetailsUnion setXforY(AdDetailsXforYdiscount value) { this.xforY = value; return this; } public AdDetailsNewArrivals getNewArrivals() { return newArrivals; } public AdDetailsUnion setNewArrivals(AdDetailsNewArrivals value) { this.newArrivals = value; return this; } public AdDetailsFreetext getFreetext() { return freetext; } public AdDetailsUnion setFreetext(AdDetailsFreetext value) { this.freetext = value; return this; } public AdDetailsTodaysBreakFastOffer getTodaysBreakFastOffer() { return todaysBreakFastOffer; } public AdDetailsUnion setTodaysBreakFastOffer(AdDetailsTodaysBreakFastOffer value) { this.todaysBreakFastOffer = value; return this; } public AdDetailsTodaysLunchOffer getTodaysLunchOffer() { return todaysLunchOffer; } public AdDetailsUnion setTodaysLunchOffer(AdDetailsTodaysLunchOffer value) { this.todaysLunchOffer = value; return this; } public AdDetailsTodaysDinnerOffer getTodaysDinnerOffer() { return todaysDinnerOffer; } public AdDetailsUnion setTodaysDinnerOffer(AdDetailsTodaysDinnerOffer value) { this.todaysDinnerOffer = value; return this; } public AdDetailsSaveFoodAndMoney getSaveFoodAndMoney() { return saveFoodAndMoney; } public AdDetailsUnion setSaveFoodAndMoney(AdDetailsSaveFoodAndMoney value) { this.saveFoodAndMoney = value; return this; } public AdDetailsPercentageOffYourFoodBill getPercentageOfYourFoodBill() { return percentageOfYourFoodBill; } public AdDetailsUnion setPercentageOfYourFoodBill(AdDetailsPercentageOffYourFoodBill value) { this.percentageOfYourFoodBill = value; return this; } public AdDetailsHappyHour getHappyHour() { return happyHour; } public AdDetailsUnion setHappyHour(AdDetailsHappyHour value) { this.happyHour = value; return this; } public AdDetailsSomeFreeTablesLeftToday getSomeFreeTablesLeftToday() { return someFreeTablesLeftToday; } public AdDetailsUnion setSomeFreeTablesLeftToday(AdDetailsSomeFreeTablesLeftToday value) { this.someFreeTablesLeftToday = value; return this; } public AdDetailsTwoDishesForThePriceOfOne getTwoDishesForThePriceOfOne() { return twoDishesForThePriceOfOne; } public AdDetailsUnion setTwoDishesForThePriceOfOne(AdDetailsTwoDishesForThePriceOfOne value) { this.twoDishesForThePriceOfOne = value; return this; } } public static class PlaceRelativeDateTimeDto { public Integer year = null; public Integer month = null; public Integer day = null; public Integer hour = null; public Integer minute = null; public Integer second = null; public Integer getYear() { return year; } public PlaceRelativeDateTimeDto setYear(Integer value) { this.year = value; return this; } public Integer getMonth() { return month; } public PlaceRelativeDateTimeDto setMonth(Integer value) { this.month = value; return this; } public Integer getDay() { return day; } public PlaceRelativeDateTimeDto setDay(Integer value) { this.day = value; return this; } public Integer getHour() { return hour; } public PlaceRelativeDateTimeDto setHour(Integer value) { this.hour = value; return this; } public Integer getMinute() { return minute; } public PlaceRelativeDateTimeDto setMinute(Integer value) { this.minute = value; return this; } public Integer getSecond() { return second; } public PlaceRelativeDateTimeDto setSecond(Integer value) { this.second = value; return this; } } public static class AdDetailsPercentageDiscountOnAllMerchandise extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsPercentageDiscountOnAllMerchandise setValue(Double value) { this.value = value; return this; } } public static class AdDetailsPercentageDiscountRangeOnAllMerchandise extends AdDetailsBase { public Double start = null; public Double stop = null; public Double getStart() { return start; } public AdDetailsPercentageDiscountRangeOnAllMerchandise setStart(Double value) { this.start = value; return this; } public Double getStop() { return stop; } public AdDetailsPercentageDiscountRangeOnAllMerchandise setStop(Double value) { this.stop = value; return this; } } public static class AdDetailsPercentageDiscountOnSelectedMerchandise extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsPercentageDiscountOnSelectedMerchandise setValue(Double value) { this.value = value; return this; } } public static class AdDetailsAbsoluteDiscountOnSelectedMerchandise extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsAbsoluteDiscountOnSelectedMerchandise setValue(Double value) { this.value = value; return this; } } public static class AdDetailsAbsoluteDiscountRangeOnAllMerchandise extends AdDetailsBase { public Double start = null; public Double stop = null; public Double getStart() { return start; } public AdDetailsAbsoluteDiscountRangeOnAllMerchandise setStart(Double value) { this.start = value; return this; } public Double getStop() { return stop; } public AdDetailsAbsoluteDiscountRangeOnAllMerchandise setStop(Double value) { this.stop = value; return this; } } public static class AdDetailsTotalAmountOverXgivesYdiscount extends AdDetailsBase { public Double ifTotalAmountMoreThanX = null; public Double thenYouGetDiscountPercentageY = null; public Double getIfTotalAmountMoreThanX() { return ifTotalAmountMoreThanX; } public AdDetailsTotalAmountOverXgivesYdiscount setIfTotalAmountMoreThanX(Double value) { this.ifTotalAmountMoreThanX = value; return this; } public Double getThenYouGetDiscountPercentageY() { return thenYouGetDiscountPercentageY; } public AdDetailsTotalAmountOverXgivesYdiscount setThenYouGetDiscountPercentageY(Double value) { this.thenYouGetDiscountPercentageY = value; return this; } } public static class AdDetailsXforYdiscount extends AdDetailsBase { public Integer ifYouBuyX = null; public Integer thenYouGetY = null; public Integer getIfYouBuyX() { return ifYouBuyX; } public AdDetailsXforYdiscount setIfYouBuyX(Integer value) { this.ifYouBuyX = value; return this; } public Integer getThenYouGetY() { return thenYouGetY; } public AdDetailsXforYdiscount setThenYouGetY(Integer value) { this.thenYouGetY = value; return this; } } public static class AdDetailsNewArrivals extends AdDetailsBase { } public static class AdDetailsFreetext extends AdDetailsBase { public String title = null; public String getTitle() { return title; } public AdDetailsFreetext setTitle(String value) { this.title = value; return this; } } public static class AdDetailsTodaysBreakFastOffer extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsTodaysBreakFastOffer setValue(Double value) { this.value = value; return this; } } public static class AdDetailsTodaysLunchOffer extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsTodaysLunchOffer setValue(Double value) { this.value = value; return this; } } public static class AdDetailsTodaysDinnerOffer extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsTodaysDinnerOffer setValue(Double value) { this.value = value; return this; } } public static class AdDetailsSaveFoodAndMoney extends AdDetailsBase { public Double value = null; public Double getValue() { return value; } public AdDetailsSaveFoodAndMoney setValue(Double value) { this.value = value; return this; } } public static class AdDetailsPercentageOffYourFoodBill extends AdDetailsBase { public Double percentage = null; public Double getPercentage() { return percentage; } public AdDetailsPercentageOffYourFoodBill setPercentage(Double value) { this.percentage = value; return this; } } public static class AdDetailsHappyHour extends AdDetailsBase { } public static class AdDetailsSomeFreeTablesLeftToday extends AdDetailsBase { } public static class AdDetailsTwoDishesForThePriceOfOne extends AdDetailsBase { } public static class AdDetailsBase { public String description = null; public ArrayList moreInformation = new ArrayList(); public String getDescription() { return description; } public AdDetailsBase setDescription(String value) { this.description = value; return this; } public ArrayList getMoreInformation() { return moreInformation; } public AdDetailsBase setMoreInformation(ArrayList value) { this.moreInformation = value; return this; } } }