Table of Contents

Class Employee

Namespace
Payetools.Payroll.Model
Assembly
Payetools.Payroll.dll

Represents an employee for payroll purposes.

public record Employee : IEmployee, INamedPerson, IEquatable<Employee>
Inheritance
Employee
Implements
Inherited Members

Properties

DateOfBirth

Gets the individual's date of birth.

public DateOnly DateOfBirth { get; init; }

Property Value

DateOnly

EmailAddress

Gets or sets the employee's email address, if known.

public MailAddress? EmailAddress { get; set; }

Property Value

MailAddress

FirstName

Gets the individual's first (also known as "given" or "Christian") name.

public string? FirstName { get; init; }

Property Value

string

Gender

Gets the individual's "official" gender as recognised by HMRC for payroll purposes.

public Gender Gender { get; init; }

Property Value

Gender

HasMiddleName

Gets a value indicating whether the individual has supplied a middle name.

public bool HasMiddleName { get; }

Property Value

bool

Initials

Gets a list of the individual's initials as an array. Note that this property is only used if the individual's first name is not known, and its use is mutually exclusive with FirstName and MiddleNames.

public char[]? Initials { get; init; }

Property Value

char[]

InitialsAsString

Gets any initials provided as a space separated string. Will be null if a FirstName has been provided.

public string? InitialsAsString { get; init; }

Property Value

string

KnownAsName

Gets the name that an individual would like to be known as. This might be an abbreviated form of their first name (e.g., Geoff rather than Geoffrey) or just a nickname that they are commonly known by. Optional.

public string? KnownAsName { get; init; }

Property Value

string

LastName

Gets the individual's last (also known as "family") name.

public string LastName { get; init; }

Property Value

string

MiddleNames

Gets the middle names of the individual, space separated. Note that this property is optional, as some people do not have middle names, or they choose not to disclose them.

public string? MiddleNames { get; init; }

Property Value

string

NiNumber

Gets the individual's National Insurance number.

public NiNumber NiNumber { get; init; }

Property Value

NiNumber

PostalAddress

Gets or sets the employee's postal address.

public PostalAddress PostalAddress { get; set; }

Property Value

PostalAddress

Title

Gets the individual's title, e.g., Mr, Mrs, Miss, Dr., etc.

public Title? Title { get; init; }

Property Value

Title?