class RegistrationService
Service to reach registrations.
Author
Ruslan Kashapov.
RegistrationService(url: URL, credentials: Credentials?, transport: Transport)
Service to reach registrations. |
fun deactivate(version: Int?, sellerId: String, cashRegisterName: String): Unit |
|
fun getBalance(version: Int?, cashRegisterName: String): BalanceInfo?
Get balance of registration. |
|
fun getOverviewInfo(seller: String, cashRegisterName: String): RegistrationDetailedOverviewInfo
Returns an registration info. |
|
fun getRegistrationVersion(cashRegisterName: String): RegistrationVersion
Returns latest version of registration. |
|
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. |
|
fun kdForSV(kdInfo: SVKdInfo, sellerId: String, cashRegisterName: String): KdReplyInfo
Sends data to control unit. |
|
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. |
|
fun listDiff(versionFrom: Int, versionTo: Int): List<RegistrationInfo>
Returns list of item changes between two versions. |
|
fun listGeolocations(sellerId: String): List<GeolocationInfo> |
|
fun patch(version: Int?, sellerId: String, cashRegisterName: String, patchInfos: List<PatchInfo>): Unit |
|
fun setBalance(version: Int, cashRegisterName: String, changeBalanceInfo: ChangeBalanceInfo): Unit
Set balance of registration. |
|
fun stats(period: String?): List<RegistrationStatsInfo>?
Returns stats by registrations. |