{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/recurring-permit-schema.json",
  "title": "Permit",
  "description": "Permit schema from Adyen API",
  "type": "object",
  "properties": {
    "partnerId": {
      "description": "Partner ID (when using the permit-per-partner token sharing model).",
      "type": "string"
    },
    "profileReference": {
      "description": "The profile to apply to this permit (when using the shared permits model).",
      "type": "string"
    },
    "restriction": {
      "description": "Permit level restriction overrides.",
      "$ref": "#/components/schemas/PermitRestriction"
    },
    "resultKey": {
      "description": "The key to link permit requests to permit results.",
      "type": "string"
    },
    "validTillDate": {
      "description": "The expiry date for this permit.",
      "format": "date-time",
      "type": "string"
    }
  }
}