ConsumerApi

<back to all web services

NextToAcceptBusinessInviteRequest

ConsumerBusiness
The following routes are available for this service:
POST/business/next-to-accept-invite
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ConsumerApi

Namespace Global

    Namespace ConsumerApi

        Public Partial Class BrandApiDto
            Public Property Name As String
        End Class

        Public Partial Class BusinessInviteUserInfo
            Public Property FirstName As String
            Public Property LastName As String
        End Class

        Public Partial Class CategoryTreeApiDto
            Public Property Name As String
            Public Property Slug As String
            Public Property AbsoluteSlug As String
            Public Property ImageUrl As String
            Public Property AllImageUrl As String
            Public Property IconImageUrl As String
            Public Property Position As Integer
            Public Property Children As List(Of CategoryTreeApiDto) = New List(Of CategoryTreeApiDto)
        End Class

        Public Partial Class ClaimUserInfo
            Public Property FirstName As String
            Public Property LastName As String
            Public Property Email As String
            Public Property LegalIdentityVerified As Boolean
            Public Property PhoneNumber As String
        End Class

        Public Partial Class InviteInfo
            Public Property StaffRole As StaffRole
            Public Property BusinessRole As BusinessRole
            Public Property InvitingUser As BusinessInviteUserInfo
        End Class

        Public Enum NextInviteStep
            Authenticate
            AuthenticateWithVipps
            InviteIsForAnotherUser
            CreatePassword
            AcceptBusinessTermsOfService
            AcceptInvite
        End Enum

        Public Partial Class NextToAcceptBusinessInviteRequest
            Implements IPost
            Public Property InviteKey As String
        End Class

        Public Partial Class NextToAcceptBusinessInviteResponse
            Public Property NextStep As NextInviteStep
            Public Property User As ClaimUserInfo
            Public Property Place As PlaceBasicApiDto
            Public Property Invite As InviteInfo
        End Class

        Public Partial Class PlaceBasicApiDto
            Public Property Id As Long
            Public Property Guid As Guid
            Public Property Overview As String
            Public Property Name As String
            Public Property Longitude As Single
            Public Property Latitude As Single
            Public Property Claimed As Boolean
            Public Property OrganizationNumber As String
            Public Property CountryCode As String
            Public Property OpeningHours As OpeningHours
            Public Property WheelchairAccessible As Boolean?
            Public Property Wifi As Boolean?
            Public Property OutdoorSeating As Boolean?
            Public Property SaveFoodAndMoney As Boolean?
            Public Property PlaceType As PlaceType
            Public Property PriceMainDish As PriceMainDishApiDto
            Public Property TimeZoneDto As TimeZoneDto
            Public Property BusinessId As Long?
            Public Property Contact As PlaceContact
            Public Property Address As PlaceAddress
            Public Property Categories As List(Of CategoryTreeApiDto) = New List(Of CategoryTreeApiDto)
            Public Property LogoUrl As ImageUrls
            Public Property ImageUrl As ImageUrls
            Public Property WearPriceProfiles As List(Of WearPriceProfileEsDto) = New List(Of WearPriceProfileEsDto)
            Public Property Brands As List(Of PlaceSelectedBrandApiDto) = New List(Of PlaceSelectedBrandApiDto)
            Public Property Floor As String
        End Class

        Public Partial Class PlaceCustomBrandApiDto
            Public Property Name As String
        End Class

        Public Partial Class PlaceSelectedBrandApiDto
            Public Property Brand As BrandApiDto
            Public Property CategoryAbsoluteSlugs As String() = New String(){}
            Public Property PlaceCustomBrand As PlaceCustomBrandApiDto
        End Class

        Public Partial Class PriceMainDishApiDto
            Public Property Title As String
            Public Property Slug As PriceMainDish
        End Class

        Public Partial Class WearPriceProfileEsDto
            Public Property Slug As String
            Public Property Label As String
        End Class

        Public Enum BusinessRole
            Owner
            Manager
            Sales
            Marketing
            Other
        End Enum

        Public Partial Class ImageUrls
            Public Property Preview As String
            Public Property Small As String
            Public Property Medium As String
            Public Property Large As String
        End Class

        Public Partial Class OpeningHour
            Public Property OpenAtHour As Integer
            Public Property OpenAtMinute As Integer
            Public Property CloseAtHour As Integer
            Public Property CloseAtMinute As Integer
        End Class

        Public Partial Class OpeningHours
            Public Property Weekly As WeeklyOpeningHours
        End Class

        Public Partial Class PlaceAddress
            Public Property Street As String
            Public Property PostalCode As String
            Public Property Region As String
            Public Property CountryCode As String
        End Class

        Public Partial Class PlaceContact
            Public Property Phone As String
            Public Property Email As String
            Public Property Website As String
            Public Property WebShop As String
        End Class

        Public Enum PlaceType
            Mall
            Regular
        End Enum

        Public Partial Class TimeZoneDto
            Public Property BaseUtcOffset As TimeSpan
            Public Property DaylightName As String
            Public Property DisplayName As String
            Public Property Id As String
            Public Property StandardName As String
            Public Property SupportsDaylightSavingTime As Boolean
        End Class

        Public Partial Class WeeklyOpeningHours
            Public Property Monday As OpeningHour
            Public Property Tuesday As OpeningHour
            Public Property Wednesday As OpeningHour
            Public Property Thursday As OpeningHour
            Public Property Friday As OpeningHour
            Public Property Saturday As OpeningHour
            Public Property Sunday As OpeningHour
        End Class

        Public Enum PriceMainDish
            Value
            Medium
            High
            FineDining
        End Enum
    End Namespace
End Namespace

VB.NET NextToAcceptBusinessInviteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /business/next-to-accept-invite HTTP/1.1 
Host: unstable-consumer-api.brovs.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"inviteKey":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"nextStep":"Authenticate","user":{"firstName":"String","lastName":"String","email":"String","legalIdentityVerified":false,"phoneNumber":"String"},"place":{"id":0,"overview":"String","name":"String","longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"wheelchairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"placeType":"Mall","priceMainDish":{"title":"String","slug":"Value"},"timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"businessId":0,"contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"},"categories":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0}]}]}],"logoUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"imageUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"wearPriceProfiles":[{"slug":"String","label":"String"}],"brands":[{"brand":{"name":"String"},"categoryAbsoluteSlugs":["String"],"placeCustomBrand":{"name":"String"}}],"floor":"String"},"invite":{"staffRole":"Owner","businessRole":"Owner","invitingUser":{"firstName":"String","lastName":"String"}}}