Please report issues and contribute improvements on GitHub!

Template installment-sale@0.12.0

Contract ^0.12.0 5b7d91edb84454f5237f21fb5fae4afd813d60cba5f8fff0cb8799676afd1c1e

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": "5bf371aa-f3c1-4acb-8fb1-27d978e5d059",
    "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": 158.205,
    "next_payment_month": 5344,
    "total_paid": 153.425,
    "stateId": "c8f2ef53-575d-11e9-9ffa-db0629e5d319"
}

Request Types

Type Sample JSON
org.accordproject.installmentsale.ClosingPayment
{
    "$class": "org.accordproject.installmentsale.ClosingPayment",
    "amount": 48.331,
    "transactionId": "c8f2c841-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:32.644-04:00"
}
org.accordproject.installmentsale.Installment
{
    "$class": "org.accordproject.installmentsale.Installment",
    "amount": 253.178,
    "transactionId": "c8f2c840-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:32.644-04:00"
}

Response Types

Type Sample JSON
org.accordproject.installmentsale.Balance
{
    "$class": "org.accordproject.installmentsale.Balance",
    "balance": 101.367,
    "total_paid": 179.445,
    "transactionId": "c8f2ef51-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:32.645-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": 139.343,
        "currencyCode": "PEN"
    },
    "description": "Proident dolore veniam nulla commodo.",
    "contract": "resource:org.accordproject.installmentsale.InstallmentSaleContract#8105",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#8649",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7353",
    "deadline": "2019-04-05T00:46:32.646-04:00",
    "eventId": "c8f31661-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:32.646-04:00"
}