src/Resource/Account.php 1 location
|
@@ 345-353 (lines=9) @@
|
342 |
|
* |
343 |
|
* @return \Moip\Resource\Account |
344 |
|
*/ |
345 |
|
public function setPhone($areaCode, $number, $countryCode = 55) |
346 |
|
{ |
347 |
|
$this->data->person->phone = new stdClass(); |
348 |
|
$this->data->person->phone->countryCode = $countryCode; |
349 |
|
$this->data->person->phone->areaCode = $areaCode; |
350 |
|
$this->data->person->phone->number = $number; |
351 |
|
|
352 |
|
return $this; |
353 |
|
} |
354 |
|
|
355 |
|
/** |
356 |
|
* Set identity document from account. |
src/Resource/CustomerCreditCard.php 1 location
|
@@ 210-217 (lines=8) @@
|
207 |
|
* |
208 |
|
* @return $this |
209 |
|
*/ |
210 |
|
public function setPhone($country_code, $area_code, $number) |
211 |
|
{ |
212 |
|
$this->data->creditCard->holder->phone->countryCode = $country_code; |
213 |
|
$this->data->creditCard->holder->phone->areaCode = $area_code; |
214 |
|
$this->data->creditCard->holder->phone->number = $number; |
215 |
|
|
216 |
|
return $this; |
217 |
|
} |
218 |
|
} |