Fixed Interests

Author: Accord Project

fixed-interests@0.7.0 Clause ^0.26.0 c245f0632a4378af805a094b8db8cd93e23414271870dcf5b7bf9121f038abc3

A Fixed Interests Loan Clause, with a monthly Payment

Download Archive Download Compiled Archive Open in Template Playground Open in VSCode Web

Fixed interests

A Fixed Interests Loan Clause, with a monthly Payment

Template Text

Fixed rate loan

This is a fixed interest loan to the amount of £100,000.00 at the yearly interest rate of 2.5% with a loan term of 15, and monthly payments of {{%I'm not sure which amount right now%}}

## Fixed rate loan

This is a _fixed interest_ loan to the amount of £100,000.00
at the yearly interest rate of 2.5%
with a loan term of 15,
and monthly payments of {{%I'm not sure which amount right now%}}
## Fixed rate loan

This is a *fixed interest* loan to the amount of {{loanAmount as "K0,0.00"}}
at the yearly interest rate of {{rate}}%
with a loan term of {{loanDuration}},
and monthly payments of {{% monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" %}}
{
  "$class": "org.accordproject.fixedinterests@0.1.0.TemplateModel",
  "loanAmount": {
    "$class": "org.accordproject.money.MonetaryAmount",
    "doubleValue": 100000,
    "currencyCode": "GBP"
  },
  "rate": 2.5,
  "loanDuration": 15,
  "clauseId": "489451e5-08cf-412e-b2ac-71c3932fc1ad",
  "$identifier": "489451e5-08cf-412e-b2ac-71c3932fc1ad"
}

Template Model

/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

namespace org.accordproject.fixedinterests@0.1.0

import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto

transaction FixedInterestsRequest extends Request {
  o String input
}

transaction FixedInterestsResponse extends Response {
  o String output
}

@template
asset TemplateModel extends Clause {
  o Double loanAmount
  o String currencyCode
  o Double rate
  o Integer loanDuration
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.runtime@0.2.0.State
{
    "$class": "org.accordproject.runtime@0.2.0.State",
    "$identifier": "7939dd50-50a4-11f1-a498-6b6dff021a96"
}

Request Types

Type Sample JSON
org.accordproject.fixedinterests@0.1.0.FixedInterestsRequest
{
    "$class": "org.accordproject.fixedinterests@0.1.0.FixedInterestsRequest",
    "input": "Pariatur sit minim tempor.",
    "$timestamp": "2026-05-15T21:24:36.389Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-05-15T21:24:36.388Z"
}

Response Types

Type Sample JSON
org.accordproject.fixedinterests@0.1.0.FixedInterestsResponse
{
    "$class": "org.accordproject.fixedinterests@0.1.0.FixedInterestsResponse",
    "output": "Occaecat.",
    "$timestamp": "2026-05-15T21:24:36.389Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-05-15T21:24:36.389Z"
}

Events Types

Type Sample JSON

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.