apidocs / com.srv4pos.server.api.tax / TaxService

TaxService

class TaxService

To reach Tax entity.

User: Kirill, Date: 05.08.13 18:00.

Constructors

<init>

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

To reach Tax entity.

Functions

create

fun create(version: Int, taxInfo: TaxInfo): IdentifierInfo

Create tax on the server.

delete

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

Delete tax from the server.

get

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

Returns an entity.

list

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

Returns list of entities.

listDiff

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

Returns list of item changes between two versions.

put

fun put(version: Int, taxInfo: TaxInfo): Unit

Put tax to the server.

stats

fun stats(period: String?, cashRegisterName: String?): TaxesStatsInfo?

Returns stats by taxes.