{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.product.collateral",
  "type": "object",
  "title": "CheckEligibilityResult",
  "description": "Result for the CheckEligibilityByDetails and CheckEligibilityForProduct functions",
  "properties": {
    "isEligible": {
      "description": "a simple boolean which is set to true if the asset described in the EligibilityQuery input is eligible",
      "type": "boolean"
    },
    "matchingEligibleCriteria": {
      "description": "if there was a match, this will be the one or more criteria that were supplied in the EligbilityCollateralSpecification which matched with the query input",
      "type": "array",
      "items": {
        "$ref": "cdm-product-collateral-EligibleCollateralCriteria.schema.json"
      },
      "minItems": 0
    },
    "eligibilityQuery": {
      "description": "a copy of the input query that was checked against the eligible collateral specification",
      "$ref": "cdm-product-collateral-EligibilityQuery.schema.json"
    },
    "specification": {
      "description": "a copy of the input EligbilityCollateralSpecification that was checked against the query",
      "$ref": "cdm-product-collateral-EligibleCollateralSpecification.schema.json"
    }
  },
  "required": [
    "isEligible",
    "eligibilityQuery",
    "specification"
  ]
}
