# Duration

- [JSON representation](https://developers.google.com/payments/reseller/subscription/reference/rest/v1/Duration#SCHEMA_REPRESENTATION)
- [Unit](https://developers.google.com/payments/reseller/subscription/reference/rest/v1/Duration#Unit)

Describes the length of a period of a time.

| JSON representation |
|---|
| ``` { "unit": enum (`https://developers.google.com/payments/reseller/subscription/reference/rest/v1/Duration#Unit`), "count": integer } ``` |

| Fields ||
|---|---|
| `unit` | ``enum (`https://developers.google.com/payments/reseller/subscription/reference/rest/v1/Duration#Unit`)`` The unit used for the duration |
| `count` | `integer` number of duration units to be included. |

## Unit

Frequency of the period.

| Enums ||
|---|---|
| `UNIT_UNSPECIFIED` | Default value, reserved as an invalid or an unexpected value. |
| `MONTH` | Unit of a calendar month. |
| `DAY` | Unit of a day. |
| `HOUR` | Unit of an hour. It is used for testing. |