{
  "$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-billing-bill-instance-dto-schema.json",
  "title": "OAS.WebApi.DTO.Billing.BillInstanceDto",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orion-advisor-solutions-billing-billgenerator-api-openapi.yml#/components/schemas/OAS.WebApi.DTO.Billing.BillInstanceDto",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "nickName": {
      "type": "string"
    },
    "statusValue": {
      "type": "string",
      "enum": [
        "NotGenerated",
        "BillDataFilesNeeded",
        "FeeFileNeeded",
        "WaitingforPostPayments",
        "AdvisoryFeeRptsNeeded",
        "UpdatePayablesNeeded",
        "Complete",
        "ForcedComplete",
        "FeeFileFailed",
        "FeeFileInProcess",
        "PendingDeletion",
        "DeletionInProgress",
        "ErrorDeletingInstance"
      ]
    },
    "runForGroup": {
      "type": "string",
      "enum": [
        "AllHouseholds",
        "FundFamily",
        "Custodian",
        "Representative",
        "BusinessLine",
        "SingleHHNewBill",
        "SingleHHRerun",
        "Accounts",
        "ImportedHouseholds",
        "ImportedHHRerun",
        "FinalBill"
      ]
    },
    "runForAccounts": {
      "type": "string",
      "enum": [
        "ActiveAccounts",
        "InActiveAccounts",
        "AllAccounts"
      ]
    },
    "billType": {
      "type": "string",
      "enum": [
        "Unknown",
        "Renewal",
        "NewMoney",
        "NewAccount",
        "FinancialPlanningFee",
        "Performance",
        "AdvanceCreditDebit"
      ]
    },
    "isMockBill": {
      "type": "boolean"
    },
    "periodStart": {
      "type": "string",
      "format": "date-time"
    },
    "periodEnd": {
      "type": "string",
      "format": "date-time"
    },
    "householdCount": {
      "type": "integer",
      "format": "int32"
    },
    "marketValue": {
      "type": "number",
      "format": "double"
    },
    "balanceDue": {
      "type": "number",
      "format": "double"
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "createdBy": {
      "type": "string"
    },
    "hasValidBills": {
      "type": "boolean"
    },
    "allowDuplicateMockBills": {
      "type": "boolean"
    },
    "endDateOverride": {
      "type": "string",
      "format": "date-time"
    },
    "asOfDate": {
      "type": "string",
      "format": "date-time"
    },
    "valueDateOverride": {
      "type": "string",
      "format": "date-time"
    },
    "isLockdown": {
      "type": "boolean"
    },
    "instanceType": {
      "type": "string",
      "enum": [
        "Live",
        "Forecast"
      ]
    }
  },
  "type": "object"
}