Please report issues and contribute improvements on GitHub!

Template simplelatedeliveryandpenalty@0.3.1

Contract Ergo ^0.10.0 2d2b370c5423782e3ba6a65d3855469f868f6f397c7e61d14ced2e9d2dcb80a8

A Late Delivery And Penalty clause (simple).

Download Archive Open in Template Studio

A Late Delivery And Penalty (Simple)

A Late Delivery And Penalty clause (simple).

Sample

Late Delivery and Penalty. In case of delayed delivery of Goods, "Betty Buyer" shall pay to "Steve Seller" a penalty amounting to 10.5% of the total value of the Goods for every 2 days of delay. The total amount of penalty shall not, however, exceed 55% of the total value of the delayed goods. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.

                

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.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract",
    "contractId": "b7c8bc72-67c5-4752-a5c1-0192926c9e76",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Betty Buyer"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve Seller"
    },
    "penaltyDuration": {
        "$class": "org.accordproject.time.Duration",
        "amount": 2,
        "unit": "days"
    },
    "penaltyPercentage": 10.5,
    "capPercentage": 55,
    "maximumDelay": {
        "$class": "org.accordproject.time.Duration",
        "amount": 15,
        "unit": "days"
    }
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "80c0e8d2-15b9-11e9-a5a1-55a2d3e4b507"
}

Request Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
    "agreedDelivery": "2019-01-11T15:56:48.477Z",
    "deliveredAt": "2019-01-11T15:56:48.477Z",
    "goodsValue": 196.622,
    "transactionId": "80c0e8d0-15b9-11e9-a5a1-55a2d3e4b507",
    "timestamp": "2019-01-11T15:56:48.477Z"
}

Response Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse",
    "penalty": 48.708,
    "buyerMayTerminate": true,
    "transactionId": "80c0e8d1-15b9-11e9-a5a1-55a2d3e4b507",
    "timestamp": "2019-01-11T15:56:48.477Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 189.125,
        "currencyCode": "LYD"
    },
    "description": "Cillum est in.",
    "contract": "resource:org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract#3828",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0841",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#2900",
    "deadline": "2019-01-11T15:56:48.478Z",
    "eventId": "80c10fe0-15b9-11e9-a5a1-55a2d3e4b507",
    "timestamp": "2019-01-11T15:56:48.478Z"
}