|
@@ 589-597 (lines=9) @@
|
| 586 |
|
* |
| 587 |
|
* @return \Moip\Resource\Account |
| 588 |
|
*/ |
| 589 |
|
public function setPhone($areaCode, $number, $countryCode = 55) |
| 590 |
|
{ |
| 591 |
|
$this->data->person->phone = new stdClass(); |
| 592 |
|
$this->data->person->phone->countryCode = $countryCode; |
| 593 |
|
$this->data->person->phone->areaCode = $areaCode; |
| 594 |
|
$this->data->person->phone->number = $number; |
| 595 |
|
|
| 596 |
|
return $this; |
| 597 |
|
} |
| 598 |
|
|
| 599 |
|
/** |
| 600 |
|
* Set identity document from account. |
|
@@ 827-836 (lines=10) @@
|
| 824 |
|
* |
| 825 |
|
* @return \Moip\Resource\Account |
| 826 |
|
*/ |
| 827 |
|
public function setCompanyPhone($areaCode, $number, $countryCode = 55) |
| 828 |
|
{ |
| 829 |
|
$this->initializeCompany(); |
| 830 |
|
$this->data->company->phone = new stdClass(); |
| 831 |
|
$this->data->company->phone->countryCode = $countryCode; |
| 832 |
|
$this->data->company->phone->areaCode = $areaCode; |
| 833 |
|
$this->data->company->phone->number = $number; |
| 834 |
|
|
| 835 |
|
return $this; |
| 836 |
|
} |
| 837 |
|
|
| 838 |
|
/** |
| 839 |
|
* Set account type. Possible values: CONSUMER, MERCHANT. |