{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dbt-se/main/json-schema/dbt-se-get-lgdpotential-response-body-schema.json",
  "title": "GetLGDPotentialResponseBody",
  "x-generated": "2026-10-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dbt-se-openapi.json#/components/schemas/GetLGDPotentialResponseBody",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "dynamic": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "balanceErpValue": {
          "type": "number"
        },
        "dbtValuationPercentage": {
          "type": [
            "number",
            "null"
          ]
        },
        "valuationResult": {
          "type": "number"
        },
        "valuationResultL6M": {
          "type": "number"
        },
        "pledgeRunningAmount": {
          "type": "number"
        },
        "pledgeDbtAmount": {
          "type": "number"
        },
        "priorClaimsNominal": {
          "type": [
            "number",
            "null"
          ]
        },
        "dbtValuationResult": {
          "type": "number"
        },
        "dbtValuationResultL6M": {
          "type": "number"
        },
        "partsOfSum": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "amount": {
                "type": "number"
              },
              "l6mAvgClosing": {
                "type": "number"
              },
              "percentageDecimal": {
                "type": "number"
              },
              "type": {
                "type": "string",
                "enum": [
                  "unknown",
                  "fixed assets financial",
                  "fixed assets immaterial",
                  "fixed assets material",
                  "intercompany receivables",
                  "inventory",
                  "other receivables",
                  "receivables",
                  "prepaid expenses and accrued revenues"
                ]
              },
              "valuationResult": {
                "type": "number"
              }
            },
            "required": [
              "title",
              "amount",
              "l6mAvgClosing",
              "percentageDecimal",
              "type",
              "valuationResult"
            ]
          }
        },
        "sumOfTypes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "unknown",
                  "fixed assets financial",
                  "fixed assets immaterial",
                  "fixed assets material",
                  "intercompany receivables",
                  "inventory",
                  "other receivables",
                  "receivables",
                  "prepaid expenses and accrued revenues"
                ]
              },
              "valuationResult": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "format": {
                    "type": "object",
                    "properties": {
                      "notation": {
                        "type": "string",
                        "enum": [
                          "scientific",
                          "engineering",
                          "compact"
                        ]
                      },
                      "roundingPriority": {
                        "type": "string",
                        "enum": [
                          "morePrecision",
                          "lessPrecision"
                        ]
                      }
                    }
                  },
                  "numericAmount": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "currency"
                    ]
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "numericAmount",
                  "type"
                ]
              },
              "percentageFraction": {
                "type": "object",
                "properties": {
                  "format": {
                    "type": "object",
                    "properties": {
                      "maximumFractionDigits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "maximumIntegerDigits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "minimumFractionDigits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "minimumIntegerDigits": {
                        "type": "number",
                        "minimum": 0
                      }
                    }
                  },
                  "percentageAsFraction": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "percent"
                    ]
                  }
                },
                "required": [
                  "percentageAsFraction",
                  "type"
                ]
              },
              "amount": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "format": {
                    "type": "object",
                    "properties": {
                      "notation": {
                        "type": "string",
                        "enum": [
                          "scientific",
                          "engineering",
                          "compact"
                        ]
                      },
                      "roundingPriority": {
                        "type": "string",
                        "enum": [
                          "morePrecision",
                          "lessPrecision"
                        ]
                      }
                    }
                  },
                  "numericAmount": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "currency"
                    ]
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "numericAmount",
                  "type"
                ]
              },
              "l6mAvgClosing": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "format": {
                    "type": "object",
                    "properties": {
                      "notation": {
                        "type": "string",
                        "enum": [
                          "scientific",
                          "engineering",
                          "compact"
                        ]
                      },
                      "roundingPriority": {
                        "type": "string",
                        "enum": [
                          "morePrecision",
                          "lessPrecision"
                        ]
                      }
                    }
                  },
                  "numericAmount": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "currency"
                    ]
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "numericAmount",
                  "type"
                ]
              }
            },
            "required": [
              "type",
              "valuationResult",
              "percentageFraction",
              "amount",
              "l6mAvgClosing"
            ]
          }
        }
      },
      "required": [
        "date",
        "balanceErpValue",
        "dbtValuationPercentage",
        "valuationResult",
        "valuationResultL6M",
        "pledgeRunningAmount",
        "pledgeDbtAmount",
        "priorClaimsNominal",
        "dbtValuationResult",
        "dbtValuationResultL6M",
        "partsOfSum",
        "sumOfTypes"
      ]
    },
    "fixed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "sharePledge",
              "personalGuarantee",
              "propertyMortgageDeed",
              "parentCompanyGuarantee"
            ]
          },
          "originalValuation": {
            "type": "number"
          },
          "dbtValuationPercentage": {
            "type": "number"
          },
          "dbtValuationResult": {
            "type": "number"
          }
        },
        "required": [
          "type",
          "originalValuation",
          "dbtValuationPercentage",
          "dbtValuationResult"
        ]
      }
    },
    "eif": {
      "type": "object",
      "properties": {
        "yearMonthDay": {
          "type": "string"
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "yearMonthDay",
        "value"
      ]
    },
    "result": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "outstandingBalance": {
          "type": "number"
        },
        "usableAssets": {
          "type": "number"
        },
        "usableAssetsL6M": {
          "type": "number"
        },
        "lgd": {
          "type": "number"
        },
        "lgdL6M": {
          "type": "number"
        }
      },
      "required": [
        "date",
        "outstandingBalance",
        "usableAssets",
        "usableAssetsL6M"
      ]
    }
  },
  "required": [
    "dynamic",
    "fixed",
    "result"
  ]
}