{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twtapi-com/json-schema/twtapi-com-create-order-request-schema.json",
  "title": "CreateOrderRequest",
  "description": "创建订单。\n\n安全提示：price 由客户端提交，服务端必须与 Plan 表的值比对后\n再落库，不能直接采信。",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twtapi-com-openapi.json#/components/schemas/CreateOrderRequest",
  "properties": {
    "plan_type": {
      "type": "string",
      "title": "Plan Type"
    },
    "plan_name": {
      "type": "string",
      "title": "Plan Name"
    },
    "price": {
      "type": "number",
      "title": "Price"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "usd"
    },
    "features": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Features",
      "default": []
    },
    "payment_method": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payment Method"
    },
    "billing_mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Mode"
    }
  },
  "type": "object",
  "required": [
    "plan_type",
    "plan_name",
    "price"
  ]
}