Fork me on GitHub

Template installment-sale@0.5.0

Contract Ergo ^0.6.0 29a24e466800289f65f008ae5df412afa708018990ad84ee7364264066722dad

This is a clause for a simple installment sale.

Download Archive

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 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": "6144350e-5185-450d-8dee-1dd805d2164d",
    "BUYER": "Dan",
    "SELLER": "Ned",
    "INITIAL_DUE": 10000,
    "INTEREST_RATE": 1.5,
    "TOTAL_DUE_BEFORE_CLOSING": 9500,
    "MIN_PAYMENT": 500,
    "DUE_AT_CLOSING": 500
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "d9a00614-a157-11e8-bed5-15302d68d0b1"
}

Request Types

Type Sample JSON
org.accordproject.installmentsale.ClosingPayment
{
    "$class": "org.accordproject.installmentsale.ClosingPayment",
    "amount": 0.922,
    "transactionId": "d9a00610-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:32.017Z"
}
org.accordproject.installmentsale.Installment
{
    "$class": "org.accordproject.installmentsale.Installment",
    "amount": 101.98,
    "transactionId": "d99fdf00-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:32.016Z"
}

Response Types

Type Sample JSON
org.accordproject.installmentsale.Balance
{
    "$class": "org.accordproject.installmentsale.Balance",
    "balance": 127.476,
    "total_paid": 76.399,
    "transactionId": "d9a00612-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:32.017Z"
}

Events Types

Type Sample JSON
org.accordproject.installmentsale.PaymentObligation
{
    "$class": "org.accordproject.installmentsale.PaymentObligation",
    "amount": 18.879,
    "party": "Est ullamco ea.",
    "eventId": "d9a02d21-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:32.018Z"
}