{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/super-payments/main/json-schema/super-payments-customer20260401-response-dto-schema.json",
  "title": "Customer20260401ResponseDto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/super-payments-customer-api-openapi.yml#/components/schemas/Customer20260401ResponseDto",
  "type": "object",
  "properties": {
    "id": {},
    "externalReference": {
      "type": "string"
    },
    "paymentMethods": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {},
          "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",
          "type",
          "usage",
          "status",
          "metadata",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "brandId": {
      "type": "string",
      "format": "uuid"
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ]
    },
    "emailAddress": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "phoneNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {},
    "updatedAt": {}
  },
  "required": [
    "id",
    "externalReference",
    "paymentMethods",
    "metadata",
    "brandId",
    "firstName",
    "lastName",
    "emailAddress",
    "phoneNumber",
    "createdAt",
    "updatedAt"
  ]
}