{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/terminal-instalment-schema.json",
  "title": "Instalment",
  "description": "Instalment schema from Adyen API",
  "type": "object",
  "properties": {
    "InstalmentType": {
      "$ref": "#/components/schemas/InstalmentType"
    },
    "SequenceNumber": {
      "type": "integer"
    },
    "PlanID": {
      "type": "string",
      "pattern": "^.+$"
    },
    "Period": {
      "type": "integer"
    },
    "PeriodUnit": {
      "$ref": "#/components/schemas/PeriodUnit"
    },
    "FirstPaymentDate": {
      "type": "string",
      "format": "date"
    },
    "TotalNbOfPayments": {
      "type": "integer"
    },
    "CumulativeAmount": {
      "type": "number",
      "maximum": 99999999.999999,
      "minimum": 0
    },
    "FirstAmount": {
      "type": "number",
      "maximum": 99999999.999999,
      "minimum": 0
    },
    "Charges": {
      "type": "number",
      "maximum": 99999999.999999,
      "minimum": 0
    }
  }
}