> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WorkAuthorization

> A worker's authorization to work: its Type (e.g.

A worker's authorization to work: its `Type` (e.g. citizen, permanent resident, a visa category), the issuing `Country`, and an optional expiry so the sync engine can react to upcoming expirations.

```csharp
public sealed record WorkAuthorization : IEquatable<WorkAuthorization>
```

**Implements:** `IEquatable<WorkAuthorization>`

## Constructors

```csharp
public WorkAuthorization(string Type, string Country, LocalDate? ExpiresOn)
```

A worker's authorization to work: its `Type` (e.g. citizen, permanent resident, a visa category), the issuing `Country`, and an optional expiry so the sync engine can react to upcoming expirations.

### Parameters

**Type** `string` *required*

**Country** `string` *required*

**ExpiresOn** `LocalDate?` *required*

## Fields

**Empty** `WorkAuthorization` *required*

## Properties

**Country** `string` *required*

**ExpiresOn** `LocalDate?`

**Type** `string` *required*

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string Type, out string Country, out LocalDate? ExpiresOn)
```

#### Parameters

**Type** `string` *required*

**Country** `string` *required*

**ExpiresOn** `LocalDate?` *required*

### Equals()

```csharp
public bool Equals(WorkAuthorization? other)
```

#### Parameters

**other** `WorkAuthorization` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### operator !=()

```csharp
public static bool operator !=(WorkAuthorization? left, WorkAuthorization? right)
```

#### Parameters

**left** `WorkAuthorization` *required*

**right** `WorkAuthorization` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(WorkAuthorization? left, WorkAuthorization? right)
```

#### Parameters

**left** `WorkAuthorization` *required*

**right** `WorkAuthorization` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.