apidocs / com.srv4pos.server.api.sync.sample / SyncProduct

SyncProduct

open class SyncProduct : SyncEntity<ProductInfo!>

Constructors

<init>

SyncProduct(info: ProductInfo!)
SyncProduct(info: ProductInfo!, synced: Boolean)
SyncProduct(info: ProductInfo!, tax: SyncTax!)

Functions

getPictureBytes

open fun getPictureBytes(): ByteArray!

This method is for testing purposes only (it is used in unit tests and in integration tests). Actual sync helpers (and thus sync algorithm) does not use it.

getPictureInputStream

open fun getPictureInputStream(): InputStream!

getTax

open fun getTax(): SyncTax!

setPictureBytes

open fun setPictureBytes(buf: ByteArray!): Unit

setTax

open fun setTax(tax: SyncTax!): Unit