Demand Forecast

demandforecast@0.13.0 Clause ^0.20.0 f2a299886db889bc1239cb4512649a5555641d1df9337adc521ed9467e7cc074

A sample demandforecast clause.

Download Archive Open in Template Studio

Demand Forecast

A sample demand forecast clause.

Template Text

Grammar

On or before the {{effectiveDate}}, and thereafter on or before the last day of each calendar quarter, the Purchaser {{purchaser}} shall send the Supplier {{supplier}} 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 {{minimumPercentage}}% of the quantity of the listed Product.

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.

Sample Data

{
    "$class": "org.accordproject.demandforecast.DemandForecastClause",
    "clauseId": "b1e1a88a-e62f-4c34-af7f-1651db14d767",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02T00:00:00.000-05:00",
    "minimumPercentage": 85
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "e56c5c52-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 48.162,
    "transactionId": "e56c5c50-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:41.365-05:00"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 223.793,
    "year": 30380,
    "quarter": 47099,
    "transactionId": "e56c5c51-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:41.365-05:00"
}

Events Types

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

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 GitHub.