{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/super-payments/main/json-schema/super-payments-create-payment-method-request-dto-schema.json", "title": "CreatePaymentMethodRequestDto", "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/CreatePaymentMethodRequestDto", "type": "object", "properties": { "customerId": { "type": "string" }, "type": { "type": "string", "const": "CARD", "x-enumNames": [ "CARD" ] }, "usage": { "type": "string", "const": "OFF_SESSION", "x-enumNames": [ "OFF_SESSION" ] }, "metadata": { "type": [ "object", "null" ], "additionalProperties": { "type": "string", "pattern": "^[^\\r\\n\\t\\b\\f\\v]+$", "maxLength": 200 } } }, "required": [ "customerId", "type", "usage" ] }