forked from LiveCarta/PayPal-PHP-SDK
Update payments API to v1.9
This commit is contained in:
committed by
jaypatel512 and sdcoffey
parent
7c5ea8b997
commit
c2947ff409
@@ -10,11 +10,12 @@ namespace PayPal\Api;
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string phone
|
||||
* @property string type
|
||||
*/
|
||||
class Address extends BaseAddress
|
||||
{
|
||||
/**
|
||||
* Phone number in E.123 format.
|
||||
* Phone number in E.123 format. 50 characters max.
|
||||
*
|
||||
* @param string $phone
|
||||
*
|
||||
@@ -27,7 +28,7 @@ class Address extends BaseAddress
|
||||
}
|
||||
|
||||
/**
|
||||
* Phone number in E.123 format.
|
||||
* Phone number in E.123 format. 50 characters max.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -36,4 +37,26 @@ class Address extends BaseAddress
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
|
||||
*
|
||||
* @param string $type
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user