Template installment-sale@0.13.0

Contract ^0.13.0 ccc78c82643a8c4e8fdaa263da423807c16a900a4b624513f4676dbf47708041

This is a clause for a simple installment sale.

Download Archive Open in Template Studio Open in VSCode Web

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": "e866c493-4674-4711-b945-fde34920c30d",
    "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": 130.386,
    "next_payment_month": 39724,
    "total_paid": 212.687,
    "stateId": "75a5ffc2-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
org.accordproject.installmentsale.ClosingPayment
{
    "$class": "org.accordproject.installmentsale.ClosingPayment",
    "amount": 100.041,
    "transactionId": "75a5d8b1-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:56.251-04:00"
}
org.accordproject.installmentsale.Installment
{
    "$class": "org.accordproject.installmentsale.Installment",
    "amount": 212.398,
    "transactionId": "75a5d8b0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:56.251-04:00"
}

Response Types

Type Sample JSON
org.accordproject.installmentsale.Balance
{
    "$class": "org.accordproject.installmentsale.Balance",
    "balance": 14.432,
    "total_paid": 104.226,
    "transactionId": "75a5ffc0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:56.252-04:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 113.298,
        "currencyCode": "TJS"
    },
    "description": "Nulla velit.",
    "contract": "resource:org.accordproject.installmentsale.InstallmentSaleContract#7322",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#9599",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7236",
    "deadline": "2019-07-02T09:36:56.253-04:00",
    "eventId": "75a626d0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:56.253-04:00"
}