Template demandforecast@0.11.1

Clause ^0.12.0 b1417bca5be49542b4db4821c61f85bc10b6607fcd98bc0f7fb4eea30f04d1db

A sample demandforecast clause.

Download Archive Open in Template Studio Open in VSCode Web

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": "c8dd05ab-60fd-4ae5-92b4-64f370e563fb",
    "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": "170d1150-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 40.856,
    "transactionId": "170cea40-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:15.908-04:00"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 148.589,
    "year": 46026,
    "quarter": 52436,
    "transactionId": "170cea41-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:15.909-04:00"
}

Events Types

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