{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/payments-installments-schema.json",
  "title": "Installments",
  "description": "Installments schema from Adyen API",
  "type": "object",
  "properties": {
    "plan": {
      "x-addedInVersion": "64",
      "description": "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values:\n* **regular**\n* **revolving**\n",
      "enum": [
        "regular",
        "revolving"
      ],
      "type": "string"
    },
    "value": {
      "description": "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.",
      "format": "int32",
      "type": "integer"
    }
  },
  "required": [
    "value"
  ]
}