Template minilatedeliveryandpenalty-payment@0.3.0

Contract ^0.13.0 7b6fe021921dc7997980b3ed94e6c15e9ea3b6dd8d4a54e979efcc0bd237b23e

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

Download Archive Open in Template Studio Open in VSCode Web

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": "a54c05ee-e03f-470f-bfae-b11ca317a384",
    "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": 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": "79f2c4a0-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateRequest
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateRequest",
    "agreedDelivery": "2019-07-02T09:37:03.464-04:00",
    "deliveredAt": "2019-07-02T09:37:03.464-04:00",
    "goodsValue": 50.406,
    "transactionId": "79f27680-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:03.464-04:00"
}

Response Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateResponse
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateResponse",
    "penalty": 143.155,
    "buyerMayTerminate": false,
    "transactionId": "79f29d90-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:03.465-04:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 252.754,
        "currencyCode": "ZMW"
    },
    "description": "Fugiat eu duis aute elit.",
    "contract": "resource:org.accordproject.minilatedeliveryandpenalty.MiniLateDeliveryContract#2432",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0652",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8411",
    "deadline": "2019-07-02T09:37:03.466-04:00",
    "eventId": "79f2c4a1-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:03.466-04:00"
}