Fixed interests (Static Version)
A Fixed Interests Loan Clause, with a monthly Payment
A Fixed Interests Loan Clause, with a monthly Payment (static)
A Fixed Interests Loan Clause, with a monthly Payment
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"
}
/*
* 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
}
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.fixedinterestsstatic@0.1.0.FixedInterestsStaticRequest | |
| org.accordproject.runtime@0.2.0.Request | |
| Type | Sample JSON |
|---|---|
| org.accordproject.fixedinterestsstatic@0.1.0.FixedInterestsStaticResponse | |
| 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.