RegistrationCodeStatsData
public struct RegistrationCodeStatsData : Content
Returns general info about registration codes.
Each passenger gets sent an email with a unique registration code; the reg code allows them to create verified accounts. This struct lets the admins quickly view some basic stats on account usage.
-
How many reg codes are in the database.
Declaration
Swift
var allocatedCodes: Int
-
How many codes have been used to create verified accounts.
Declaration
Swift
var usedCodes: Int
-
How many codes have not yet been used.
Declaration
Swift
var unusedCodes: Int
-
This exists so that if admins create new reg codes for people who lost theirs, we can track it. There isn’t yet any API for admins to do this; the number will be 0.
Declaration
Swift
var adminCodes: Int