Please report issues and contribute improvements on GitHub!

Template fragile-goods@0.9.0

Contract Ergo ^0.10.0 524c8b62c92311abb201accc94d4b1ef1fcd31d63d2966f5a4848a1c09f4eb28

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

Download Archive Open in Template Studio

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": "4929f5c9-ec1f-4032-b2a2-6bfed3cfe42a",
    "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": "e3a93e00-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
io.clause.demo.fragileGoods.DeliveryUpdate
{
    "$class": "io.clause.demo.fragileGoods.DeliveryUpdate",
    "startTime": "2019-01-10T22:55:56.382Z",
    "finishTime": "2019-01-10T22:55:56.382Z",
    "status": "ARRIVED",
    "accelerometerReadings": [
        111.208
    ],
    "transactionId": "e3a8efe0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.382Z"
}

Response Types

Type Sample JSON
io.clause.demo.fragileGoods.PayOut
{
    "$class": "io.clause.demo.fragileGoods.PayOut",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 19.076,
        "currencyCode": "BRL"
    },
    "transactionId": "e3a916f0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.383Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 61.34,
        "currencyCode": "GNF"
    },
    "description": "Anim in.",
    "contract": "resource:io.clause.demo.fragileGoods.FragileGoodsClause#3383",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#9653",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8322",
    "deadline": "2019-01-10T22:55:56.384Z",
    "eventId": "e3a93e01-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.384Z"
}