| @@ 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. |
|
| @@ 221-228 (lines=8) @@ | ||
| 218 | * |
|
| 219 | * @return $this |
|
| 220 | */ |
|
| 221 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
| 222 | { |
|
| 223 | $this->data->taxDocument = new stdClass(); |
|
| 224 | $this->data->taxDocument->type = $type; |
|
| 225 | $this->data->taxDocument->number = $number; |
|
| 226 | ||
| 227 | return $this; |
|
| 228 | } |
|
| 229 | ||
| 230 | /** |
|
| 231 | * Set phone from holder. |
|
| @@ 410-417 (lines=8) @@ | ||
| 407 | * |
|
| 408 | * @return $this |
|
| 409 | */ |
|
| 410 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
| 411 | { |
|
| 412 | $this->data->taxDocument = new stdClass(); |
|
| 413 | $this->data->taxDocument->type = $type; |
|
| 414 | $this->data->taxDocument->number = $number; |
|
| 415 | ||
| 416 | return $this; |
|
| 417 | } |
|
| 418 | ||
| 419 | /** |
|
| 420 | * Set tax document (CNPJ) from customer. |
|
| @@ 427-434 (lines=8) @@ | ||
| 424 | * |
|
| 425 | * @return $this |
|
| 426 | */ |
|
| 427 | public function setTaxDocumentPJ($number, $type = self::TAX_DOCUMENT_PJ) |
|
| 428 | { |
|
| 429 | $this->data->taxDocument = new stdClass(); |
|
| 430 | $this->data->taxDocument->type = $type; |
|
| 431 | $this->data->taxDocument->number = $number; |
|
| 432 | ||
| 433 | return $this; |
|
| 434 | } |
|
| 435 | ||
| 436 | /** |
|
| 437 | * Set phone from customer. |
|