| @@ 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. |
|
| @@ 399-406 (lines=8) @@ | ||
| 396 | * |
|
| 397 | * @return \Moip\Resource\Account |
|
| 398 | */ |
|
| 399 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
| 400 | { |
|
| 401 | $this->data->person->taxDocument = new stdClass(); |
|
| 402 | $this->data->person->taxDocument->type = $type; |
|
| 403 | $this->data->person->taxDocument->number = $number; |
|
| 404 | ||
| 405 | return $this; |
|
| 406 | } |
|
| 407 | ||
| 408 | /** |
|
| 409 | * Set phone from account. |
|
| @@ 587-595 (lines=9) @@ | ||
| 584 | * |
|
| 585 | * @return $this |
|
| 586 | */ |
|
| 587 | public function setCompanyTaxDocument($documentNumber) |
|
| 588 | { |
|
| 589 | $this->initializeCompany(); |
|
| 590 | $this->data->company->taxDocument = new stdClass(); |
|
| 591 | $this->data->company->taxDocument->type = self::COMPANY_TAX_DOCUMENT; |
|
| 592 | $this->data->company->taxDocument->number = $documentNumber; |
|
| 593 | ||
| 594 | return $this; |
|
| 595 | } |
|
| 596 | ||
| 597 | /** |
|
| 598 | * Set company tax document. |
|