Adyen · Schema

Duration

PaymentsFinancial ServicesFintech

Properties

Name Type Description
unit string The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months**
value integer The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months.
View JSON Schema on GitHub

JSON Schema

adyen-duration-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Duration",
  "title": "Duration",
  "properties": {
    "unit": {
      "description": "The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**.\n\nPossible values: **minutes**, **hours**, **days**, **weeks**, or **months**",
      "enum": [
        "days",
        "hours",
        "minutes",
        "months",
        "weeks"
      ],
      "type": "string"
    },
    "value": {
      "description": "The length of time by the unit. For example, 5 days.\n\nThe maximum duration is 90 days or an equivalent in other units. For example, 3 months.",
      "format": "int32",
      "type": "integer"
    }
  },
  "type": "object"
}