vnorder / com.venuenext.vnorder.experience.util

Package com.venuenext.vnorder.experience.util

Properties

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

restriction

If there is no restriction specified or if its unrecognized, then this will be UNKNOWN

val VariantSale.restriction: Restriction

restrictions

The active restrictions for this Variant

val Variant.restrictions: List<Restriction>

Functions

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