{
  "$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-automate-cashflow-setting-dto-schema.json",
  "title": "OAS.WebApi.DTO.Billing.AutomateCashflowSettingDto",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orion-advisor-solutions-billing-transactions-api-openapi.yml#/components/schemas/OAS.WebApi.DTO.Billing.AutomateCashflowSettingDto",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "isEnabled": {
      "type": "boolean"
    },
    "minimumThreshold": {
      "type": "number",
      "format": "double"
    },
    "selectAll": {
      "type": "boolean"
    },
    "groupByDay": {
      "type": "boolean"
    },
    "transactionTypes": {
      "items": {
        "$ref": "#/$defs/OAS.DataModel.Billing.AutomateCashflowTransactionType"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "OAS.DataModel.Billing.AutomateCashflowSetting": {
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "isEnabled": {
          "type": "boolean"
        },
        "minimumThreshold": {
          "type": "number",
          "format": "double"
        },
        "selectAll": {
          "type": "boolean"
        },
        "groupByDay": {
          "type": "boolean"
        },
        "transactionTypes": {
          "items": {
            "$ref": "#/$defs/OAS.DataModel.Billing.AutomateCashflowTransactionType"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "OAS.DataModel.Billing.AutomateCashflowTransactionType": {
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "automateCashflowSettingId": {
          "type": "integer",
          "format": "int32"
        },
        "transactionId": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "financialType": {
          "type": "string",
          "enum": [
            "None",
            "Contribution",
            "Distribution",
            "Exchange",
            "DivReinvest",
            "MgmntFees",
            "DivCash",
            "MiscFees",
            "Journal",
            "Merges"
          ]
        },
        "automateCashflowSetting": {
          "$ref": "#/$defs/OAS.DataModel.Billing.AutomateCashflowSetting"
        }
      },
      "type": "object"
    }
  }
}