From b2318bb95be9430852443926e8d2bc1e5f2c47ba Mon Sep 17 00:00:00 2001 From: Marcel Hauri Date: Thu, 17 May 2018 09:35:17 +0200 Subject: [PATCH 1/2] [fix] typo in method name from Nvp class --- app/code/Magento/Paypal/Model/Api/Nvp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Paypal/Model/Api/Nvp.php b/app/code/Magento/Paypal/Model/Api/Nvp.php index 9e3018940fcee..5dba81dedb5dd 100644 --- a/app/code/Magento/Paypal/Model/Api/Nvp.php +++ b/app/code/Magento/Paypal/Model/Api/Nvp.php @@ -846,7 +846,7 @@ public function callGetExpressCheckoutDetails() $request = $this->_exportToRequest($this->_getExpressCheckoutDetailsRequest); $response = $this->call(self::GET_EXPRESS_CHECKOUT_DETAILS, $request); $this->_importFromResponse($this->_paymentInformationResponse, $response); - $this->_exportAddressses($response); + $this->_exportAddresses($response); } /** @@ -1464,7 +1464,7 @@ protected function _exportLineItems(array &$request, $i = 0) * @param array $data * @return void */ - protected function _exportAddressses($data) + protected function _exportAddresses($data) { $address = new \Magento\Framework\DataObject(); \Magento\Framework\DataObject\Mapper::accumulateByMap($data, $address, $this->_billingAddressMap); From 1a0c8e50a0698ac4c9dbe55aae32c9d1bd650109 Mon Sep 17 00:00:00 2001 From: Marcel Hauri Date: Fri, 18 May 2018 09:29:39 +0200 Subject: [PATCH 2/2] [task] add deprecated notice to misspelled method --- app/code/Magento/Paypal/Model/Api/Nvp.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/code/Magento/Paypal/Model/Api/Nvp.php b/app/code/Magento/Paypal/Model/Api/Nvp.php index 5dba81dedb5dd..8ed980ddd395a 100644 --- a/app/code/Magento/Paypal/Model/Api/Nvp.php +++ b/app/code/Magento/Paypal/Model/Api/Nvp.php @@ -1458,6 +1458,19 @@ protected function _exportLineItems(array &$request, $i = 0) return parent::_exportLineItems($request, $i); } + /** + * Create billing and shipping addresses basing on response data + * + * @param array $data + * @return void + * @deprecated 100.2.2 typo in method name + * @see _exportAddresses + */ + protected function _exportAddressses($data) + { + $this->_exportAddresses($data); + } + /** * Create billing and shipping addresses basing on response data *