{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.product.common.settlement",
  "type": "object",
  "title": "AssetFlow",
  "description": "Specifies an asset flow, i.e. the outcome of either of computation (e.g. interest accrual) or an assessment of some sort. The asset flow can then be turned into an asset transfer artefact to be used as the input to a payment system or the outcome of it. The associated globalKey denotes the ability to associate a hash value to the AssetFlow instantiations for the purpose of model cross-referencing, in support of functionality such as the event effect and the lineage.",
  "properties": {
    "quantity": {
      "description": "Represents the amount of the asset to be transferred. The cashflow amount is always a positive number, as the cashflow direction is implied by the payer/receiver attribute.",
      "$ref": "cdm-base-math-NonNegativeQuantity.schema.json"
    },
    "asset": {
      "description": "Represents the object that is subject to the transfer, it could be an asset or a reference.",
      "$ref": "cdm-base-staticdata-asset-common-Asset.schema.json"
    },
    "settlementDate": {
      "description": "Represents the date on which the transfer to due.",
      "$ref": "cdm-base-datetime-AdjustableOrAdjustedOrRelativeDate.schema.json"
    },
    "paymentDiscounting": {
      "description": "FpML specifies the FpML PaymentDiscounting.model group for representing the discounting elements that can be associated with a payment.",
      "$ref": "cdm-product-common-settlement-PaymentDiscounting.schema.json"
    },
    "payerReceiver": {
      "description": "Specifies who pays / receives the asset flow, through a normalised Party1 / Party2 enumerator.",
      "$ref": "cdm-base-staticdata-party-PayerReceiver.schema.json"
    },
    "assetFlowType": {
      "description": "Type of asset flow corresponding to a scheduled event.",
      "$ref": "cdm-product-common-settlement-ScheduledTransferEnum.schema.json"
    }
  },
  "required": [
    "payerReceiver"
  ]
}
