| Required role: | Business |
| PUT | /ad/update |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BusinessApi
Namespace Global
Namespace BusinessApi
Public Partial Class AdDetailsAbsoluteDiscountOnSelectedMerchandise
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsAbsoluteDiscountRangeOnAllMerchandise
Inherits AdDetailsBase
Public Property Start As Double
Public Property [Stop] As Double
End Class
Public Partial Class AdDetailsBase
Public Property Description As String
Public Property MoreInformation As List(Of String) = New List(Of String)
End Class
Public Partial Class AdDetailsFreetext
Inherits AdDetailsBase
Public Property Title As String
End Class
Public Partial Class AdDetailsHappyHour
Inherits AdDetailsBase
End Class
Public Partial Class AdDetailsNewArrivals
Inherits AdDetailsBase
End Class
Public Partial Class AdDetailsPercentageDiscountOnAllMerchandise
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsPercentageDiscountOnSelectedMerchandise
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsPercentageDiscountRangeOnAllMerchandise
Inherits AdDetailsBase
Public Property Start As Double
Public Property [Stop] As Double
End Class
Public Partial Class AdDetailsPercentageOffYourFoodBill
Inherits AdDetailsBase
Public Property Percentage As Double
End Class
Public Partial Class AdDetailsSaveFoodAndMoney
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsSomeFreeTablesLeftToday
Inherits AdDetailsBase
End Class
Public Partial Class AdDetailsTodaysBreakFastOffer
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsTodaysDinnerOffer
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsTodaysLunchOffer
Inherits AdDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdDetailsTotalAmountOverXgivesYdiscount
Inherits AdDetailsBase
Public Property IfTotalAmountMoreThanX As Double
Public Property ThenYouGetDiscountPercentageY As Double
End Class
Public Partial Class AdDetailsTwoDishesForThePriceOfOne
Inherits AdDetailsBase
End Class
Public Partial Class AdDetailsUnion
Public Property PercentageOnAllMerchandise As AdDetailsPercentageDiscountOnAllMerchandise
Public Property PercentageRangeOnAllMerchandise As AdDetailsPercentageDiscountRangeOnAllMerchandise
Public Property PercentageOnSelectedMerchandise As AdDetailsPercentageDiscountOnSelectedMerchandise
Public Property AbsoluteOnSelectedMerchandise As AdDetailsAbsoluteDiscountOnSelectedMerchandise
Public Property AbsoluteRangeOnAllMerchandise As AdDetailsAbsoluteDiscountRangeOnAllMerchandise
Public Property TotalAmountOverXgivesYdiscount As AdDetailsTotalAmountOverXgivesYdiscount
Public Property XforY As AdDetailsXforYdiscount
Public Property NewArrivals As AdDetailsNewArrivals
Public Property Freetext As AdDetailsFreetext
Public Property TodaysBreakFastOffer As AdDetailsTodaysBreakFastOffer
Public Property TodaysLunchOffer As AdDetailsTodaysLunchOffer
Public Property TodaysDinnerOffer As AdDetailsTodaysDinnerOffer
Public Property SaveFoodAndMoney As AdDetailsSaveFoodAndMoney
Public Property PercentageOfYourFoodBill As AdDetailsPercentageOffYourFoodBill
Public Property HappyHour As AdDetailsHappyHour
Public Property SomeFreeTablesLeftToday As AdDetailsSomeFreeTablesLeftToday
Public Property TwoDishesForThePriceOfOne As AdDetailsTwoDishesForThePriceOfOne
End Class
Public Partial Class AdDetailsXforYdiscount
Inherits AdDetailsBase
Public Property IfYouBuyX As Integer
Public Property ThenYouGetY As Integer
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /ad/update HTTP/1.1
Host: qa-business-api.brovs.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"adId":0,"startAt":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"stopAt":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"publishAt":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":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: application/json
Content-Length: length
{"adId":0}