mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-10 21:08:41 +00:00
134 lines
2.4 KiB
PHP
134 lines
2.4 KiB
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PayPalModel;
|
|
|
|
/**
|
|
* Class OpenIdAddress
|
|
*
|
|
* End-User's preferred address.
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property string street_address
|
|
* @property string locality
|
|
* @property string region
|
|
* @property string postal_code
|
|
* @property string country
|
|
*/
|
|
class OpenIdAddress extends PayPalModel
|
|
{
|
|
/**
|
|
* Full street address component, which may include house number, street name.
|
|
*
|
|
* @param string $street_address
|
|
* @return self
|
|
*/
|
|
public function setStreetAddress($street_address)
|
|
{
|
|
$this->street_address = $street_address;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Full street address component, which may include house number, street name.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getStreetAddress()
|
|
{
|
|
return $this->street_address;
|
|
}
|
|
|
|
/**
|
|
* City or locality component.
|
|
*
|
|
* @param string $locality
|
|
* @return self
|
|
*/
|
|
public function setLocality($locality)
|
|
{
|
|
$this->locality = $locality;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* City or locality component.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLocality()
|
|
{
|
|
return $this->locality;
|
|
}
|
|
|
|
/**
|
|
* State, province, prefecture or region component.
|
|
*
|
|
* @param string $region
|
|
* @return self
|
|
*/
|
|
public function setRegion($region)
|
|
{
|
|
$this->region = $region;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* State, province, prefecture or region component.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getRegion()
|
|
{
|
|
return $this->region;
|
|
}
|
|
|
|
/**
|
|
* Zip code or postal code component.
|
|
*
|
|
* @param string $postal_code
|
|
* @return self
|
|
*/
|
|
public function setPostalCode($postal_code)
|
|
{
|
|
$this->postal_code = $postal_code;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Zip code or postal code component.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPostalCode()
|
|
{
|
|
return $this->postal_code;
|
|
}
|
|
|
|
/**
|
|
* Country name component.
|
|
*
|
|
* @param string $country
|
|
* @return self
|
|
*/
|
|
public function setCountry($country)
|
|
{
|
|
$this->country = $country;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Country name component.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCountry()
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
|
|
}
|