vnorder / com.venuenext.vnorder.orders.model.qrcoderesponses / QrCodeResponses

QrCodeResponses

data class QrCodeResponses

Constructors

<init>

QrCodeResponses(discountAmountInCents: Int?, discountRate: Double?, sourceDeviceUuid: String, lineItemErrors: List<String>?, standName: String, standUuid: String, qrCode: String, lineItems: List<LineItem>, nutritionalAttributes: NutritionalAttributes, promotions: List<Promotion>, orderNumber: String?, serviceChargeInCents: Int?, taxAmountInCents: Int, taxRate: Double, tipSuggestions: List<TipSuggestion>, totalAmountInCents: Int, totalsWithPaymentTypes: List<TotalsWithPaymentType>, uuid: String?)

Properties

discountAmountInCents

val discountAmountInCents: Int?

discountRate

val discountRate: Double?

lineItemErrors

val lineItemErrors: List<String>?

lineItems

val lineItems: List<LineItem>

nutritionalAttributes

val nutritionalAttributes: NutritionalAttributes

orderNumber

val orderNumber: String?

promotions

val promotions: List<Promotion>

qrCode

val qrCode: String

serviceChargeInCents

val serviceChargeInCents: Int?

sourceDeviceUuid

val sourceDeviceUuid: String

standName

val standName: String

standUuid

val standUuid: String

taxAmountInCents

val taxAmountInCents: Int

taxRate

val taxRate: Double

tipSuggestions

val tipSuggestions: List<TipSuggestion>

totalAmountInCents

val totalAmountInCents: Int

totalsWithPaymentTypes

val totalsWithPaymentTypes: List<TotalsWithPaymentType>

uuid

val uuid: String?

Extension Functions

lineItemsWithDiscountsToDisplay

Used to get a list of line items that include discounts that can be displayed without changing the actual line items list. This keeps things safe for when the order is placed and sent to back end. E.g. The discounts should not be sent up as line items.

fun QrCodeResponses.lineItemsWithDiscountsToDisplay(): List<LineItem>