vnorder / com.venuenext.vnorder.orders.model / LineItem

LineItem

data class LineItem

Constructors

<init>

LineItem(uuid: String = "", id: String = "", itemID: String = "", orderUUID: String? = "", lineItemName: String? = "", lineItemSpecialType: String? = SPECIAL_TYPE_UNKNOWN, itemUUID: String? = "", productSKU: String? = "", discountAmountInCents: Int? = 0, modifiers: List<List<LineItemModifier>>? = null, price: Double? = 0.0, paymentType: String? = "", quantity: Int? = 0, rate: Double? = 0.0, tax: Double? = 0.0, taxRules: List<TaxRule>? = null, totalAmountInCents: Int? = 0, taxAmountInCents: Int? = 0, type: String? = null, parentLineItemUUID: String? = null, reorderLineItemUUID: String? = null, total: Double? = 0.0, eventUUID: String? = "", expiresAt: String? = null)

Properties

discountAmountInCents

var discountAmountInCents: Int?

eventUUID

var eventUUID: String?

expiresAt

var expiresAt: String?

id

var id: String

itemID

var itemID: String

itemUUID

var itemUUID: String?

lineItemName

var lineItemName: String?

lineItemSpecialType

var lineItemSpecialType: String?

modifiers

var modifiers: List<List<LineItemModifier>>?

orderUUID

var orderUUID: String?

parentLineItemUUID

var parentLineItemUUID: String?

paymentType

var paymentType: String?

price

var price: Double?

productSKU

var productSKU: String?

quantity

var quantity: Int?

rate

var rate: Double?

reorderLineItemUUID

var reorderLineItemUUID: String?

tax

var tax: Double?

taxAmountInCents

var taxAmountInCents: Int?

taxRules

var taxRules: List<TaxRule>?

total

var total: Double?

totalAmountInCents

var totalAmountInCents: Int?

type

var type: String?

uuid

var uuid: String

Extension Properties

shouldExcludeFromSubtotal

Determines if the line item should be excluded when determining a subtotal to display to the user.

val LineItem.shouldExcludeFromSubtotal: Boolean

Extension Functions

analyticsFormat

fun LineItem.analyticsFormat(currency: String): Bundle