{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dbt-se/main/json-schema/dbt-se-collateral-valuation-response-body-schema.json",
  "title": "CollateralValuationResponseBody",
  "x-generated": "2026-10-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dbt-se-openapi.json#/components/schemas/CollateralValuationResponseBody",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "orgId": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "sharePledgeValueInSEK": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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": [
        "text",
        "type",
        "value"
      ]
    },
    "personalGuaranteeValueInSEK": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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": [
        "text",
        "type",
        "value"
      ]
    },
    "propertyMortgageDeedValueInSEK": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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": [
        "text",
        "type",
        "value"
      ]
    },
    "parentCompanyGuaranteeValueInSEK": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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": [
        "text",
        "type",
        "value"
      ]
    },
    "fixedAssetsImmaterialFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "fixedAssetsMaterialFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "fixedAssetsFinancialFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "intercompanyReceivablesFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "inventoryFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "otherReceivablesFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "receivablesFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    },
    "prepaidExpensesAccruedRevenuesFraction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "default",
            "missingValue",
            "error"
          ]
        },
        "value": {
          "type": [
            "object",
            "null"
          ],
          "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"
          ]
        }
      },
      "required": [
        "text",
        "type",
        "value"
      ]
    }
  },
  "required": [
    "id",
    "orgId",
    "createdAt",
    "sharePledgeValueInSEK",
    "personalGuaranteeValueInSEK",
    "propertyMortgageDeedValueInSEK",
    "parentCompanyGuaranteeValueInSEK",
    "fixedAssetsImmaterialFraction",
    "fixedAssetsMaterialFraction",
    "fixedAssetsFinancialFraction",
    "intercompanyReceivablesFraction",
    "inventoryFraction",
    "otherReceivablesFraction",
    "receivablesFraction",
    "prepaidExpensesAccruedRevenuesFraction"
  ]
}