Template fragile-goods@0.12.0

Contract ^0.13.0 f8c305862566160bf76ae6285dbbc862c15efdacf0757b2bd02ff9dbc34a598d

This clause specifies penalties for shocks caused to a fragile package in transport.

Download Archive Open in Template Studio Open in VSCode Web

Fragile Goods

This clause specifies penalties for shocks caused to a fragile package in transport.

Sample

            Liquidated Damages for Delayed Delivery.

In the event the EXW delivery date of the Equipment is delayed beyond the delivery schedule as indicated below, solely through the fault of "Dan" (the Seller), and unless the parties mutually agreed to an extension thereto, "Steve" (the Buyer) is entitled to claim liquidated damages in an amount equivalent to 200.00 USD. 
Prior to implementing the provisions of Article 16.4 pursuant to this section, Buyer agrees that it shall discuss with Seller alternate remedies in good faith.. . . . 

The Equipment to be shipped to the Buyer shall be packed and shipped in accordance with the Specifications and if not specified therein.... 
Additionally the Equipment should have proper devices on it to record any shock during transportation as any instance of acceleration outside the bounds of -0.5g and 0.5g. 
Each shock shall reduce the Contract Price by 5.00 USD. Packing containing fragile materials should be so marked in bold stout letters. . . . .

Equipment Description, Contract Price and Delivery Schedule

Contract Price is 1000.00 USD per unit of Equipment.
Delivery Schedule: no later than 10 seconds after initiation.

          

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": "io.clause.demo.fragileGoods.FragileGoodsClause",
    "contractId": "f2adcc1a-cbcd-4b96-94ac-c2d84e4872ed",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "deliveryPrice": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 1000,
        "currencyCode": "USD"
    },
    "accelerationMin": -0.5,
    "accelerationMax": 0.5,
    "accelerationBreachPenalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 5,
        "currencyCode": "USD"
    },
    "deliveryLimitDuration": {
        "$class": "org.accordproject.time.Duration",
        "amount": 10,
        "unit": "seconds"
    },
    "lateDeliveryPenalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 200,
        "currencyCode": "USD"
    }
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "72f3d811-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
io.clause.demo.fragileGoods.DeliveryUpdate
{
    "$class": "io.clause.demo.fragileGoods.DeliveryUpdate",
    "startTime": "2019-07-02T09:36:51.728-04:00",
    "finishTime": "2019-07-02T09:36:51.728-04:00",
    "status": "IN_TRANSIT",
    "accelerometerReadings": [
        90.276
    ],
    "transactionId": "72f3b100-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:51.728-04:00"
}

Response Types

Type Sample JSON
io.clause.demo.fragileGoods.PayOut
{
    "$class": "io.clause.demo.fragileGoods.PayOut",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 181.454,
        "currencyCode": "UAH"
    },
    "transactionId": "72f3d810-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:51.729-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": 228.931,
        "currencyCode": "ETB"
    },
    "description": "Aliqua ipsum.",
    "contract": "resource:io.clause.demo.fragileGoods.FragileGoodsClause#3959",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#3543",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7597",
    "deadline": "2019-07-02T09:36:51.730-04:00",
    "eventId": "72f3ff20-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:51.730-04:00"
}