Please report issues and contribute improvements on GitHub!

Template installment-sale@0.12.1

Contract ^0.12.0 c69ba346cd2a2d533f4a721ff902b743048c36082cb5c081ebc6a1476177ad1c

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, which 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": "22a8f391-221c-4fbd-9e13-b8b10774e70e",
    "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": 249.354,
    "next_payment_month": 18943,
    "total_paid": 100.588,
    "stateId": "963c0221-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
org.accordproject.installmentsale.ClosingPayment
{
    "$class": "org.accordproject.installmentsale.ClosingPayment",
    "amount": 109.747,
    "transactionId": "963bb401-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:08.768+00:00"
}
org.accordproject.installmentsale.Installment
{
    "$class": "org.accordproject.installmentsale.Installment",
    "amount": 49.188,
    "transactionId": "963bb400-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:08.768+00:00"
}

Response Types

Type Sample JSON
org.accordproject.installmentsale.Balance
{
    "$class": "org.accordproject.installmentsale.Balance",
    "balance": 211.871,
    "total_paid": 39.348,
    "transactionId": "963bdb11-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:08.769+00:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 87.884,
        "currencyCode": "GMD"
    },
    "description": "Velit anim.",
    "contract": "resource:org.accordproject.installmentsale.InstallmentSaleContract#1289",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6945",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8266",
    "deadline": "2019-04-17T00:56:08.771+00:00",
    "eventId": "963c2931-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:08.771+00:00"
}