|
@@ 293-300 (lines=8) @@
|
| 290 |
|
'Algum dado do intermediário deve ser passado.' |
| 291 |
|
); |
| 292 |
|
} |
| 293 |
|
if (!empty($std->giin)) { |
| 294 |
|
if (preg_match("/^([0-9A-NP-Z]{6}[.][0-9A-NP-Z]{5}[.](LE|SL|ME|BR|" |
| 295 |
|
. "SF|SD|SS|SB|SP)[.][0-9]{3})$/", $std->giin)) { |
| 296 |
|
throw ConsultException::wrongArgument( |
| 297 |
|
'Este GIIN passado não atende a estrutura estabelecida.' |
| 298 |
|
); |
| 299 |
|
} |
| 300 |
|
} |
| 301 |
|
$method = 'ConsultarInformacoesIntermediario'; |
| 302 |
|
$body = "<sped:$method><sped:cnpj>$std->cnpj</sped:cnpj>"; |
| 303 |
|
if (!empty($ginn)) { |
|
@@ 409-416 (lines=8) @@
|
| 406 |
|
'Algum dado do patrocinado deve ser passado.' |
| 407 |
|
); |
| 408 |
|
} |
| 409 |
|
if (!empty($std->giin)) { |
| 410 |
|
if (!preg_match("/^([0-9A-NP-Z]{6}[.][0-9A-NP-Z]{5}[.](LE|SL|ME|BR|SF" |
| 411 |
|
. "|SD|SS|SB|SP)[.][0-9]{3})$/", $std->giin)) { |
| 412 |
|
throw ConsultException::wrongArgument( |
| 413 |
|
'Este GIIN passado não atende a estrutura estabelecida.' |
| 414 |
|
); |
| 415 |
|
} |
| 416 |
|
} |
| 417 |
|
$method = 'ConsultarInformacoesPatrocinado'; |
| 418 |
|
$body = "<sped:$method><sped:cnpj>$std->cnpj</sped:cnpj>"; |
| 419 |
|
if (!empty($std->giin)) { |