| @@ 383-390 (lines=8) @@ | ||
| 380 | * |
|
| 381 | * @return $this |
|
| 382 | */ |
|
| 383 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
| 384 | { |
|
| 385 | $this->data->taxDocument = new stdClass(); |
|
| 386 | $this->data->taxDocument->type = $type; |
|
| 387 | $this->data->taxDocument->number = $number; |
|
| 388 | ||
| 389 | return $this; |
|
| 390 | } |
|
| 391 | ||
| 392 | /** |
|
| 393 | * Set phone from customer. |
|
| @@ 527-534 (lines=8) @@ | ||
| 524 | * |
|
| 525 | * @return \Moip\Resource\Account |
|
| 526 | */ |
|
| 527 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
| 528 | { |
|
| 529 | $this->data->person->taxDocument = new stdClass(); |
|
| 530 | $this->data->person->taxDocument->type = $type; |
|
| 531 | $this->data->person->taxDocument->number = $number; |
|
| 532 | ||
| 533 | return $this; |
|
| 534 | } |
|
| 535 | ||
| 536 | /** |
|
| 537 | * Set phone from account. |
|
| @@ 715-723 (lines=9) @@ | ||
| 712 | * |
|
| 713 | * @return $this |
|
| 714 | */ |
|
| 715 | public function setCompanyTaxDocument($documentNumber) |
|
| 716 | { |
|
| 717 | $this->initializeCompany(); |
|
| 718 | $this->data->company->taxDocument = new stdClass(); |
|
| 719 | $this->data->company->taxDocument->type = self::COMPANY_TAX_DOCUMENT; |
|
| 720 | $this->data->company->taxDocument->number = $documentNumber; |
|
| 721 | ||
| 722 | return $this; |
|
| 723 | } |
|
| 724 | ||
| 725 | /** |
|
| 726 | * Set company tax document. |
|