apidocs / com.srv4pos.server.api.sale / SaleSlotService

SaleSlotService

class SaleSlotService

Created by fasth on 17.09.2014.

Constructors

<init>

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

Created by fasth on 17.09.2014.

Functions

create

fun create(version: Int?, saleSlotInfo: SaleSlotInfo): IdentifierInfo

Create entity on the server.

delete

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

deletePicture

fun deletePicture(version: Int, saleSlotIdentifier: String, pictureFilename: String): Unit

Deletes specified picture.

get

operator fun get(version: Int?, identifier: String): SaleSlotInfo?

Returns an entity.

getPicture

fun getPicture(version: Int?, saleSlotIdentifier: String, pictureFilename: String): InputStream?

Returns body of the picture.

getPictureFromHistory

fun getPictureFromHistory(pictureVersion: Int?, saleSlotIdentifier: String, pictureFilename: String): InputStream?

Returns body of the picture for particular version number.

getPicturePath

fun getPicturePath(version: Int?, saleSlotIdentifier: String): List<String>

Returns list of picture relative paths .

list

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

Returns list of entities.

listDiff

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

Returns list of item changes between two versions.

listDiffPicture

fun listDiffPicture(versionFrom: Int, versionTo: Int): List<SaleSlotPictureInfo>

Returns list of category pictures changes between two versions.

put

fun put(version: Int?, saleSlotInfo: SaleSlotInfo): Unit

Put entity to the server.

putPicture

fun putPicture(version: Int, saleSlotIdentifier: String, pictureFilename: String, picture: InputStream, contentType: String): Unit

Send picture to the server.