BusinessApi

<back to all web services

GetAdMessageTitleRequest

Business
Requires Authentication
Required role:Business
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class AdMessageDetailsUnion
{
    open var percentageOnAllMerchandise:AdMessageDetailsPercentageDiscountOnAllMerchandise? = null
    open var percentageRangeOnAllMerchandise:AdMessageDetailsPercentageDiscountRangeOnAllMerchandise? = null
    open var percentageOnSelectedMerchandise:AdMessageDetailsPercentageDiscountOnSelectedMerchandise? = null
    open var absoluteOnSelectedMerchandise:AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise? = null
    open var absoluteRangeOnAllMerchandise:AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise? = null
    open var totalAmountOverXgivesYdiscount:AdMessageDetailsTotalAmountOverXgivesYdiscount? = null
    open var xforY:AdMessageDetailsXforYdiscount? = null
    open var newArrivals:AdMessageDetailsNewArrivals? = null
    open var freetext:AdMessageDetailsFreetext? = null
    open var todaysBreakFastOffer:AdMessageDetailsTodaysBreakFastOffer? = null
    open var todaysLunchOffer:AdMessageDetailsTodaysLunchOffer? = null
    open var todaysDinnerOffer:AdMessageDetailsTodaysDinnerOffer? = null
    open var saveFoodAndMoney:AdMessageDetailsSaveFoodAndMoney? = null
    open var percentageOfYourFoodBill:AdMessageDetailsPercentageOffYourFoodBill? = null
    open var happyHour:AdMessageDetailsHappyHour? = null
    open var someFreeTablesLeftToday:AdMessageDetailsSomeFreeTablesLeftToday? = null
    open var twoDishesForThePriceOfOne:AdMessageDetailsTwoDishesForThePriceOfOne? = null
}

open class AdMessageDetailsPercentageDiscountOnAllMerchandise : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsBase
{
    open var description:String? = null
    open var moreInformation:ArrayList<String> = ArrayList<String>()
}

open class AdMessageDetailsPercentageDiscountRangeOnAllMerchandise : AdMessageDetailsBase()
{
    open var start:Double? = null
    open var stop:Double? = null
}

open class AdMessageDetailsPercentageDiscountOnSelectedMerchandise : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise : AdMessageDetailsBase()
{
    open var start:Double? = null
    open var stop:Double? = null
}

open class AdMessageDetailsTotalAmountOverXgivesYdiscount : AdMessageDetailsBase()
{
    open var ifTotalAmountMoreThanX:Double? = null
    open var thenYouGetDiscountPercentageY:Double? = null
}

open class AdMessageDetailsXforYdiscount : AdMessageDetailsBase()
{
    open var ifYouBuyX:Int? = null
    open var thenYouGetY:Int? = null
}

open class AdMessageDetailsNewArrivals : AdMessageDetailsBase()
{
}

open class AdMessageDetailsFreetext : AdMessageDetailsBase()
{
    open var title:String? = null
}

open class AdMessageDetailsTodaysBreakFastOffer : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsTodaysLunchOffer : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsTodaysDinnerOffer : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsSaveFoodAndMoney : AdMessageDetailsBase()
{
    open var value:Double? = null
}

open class AdMessageDetailsPercentageOffYourFoodBill : AdMessageDetailsBase()
{
    open var percentage:Double? = null
}

open class AdMessageDetailsHappyHour : AdMessageDetailsBase()
{
}

open class AdMessageDetailsSomeFreeTablesLeftToday : AdMessageDetailsBase()
{
}

open class AdMessageDetailsTwoDishesForThePriceOfOne : AdMessageDetailsBase()
{
}

Kotlin GetAdMessageTitleRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/GetAdMessageTitleRequest HTTP/1.1 
Host: business-api.brovs.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetAdMessageTitleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto">
  <DetailsUnion xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Common">
    <d2p1:AbsoluteOnSelectedMerchandise>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:AbsoluteOnSelectedMerchandise>
    <d2p1:AbsoluteRangeOnAllMerchandise>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Start>0</d2p1:Start>
      <d2p1:Stop>0</d2p1:Stop>
    </d2p1:AbsoluteRangeOnAllMerchandise>
    <d2p1:Freetext>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Title>String</d2p1:Title>
    </d2p1:Freetext>
    <d2p1:HappyHour>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
    </d2p1:HappyHour>
    <d2p1:NewArrivals>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
    </d2p1:NewArrivals>
    <d2p1:PercentageOfYourFoodBill>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Percentage>0</d2p1:Percentage>
    </d2p1:PercentageOfYourFoodBill>
    <d2p1:PercentageOnAllMerchandise>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:PercentageOnAllMerchandise>
    <d2p1:PercentageOnSelectedMerchandise>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:PercentageOnSelectedMerchandise>
    <d2p1:PercentageRangeOnAllMerchandise>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Start>0</d2p1:Start>
      <d2p1:Stop>0</d2p1:Stop>
    </d2p1:PercentageRangeOnAllMerchandise>
    <d2p1:SaveFoodAndMoney>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:SaveFoodAndMoney>
    <d2p1:SomeFreeTablesLeftToday>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
    </d2p1:SomeFreeTablesLeftToday>
    <d2p1:TodaysBreakFastOffer>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:TodaysBreakFastOffer>
    <d2p1:TodaysDinnerOffer>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:TodaysDinnerOffer>
    <d2p1:TodaysLunchOffer>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:TodaysLunchOffer>
    <d2p1:TotalAmountOverXgivesYdiscount>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:IfTotalAmountMoreThanX>0</d2p1:IfTotalAmountMoreThanX>
      <d2p1:ThenYouGetDiscountPercentageY>0</d2p1:ThenYouGetDiscountPercentageY>
    </d2p1:TotalAmountOverXgivesYdiscount>
    <d2p1:TwoDishesForThePriceOfOne>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
    </d2p1:TwoDishesForThePriceOfOne>
    <d2p1:XforY>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:MoreInformation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:MoreInformation>
      <d2p1:IfYouBuyX>0</d2p1:IfYouBuyX>
      <d2p1:ThenYouGetY>0</d2p1:ThenYouGetY>
    </d2p1:XforY>
  </DetailsUnion>
</GetAdMessageTitleRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetAdMessageTitleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto">
  <Title>String</Title>
</GetAdMessageTitleResponse>