{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/finbourne/json-schema/finbourne-allocation-event-schema.json",
  "title": "AllocationEvent",
  "description": "One economic event shared across the participants of an Allocation Map: raised as a draft, computed into\r\nper-investor shares, and finally booked.",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/finbourne-lusid-openapi.json#/components/schemas/AllocationEvent",
  "required": [
    "allocationMapId",
    "allocations",
    "amount",
    "currency",
    "eventDate",
    "eventType",
    "id",
    "status"
  ],
  "type": "object",
  "properties": {
    "href": {
      "type": [
        "string",
        "null"
      ],
      "description": "The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.",
      "format": "uri"
    },
    "id": {
      "$ref": "#/$defs/ResourceId"
    },
    "description": {
      "maxLength": 1024,
      "minLength": 0,
      "pattern": "^[\\s\\S]*$",
      "type": [
        "string",
        "null"
      ],
      "description": "A description of the Allocation Event."
    },
    "allocationMapId": {
      "$ref": "#/$defs/ResourceId"
    },
    "eventType": {
      "minLength": 1,
      "type": "string",
      "description": "The type of the event: CapitalCall, Distribution, FeeExpense, ValuationMove, Equalisation, RecallExpiry, Transfer, Default, Commitment or DealFunding. Selects the basis rule from the map. A recall is a CapitalCall with a Recall component. A Commitment event is not shared from a basis: its basis values are the signed commitment amounts per commitment line, and they must sum to the amount. Available values: CapitalCall, Distribution, FeeExpense, ValuationMove, Commitment, Equalisation, RecallExpiry, Transfer, Default, DealFunding."
    },
    "amount": {
      "type": "number",
      "description": "The total amount to be shared across the participants.",
      "format": "double"
    },
    "currency": {
      "maxLength": 5,
      "minLength": 0,
      "type": "string",
      "description": "The ISO 4217 code of the currency of the amount. The amount may not be finer than the currency's minor unit: two decimal places for most currencies, none for JPY, three for KWD and BHD. A code with no defined minor unit, such as XAU or XAG, is taken to have two decimal places."
    },
    "eventDate": {
      "type": "string",
      "description": "The date of the event: the point at which the map, its participants and their basis values are read.",
      "format": "date-time"
    },
    "status": {
      "minLength": 1,
      "type": "string",
      "description": "The lifecycle status of the event: Draft until its shares are computed, Computed once they are, Booking while its postings are being written, Booked once they all are, and Reversed once a booked event has been backed out. Available values: Draft, Computed, Booked, Booking, Reversed."
    },
    "basisSource": {
      "maxLength": 256,
      "minLength": 1,
      "type": [
        "string",
        "null"
      ],
      "description": "Where the basis values came from when the shares were last computed."
    },
    "allocations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AllocationMapAllocation"
      },
      "description": "The per-investor shares of the amount, as last computed."
    },
    "bookingReference": {
      "maxLength": 256,
      "minLength": 1,
      "type": [
        "string",
        "null"
      ],
      "description": "The reference under which the shares were posted. Set only once the event is booked."
    },
    "bookedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "The datetime at which the event was booked.",
      "format": "date-time"
    },
    "reallocationReason": {
      "maxLength": 1024,
      "minLength": 0,
      "pattern": "^[\\s\\S]*$",
      "type": [
        "string",
        "null"
      ],
      "description": "The reason given when the event was last recomputed, if it has been."
    },
    "components": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventComponent"
      },
      "description": "The parts the amount splits into, each shared on its own basis and booked to its own slot. The component amounts must sum to the event amount. Absent means the whole amount is one component: Investment for a CapitalCall, ROC for a Distribution."
    },
    "residuals": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventRoundingResidual"
      },
      "description": "The minor units left over when each component's shares were rounded to the currency, and which investor records took them."
    },
    "basisDiagnostics": {
      "$ref": "#/$defs/AllocationEventBasisDiagnostics"
    },
    "writtenIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "The identifiers of the postings the booking has written so far, in write order. Complete once the event is Booked."
    },
    "bookingErrors": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventBookingError"
      },
      "description": "The postings the booking could not write. Non-empty leaves the event in Booking; book again under the same reference to resume, or unbook to cancel what was written."
    },
    "warnings": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventBookingWarning"
      },
      "description": "The validation rules the booking was allowed to proceed through under the map's policy, for instance an OverCall on a map that warns rather than refuses. Kept for the life of the event."
    },
    "transfers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventTransfer"
      },
      "description": "For a Transfer event, the legs to book: each moves a fraction of one capital interest line to another. Required for a Transfer event and not allowed on any other type. The fractions out of one line must sum to at most one; the amount of a Transfer event is zero."
    },
    "equalisation": {
      "$ref": "#/$defs/AllocationEventEqualisation"
    },
    "useOfProceeds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventUseOfProceeds"
      },
      "description": "For a CapitalCall, what the call pays for: rows of purpose, deal and amount that sum to the call amount. An Investment row names a deal the vehicle has funded and is shared under that deal's participation, with each investor's share recorded as paid in for that deal; when the deal was funded from a facility the row repays the draw. Not allowed with components or on any other event type."
    },
    "dealFunding": {
      "$ref": "#/$defs/AllocationEventDealFunding"
    },
    "version": {
      "$ref": "#/$defs/Version"
    },
    "parentAllocationEventId": {
      "$ref": "#/$defs/ResourceId"
    },
    "replaces": {
      "$ref": "#/$defs/ResourceId"
    },
    "reversal": {
      "$ref": "#/$defs/AllocationEventReversal"
    },
    "noticeDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date the notice went to investors.",
      "format": "date-time"
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date the investors' cash is due.",
      "format": "date-time"
    },
    "settlementDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date the postings settle. Defaults to the event date.",
      "format": "date-time"
    },
    "receipts": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventReceipt"
      },
      "description": "The cash received against the event, in the order it was recorded."
    },
    "refundPayments": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventRefundPayment"
      },
      "description": "The refunds paid out against the event to investors whose receipts exceeded what they owed, in the order they were recorded."
    },
    "transferees": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventTransferee"
      },
      "description": "For a Transfer event, each transferee the booking gives a line: the line, and the investment account it is opened under. On a dry run, the account and line the booking would create; on a booking, what it created. Empty on every other event."
    },
    "defaultedEventId": {
      "$ref": "#/$defs/ResourceId"
    },
    "defaulters": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AllocationEventDefaulter"
      },
      "description": "For a Default event, the commitment lines that defaulted on the call, each named once, with the amount it defaulted on or none for its whole outstanding on the call. Several defaulters on one call go in one Default. Each line that the call called and that does not default is overcalled for the shortfall pro rata to its commitment, held at its uncalled commitment and at the map's defaultOvercallCapPct; excused lines and lines with a zero share on the call take none."
    },
    "uncoveredShortfall": {
      "type": [
        "number",
        "null"
      ],
      "description": "For a Default event, the part of the shortfall that no line could be overcalled for, which stays with the defaulters. Zero when the overcall covers the shortfall; the whole shortfall when every line on the call defaults.",
      "format": "double"
    },
    "links": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AllocationEventBasisDiagnostics": {
      "type": "object",
      "properties": {
        "participantCount": {
          "type": "integer",
          "description": "The number of investor records whose basis values were read.",
          "format": "int32"
        },
        "excluded": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The investor records the map's exceptions kept out of the event."
        },
        "warnings": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AllocationEventBasisWarning"
          },
          "description": "Anything the source had to work around, for example MissingFeeRate on a line without a management fee rate."
        }
      },
      "additionalProperties": false,
      "description": "What the basis source found when it read the register for an Allocation Event."
    },
    "AllocationEventBasisWarning": {
      "type": "object",
      "properties": {
        "code": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The warning, for example MissingFeeRate or RoundingPartnerNotParticipant."
        },
        "investorRecordId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The investor record the warning concerns, or absent when it concerns the event as a whole."
        }
      },
      "additionalProperties": false,
      "description": "One thing the basis source had to work around when it read the register for an Allocation Event."
    },
    "AllocationEventBookingError": {
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The rule or write step that failed, for instance WriteFailed."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifier of the posting that could not be written."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong."
        }
      },
      "additionalProperties": false,
      "description": "One posting a booking could not write."
    },
    "AllocationEventBookingWarning": {
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The rule that was allowed through, for instance OverCall."
        },
        "detail": {
          "type": [
            "string",
            "null"
          ],
          "description": "What the rule found."
        }
      },
      "additionalProperties": false,
      "description": "One validation rule a booking was allowed to proceed through under the map's policy."
    },
    "AllocationEventComponent": {
      "required": [
        "amount",
        "component"
      ],
      "type": "object",
      "properties": {
        "component": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string",
          "description": "The component. For a CapitalCall one of Investment, MgmtFee, OtherFee, PartnershipExpense, OrgCost, Recall, EqualisationInterest or LatePaymentInterest; for a Distribution one of ROC, RealisedGain, Dividend, Interest, OtherIncome, CarryPaid, Withholding or ReturnOfExcess."
        },
        "amount": {
          "type": "number",
          "description": "The part of the event amount this component carries, in the event currency. May be zero, in which case the component allocates nothing.",
          "format": "double"
        },
        "originMemberShortCode": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The member of the structure the component originates from, for a basis measured per deal such as PaidInForDeal. Absent means the map's own member."
        },
        "waterfallTier": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "For a distribution component, the tier of the waterfall it was paid under: ReturnOfContributions, PreferredReturn, CatchUp, CarriedInterest or Residual."
        },
        "taxCharacter": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "For a distribution component, the tax character of the amount: ROC, Gain, Income or Deemed."
        },
        "recallableAmount": {
          "type": [
            "number",
            "null"
          ],
          "description": "For the ROC component of a Distribution only, how much of the component the fund may call back, between zero and the component amount. Shared pro rata to each investor's ROC share. Absent means the allocation map's recall window decides.",
          "format": "double"
        },
        "recallableUntil": {
          "type": [
            "string",
            "null"
          ],
          "description": "For the ROC component of a Distribution only, the last date the recallable amount may be called back. Must not be before the event date and requires a non-zero recallable amount.",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "description": "One component of an Allocation Event: a part of the amount shared on its own basis and booked to its own slot."
    },
    "AllocationEventDealFunding": {
      "required": [
        "dealId"
      ],
      "type": "object",
      "properties": {
        "dealId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string",
          "description": "The deal the vehicle funds. A later capital call names it in an Investment row of its use of proceeds."
        },
        "facilityId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The subscription facility the funding was drawn from. Absent means the deal was paid from cash."
        },
        "excludedInvestorRecordIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The investor records excused from the deal. They pay nothing towards it when it is called and the others take up their share."
        }
      },
      "additionalProperties": false,
      "description": "The details of a DealFunding Allocation Event: the deal the vehicle funds, where the money came from and which\r\ninvestor records are excused from it."
    },
    "AllocationEventDefaulter": {
      "type": "object",
      "properties": {
        "commitmentLineId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The commitment line that defaulted. It must have been called on the defaulted call, have something outstanding on it, and not be defaulted on it already."
        },
        "amount": {
          "type": [
            "number",
            "null"
          ],
          "description": "The amount the line defaulted on, in the call currency: above zero and at most what the line still owes on the call. Absent means its whole outstanding.",
          "format": "double"
        },
        "investorRecordId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The investor record that holds the line, as the call shared it."
        },
        "defaultedAmount": {
          "type": [
            "number",
            "null"
          ],
          "description": "What moved to the defaulted state on the call's receivables: still owed by the investor, but no longer counted as capital the fund expects.",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "One line that defaulted on the call a Default names: what the request asked for and what moved to the defaulted state."
    },
    "AllocationEventEqualisation": {
      "required": [
        "newInvestorRecordIds",
        "priorCallIds"
      ],
      "type": "object",
      "properties": {
        "priorCallIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceId"
          },
          "description": "The booked capital calls to equalise, and any earlier equalisation on the same map whose catch-up the admitted partners must also be brought level with. Each must be booked, on the same allocation map and in the same currency."
        },
        "newInvestorRecordIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The investor records admitted at this close. Each must be on the register with its commitment at the event date."
        },
        "interestRate": {
          "type": [
            "number",
            "null"
          ],
          "description": "The simple annual rate of equalisation interest the admitted partners pay on each catch-up from the prior call's due date to the event date. Defaults to 0.08.",
          "format": "double"
        },
        "dayCountConvention": {
          "maxLength": 64,
          "minLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": "The day count of the equalisation interest: ACT/365 or ACT/360. Defaults to ACT/365."
        },
        "interestOnFees": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether equalisation interest is also charged on the management fee catch-ups, from each fee's due date. Defaults to false."
        },
        "treatment": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the existing partners' excess is returned: ReturnOfExcess restores it to their uncalled commitment; RecallableDistribution distributes it as recallable capital; CreditAgainstFutureCalls restores it to their uncalled commitment and keeps the cash in the fund as a credit their next calls draw down; RetainedByFund hands nothing back and instead calls the admitted partners up to the existing partners' level on the commitments before the close. Defaults to ReturnOfExcess. Available values: ReturnOfExcess, RecallableDistribution, CreditAgainstFutureCalls, RetainedByFund."
        },
        "pnl": {
          "type": [
            "string",
            "null"
          ],
          "description": "Whether profit and loss already allocated is re-trued between partners with no cash so each holds its post-close share (ReTrue), or the equalisation is kept to capital (CapitalOnly). Defaults to CapitalOnly when omitted on a request. An equalisation stored before this default was introduced keeps the treatment it was stored with, which is ReTrue. Available values: ReTrue, CapitalOnly."
        },
        "feeCatchUps": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AllocationEventEqualisationFeeCatchUp"
          },
          "description": "The management fees each admitted partner owes from the first fee date to the close, including any stub period, as explicit amounts. Paid to the manager and allocated to that partner only."
        },
        "marks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AllocationEventEqualisationMark"
          },
          "description": "The valuation moves already allocated to the existing partners, by the member of the structure they belong to, to re-true to the admitted partners. Ignored when the profit and loss treatment is CapitalOnly."
        },
        "priorDistributionIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ResourceId"
          },
          "description": "The booked distributions on the same allocation map, dated before the close, whose return of capital is re-spread net of the prior calls. When omitted, every booked distribution on the map dated before the close counts."
        },
        "interestTreatment": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the equalisation interest reaches the existing partners: Cash pays it to them; CapitalCredit credits it to their capital accounts with no cash; None charges and pays no equalisation interest. Defaults to Cash. Available values: Cash, CapitalCredit, None."
        },
        "excludedComponents": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The call components left out of the re-spread: ManagementFee, OtherFee, Expense, OrganisationCost or Recall. Defaults to ManagementFee. A component no prior call carries, other than ManagementFee, is refused. Available values: ManagementFee, OtherFee, Expense, OrganisationCost, Recall."
        }
      },
      "additionalProperties": false,
      "description": "The terms of a subsequent close an Equalisation Allocation Event applies: the booked prior calls to equalise, the\r\npartners admitted, and how interest, excess and profit and loss are treated."
    },
    "AllocationEventEqualisationFeeCatchUp": {
      "required": [
        "amount",
        "investorRecordId"
      ],
      "type": "object",
      "properties": {
        "investorRecordId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string",
          "description": "The admitted partner the fee catch-up is charged to."
        },
        "amount": {
          "type": "number",
          "description": "The fee catch-up in the event currency. Must not be negative.",
          "format": "double"
        },
        "dueDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date the fee would have been due had the partner been admitted at the first close, from which interest on it accrues when charged.",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "description": "The management fees one admitted partner owes from the first fee date to the close, as an explicit amount."
    },
    "AllocationEventEqualisationMark": {
      "required": [
        "amount",
        "originMemberShortCode"
      ],
      "type": "object",
      "properties": {
        "originMemberShortCode": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string",
          "description": "The member of the structure the mark belongs to."
        },
        "amount": {
          "type": "number",
          "description": "The valuation move already allocated, in the event currency. Negative for a fall in value or an expense.",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "A valuation move already allocated to the existing partners that the close re-trues to the admitted partners."
    },
    "AllocationEventReceipt": {
      "type": "object",
      "properties": {
        "investorRecordId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The investor record the cash came from."
        },
        "amount": {
          "type": "number",
          "description": "The cash received, in the event currency after any FX conversion.",
          "format": "double"
        },
        "receiptDate": {
          "type": "string",
          "description": "The date the cash was received.",
          "format": "date-time"
        },
        "applied": {
          "type": "number",
          "description": "How much of the receipt was applied to what the investor owed.",
          "format": "double"
        },
        "refund": {
          "type": "number",
          "description": "How much of the receipt exceeded what the investor owed and became a refund payable.",
          "format": "double"
        },
        "paymentCurrency": {
          "type": [
            "string",
            "null"
          ],
          "description": "The ISO 4217 code of the currency the cash arrived in, when it differs from the event currency."
        },
        "paymentFxRate": {
          "type": [
            "number",
            "null"
          ],
          "description": "The rate the payment was converted at, as units of event currency per unit of payment currency. Required with a payment currency.",
          "format": "double"
        },
        "fxDifference": {
          "type": "number",
          "description": "The part of the difference between the payment converted at the notice rate and at the payment rate that the fund did not absorb; positive when the rate moved against the fund. Zero without a notice rate.",
          "format": "double"
        },
        "bankCharge": {
          "type": "number",
          "description": "Any bank charge deducted from the cash before it arrived, in the event currency.",
          "format": "double"
        },
        "bankChargeBearer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Who bears the bank charge: Partner leaves it outstanding on the investor, Fund books it as a fund expense. Defaults to the map's policy."
        },
        "shortfallWrittenOff": {
          "type": "number",
          "description": "Any small shortfall within the map's tolerance that was written off rather than left outstanding.",
          "format": "double"
        },
        "postingId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifier of the receipt posting on the investor's line."
        },
        "settledLineId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The register line the receipt settled, as the booking posted it. Written by the booking, not by the caller; absent on a receipt recorded before the line was kept."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "The caller's reference the receipt was recorded under, as sent. Absent on a receipt sent without one."
        }
      },
      "additionalProperties": false,
      "description": "One receipt of cash against a booked capital call, as recorded."
    },
    "AllocationEventRefund": {
      "type": "object",
      "properties": {
        "investorRecordId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The investor record the refund is owed to."
        },
        "amount": {
          "type": "number",
          "description": "The amount owed back, in the event currency.",
          "format": "double"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why the refund arose: Overpayment or Reversal."
        }
      },
      "additionalProperties": false,
      "description": "Cash the fund owes back to an investor record."
    },
    "AllocationEventRefundPayment": {
      "type": "object",
      "properties": {
        "investorRecordId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The investor record the refund is paid to."
        },
        "amount": {
          "type": "number",
          "description": "The amount paid, in the event currency. Must be positive, no finer than the currency's minor unit, and no more than the refund still payable to the investor record on the event.",
          "format": "double"
        },
        "paidDate": {
          "type": "string",
          "description": "The date the cash was paid out. Not before the receipt that created the refund payable.",
          "format": "date-time"
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "The caller's reference for the payment, for instance a payment instruction id. Posting the same reference again returns the event unchanged and writes nothing."
        },
        "postingId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifier of the fund-side posting the payment was written under."
        }
      },
      "additionalProperties": false,
      "description": "One payment of a refund owed to an investor record on a booked capital call, as recorded."
    },
    "AllocationEventReversal": {
      "type": "object",
      "properties": {
        "reference": {
          "maxLength": 256,
          "minLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": "The reference the mirror postings were written under: the original booking reference with a -REV suffix."
        },
        "reason": {
          "maxLength": 1024,
          "minLength": 0,
          "pattern": "^[\\s\\S]*$",
          "type": [
            "string",
            "null"
          ],
          "description": "Why the event was reversed."
        },
        "reversedAt": {
          "type": "string",
          "description": "The datetime at which the event was reversed.",
          "format": "date-time"
        },
        "effectiveAt": {
          "type": "string",
          "description": "The date the mirror postings were posted at.",
          "format": "date-time"
        },
        "backdated": {
          "type": "boolean",
          "description": "Whether the mirror postings were posted at the original event date despite the period being closed."
        },
        "refundPayable": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AllocationEventRefund"
          },
          "description": "Cash owed back to investors who had already paid in when the event was reversed."
        }
      },
      "additionalProperties": false,
      "description": "How a booked Allocation Event was reversed."
    },
    "AllocationEventRoundingResidual": {
      "type": "object",
      "properties": {
        "component": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The component the residual belongs to."
        },
        "cents": {
          "type": "integer",
          "description": "The number of minor units left over after each share was truncated to the currency.",
          "format": "int32"
        },
        "amount": {
          "type": "number",
          "description": "The same, in the event currency.",
          "format": "double"
        },
        "method": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the leftover was placed: LargestRemainder spreads it one minor unit at a time over the largest remainders; RoundingPartner gives all of it to the map's rounding partner line. Available values: LargestRemainder, RoundingPartner."
        },
        "takenBy": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The investor records that each took a minor unit, in the order they took it."
        }
      },
      "additionalProperties": false,
      "description": "The cents left over when one component of an Allocation Event was rounded to the currency's minor unit, and where they went."
    },
    "AllocationEventTransfer": {
      "required": [
        "fraction",
        "fromLineId",
        "toInvestorRecordId",
        "toLineId"
      ],
      "type": "object",
      "properties": {
        "fromLineId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string",
          "description": "The identifier of the capital interest line the fraction moves from, as it appears on the register of one of the map's members."
        },
        "toInvestorRecordId": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string",
          "description": "The investor record that receives the transferred interest, in the fund's scope: 'idTypeScope/idTypeCode/value', the form the register and the partners' capital report carry, or a bare value, read as the system InvestorRecordId. A record that is not in the fund's scope is refused with TransferDestinationRecordNotFound; it is never looked for in another scope. A record with no investment account in the fund has one opened for it when the transfer is booked."
        },
        "toLineId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": "string",
          "description": "The identifier of the capital interest line the fraction moves to. Created if it does not exist, under the investment account the investor record holds in the fund, or the one the booking opens for it."
        },
        "toPortfolioId": {
          "$ref": "#/$defs/ResourceId"
        },
        "fraction": {
          "type": "number",
          "description": "The fraction of the source line transferred, greater than zero and at most one. The legs out of one line together move each balance times the sum of their fractions, rounded to the currency's minor unit; each leg takes its share truncated to the minor unit and the last leg out of the line takes the remainder, so no leg takes more than its share, the legs never move more than the line holds, and fractions summing to one close the line.",
          "format": "double"
        },
        "pnlSplit": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the profit and loss of the period containing the transfer is split: InterimClose closes the books on the transfer date; DailyProration prorates by days held. Defaults to InterimClose. Available values: InterimClose, DailyProration."
        },
        "consideration": {
          "$ref": "#/$defs/AllocationEventTransferConsideration"
        },
        "consentReference": {
          "maxLength": 1024,
          "minLength": 0,
          "pattern": "^[\\s\\S]*$",
          "type": [
            "string",
            "null"
          ],
          "description": "A reference to the consent obtained for the transfer, when the fund requires one."
        }
      },
      "additionalProperties": false,
      "description": "One leg of a Transfer Allocation Event: a fraction of a capital interest line moving to another line."
    },
    "AllocationEventTransferConsideration": {
      "required": [
        "amount",
        "currency"
      ],
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "The consideration amount.",
          "format": "double"
        },
        "currency": {
          "maxLength": 5,
          "minLength": 0,
          "pattern": "^[a-zA-Z]*$",
          "type": "string",
          "description": "The ISO 4217 code of the currency of the consideration."
        },
        "recordOnly": {
          "type": "boolean",
          "description": "Whether the consideration is recorded for reference only, with no cash movement booked. Defaults to false."
        }
      },
      "additionalProperties": false,
      "description": "The consideration paid for a transferred capital interest."
    },
    "AllocationEventTransferee": {
      "type": "object",
      "properties": {
        "investorRecordId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The transferee's investor record, as the leg names it."
        },
        "fundId": {
          "$ref": "#/$defs/ResourceId"
        },
        "lineId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The commitment line opened for the transferee."
        },
        "line": {
          "type": [
            "string",
            "null"
          ],
          "description": "What happens to the line: Open when a booking would open it, Opened when this booking opened it."
        },
        "investmentAccountScope": {
          "type": [
            "string",
            "null"
          ],
          "description": "The scope of the investment account the line is opened under: the fund's."
        },
        "investmentAccountIdentifierType": {
          "type": [
            "string",
            "null"
          ],
          "description": "The type of the investment account's identifier, as a property key. An account a transfer opens is identified by InvestmentAccount/system/TransfereeAccountId."
        },
        "investmentAccountIdentifierValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "The value of the investment account's identifier. An account a transfer opens has the value '{fundCode}-{investor record LUID}', so a retry or a concurrent transfer finds the same account."
        },
        "investmentAccount": {
          "type": [
            "string",
            "null"
          ],
          "description": "What happens to the investment account: Existing when the transferee already holds it, Create when a booking would open it, Created when this booking opened it."
        }
      },
      "additionalProperties": false,
      "description": "A transferee a Transfer's booking gives a line: the line, and the investment account it is opened under."
    },
    "AllocationEventUseOfProceeds": {
      "required": [
        "amount",
        "purpose"
      ],
      "type": "object",
      "properties": {
        "purpose": {
          "minLength": 1,
          "type": "string",
          "description": "What the row pays for: Investment, FacilityRepayment, FacilityInterest, ManagementFee or Expenses. Available values: Investment, FacilityRepayment, FacilityInterest, ManagementFee, Expenses."
        },
        "dealId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The deal the row funds, or whose facility draw it repays. Required for an Investment row."
        },
        "amount": {
          "type": "number",
          "description": "The part of the call the row takes, in the event currency. Greater than zero.",
          "format": "double"
        },
        "facilityId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The facility the row repays. Required for a FacilityRepayment row; on an Investment row it is filled in from the deal's funding when the call is computed."
        }
      },
      "additionalProperties": false,
      "description": "One row of a CapitalCall Allocation Event's use of proceeds: what part of the call pays for what."
    },
    "AllocationMapAllocation": {
      "type": "object",
      "properties": {
        "investorRecordId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The investor record that receives the share."
        },
        "basisValue": {
          "type": [
            "number",
            "null"
          ],
          "description": "The basis value the pro rata share was weighted by. Absent for a fixed or excluded investor record.",
          "format": "double"
        },
        "weight": {
          "type": "number",
          "description": "The fraction of the remainder the investor record receives, or the fixed fraction of the whole amount for a FixedPercentage exception.",
          "format": "double"
        },
        "amount": {
          "type": "number",
          "description": "The amount allocated to the investor record.",
          "format": "double"
        },
        "treatment": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the share was found. Derived means pro rata from the basis; FixedPercentage means off the top from an exception; Excluded means an exception removed the investor record and it receives nothing. Available values: Derived, FixedPercentage, Excluded."
        },
        "commitmentLineId": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "For a Commitment event, the commitment line the share is recorded against. Absent for other event types."
        },
        "portfolioId": {
          "$ref": "#/$defs/ResourceId"
        },
        "component": {
          "type": [
            "string",
            "null"
          ],
          "description": "The component of the event the share belongs to. Absent when the event was resolved whole."
        },
        "originMemberShortCode": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9\\-_]+$",
          "type": [
            "string",
            "null"
          ],
          "description": "The deal the share is for, when a capital call's use of proceeds split one component across deals. Absent when the component's own origin applies."
        },
        "recallableAmount": {
          "type": [
            "number",
            "null"
          ],
          "description": "For the ROC component of a Distribution with a recallable amount, the investor record's pro rata share of it. Absent otherwise.",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "One investor record's share of a resolved allocation event."
    },
    "Link": {
      "required": [
        "href",
        "method",
        "relation"
      ],
      "type": "object",
      "properties": {
        "relation": {
          "type": "string"
        },
        "href": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "method": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "ResourceId": {
      "required": [
        "code",
        "scope"
      ],
      "type": "object",
      "properties": {
        "scope": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string",
          "description": "The scope used to identify an entity"
        },
        "code": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string",
          "description": "The code used to identify an entity"
        }
      },
      "additionalProperties": false,
      "description": "Identifiers of an entity"
    },
    "Version": {
      "required": [
        "asAtDate",
        "effectiveFrom"
      ],
      "type": "object",
      "properties": {
        "effectiveFrom": {
          "type": "string",
          "description": "The effective datetime at which this version became valid. Only applies when a single entity is being interacted with.",
          "format": "date-time"
        },
        "asAtDate": {
          "type": "string",
          "description": "The asAt datetime at which the data was committed to LUSID.",
          "format": "date-time"
        },
        "asAtCreated": {
          "type": [
            "string",
            "null"
          ],
          "description": "The asAt datetime at which the entity was first created in LUSID.",
          "format": "date-time"
        },
        "userIdCreated": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique id of the user who created the entity."
        },
        "requestIdCreated": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique request id of the command that created the entity."
        },
        "reasonCreated": {
          "type": [
            "string",
            "null"
          ],
          "description": "The reason for an entity creation."
        },
        "asAtModified": {
          "type": [
            "string",
            "null"
          ],
          "description": "The asAt datetime at which the entity (including its properties) was last updated in LUSID.",
          "format": "date-time"
        },
        "userIdModified": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique id of the user who last updated the entity (including its properties) in LUSID."
        },
        "requestIdModified": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique request id of the command that last updated the entity (including its properties) in LUSID."
        },
        "reasonModified": {
          "type": [
            "string",
            "null"
          ],
          "description": "The reason for an entity modification."
        },
        "asAtVersionNumber": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The integer version number for the entity (the entity was created at version 1)",
          "format": "int32"
        },
        "entityUniqueId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique id of the entity"
        },
        "stagedModificationIdModified": {
          "type": [
            "string",
            "null"
          ],
          "description": "The ID of the staged change that resulted in the most recent modification."
        }
      },
      "additionalProperties": false,
      "description": "The version metadata."
    }
  }
}