Demand Forecast

demandforecast@0.12.1 Clause ^0.13.0 ab5b33a0f7f909a9293a8bcbfcc127e4f52d3c98e14780e9a669471ea3eb67ae

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": "e6f8c39e-293f-404c-8e68-93bb30d59772",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02T00:00:00.000-04:00",
    "minimumPercentage": 85
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "26e7bb80-b399-11e9-a415-2f2abeed0243"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 106.189,
    "transactionId": "26e79470-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:17.559-04:00"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 5.054,
    "year": 36955,
    "quarter": 19510,
    "transactionId": "26e79471-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:17.560-04:00"
}

Events Types

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