Fixed Interests Static

Author: Accord Project

fixed-interests-static@0.6.0 Clause ^0.26.0 94c486264d6d890af2352af005201052f04dd634a7f445036cdec9137150a89d

A Fixed Interests Loan Clause, with a monthly Payment (static)

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

Fixed interests (Static Version)

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 USD at the yearly interest rate of 2.5% with a loan term of 15, and monthly payments of 667.00 USD

## Fixed rate loan

This is a _fixed interest_ loan to the amount of 100,000.00 USD
at the yearly interest rate of 2.5%
with a loan term of 15,
and monthly payments of 667.00 USD
## Fixed rate loan

This is a *fixed interest* loan to the amount of {{loanAmount as "0,0.00 CCC"}}
at the yearly interest rate of {{rate}}%
with a loan term of {{loanDuration}},
and monthly payments of {{monthlyPayment as "0,0.00 CCC"}}
{
  "$class": "org.accordproject.fixedinterestsstatic@0.1.0.TemplateModel",
  "loanAmount": 100000,
  "currencyCode": "USD",
  "rate": 2.5,
  "loanDuration": 15,
  "monthlyPayment": 667,
  "clauseId": "ddce2edb-7884-4e76-8777-3be3dcbf4ff1",
  "$identifier": "ddce2edb-7884-4e76-8777-3be3dcbf4ff1"
}

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.fixedinterestsstatic@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 FixedInterestsStaticRequest extends Request {
  o String input
}

transaction FixedInterestsStaticResponse extends Response {
  o String output
}

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

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": "794994c0-50a4-11f1-a498-6b6dff021a96"
}

Request Types

Type Sample JSON
org.accordproject.fixedinterestsstatic@0.1.0.FixedInterestsStaticRequest
{
    "$class": "org.accordproject.fixedinterestsstatic@0.1.0.FixedInterestsStaticRequest",
    "input": "Proident veniam.",
    "$timestamp": "2026-05-15T21:24:36.491Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-05-15T21:24:36.491Z"
}

Response Types

Type Sample JSON
org.accordproject.fixedinterestsstatic@0.1.0.FixedInterestsStaticResponse
{
    "$class": "org.accordproject.fixedinterestsstatic@0.1.0.FixedInterestsStaticResponse",
    "output": "Mollit officia aliquip.",
    "$timestamp": "2026-05-15T21:24:36.492Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-05-15T21:24:36.491Z"
}

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.