{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/recurring-permit-restriction-schema.json",
  "title": "PermitRestriction",
  "description": "PermitRestriction schema from Adyen API",
  "type": "object",
  "properties": {
    "maxAmount": {
      "description": "The total sum amount of one or more payments made using this permit may not exceed this amount if set.",
      "$ref": "#/components/schemas/Amount"
    },
    "singleTransactionLimit": {
      "description": "The amount of any single payment using this permit may not exceed this amount if set.",
      "$ref": "#/components/schemas/Amount"
    },
    "singleUse": {
      "description": "Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed.",
      "type": "boolean"
    }
  }
}