Package-level declarations

Types

Link copied to clipboard

The access level granted based on Age Assurance data we've processed.

Link copied to clipboard
Link copied to clipboard
data class BeginRequest(val email: String, val language: String, val countryCode: String, val regionCode: String? = null)
Link copied to clipboard
typealias BeginResponse = State
Link copied to clipboard
data class Config(val regions: List<ConfigRegion>)
Link copied to clipboard
data class ConfigRegion(val countryCode: String, val regionCode: String? = null, val minAccessAge: Long, val rules: List<ConfigRegionRuleUnion>)

The Age Assurance configuration for a specific region.

Link copied to clipboard

Age Assurance rule that applies by default.

Link copied to clipboard

Age Assurance rule that applies if the account is equal-to or newer than a certain date.

Link copied to clipboard

Age Assurance rule that applies if the account is older than a certain date.

Link copied to clipboard
data class ConfigRegionRuleIfAssuredOverAge(val age: Long, val access: Access)

Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age.

Link copied to clipboard
data class ConfigRegionRuleIfAssuredUnderAge(val age: Long, val access: Access)

Age Assurance rule that applies if the user has been assured to be under a certain age.

Link copied to clipboard
data class ConfigRegionRuleIfDeclaredOverAge(val age: Long, val access: Access)

Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age.

Link copied to clipboard

Age Assurance rule that applies if the user has declared themselves under a certain age.

Link copied to clipboard
Link copied to clipboard
data class Event(val createdAt: Timestamp, val attemptId: String, val status: EventStatus, val access: EventAccess, val countryCode: String, val regionCode: String? = null, val email: String? = null, val initIp: String? = null, val initUa: String? = null, val completeIp: String? = null, val completeUa: String? = null)

Object used to store Age Assurance data in stash.

Link copied to clipboard

The access level granted based on Age Assurance data we've processed.

Link copied to clipboard

The status of the Age Assurance process.

Link copied to clipboard
Link copied to clipboard
data class GetStateQueryParams(val countryCode: String, val regionCode: String? = null)
Link copied to clipboard
data class GetStateResponse(val state: State, val metadata: StateMetadata)
Link copied to clipboard
data class State(val lastInitiatedAt: Timestamp? = null, val status: Status, val access: Access)

The user's computed Age Assurance state.

Link copied to clipboard
data class StateMetadata(val accountCreatedAt: Timestamp? = null)

Additional metadata needed to compute Age Assurance state client-side.

Link copied to clipboard

The status of the Age Assurance process.

Link copied to clipboard