apidocs / com.srv4pos.server.api.restaurant / RestaurantService

RestaurantService

class RestaurantService

Exchange information for Restaurant entity.

Author
pavel.tsarev

Constructors

<init>

RestaurantService(url: URL, credentials: Credentials?, transport: Transport)

Exchange information for Restaurant entity.

Functions

get

operator fun get(sellerId: String, version: Int?): RestaurantOverviewInfo?

Get latest information about seller from the server.

list

fun list(firstResult: Int? = null, maxResults: Int? = null, like: String? = null, orderBy: PublicSellerInfo.Fields? = null, orderDesc: Boolean? = null): List<RestaurantListInfo>?

Returns list of entities. Only for admins.

put

fun put(version: Int, sellerId: String, restaurantInfo: RestaurantInfo): Unit

Send information about restaurant to the server to store it.

remove

fun remove(sellerId: String): Unit

Remove seller and all information that concerns seller.