lib/entities/enrollment.js
function enrollment(data) {
  var self = object.create(enrollment.prototype);

  self.data = data;

  return self;
}
function enrollment(data) {
  var self = object.create(enrollment.prototype);

  self.data = data;

  return self;
}
function enrollment ( data ) { var self = object . create ( enrollment . prototype ) ; self . data = data ; return self ; }
Represents a complete enrollment with its associated data

@param {string} [data.name] Enrollment name
@param {string} [data.phoneNumber] Enrollment phone number (masked)
@param {array.<sms|push|otp>} data.availableAuthenticatorTypes

@public
@returns {Enrollment}
Represents a complete enrollment with its associated data