Please report issues and contribute improvements on GitHub!

Template demandforecast@0.11.0

Clause ^0.12.0 ac252106feb1f685f5ecceb12b967bb8210ca5283660b5bf72aeb5b397342f87

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": "2ec35bbc-7bde-4bcb-82bf-262b104ae787",
    "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": "c4850de1-575d-11e9-9ffa-db0629e5d319"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 52.545,
    "transactionId": "c484bfc0-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:25.213-04:00"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 143.378,
    "year": 2323,
    "quarter": 45427,
    "transactionId": "c4850de0-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:25.214-04:00"
}

Events Types

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