Enabled EC Parameters support

- Updated Api to enabled EC Parameters
- Updated Tests
- Updated Logging Manager
- Added a feature to do validation on accessors.
This commit is contained in:
japatel
2014-10-09 11:30:12 -05:00
parent 459293838e
commit 61a52e4623
99 changed files with 9148 additions and 3609 deletions

View File

@@ -8,6 +8,10 @@ use PayPal\Rest\ApiContext;
/**
* Class Address
*
* Base Address object used as billing address in a payment or extended for Shipping Address.
*
* @package PayPal\Api
*
* @property string line1
* @property string line2
* @property string city
@@ -19,23 +23,21 @@ use PayPal\Rest\ApiContext;
class Address extends PPModel
{
/**
* Set Line 1
* Address (eg. number, street, etc)
* Line 1 of the Address (eg. number, street, etc).
*
*
* @param string $line1
*
*
* @return $this
*/
public function setLine1($line1)
{
$this->line1 = $line1;
return $this;
}
/**
* Get Line 1
* Address (eg. number, street, etc)
* Line 1 of the Address (eg. number, street, etc).
*
* @return string
*/
@@ -45,23 +47,21 @@ class Address extends PPModel
}
/**
* Set Line 2 (Optional)
* Address (eg. suite, apt #, etc)
* Optional line 2 of the Address (eg. suite, apt #, etc.).
*
*
* @param string $line2
*
*
* @return $this
*/
public function setLine2($line2)
{
$this->line2 = $line2;
return $this;
}
/**
* Get Line 2 (Optional)
* Address (eg. suite, apt #, etc)
* Optional line 2 of the Address (eg. suite, apt #, etc.).
*
* @return string
*/
@@ -71,21 +71,21 @@ class Address extends PPModel
}
/**
* Set City Name
* City name.
*
*
* @param string $city
*
*
* @return $this
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get City Name
* City name.
*
* @return string
*/
@@ -95,23 +95,21 @@ class Address extends PPModel
}
/**
* Set Country Code
* Two Letter
* 2 letter country code.
*
*
* @param string $country_code
*
*
* @return $this
*/
public function setCountryCode($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* Get Country Code
* Two Letter
* 2 letter country code.
*
* @return string
*/
@@ -121,27 +119,22 @@ class Address extends PPModel
}
/**
* Set Country Code
* Two Letter
* 2 letter country code.
*
* @deprecated Instead use setCountryCode
*
* @param string $country_code
*
* @deprecated Use setCountryCode
*
* @return $this
*/
public function setCountry_code($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* Get Country Code
* Two Letter
*
* @deprecated Use getCountryCode
* 2 letter country code.
* @deprecated Instead use getCountryCode
*
* @return string
*/
@@ -151,25 +144,21 @@ class Address extends PPModel
}
/**
* Set Postal Code
* Zip code or equivalent is usually required for countries that have them
* For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
*
*
* @param string $postal_code
*
*
* @return $this
*/
public function setPostalCode($postal_code)
{
$this->postal_code = $postal_code;
return $this;
}
/**
* Get Postal Code
* Zip code or equivalent is usually required for countries that have them
* For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
*
* @return string
*/
@@ -179,29 +168,22 @@ class Address extends PPModel
}
/**
* Set Postal Code
* Zip code or equivalent is usually required for countries that have them
* For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
*
* @deprecated Instead use setPostalCode
*
* @param string $postal_code
*
* @deprecated Use setPostalCode
*
* @return $this
*/
public function setPostal_code($postal_code)
{
$this->postal_code = $postal_code;
return $this;
}
/**
* Get Postal Code
* Zip code or equivalent is usually required for countries that have them
* For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code
*
* @deprecated Use getPostalCode
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
* @deprecated Instead use getPostalCode
*
* @return string
*/
@@ -211,23 +193,21 @@ class Address extends PPModel
}
/**
* Set State
* Two Letter Code for US States and the equivalent for other countries
* 2 letter code for US states, and the equivalent for other countries.
*
*
* @param string $state
*
*
* @return $this
*/
public function setState($state)
{
$this->state = $state;
return $this;
}
/**
* Get State
* Two Letter Code for US States and the equivalent for other countries
* 2 letter code for US states, and the equivalent for other countries.
*
* @return string
*/
@@ -237,11 +217,11 @@ class Address extends PPModel
}
/**
* Set Phone Number
* E.123 format
* Phone number in E.123 format.
*
*
* @param string $phone
*
*
* @return $this
*/
public function setPhone($phone)
@@ -251,8 +231,7 @@ class Address extends PPModel
}
/**
* Get Phone Number
* E.123 format
* Phone number in E.123 format.
*
* @return string
*/
@@ -260,4 +239,5 @@ class Address extends PPModel
{
return $this->phone;
}
}