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 100000 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 100000
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}}
at the yearly interest rate of {{rate}}%
with a loan term of {{loanDuration}},
and monthly payments of {{% monthlyPaymentFormula(loanAmount,rate,loanDuration) %}}
{
"$class": "org.accordproject.interests.TemplateModel",
"clauseId": "67a81de2-e4e3-42f8-9b32-ad680187e7d7",
"loanAmount": 100000,
"rate": 2.5,
"loanDuration": 15
}
/*
* 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.interests
import org.accordproject.cicero.contract.* from https://models.accordproject.org/cicero/contract.cto
import org.accordproject.cicero.runtime.* from https://models.accordproject.org/cicero/runtime.cto
import org.accordproject.time.* from https://models.accordproject.org/v2.0/time.cto
transaction Request {
o String input
}
transaction Response {
o String output
}
asset TemplateModel extends AccordClause {
o Double loanAmount
o Double rate
o Integer loanDuration
}
concept TextResponse {
o String text
}
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.cicero.contract.AccordContractState |
|
Type | Sample JSON |
---|---|
org.accordproject.interests.Request |
|
Type | Sample JSON |
---|---|
org.accordproject.interests.Response |
|
Type | Sample JSON |
---|---|
org.accordproject.base.Event |
|
Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.
View the Latest code for this template on GitHub.