src/Resource/Account.php 1 location
|
@@ 327-334 (lines=8) @@
|
| 324 |
|
* |
| 325 |
|
* @return \Moip\Resource\Account |
| 326 |
|
*/ |
| 327 |
|
public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
| 328 |
|
{ |
| 329 |
|
$this->data->person->taxDocument = new stdClass(); |
| 330 |
|
$this->data->person->taxDocument->type = $type; |
| 331 |
|
$this->data->person->taxDocument->number = $number; |
| 332 |
|
|
| 333 |
|
return $this; |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
/** |
| 337 |
|
* Set phone from account. |
src/Resource/Customer.php 1 location
|
@@ 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. |