{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/studiomeyer-academy/json-schema/studiomeyer-academy-checkout-create-schema.json",
  "title": "CheckoutCreate",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/studiomeyer-academy-openapi.json#/components/schemas/CheckoutCreate",
  "type": "object",
  "properties": {
    "line_items": {
      "minItems": 1,
      "maxItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "name": {
            "type": "string",
            "maxLength": 240
          },
          "unit_amount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "currency": {
      "type": "string",
      "pattern": "^[a-z]{3}$"
    },
    "capabilities": {
      "type": "object",
      "properties": {},
      "additionalProperties": {}
    },
    "buyer": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string",
          "maxLength": 200
        },
        "last_name": {
          "type": "string",
          "maxLength": 200
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        }
      },
      "additionalProperties": false
    },
    "locale": {
      "type": "string",
      "enum": [
        "de",
        "en",
        "es"
      ]
    }
  },
  "required": [
    "line_items",
    "currency",
    "capabilities"
  ],
  "additionalProperties": false
}