| @@ 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. |
|
| @@ 382-389 (lines=8) @@ | ||
| 379 | * |
|
| 380 | * @return \Moip\Resource\Account |
|
| 381 | */ |
|
| 382 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
| 383 | { |
|
| 384 | $this->data->person->taxDocument = new stdClass(); |
|
| 385 | $this->data->person->taxDocument->type = $type; |
|
| 386 | $this->data->person->taxDocument->number = $number; |
|
| 387 | ||
| 388 | return $this; |
|
| 389 | } |
|
| 390 | ||
| 391 | /** |
|
| 392 | * Set phone from account. |
|
| @@ 558-565 (lines=8) @@ | ||
| 555 | * |
|
| 556 | * @return $this |
|
| 557 | */ |
|
| 558 | public function setCompanyTaxDocument($documentNumber) |
|
| 559 | { |
|
| 560 | $this->data->company->taxDocument = new stdClass(); |
|
| 561 | $this->data->company->taxDocument->type = self::COMPANY_TAX_DOCUMENT; |
|
| 562 | $this->data->company->taxDocument->number = $documentNumber; |
|
| 563 | ||
| 564 | return $this; |
|
| 565 | } |
|
| 566 | ||
| 567 | /** |
|
| 568 | * Set company tax document. |
|