apidocs / com.srv4pos.server.api.booking / BookingService

BookingService

class BookingService

Created by eugene.shishkin on 05.09.14.

Constructors

<init>

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

Created by eugene.shishkin on 05.09.14.

Functions

create

fun create(bookingInfo: BookingInfo, version: Int?): String?

Create booking on the server.

delete

fun delete(version: Int, identifier: String): Unit

Deletes a booking.

get

operator fun get(identifier: String): BookingInfo

Returns an entity.

list

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

Returns list of bookings.

listDiff

fun listDiff(versionFrom: Int, versionTo: Int): List<BookingInfo>

Returns list of item changes between two versions. Since we don't have delete and edit methods, it returns only newly created bookings

put

fun put(version: Int, bookingInfo: BookingInfo, identifier: String): Unit

Modifies a booking.