ReceiptLine

abstract class ReceiptLine(val type: LineType, val text: String?, val additionalText: String?, val sequenceNumber: Int) : Parcelable

Abstract class used as base for possible lines in a bill model. (Default, TextOnly, Discount)

Inheritors

Constructors

Link copied to clipboard
constructor(type: LineType, text: String?, additionalText: String?, sequenceNumber: Int)

Properties

Link copied to clipboard

Nullable String with additional text

Link copied to clipboard

Int The sequence number of the line item. Used to display the correct order.

Link copied to clipboard
open val text: String?

Nullable String value with the text of the line item

Link copied to clipboard
open val type: LineType

LineType value defining the type of a line item. E.g. DefaultLine, TextLine, DiscountLine

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)