Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add relativeValue and monetaryValue.csv #27

Merged
merged 5 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,32 @@ The following JSON snippet models a contracting process where fees are applied t
}
```

The following JSON snippet models a contracting process with a participation fee of 5% of the award value, payable by the winning bidder.
odscjen marked this conversation as resolved.
Show resolved Hide resolved

```json
{
"tender": {
"participationFees": [
{
"id": "1",
"type": [
"win"
],
"relativeValue": {
"proportion": 0.05,
"monetaryValue": "award"
},
"description": "Fee payable on acceptance of award.",
"methodOfPayment": [
"wireTransfer",
"cheque"
]
}
]
}
}
```

## Issues

Report issues for this extension in the [ocds-extensions repository](https://github.com/open-contracting/ocds-extensions/issues), putting the extension's name in the issue's title.
Expand All @@ -61,6 +87,7 @@ Report issues for this extension in the [ocds-extensions repository](https://git
### Unreleased

* Make `ParticipationFee.id` required so that participation fees are merged by identifier
* Add `relativeValue` field

### v1.1.5

Expand Down
3 changes: 3 additions & 0 deletions codelists/monetaryValue.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Code,Title,Description
tender,Tender,"The estimated value of the procurement, as estimated when publishing the tender information."
award,Award,"The value of the award. Typically, this is the value of the bid being awarded."
3 changes: 2 additions & 1 deletion extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
],
"codelists": [
"participationFeeType.csv",
"methodOfPayment.csv"
"methodOfPayment.csv",
"monetaryValue.csv"
],
"schemas": [
"release-schema.json"
Expand Down
37 changes: 37 additions & 0 deletions release-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"description": "The monetary value of this fee.",
"$ref": "#/definitions/Value"
},
"relativeValue": {
"title": "Relative value",
"description": "The value of the participation fee, as a proportion of the monetary value.",
odscjen marked this conversation as resolved.
Show resolved Hide resolved
"$ref": "#/definitions/RelativeValue"
},
"description": {
"title": "Description",
"description": "Additional information about this fee, for example: the specific cases in which the fee is applicable (e.g. hard copies of documents only), the way in which the fee is levied, or the exact nature of the fee.",
Expand Down Expand Up @@ -73,6 +78,38 @@
"uniqueItems": true
}
}
},
"RelativeValue": {
"title": "Relative value",
"description": "The value of the participation fee, as a proportion of a monetary value.",
"type": "object",
"required": [
"proportion",
"monetaryValue"
],
"properties": {
"proportion": {
"title": "Proportion",
"description": "The percentage of the monetary value, expressed as a decimal proportion between 0 and 1.",
odscjen marked this conversation as resolved.
Show resolved Hide resolved
"type": [
"number"
],
"maximum": 1,
"minimum": 0,
odscjen marked this conversation as resolved.
Show resolved Hide resolved
"exclusiveMinimum": true
},
"monetaryValue": {
"title": "Monetary value",
"description": "The name of the monetary value.",
"type": "string",
"enum": [
"tender",
"award"
],
"codelist": "monetaryValue.csv",
"openCodelist": false
}
}
}
}
}