{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://autoagentprotocol.org/v4.0/schemas/trade-in-capabilities.schema.json",
  "title": "TradeInCapabilities",
  "description": "Actual trade_in_submit behavior of one deployment. Publish in the A2A AAP extension params.skills[\"trade_in_submit\"].capabilities and the MCP trade-in tool metadata; the same values apply to every binding.",
  "type": "object",
  "properties": {
    "instant_valuation": {
      "type": "boolean",
      "description": "true when the dealer can answer with status valued in the same call, typically through a valuation API. false means every accepted submission returns received, as when the dealer delivers it to a CRM as an ADF/XML lead."
    },
    "currencies": {
      "type": "array",
      "items": {
        "$ref": "./_primitives/currency.schema.json"
      },
      "minItems": 1,
      "uniqueItems": true,
      "default": [
        "USD"
      ],
      "description": "Currencies this skill accepts and returns. Omitted means only USD. Another vehicle currency returns SCHEMA_VALIDATION_FAILED naming /vehicle/currency."
    }
  },
  "required": [
    "instant_valuation"
  ],
  "additionalProperties": false
}
