{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/super-payments/main/json-schema/super-payments-paginated-payment-method-list-output-schema.json",
  "title": "PaginatedPaymentMethodListOutput",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/super-payments-payment-methods-api-openapi.yml#/components/schemas/PaginatedPaymentMethodListOutput",
  "type": "object",
  "properties": {
    "pageInfo": {
      "type": "object",
      "properties": {
        "hasNextPage": {
          "type": "boolean"
        },
        "currentPage": {
          "type": "number"
        },
        "lastPage": {
          "type": "number"
        },
        "pageSize": {
          "type": "number"
        }
      },
      "required": [
        "hasNextPage",
        "currentPage",
        "lastPage",
        "pageSize"
      ]
    },
    "totalCount": {
      "type": "number"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {},
          "customerId": {},
          "type": {
            "type": "string",
            "const": "CARD",
            "x-enumNames": [
              "CARD"
            ]
          },
          "usage": {
            "type": "string",
            "const": "OFF_SESSION",
            "x-enumNames": [
              "OFF_SESSION"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "DISABLED",
              "ENABLED",
              "REQUIRES_ACTION"
            ],
            "x-enumNames": [
              "DISABLED",
              "ENABLED",
              "REQUIRES_ACTION"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string",
              "pattern": "^[^\\r\\n\\t\\b\\f\\v]+$",
              "maxLength": 200
            }
          },
          "createdAt": {},
          "updatedAt": {}
        },
        "required": [
          "id",
          "customerId",
          "type",
          "usage",
          "status",
          "metadata",
          "createdAt",
          "updatedAt"
        ]
      }
    }
  },
  "required": [
    "pageInfo",
    "totalCount",
    "items"
  ]
}