191 lines
3.5 KiB
PHP
191 lines
3.5 KiB
PHP
<?php
|
|
/**
|
|
* 2007-2020 PayPal
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://opensource.org/licenses/afl-3.0.php
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author 2007-2020 PayPal
|
|
* @author 202 ecommerce <tech@202-ecommerce.com>
|
|
* @copyright PayPal
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
*/
|
|
|
|
namespace PaypalAddons\classes\API\Response;
|
|
|
|
class Address
|
|
{
|
|
/** @var string*/
|
|
protected $city;
|
|
|
|
/** @var string*/
|
|
protected $countryCode;
|
|
|
|
/** @var string*/
|
|
protected $address1;
|
|
|
|
/** @var string*/
|
|
protected $address2;
|
|
|
|
/** @var string*/
|
|
protected $stateCode;
|
|
|
|
/** @var string*/
|
|
protected $phone;
|
|
|
|
/** @var string*/
|
|
protected $postCode;
|
|
|
|
/** @var string*/
|
|
protected $fullName;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFullName()
|
|
{
|
|
return $this->fullName;
|
|
}
|
|
|
|
/**
|
|
* @param string $fullName
|
|
*/
|
|
public function setFullName($fullName)
|
|
{
|
|
$this->fullName = $fullName;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCity()
|
|
{
|
|
return $this->city;
|
|
}
|
|
|
|
/**
|
|
* @param string $city
|
|
*/
|
|
public function setCity($city)
|
|
{
|
|
$this->city = $city;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCountryCode()
|
|
{
|
|
return $this->countryCode;
|
|
}
|
|
|
|
/**
|
|
* @param string $countryCode
|
|
*/
|
|
public function setCountryCode($countryCode)
|
|
{
|
|
$this->countryCode = $countryCode;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getStateCode()
|
|
{
|
|
return $this->stateCode;
|
|
}
|
|
|
|
/**
|
|
* @param string $stateCode
|
|
*/
|
|
public function setStateCode($stateCode)
|
|
{
|
|
$this->stateCode = $stateCode;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPhone()
|
|
{
|
|
return $this->phone;
|
|
}
|
|
|
|
/**
|
|
* @param string $phone
|
|
*/
|
|
public function setPhone($phone)
|
|
{
|
|
$this->phone = $phone;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPostCode()
|
|
{
|
|
return $this->postCode;
|
|
}
|
|
|
|
/**
|
|
* @param string $postCode
|
|
*/
|
|
public function setPostCode($postCode)
|
|
{
|
|
$this->postCode = $postCode;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAddress1()
|
|
{
|
|
return $this->address1;
|
|
}
|
|
|
|
/**
|
|
* @param string $address1
|
|
*/
|
|
public function setAddress1($address1)
|
|
{
|
|
$this->address1 = $address1;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAddress2()
|
|
{
|
|
return $this->address2;
|
|
}
|
|
|
|
/**
|
|
* @param string $address2
|
|
*/
|
|
public function setAddress2($address2)
|
|
{
|
|
$this->address2 = $address2;
|
|
return $this;
|
|
}
|
|
}
|