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