Mini-Late Delivery and Penalty Payment

minilatedeliveryandpenalty-payment@0.4.0 Contract ^0.13.0 fe25cb3c9f23d9756ee6fa5a720b50bbde360c137ad19c09682d87c0eb23cc6e

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).

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.

          

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.minilatedeliveryandpenalty.MiniLateDeliveryContract",
    "contractId": "4d03397a-8b48-4eaf-bf95-6dfd75a2fcaf",
    "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"
    }
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "c0023700-f2af-11e9-8acb-f54c9aaa10c8"
}

Request Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateRequest
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateRequest",
    "agreedDelivery": "2019-10-19T20:33:46.607+00:00",
    "deliveredAt": "2019-10-19T20:33:46.607+00:00",
    "goodsValue": 41.905,
    "transactionId": "c001e8e0-f2af-11e9-8acb-f54c9aaa10c8",
    "timestamp": "2019-10-19T20:33:46.607+00:00"
}

Response Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateResponse
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateResponse",
    "penalty": 202.846,
    "buyerMayTerminate": false,
    "transactionId": "c0020ff0-f2af-11e9-8acb-f54c9aaa10c8",
    "timestamp": "2019-10-19T20:33:46.607+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": 70.375,
        "currencyCode": "NIO"
    },
    "description": "Voluptate do proident.",
    "contract": "resource:org.accordproject.minilatedeliveryandpenalty.MiniLateDeliveryContract#6461",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#2673",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9392",
    "deadline": "2019-10-19T20:33:46.608+00:00",
    "eventId": "c0023701-f2af-11e9-8acb-f54c9aaa10c8",
    "timestamp": "2019-10-19T20:33:46.608+00:00"
}