diff --git a/README.md b/README.md index 0ed6be5..a1ab942 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,33 @@ This repository contains PayPal's PHP SDK and samples for REST API. - PHP 5.3 or above - [curl](http://php.net/manual/en/book.curl.php), [json](http://php.net/manual/en/book.json.php) & [openssl](http://php.net/manual/en/book.openssl.php) extensions must be enabled +## Breaking Changes to 1.* Release + * Removed Deprecated Getter Setters from all Model Classes + * All Camelcase getters and setters are removed. Please use first letter uppercase syntax + * E.g. instead of using get_notify_url(), use getNotifyUrl() instead + * Renamed Classes + * PayPal\Common\PPModel => PayPal\Common\PayPalModel + * PayPal\Common\ResourceModel => PayPal\Common\PayPalResourceModel + * PayPal\Common\PPUserAgent => PayPal\Common\PayPalUserAgent + * PayPal\Core\PPConfigManager => PayPal\Core\PayPalConfigManager + * PayPal\Core\PPConstants => PayPal\Core\PayPalConstants + * PayPal\Core\PPCredentialManager => PayPal\Core\PayPalCredentialManager + * PayPal\Core\PPHttpConfig => PayPal\Core\PayPalHttpConfig + * PayPal\Core\PPHttpConnection => PayPal\Core\PayPalHttpConnection + * PayPal\Core\PPLoggingLevel => PayPal\Core\PayPalLoggingLevel + * PayPal\Core\PPLoggingManager => PayPal\Core\PayPalLoggingManager + * PayPal\Exception\PPConfigurationException => PayPal\Exception\PayPalConfigurationException + * PayPal\Exception\PPConnectionException => PayPal\Exception\PayPalConnectionException + * PayPal\Exception\PPInvalidCredentialException => PayPal\Exception\PayPalInvalidCredentialException + * PayPal\Exception\PPMissingCredentialException => PayPal\Exception\PayPalMissingCredentialException + * PayPal\Handler\IPPHandler => PayPal\Handler\IPayPalHandler + * PayPal\Transport\PPRestCall => PayPal\Transport\PayPalRestCall + * Namespace Changes and Class Naming Convention + * PayPal\Common\FormatConverter => PayPal\Converter\FormatConverter + * PayPal\Rest\RestHandler => PayPal\Handler\RestHandler + * PayPal\Rest\OauthHandler => PayPal\Handler\OauthHandler + + ## Installation ### - Using Composer diff --git a/lib/PayPal/Common/PayPalModel.php b/lib/PayPal/Common/PayPalModel.php index 681d89d..1f294a0 100644 --- a/lib/PayPal/Common/PayPalModel.php +++ b/lib/PayPal/Common/PayPalModel.php @@ -14,6 +14,24 @@ class PayPalModel private $_propMap = array(); + /** + * OAuth Credentials to use for this call + * + * @var \PayPal\Auth\OAuthTokenCredential $credential + */ + protected static $credential; + + /** + * Sets Credential + * + * @deprecated Pass ApiContext to create/get methods instead + * @param \PayPal\Auth\OAuthTokenCredential $credential + */ + public static function setCredential($credential) + { + self::$credential = $credential; + } + /** * Default Constructor * diff --git a/lib/PayPal/Common/PayPalResourceModel.php b/lib/PayPal/Common/PayPalResourceModel.php index bc88ace..6b9ec01 100644 --- a/lib/PayPal/Common/PayPalResourceModel.php +++ b/lib/PayPal/Common/PayPalResourceModel.php @@ -17,24 +17,6 @@ use PayPal\Transport\PayPalRestCall; class PayPalResourceModel extends PayPalModel implements IResource { - /** - * OAuth Credentials to use for this call - * - * @var \PayPal\Auth\OAuthTokenCredential $credential - */ - protected static $credential; - - /** - * Sets Credential - * - * @deprecated Pass ApiContext to create/get methods instead - * @param \PayPal\Auth\OAuthTokenCredential $credential - */ - public static function setCredential($credential) - { - self::$credential = $credential; - } - /** * Sets Links * diff --git a/lib/PayPal/Core/PayPalConstants.php b/lib/PayPal/Core/PayPalConstants.php index 0b59682..8ce1277 100644 --- a/lib/PayPal/Core/PayPalConstants.php +++ b/lib/PayPal/Core/PayPalConstants.php @@ -12,7 +12,7 @@ class PayPalConstants { const SDK_NAME = 'PayPal-PHP-SDK'; - const SDK_VERSION = '1.0.0-beta'; + const SDK_VERSION = '1.0.0'; /** * Approval URL for Payment diff --git a/release_notes.md b/release_notes.md index 37b4709..b110911 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,5 +1,40 @@ PayPal PHP SDK release notes ============================ +v1.0.0 +---- +* Enabled Payouts API Support +* Authorization Cache Custom Path Directory Configuration +* Helper Functions to retrieve specific HATEOS Links +* Default Mode set to Sandbox +* Enabled Rest SDK to work nicely with Classic SDKs. +* If missing annotation of return type in Getters, it throws a proper exception + +> ## Breaking Changes +* Removed Deprecated Getter Setters from all Model Classes + * All Camelcase getters and setters are removed. Please use first letter uppercase syntax + * E.g. instead of using get_notify_url(), use getNotifyUrl() instead +* Renamed Classes + * PayPal\Common\PPModel => PayPal\Common\PayPalModel + * PayPal\Common\ResourceModel => PayPal\Common\PayPalResourceModel + * PayPal\Common\PPUserAgent => PayPal\Common\PayPalUserAgent + * PayPal\Core\PPConfigManager => PayPal\Core\PayPalConfigManager + * PayPal\Core\PPConstants => PayPal\Core\PayPalConstants + * PayPal\Core\PPCredentialManager => PayPal\Core\PayPalCredentialManager + * PayPal\Core\PPHttpConfig => PayPal\Core\PayPalHttpConfig + * PayPal\Core\PPHttpConnection => PayPal\Core\PayPalHttpConnection + * PayPal\Core\PPLoggingLevel => PayPal\Core\PayPalLoggingLevel + * PayPal\Core\PPLoggingManager => PayPal\Core\PayPalLoggingManager + * PayPal\Exception\PPConfigurationException => PayPal\Exception\PayPalConfigurationException + * PayPal\Exception\PPConnectionException => PayPal\Exception\PayPalConnectionException + * PayPal\Exception\PPInvalidCredentialException => PayPal\Exception\PayPalInvalidCredentialException + * PayPal\Exception\PPMissingCredentialException => PayPal\Exception\PayPalMissingCredentialException + * PayPal\Handler\IPPHandler => PayPal\Handler\IPayPalHandler + * PayPal\Transport\PPRestCall => PayPal\Transport\PayPalRestCall +* Namespace Changes and Class Naming Convention + * PayPal\Common\FormatConverter => PayPal\Converter\FormatConverter + * PayPal\Rest\RestHandler => PayPal\Handler\RestHandler + * PayPal\Rest\OauthHandler => PayPal\Handler\OauthHandler + v1.0.0-beta ---- * Namespace Changes and Class Naming Convention