| Required role: | Business |
| PUT | /admessage/update_running |
|---|
namespace BusinessApi
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type AdMessageDetailsBase() =
member val Description:String = null with get,set
member val MoreInformation:ResizeArray<String> = new ResizeArray<String>() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsPercentageDiscountOnAllMerchandise() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsPercentageDiscountRangeOnAllMerchandise() =
inherit AdMessageDetailsBase()
member val Start:Double = new Double() with get,set
member val Stop:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsPercentageDiscountOnSelectedMerchandise() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise() =
inherit AdMessageDetailsBase()
member val Start:Double = new Double() with get,set
member val Stop:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsTotalAmountOverXgivesYdiscount() =
inherit AdMessageDetailsBase()
member val IfTotalAmountMoreThanX:Double = new Double() with get,set
member val ThenYouGetDiscountPercentageY:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsXforYdiscount() =
inherit AdMessageDetailsBase()
member val IfYouBuyX:Int32 = new Int32() with get,set
member val ThenYouGetY:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsNewArrivals() =
inherit AdMessageDetailsBase()
[<AllowNullLiteral>]
type AdMessageDetailsFreetext() =
inherit AdMessageDetailsBase()
member val Title:String = null with get,set
[<AllowNullLiteral>]
type AdMessageDetailsTodaysBreakFastOffer() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsTodaysLunchOffer() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsTodaysDinnerOffer() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsSaveFoodAndMoney() =
inherit AdMessageDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsPercentageOffYourFoodBill() =
inherit AdMessageDetailsBase()
member val Percentage:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdMessageDetailsHappyHour() =
inherit AdMessageDetailsBase()
[<AllowNullLiteral>]
type AdMessageDetailsSomeFreeTablesLeftToday() =
inherit AdMessageDetailsBase()
[<AllowNullLiteral>]
type AdMessageDetailsTwoDishesForThePriceOfOne() =
inherit AdMessageDetailsBase()
[<AllowNullLiteral>]
type AdMessageDetailsUnion() =
member val PercentageOnAllMerchandise:AdMessageDetailsPercentageDiscountOnAllMerchandise = null with get,set
member val PercentageRangeOnAllMerchandise:AdMessageDetailsPercentageDiscountRangeOnAllMerchandise = null with get,set
member val PercentageOnSelectedMerchandise:AdMessageDetailsPercentageDiscountOnSelectedMerchandise = null with get,set
member val AbsoluteOnSelectedMerchandise:AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise = null with get,set
member val AbsoluteRangeOnAllMerchandise:AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise = null with get,set
member val TotalAmountOverXgivesYdiscount:AdMessageDetailsTotalAmountOverXgivesYdiscount = null with get,set
member val XforY:AdMessageDetailsXforYdiscount = null with get,set
member val NewArrivals:AdMessageDetailsNewArrivals = null with get,set
member val Freetext:AdMessageDetailsFreetext = null with get,set
member val TodaysBreakFastOffer:AdMessageDetailsTodaysBreakFastOffer = null with get,set
member val TodaysLunchOffer:AdMessageDetailsTodaysLunchOffer = null with get,set
member val TodaysDinnerOffer:AdMessageDetailsTodaysDinnerOffer = null with get,set
member val SaveFoodAndMoney:AdMessageDetailsSaveFoodAndMoney = null with get,set
member val PercentageOfYourFoodBill:AdMessageDetailsPercentageOffYourFoodBill = null with get,set
member val HappyHour:AdMessageDetailsHappyHour = null with get,set
member val SomeFreeTablesLeftToday:AdMessageDetailsSomeFreeTablesLeftToday = null with get,set
member val TwoDishesForThePriceOfOne:AdMessageDetailsTwoDishesForThePriceOfOne = null with get,set
F# UpdateRunningAdMessageRequest 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.
PUT /admessage/update_running HTTP/1.1
Host: business-api.brovs.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateRunningAdMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto">
<AdMessageId>0</AdMessageId>
<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>
</UpdateRunningAdMessageRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdateRunningAdMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto"> <AdMessageId>0</AdMessageId> </UpdateRunningAdMessageResponse>