From d62e8db407827229c6c7aabfa54792d0113b99e4 Mon Sep 17 00:00:00 2001
From: Bhavani Bheemanadham
Date: Fri, 15 Jul 2016 15:42:18 -0500
Subject: [PATCH] Preparing for 1.7.4
- Updated Changelog
- Updated PayPalConstants.php with latest version
- Added new line at the end of file
---
CHANGELOG.md | 254 +++++++++---------
lib/PayPal/Core/PayPalConstants.php | 2 +-
.../CreateBillingAgreementWithCreditCard.html | 2 +-
.../CreateBillingAgreementWithPayPal.html | 2 +-
sample/doc/billing/CreatePlan.html | 2 +-
sample/doc/billing/DeletePlan.html | 2 +-
sample/doc/billing/ExecuteAgreement.html | 2 +-
sample/doc/billing/GetBillingAgreement.html | 2 +-
sample/doc/billing/GetPlan.html | 2 +-
sample/doc/billing/ListPlans.html | 2 +-
.../billing/ReactivateBillingAgreement.html | 2 +-
.../billing/SearchBillingTransactions.html | 2 +-
.../doc/billing/SuspendBillingAgreement.html | 2 +-
.../doc/billing/UpdateBillingAgreement.html | 2 +-
sample/doc/billing/UpdatePlan.html | 2 +-
.../billing/UpdatePlanPaymentDefinitions.html | 2 +-
sample/doc/invoice/CancelInvoice.html | 2 +-
sample/doc/invoice/CreateInvoice.html | 2 +-
.../doc/invoice/CreateThirdPartyInvoice.html | 2 +-
sample/doc/invoice/DeleteInvoice.html | 2 +-
sample/doc/invoice/GetInvoice.html | 2 +-
sample/doc/invoice/GetNextInvoiceNumber.html | 2 +-
sample/doc/invoice/ListInvoice.html | 2 +-
sample/doc/invoice/RecordPayment.html | 2 +-
sample/doc/invoice/RecordRefund.html | 2 +-
sample/doc/invoice/RemindInvoice.html | 2 +-
sample/doc/invoice/RetrieveQRCode.html | 2 +-
sample/doc/invoice/SearchInvoices.html | 2 +-
sample/doc/invoice/SendInvoice.html | 2 +-
sample/doc/invoice/UpdateInvoice.html | 2 +-
.../GenerateAccessTokenFromRefreshToken.html | 2 +-
sample/doc/lipp/GetUserInfo.html | 2 +-
sample/doc/lipp/ObtainUserConsent.html | 2 +-
sample/doc/lipp/UserConsentRedirect.html | 2 +-
sample/doc/notifications/CreateWebhook.html | 2 +-
.../doc/notifications/DeleteAllWebhooks.html | 2 +-
sample/doc/notifications/DeleteWebhook.html | 2 +-
sample/doc/notifications/GetWebhook.html | 2 +-
.../ListSubscribedWebhookEventTypes.html | 2 +-
sample/doc/notifications/ListWebhooks.html | 2 +-
.../notifications/SearchWebhookEvents.html | 2 +-
sample/doc/notifications/UpdateWebhook.html | 2 +-
.../notifications/ValidateWebhookEvent.html | 2 +-
.../notifications/WebhookEventTypesList.html | 2 +-
.../payment-experience/CreateWebProfile.html | 2 +-
.../payment-experience/DeleteWebProfile.html | 2 +-
.../doc/payment-experience/GetWebProfile.html | 2 +-
.../payment-experience/ListWebProfiles.html | 2 +-
.../PartiallyUpdateWebProfile.html | 2 +-
.../payment-experience/UpdateWebProfile.html | 2 +-
sample/doc/payments/AuthorizationCapture.html | 2 +-
sample/doc/payments/AuthorizePayment.html | 2 +-
.../payments/AuthorizePaymentUsingPayPal.html | 2 +-
sample/doc/payments/CreateFuturePayment.html | 2 +-
sample/doc/payments/CreatePayment.html | 2 +-
.../payments/CreatePaymentUsingPayPal.html | 2 +-
.../payments/CreatePaymentUsingSavedCard.html | 2 +-
sample/doc/payments/ExecutePayment.html | 2 +-
sample/doc/payments/GetAuthorization.html | 2 +-
sample/doc/payments/GetCapture.html | 2 +-
sample/doc/payments/GetPayment.html | 2 +-
sample/doc/payments/ListPayments.html | 2 +-
sample/doc/payments/OrderAuthorize.html | 2 +-
sample/doc/payments/OrderCapture.html | 2 +-
.../payments/OrderCreateForAuthorization.html | 2 +-
.../doc/payments/OrderCreateForCapture.html | 2 +-
sample/doc/payments/OrderCreateForVoid.html | 2 +-
.../doc/payments/OrderCreateUsingPayPal.html | 2 +-
sample/doc/payments/OrderDoVoid.html | 2 +-
sample/doc/payments/OrderGet.html | 2 +-
sample/doc/payments/Reauthorization.html | 2 +-
sample/doc/payments/RefundCapture.html | 2 +-
sample/doc/payments/UpdatePayment.html | 2 +-
sample/doc/payments/VoidAuthorization.html | 2 +-
sample/doc/payouts/CancelPayoutItem.html | 2 +-
sample/doc/payouts/CreateBatchPayout.html | 2 +-
sample/doc/payouts/CreateSinglePayout.html | 2 +-
sample/doc/payouts/GetPayoutBatchStatus.html | 2 +-
sample/doc/payouts/GetPayoutItemStatus.html | 2 +-
sample/doc/sale/GetSale.html | 2 +-
sample/doc/sale/RefundSale.html | 2 +-
sample/doc/tls/TlsCheck.html | 2 +-
sample/doc/vault/CreateBankAccount.html | 2 +-
sample/doc/vault/CreateCreditCard.html | 2 +-
sample/doc/vault/DeleteBankAccount.html | 2 +-
sample/doc/vault/DeleteCreditCard.html | 2 +-
sample/doc/vault/GetBankAccount.html | 2 +-
sample/doc/vault/GetCreditCard.html | 2 +-
sample/doc/vault/ListCreditCards.html | 2 +-
sample/doc/vault/UpdateCreditCard.html | 2 +-
90 files changed, 219 insertions(+), 213 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b95e14b..881ce26 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,18 +1,24 @@
PayPal PHP SDK release notes
============================
+1.7.4
+-----
+* Fixed Duplicate conditional expression in PayPalCredentialManager.php [#594](https://github.com/paypal/PayPal-PHP-SDK/pull/594).
+* Updated Invoicing APIs [#605](https://github.com/paypal/PayPal-PHP-SDK/pull/605).
+* Fixed PSR code style errors [#607](https://github.com/paypal/PayPal-PHP-SDK/pull/607).
+
1.7.3
-----
-* Enabled Third Party Invoicing [#581](https://github.com/paypal/PayPal-PHP-SDK/pull/581)
+* Enabled Third Party Invoicing [#581](https://github.com/paypal/PayPal-PHP-SDK/pull/581).
1.7.2
----
-* Vault API updates
-* Fixes #575
+* Vault API updates.
+* Fixes #575.
1.7.1
----
-* Fixes #559
+* Fixes #559.
1.7.0
----
@@ -21,236 +27,236 @@ PayPal PHP SDK release notes
1.6.4
----
-* SSL Connect Error Fix
-* Fixes #474
+* SSL Connect Error Fix.
+* Fixes #474.
1.6.3
----
-* Fixes Continue 100 Header
-* Minor Bug Fixes #452
+* Fixes Continue 100 Header.
+* Minor Bug Fixes #452.
1.6.2
----
-* TLS Check Sample Added
-* Updated README
+* TLS Check Sample Added.
+* Updated README.
1.6.1
----
-* User Agent Changes
-* SDK Version Fix
+* User Agent Changes.
+* SDK Version Fix.
1.6.0
----
-* Updated Payments API to latest version
-* Removed ModelAccessValidator
-* Minor Bug Fixes #399
+* Updated Payments API to latest version.
+* Removed ModelAccessValidator.
+* Minor Bug Fixes #399.
1.5.1
----
-* Fixed a bug #343 in Future Payment
-* Minor Improvements
-* Updates to Sample Docs
+* Fixed a bug #343 in Future Payment.
+* Minor Improvements.
+* Updates to Sample Docs.
1.5.0
----
-* Enabled Vault List API
-* Added More Fields to Vault Credit Card Object
-* Minor Fixes
+* Enabled Vault List API.
+* Added More Fields to Vault Credit Card Object.
+* Minor Fixes.
1.4.0
----
-* Ability to validate Webhook
-* Fixes to Logging Manager to skip if mode is not set
-* SDK updates and fixes
+* Ability to validate Webhook.
+* Fixes to Logging Manager to skip if mode is not set.
+* SDK updates and fixes.
1.3.2
----
-* Minor Fix for Agreement Details
+* Minor Fix for Agreement Details.
1.3.1
----
-* PayPalModel to differentiate between empty objects and array
-* Fixed CURLINFO_HEADER_SIZE miscalculations if Proxy Enabled
+* PayPalModel to differentiate between empty objects and array.
+* Fixed CURLINFO_HEADER_SIZE miscalculations if Proxy Enabled.
1.3.0
----
-* Updated Payment APIs
-* Updating ModelAccessValidator to be disabled if not set explicitly
+* Updated Payment APIs.
+* Updating ModelAccessValidator to be disabled if not set explicitly.
1.2.1
----
-* Ability to handle missing accessors for unknown objects in json
+* Ability to handle missing accessors for unknown objects in json.
1.2.0
----
-* Order API Support
+* Order API Support.
* Introduced DEBUG mode in Logging. Deprecated FINE.
-* Ability to not Log on DEBUG, while on live environment
-* Vault APIs Update API Support
-* Transaction Fee Added in Sale Object
-* Fixed #237, #234, #233, #215
+* Ability to not Log on DEBUG, while on live environment.
+* Vault APIs Update API Support.
+* Transaction Fee Added in Sale Object.
+* Fixed #237, #234, #233, #215.
1.1.1
----
-* Fix to Cipher Encryption (Critical)
+* Fix to Cipher Encryption (Critical).
1.1.0
----
-* Enabled Payouts Cancel API Support for Unclaimed Payouts
-* Encrypting Access Token in Cached Storage
-* Updated Billing Agreement Search Transaction code to pass start_date and end_date
-* Updated OAuthToken to throw proper error on not receiving access token
-* Minor Bug Fixes and Documentation Updates
+* Enabled Payouts Cancel API Support for Unclaimed Payouts.
+* Encrypting Access Token in Cached Storage.
+* Updated Billing Agreement Search Transaction code to pass start_date and end_date.
+* Updated OAuthToken to throw proper error on not receiving access token.
+* Minor Bug Fixes and Documentation Updates.
1.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 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
-* `echo` on PayPalModel Objects will print nice looking JSON
-* Updated Invoice Object to retrieve payments and refunds
+* If missing annotation of return type in Getters, it throws a proper exception.
+* `echo` on PayPalModel Objects will print nice looking JSON.
+* Updated Invoice Object to retrieve payments and refunds.
> ## 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
-* Fixes to Methods
- * PayPal\Api\Invoice->getPaymentDetails() was renamed to getPayments()
- * PayPal\Api\Invoice->getRefundDetails() was renamed to getRefunds()
+* 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.
+* Fixes to Methods.
+ * PayPal\Api\Invoice->getPaymentDetails() was renamed to getPayments().
+ * PayPal\Api\Invoice->getRefundDetails() was renamed to getRefunds().
1.0.0-beta
----
-* Namespace Changes and Class Naming Convention
-* Helper Functions to retrieve specific HATEOS Links
-* Default Mode set to Sandbox
+* Namespace Changes and Class Naming Convention.
+* Helper Functions to retrieve specific HATEOS Links.
+* Default Mode set to Sandbox.
0.16.1
----
-* Configurable Headers for all requests to PayPal
-* Allows adding additional headers to every call to PayPal APIs
-* SDK Config to add headers with http.headers.* syntax
+* Configurable Headers for all requests to PayPal.
+* Allows adding additional headers to every call to PayPal APIs.
+* SDK Config to add headers with http.headers.* syntax.
0.16.0
----
-* Enabled Webhook Management Capabilities
-* Enabled Caching Abilities for Access Tokens
+* Enabled Webhook Management Capabilities.
+* Enabled Caching Abilities for Access Tokens.
0.15.1
----
-* Enabled Deleting Billing Plans
-* Updated Samples
+* Enabled Deleting Billing Plans.
+* Updated Samples.
0.15.0
----
-* Extended Invoicing Capabilities
-* Allows QR Code Generation for Invoices
-* Updated Formatter to work with multiple locales
-* Removed Future Payments mandate on Correlation Id
+* Extended Invoicing Capabilities.
+* Allows QR Code Generation for Invoices.
+* Updated Formatter to work with multiple locales.
+* Removed Future Payments mandate on Correlation Id.
0.14.2
----
-* Quick Patch to Unset Cipher List for NSS
+* Quick Patch to Unset Cipher List for NSS.
0.14.1
----
-* Updated HttpConfig to use TLSv1 as Cipher List
-* Added resetRequestId in ApiContext to enable multiple create calls in succession
-* Sanitize Input for Price Variables
-* Made samples look better and work best
+* Updated HttpConfig to use TLSv1 as Cipher List.
+* Added resetRequestId in ApiContext to enable multiple create calls in succession.
+* Sanitize Input for Price Variables.
+* Made samples look better and work best.
0.14.0
----
-* Enabled Billing Plans and Agreements APIs
-* Renamed SDK name to PayPal-PHP-SDK
+* Enabled Billing Plans and Agreements APIs.
+* Renamed SDK name to PayPal-PHP-SDK.
0.13.2
----
-* Updated Future Payments and LIPP Support
-* Updated Logging Syntax
+* Updated Future Payments and LIPP Support.
+* Updated Logging Syntax.
0.13.1
----
-* Enabled TLS version 1.x for SSL Negotiation
-* Updated Identity Support from SDK Core
-* Fixed Backward Compatibility changes
+* Enabled TLS version 1.x for SSL Negotiation.
+* Updated Identity Support from SDK Core.
+* Fixed Backward Compatibility changes.
0.13.0
----
-* Enabled Payment Experience
+* Enabled Payment Experience.
0.12.0
----
-* Enabled EC Parameters Support for Payment APIs
-* Enabled Validation for Missing Accessors
+* Enabled EC Parameters Support for Payment APIs.
+* Enabled Validation for Missing Accessors.
0.11.1
----
-* Removed Dependency from SDK Core Project
-* Enabled Future Payments
+* Removed Dependency from SDK Core Project.
+* Enabled Future Payments.
0.11.0
----
-* Ability for PUT and PATCH requests
-* Invoice number, custom and soft descriptor
-* Order API and tests, more Authorization tests
-* remove references to sdk-packages
-* patch for retrieving paid invoices
-* Shipping address docs patch
-* Remove @array annotation
-* Validate return cancel url
-* type hinting, comment cleaning, and getters and setters for Shipping
+* Ability for PUT and PATCH requests.
+* Invoice number, custom and soft descriptor.
+* Order API and tests, more Authorization tests.
+* remove references to sdk-packages.
+* patch for retrieving paid invoices.
+* Shipping address docs patch.
+* Remove @array annotation.
+* Validate return cancel url.
+* type hinting, comment cleaning, and getters and setters for Shipping.
0.10.0
-----
-* N/A
+* N/A.
0.9.0
-----
-* N/A
+* N/A.
0.8.0
-----
-* Invoicing API support added
+* Invoicing API support added.
0.7.1
-----
-* Added support for Reauthorization
+* Added support for Reauthorization.
0.7.0
-----
-* Added support for Auth and Capture APIs
-* Types modified to match the API Spec
-* Updated SDK to use namespace supported core library
+* Added support for Auth and Capture APIs.
+* Types modified to match the API Spec.
+* Updated SDK to use namespace supported core library.
0.6.0
-----
-* Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0)
+* Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0).
* Deprecating the setCredential method and changing resource class methods to take an ApiContext argument instead of a OauthTokenCredential argument.
0.5.0
-----
-* Initial Release
+* Initial Release.
diff --git a/lib/PayPal/Core/PayPalConstants.php b/lib/PayPal/Core/PayPalConstants.php
index 239943f..9ef145c 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.7.3';
+ const SDK_VERSION = '1.7.4';
/**
* Approval URL for Payment
diff --git a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html
index e7950d3..a44290c 100644
--- a/sample/doc/billing/CreateBillingAgreementWithCreditCard.html
+++ b/sample/doc/billing/CreateBillingAgreementWithCreditCard.html
@@ -77,4 +77,4 @@ Please note that the plan Id should be only set in this case.
exit(1);
} ResultPrinter::printResult("Created Billing Agreement.", "Agreement", $agreement->getId(), $request, $agreement);
-return $agreement;
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY