{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/super-payments/main/json-schema/super-payments-payment-method-response-dto-schema.json",
  "title": "PaymentMethodResponseDto",
  "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/PaymentMethodResponseDto",
  "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"
  ]
}