{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-search-filter-product-match-data-schema.json",
  "title": "SearchFilterProductMatchData",
  "description": "Persisted match record for one of a user's saved search filters.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-search-filters-api-openapi.yml#/components/schemas/SearchFilterProductMatchData",
  "type": "object",
  "required": [
    "userId",
    "userSearchFilterId",
    "productListingId",
    "originEventId",
    "created",
    "updated"
  ],
  "properties": {
    "shippingMatchValuation": {
      "$ref": "#/$defs/ShippingMatchValuationData"
    },
    "userId": {
      "type": "string",
      "description": "Unique identifier of the user who owns the matched search filter."
    },
    "userSearchFilterId": {
      "type": "string",
      "description": "Unique identifier of the saved search filter that matched the product."
    },
    "userSearchFilterName": {
      "type": "string",
      "description": "Saved-search name captured with the match, when available."
    },
    "productListingId": {
      "type": "string",
      "description": "Unique internal identifier of the matched product."
    },
    "originEventId": {
      "type": "string",
      "description": "Product event that produced this match."
    },
    "feedback": {
      "type": "boolean",
      "description": "Optional feedback recorded by the user for this saved-search match."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When the search-filter product match was originally created (RFC3339 format)."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When the search-filter product match was last updated (RFC3339 format)."
    }
  },
  "$defs": {
    "CurrencyData": {
      "type": "string",
      "enum": [
        "EUR",
        "GBP",
        "USD",
        "AUD",
        "CAD",
        "NZD",
        "CNY",
        "BRL",
        "PLN",
        "TRY",
        "JPY",
        "CZK",
        "RUB",
        "AED",
        "SAR",
        "HKD",
        "SGD",
        "CHF",
        "ZAR",
        "SEK",
        "DKK",
        "NOK",
        "KRW",
        "INR",
        "TWD",
        "HUF",
        "RON",
        "MXN",
        "THB",
        "ARS"
      ],
      "description": "Supported currencies (ISO 4217 codes):\n- EUR: Euro\n- GBP: British Pound\n- USD: US Dollar\n- AUD: Australian Dollar\n- CAD: Canadian Dollar\n- NZD: New Zealand Dollar\n- CNY: Chinese Yuan\n- BRL: Brazilian Real\n- PLN: Polish Złoty\n- TRY: Turkish Lira\n- JPY: Japanese Yen\n- CZK: Czech Koruna\n- RUB: Russian Ruble\n- AED: UAE Dirham\n- SAR: Saudi Riyal\n- HKD: Hong Kong Dollar\n- SGD: Singapore Dollar\n- CHF: Swiss Franc\n- ZAR: South African Rand\n- SEK: Swedish Krona\n- DKK: Danish Krone\n- NOK: Norwegian Krone\n- KRW: South Korean Won\n- INR: Indian Rupee\n- TWD: New Taiwan Dollar\n- HUF: Hungarian Forint\n- RON: Romanian Leu\n- MXN: Mexican Peso\n- THB: Thai Baht\n- ARS: Argentine Peso (2 minor-unit decimal places)\n",
      "default": "EUR"
    },
    "ShippingMatchValuationData": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "interpretation",
        "fxRateId",
        "capturedAt",
        "maximumPerItem"
      ],
      "description": "Immutable shipping FX evaluation basis, separate from historical sale/asking-price valuation. Later captures, destination edits and filter edits do not rewrite it.",
      "properties": {
        "interpretation": {
          "type": "string",
          "enum": [
            "WHOLE_COUNTRY_PER_ITEM_FX_V1"
          ]
        },
        "fxRateId": {
          "type": "string"
        },
        "capturedAt": {
          "type": "string",
          "format": "date-time"
        },
        "maximumPerItem": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "amount",
            "currency"
          ],
          "properties": {
            "amount": {
              "type": "integer",
              "format": "int64",
              "minimum": 0,
              "maximum": 9223372036854775807
            },
            "currency": {
              "$ref": "#/$defs/CurrencyData"
            }
          }
        }
      }
    }
  }
}