Please report issues and contribute improvements on GitHub!

Template simplelatedeliveryandpenalty@0.6.0

Contract ^0.12.0 0cd65274253a94f1b87d4c0643531383947265e1b6b3e6780e15cdb86e923c98

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": "8fa52f13-13b7-49b3-b6b9-1c1f81301e18",
    "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": "d1210d11-575d-11e9-9ffa-db0629e5d319"
}

Request Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
    "agreedDelivery": "2019-04-05T00:46:46.368-04:00",
    "deliveredAt": "2019-04-05T00:46:46.368-04:00",
    "goodsValue": 195.443,
    "transactionId": "d120e600-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:46.368-04:00"
}

Response Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse",
    "penalty": 240.104,
    "buyerMayTerminate": false,
    "transactionId": "d1210d10-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:46.369-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": 109.015,
        "currencyCode": "KYD"
    },
    "description": "Ut sunt magna id laboris.",
    "contract": "resource:org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract#5517",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0567",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6965",
    "deadline": "2019-04-05T00:46:46.369-04:00",
    "eventId": "d1210d12-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:46.369-04:00"
}