Fixed interests
A Fixed Interests Loan Clause, with a monthly Payment
A Fixed Interests Loan Clause, with a monthly Payment
A Fixed Interests Loan Clause, with a monthly Payment
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"
}
/*
* 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
}
Find the full logic for this template on on GitHub.
| Type | Sample JSON |
|---|---|
| org.accordproject.runtime@0.2.0.State | |
| Type | Sample JSON |
|---|---|
| org.accordproject.fixedinterests@0.1.0.FixedInterestsRequest | |
| org.accordproject.runtime@0.2.0.Request | |
| Type | Sample JSON |
|---|---|
| org.accordproject.fixedinterests@0.1.0.FixedInterestsResponse | |
| org.accordproject.runtime@0.2.0.Response | |
| Type | Sample JSON |
|---|
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.