{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financegenius-ai/json-schema/financegenius-ai-account-facts-patch-schema.json",
  "title": "AccountFactsPatch",
  "description": "What the customer tells us about one account. Only the keys sent are\nchanged; sending null clears a fact.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financegenius-ai-openapi.json#/components/schemas/AccountFactsPatch",
  "properties": {
    "due_day": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 31.0,
          "minimum": 1.0
        },
        {
          "type": "string",
          "const": "end"
        },
        {
          "type": "null"
        }
      ],
      "title": "Due Day"
    },
    "card_due_day": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 31.0,
          "minimum": 1.0
        },
        {
          "type": "string",
          "const": "end"
        },
        {
          "type": "null"
        }
      ],
      "title": "Card Due Day"
    },
    "statement_day": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 31.0,
          "minimum": 1.0
        },
        {
          "type": "string",
          "const": "end"
        },
        {
          "type": "null"
        }
      ],
      "title": "Statement Day"
    },
    "rate_pct": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 60.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Rate Pct"
    },
    "rate_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "fixed",
            "floating"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Rate Type"
    },
    "sanctioned_on": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sanctioned On"
    },
    "pays_in_full": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pays In Full"
    },
    "min_payment": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10000000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Min Payment"
    },
    "not_mine": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Not Mine"
    },
    "closed_on": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Closed On"
    },
    "emi": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100000000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Emi"
    },
    "serviced_by_business": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Serviced By Business"
    }
  },
  "additionalProperties": false,
  "type": "object"
}