{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-graduate-line-of-credit-response-schema.json",
  "title": "GraduateLineOfCreditResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-graduation-api-openapi.yml#/components/schemas/GraduateLineOfCreditResponse",
  "properties": {
    "account_id": {
      "type": "string",
      "title": "Account Id",
      "description": "The account ID that was graduated",
      "hidden": false
    },
    "line_of_credit_id": {
      "type": "string",
      "title": "Line Of Credit Id",
      "description": "The line of credit ID",
      "hidden": false
    },
    "new_credit_limit_cents": {
      "type": "integer",
      "title": "New Credit Limit Cents",
      "description": "The new credit limit in cents after graduation",
      "hidden": false
    },
    "new_apr_percent": {
      "type": "number",
      "title": "New Apr Percent",
      "description": "The new APR as a percentage after graduation (e.g., 19.99)",
      "hidden": false
    },
    "deposit_disposition": {
      "$ref": "#/$defs/DepositDisposition",
      "description": "How the security deposit was handled",
      "hidden": false
    },
    "deposit_amount_cents": {
      "type": "integer",
      "title": "Deposit Amount Cents",
      "description": "The deposit amount in cents",
      "hidden": false
    },
    "collateral_id": {
      "type": "string",
      "title": "Collateral Id",
      "description": "The collateral ID",
      "hidden": false
    },
    "collateral_status": {
      "$ref": "#/$defs/CollateralStatus",
      "description": "The new status of the collateral",
      "hidden": false
    }
  },
  "type": "object",
  "required": [
    "account_id",
    "line_of_credit_id",
    "new_credit_limit_cents",
    "new_apr_percent",
    "deposit_disposition",
    "deposit_amount_cents",
    "collateral_id",
    "collateral_status"
  ],
  "$defs": {
    "CollateralStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "RELEASED",
        "LIQUIDATED",
        "SURPLUS_REFUNDED",
        "RETURNED"
      ],
      "title": "CollateralStatus"
    },
    "DepositDisposition": {
      "type": "string",
      "enum": [
        "REFUND_TO_BORROWER",
        "APPLY_AS_CREDIT_BALANCE"
      ],
      "title": "DepositDisposition"
    }
  }
}