# OrderAlternative

> The `OrderAlternative` object.

Source: https://docs.gastrogate.io/docs/api/types/OrderAlternative

**Kind:** Objects

## Fields

### `id`

[`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)!

### `addonProduct`

[`OrderProduct`](https://docs.gastrogate.io/docs/api/types/OrderProduct.md)

### `alternativeGroup`

[`OrderAlternativeGroup`](https://docs.gastrogate.io/docs/api/types/OrderAlternativeGroup.md)

### `count`

[`Int`](https://docs.gastrogate.io/docs/api/types/Int.md)

This field will only be present if the alternative is a countable alternative. Otherwise it will be null.

### `isChosen`

[`Boolean`](https://docs.gastrogate.io/docs/api/types/Boolean.md)

For countable alternatives, this will be true if the count is greater than zero.

### `isDefault`

[`Boolean`](https://docs.gastrogate.io/docs/api/types/Boolean.md)

### `name`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

### `totalAmount`

[`Int53`](https://docs.gastrogate.io/docs/api/types/Int53.md)

The total amount paid for this alternative. Equal to addonProduct.price * count.

## How to get it

This type is returned by:

- [`OpenOrderBatchItem.alternatives`](https://docs.gastrogate.io/docs/api/types/OpenOrderBatchItem.md#alternatives) (field on [`OpenOrderBatchItem`](https://docs.gastrogate.io/docs/api/types/OpenOrderBatchItem.md))
- [`OpenOrderMergedItem.alternatives`](https://docs.gastrogate.io/docs/api/types/OpenOrderMergedItem.md#alternatives) (field on [`OpenOrderMergedItem`](https://docs.gastrogate.io/docs/api/types/OpenOrderMergedItem.md))
- [`OrderItem.alternatives`](https://docs.gastrogate.io/docs/api/types/OrderItem.md#alternatives) (field on [`OrderItem`](https://docs.gastrogate.io/docs/api/types/OrderItem.md))
