Skip to content

Commit

Permalink
fallback para 1.0.x com mapeamento novo..
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Merljak committed Mar 13, 2019
1 parent 5376ada commit 6b5071c
Show file tree
Hide file tree
Showing 16 changed files with 1,518 additions and 0 deletions.
319 changes: 319 additions & 0 deletions schemas/cct/consultar-documento-transporte-especifico-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"$id": "http://www.pucomex.serpro.gov.br/cct/consulta-documento-transporte-mic-tif-dtai-dat.schema.json",
"properties": {
"documentosTransporte": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"numeroDocumentoTransporte": {
"type": "string"
},
"tipoDocumentoTransporte": {
"type": "string"
},
"viaTransporte": {
"type": "string"
},
"situacaoAtual": {
"type": "string"
},
"dataEmissao": {
"type": "string"
},
"cpfCnpjTransportador": {
"type": "string"
},
"nomeTransportador": {
"type": "string"
},
"tipoDAT": {
"type": "string"
},
"localOrigem": {
"type": "object",
"properties": {
"urf": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"ra": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"responsavel": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"coordenadas": {
"type": "object",
"properties": {
"latitude": {
"type": "string"
},
"longitude": {
"type": "string"
}
}
}
}
},
"localDestinoPrevisto": {
"type": "object",
"properties": {
"urf": {
"type": "object",
"additionalProperties": false,
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"ra": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"responsavel": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"coordenadas": {
"type": "object",
"properties": {
"latitude": {
"type": "string"
},
"longitude": {
"type": "string"
}
}
}
}
},
"localEstoque": {
"type": "object",
"properties": {
"urf": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"ra": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"responsavel": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
}
},
"coordenadas": {
"type": "object",
"properties": {
"latitude": {
"type": "string"
},
"longitude": {
"type": "string"
}
}
}
}
},
"veiculoFerroviario": {
"type": "object",
"properties": {
"prefixoTrem": {
"type": "string"
},
"quantidadeVagoes": {
"type": "integer"
}
}
},
"veiculoRodoviario": {
"type": "object",
"properties": {
"cpjCnpjResponsavel": {
"type": "string"
},
"nomeResponsavel": {
"type": "string"
},
"veiculo": {
"type": "object",
"properties": {
"nomeCondutor": {
"type": "string"
},
"cpfCondutor": {
"type": "string"
},
"documentoCondutor": {
"type": "string"
},
"placa": {
"type": "string"
},
"tara": {
"type": "number"
},
"lacres": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"reboques": {
"type": "array",
"items": {
"type": "object",
"properties": {
"placa": {
"type": "string"
},
"tara": {
"type": "number"
},
"lacres": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"cargas": {
"type": "array",
"items": {
"type": "object",
"properties": {
"numeroDue": {
"type": "string"
},
"numeroRuc": {
"type": "string"
},
"tipoCarga": {
"codigo": {
"type": "string"
},
"descricao": {
"type": "string"
}
},
"siglaUnidadeMedida": {
"type": "string"
},
"quantidadeManifestada": {
"type": "number"
}
}
}
},
"conteineres": {
"type": "array",
"items": {
"type": "object",
"properties": {
"identificacao": {
"type": "string"
},
"tara": {
"type": "number"
},
"lacres": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"mensagens": {
"type": "array",
"items": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
}
}
}
}
}
}
}
Loading

0 comments on commit 6b5071c

Please sign in to comment.