src/Resource/CustomerCreditCard.php 1 location
|
@@ 208-215 (lines=8) @@
|
| 205 |
|
* |
| 206 |
|
* @return $this |
| 207 |
|
*/ |
| 208 |
|
public function setPhone($country_code, $area_code, $number) |
| 209 |
|
{ |
| 210 |
|
$this->data->creditCard->holder->phone->countryCode = $country_code; |
| 211 |
|
$this->data->creditCard->holder->phone->areaCode = $area_code; |
| 212 |
|
$this->data->creditCard->holder->phone->number = $number; |
| 213 |
|
|
| 214 |
|
return $this; |
| 215 |
|
} |
| 216 |
|
} |
| 217 |
|
|
src/Resource/Account.php 1 location
|
@@ 396-404 (lines=9) @@
|
| 393 |
|
* |
| 394 |
|
* @return \Moip\Resource\Account |
| 395 |
|
*/ |
| 396 |
|
public function setPhone($areaCode, $number, $countryCode = 55) |
| 397 |
|
{ |
| 398 |
|
$this->data->person->phone = new stdClass(); |
| 399 |
|
$this->data->person->phone->countryCode = $countryCode; |
| 400 |
|
$this->data->person->phone->areaCode = $areaCode; |
| 401 |
|
$this->data->person->phone->number = $number; |
| 402 |
|
|
| 403 |
|
return $this; |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
/** |
| 407 |
|
* Set identity document from account. |