| Required role: | Business |
| PUT | /admessage/update |
|---|
<?php namespace BusinessApi;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class AdMessageDetailsBase implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $description=null,
/** @var array<string>|null */
public ?array $moreInformation=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['moreInformation'])) $this->moreInformation = JsonConverters::fromArray('string', $o['moreInformation']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->moreInformation)) $o['moreInformation'] = JsonConverters::toArray('string', $this->moreInformation);
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsPercentageDiscountOnAllMerchandise extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsPercentageDiscountRangeOnAllMerchandise extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $start=0.0,
/** @var float */
public float $stop=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['start'])) $this->start = $o['start'];
if (isset($o['stop'])) $this->stop = $o['stop'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->start)) $o['start'] = $this->start;
if (isset($this->stop)) $o['stop'] = $this->stop;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsPercentageDiscountOnSelectedMerchandise extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $start=0.0,
/** @var float */
public float $stop=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['start'])) $this->start = $o['start'];
if (isset($o['stop'])) $this->stop = $o['stop'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->start)) $o['start'] = $this->start;
if (isset($this->stop)) $o['stop'] = $this->stop;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsTotalAmountOverXgivesYdiscount extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $ifTotalAmountMoreThanX=0.0,
/** @var float */
public float $thenYouGetDiscountPercentageY=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['ifTotalAmountMoreThanX'])) $this->ifTotalAmountMoreThanX = $o['ifTotalAmountMoreThanX'];
if (isset($o['thenYouGetDiscountPercentageY'])) $this->thenYouGetDiscountPercentageY = $o['thenYouGetDiscountPercentageY'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->ifTotalAmountMoreThanX)) $o['ifTotalAmountMoreThanX'] = $this->ifTotalAmountMoreThanX;
if (isset($this->thenYouGetDiscountPercentageY)) $o['thenYouGetDiscountPercentageY'] = $this->thenYouGetDiscountPercentageY;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsXforYdiscount extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var int */
public int $ifYouBuyX=0,
/** @var int */
public int $thenYouGetY=0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['ifYouBuyX'])) $this->ifYouBuyX = $o['ifYouBuyX'];
if (isset($o['thenYouGetY'])) $this->thenYouGetY = $o['thenYouGetY'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->ifYouBuyX)) $o['ifYouBuyX'] = $this->ifYouBuyX;
if (isset($this->thenYouGetY)) $o['thenYouGetY'] = $this->thenYouGetY;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsNewArrivals extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsFreetext extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var string */
public string $title=''
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['title'])) $this->title = $o['title'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->title)) $o['title'] = $this->title;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsTodaysBreakFastOffer extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsTodaysLunchOffer extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsTodaysDinnerOffer extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsSaveFoodAndMoney extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $value=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['value'])) $this->value = $o['value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->value)) $o['value'] = $this->value;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsPercentageOffYourFoodBill extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null,
/** @var float */
public float $percentage=0.0
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['percentage'])) $this->percentage = $o['percentage'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->percentage)) $o['percentage'] = $this->percentage;
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsHappyHour extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsSomeFreeTablesLeftToday extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsTwoDishesForThePriceOfOne extends AdMessageDetailsBase implements JsonSerializable
{
/**
* @param string|null $description
* @param array<string>|null $moreInformation
*/
public function __construct(
?string $description=null,
?array $moreInformation=null
) {
parent::__construct($description,$moreInformation);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
return empty($o) ? new class(){} : $o;
}
}
class AdMessageDetailsUnion implements JsonSerializable
{
public function __construct(
/** @var AdMessageDetailsPercentageDiscountOnAllMerchandise|null */
public ?AdMessageDetailsPercentageDiscountOnAllMerchandise $percentageOnAllMerchandise=null,
/** @var AdMessageDetailsPercentageDiscountRangeOnAllMerchandise|null */
public ?AdMessageDetailsPercentageDiscountRangeOnAllMerchandise $percentageRangeOnAllMerchandise=null,
/** @var AdMessageDetailsPercentageDiscountOnSelectedMerchandise|null */
public ?AdMessageDetailsPercentageDiscountOnSelectedMerchandise $percentageOnSelectedMerchandise=null,
/** @var AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise|null */
public ?AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise $absoluteOnSelectedMerchandise=null,
/** @var AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise|null */
public ?AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise $absoluteRangeOnAllMerchandise=null,
/** @var AdMessageDetailsTotalAmountOverXgivesYdiscount|null */
public ?AdMessageDetailsTotalAmountOverXgivesYdiscount $totalAmountOverXgivesYdiscount=null,
/** @var AdMessageDetailsXforYdiscount|null */
public ?AdMessageDetailsXforYdiscount $xforY=null,
/** @var AdMessageDetailsNewArrivals|null */
public ?AdMessageDetailsNewArrivals $newArrivals=null,
/** @var AdMessageDetailsFreetext|null */
public ?AdMessageDetailsFreetext $freetext=null,
/** @var AdMessageDetailsTodaysBreakFastOffer|null */
public ?AdMessageDetailsTodaysBreakFastOffer $todaysBreakFastOffer=null,
/** @var AdMessageDetailsTodaysLunchOffer|null */
public ?AdMessageDetailsTodaysLunchOffer $todaysLunchOffer=null,
/** @var AdMessageDetailsTodaysDinnerOffer|null */
public ?AdMessageDetailsTodaysDinnerOffer $todaysDinnerOffer=null,
/** @var AdMessageDetailsSaveFoodAndMoney|null */
public ?AdMessageDetailsSaveFoodAndMoney $saveFoodAndMoney=null,
/** @var AdMessageDetailsPercentageOffYourFoodBill|null */
public ?AdMessageDetailsPercentageOffYourFoodBill $percentageOfYourFoodBill=null,
/** @var AdMessageDetailsHappyHour|null */
public ?AdMessageDetailsHappyHour $happyHour=null,
/** @var AdMessageDetailsSomeFreeTablesLeftToday|null */
public ?AdMessageDetailsSomeFreeTablesLeftToday $someFreeTablesLeftToday=null,
/** @var AdMessageDetailsTwoDishesForThePriceOfOne|null */
public ?AdMessageDetailsTwoDishesForThePriceOfOne $twoDishesForThePriceOfOne=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['percentageOnAllMerchandise'])) $this->percentageOnAllMerchandise = JsonConverters::from('AdMessageDetailsPercentageDiscountOnAllMerchandise', $o['percentageOnAllMerchandise']);
if (isset($o['percentageRangeOnAllMerchandise'])) $this->percentageRangeOnAllMerchandise = JsonConverters::from('AdMessageDetailsPercentageDiscountRangeOnAllMerchandise', $o['percentageRangeOnAllMerchandise']);
if (isset($o['percentageOnSelectedMerchandise'])) $this->percentageOnSelectedMerchandise = JsonConverters::from('AdMessageDetailsPercentageDiscountOnSelectedMerchandise', $o['percentageOnSelectedMerchandise']);
if (isset($o['absoluteOnSelectedMerchandise'])) $this->absoluteOnSelectedMerchandise = JsonConverters::from('AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise', $o['absoluteOnSelectedMerchandise']);
if (isset($o['absoluteRangeOnAllMerchandise'])) $this->absoluteRangeOnAllMerchandise = JsonConverters::from('AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise', $o['absoluteRangeOnAllMerchandise']);
if (isset($o['totalAmountOverXgivesYdiscount'])) $this->totalAmountOverXgivesYdiscount = JsonConverters::from('AdMessageDetailsTotalAmountOverXgivesYdiscount', $o['totalAmountOverXgivesYdiscount']);
if (isset($o['xforY'])) $this->xforY = JsonConverters::from('AdMessageDetailsXforYdiscount', $o['xforY']);
if (isset($o['newArrivals'])) $this->newArrivals = JsonConverters::from('AdMessageDetailsNewArrivals', $o['newArrivals']);
if (isset($o['freetext'])) $this->freetext = JsonConverters::from('AdMessageDetailsFreetext', $o['freetext']);
if (isset($o['todaysBreakFastOffer'])) $this->todaysBreakFastOffer = JsonConverters::from('AdMessageDetailsTodaysBreakFastOffer', $o['todaysBreakFastOffer']);
if (isset($o['todaysLunchOffer'])) $this->todaysLunchOffer = JsonConverters::from('AdMessageDetailsTodaysLunchOffer', $o['todaysLunchOffer']);
if (isset($o['todaysDinnerOffer'])) $this->todaysDinnerOffer = JsonConverters::from('AdMessageDetailsTodaysDinnerOffer', $o['todaysDinnerOffer']);
if (isset($o['saveFoodAndMoney'])) $this->saveFoodAndMoney = JsonConverters::from('AdMessageDetailsSaveFoodAndMoney', $o['saveFoodAndMoney']);
if (isset($o['percentageOfYourFoodBill'])) $this->percentageOfYourFoodBill = JsonConverters::from('AdMessageDetailsPercentageOffYourFoodBill', $o['percentageOfYourFoodBill']);
if (isset($o['happyHour'])) $this->happyHour = JsonConverters::from('AdMessageDetailsHappyHour', $o['happyHour']);
if (isset($o['someFreeTablesLeftToday'])) $this->someFreeTablesLeftToday = JsonConverters::from('AdMessageDetailsSomeFreeTablesLeftToday', $o['someFreeTablesLeftToday']);
if (isset($o['twoDishesForThePriceOfOne'])) $this->twoDishesForThePriceOfOne = JsonConverters::from('AdMessageDetailsTwoDishesForThePriceOfOne', $o['twoDishesForThePriceOfOne']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->percentageOnAllMerchandise)) $o['percentageOnAllMerchandise'] = JsonConverters::to('AdMessageDetailsPercentageDiscountOnAllMerchandise', $this->percentageOnAllMerchandise);
if (isset($this->percentageRangeOnAllMerchandise)) $o['percentageRangeOnAllMerchandise'] = JsonConverters::to('AdMessageDetailsPercentageDiscountRangeOnAllMerchandise', $this->percentageRangeOnAllMerchandise);
if (isset($this->percentageOnSelectedMerchandise)) $o['percentageOnSelectedMerchandise'] = JsonConverters::to('AdMessageDetailsPercentageDiscountOnSelectedMerchandise', $this->percentageOnSelectedMerchandise);
if (isset($this->absoluteOnSelectedMerchandise)) $o['absoluteOnSelectedMerchandise'] = JsonConverters::to('AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise', $this->absoluteOnSelectedMerchandise);
if (isset($this->absoluteRangeOnAllMerchandise)) $o['absoluteRangeOnAllMerchandise'] = JsonConverters::to('AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise', $this->absoluteRangeOnAllMerchandise);
if (isset($this->totalAmountOverXgivesYdiscount)) $o['totalAmountOverXgivesYdiscount'] = JsonConverters::to('AdMessageDetailsTotalAmountOverXgivesYdiscount', $this->totalAmountOverXgivesYdiscount);
if (isset($this->xforY)) $o['xforY'] = JsonConverters::to('AdMessageDetailsXforYdiscount', $this->xforY);
if (isset($this->newArrivals)) $o['newArrivals'] = JsonConverters::to('AdMessageDetailsNewArrivals', $this->newArrivals);
if (isset($this->freetext)) $o['freetext'] = JsonConverters::to('AdMessageDetailsFreetext', $this->freetext);
if (isset($this->todaysBreakFastOffer)) $o['todaysBreakFastOffer'] = JsonConverters::to('AdMessageDetailsTodaysBreakFastOffer', $this->todaysBreakFastOffer);
if (isset($this->todaysLunchOffer)) $o['todaysLunchOffer'] = JsonConverters::to('AdMessageDetailsTodaysLunchOffer', $this->todaysLunchOffer);
if (isset($this->todaysDinnerOffer)) $o['todaysDinnerOffer'] = JsonConverters::to('AdMessageDetailsTodaysDinnerOffer', $this->todaysDinnerOffer);
if (isset($this->saveFoodAndMoney)) $o['saveFoodAndMoney'] = JsonConverters::to('AdMessageDetailsSaveFoodAndMoney', $this->saveFoodAndMoney);
if (isset($this->percentageOfYourFoodBill)) $o['percentageOfYourFoodBill'] = JsonConverters::to('AdMessageDetailsPercentageOffYourFoodBill', $this->percentageOfYourFoodBill);
if (isset($this->happyHour)) $o['happyHour'] = JsonConverters::to('AdMessageDetailsHappyHour', $this->happyHour);
if (isset($this->someFreeTablesLeftToday)) $o['someFreeTablesLeftToday'] = JsonConverters::to('AdMessageDetailsSomeFreeTablesLeftToday', $this->someFreeTablesLeftToday);
if (isset($this->twoDishesForThePriceOfOne)) $o['twoDishesForThePriceOfOne'] = JsonConverters::to('AdMessageDetailsTwoDishesForThePriceOfOne', $this->twoDishesForThePriceOfOne);
return empty($o) ? new class(){} : $o;
}
}
PHP 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}