Please report issues and contribute improvements on GitHub!

Template simplelatedeliveryandpenalty@0.6.1

Contract ^0.12.0 98ffce31c318196dae8e02b00189eb2d4965ae30d45e92ce4b3fea985201fad2

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": "8129298f-e659-4f08-a758-a6c20871593b",
    "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": "a70e30f1-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
    "agreedDelivery": "2019-04-17T00:56:36.990+00:00",
    "deliveredAt": "2019-04-17T00:56:36.990+00:00",
    "goodsValue": 223.954,
    "transactionId": "a70de2d0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:36.990+00:00"
}

Response Types

Type Sample JSON
org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse
{
    "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyResponse",
    "penalty": 123.978,
    "buyerMayTerminate": false,
    "transactionId": "a70e30f0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:36.991+00:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 125.018,
        "currencyCode": "RON"
    },
    "description": "Eu ea aute.",
    "contract": "resource:org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyContract#2047",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1165",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#0997",
    "deadline": "2019-04-17T00:56:36.992+00:00",
    "eventId": "a70e5800-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:36.992+00:00"
}