# Variable: settlement

```ts
const settlement: object & Typed<{
  amount: {
     amount: string;
     currency: string;
  };
  date?: string;
  from: string;
  note?: string;
  to: string;
}>;
```

Defined in: [packages/core/src/schemas/library/money.ts:63](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/library/money.ts#L63)

Money paid back between two people. Once written, who and how much stay as they are.

## Type Declaration

### description

```ts
readonly description: "Money paid back from one person to another." = 'Money paid back from one person to another.';
```

### name

```ts
readonly name: "std.settlement" = 'std.settlement';
```

### rules

```ts
readonly rules: object;
```

#### rules.fixed

```ts
readonly fixed: readonly ["from", "to", "amount"];
```

### schema

```ts
readonly schema: object;
```

#### schema.properties

```ts
readonly properties: object;
```

#### schema.properties.amount

```ts
readonly amount: object & object;
```

##### Type Declaration

###### properties

```ts
properties: object;
```

###### properties.amount

```ts
amount: object;
```

###### properties.amount.maxLength

```ts
maxLength: number = max;
```

###### properties.amount.minLength?

```ts
minLength?: number = min;
```

###### properties.amount.type

```ts
type: "string";
```

###### properties.currency

```ts
currency: object;
```

###### properties.currency.maxLength

```ts
maxLength: number = 3;
```

###### properties.currency.minLength

```ts
minLength: number = 3;
```

###### properties.currency.type

```ts
type: "string";
```

###### required

```ts
required: readonly ["amount", "currency"];
```

###### type

```ts
type: "object";
```

###### x-kind

```ts
readonly "x-kind": "money";
```

#### schema.properties.date

```ts
readonly date: object & object;
```

##### Type Declaration

###### maxLength

```ts
maxLength: number = 10;
```

###### minLength

```ts
minLength: number = 10;
```

###### type

```ts
type: "string";
```

###### x-kind

```ts
readonly "x-kind": "day";
```

#### schema.properties.from

```ts
readonly from: object & object;
```

##### Type Declaration

###### maxLength

```ts
maxLength: number = max;
```

###### minLength?

```ts
minLength?: number = min;
```

###### type

```ts
type: "string";
```

###### x-kind

```ts
readonly "x-kind": "did";
```

#### schema.properties.note

```ts
readonly note: object;
```

#### schema.properties.note.maxLength

```ts
maxLength: number = max;
```

#### schema.properties.note.minLength?

```ts
minLength?: number = min;
```

#### schema.properties.note.type

```ts
type: "string";
```

#### schema.properties.to

```ts
readonly to: object & object;
```

##### Type Declaration

###### maxLength

```ts
maxLength: number = max;
```

###### minLength?

```ts
minLength?: number = min;
```

###### type

```ts
type: "string";
```

###### x-kind

```ts
readonly "x-kind": "did";
```

#### schema.required

```ts
readonly required: readonly ["from", "to", "amount"];
```

#### schema.type

```ts
readonly type: "object" = 'object';
```

### title

```ts
readonly title: "Settlement" = 'Settlement';
```

### topics

```ts
readonly topics: readonly ["from", "to"];
```
