Age Gate Module

struct CheckAgeData

  struct CheckAgeData {
    userIdentifier: String?
    nickname: String?
    birthDateYYYYMMDD: String?
    birthDateYYYYMM: String?
    birthDateYYYY: String?
    age: Int?
    countryCode: String?
  }

Instance Properties

userIdentifier - optional field, external user identifier (please don't use empty string ("") as a value. It will cause an error. We support real values or nil if you don't have it)

nickname - optional field, nickname (please use only in case of multi-user integration. Please don't use empty string "" in it)

birthDateYYYYMMDD - optional field, external user birth date in "yyyy-MM-dd" format

birthDateYYYYMM - optional field, external user birth date in "yyyy-MM" format

birthDateYYYY - optional field, external user birth date in "yyyy" format. Derived birthDate will be calculated with Dec 31 by default

age - optional field, external user age format. Derived birthDate will be calculated with current day and month by default

countryCode - optional field, two-letter country code ISO 3166-1 alpha-2