addedOutput schema / properties / discount
Added value: +{
+ "description": "Contractor discount, only on tenders and on public-works (CPV 45) awards/contracts. The key is ABSENT when there is nothing to show (not null). basis \"document\" = the percentage exactly as the award decision states it (measure average_discount | discount_on_budget, with document_ref and document_url to the source), Pro plan and above. basis \"calculated\" = Diavgis' own 1 - award_net / tender_budget_net, single winner only, shown only when the award is 30-100% of the budget and, where the document states a figure, within 1 point of it. official_locked: true + upgrade_url = the document states an official figure this plan does not include. Never present a calculated value as the official one.",
+ "properties": {
+ "basis": {
+ "enum": [
+ "document",
+ "calculated"
+ ],
+ "type": "string"
+ },
+ "document_ref": {
+ "type": "string"
+ },
+ "document_url": {
+ "type": "string"
+ },
+ "formula": {
+ "type": "string"
+ },
+ "measure": {
+ "enum": [
+ "average_discount",
+ "discount_on_budget"
+ ],
+ "type": "string"
+ },
+ "official_locked": {
+ "type": "boolean"
+ },
+ "upgrade_url": {
+ "type": "string"
+ },
+ "value": {
+ "description": "percent, one decimal",
+ "type": "number"
+ }
+ },
+ "required": [
+ "basis"
+ ],
+ "type": "object"
+}