Mini-Late Delivery and Penalty Payment

minilatedeliveryandpenalty-payment@0.4.0 Contract ^0.20.0 fb960d02f929b32b0ea4488cbd8b3b145a95ebcd7567665bf09853c3e3a5be1d

A Late Delivery And Penalty (Mini, Capped, with Payment)

Download Archive Open in Template Studio

A Late Delivery And Penalty (Mini, Capped, with Payment)

A Late Delivery And Penalty Contract with a Penalty Cap and Emitting a Payment Obligation (Mini).

Template Text

Grammar

Late Delivery and Penalty.

In case of delayed delivery of Goods, {{seller}} shall pay to
{{buyer}} 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 52% 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.minilatedeliveryandpenalty.MiniLateDeliveryContract",
    "contractId": "dcfbf841-2ab0-4d49-a995-d3b9b2337a9b",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve Seller"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Betty Buyer"
    },
    "penaltyDuration": {
        "$class": "org.accordproject.time.Duration",
        "amount": 2,
        "unit": "days"
    },
    "penaltyPercentage": 10.5,
    "capPercentage": 52,
    "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": "fa5b3f51-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateRequest
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateRequest",
    "agreedDelivery": "2019-11-04T15:09:16.484-05:00",
    "deliveredAt": "2019-11-04T15:09:16.484-05:00",
    "goodsValue": 77.23,
    "transactionId": "fa5b1840-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:16.484-05:00"
}

Response Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateResponse
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateResponse",
    "penalty": 138.335,
    "buyerMayTerminate": true,
    "transactionId": "fa5b3f50-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:16.485-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": 245.923,
        "currencyCode": "GBP"
    },
    "description": "Irure qui ad Lorem voluptate.",
    "contract": "resource:org.accordproject.minilatedeliveryandpenalty.MiniLateDeliveryContract#4378",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#4416",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7654",
    "deadline": "2019-11-04T15:09:16.485-05:00",
    "eventId": "fa5b3f52-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:16.485-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.