| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
adId: 0,
detailsUnion:
{
percentageOnAllMerchandise:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
percentageRangeOnAllMerchandise:
{
start: 0,
stop: 0,
description: String,
moreInformation:
[
String
]
},
percentageOnSelectedMerchandise:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
absoluteOnSelectedMerchandise:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
absoluteRangeOnAllMerchandise:
{
start: 0,
stop: 0,
description: String,
moreInformation:
[
String
]
},
totalAmountOverXgivesYdiscount:
{
ifTotalAmountMoreThanX: 0,
thenYouGetDiscountPercentageY: 0,
description: String,
moreInformation:
[
String
]
},
xforY:
{
ifYouBuyX: 0,
thenYouGetY: 0,
description: String,
moreInformation:
[
String
]
},
newArrivals:
{
description: String,
moreInformation:
[
String
]
},
freetext:
{
title: String,
description: String,
moreInformation:
[
String
]
},
todaysBreakFastOffer:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
todaysLunchOffer:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
todaysDinnerOffer:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
saveFoodAndMoney:
{
value: 0,
description: String,
moreInformation:
[
String
]
},
percentageOfYourFoodBill:
{
percentage: 0,
description: String,
moreInformation:
[
String
]
},
happyHour:
{
description: String,
moreInformation:
[
String
]
},
someFreeTablesLeftToday:
{
description: String,
moreInformation:
[
String
]
},
twoDishesForThePriceOfOne:
{
description: String,
moreInformation:
[
String
]
}
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
adId: 0
}