{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-calculate-nominal-interest-rate-input-schema.json",
  "title": "CalculateNominalInterestRateInput",
  "description": "Schema for input parameters to calculate the nominal interest rate for a loan.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-calculations-api-openapi.yml#/components/schemas/CalculateNominalInterestRateInput",
  "properties": {
    "product_id": {
      "type": "string",
      "title": "Product Id",
      "description": "The external product id of the loan product. This is used to identify the product in the system.",
      "hidden": false
    },
    "loan_amount": {
      "type": "integer",
      "title": "Loan Amount",
      "description": "The loan principal amount in cents",
      "hidden": false
    },
    "term_length": {
      "type": "integer",
      "title": "Term Length",
      "description": "Number of periods in loan term",
      "hidden": false
    },
    "total_repayment_amount": {
      "type": "integer",
      "title": "Total Repayment Amount",
      "description": "The total amount to be repaid over the life of the loan in cents",
      "hidden": false
    },
    "period_interval": {
      "type": "string",
      "enum": [
        "monthly",
        "biweekly",
        "weekly",
        "daily",
        "annually"
      ],
      "title": "Period Interval",
      "description": "The interval at which payments are made (e.g., monthly, biweekly, weekly, daily, annually)",
      "default": "monthly",
      "hidden": false
    }
  },
  "type": "object",
  "required": [
    "product_id",
    "loan_amount",
    "term_length",
    "total_repayment_amount"
  ]
}