vnorder / com.venuenext.vnorder.orders.model / Cart

Cart

data class Cart

Cart VenueNext

Created on 2/19/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Types

OrderAttributes

data class OrderAttributes

Constructors

<init>

Cart VenueNext

Cart(uuid: String = "", email: String? = null, payments: ArrayList<Payment>? = null, paymentMethodNonce: String? = null, menuUUID: String? = null, cartEntries: ArrayList<CartEntry>? = null, experienceCartEntries: ArrayList<CartEntry>? = null, orderUUID: String? = null, seatLocationUUID: String? = null, userAttributes: UserAttribute? = null, fulfillmentDate: String? = null, fulfillmentSlot: String? = null, webOrder: Boolean? = false, productType: String? = null, orderAttributes: OrderAttributes? = null, firstName: String? = null, lastName: String = "", tipAmountInCents: Int? = null, affiliations: List<String>? = null)

Properties

affiliations

var affiliations: List<String>?

cartEntries

var cartEntries: ArrayList<CartEntry>?

email

var email: String?

experienceCartEntries

var experienceCartEntries: ArrayList<CartEntry>?

firstName

var firstName: String?

fulfillmentDate

var fulfillmentDate: String?

fulfillmentSlot

var fulfillmentSlot: String?

lastName

var lastName: String

menuUUID

var menuUUID: String?

orderAttributes

var orderAttributes: OrderAttributes?

orderUUID

var orderUUID: String?

paymentMethodNonce

var paymentMethodNonce: String?

payments

var payments: ArrayList<Payment>?

productType

var productType: String?

seatLocationUUID

var seatLocationUUID: String?

tipAmountInCents

var tipAmountInCents: Int?

userAttributes

var userAttributes: UserAttribute?

uuid

var uuid: String

webOrder

var webOrder: Boolean?

Extension Functions

experiencePostBody

fun Cart.experiencePostBody(): Cart

getCartEntriesWithDiscountsToDisplay

Used to get a list of entries that include discounts that can be displayed without changing the actual cart entries 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 cart entries.

fun Cart.getCartEntriesWithDiscountsToDisplay(order: Order): ArrayList<CartEntry>

mapAffiliations

Maps the MemberAffiliations associated with a stand to the Cart based on the status of the current user.

fun Cart.mapAffiliations(context: Context, affiliations: MemberAffiliations): Unit

postBody

fun Cart.postBody(): Cart