ReceiptRow

@ObjCName(name = "TeyaReceiptRow", exact = true)
sealed interface ReceiptRow

Supertype of all row types.

Inheritors

Types

Link copied to clipboard
@ObjCName(name = "TeyaReceiptRowDivider", exact = true)
object Divider : ReceiptRow

Represents a divider within the receipt layout.

Link copied to clipboard
@ObjCName(name = "TeyaReceiptRowItem", exact = true)
data class Item(val item: RowElement) : ReceiptRow

Represents a single item in a receipt row. The item is defined using a RowElement. This class is a specific type of ReceiptRow.

Link copied to clipboard
@ObjCName(name = "TeyaReceiptRowItems", exact = true)
data class Items(val items: List<RowElement>) : ReceiptRow

Represents a collection of RowElements within a receipt row.

Link copied to clipboard
@ObjCName(name = "TeyaReceiptRowSpacer", exact = true)
object Spacer : ReceiptRow

Represents an empty or blank row within a receipt. It can be used to add spacing between other elements in the receipt structure.

Link copied to clipboard
@ObjCName(name = "TeyaReceiptRowTable", exact = true)
data class Table(val headerCells: List<TableHeaderCell>, val rows: List<TableRow>) : ReceiptRow

Represents a table layout used in a receipt. The table consists of header cells and rows of data.