| @@ 504-513 (lines=10) @@ | ||
| 501 | * @return Api |
|
| 502 | * @access public |
|
| 503 | */ |
|
| 504 | public function setAdds($value) { |
|
| 505 | $this->adds = $value; |
|
| 506 | ||
| 507 | if (isset($this->adds)) { |
|
| 508 | $this->xml->InstrucaoUnica->Valores->addChild('Acrescimo', $this->adds) |
|
| 509 | ->addAttribute('moeda', 'BRL'); |
|
| 510 | } |
|
| 511 | ||
| 512 | return $this; |
|
| 513 | } |
|
| 514 | ||
| 515 | /** |
|
| 516 | * Method setDeduct() |
|
| @@ 524-533 (lines=10) @@ | ||
| 521 | * @return Api |
|
| 522 | * @access public |
|
| 523 | */ |
|
| 524 | public function setDeduct($value) { |
|
| 525 | $this->deduction = $value; |
|
| 526 | ||
| 527 | if (isset($this->deduction)) { |
|
| 528 | $this->xml->InstrucaoUnica->Valores->addChild('Deducao', $this->deduction) |
|
| 529 | ->addAttribute('moeda', 'BRL'); |
|
| 530 | } |
|
| 531 | ||
| 532 | return $this; |
|
| 533 | } |
|
| 534 | ||
| 535 | /** |
|
| 536 | * Method addMessage() |
|
| @@ 544-551 (lines=8) @@ | ||
| 541 | * @return Api |
|
| 542 | * @access public |
|
| 543 | */ |
|
| 544 | public function addMessage($msg) { |
|
| 545 | if (!isset($this->xml->InstrucaoUnica->Mensagens)) { |
|
| 546 | $this->xml->InstrucaoUnica->addChild('Mensagens'); |
|
| 547 | } |
|
| 548 | ||
| 549 | $this->xml->InstrucaoUnica->Mensagens->addChild('Mensagem', $msg); |
|
| 550 | return $this; |
|
| 551 | } |
|
| 552 | ||
| 553 | /** |
|
| 554 | * Method setReturnURL() |
|