Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adicionar estrutura base para funcionamento do composer no módulo #583

Open
wants to merge 18 commits into
base: release/3.7.0
Choose a base branch
from

Conversation

mrglaydson
Copy link
Contributor

@mrglaydson mrglaydson commented Aug 16, 2024

  • Estruturar base para funcionamento de pacotes instalados pelo o composer no módulo
  • Adicionar Guzzle ^7.0 no composer do módulo
  • Execultar autodamp

Closes #626
Closes #601
Closes #371
Closes #579

src/rn/ExpedirProcedimentoRN.php Show resolved Hide resolved
src/rn/ExpedirProcedimentoRN.php Outdated Show resolved Hide resolved
src/rn/EnviarReciboTramiteRN.php Show resolved Hide resolved
src/rn/ExpedirProcedimentoRN.php Show resolved Hide resolved
src/rn/ProcessoEletronicoRN.php Outdated Show resolved Hide resolved
$naoRespEstruturaOrg = 'Transa��o n�o autorizada, pois o sistema n�o � respons�vel pela estrutura organizacional remetente';
if (InfraString::formatarJavaScript(utf8_decode($e->faultstring)) == $naoRespEstruturaOrg) {
$strMensagem = "Por favor, observe o seguinte procedimento para realizar o mapeamento adequado: Acesse a funcionalidade Administra��o, em seguida selecione Tramita GOV.BR e, por fim, proceda ao mapeamento utilizando somente as unidades pertinentes ao seu �rg�o/entidade na funcionalidade Mapeamento de Unidades. Certifique-se de seguir esse processo para garantir a correta execu��o do mapeamento.";
} else {
$strMensagem = str_replace(array("\n", "\r"), ' ', InfraString::formatarJavaScript(utf8_decode($e->faultstring)));
}
if ($e instanceof \SoapFault && !empty($e->detail->interoperabilidadeException->codigoErro) && $e->detail->interoperabilidadeException->codigoErro == '0005') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O código do erro continua nesse caminho?

@caduvieira caduvieira changed the base branch from master to release/3.7.0 September 20, 2024 12:30
'protocolo' => $parStrProtocolo,
]);

// if (!is_null($parObjParteComponente)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar código comentado

@@ -1081,8 +868,63 @@ private function atribuirInformacoesAssunto($objCabecalho, $dblIdProcedimento)

}

// public function enviarComponenteDigital($parametros)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar código comentado

$result = $this->tentarNovamenteSobErroHTTP(function($objPenWs) use ($parametros) {
return $objPenWs->consultarRepositoriosDeEstruturas($parametros);
});
// private function getObjPenWs()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar código comentado

$this->objPenWs = new BeSimple\SoapClient\SoapClient($strWSDL, $this->options);

// TODO: lembrar de pegar url dinamicamente quando SOAP for removido
$this->strBaseUri = 'https://homolog.api.processoeletronico.gov.br';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deveria pegar do arquivo de configuração do módulo.

)
);

$strWSDL = $this->strEnderecoWebService . '/interoperabilidade/soap/v3/?wsdl';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não entendi. Vai continuar usando o SOAP?

'protocolo' => $parStrProtocolo,
];

// if (!is_null($parObjParteComponente)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar código comentado.

$envioDeReciboDeTramite = [
'dataDeRecebimento' => $parDthRecebimento,
'hashDaAssinatura' => $strHashDaAssinaturaBase64,
// 'hashDaAssinaturaAsBytes' => $strHashDaAssinaturaBase64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar código comentado.

@@ -36,9 +36,9 @@ public function getArrConfiguracoes()
"PEN" => array(
// Endere�o do Web Service principal de integra��o com o Barramento de Servi�os do PEN
// Os endere�os dispon�veis s�o os seguintes (verifique se houve atualiza��es durante o procedimento de instala��o):
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/soap/v3/
// - Homologa��o: https://homolog.api.processoeletronico.gov.br
// - Produ��o: https://api.conectagov.processoeletronico.gov.br/interoperabilidade/soap/v3/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atualizar o exemplo do caminho do REST para produção.

@@ -36,9 +36,9 @@ public function getArrConfiguracoes()
"PEN" => array(
// Endere�o do Web Service principal de integra��o com o Barramento de Servi�os do PEN
// Os endere�os dispon�veis s�o os seguintes (verifique se houve atualiza��es durante o procedimento de instala��o):
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/soap/v3/
// - Homologa��o: https://homolog.api.processoeletronico.gov.br
// - Produ��o: https://api.conectagov.processoeletronico.gov.br/interoperabilidade/soap/v3/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atualizar o exemplo do caminho do REST para produção.

@@ -36,9 +36,9 @@ public function getArrConfiguracoes()
"PEN" => array(
// Endere�o do Web Service principal de integra��o com o Barramento de Servi�os do PEN
// Os endere�os dispon�veis s�o os seguintes (verifique se houve atualiza��es durante o procedimento de instala��o):
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/soap/v3/
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/rest/v3/
// - Produ��o: https://api.conectagov.processoeletronico.gov.br/interoperabilidade/soap/v3/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atualizar o exemplo do caminho do REST para produção.

if($documentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){
$documento->hipoteseLegal = new stdClass();
$documento->hipoteseLegal->identificacao = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($documentoDTO->getNumIdHipoteseLegalProtocolo());
$documento['hipoteseLegal'] = []; // Inicializando a chave 'hipoteseLegal' como um array
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O correto não seria manter a atribuição como "array()"?

$documento->produtor = new stdClass();
$documento['dataHoraDeProducao'] = $this->objProcessoEletronicoRN->converterDataWebService($documentoDTO->getDtaGeracaoProtocolo());
$documento['dataHoraDeRegistro'] = $this->objProcessoEletronicoRN->converterDataWebService($documentoDTO->getDtaGeracaoProtocolo());
$documento['produtor'] = []; // Inicializando a chave 'produtor' como um array
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O correto não seria manter a atribuição como "array()"?

src/rn/ExpedirProcedimentoRN.php Show resolved Hide resolved
src/rn/ExpedirProcedimentoRN.php Show resolved Hide resolved
$arrEstruturasCadastradas[] = $result->estruturasEncontradas->estrutura;
public function listarRepositoriosDeEstruturas()
{
$arrObjRepositorioDTO = [];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O correto não seria manter a atribuição como "array()"?

"Tests\\": "sei/"
}
},

"require-dev": {
"phpunit/phpunit": "8.*",
"phpunit/php-code-coverage": "*",
"phpunit/phpunit-selenium": "*",
"besimple/soap": "*",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar do composer.

@@ -24,6 +24,7 @@
"phpunit/phpunit-selenium": "*",
"besimple/soap": "*",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retirar do composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants