Fork me on GitHub

Template fragile-goods@0.7.1

Contract Ergo ^0.8.0 3323e332cc794fd8470e7b3ad1fde47d813fae5658b77f9c4e58c65db88ca42e

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

Download Archive

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": "b45aab78-e213-4b3e-bb35-975ba4dab90a",
    "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": "fcca5410-bcb9-11e8-b659-95624e2a3ede"
}

Request Types

Type Sample JSON
io.clause.demo.fragileGoods.DeliveryUpdate
{
    "$class": "io.clause.demo.fragileGoods.DeliveryUpdate",
    "startTime": "2018-09-20T09:46:03.086Z",
    "finishTime": "2018-09-20T09:46:03.086Z",
    "status": "ARRIVED",
    "accelerometerReadings": [
        57.728
    ],
    "transactionId": "fcc9dee0-bcb9-11e8-b659-95624e2a3ede",
    "timestamp": "2018-09-20T09:46:03.086Z"
}

Response Types

Type Sample JSON
io.clause.demo.fragileGoods.PayOut
{
    "$class": "io.clause.demo.fragileGoods.PayOut",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 168.239,
        "currencyCode": "NPR"
    },
    "transactionId": "fcca2d00-bcb9-11e8-b659-95624e2a3ede",
    "timestamp": "2018-09-20T09:46:03.088Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 255.174,
        "currencyCode": "NAD"
    },
    "description": "Sit.",
    "contract": "resource:io.clause.demo.fragileGoods.FragileGoodsClause#2933",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#2092",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#5809",
    "deadline": "2018-09-20T09:46:03.089Z",
    "eventId": "fcca5411-bcb9-11e8-b659-95624e2a3ede",
    "timestamp": "2018-09-20T09:46:03.089Z"
}