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