mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-11-14 22:30:51 +01:00
50 lines
1.0 KiB
JSON
50 lines
1.0 KiB
JSON
{
|
|
"description": "",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"factionSymbol": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"description": "The symbol of the faction that this contract is for."
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"PROCUREMENT",
|
|
"TRANSPORT",
|
|
"SHUTTLE"
|
|
]
|
|
},
|
|
"terms": {
|
|
"$ref": "./ContractTerms.json"
|
|
},
|
|
"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",
|
|
"description": "The time at which the contract expires"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"factionSymbol",
|
|
"type",
|
|
"terms",
|
|
"accepted",
|
|
"fulfilled",
|
|
"expiration"
|
|
]
|
|
} |