{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-post-military-adjustment-response-schema.json",
  "title": "PostMilitaryAdjustmentResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-installment-loans-api-openapi.yml#/components/schemas/PostMilitaryAdjustmentResponse",
  "properties": {
    "account_id": {
      "type": "string",
      "title": "Account Id",
      "description": "The account ID."
    },
    "loan_id": {
      "type": "string",
      "title": "Loan Id",
      "description": "The loan ID."
    },
    "adjustment_type": {
      "$ref": "#/$defs/LoanMilitaryInterestAdjustmentType",
      "description": "The type of military adjustment."
    },
    "military_start_date": {
      "type": "string",
      "title": "Military Start Date",
      "description": "The start date of the military service."
    },
    "military_end_date": {
      "type": "string",
      "title": "Military End Date",
      "description": "The end date of the military service. If provided and in the past relative to current time, the adjustment will be computed up to that date. If provided and in the future (or not provided), a manual call will be required at that future date to update the interest rate."
    },
    "effective_at": {
      "type": "string",
      "title": "Effective At",
      "description": "The effective timing of when the military adjustment is scheduled."
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "A description of events scheduled."
    }
  },
  "type": "object",
  "required": [
    "account_id",
    "loan_id",
    "adjustment_type",
    "military_start_date",
    "effective_at",
    "message"
  ],
  "$defs": {
    "LoanMilitaryInterestAdjustmentType": {
      "type": "string",
      "enum": [
        "LOAN_MILITARY_INTEREST_ADJUSTMENT_SCRA",
        "LOAN_MILITARY_INTEREST_ADJUSTMENT_MLA"
      ],
      "title": "LoanMilitaryInterestAdjustmentType"
    }
  }
}