{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/finbourne/json-schema/finbourne-resource-list-of-investment-account-schema.json",
  "title": "ResourceListOfInvestmentAccount",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/finbourne-openapi.yml#/components/schemas/ResourceListOfInvestmentAccount",
  "additionalProperties": false,
  "properties": {
    "values": {
      "items": {
        "$ref": "#/$defs/InvestmentAccount"
      },
      "type": "array"
    },
    "href": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "links": {
      "items": {
        "$ref": "#/$defs/Link"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "nextPage": {
      "type": [
        "string",
        "null"
      ]
    },
    "previousPage": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "values"
  ],
  "type": "object",
  "$defs": {
    "AccountHolder": {
      "additionalProperties": false,
      "description": "An Account Holder of an Investment Account.",
      "properties": {
        "key": {
          "description": "A client-defined key used to identify the Account Holder, unique within the Investment Account",
          "type": [
            "string",
            "null"
          ]
        },
        "scope": {
          "description": "The scope in which the Investor Record lies.",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Single Account Holder identifier that should target the desired Investor Record.",
          "type": [
            "object",
            "null"
          ]
        },
        "entityUniqueId": {
          "description": "The unique InvestorRecord entity identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "investorRecord": {
          "$ref": "#/$defs/InvestorRecord"
        }
      },
      "type": "object"
    },
    "AmortisationHorizon": {
      "additionalProperties": false,
      "description": "The redemption a bond's cost is amortised towards, chosen per tax lot by whether the lot is held at a premium\r\n(cost per unit above par) or a discount. Each value is one of Maturity, NextCall, NextPut or YieldToWorst and\r\ndefaults to Maturity. NextCall strikes a lot to its next call where the call price is below the lot's carrying\r\nvalue, else to maturity until that call passes, so a discount lot is never struck to a call at or above par.\r\nNextPut strikes to the next put at its price. YieldToWorst strikes to whichever call or the maturity gives the\r\nlowest yield from the lot's cost.",
      "properties": {
        "premium": {
          "description": "Available values: Maturity, NextCall, NextPut, YieldToWorst.",
          "type": [
            "string",
            "null"
          ]
        },
        "discount": {
          "description": "Available values: Maturity, NextCall, NextPut, YieldToWorst.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "CounterpartyRiskInformation": {
      "additionalProperties": false,
      "description": "In the event that the legal entity is a counterparty to an OTC transaction\r\n(as signatory to a counterparty agreement such as an ISDA 2002 Master Agreement),\r\nthis information would be needed for calculations\r\nsuch as Credit-Valuation-Adjustments and Debit-Valuation-Adjustments (CVA, DVA, XVA etc).",
      "properties": {
        "countryOfRisk": {
          "description": "The country to which one would naturally ascribe risk, typically the legal entity's country of registration. This can be used to infer funding currency and related market data in the absence of a specific preference.",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string"
        },
        "creditRatings": {
          "description": "",
          "items": {
            "$ref": "#/$defs/CreditRating"
          },
          "type": "array"
        },
        "industryClassifiers": {
          "description": "",
          "items": {
            "$ref": "#/$defs/IndustryClassifier"
          },
          "type": "array"
        }
      },
      "required": [
        "countryOfRisk",
        "creditRatings",
        "industryClassifiers"
      ],
      "type": "object"
    },
    "CreditRating": {
      "additionalProperties": false,
      "description": "Object describing a credit rating,\r\nwhich assesses the stability and credit worthiness of a legal entity\r\nand hence its likelihood of defaulting on its outstanding obligations (typically debt).",
      "properties": {
        "ratingSource": {
          "description": "The provider of the credit rating, which will typically be an agency such as Moody's or Standard and Poor.",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string"
        },
        "rating": {
          "description": "The credit rating provided by the rating source. This would expected to be consistent with the rating scheme of that agency/source.",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-+\\/]+$",
          "type": "string"
        }
      },
      "required": [
        "rating",
        "ratingSource"
      ],
      "type": "object"
    },
    "EntityIdentifier": {
      "additionalProperties": false,
      "description": "Dto to expose mapped keys to new standardised format",
      "properties": {
        "identifierScope": {
          "description": "The scope of the identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "identifierType": {
          "description": "The type of the identifier",
          "type": "string"
        },
        "identifierValue": {
          "description": "The value of the identifier",
          "type": "string"
        }
      },
      "required": [
        "identifierType",
        "identifierValue"
      ],
      "type": "object"
    },
    "FractionalUnitsTrueUpConfiguration": {
      "additionalProperties": false,
      "properties": {
        "fractionalUnitsHandling": {
          "description": "The fractional-units handling scheme for the portfolio's corporate-action processing. This can be: LotLevelRounding or CustodianLevelTrueUp. Defaults to LotLevelRounding, today's per-lot-only processing, if not specified. Available values: LotLevelRounding, CustodianLevelTrueUp.",
          "type": [
            "string",
            "null"
          ]
        },
        "nominatedSubHoldingKey": {
          "description": "The sub-holding key (from the 'Transaction' domain) that custodian-level fractional-units true-ups are booked to. The key must be one of the portfolio's sub-holding keys, must have a pre-defined property definition, and event processing never creates it.",
          "type": [
            "string",
            "null"
          ]
        },
        "nominatedSubHoldingKeyValue": {
          "description": "The value of the nominated sub-holding key under which the true-up holding is booked, for example the bucket that quarantines fractional rounding true-ups.",
          "maxLength": 512,
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "IndustryClassifier": {
      "additionalProperties": false,
      "description": "Object describing a particular industry classifier,\r\nwhich comprises a classification code and the name of the classification system to which the code belongs.",
      "properties": {
        "classificationSystemName": {
          "description": "The name of the classification system to which the classification code belongs (e.g. GICS). Available values: GICS2018.",
          "minLength": 1,
          "type": "string"
        },
        "classificationCode": {
          "description": "The specific industry classification code assigned to the legal entity.",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string"
        }
      },
      "required": [
        "classificationCode",
        "classificationSystemName"
      ],
      "type": "object"
    },
    "InstrumentEventConfiguration": {
      "additionalProperties": false,
      "properties": {
        "transactionTemplateScopes": {
          "items": {
            "type": "string"
          },
          "maxItems": 1,
          "type": [
            "array",
            "null"
          ]
        },
        "recipeId": {
          "$ref": "#/$defs/ResourceId"
        }
      },
      "type": "object"
    },
    "InvestmentAccount": {
      "additionalProperties": false,
      "description": "Representation of an Investment Account on the LUSID API",
      "properties": {
        "scope": {
          "description": "The scope in which the Investment Account lies.",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "Unique client-defined identifiers of the Investment Account.",
          "type": [
            "object",
            "null"
          ]
        },
        "displayName": {
          "description": "The display name of the Investment Account",
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "description": "The description of the Investment Account",
          "type": [
            "string",
            "null"
          ]
        },
        "accountType": {
          "description": "The type of the of the Investment Account.",
          "type": [
            "string",
            "null"
          ]
        },
        "accountHolders": {
          "description": "The Account Holders of the Investment Account.",
          "items": {
            "$ref": "#/$defs/AccountHolder"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "investmentPortfolios": {
          "description": "The Investment Portfolios of the Investment Account.",
          "items": {
            "$ref": "#/$defs/InvestmentPortfolio"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "lusidInvestmentAccountId": {
          "description": "The unique LUSID Investment Account Identifier of the Investment Account.",
          "type": [
            "string",
            "null"
          ]
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "A set of properties associated to the Investment Account.",
          "type": [
            "object",
            "null"
          ]
        },
        "relationships": {
          "description": "A set of relationships associated to the Investment Account.",
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "href": {
          "description": "The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "$ref": "#/$defs/Version"
        },
        "links": {
          "items": {
            "$ref": "#/$defs/Link"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "InvestmentPortfolio": {
      "additionalProperties": false,
      "description": "An Investment Portfolio of an Investment Account.",
      "properties": {
        "key": {
          "description": "A client-defined key used to identify the Investment Portfolio, unique within the Investment Account",
          "type": [
            "string",
            "null"
          ]
        },
        "scope": {
          "description": "The scope of the Investment Portfolio",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The code identifier of the Investment Portfolio",
          "type": [
            "object",
            "null"
          ]
        },
        "entityUniqueId": {
          "description": "The unique Portfolio entity identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "portfolio": {
          "$ref": "#/$defs/Portfolio"
        }
      },
      "type": "object"
    },
    "Investor": {
      "additionalProperties": false,
      "description": "Representation of an Investor on the LUSID API",
      "properties": {
        "investorType": {
          "description": "The type of the Investor",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The identifiers of the Investor",
          "type": [
            "object",
            "null"
          ]
        },
        "entityUniqueId": {
          "description": "The unique Investor entity identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "person": {
          "$ref": "#/$defs/Person"
        },
        "legalEntity": {
          "$ref": "#/$defs/LegalEntity"
        }
      },
      "type": "object"
    },
    "InvestorRecord": {
      "additionalProperties": false,
      "description": "Representation of an Investor Record on the LUSID API",
      "properties": {
        "scope": {
          "description": "The scope in which the Investor Record lies.",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "Unique client-defined identifiers of the Investor Record.",
          "type": [
            "object",
            "null"
          ]
        },
        "displayName": {
          "description": "The display name of the Investor Record",
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "description": "The description of the Investor Record",
          "type": [
            "string",
            "null"
          ]
        },
        "investor": {
          "$ref": "#/$defs/Investor"
        },
        "lusidInvestorRecordId": {
          "description": "The unique LUSID Investor Record Identifier of the Investor Record.",
          "type": [
            "string",
            "null"
          ]
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "A set of properties associated to the Investor Record.",
          "type": [
            "object",
            "null"
          ]
        },
        "relationships": {
          "description": "A set of relationships associated to the Investor Record.",
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "href": {
          "description": "The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "$ref": "#/$defs/Version"
        },
        "links": {
          "items": {
            "$ref": "#/$defs/Link"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "LabelValueSet": {
      "additionalProperties": false,
      "description": "The set of string labels in a multi-value property.",
      "properties": {
        "values": {
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "values"
      ],
      "type": "object"
    },
    "LegalEntity": {
      "additionalProperties": false,
      "description": "Representation of Legal Entity on LUSID API",
      "properties": {
        "displayName": {
          "description": "The display name of the Legal Entity",
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "description": "The description of the Legal Entity",
          "type": [
            "string",
            "null"
          ]
        },
        "href": {
          "description": "The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "lusidLegalEntityId": {
          "description": "The unique LUSID Legal Entity Identifier of the Legal Entity.",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "Unique client-defined identifiers of the Legal Entity.",
          "type": [
            "object",
            "null"
          ]
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "A set of properties associated to the Legal Entity.",
          "type": [
            "object",
            "null"
          ]
        },
        "relationships": {
          "description": "A set of relationships associated to the Legal Entity.",
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "counterpartyRiskInformation": {
          "$ref": "#/$defs/CounterpartyRiskInformation"
        },
        "version": {
          "$ref": "#/$defs/Version"
        },
        "links": {
          "items": {
            "$ref": "#/$defs/Link"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "Link": {
      "additionalProperties": false,
      "properties": {
        "relation": {
          "type": "string"
        },
        "href": {
          "format": "uri",
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "method": {
          "type": "string"
        }
      },
      "required": [
        "href",
        "method",
        "relation"
      ],
      "type": "object"
    },
    "LusidUniqueId": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "description": "The type for the LUSID unique id, this will depend on the type of entity found, for instance 'Instrument' would have a value of 'LusidInstrumentId'",
          "minLength": 1,
          "type": "string"
        },
        "value": {
          "description": "The value for the LUSID unique id",
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "type",
        "value"
      ],
      "type": "object"
    },
    "MetricValue": {
      "additionalProperties": false,
      "properties": {
        "value": {
          "description": "The numerical value of the property.",
          "format": "double",
          "type": "number"
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "Person": {
      "additionalProperties": false,
      "properties": {
        "displayName": {
          "description": "The display name of the Person",
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "description": "The description of the Person",
          "type": [
            "string",
            "null"
          ]
        },
        "href": {
          "description": "The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "lusidPersonId": {
          "description": "The unique LUSID Person Identifier of the Person.",
          "type": [
            "string",
            "null"
          ]
        },
        "identifiers": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "Unique client-defined identifiers of the Person.",
          "type": [
            "object",
            "null"
          ]
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "A set of properties associated to the Person. There can be multiple properties associated with a property key.",
          "type": [
            "object",
            "null"
          ]
        },
        "relationships": {
          "description": "A set of relationships associated to the Person.",
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "version": {
          "$ref": "#/$defs/Version"
        },
        "links": {
          "items": {
            "$ref": "#/$defs/Link"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "Portfolio": {
      "additionalProperties": false,
      "description": "A portfolio of a particular type.",
      "properties": {
        "href": {
          "description": "The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "$ref": "#/$defs/ResourceId"
        },
        "type": {
          "description": "The type of the portfolio. Available values: Transaction, Reference, DerivedTransaction, SimplePosition, Composite.",
          "enum": [
            "Transaction",
            "Reference",
            "DerivedTransaction",
            "SimplePosition",
            "Composite"
          ],
          "type": "string"
        },
        "displayName": {
          "description": "The name of the portfolio.",
          "minLength": 1,
          "type": "string"
        },
        "description": {
          "description": "The long form description of the portfolio.",
          "type": [
            "string",
            "null"
          ]
        },
        "created": {
          "description": "The effective datetime at which the portfolio was created. No transactions or constituents can be added to the portfolio before this date.",
          "format": "date-time",
          "type": "string"
        },
        "enablementDate": {
          "description": "The effective datetime from which instrument events and corporate actions are generated and applied to the portfolio. Transactions and holdings booked to the portfolio contribute to holdings, valuations and other computed results from its creation date whatever the enablement date. Defaults to the portfolio's creation date when not explicitly set.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "parentPortfolioId": {
          "$ref": "#/$defs/ResourceId"
        },
        "parentPortfolioIds": {
          "description": "The scope and code of each portfolio this portfolio takes its contents from: the parent of a derived transaction portfolio, or the constituents of a composite portfolio at the effective date. Empty for a portfolio with no parent.",
          "items": {
            "$ref": "#/$defs/ResourceId"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "version": {
          "$ref": "#/$defs/Version"
        },
        "stagedModifications": {
          "$ref": "#/$defs/StagedModificationsInfo"
        },
        "isDerived": {
          "description": "Whether or not this is a derived portfolio.",
          "type": "boolean"
        },
        "baseCurrency": {
          "description": "The base currency of the portfolio.",
          "type": [
            "string",
            "null"
          ]
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "The requested portfolio properties. These will be from the 'Portfolio' domain.",
          "type": [
            "object",
            "null"
          ]
        },
        "relationships": {
          "description": "A set of relationships associated to the portfolio.",
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "instrumentScopes": {
          "description": "The instrument scope resolution strategy of this portfolio.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "accountingMethod": {
          "description": "The AccountingMethod used for the portfolio. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency.",
          "enum": [
            "Default",
            "AverageCost",
            "FirstInFirstOut",
            "LastInFirstOut",
            "HighestCostFirst",
            "LowestCostFirst",
            "ProRateByUnits",
            "ProRateByCost",
            "ProRateByCostPortfolioCurrency",
            "IntraDayThenFirstInFirstOut",
            "LongTermHighestCostFirst",
            "LongTermHighestCostFirstPortfolioCurrency",
            "HighestCostFirstPortfolioCurrency",
            "LowestCostFirstPortfolioCurrency",
            "MaximumLossMinimumGain",
            "MaximumLossMinimumGainPortfolioCurrency"
          ],
          "type": "string"
        },
        "amortisationMethod": {
          "description": "The amortisation method used by the portfolio for the calculation. Available values: NoAmortisation, StraightLine, EffectiveYield, StraightLineSettlementDate, EffectiveYieldSettlementDate.",
          "type": [
            "string",
            "null"
          ]
        },
        "transactionTypeScope": {
          "description": "The scope of the transaction types.",
          "type": [
            "string",
            "null"
          ]
        },
        "cashGainLossCalculationDate": {
          "description": "The scope of the transaction types.",
          "type": [
            "string",
            "null"
          ]
        },
        "instrumentEventConfiguration": {
          "$ref": "#/$defs/InstrumentEventConfiguration"
        },
        "amortisationRuleSetId": {
          "$ref": "#/$defs/ResourceId"
        },
        "taxRuleSetScope": {
          "description": "The scope of the tax rule sets for this portfolio.",
          "type": [
            "string",
            "null"
          ]
        },
        "settlementConfiguration": {
          "$ref": "#/$defs/PortfolioSettlementConfiguration"
        },
        "transactionExclusionFilter": {
          "description": "A filter expression that identifies transactions to exclude when building the transaction portfolio's transactions and holdings. Transactions matching this filter are flagged as excluded.",
          "type": [
            "string",
            "null"
          ]
        },
        "taxLotSelectionCostBasis": {
          "description": "The cost figure that cost-referencing accounting methods evaluate when selecting tax lots for a disposal. This can be: Cost or AmortisedCost. Defaults to Cost if not specified. Supply Default to explicitly reset it; a reset or never-configured basis reads back as absent. Available values: Default, Cost, AmortisedCost.",
          "type": [
            "string",
            "null"
          ]
        },
        "fractionalUnitsTrueUpConfiguration": {
          "$ref": "#/$defs/FractionalUnitsTrueUpConfiguration"
        },
        "holdingsFungibility": {
          "description": "Whether the portfolio's holdings are fungible across the currencies of a currency group. This can be: Default or Enabled. Defaults to Default if not specified, which currently means holdings fungibility is not applied. Supply Default to explicitly reset it; a reset or never-configured flag reads back as absent. Available values: Default, Enabled.",
          "type": [
            "string",
            "null"
          ]
        },
        "chargeableGainsRegime": {
          "description": "The chargeable gains regime the portfolio is elected into. This can be: Default or UkChargeableGains. Defaults to Default if not specified, which means no chargeable gains pooling is applied. Under UkChargeableGains, in-scope holdings (equities, preferred shares, fund share classes and simple instruments) are depleted under the UK chargeable gains rules regardless of the accounting method on the portfolio, transaction or custodian account; other holdings use the portfolio's accounting method. Supply Default to explicitly reset it; a reset or never-configured regime reads back as absent. Available values: Default, UkChargeableGains.",
          "type": [
            "string",
            "null"
          ]
        },
        "amortisationHorizon": {
          "$ref": "#/$defs/AmortisationHorizon"
        },
        "whtParameters": {
          "$ref": "#/$defs/WhtParameters"
        },
        "timeZoneConventions": {
          "$ref": "#/$defs/PortfolioTimeZoneConventions"
        },
        "links": {
          "items": {
            "$ref": "#/$defs/Link"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "created",
        "displayName",
        "id",
        "type"
      ],
      "type": "object"
    },
    "PortfolioSettlementConfiguration": {
      "additionalProperties": false,
      "properties": {
        "stockSettlement": {
          "$ref": "#/$defs/SettlementConfigurationCategory"
        },
        "cashSettlement": {
          "$ref": "#/$defs/SettlementConfigurationCategory"
        },
        "deferredCashReceipt": {
          "$ref": "#/$defs/SettlementConfigurationCategory"
        },
        "transactionMatchingAlternativeId": {
          "$ref": "#/$defs/TransactionMatchingAlternativeId"
        }
      },
      "type": "object"
    },
    "PortfolioTimeZoneConventions": {
      "additionalProperties": false,
      "properties": {
        "primaryTimeZone": {
          "description": "The IANA time zone identifier (e.g. 'America/New_York', 'Asia/Hong_Kong') used to determine local midnight when extending valuation lookback windows. When set, the lookback floors to midnight in this zone rather than UTC midnight. Accepts any zone in the IANA Time Zone Database (TZDB). Supply 'UTC' or 'Etc/UTC' to explicitly keep UTC behaviour.",
          "maxLength": 64,
          "minLength": 0,
          "type": "string"
        },
        "startOfDay": {
          "description": "Reserved for future use. The cut label or time-of-day string representing the start of the business day in this portfolio's time zone.",
          "maxLength": 64,
          "minLength": 0,
          "type": [
            "string",
            "null"
          ]
        },
        "primaryMarketOpen": {
          "description": "Reserved for future use. The cut label or time-of-day string representing the primary market open for this portfolio's time zone.",
          "maxLength": 64,
          "minLength": 0,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "primaryTimeZone"
      ],
      "type": "object"
    },
    "Property": {
      "additionalProperties": false,
      "properties": {
        "key": {
          "description": "The key of the property. This takes the format {domain}/{scope}/{code} e.g. 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.",
          "type": "string"
        },
        "value": {
          "$ref": "#/$defs/PropertyValue"
        },
        "effectiveFrom": {
          "description": "The effective datetime from which the property is valid.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "effectiveUntil": {
          "description": "The effective datetime until which the property is valid. If not supplied this will be valid indefinitely, or until the next 'effectiveFrom' datetime of the property.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "referenceData": {
          "additionalProperties": {
            "$ref": "#/$defs/PropertyReferenceDataValue"
          },
          "description": "The ReferenceData linked to the value of the property. The ReferenceData is taken from the DataType on the PropertyDefinition that defines the property.",
          "readOnly": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "key"
      ],
      "type": "object"
    },
    "PropertyReferenceDataValue": {
      "additionalProperties": false,
      "description": "The ReferenceData relevant to the property. The ReferenceData is taken from the DataType on the PropertyDefinition that defines the Property.\r\nOnly ReferenceData where the ReferenceData value matches the Property value is included.",
      "properties": {
        "stringValue": {
          "maxLength": 512,
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "numericValue": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "PropertyValue": {
      "additionalProperties": false,
      "description": "The value of the property.",
      "properties": {
        "labelValue": {
          "description": "The text value of a property defined as having the 'Label' type.",
          "type": [
            "string",
            "null"
          ]
        },
        "metricValue": {
          "$ref": "#/$defs/MetricValue"
        },
        "labelValueSet": {
          "$ref": "#/$defs/LabelValueSet"
        }
      },
      "type": "object"
    },
    "RelatedEntity": {
      "additionalProperties": false,
      "description": "Information about the other related entity in the relationship",
      "properties": {
        "entityType": {
          "description": "The type of the entity.",
          "minLength": 1,
          "type": "string"
        },
        "entityId": {
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The identifier of the other related entity in the relationship. It contains 'scope' and 'code' as keys for identifiers of a Portfolio or Portfolio Group, or 'idTypeScope', 'idTypeCode', 'code' as keys for identifiers of a Person or Legal entity, or 'scope', 'identifierType', 'identifierValue' as keys for identifiers of an Instrument",
          "type": "object"
        },
        "displayName": {
          "description": "The display name of the entity.",
          "minLength": 1,
          "type": "string"
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/$defs/Property"
          },
          "description": "The properties of the entity. This field is empty until further notice.",
          "type": [
            "object",
            "null"
          ]
        },
        "scope": {
          "description": "The scope of the identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "lusidUniqueId": {
          "$ref": "#/$defs/LusidUniqueId"
        },
        "identifiers": {
          "description": "The identifiers of the related entity in the relationship.",
          "items": {
            "$ref": "#/$defs/EntityIdentifier"
          },
          "type": "array"
        },
        "href": {
          "description": "The link to the entity.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "displayName",
        "entityId",
        "entityType",
        "identifiers"
      ],
      "type": "object"
    },
    "Relationship": {
      "additionalProperties": false,
      "description": "Representation of a Relationship between a requested entity with the stated entity as RelatedEntityId",
      "properties": {
        "version": {
          "$ref": "#/$defs/Version"
        },
        "relationshipDefinitionId": {
          "$ref": "#/$defs/ResourceId"
        },
        "relatedEntity": {
          "$ref": "#/$defs/RelatedEntity"
        },
        "traversalDirection": {
          "description": "Direction of relationship between the requested entity and related entity. This can be 'In' or 'Out'. Read more about relationships traversal direction in LUSID Knowledge Base here https://support.lusid.com/docs/creating-relationships-between-certain-types-of-entity.",
          "minLength": 1,
          "type": "string"
        },
        "traversalDescription": {
          "description": "Description of the relationship based on relationship's traversal direction. If 'TraversalDirection' is 'Out', this description would be 'OutwardDescription' from the associated relationship definition. If 'TraversalDirection' is 'In', this description would be 'InwardDescription' from the associated relationship definition.",
          "minLength": 1,
          "type": "string"
        },
        "effectiveFrom": {
          "description": "The effective datetime from which the relationship is valid.",
          "format": "date-time",
          "type": "string"
        },
        "effectiveUntil": {
          "description": "The effective datetime until which the relationship is valid. If no future deletions are present or an effective until has not been set for the relationship, this will be indefinite and represented by the maximum date.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "relatedEntity",
        "relationshipDefinitionId",
        "traversalDescription",
        "traversalDirection"
      ],
      "type": "object"
    },
    "ResourceId": {
      "additionalProperties": false,
      "description": "Identifiers of an entity",
      "properties": {
        "scope": {
          "description": "The scope used to identify an entity",
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "code": {
          "description": "The code used to identify an entity",
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "code",
        "scope"
      ],
      "type": "object"
    },
    "SettlementConfigurationCategory": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "description": "The method of settlement for the movements of the relevant type(s). A value of Instructed means that such movements can only be settled with a SettlementInstruction. A value of Automatic means that such movements will settle automatically but a SettlementInstruction will still override automatic settlement. Available values: Automatic, Instructed.",
          "type": [
            "string",
            "null"
          ]
        },
        "calculateInstructionToPortfolioRate": {
          "description": "An optional flag that allows for the calculation of the instruction to portfolio rate for instructions with settlement category CashSettlement or DeferredCashReceipt, if it is not provided on the settlement instruction. Defaults to false if not specified.",
          "type": "boolean"
        },
        "calculateInLieuSettlementAmount": {
          "description": "An optional flag that allows for the calculation of the in lieu amount for instructions with settlement category CashSettlement or DeferredCashReceipt, if it is not provided on the settlement instruction. Defaults to false if not specified.",
          "type": "boolean"
        },
        "methodOverride": {
          "$ref": "#/$defs/SettlementConfigurationMethodOverride"
        },
        "calculateTradeDateToSettlementFxPnL": {
          "description": "An optional flag that allows for the calculation of the in lieu amount for instructions with settlement category CashSettlement or DeferredCashReceipt, if it is not provided on the settlement instruction. Defaults to false if not specified.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "SettlementConfigurationMethodOverride": {
      "additionalProperties": false,
      "properties": {
        "propertyKey": {
          "description": "Property Key to override the settlement method. Allowed values: 'Automatic', 'Instructed' and 'Default', property key must be in the 'Transaction' domain. For a derived property keys, the derivation formula should resolve one of the of the allowed values. 'Default' will be treated the same as no or an invalid derived value, will fall back to use the regular settlement method.",
          "type": "string"
        }
      },
      "required": [
        "propertyKey"
      ],
      "type": "object"
    },
    "StagedModificationsInfo": {
      "additionalProperties": false,
      "description": "The staged modifications metadata.",
      "properties": {
        "countPending": {
          "description": "The number of staged modifications for the entity with a status of Pending for the requested asAt.",
          "format": "int32",
          "type": "integer"
        },
        "hrefPending": {
          "description": "Link to the list staged modifications endpoint, filtered by entityType, entityUniqueId and status (= Pending).",
          "format": "uri",
          "type": "string"
        },
        "idsPreviewed": {
          "description": "An array of the ids of any StagedModifications being previewed.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "countPending",
        "hrefPending"
      ],
      "type": "object"
    },
    "TransactionMatchingAlternativeId": {
      "additionalProperties": false,
      "properties": {
        "propertyKey": {
          "description": "An property key (from the 'Transaction' domain) that can be used as an alternative to TransactionId when matching transactions to settlement instructions. This property must be pre-defined and must be present on the transaction in order to be used for matching.",
          "type": "string"
        }
      },
      "required": [
        "propertyKey"
      ],
      "type": "object"
    },
    "Version": {
      "additionalProperties": false,
      "description": "The version metadata.",
      "properties": {
        "effectiveFrom": {
          "description": "The effective datetime at which this version became valid. Only applies when a single entity is being interacted with.",
          "format": "date-time",
          "type": "string"
        },
        "asAtDate": {
          "description": "The asAt datetime at which the data was committed to LUSID.",
          "format": "date-time",
          "type": "string"
        },
        "asAtCreated": {
          "description": "The asAt datetime at which the entity was first created in LUSID.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "userIdCreated": {
          "description": "The unique id of the user who created the entity.",
          "type": [
            "string",
            "null"
          ]
        },
        "requestIdCreated": {
          "description": "The unique request id of the command that created the entity.",
          "type": [
            "string",
            "null"
          ]
        },
        "reasonCreated": {
          "description": "The reason for an entity creation.",
          "type": [
            "string",
            "null"
          ]
        },
        "asAtModified": {
          "description": "The asAt datetime at which the entity (including its properties) was last updated in LUSID.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "userIdModified": {
          "description": "The unique id of the user who last updated the entity (including its properties) in LUSID.",
          "type": [
            "string",
            "null"
          ]
        },
        "requestIdModified": {
          "description": "The unique request id of the command that last updated the entity (including its properties) in LUSID.",
          "type": [
            "string",
            "null"
          ]
        },
        "reasonModified": {
          "description": "The reason for an entity modification.",
          "type": [
            "string",
            "null"
          ]
        },
        "asAtVersionNumber": {
          "description": "The integer version number for the entity (the entity was created at version 1)",
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "entityUniqueId": {
          "description": "The unique id of the entity",
          "type": [
            "string",
            "null"
          ]
        },
        "stagedModificationIdModified": {
          "description": "The ID of the staged change that resulted in the most recent modification.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "asAtDate",
        "effectiveFrom"
      ],
      "type": "object"
    },
    "WhtParameters": {
      "additionalProperties": false,
      "properties": {
        "whtConfig": {
          "$ref": "#/$defs/ResourceId"
        },
        "taxCountry": {
          "description": "The holder's country of tax residence, matched against the taxCountry field of the rate datasets.",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string"
        },
        "profileType": {
          "description": "The holder's tax profile, matched against the profileType field of the rate datasets.",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string"
        }
      },
      "required": [
        "profileType",
        "taxCountry",
        "whtConfig"
      ],
      "type": "object"
    }
  }
}