# Client

**Kind:** Class

**Source:** `Pams/Web/Pams.WebApp/Client/app/models/person/client.model.ts` (line 5)

**Part of:** [Pams](subsystem-pams)

`Client` is a person-domain model in the web application. It supports creating copies of a client instance through `clone()` and `cloneClient()`.

## Methods

| Method | Signature | Returns |
|---|---|---|
| `clone` | `clone()` | `Client` |
| `cloneClient` | `cloneClient(cli: Client)` | `Client` |

## Properties

| Property | Type |
|---|---|
| `ClientID` | `number` |
| `UserID` | `number` |
| `ModificationDate` | `Date` |
| `CompanyBranchID` | `number` |
| `ClientCode` | `string` |
| `FullName` | `string` |
| `ClientName` | `string` |
| `Vat` | `string` |
| `ClientTypeID` | `number` |
| `MarketSegmentID` | `number` |
| `MarketSegmentIDs` | `number[]` |
| `Addresses` | `Address[]` |
| `ContactInfoList` | `Array<ContactInfo>` |
| `ContactPersonList` | `Array<ContactPersons>` |
| `registrationData` | `Array<ClientSupplierRegistration>` |
| `ImgPath` | `string` |

## Diagram

```mermaid
graph LR
  Client[Client]
  Client --> Clone[clone(): Client]
  Client --> CloneClient[cloneClient(): Client]
  Clone --> ClientCopy[Client copy]
  CloneClient --> ClientCopy
```

## Usage

```ts
import { Client } from './models/person/client.model';

const client = new Client();

const copiedClient = client.clone();
const copiedClientFromClientMethod = client.cloneClient();
```

## AI Coding Instructions

- Use `clone()` or `cloneClient()` when code needs a separate `Client` instance instead of mutating the original.
- Keep cloning behavior aligned between `clone()` and `cloneClient()` when changing the model.
- Check call sites before changing clone behavior, especially forms and state-management code that may depend on copied instances.

## Relationships

- IMPORTS → `Address`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `ClientService` — `Pams/Web/Pams.WebApp/Client/app/services/person/client.service.ts`:1
