diff --git a/models/ShipModificationTransaction.json b/models/ShipModificationTransaction.json new file mode 100644 index 0000000..eb1e504 --- /dev/null +++ b/models/ShipModificationTransaction.json @@ -0,0 +1,35 @@ +{ + "type": "object", + "properties": { + "waypointSymbol": { + "type": "string", + "description": "The symbol of the waypoint where the transaction took place." + }, + "shipSymbol": { + "type": "string", + "description": "The symbol of the ship that made the transaction." + }, + "tradeSymbol": { + "type": "string", + "description": "The symbol of the trade good." + }, + "totalPrice": { + "type": "integer", + "description": "The total price of the transaction.", + "minimum": 0 + }, + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The timestamp of the transaction." + } + }, + "required": [ + "waypointSymbol", + "shipSymbol", + "tradeSymbol", + "totalPrice", + "timestamp" + ], + "description": "Result of a transaction for a ship modification, such as installing a mount or a module." +} \ No newline at end of file diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 7ce3e30..ec1b028 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -3030,7 +3030,7 @@ "$ref": "../models/ShipCargo.json" }, "transaction": { - "$ref": "../models/ShipyardTransaction.json" + "$ref": "../models/ShipModificationTransaction.json" } } } @@ -3120,7 +3120,7 @@ "$ref": "../models/ShipCargo.json" }, "transaction": { - "$ref": "../models/ShipyardTransaction.json" + "$ref": "../models/ShipModificationTransaction.json" } } }