2022-10-22 18:05:01 +02:00
|
|
|
{
|
2023-06-09 22:50:36 +02:00
|
|
|
"description": "Contract details.",
|
2022-10-22 18:05:01 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string",
|
2023-06-09 22:50:36 +02:00
|
|
|
"minLength": 1,
|
|
|
|
"description": "ID of the contract."
|
2022-10-22 18:05:01 +02:00
|
|
|
},
|
|
|
|
"factionSymbol": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1,
|
|
|
|
"description": "The symbol of the faction that this contract is for."
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"PROCUREMENT",
|
|
|
|
"TRANSPORT",
|
|
|
|
"SHUTTLE"
|
2023-06-09 22:50:36 +02:00
|
|
|
],
|
|
|
|
"description": "Type of contract."
|
2022-10-22 18:05:01 +02:00
|
|
|
},
|
|
|
|
"terms": {
|
2023-12-05 23:00:24 +01:00
|
|
|
"$ref": "./ContractTerms.json"
|
2022-10-22 18:05:01 +02:00
|
|
|
},
|
|
|
|
"accepted": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false,
|
|
|
|
"description": "Whether the contract has been accepted by the agent"
|
|
|
|
},
|
|
|
|
"fulfilled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false,
|
|
|
|
"description": "Whether the contract has been fulfilled"
|
|
|
|
},
|
|
|
|
"expiration": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
2023-05-20 01:41:50 +02:00
|
|
|
"description": "Deprecated in favor of deadlineToAccept",
|
|
|
|
"deprecated": true
|
|
|
|
},
|
|
|
|
"deadlineToAccept": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
|
|
|
"description": "The time at which the contract is no longer available to be accepted"
|
2022-10-22 18:05:01 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"factionSymbol",
|
|
|
|
"type",
|
|
|
|
"terms",
|
|
|
|
"accepted",
|
|
|
|
"fulfilled",
|
2023-12-19 22:44:25 +01:00
|
|
|
"expiration",
|
|
|
|
"deadlineToAccept"
|
2022-10-22 18:05:01 +02:00
|
|
|
]
|
|
|
|
}
|