Simple Late Delivery and Penalty

simplelatedeliveryandpenalty@0.8.0 Contract ^0.20.0 c0b8bb93527cd2f959bf25ba671656868ef996bbe06864811e26a961b7499d83

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).

Template Text

Grammar

Late Delivery and Penalty. In case of delayed delivery of Goods, {{buyer}} shall pay to {{seller}} a penalty amounting to {{penaltyPercentage}}% of the total value of the Goods for every {{penaltyDuration}} of delay. The total amount of penalty shall not, however, exceed {{capPercentage}}% of the total value of the delayed goods. If the delay is more than {{maximumDelay}}, the Buyer is entitled to terminate this Contract.

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.

Sample Data

{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract",
    "contractId": "e05349e1-624d-4535-86ba-3985ae1165ca",
    "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"
    }
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "09f36782-ff3f-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
    "agreedDelivery": "2019-11-04T15:09:42.648-05:00",
    "deliveredAt": "2019-11-04T15:09:42.648-05:00",
    "goodsValue": 30.03,
    "transactionId": "09f36780-ff3f-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:42.648-05:00"
}

Response Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse",
    "penalty": 171.392,
    "buyerMayTerminate": true,
    "transactionId": "09f36781-ff3f-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:42.648-05:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 239.889,
        "currencyCode": "IRR"
    },
    "description": "Pariatur Lorem et.",
    "contract": "resource:org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract#0346",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7383",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#1627",
    "deadline": "2019-11-04T15:09:42.649-05:00",
    "eventId": "09f38e90-ff3f-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:42.649-05:00"
}

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 GitHub.