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

SaleService

class SaleService

Service for reaching Sale entity.

User: Pavel Abizyaev, Date: 11.09.2014 18:52

Constructors

<init>

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

Service for reaching Sale entity.

Functions

create

fun create(sellerVersion: Int, saleInfo: SaleInfo): String?

csvStats

fun csvStats(sellerId: String, period: String?, cashRegisterName: String?): InputStream?

list

fun list(sellerId: String, period: String?, firstResult: Int?, maxResults: Int?, like: String?, orderBy: SaleInfo.Fields?, orderDesc: Boolean?, cashRegisterName: String?): List<SaleShortInfo>?

Returns list of entities.

fun list(sellerId: String, cashRegisterName: String): List<SaleShortInfo>?

listDiff

fun listDiff(cashRegisterName: String, versionFrom: Int, versionTo: Int): List<SaleInfo>

Returns list of item changes between two versions.

put

fun put(sellerVersion: Int, saleInfo: SaleInfo): Unit

Creates or modifies sale on the server.

stats

fun stats(sellerId: String, period: String?, cashRegisterName: String?): SaleStatsInfo?

Returns sales stats filtered by seller, cash register name and period.

statsByPaymentType

fun statsByPaymentType(sellerId: String, period: String?, cashRegisterName: String?): PaymentTypesStatsInfo?