| Required role: | Business |
| GET | /place/get_nearby_mall |
|---|
"use strict";
export class OpeningHour {
/** @param {{openAtHour?:number,openAtMinute?:number,closeAtHour?:number,closeAtMinute?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?number} */
openAtHour;
/** @type {?number} */
openAtMinute;
/** @type {?number} */
closeAtHour;
/** @type {?number} */
closeAtMinute;
}
export class WeeklyOpeningHours {
/** @param {{monday?:OpeningHour,tuesday?:OpeningHour,wednesday?:OpeningHour,thursday?:OpeningHour,friday?:OpeningHour,saturday?:OpeningHour,sunday?:OpeningHour}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?OpeningHour} */
monday;
/** @type {?OpeningHour} */
tuesday;
/** @type {?OpeningHour} */
wednesday;
/** @type {?OpeningHour} */
thursday;
/** @type {?OpeningHour} */
friday;
/** @type {?OpeningHour} */
saturday;
/** @type {?OpeningHour} */
sunday;
}
export class OpeningHours {
/** @param {{weekly?:WeeklyOpeningHours}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {WeeklyOpeningHours} */
weekly;
}
/** @typedef {'Mall'|'Regular'} */
export var PlaceType;
(function (PlaceType) {
PlaceType["Mall"] = "Mall"
PlaceType["Regular"] = "Regular"
})(PlaceType || (PlaceType = {}));
export class PlaceContact {
/** @param {{phone?:string,email?:string,website?:string,webShop?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
phone;
/** @type {?string} */
email;
/** @type {?string} */
website;
/** @type {?string} */
webShop;
}
export class PlaceAddress {
/** @param {{street?:string,postalCode?:string,region?:string,countryCode?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
street;
/** @type {string} */
postalCode;
/** @type {string} */
region;
/** @type {string} */
countryCode;
}
export class TimeZoneDto {
/** @param {{baseUtcOffset?:string,daylightName?:string,displayName?:string,id?:string,standardName?:string,supportsDaylightSavingTime?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
baseUtcOffset;
/** @type {string} */
daylightName;
/** @type {string} */
displayName;
/** @type {string} */
id;
/** @type {string} */
standardName;
/** @type {?boolean} */
supportsDaylightSavingTime;
}
/** @typedef {'Value'|'Medium'|'High'|'FineDining'} */
export var PriceMainDish;
(function (PriceMainDish) {
PriceMainDish["Value"] = "Value"
PriceMainDish["Medium"] = "Medium"
PriceMainDish["High"] = "High"
PriceMainDish["FineDining"] = "FineDining"
})(PriceMainDish || (PriceMainDish = {}));
export class PriceMainDishDto {
/** @param {{title?:string,slug?:PriceMainDish}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
title;
/** @type {?PriceMainDish} */
slug;
}
JavaScript GetNearByMallRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /place/get_nearby_mall HTTP/1.1 Host: business-api.brovs.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetNearByMallResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessApi.Dto">
<Malls>
<PlaceBasicDto>
<Address xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d4p1:CountryCode>String</d4p1:CountryCode>
<d4p1:PostalCode>String</d4p1:PostalCode>
<d4p1:Region>String</d4p1:Region>
<d4p1:Street>String</d4p1:Street>
</Address>
<BusinessId>0</BusinessId>
<Claimed>false</Claimed>
<Contact xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d4p1:Email>String</d4p1:Email>
<d4p1:Phone>String</d4p1:Phone>
<d4p1:WebShop>String</d4p1:WebShop>
<d4p1:Website>String</d4p1:Website>
</Contact>
<CountryCode>String</CountryCode>
<Floor>String</Floor>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<Name>String</Name>
<OpeningHours xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d4p1:Weekly>
<d4p1:Friday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Friday>
<d4p1:Monday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Monday>
<d4p1:Saturday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Saturday>
<d4p1:Sunday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Sunday>
<d4p1:Thursday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Thursday>
<d4p1:Tuesday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Tuesday>
<d4p1:Wednesday>
<d4p1:CloseAtHour>0</d4p1:CloseAtHour>
<d4p1:CloseAtMinute>0</d4p1:CloseAtMinute>
<d4p1:OpenAtHour>0</d4p1:OpenAtHour>
<d4p1:OpenAtMinute>0</d4p1:OpenAtMinute>
</d4p1:Wednesday>
</d4p1:Weekly>
</OpeningHours>
<OrganizationNumber>String</OrganizationNumber>
<OtherServices>
<MallOtherServiceDto>
<Floor>String</Floor>
<Id>0</Id>
<ServiceName>String</ServiceName>
</MallOtherServiceDto>
</OtherServices>
<OutdoorSeating>false</OutdoorSeating>
<Overview>String</Overview>
<PlaceType>Mall</PlaceType>
<PriceMainDish xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d4p1:Slug>Value</d4p1:Slug>
<d4p1:Title>String</d4p1:Title>
</PriceMainDish>
<SaveFoodAndMoney>false</SaveFoodAndMoney>
<TimeZoneDto xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d4p1:BaseUtcOffset>PT0S</d4p1:BaseUtcOffset>
<d4p1:DaylightName>String</d4p1:DaylightName>
<d4p1:DisplayName>String</d4p1:DisplayName>
<d4p1:Id>String</d4p1:Id>
<d4p1:StandardName>String</d4p1:StandardName>
<d4p1:SupportsDaylightSavingTime>false</d4p1:SupportsDaylightSavingTime>
</TimeZoneDto>
<WheelChairAccessible>false</WheelChairAccessible>
<Wifi>false</Wifi>
</PlaceBasicDto>
</Malls>
</GetNearByMallResponse>