diff --git a/CanonicalizationMethodType.php b/CanonicalizationMethodType.php new file mode 100644 index 0000000..19db57b --- /dev/null +++ b/CanonicalizationMethodType.php @@ -0,0 +1,32 @@ +any = $any; + $this->Algorithm = $Algorithm; + } + +} diff --git a/DSAKeyValueType.php b/DSAKeyValueType.php new file mode 100644 index 0000000..e16a2ef --- /dev/null +++ b/DSAKeyValueType.php @@ -0,0 +1,77 @@ +P = $P; + $this->Q = $Q; + $this->G = $G; + $this->Y = $Y; + $this->J = $J; + $this->Seed = $Seed; + $this->PgenCounter = $PgenCounter; + } + +} diff --git a/DigestMethodType.php b/DigestMethodType.php new file mode 100644 index 0000000..541f5dc --- /dev/null +++ b/DigestMethodType.php @@ -0,0 +1,32 @@ +any = $any; + $this->Algorithm = $Algorithm; + } + +} diff --git a/KeyInfoType.php b/KeyInfoType.php new file mode 100644 index 0000000..60b455b --- /dev/null +++ b/KeyInfoType.php @@ -0,0 +1,95 @@ +KeyValue = $KeyValue; + $this->RetrievalMethod = $RetrievalMethod; + $this->X509Data = $X509Data; + $this->KeyName = $KeyName; + $this->MgmtData = $MgmtData; + $this->PGPData = $PGPData; + $this->SPKIData = $SPKIData; + $this->any = $any; + $this->Id = $Id; + } + +} diff --git a/KeyValueType.php b/KeyValueType.php new file mode 100644 index 0000000..e1dcf75 --- /dev/null +++ b/KeyValueType.php @@ -0,0 +1,41 @@ +DSAKeyValue = $DSAKeyValue; + $this->RSAKeyValue = $RSAKeyValue; + $this->any = $any; + } + +} diff --git a/ObjectType.php b/ObjectType.php new file mode 100644 index 0000000..4045381 --- /dev/null +++ b/ObjectType.php @@ -0,0 +1,50 @@ +any = $any; + $this->Id = $Id; + $this->MimeType = $MimeType; + $this->Encoding = $Encoding; + } + +} diff --git a/PGPDataType.php b/PGPDataType.php new file mode 100644 index 0000000..b5c51d4 --- /dev/null +++ b/PGPDataType.php @@ -0,0 +1,41 @@ +PGPKeyPacket = $PGPKeyPacket; + $this->PGPKeyID = $PGPKeyID; + $this->any = $any; + } + +} diff --git a/RSAKeyValueType.php b/RSAKeyValueType.php new file mode 100644 index 0000000..cc32f95 --- /dev/null +++ b/RSAKeyValueType.php @@ -0,0 +1,32 @@ +Modulus = $Modulus; + $this->Exponent = $Exponent; + } + +} diff --git a/ReferenceType.php b/ReferenceType.php new file mode 100644 index 0000000..add7c0a --- /dev/null +++ b/ReferenceType.php @@ -0,0 +1,68 @@ +Transforms = $Transforms; + $this->DigestMethod = $DigestMethod; + $this->DigestValue = $DigestValue; + $this->Id = $Id; + $this->URI = $URI; + $this->Type = $Type; + } + +} diff --git a/RetrievalMethodType.php b/RetrievalMethodType.php new file mode 100644 index 0000000..208c4d9 --- /dev/null +++ b/RetrievalMethodType.php @@ -0,0 +1,41 @@ +Transforms = $Transforms; + $this->URI = $URI; + $this->Type = $Type; + } + +} diff --git a/SPKIDataType.php b/SPKIDataType.php new file mode 100644 index 0000000..2f1a2a7 --- /dev/null +++ b/SPKIDataType.php @@ -0,0 +1,32 @@ +SPKISexp = $SPKISexp; + $this->any = $any; + } + +} diff --git a/SignatureMethodType.php b/SignatureMethodType.php new file mode 100644 index 0000000..a1ccbc1 --- /dev/null +++ b/SignatureMethodType.php @@ -0,0 +1,41 @@ +HMACOutputLength = $HMACOutputLength; + $this->any = $any; + $this->Algorithm = $Algorithm; + } + +} diff --git a/SignatureType.php b/SignatureType.php new file mode 100644 index 0000000..96d27f6 --- /dev/null +++ b/SignatureType.php @@ -0,0 +1,59 @@ +SignedInfo = $SignedInfo; + $this->SignatureValue = $SignatureValue; + $this->KeyInfo = $KeyInfo; + $this->Object = $Object; + $this->Id = $Id; + } + +} diff --git a/SignatureValueType.php b/SignatureValueType.php new file mode 100644 index 0000000..c2ffb91 --- /dev/null +++ b/SignatureValueType.php @@ -0,0 +1,32 @@ +_ = $_; + $this->Id = $Id; + } + +} diff --git a/SignedInfoType.php b/SignedInfoType.php new file mode 100644 index 0000000..0453bdc --- /dev/null +++ b/SignedInfoType.php @@ -0,0 +1,50 @@ +CanonicalizationMethod = $CanonicalizationMethod; + $this->SignatureMethod = $SignatureMethod; + $this->Reference = $Reference; + $this->Id = $Id; + } + +} diff --git a/TissVerificaElegibilidade.php b/TissVerificaElegibilidade.php new file mode 100644 index 0000000..85a4267 --- /dev/null +++ b/TissVerificaElegibilidade.php @@ -0,0 +1,114 @@ +WebService para consumo dos prestadores no padrão TISS + * + */ +class TissVerificaElegibilidade extends \SoapClient +{ + + /** + * + * @var array $classmap The defined classes + * @access private + */ + private static $classmap = array( + 'pedidoElegibilidadeWS' => '\\pedidoElegibilidadeWS', + 'cabecalhoTransacao' => '\\cabecalhoTransacao', + 'identificacaoTransacao' => '\\identificacaoTransacao', + 'origem' => '\\origem', + 'identificacaoPrestador' => '\\identificacaoPrestador', + 'destino' => '\\destino', + 'ct_prestadorIdentificacao' => '\\ct_prestadorIdentificacao', + 'assinaturaDigital' => '\\assinaturaDigital', + 'ct_loginSenha' => '\\ct_loginSenha', + 'ct_elegibilidadeVerifica' => '\\ct_elegibilidadeVerifica', + 'ct_contratadoDados' => '\\ct_contratadoDados', + 'respostaElegibilidadeWS' => '\\respostaElegibilidadeWS', + 'ct_respostaElegibilidade' => '\\ct_respostaElegibilidade', + 'ct_motivoGlosa' => '\\ct_motivoGlosa', + 'ct_elegibilidadeRecibo' => '\\ct_elegibilidadeRecibo', + 'SignatureType' => '\\SignatureType', + 'SignedInfoType' => '\\SignedInfoType', + 'CanonicalizationMethodType' => '\\CanonicalizationMethodType', + 'SignatureMethodType' => '\\SignatureMethodType', + 'ReferenceType' => '\\ReferenceType', + 'TransformType' => '\\TransformType', + 'DigestMethodType' => '\\DigestMethodType', + 'SignatureValueType' => '\\SignatureValueType', + 'KeyInfoType' => '\\KeyInfoType', + 'KeyValueType' => '\\KeyValueType', + 'DSAKeyValueType' => '\\DSAKeyValueType', + 'RSAKeyValueType' => '\\RSAKeyValueType', + 'RetrievalMethodType' => '\\RetrievalMethodType', + 'X509DataType' => '\\X509DataType', + 'X509IssuerSerialType' => '\\X509IssuerSerialType', + 'PGPDataType' => '\\PGPDataType', + 'SPKIDataType' => '\\SPKIDataType', + 'ObjectType' => '\\ObjectType'); + + /** + * + * @param array $options A array of config values + * @param string $wsdl The wsdl file to use + * @access public + */ + public function __construct(array $options = array(), $wsdl = 'http://wstiss.qualysystem.com.br/V3_00_01/tissVerificaElegibilidade.asmx?wsdl') + { + foreach (self::$classmap as $key => $value) { + if (!isset($options['classmap'][$key])) { + $options['classmap'][$key] = $value; + } + } + + parent::__construct($wsdl, $options); + } + + /** + * Método extraído de interface dos wsdl (implementa-se o xsd tisswebservicesv3_00_01) + * + * @param pedidoElegibilidadeWS $pedidoElegibilidadeWS + * @access public + * @return respostaElegibilidadeWS + */ + public function tissVerificaElegibilidade_Operation(pedidoElegibilidadeWS $pedidoElegibilidadeWS) + { + return $this->__soapCall('tissVerificaElegibilidade_Operation', array($pedidoElegibilidadeWS)); + } + +} diff --git a/TransformType.php b/TransformType.php new file mode 100644 index 0000000..22ff0f3 --- /dev/null +++ b/TransformType.php @@ -0,0 +1,41 @@ +XPath = $XPath; + $this->any = $any; + $this->Algorithm = $Algorithm; + } + +} diff --git a/X509DataType.php b/X509DataType.php new file mode 100644 index 0000000..1dc7cc5 --- /dev/null +++ b/X509DataType.php @@ -0,0 +1,68 @@ +X509CRL = $X509CRL; + $this->X509Certificate = $X509Certificate; + $this->X509SKI = $X509SKI; + $this->X509SubjectName = $X509SubjectName; + $this->X509IssuerSerial = $X509IssuerSerial; + $this->any = $any; + } + +} diff --git a/X509IssuerSerialType.php b/X509IssuerSerialType.php new file mode 100644 index 0000000..43d3619 --- /dev/null +++ b/X509IssuerSerialType.php @@ -0,0 +1,32 @@ +X509IssuerName = $X509IssuerName; + $this->X509SerialNumber = $X509SerialNumber; + } + +} diff --git a/assinaturaDigital.php b/assinaturaDigital.php new file mode 100644 index 0000000..d733853 --- /dev/null +++ b/assinaturaDigital.php @@ -0,0 +1,15 @@ +identificacaoTransacao = $identificacaoTransacao; + $this->falhaNegocio = $falhaNegocio; + $this->origem = $origem; + $this->destino = $destino; + $this->versaoPadrao = $versaoPadrao; + $this->assinaturaDigital = $assinaturaDigital; + $this->loginSenhaPrestador = $loginSenhaPrestador; + } + +} diff --git a/ct_contratadoDados.php b/ct_contratadoDados.php new file mode 100644 index 0000000..b302cd2 --- /dev/null +++ b/ct_contratadoDados.php @@ -0,0 +1,50 @@ +codigoPrestadorNaOperadora = $codigoPrestadorNaOperadora; + $this->cpfContratado = $cpfContratado; + $this->cnpjContratado = $cnpjContratado; + $this->nomeContratado = $nomeContratado; + } + +} diff --git a/ct_elegibilidadeRecibo.php b/ct_elegibilidadeRecibo.php new file mode 100644 index 0000000..86ce6ba --- /dev/null +++ b/ct_elegibilidadeRecibo.php @@ -0,0 +1,86 @@ +registroANS = $registroANS; + $this->numeroCarteira = $numeroCarteira; + $this->validadeCarteira = $validadeCarteira; + $this->nomeBeneficiario = $nomeBeneficiario; + $this->numeroCNS = $numeroCNS; + $this->identificadorBeneficiario = $identificadorBeneficiario; + $this->respostaSolicitacao = $respostaSolicitacao; + $this->motivosNegativa = $motivosNegativa; + } + +} diff --git a/ct_elegibilidadeVerifica.php b/ct_elegibilidadeVerifica.php new file mode 100644 index 0000000..7fb863f --- /dev/null +++ b/ct_elegibilidadeVerifica.php @@ -0,0 +1,68 @@ +dadosPrestador = $dadosPrestador; + $this->numeroCarteira = $numeroCarteira; + $this->nomeBeneficiario = $nomeBeneficiario; + $this->numeroCNS = $numeroCNS; + $this->identificadorBeneficiario = $identificadorBeneficiario; + $this->validadeCarteira = $validadeCarteira; + } + +} diff --git a/ct_loginSenha.php b/ct_loginSenha.php new file mode 100644 index 0000000..2738ff5 --- /dev/null +++ b/ct_loginSenha.php @@ -0,0 +1,32 @@ +loginPrestador = $loginPrestador; + $this->senhaPrestador = $senhaPrestador; + } + +} diff --git a/ct_motivoGlosa.php b/ct_motivoGlosa.php new file mode 100644 index 0000000..ce38bdf --- /dev/null +++ b/ct_motivoGlosa.php @@ -0,0 +1,32 @@ +codigoGlosa = $codigoGlosa; + $this->descricaoGlosa = $descricaoGlosa; + } + +} diff --git a/ct_prestadorIdentificacao.php b/ct_prestadorIdentificacao.php new file mode 100644 index 0000000..390b792 --- /dev/null +++ b/ct_prestadorIdentificacao.php @@ -0,0 +1,41 @@ +CPF = $CPF; + $this->codigoPrestadorNaOperadora = $codigoPrestadorNaOperadora; + $this->CNPJ = $CNPJ; + } + +} diff --git a/ct_respostaElegibilidade.php b/ct_respostaElegibilidade.php new file mode 100644 index 0000000..661c2b7 --- /dev/null +++ b/ct_respostaElegibilidade.php @@ -0,0 +1,32 @@ +mensagemErro = $mensagemErro; + $this->reciboElegibilidade = $reciboElegibilidade; + } + +} diff --git a/destino.php b/destino.php new file mode 100644 index 0000000..bd384dd --- /dev/null +++ b/destino.php @@ -0,0 +1,32 @@ +registroANS = $registroANS; + $this->identificacaoPrestador = $identificacaoPrestador; + } + +} diff --git a/identificacaoPrestador.php b/identificacaoPrestador.php new file mode 100644 index 0000000..07b4477 --- /dev/null +++ b/identificacaoPrestador.php @@ -0,0 +1,15 @@ +tipoTransacao = $tipoTransacao; + $this->sequencialTransacao = $sequencialTransacao; + $this->dataRegistroTransacao = $dataRegistroTransacao; + $this->horaRegistroTransacao = $horaRegistroTransacao; + } + +} diff --git a/origem.php b/origem.php new file mode 100644 index 0000000..5b61663 --- /dev/null +++ b/origem.php @@ -0,0 +1,32 @@ +identificacaoPrestador = $identificacaoPrestador; + $this->registroANS = $registroANS; + } + +} diff --git a/pedidoElegibilidadeWS.php b/pedidoElegibilidadeWS.php new file mode 100644 index 0000000..ffef3e3 --- /dev/null +++ b/pedidoElegibilidadeWS.php @@ -0,0 +1,41 @@ +cabecalho = $cabecalho; + $this->pedidoElegibilidade = $pedidoElegibilidade; + $this->hash = $hash; + } + +} diff --git a/respostaElegibilidadeWS.php b/respostaElegibilidadeWS.php new file mode 100644 index 0000000..41ec99a --- /dev/null +++ b/respostaElegibilidadeWS.php @@ -0,0 +1,41 @@ +cabecalho = $cabecalho; + $this->respostaElegibilidade = $respostaElegibilidade; + $this->hash = $hash; + } + +}