apidocs / com.srv4pos.server.api.seller / SellerService

SellerService

class SellerService

Exchange information for Seller entity. User: Kirill Date: 25.07.13 11:14

Constructors

<init>

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

Exchange information for Seller entity. User: Kirill Date: 25.07.13 11:14

Properties

public

val public: PublicSellerInfo?

Gets PublicSellerInfo for seller. This method performs anonymously.

stats

val stats: SellerStatsInfo

Gets an information about availability of local control units, expiration of activation.

thisVersion

val thisVersion: SellerVersion

Returns latest version of this seller.

Functions

deletePicture

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

Deletes specified picture.

get

operator fun get(version: Int?): SellerInfo?

Get latest information about seller from the server.

getModifications

fun getModifications(versionFrom: Int, versionTo: Int, orderDesc: Boolean?): List<SellerModificationInfo>?

Gets list of seller modifications.

getPicture

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

Returns body of the picture.

getPictureFromHistory

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

Returns body of the picture for particular version number.

getPicturePath

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

Returns list of picture relative paths .

getThisVersionPublic

fun getThisVersionPublic(sellerId: String): SellerVersion

Returns latest version of this public seller.

list

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

Returns list of entities which have publicAccess == true.

listDiffPicture

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

Returns list of seller pictures changes between two versions.

put

fun put(version: Int, sellerInfo: SellerInfo): Unit

Send information about seller to the server to store it.

putPicture

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

Send picture to the server.

remove

fun remove(sellerId: String): Unit

Remove seller and all information that concerns seller.