{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orion-advisor-solutions/json-schema/orion-advisor-solutions-oas-web-api-dto-confirm-alternative-aipasset-review-compare-dto-schema.json",
  "title": "OAS.WebApi.DTO.Confirm.Alternative.AIPAssetReviewCompareDto",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orion-advisor-solutions-confirm-alternative-api-openapi.yml#/components/schemas/OAS.WebApi.DTO.Confirm.Alternative.AIPAssetReviewCompareDto",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "assetId": {
      "type": "integer",
      "format": "int32"
    },
    "productId": {
      "type": "integer",
      "format": "int32"
    },
    "productName": {
      "type": "string"
    },
    "accountId": {
      "type": "integer",
      "format": "int32"
    },
    "accountNumber": {
      "type": "string"
    },
    "symbol": {
      "type": "string"
    },
    "ticker": {
      "type": "string"
    },
    "productType": {
      "type": "string"
    },
    "productSubType": {
      "type": "string"
    },
    "asOfDate": {
      "type": "string",
      "format": "date-time"
    },
    "firstCommitmentDate": {
      "type": "string",
      "format": "date-time"
    },
    "lastCommitmentDate": {
      "type": "string",
      "format": "date-time"
    },
    "totalCommitmentAmount": {
      "type": "number",
      "format": "double"
    },
    "currentValue": {
      "type": "number",
      "format": "double"
    },
    "lastValuation": {
      "type": "number",
      "format": "double"
    },
    "lastValuationDate": {
      "type": "string",
      "format": "date-time"
    },
    "totalContributedCapital": {
      "type": "number",
      "format": "double"
    },
    "totalDistributions": {
      "type": "number",
      "format": "double"
    },
    "totalRecallableDistributions": {
      "type": "number",
      "format": "double"
    },
    "unfundedCommitment": {
      "type": "number",
      "format": "double"
    },
    "costBasis": {
      "type": "number",
      "format": "double"
    },
    "manager": {
      "type": "string"
    },
    "currentValueOrion": {
      "type": "number",
      "format": "double"
    },
    "firstCommitmentDateOrion": {
      "type": "string",
      "format": "date-time"
    },
    "lastCommitmentDateOrion": {
      "type": "string",
      "format": "date-time"
    },
    "totalCommitmentAmountOrion": {
      "type": "number",
      "format": "double"
    },
    "lastValuationOrion": {
      "type": "number",
      "format": "double"
    },
    "lastValuationDateOrion": {
      "type": "string",
      "format": "date-time"
    },
    "totalContributedCapitalOrion": {
      "type": "number",
      "format": "double"
    },
    "totalDistributionsOrion": {
      "type": "number",
      "format": "double"
    },
    "totalRecallableDistributionsOrion": {
      "type": "number",
      "format": "double"
    },
    "unfundedCommitmentOrion": {
      "type": "number",
      "format": "double"
    },
    "costBasisOrion": {
      "type": "number",
      "format": "double"
    },
    "managerOrion": {
      "type": "string"
    },
    "includesPendingRecords": {
      "description": "True when the returned Orion values include pending transactions, valuations, or ledger rows.\nSet from spimGetAlternativeAssetData_v2.HasPendings; false when pending data was not included.",
      "type": "boolean"
    },
    "orionValuesAvailable": {
      "description": "False when spimGetAlternativeAssetData returned rows for this asset but none matched the asset account/product context.\nWhen false, Orion compare fields are omitted and {OAS.WebApi.DTO.Confirm.Alternative.AIPAssetReviewCompareDto.DifferenceSummary} is empty.",
      "type": "boolean"
    },
    "differenceSummary": {
      "description": "Provider vs Orion field names that differ for this row. Empty when values match or when {OAS.WebApi.DTO.Confirm.Alternative.AIPAssetReviewCompareDto.OrionValuesAvailable} is false.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "sourceType": {
      "type": "string",
      "enum": [
        "ManualInput",
        "CustomImport",
        "ConfirmSystem",
        "Api"
      ]
    },
    "auditedDate": {
      "type": "string",
      "format": "date-time"
    },
    "auditedByDisplay": {
      "type": "string"
    },
    "alternativeProvider": {
      "$ref": "#/$defs/OAS.WebApi.DTO.Portfolio.AssetAlternativeProviderDto",
      "description": "Portfolio alternative provider (Arch Holding ID, etc.) when opex_AccountComposer_ArchIntegration_39872 is enabled."
    }
  },
  "type": "object",
  "$defs": {
    "OAS.WebApi.DTO.Portfolio.AssetAlternativeProviderDto": {
      "properties": {
        "alternativeProvider": {
          "type": "string",
          "enum": [
            "ArchLabs",
            "AltExchange",
            "BridgeInvestmentTechnologies",
            "CAIS",
            "Canoe",
            "iCapital"
          ]
        },
        "providerHoldingId": {
          "type": "string"
        },
        "auditedDate": {
          "type": "string",
          "format": "date-time"
        },
        "auditedByDisplay": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}