UserCreateData

public struct UserCreateData : Content
extension UserCreateData: RCFValidatable

Used to create a new account or sub-account.

Required by:

  • POST /api/v3/user/create
  • POST /api/v3/user/add

See UserController.createHandler(_:data:), UserController.addHandler(_:data:).

  • The user’s username.

    Declaration

    Swift

    var username: String
  • The user’s password.

    Declaration

    Swift

    var password: String
  • Verification code, emailed to all cruisegoers by THO before embarkation. On success, user will be created with .verified access level, consuming this code. Required for creating ‘parent’ accounts; must be nil when used to create a sub-account with POST /api/v3/user/add.

    Declaration

    Swift

    var verification: String?
  • Declaration

    Swift

    func runValidations(using decoder: ValidatingDecoder) throws