{
  "definitions": {
    "Contract": {
      "properties": {
        "finance": {
          "title": "Finance",
          "description": "Information about financing arrangements for this contract.",
          "type": "array",
          "items": {
            "$ref": "#/definitions/Finance"
          },
          "uniqueItems": true,
          "minItems": 1
        }
      }
    },
    "Budget": {
      "properties": {
        "finance": {
          "title": "Finance",
          "description": "Information about financing arrangements for a future contracting process.",
          "type": "array",
          "items": {
            "$ref": "#/definitions/Finance"
          },
          "uniqueItems": true,
          "minItems": 1
        }
      }
    },
    "Finance": {
      "title": "Financing arrangement",
      "description": "An arrangement between two parties for raising money.",
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "title": "ID",
          "description": "An identifier for this financing arrangement.",
          "type": "string",
          "minLength": 1
        },
        "title": {
          "title": "Title",
          "description": "A short title for this financing arrangement.",
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "description": {
          "title": "Description",
          "description": "A short description of this financing arrangement. This may include details of service fees, commitment fees, lender rights, step in arrangements, exchange rate guarantees, and for syndicated loans, details of syndication and any members of the syndicate.",
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "value": {
          "title": "Value",
          "description": "The total value of this finance.",
          "$ref": "#/definitions/Value"
        },
        "financingParty": {
          "title": "Financing organization",
          "description": "The organization providing this financing arrangement.",
          "$ref": "#/definitions/OrganizationReference"
        },
        "financingPartyType": {
          "title": "Financing organization type",
          "description": "The type of the financing organization, from the closed financingPartyType codelist.",
          "type": [
            "string",
            "null"
          ],
          "codelist": "financingPartyType.csv",
          "openCodelist": false,
          "enum": [
            "institutional",
            "commercial",
            "bilateral",
            "multilateral",
            "vendor",
            "other",
            null
          ]
        },
        "source": {
          "title": "Funding source",
          "description": "The source of funds for this financing arrangement. For example, the Green Climate Fund.",
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "assetClass": {
          "title": "Asset class",
          "description": "The asset classes used in this financing arrangement, from the closed assetClass codelist.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "enum": [
              "debt",
              "equity"
            ],
            "minLength": 1
          },
          "codelist": "assetClass.csv",
          "openCodelist": false,
          "minItems": 1,
          "uniqueItems": true
        },
        "type": {
          "title": "Type",
          "description": "The type of this financing arrangement, from the closed financingArrangementType codelist.",
          "type": [
            "string",
            "null"
          ],
          "codelist": "financingArrangementType.csv",
          "openCodelist": false,
          "enum": [
            "bond",
            "loan",
            "hybrid",
            "shares.listed",
            "shares.unlisted",
            "grant",
            "guarantee",
            null
          ]
        },
        "repaymentPriority": {
          "title": "Repayment priority",
          "description": "The order in which the debt in this financing arrangement will be repaid in case of default, from the closed debtRepaymentPriority codelist.",
          "type": [
            "string",
            "null"
          ],
          "codelist": "debtRepaymentPriority.csv",
          "openCodelist": false,
          "enum": [
            "senior",
            "subordinated",
            null
          ]
        },
        "concessional": {
          "title": "Concessional",
          "description": "Whether this financing arrangement is provided below market rate in order to accelerate climate or development objectives. Also called soft financing and subsidized funding.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "resultsBased": {
          "title": "Results based",
          "description": "Whether payments under this financing arrangement are contingent on the achievement of pre-defined results.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "period": {
          "title": "Finance period",
          "description": "The period covered by this financing arrangement. Also called maturity.",
          "$ref": "#/definitions/Period"
        },
        "paymentPeriod": {
          "title": "Payment period",
          "description": "The period over which the borrower in this financing arrangement is obliged to make payments.",
          "$ref": "#/definitions/Period"
        },
        "paymentFrequency": {
          "title": "Payment frequency (days)",
          "description": "The average payment frequency (in days) of this financing arrangement. For example, 365 for yearly, 30.4 for monthly, or 1 for daily.",
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "interestRate": {
          "title": "Interest rate",
          "description": "The interest rate associated with this finance.",
          "type": "object",
          "properties": {
            "base": {
              "title": "Base",
              "description": "The variable to which an additional margin amount is added to get the interest amount. This can be specified as a fixed number, as a known variable (e.g. LIBOR or LIBOR+1%), or can be omitted if margin specifies the entire interest rate.",
              "type": [
                "string",
                "number",
                "null"
              ],
              "minLength": 1
            },
            "margin": {
              "title": "Margin",
              "description": "The variable added to the base to give the interest amount, expressed as a decimal (for example, 0.1) and not as a percentage (for example, 10).",
              "type": [
                "number",
                "null"
              ]
            },
            "fixed": {
              "title": "Fixed rate",
              "description": "A boolean field. If this interest rate of fixed, set to true. Otherwise, set to false.",
              "type": [
                "boolean",
                "null"
              ]
            },
            "notes": {
              "title": "Notes",
              "description": "Any explanatory notes concerning the interest rate.",
              "type": [
                "string",
                "null"
              ],
              "minLength": 1
            }
          },
          "minProperties": 1
        },
        "exchangeRateGuarantee": {
          "title": "Exchange rate guarantees",
          "description": "Whether there is an associated exchange rate guarantee with this source of finance.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "stepInRights": {
          "title": "Step in rights",
          "description": "Whether provision of this finance confers any step in rights to the financing organization.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "relatedLots": {
          "title": "Related lot(s)",
          "description": "The identifiers of the lots to which this financing arrangement relates.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "minLength": 1
          },
          "uniqueItems": true,
          "minItems": 1
        }
      },
      "minProperties": 1,
      "extension_explorer:source": {
        "identifier": "finance",
        "version": "master"
      }
    }
  }
}
