data class Variant
Variant VenueNext
Created on 3/7/19. Copyright © 2019 VenueNext Inc. All rights reserved.
<init> |
Variant VenueNext Variant(uuid: String = "", itemUUID: String? = null, name: String? = null, categoryName: String? = null, eventName: String? = null, inventoryState: String? = null, priceInCents: Int? = 0, price: Double? = 0.0, priceAfterThresholdInCents: Int? = 0, defaultQuantity: Int? = 0, modifier: Boolean? = false, productSKU: String? = null, saleId: String? = null, merchantId: String? = null, saleIds: List<String>? = null, globalItemId: String? = null, eventUUID: String? = null, onHandQuantity: Int? = 0, purchaseLimit: Int? = 0, availableAt: String? = null, expiresAt: String? = null, redemptionStartsAt: String? = null, sales: List<VariantSale>? = null) |
availableAt |
var availableAt: String? |
categoryName |
var categoryName: String? |
defaultQuantity |
var defaultQuantity: Int? |
eventName |
var eventName: String? |
eventUUID |
var eventUUID: String? |
expiresAt |
var expiresAt: String? |
globalItemId |
var globalItemId: String? |
inventoryState |
var inventoryState: String? |
itemUUID |
var itemUUID: String? |
merchantId |
var merchantId: String? |
modifier |
var modifier: Boolean? |
name |
var name: String? |
onHandQuantity |
var onHandQuantity: Int? |
price |
var price: Double? |
priceAfterThresholdInCents |
var priceAfterThresholdInCents: Int? |
priceInCents |
var priceInCents: Int? |
productSKU |
var productSKU: String? |
purchaseLimit |
var purchaseLimit: Int? |
redemptionStartsAt |
var redemptionStartsAt: String? |
saleId |
var saleId: String? |
saleIds |
var saleIds: List<String>? |
sales |
val sales: List<VariantSale>? |
uuid |
var uuid: String |
location |
val Variant.location: Location? |
preferredCardBankName |
val Variant.preferredCardBankName: String? |
primaryRestriction |
Gets the primary restriction determined by priority. For example, STH will normally take precedence over all of the other restrictions. val Variant.primaryRestriction: Restriction |
restrictions |
The active restrictions for this Variant val Variant.restrictions: List<Restriction> |
getRestrictionForUserStatus |
fun Variant.getRestrictionForUserStatus(isSeasonTicketHolder: Boolean, isPreferredCardHolder: Boolean, shouldFallback: Boolean = true): Restriction |
getSaleIds |
Gets the sales IDs for the restriction given the user's privilege fun Variant.getSaleIds(isSeasonTicketHolder: Boolean, isPreferredCardHolder: Boolean): Pair<String, String?> |
getSalePriceForDisplay |
Gets the price based on the sales group/exclusivity. fun Variant.getSalePriceForDisplay(isSeasonTicketHolder: Boolean, isPreferredCardHolder: Boolean): Double |