{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pagopa/main/json-schema/pagopa-ciibans-response-schema.json",
  "title": "CIIbansResponse",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pagopa-backoffice-external-ec-openapi.yml#/components/schemas/CIIbansResponse",
  "required": [
    "ibans",
    "pageInfo"
  ],
  "type": "object",
  "properties": {
    "ibans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CIIbansResource"
      },
      "description": "list of IBANs"
    },
    "pageInfo": {
      "$ref": "#/$defs/PageInfo"
    }
  },
  "$defs": {
    "CIIbansResource": {
      "required": [
        "ciFiscalCode",
        "ciName",
        "iban",
        "status",
        "validityDate"
      ],
      "type": "object",
      "properties": {
        "ciFiscalCode": {
          "type": "string",
          "description": "Creditor Institution tax code"
        },
        "ciName": {
          "type": "string",
          "description": "Creditor Institution name"
        },
        "description": {
          "type": "string",
          "description": "description"
        },
        "iban": {
          "type": "string",
          "description": "iban"
        },
        "label": {
          "type": "string",
          "description": "label"
        },
        "status": {
          "type": "string",
          "description": "status"
        },
        "validityDate": {
          "type": "string",
          "description": "Activation Date",
          "format": "date-time"
        }
      },
      "description": "list of IBANs"
    },
    "PageInfo": {
      "required": [
        "limit",
        "page",
        "totalElements",
        "totalPages"
      ],
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "number of elements per page",
          "format": "int32"
        },
        "page": {
          "type": "integer",
          "description": "page number (0 is the first page)",
          "format": "int32"
        },
        "totalElements": {
          "type": "integer",
          "description": "total found elements",
          "format": "int64"
        },
        "totalPages": {
          "type": "integer",
          "description": "total number of pages",
          "format": "int64"
        }
      },
      "description": "Information about the pagination"
    }
  }
}