{
"$id":"messages/#UpdateEstimate",
"$schema":"http://json-schema.org/draft-07/schema",
"additionalProperties":false,
"properties":{
"$schema":{
"type":"string"
},
"to":{
"type":"array",
"minItems":1,
"description":"The target company code(s) to send the message to",
"items":{
"type":"string",
"description":"A target company code to send the message to"
}
},
"comment":{
"type":"string",
"description":"Additional comment to attach to the message being sent"
},
"intent":{
"type":"string",
"const":"UpdateEstimate",
"description":""
},
"data":{
"type":"object",
"additionalProperties":false,
"properties":{
"estimateID":{
"type":"string"
},
"vesselCode":{
"type":"string"
},
"voyageCommenceDateLocal":{
"type":"string",
"format":"date-time"
},
"estimateCargoes":{
"type":"array",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"cargoSeq":{
"type":"number"
},
"cargoID":{
"type":"number"
},
"cargoShortName":{
"type":"string"
},
"chartererShortName":{
"type":"string"
},
"cpQty":{
"type":"number"
},
"cargoUnit":{
"type":"string"
},
"freightRateBase":{
"type":"number"
},
"curr":{
"type":"string"
},
"freightType":{
"type":"string"
},
"laycanFromLocal":{
"type":"string",
"format":"date-time"
},
"laycanToLocal":{
"type":"string",
"format":"date-time"
},
"optionPercentage":{
"type":"number"
},
"option":{
"type":"string"
}
}
}
},
"estimateItineraries":{
"type":"array",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"seq":{
"type":"number"
},
"portNo":{
"type":"number"
},
"cargoSeq":{
"type":"number"
},
"portFunction":{
"type":"string"
},
"loadDischargeQuantity":{
"type":"number"
},
"loadDischargeRate":{
"type":"number"
},
"rateUnit":{
"type":"string"
},
"portExpensesBase":{
"type":"number"
},
"weatherFactorPercentage":{
"type":"number"
},
"terms":{
"type":"string"
},
"idleDays":{
"type":"number"
},
"extraPortDays":{
"type":"number"
},
"extraSeaDays":{
"type":"number"
},
"speed":{
"type":"number"
},
"portDays":{
"type":"number"
},
"demurrageDays":{
"type":"number"
}
}
}
},
"categoryID":{
"type":"number"
},
"contractType":{
"type":"string"
},
"commencePort":{
"type":"object",
"additionalProperties":false,
"properties":{
"portNo":{
"type":"number"
},
"name":{
"type":"string"
}
}
},
"weatherFactorPercentage":{
"type":"number"
},
"dailyCost":{
"type":"number"
},
"addressCommission":{
"type":"number"
},
"speedBallast":{
"type":"number"
},
"speedLaden":{
"type":"number"
},
"terminatingPort":{
"type":"string"
},
"lockProfit":{
"type":"boolean"
},
"profit":{
"type":"number"
},
"lockTCE":{
"type":"boolean"
},
"tcE":{
"type":"number"
},
"voyageEstimateBunkers":{
"type":"array",
"items":{
"type":"object",
"additionalProperties":false,
"properties":{
"fuelType":{
"type":"string"
},
"initialPrice":{
"type":"number"
}
}
}
},
"commit":{
"type":"boolean"
},
"initFromBenchmark":{
"type":"boolean"
},
"atSeaBunkerPrice":{
"type":"number"
},
"inPortBunkerPrice":{
"type":"number"
},
"vesselImo":{
"type":"string"
}
}
}
}
} |