| Required role: | Consumer |
| POST | /business/next-to-claim |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ConsumerApi;
namespace ConsumerApi
{
public partial class BrandApiDto
{
public string Name { get; set; }
}
public partial class CategoryTreeApiDto
{
public string Name { get; set; }
public string Slug { get; set; }
public string AbsoluteSlug { get; set; }
public string? ImageUrl { get; set; }
public string? AllImageUrl { get; set; }
public string? IconImageUrl { get; set; }
public int Position { get; set; }
public List<CategoryTreeApiDto>? Children { get; set; } = [];
}
public partial class ClaimUserInfo
{
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string Email { get; set; }
public bool LegalIdentityVerified { get; set; }
public string PhoneNumber { get; set; }
}
public enum NextClaimStep
{
AuthenticateWithVipps,
CreatePassword,
AcceptBusinessTermsOfService,
Claim,
Completed,
}
public partial class NextToClaimBusinessRequest
: IPost
{
public Guid? PlaceGuid { get; set; }
}
public partial class NextToClaimBusinessResponse
{
public NextClaimStep NextStep { get; set; }
public ClaimUserInfo User { get; set; }
public PlaceBasicApiDto Place { get; set; }
}
public partial class PlaceBasicApiDto
{
public long Id { get; set; }
public Guid Guid { get; set; }
public string? Overview { get; set; }
public string Name { get; set; }
public float Longitude { get; set; }
public float Latitude { get; set; }
public bool Claimed { get; set; }
public string? OrganizationNumber { get; set; }
public string CountryCode { get; set; }
public OpeningHours? OpeningHours { get; set; }
public bool? WheelchairAccessible { get; set; }
public bool? Wifi { get; set; }
public bool? OutdoorSeating { get; set; }
public bool? SaveFoodAndMoney { get; set; }
public PlaceType PlaceType { get; set; }
public PriceMainDishApiDto? PriceMainDish { get; set; }
public TimeZoneDto TimeZoneDto { get; set; }
public long? BusinessId { get; set; }
public PlaceContact Contact { get; set; }
public PlaceAddress Address { get; set; }
public List<CategoryTreeApiDto> Categories { get; set; } = [];
public ImageUrls? LogoUrl { get; set; }
public ImageUrls? ImageUrl { get; set; }
public List<WearPriceProfileEsDto> WearPriceProfiles { get; set; } = [];
public List<PlaceSelectedBrandApiDto> Brands { get; set; } = [];
public string? Floor { get; set; }
}
public partial class PlaceCustomBrandApiDto
{
public string Name { get; set; }
}
public partial class PlaceSelectedBrandApiDto
{
public BrandApiDto? Brand { get; set; }
public string[]? CategoryAbsoluteSlugs { get; set; } = [];
public PlaceCustomBrandApiDto? PlaceCustomBrand { get; set; }
}
public partial class PriceMainDishApiDto
{
public string Title { get; set; }
public PriceMainDish Slug { get; set; }
}
public partial class WearPriceProfileEsDto
{
public string Slug { get; set; }
public string Label { get; set; }
}
public partial class ImageUrls
{
public string Preview { get; set; }
public string Small { get; set; }
public string Medium { get; set; }
public string Large { get; set; }
}
public partial class OpeningHour
{
public int OpenAtHour { get; set; }
public int OpenAtMinute { get; set; }
public int CloseAtHour { get; set; }
public int CloseAtMinute { get; set; }
}
public partial class OpeningHours
{
public WeeklyOpeningHours Weekly { get; set; }
}
public partial class PlaceAddress
{
public string Street { get; set; }
public string PostalCode { get; set; }
public string Region { get; set; }
public string CountryCode { get; set; }
}
public partial class PlaceContact
{
public string? Phone { get; set; }
public string? Email { get; set; }
public string? Website { get; set; }
public string? WebShop { get; set; }
}
public enum PlaceType
{
Mall,
Regular,
}
public partial class TimeZoneDto
{
public TimeSpan BaseUtcOffset { get; set; }
public string DaylightName { get; set; }
public string DisplayName { get; set; }
public string Id { get; set; }
public string StandardName { get; set; }
public bool SupportsDaylightSavingTime { get; set; }
}
public partial class WeeklyOpeningHours
{
public OpeningHour? Monday { get; set; }
public OpeningHour? Tuesday { get; set; }
public OpeningHour? Wednesday { get; set; }
public OpeningHour? Thursday { get; set; }
public OpeningHour? Friday { get; set; }
public OpeningHour? Saturday { get; set; }
public OpeningHour? Sunday { get; set; }
}
public enum PriceMainDish
{
Value,
Medium,
High,
FineDining,
}
}
C# NextToClaimBusinessRequest 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.
POST /business/next-to-claim HTTP/1.1
Host: unstable-consumer-api.brovs.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<NextToClaimBusinessRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">
<PlaceGuid>00000000-0000-0000-0000-000000000000</PlaceGuid>
</NextToClaimBusinessRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<NextToClaimBusinessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">
<NextStep>AuthenticateWithVipps</NextStep>
<Place>
<Address xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:CountryCode>String</d3p1:CountryCode>
<d3p1:PostalCode>String</d3p1:PostalCode>
<d3p1:Region>String</d3p1:Region>
<d3p1:Street>String</d3p1:Street>
</Address>
<Brands>
<PlaceSelectedBrandApiDto>
<Brand>
<Name>String</Name>
</Brand>
<CategoryAbsoluteSlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</CategoryAbsoluteSlugs>
<PlaceCustomBrand>
<Name>String</Name>
</PlaceCustomBrand>
</PlaceSelectedBrandApiDto>
</Brands>
<BusinessId>0</BusinessId>
<Categories>
<CategoryTreeApiDto>
<AbsoluteSlug>String</AbsoluteSlug>
<AllImageUrl>String</AllImageUrl>
<Children>
<CategoryTreeApiDto>
<AbsoluteSlug>String</AbsoluteSlug>
<AllImageUrl>String</AllImageUrl>
<Children>
<CategoryTreeApiDto>
<AbsoluteSlug>String</AbsoluteSlug>
<AllImageUrl>String</AllImageUrl>
<Children i:nil="true" />
<IconImageUrl>String</IconImageUrl>
<ImageUrl>String</ImageUrl>
<Name>String</Name>
<Position>0</Position>
<Slug>String</Slug>
</CategoryTreeApiDto>
</Children>
<IconImageUrl>String</IconImageUrl>
<ImageUrl>String</ImageUrl>
<Name>String</Name>
<Position>0</Position>
<Slug>String</Slug>
</CategoryTreeApiDto>
</Children>
<IconImageUrl>String</IconImageUrl>
<ImageUrl>String</ImageUrl>
<Name>String</Name>
<Position>0</Position>
<Slug>String</Slug>
</CategoryTreeApiDto>
</Categories>
<Claimed>false</Claimed>
<Contact xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:Email>String</d3p1:Email>
<d3p1:Phone>String</d3p1:Phone>
<d3p1:WebShop>String</d3p1:WebShop>
<d3p1:Website>String</d3p1:Website>
</Contact>
<CountryCode>String</CountryCode>
<Floor>String</Floor>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<ImageUrl xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:Large>String</d3p1:Large>
<d3p1:Medium>String</d3p1:Medium>
<d3p1:Preview>String</d3p1:Preview>
<d3p1:Small>String</d3p1:Small>
</ImageUrl>
<Latitude>0</Latitude>
<LogoUrl xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:Large>String</d3p1:Large>
<d3p1:Medium>String</d3p1:Medium>
<d3p1:Preview>String</d3p1:Preview>
<d3p1:Small>String</d3p1:Small>
</LogoUrl>
<Longitude>0</Longitude>
<Name>String</Name>
<OpeningHours xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:Weekly>
<d3p1:Friday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Friday>
<d3p1:Monday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Monday>
<d3p1:Saturday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Saturday>
<d3p1:Sunday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Sunday>
<d3p1:Thursday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Thursday>
<d3p1:Tuesday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Tuesday>
<d3p1:Wednesday>
<d3p1:CloseAtHour>0</d3p1:CloseAtHour>
<d3p1:CloseAtMinute>0</d3p1:CloseAtMinute>
<d3p1:OpenAtHour>0</d3p1:OpenAtHour>
<d3p1:OpenAtMinute>0</d3p1:OpenAtMinute>
</d3p1:Wednesday>
</d3p1:Weekly>
</OpeningHours>
<OrganizationNumber>String</OrganizationNumber>
<OutdoorSeating>false</OutdoorSeating>
<Overview>String</Overview>
<PlaceType>Mall</PlaceType>
<PriceMainDish>
<Slug>Value</Slug>
<Title>String</Title>
</PriceMainDish>
<SaveFoodAndMoney>false</SaveFoodAndMoney>
<TimeZoneDto xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:BaseUtcOffset>PT0S</d3p1:BaseUtcOffset>
<d3p1:DaylightName>String</d3p1:DaylightName>
<d3p1:DisplayName>String</d3p1:DisplayName>
<d3p1:Id>String</d3p1:Id>
<d3p1:StandardName>String</d3p1:StandardName>
<d3p1:SupportsDaylightSavingTime>false</d3p1:SupportsDaylightSavingTime>
</TimeZoneDto>
<WearPriceProfiles>
<WearPriceProfileEsDto>
<Label>String</Label>
<Slug>String</Slug>
</WearPriceProfileEsDto>
</WearPriceProfiles>
<WheelchairAccessible>false</WheelchairAccessible>
<Wifi>false</Wifi>
</Place>
<User>
<Email>String</Email>
<FirstName>String</FirstName>
<LastName>String</LastName>
<LegalIdentityVerified>false</LegalIdentityVerified>
<PhoneNumber>String</PhoneNumber>
</User>
</NextToClaimBusinessResponse>