| Required role: | Business |
| PUT | /ad/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 AdDetailsBase 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 AdDetailsPercentageDiscountOnAllMerchandise extends AdDetailsBase 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 AdDetailsPercentageDiscountRangeOnAllMerchandise extends AdDetailsBase 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 AdDetailsPercentageDiscountOnSelectedMerchandise extends AdDetailsBase 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 AdDetailsAbsoluteDiscountOnSelectedMerchandise extends AdDetailsBase 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 AdDetailsAbsoluteDiscountRangeOnAllMerchandise extends AdDetailsBase 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 AdDetailsTotalAmountOverXgivesYdiscount extends AdDetailsBase 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 AdDetailsXforYdiscount extends AdDetailsBase 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 AdDetailsNewArrivals extends AdDetailsBase 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 AdDetailsFreetext extends AdDetailsBase 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 AdDetailsTodaysBreakFastOffer extends AdDetailsBase 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 AdDetailsTodaysLunchOffer extends AdDetailsBase 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 AdDetailsTodaysDinnerOffer extends AdDetailsBase 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 AdDetailsSaveFoodAndMoney extends AdDetailsBase 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 AdDetailsPercentageOffYourFoodBill extends AdDetailsBase 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 AdDetailsHappyHour extends AdDetailsBase 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 AdDetailsSomeFreeTablesLeftToday extends AdDetailsBase 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 AdDetailsTwoDishesForThePriceOfOne extends AdDetailsBase 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 AdDetailsUnion implements JsonSerializable
{
public function __construct(
/** @var AdDetailsPercentageDiscountOnAllMerchandise|null */
public ?AdDetailsPercentageDiscountOnAllMerchandise $percentageOnAllMerchandise=null,
/** @var AdDetailsPercentageDiscountRangeOnAllMerchandise|null */
public ?AdDetailsPercentageDiscountRangeOnAllMerchandise $percentageRangeOnAllMerchandise=null,
/** @var AdDetailsPercentageDiscountOnSelectedMerchandise|null */
public ?AdDetailsPercentageDiscountOnSelectedMerchandise $percentageOnSelectedMerchandise=null,
/** @var AdDetailsAbsoluteDiscountOnSelectedMerchandise|null */
public ?AdDetailsAbsoluteDiscountOnSelectedMerchandise $absoluteOnSelectedMerchandise=null,
/** @var AdDetailsAbsoluteDiscountRangeOnAllMerchandise|null */
public ?AdDetailsAbsoluteDiscountRangeOnAllMerchandise $absoluteRangeOnAllMerchandise=null,
/** @var AdDetailsTotalAmountOverXgivesYdiscount|null */
public ?AdDetailsTotalAmountOverXgivesYdiscount $totalAmountOverXgivesYdiscount=null,
/** @var AdDetailsXforYdiscount|null */
public ?AdDetailsXforYdiscount $xforY=null,
/** @var AdDetailsNewArrivals|null */
public ?AdDetailsNewArrivals $newArrivals=null,
/** @var AdDetailsFreetext|null */
public ?AdDetailsFreetext $freetext=null,
/** @var AdDetailsTodaysBreakFastOffer|null */
public ?AdDetailsTodaysBreakFastOffer $todaysBreakFastOffer=null,
/** @var AdDetailsTodaysLunchOffer|null */
public ?AdDetailsTodaysLunchOffer $todaysLunchOffer=null,
/** @var AdDetailsTodaysDinnerOffer|null */
public ?AdDetailsTodaysDinnerOffer $todaysDinnerOffer=null,
/** @var AdDetailsSaveFoodAndMoney|null */
public ?AdDetailsSaveFoodAndMoney $saveFoodAndMoney=null,
/** @var AdDetailsPercentageOffYourFoodBill|null */
public ?AdDetailsPercentageOffYourFoodBill $percentageOfYourFoodBill=null,
/** @var AdDetailsHappyHour|null */
public ?AdDetailsHappyHour $happyHour=null,
/** @var AdDetailsSomeFreeTablesLeftToday|null */
public ?AdDetailsSomeFreeTablesLeftToday $someFreeTablesLeftToday=null,
/** @var AdDetailsTwoDishesForThePriceOfOne|null */
public ?AdDetailsTwoDishesForThePriceOfOne $twoDishesForThePriceOfOne=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['percentageOnAllMerchandise'])) $this->percentageOnAllMerchandise = JsonConverters::from('AdDetailsPercentageDiscountOnAllMerchandise', $o['percentageOnAllMerchandise']);
if (isset($o['percentageRangeOnAllMerchandise'])) $this->percentageRangeOnAllMerchandise = JsonConverters::from('AdDetailsPercentageDiscountRangeOnAllMerchandise', $o['percentageRangeOnAllMerchandise']);
if (isset($o['percentageOnSelectedMerchandise'])) $this->percentageOnSelectedMerchandise = JsonConverters::from('AdDetailsPercentageDiscountOnSelectedMerchandise', $o['percentageOnSelectedMerchandise']);
if (isset($o['absoluteOnSelectedMerchandise'])) $this->absoluteOnSelectedMerchandise = JsonConverters::from('AdDetailsAbsoluteDiscountOnSelectedMerchandise', $o['absoluteOnSelectedMerchandise']);
if (isset($o['absoluteRangeOnAllMerchandise'])) $this->absoluteRangeOnAllMerchandise = JsonConverters::from('AdDetailsAbsoluteDiscountRangeOnAllMerchandise', $o['absoluteRangeOnAllMerchandise']);
if (isset($o['totalAmountOverXgivesYdiscount'])) $this->totalAmountOverXgivesYdiscount = JsonConverters::from('AdDetailsTotalAmountOverXgivesYdiscount', $o['totalAmountOverXgivesYdiscount']);
if (isset($o['xforY'])) $this->xforY = JsonConverters::from('AdDetailsXforYdiscount', $o['xforY']);
if (isset($o['newArrivals'])) $this->newArrivals = JsonConverters::from('AdDetailsNewArrivals', $o['newArrivals']);
if (isset($o['freetext'])) $this->freetext = JsonConverters::from('AdDetailsFreetext', $o['freetext']);
if (isset($o['todaysBreakFastOffer'])) $this->todaysBreakFastOffer = JsonConverters::from('AdDetailsTodaysBreakFastOffer', $o['todaysBreakFastOffer']);
if (isset($o['todaysLunchOffer'])) $this->todaysLunchOffer = JsonConverters::from('AdDetailsTodaysLunchOffer', $o['todaysLunchOffer']);
if (isset($o['todaysDinnerOffer'])) $this->todaysDinnerOffer = JsonConverters::from('AdDetailsTodaysDinnerOffer', $o['todaysDinnerOffer']);
if (isset($o['saveFoodAndMoney'])) $this->saveFoodAndMoney = JsonConverters::from('AdDetailsSaveFoodAndMoney', $o['saveFoodAndMoney']);
if (isset($o['percentageOfYourFoodBill'])) $this->percentageOfYourFoodBill = JsonConverters::from('AdDetailsPercentageOffYourFoodBill', $o['percentageOfYourFoodBill']);
if (isset($o['happyHour'])) $this->happyHour = JsonConverters::from('AdDetailsHappyHour', $o['happyHour']);
if (isset($o['someFreeTablesLeftToday'])) $this->someFreeTablesLeftToday = JsonConverters::from('AdDetailsSomeFreeTablesLeftToday', $o['someFreeTablesLeftToday']);
if (isset($o['twoDishesForThePriceOfOne'])) $this->twoDishesForThePriceOfOne = JsonConverters::from('AdDetailsTwoDishesForThePriceOfOne', $o['twoDishesForThePriceOfOne']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->percentageOnAllMerchandise)) $o['percentageOnAllMerchandise'] = JsonConverters::to('AdDetailsPercentageDiscountOnAllMerchandise', $this->percentageOnAllMerchandise);
if (isset($this->percentageRangeOnAllMerchandise)) $o['percentageRangeOnAllMerchandise'] = JsonConverters::to('AdDetailsPercentageDiscountRangeOnAllMerchandise', $this->percentageRangeOnAllMerchandise);
if (isset($this->percentageOnSelectedMerchandise)) $o['percentageOnSelectedMerchandise'] = JsonConverters::to('AdDetailsPercentageDiscountOnSelectedMerchandise', $this->percentageOnSelectedMerchandise);
if (isset($this->absoluteOnSelectedMerchandise)) $o['absoluteOnSelectedMerchandise'] = JsonConverters::to('AdDetailsAbsoluteDiscountOnSelectedMerchandise', $this->absoluteOnSelectedMerchandise);
if (isset($this->absoluteRangeOnAllMerchandise)) $o['absoluteRangeOnAllMerchandise'] = JsonConverters::to('AdDetailsAbsoluteDiscountRangeOnAllMerchandise', $this->absoluteRangeOnAllMerchandise);
if (isset($this->totalAmountOverXgivesYdiscount)) $o['totalAmountOverXgivesYdiscount'] = JsonConverters::to('AdDetailsTotalAmountOverXgivesYdiscount', $this->totalAmountOverXgivesYdiscount);
if (isset($this->xforY)) $o['xforY'] = JsonConverters::to('AdDetailsXforYdiscount', $this->xforY);
if (isset($this->newArrivals)) $o['newArrivals'] = JsonConverters::to('AdDetailsNewArrivals', $this->newArrivals);
if (isset($this->freetext)) $o['freetext'] = JsonConverters::to('AdDetailsFreetext', $this->freetext);
if (isset($this->todaysBreakFastOffer)) $o['todaysBreakFastOffer'] = JsonConverters::to('AdDetailsTodaysBreakFastOffer', $this->todaysBreakFastOffer);
if (isset($this->todaysLunchOffer)) $o['todaysLunchOffer'] = JsonConverters::to('AdDetailsTodaysLunchOffer', $this->todaysLunchOffer);
if (isset($this->todaysDinnerOffer)) $o['todaysDinnerOffer'] = JsonConverters::to('AdDetailsTodaysDinnerOffer', $this->todaysDinnerOffer);
if (isset($this->saveFoodAndMoney)) $o['saveFoodAndMoney'] = JsonConverters::to('AdDetailsSaveFoodAndMoney', $this->saveFoodAndMoney);
if (isset($this->percentageOfYourFoodBill)) $o['percentageOfYourFoodBill'] = JsonConverters::to('AdDetailsPercentageOffYourFoodBill', $this->percentageOfYourFoodBill);
if (isset($this->happyHour)) $o['happyHour'] = JsonConverters::to('AdDetailsHappyHour', $this->happyHour);
if (isset($this->someFreeTablesLeftToday)) $o['someFreeTablesLeftToday'] = JsonConverters::to('AdDetailsSomeFreeTablesLeftToday', $this->someFreeTablesLeftToday);
if (isset($this->twoDishesForThePriceOfOne)) $o['twoDishesForThePriceOfOne'] = JsonConverters::to('AdDetailsTwoDishesForThePriceOfOne', $this->twoDishesForThePriceOfOne);
return empty($o) ? new class(){} : $o;
}
}
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 /ad/update HTTP/1.1
Host: qa-business-api.brovs.com
Accept: text/csv
Content-Type: text/csv
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: text/csv
Content-Length: length
{"adId":0}