Enabled Billing Plans and Agreements APIs

- Added API Classes, Samples, and Tests
- Updated Functional Tests
- Updated Documentation with new SDK Name
- Updated Few Samples to use newer nicer result page
This commit is contained in:
japatel
2014-10-31 10:16:13 -05:00
parent f55fd3d984
commit 4d481ad104
192 changed files with 13310 additions and 1045 deletions

View File

@@ -3,7 +3,6 @@
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
/**
* Class HyperSchema
@@ -12,7 +11,7 @@ use PayPal\Rest\ApiContext;
*
* @package PayPal\Api
*
* @property \PayPal\Api\Links links
* @property \PayPal\Api\Links[] links
* @property string fragmentResolution
* @property bool readonly
* @property string contentEncoding
@@ -23,9 +22,8 @@ class HyperSchema extends PPModel
{
/**
* Sets Links
*
*
* @param \PayPal\Api\Links $links
* @param \PayPal\Api\Links[] $links
*
* @return $this
*/
@@ -45,9 +43,38 @@ class HyperSchema extends PPModel
return $this->links;
}
/**
* Append Links to the list.
*
* @param \PayPal\Api\Links $links
* @return $this
*/
public function addLink($links)
{
if (!$this->getLinks()) {
return $this->setLinks(array($links));
} else {
return $this->setLinks(
array_merge($this->getLinks(), array($links))
);
}
}
/**
* Remove Links from the list.
*
* @param \PayPal\Api\Links $links
* @return $this
*/
public function removeLink($links)
{
return $this->setLinks(
array_diff($this->getLinks(), array($links))
);
}
/**
* Sets FragmentResolution
*
*
* @param string $fragmentResolution
*
@@ -71,7 +98,6 @@ class HyperSchema extends PPModel
/**
* Sets Readonly
*
*
* @param bool $readonly
*
@@ -95,7 +121,6 @@ class HyperSchema extends PPModel
/**
* Sets ContentEncoding
*
*
* @param string $contentEncoding
*
@@ -119,7 +144,6 @@ class HyperSchema extends PPModel
/**
* Sets PathStart
*
*
* @param string $pathStart
*
@@ -143,7 +167,6 @@ class HyperSchema extends PPModel
/**
* Sets MediaType
*
*
* @param string $mediaType
*