@@ 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. |
@@ 517-524 (lines=8) @@ | ||
514 | * |
|
515 | * @return \Moip\Resource\Account |
|
516 | */ |
|
517 | public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
|
518 | { |
|
519 | $this->data->person->taxDocument = new stdClass(); |
|
520 | $this->data->person->taxDocument->type = $type; |
|
521 | $this->data->person->taxDocument->number = $number; |
|
522 | ||
523 | return $this; |
|
524 | } |
|
525 | ||
526 | /** |
|
527 | * Set phone from account. |
|
@@ 705-713 (lines=9) @@ | ||
702 | * |
|
703 | * @return $this |
|
704 | */ |
|
705 | public function setCompanyTaxDocument($documentNumber) |
|
706 | { |
|
707 | $this->initializeCompany(); |
|
708 | $this->data->company->taxDocument = new stdClass(); |
|
709 | $this->data->company->taxDocument->type = self::COMPANY_TAX_DOCUMENT; |
|
710 | $this->data->company->taxDocument->number = $documentNumber; |
|
711 | ||
712 | return $this; |
|
713 | } |
|
714 | ||
715 | /** |
|
716 | * Set company tax document. |