| Required role: | Business |
| PUT | /admessage/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 AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise
Inherits AdMessageDetailsBase
Public Property Start As Double
Public Property [Stop] As Double
End Class
Public Partial Class AdMessageDetailsBase
Public Property Description As String
Public Property MoreInformation As List(Of String) = New List(Of String)
End Class
Public Partial Class AdMessageDetailsFreetext
Inherits AdMessageDetailsBase
Public Property Title As String
End Class
Public Partial Class AdMessageDetailsHappyHour
Inherits AdMessageDetailsBase
End Class
Public Partial Class AdMessageDetailsNewArrivals
Inherits AdMessageDetailsBase
End Class
Public Partial Class AdMessageDetailsPercentageDiscountOnAllMerchandise
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsPercentageDiscountOnSelectedMerchandise
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsPercentageDiscountRangeOnAllMerchandise
Inherits AdMessageDetailsBase
Public Property Start As Double
Public Property [Stop] As Double
End Class
Public Partial Class AdMessageDetailsPercentageOffYourFoodBill
Inherits AdMessageDetailsBase
Public Property Percentage As Double
End Class
Public Partial Class AdMessageDetailsSaveFoodAndMoney
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsSomeFreeTablesLeftToday
Inherits AdMessageDetailsBase
End Class
Public Partial Class AdMessageDetailsTodaysBreakFastOffer
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsTodaysDinnerOffer
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsTodaysLunchOffer
Inherits AdMessageDetailsBase
Public Property Value As Double
End Class
Public Partial Class AdMessageDetailsTotalAmountOverXgivesYdiscount
Inherits AdMessageDetailsBase
Public Property IfTotalAmountMoreThanX As Double
Public Property ThenYouGetDiscountPercentageY As Double
End Class
Public Partial Class AdMessageDetailsTwoDishesForThePriceOfOne
Inherits AdMessageDetailsBase
End Class
Public Partial Class AdMessageDetailsUnion
Public Property PercentageOnAllMerchandise As AdMessageDetailsPercentageDiscountOnAllMerchandise
Public Property PercentageRangeOnAllMerchandise As AdMessageDetailsPercentageDiscountRangeOnAllMerchandise
Public Property PercentageOnSelectedMerchandise As AdMessageDetailsPercentageDiscountOnSelectedMerchandise
Public Property AbsoluteOnSelectedMerchandise As AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise
Public Property AbsoluteRangeOnAllMerchandise As AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise
Public Property TotalAmountOverXgivesYdiscount As AdMessageDetailsTotalAmountOverXgivesYdiscount
Public Property XforY As AdMessageDetailsXforYdiscount
Public Property NewArrivals As AdMessageDetailsNewArrivals
Public Property Freetext As AdMessageDetailsFreetext
Public Property TodaysBreakFastOffer As AdMessageDetailsTodaysBreakFastOffer
Public Property TodaysLunchOffer As AdMessageDetailsTodaysLunchOffer
Public Property TodaysDinnerOffer As AdMessageDetailsTodaysDinnerOffer
Public Property SaveFoodAndMoney As AdMessageDetailsSaveFoodAndMoney
Public Property PercentageOfYourFoodBill As AdMessageDetailsPercentageOffYourFoodBill
Public Property HappyHour As AdMessageDetailsHappyHour
Public Property SomeFreeTablesLeftToday As AdMessageDetailsSomeFreeTablesLeftToday
Public Property TwoDishesForThePriceOfOne As AdMessageDetailsTwoDishesForThePriceOfOne
End Class
Public Partial Class AdMessageDetailsXforYdiscount
Inherits AdMessageDetailsBase
Public Property IfYouBuyX As Integer
Public Property ThenYouGetY As Integer
End Class
End Namespace
End Namespace
VB.NET UpdateAdMessageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /admessage/update HTTP/1.1
Host: business-api.brovs.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"adMessageId":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: text/csv
Content-Length: length
{"adMessageId":0}