Fork me on GitHub

Template simplelatedeliveryandpenalty@0.1.0

Contract Ergo ^0.8.0 04847bd3a6b72f05c4414fe57c905438d074dafdbd35d334e5d45e2c5519b301

A Late Delivery And Penalty clause (simple).

Download Archive

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": "117a0b6e-f668-4104-b42a-de7ee3e13172",
    "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": "ba3bac70-d172-11e8-bb14-93e0a7702381"
}

Request Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
    "agreedDelivery": "2018-10-16T18:38:51.570Z",
    "deliveredAt": "2018-10-16T18:38:51.570Z",
    "goodsValue": 87.42,
    "transactionId": "ba3ae920-d172-11e8-bb14-93e0a7702381",
    "timestamp": "2018-10-16T18:38:51.570Z"
}

Response Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse",
    "penalty": 254.146,
    "buyerMayTerminate": false,
    "transactionId": "ba3b8560-d172-11e8-bb14-93e0a7702381",
    "timestamp": "2018-10-16T18:38:51.574Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 192.997,
        "currencyCode": "MAD"
    },
    "description": "Deserunt et.",
    "contract": "resource:org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract#3077",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6879",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#1786",
    "deadline": "2018-10-16T18:38:51.575Z",
    "eventId": "ba3bac71-d172-11e8-bb14-93e0a7702381",
    "timestamp": "2018-10-16T18:38:51.575Z"
}