# Variable: order

```ts
const order: object & Typed<{
  items: readonly object[];
  note?: string;
  respondingTo?: string;
  total?: {
     amount: string;
     currency: string;
  };
}>;
```

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

An order for listings. Only the buyer changes it; the seller answers with
`std.order-update`s, so the two never edit the same record.

## Type Declaration

### description

```ts
readonly description: "An order for things listed: what, how many, for how much." = 'An order for things listed: what, how many, for how much.';
```

### links

```ts
readonly links: object;
```

#### links.about

```ts
readonly about: LinkDeclaration;
```

### name

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

### schema

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

#### schema.properties

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

#### schema.properties.items

```ts
readonly items: object;
```

#### schema.properties.items.items

```ts
readonly items: object;
```

#### schema.properties.items.items.properties

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

#### schema.properties.items.items.properties.price

```ts
readonly price: object & object;
```

##### Type Declaration

###### properties

```ts
properties: object;
```

###### properties.amount

```ts
amount: object;
```

###### properties.amount.maxLength

```ts
maxLength: ... = max;
```

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

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

###### properties.amount.type

```ts
type: ...;
```

###### properties.currency

```ts
currency: object;
```

###### properties.currency.maxLength

```ts
maxLength: ... = 3;
```

###### properties.currency.minLength

```ts
minLength: ... = 3;
```

###### properties.currency.type

```ts
type: ...;
```

###### required

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

###### type

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

###### x-kind

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

#### schema.properties.items.items.properties.quantity

```ts
readonly quantity: object;
```

#### schema.properties.items.items.properties.quantity.maximum?

```ts
maximum?: number = max;
```

#### schema.properties.items.items.properties.quantity.minimum

```ts
minimum: number = min;
```

#### schema.properties.items.items.properties.quantity.type

```ts
type: "integer";
```

#### schema.properties.items.items.properties.title

```ts
readonly title: object;
```

#### schema.properties.items.items.properties.title.maxLength

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

#### schema.properties.items.items.properties.title.minLength?

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

#### schema.properties.items.items.properties.title.type

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

#### schema.properties.items.items.required

```ts
readonly required: readonly ["title", "quantity"];
```

#### schema.properties.items.items.type

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

#### schema.properties.items.maxItems

```ts
readonly maxItems: 100 = 100;
```

#### schema.properties.items.minItems

```ts
readonly minItems: 1 = 1;
```

#### schema.properties.items.type

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

#### 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.respondingTo

```ts
readonly respondingTo: 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.total

```ts
readonly total: 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.required

```ts
readonly required: readonly ["items"];
```

#### schema.type

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

### title

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

### topics

```ts
readonly topics: readonly ["respondingTo"];
```
