apidocs / com.srv4pos.server.api.registration / RegistrationService

RegistrationService

class RegistrationService

Service to reach registrations.

Author
Ruslan Kashapov.

Constructors

<init>

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

Service to reach registrations.

Functions

deactivate

fun deactivate(version: Int?, sellerId: String, cashRegisterName: String): Unit

getBalance

fun getBalance(version: Int?, cashRegisterName: String): BalanceInfo?

Get balance of registration.

getOverviewInfo

fun getOverviewInfo(seller: String, cashRegisterName: String): RegistrationDetailedOverviewInfo

Returns an registration info.

getRegistrationVersion

fun getRegistrationVersion(cashRegisterName: String): RegistrationVersion

Returns latest version of registration.

kd

fun kd(kdInfo: KdInfo, sellerId: String, cashRegisterName: String): KdReplyInfo

Sends data to control unit.

fun kd(kdInfo: KdInfo, sellerId: String, cashRegisterName: String, logId: String): KdReplyInfo

The same as .kd, but also has param logId for load testing. For logging details, see com.srv4pos.server.core.web.infrastructure.MethodProfiler and com.srv4pos.server.core.web.infrastructure.ServletTimeMeasurementFilter.

kdForSV

fun kdForSV(kdInfo: SVKdInfo, sellerId: String, cashRegisterName: String): KdReplyInfo

Sends data to control unit.

list

fun list(version: Int?, firstResult: Int? = null, maxResults: Int? = null, orderBy: RegistrationInfo.Fields? = null, orderDesc: Boolean? = null, activeOnly: Boolean? = false): List<RegistrationInfo>?

Returns list of registrations.

listDiff

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

Returns list of item changes between two versions.

listGeolocations

fun listGeolocations(sellerId: String): List<GeolocationInfo>

patch

fun patch(version: Int?, sellerId: String, cashRegisterName: String, patchInfos: List<PatchInfo>): Unit

setBalance

fun setBalance(version: Int, cashRegisterName: String, changeBalanceInfo: ChangeBalanceInfo): Unit

Set balance of registration.

stats

fun stats(period: String?): List<RegistrationStatsInfo>?

Returns stats by registrations.