src/Resource/Account.php 1 location
|
@@ 331-338 (lines=8) @@
|
328 |
|
* |
329 |
|
* @return \Moip\Resource\Account |
330 |
|
*/ |
331 |
|
public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
332 |
|
{ |
333 |
|
$this->data->person->taxDocument = new stdClass(); |
334 |
|
$this->data->person->taxDocument->type = $type; |
335 |
|
$this->data->person->taxDocument->number = $number; |
336 |
|
|
337 |
|
return $this; |
338 |
|
} |
339 |
|
|
340 |
|
/** |
341 |
|
* Set phone from account. |
src/Resource/Customer.php 1 location
|
@@ 379-386 (lines=8) @@
|
376 |
|
* |
377 |
|
* @return $this |
378 |
|
*/ |
379 |
|
public function setTaxDocument($number, $type = self::TAX_DOCUMENT) |
380 |
|
{ |
381 |
|
$this->data->taxDocument = new stdClass(); |
382 |
|
$this->data->taxDocument->type = $type; |
383 |
|
$this->data->taxDocument->number = $number; |
384 |
|
|
385 |
|
return $this; |
386 |
|
} |
387 |
|
|
388 |
|
/** |
389 |
|
* Set phone from customer. |