Please report issues and contribute improvements on GitHub!

Template simplelatedeliveryandpenalty@0.3.0

Contract Ergo ^0.10.0 b31156e9935cffc9f0f2d6f90b44e9b1643fbbd1af544f5d663cf8fe73c1b207

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": "7c1a13ec-a337-48e4-9673-e484fdcb9fbe",
    "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": "f86eee21-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
    "agreedDelivery": "2019-01-10T22:56:31.233Z",
    "deliveredAt": "2019-01-10T22:56:31.233Z",
    "goodsValue": 19.57,
    "transactionId": "f86ec710-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:31.233Z"
}

Response Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse",
    "penalty": 55.24,
    "buyerMayTerminate": false,
    "transactionId": "f86eee20-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:31.234Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 129.154,
        "currencyCode": "CHF"
    },
    "description": "Velit labore anim anim amet.",
    "contract": "resource:org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract#2536",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7066",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6168",
    "deadline": "2019-01-10T22:56:31.234Z",
    "eventId": "f86eee22-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:31.234Z"
}