{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soeru-biz/json-schema/soeru-biz-generate-request-schema.json",
  "title": "GenerateRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soeru-biz-openapi.json#/components/schemas/GenerateRequest",
  "properties": {
    "order_id": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Order Id"
    },
    "customer_name": {
      "type": "string",
      "maxLength": 255,
      "title": "Customer Name",
      "default": ""
    },
    "customer_email": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Email"
    },
    "item_names": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 100,
      "title": "Item Names"
    },
    "total_price": {
      "type": "integer",
      "maximum": 999999999.0,
      "minimum": 0.0,
      "title": "Total Price",
      "default": 0
    },
    "is_gift": {
      "type": "boolean",
      "title": "Is Gift",
      "default": false
    },
    "delivery_context": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Delivery Context"
    },
    "repeat_count": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 9999.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Repeat Count"
    },
    "is_repeat": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Repeat"
    },
    "mode": {
      "type": "string",
      "pattern": "^(instant|reflective)$",
      "title": "Mode",
      "default": "instant"
    }
  },
  "type": "object",
  "required": [
    "order_id"
  ]
}