Please report issues and contribute improvements on GitHub!

Template demandforecast@0.9.0

Clause Ergo ^0.10.0 2c6899845c27d797a45b64e631f8c4514c640f81fb8dc30e618f91c9760cc323

A sample demandforecast clause.

Download Archive Open in Template Studio

Demand Forecast

A sample demand forecast clause.

Sample

On or before the 04/02/2018, and thereafter on or before the last day of each calendar quarter, the Purchaser "PETER" shall send the Supplier "DAN" a Supply Forecast. The Supply Forecast will be a binding commitment on the Purchaser’s behalf to purchase during the first quarter included in each Supply Forecast at least 85% of the quantity of the listed Product.

                

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.demandforecast.DemandForecastClause",
    "clauseId": "1ac398e7-e5d7-4e7b-8af3-8eca6940009d",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02",
    "minimumPercentage": 85
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "df21e121-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 18.142,
    "transactionId": "df21ba10-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:48.786Z"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 238.504,
    "year": 3133,
    "quarter": 842,
    "transactionId": "df21e120-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:48.786Z"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}