{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.product.common.settlement",
  "type": "object",
  "title": "PriceQuantity",
  "description": "Defines a settlement as an exchange between two parties of a specified quantity of an asset (the quantity) against a specified quantity of another asset (the price). The settlement is optional and can be either cash or physical. In the case of non-cash products, the settlement of the price/quantity would not be specified here and instead would be delegated to the product mechanics, as parameterised by the price/quantity values.",
  "properties": {
    "price": {
      "description": "Specifies a price to be used for trade amounts and other purposes.",
      "type": "array",
      "items": {
        "$ref": "cdm-observable-asset-metafields-FieldWithMetaPriceSchedule.schema.json"
      },
      "minItems": 0
    },
    "quantity": {
      "description": "Specifies a quantity to be associated with an event, for example a trade amount.",
      "type": "array",
      "items": {
        "$ref": "cdm-base-math-metafields-FieldWithMetaNonNegativeQuantitySchedule.schema.json"
      },
      "minItems": 0
    },
    "observable": {
      "description": "Specifies the object to be observed for a price, it could be an asset or a reference. The cardinality is optional as some quantity / price cases have no observable (e.g. a notional and a fixed rate in a given currency).",
      "$ref": "cdm-observable-asset-Observable.schema.json"
    },
    "buyerSeller": {
      "description": "Defines the direction of the exchange. The convention is that the buyer receives the quantity / pays the price, whereas the seller receives the price / pays the quantity. Attribute is optional in case the price/quantity settlement is defined as part of the product mechanics.",
      "$ref": "cdm-base-staticdata-party-BuyerSeller.schema.json"
    },
    "settlementTerms": {
      "description": "Whether the settlement is cash or physical and the corresponding terms. Attribute is optional in case the price/quantity settlement is defined as part of the product mechanics.",
      "$ref": "cdm-product-common-settlement-SettlementTerms.schema.json"
    },
    "effectiveDate": {
      "description": "Specifies the date at which the price and quantity become effective. This day may be subject to adjustment in accordance with a business day convention, or could be specified as relative to a trade date, for instance. Optional cardinality, as the effective date is usually specified in the product definition, so it may only need to be specified as part of the PriceQuantity in an increase/decrease scenario for an existing trade.",
      "$ref": "cdm-base-datetime-AdjustableOrRelativeDate.schema.json"
    }
  }
}
