DiscountLine

data class DiscountLine(val type: LineType, val text: String? = null, val additionalText: String? = null, val sequenceNumber: Int, val fullAmountInclVat: Double, val relatedLines: List<Int>? = null) : ReceiptLine, Parcelable

Discount line. Represents a discount not explicitly bound to a specific line.

Constructors

Link copied to clipboard
constructor(type: LineType, text: String? = null, additionalText: String? = null, sequenceNumber: Int, fullAmountInclVat: Double, relatedLines: List<Int>? = null)

Properties

Link copied to clipboard
@Expose
open override val additionalText: String? = null

Nullable String with additional text

Link copied to clipboard

Double The total gross total amount of this discount line. A precision of up to 5 decimal places is used.

Link copied to clipboard
@Expose
val relatedLines: List<Int>? = null

List of Int Reference to related lines by the 'SequenceNumber'.

Link copied to clipboard
@Expose
open override val sequenceNumber: Int

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

Link copied to clipboard
@Expose
open override val text: String? = null

Nullable String value with the text of the line item

Link copied to clipboard
@Expose
open override val type: LineType

LineType value defining the type of a line item: DiscountLine

Functions

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