Fork me on GitHub

Template installment-sale@0.8.0

Contract Ergo ^0.9.1 c2b551d459bbe58a2aedf41c900413cbc3f960a0c2ecca9397b79874e1df4b37

This is a clause for a simple installment sale.

Download Archive Open in Template Studio

Installment Sale

A simple clause for a sale paid in installments.

Sample

"Dan" agrees to pay to "Ned" the total sum e10000, in the manner following:

E500 is to be paid at closing, and the remaining balance of E9500 shall be paid as follows:

E500 or more per month on the first day of each and every month, and continuing until the entire balance, including both principal and interest, shall be paid in full -- provided, however, that the entire balance due plus accrued interest and any other amounts due here-under shall be paid in full on or before 24 months.

Monthly payments shall start on month 3 include both principal and interest with interest at the rate of 1.5%, computed monthly on the remaining balance from time to time unpaid.

                

Model Dependencies

Technical Integration

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 on GitHub.

Sample Instance

{
    "$class": "org.accordproject.installmentsale.InstallmentSaleContract",
    "contractId": "e3f0194f-eca2-49e3-8f02-7a10603fa457",
    "BUYER": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "SELLER": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Ned"
    },
    "INITIAL_DUE": 10000,
    "INTEREST_RATE": 1.5,
    "TOTAL_DUE_BEFORE_CLOSING": 9500,
    "MIN_PAYMENT": 500,
    "DUE_AT_CLOSING": 500,
    "FIRST_MONTH": 3
}

State Types

Type Sample JSON
org.accordproject.installmentsale.InstallmentSaleState
{
    "$class": "org.accordproject.installmentsale.InstallmentSaleState",
    "status": "WaitingForFirstDayOfNextMonth",
    "balance_remaining": 220.952,
    "next_payment_month": 20381,
    "total_paid": 6.641,
    "stateId": "5ea8f793-dd3f-11e8-a95c-95b9dbcf241c"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "5ea8d080-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:27.560Z"
}
org.accordproject.installmentsale.ClosingPayment
{
    "$class": "org.accordproject.installmentsale.ClosingPayment",
    "amount": 246.117,
    "transactionId": "5ea8d082-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:27.560Z"
}
org.accordproject.installmentsale.Installment
{
    "$class": "org.accordproject.installmentsale.Installment",
    "amount": 137.277,
    "transactionId": "5ea8d081-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:27.560Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "5ea8d083-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:27.560Z"
}
org.accordproject.installmentsale.Balance
{
    "$class": "org.accordproject.installmentsale.Balance",
    "balance": 241.644,
    "total_paid": 18.652,
    "transactionId": "5ea8f790-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:27.561Z"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 173.569,
        "currencyCode": "BBD"
    },
    "description": "Officia consectetur laborum ut aliquip.",
    "contract": "resource:org.accordproject.installmentsale.InstallmentSaleContract#5452",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#9725",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7925",
    "deadline": "2018-10-31T19:01:27.562Z",
    "eventId": "5ea91ea1-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:27.562Z"
}