{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sharedforest-com/json-schema/sharedforest-com-price-quote-schema.json",
  "title": "PriceQuote",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sharedforest-com-openapi.json#/components/schemas/PriceQuote",
  "type": "object",
  "required": [
    "quantity",
    "unitAmount",
    "total",
    "currency",
    "termMonths",
    "discountPercent"
  ],
  "properties": {
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "unitAmount": {
      "type": "integer",
      "description": "Final price in euro cents per tree."
    },
    "total": {
      "type": "integer",
      "description": "Final price in euro cents."
    },
    "currency": {
      "type": "string",
      "const": "eur"
    },
    "termMonths": {
      "type": "integer",
      "const": 12
    },
    "discountPercent": {
      "type": "integer",
      "description": "Discount against the one-time 1-tree price, rounded."
    }
  }
}