| Required role: | Business |
| PUT | /ad/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 AdDetailsBase() =
member val Description:String = null with get,set
member val MoreInformation:ResizeArray<String> = new ResizeArray<String>() with get,set
[<AllowNullLiteral>]
type AdDetailsPercentageDiscountOnAllMerchandise() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsPercentageDiscountRangeOnAllMerchandise() =
inherit AdDetailsBase()
member val Start:Double = new Double() with get,set
member val Stop:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsPercentageDiscountOnSelectedMerchandise() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsAbsoluteDiscountOnSelectedMerchandise() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsAbsoluteDiscountRangeOnAllMerchandise() =
inherit AdDetailsBase()
member val Start:Double = new Double() with get,set
member val Stop:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsTotalAmountOverXgivesYdiscount() =
inherit AdDetailsBase()
member val IfTotalAmountMoreThanX:Double = new Double() with get,set
member val ThenYouGetDiscountPercentageY:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsXforYdiscount() =
inherit AdDetailsBase()
member val IfYouBuyX:Int32 = new Int32() with get,set
member val ThenYouGetY:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type AdDetailsNewArrivals() =
inherit AdDetailsBase()
[<AllowNullLiteral>]
type AdDetailsFreetext() =
inherit AdDetailsBase()
member val Title:String = null with get,set
[<AllowNullLiteral>]
type AdDetailsTodaysBreakFastOffer() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsTodaysLunchOffer() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsTodaysDinnerOffer() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsSaveFoodAndMoney() =
inherit AdDetailsBase()
member val Value:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsPercentageOffYourFoodBill() =
inherit AdDetailsBase()
member val Percentage:Double = new Double() with get,set
[<AllowNullLiteral>]
type AdDetailsHappyHour() =
inherit AdDetailsBase()
[<AllowNullLiteral>]
type AdDetailsSomeFreeTablesLeftToday() =
inherit AdDetailsBase()
[<AllowNullLiteral>]
type AdDetailsTwoDishesForThePriceOfOne() =
inherit AdDetailsBase()
[<AllowNullLiteral>]
type AdDetailsUnion() =
member val PercentageOnAllMerchandise:AdDetailsPercentageDiscountOnAllMerchandise = null with get,set
member val PercentageRangeOnAllMerchandise:AdDetailsPercentageDiscountRangeOnAllMerchandise = null with get,set
member val PercentageOnSelectedMerchandise:AdDetailsPercentageDiscountOnSelectedMerchandise = null with get,set
member val AbsoluteOnSelectedMerchandise:AdDetailsAbsoluteDiscountOnSelectedMerchandise = null with get,set
member val AbsoluteRangeOnAllMerchandise:AdDetailsAbsoluteDiscountRangeOnAllMerchandise = null with get,set
member val TotalAmountOverXgivesYdiscount:AdDetailsTotalAmountOverXgivesYdiscount = null with get,set
member val XforY:AdDetailsXforYdiscount = null with get,set
member val NewArrivals:AdDetailsNewArrivals = null with get,set
member val Freetext:AdDetailsFreetext = null with get,set
member val TodaysBreakFastOffer:AdDetailsTodaysBreakFastOffer = null with get,set
member val TodaysLunchOffer:AdDetailsTodaysLunchOffer = null with get,set
member val TodaysDinnerOffer:AdDetailsTodaysDinnerOffer = null with get,set
member val SaveFoodAndMoney:AdDetailsSaveFoodAndMoney = null with get,set
member val PercentageOfYourFoodBill:AdDetailsPercentageOffYourFoodBill = null with get,set
member val HappyHour:AdDetailsHappyHour = null with get,set
member val SomeFreeTablesLeftToday:AdDetailsSomeFreeTablesLeftToday = null with get,set
member val TwoDishesForThePriceOfOne:AdDetailsTwoDishesForThePriceOfOne = null with get,set
F# UpdateRunningAdRequest 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 /ad/update_running HTTP/1.1
Host: qa-business-api.brovs.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateRunningAdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto">
<AdId>0</AdId>
<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>
</UpdateRunningAdRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdateRunningAdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto"> <AdId>0</AdId> </UpdateRunningAdResponse>