Skip to content

Commit

Permalink
Merge pull request #98 from mollie/5.0.3
Browse files Browse the repository at this point in the history
5.0.3
  • Loading branch information
Marvin-Magmodules authored Dec 27, 2018
2 parents 1e0bd99 + b9bd7b3 commit 8aa0670
Show file tree
Hide file tree
Showing 23 changed files with 152 additions and 84 deletions.
43 changes: 43 additions & 0 deletions app/code/community/Mollie/Mpm/Model/Method/Deprecated/Abstract.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* Copyright (c) 2012-2018, Mollie B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
* @category Mollie
* @package Mollie_Mpm
* @author Mollie B.V. ([email protected])
* @copyright Copyright (c) 2012-2018 Mollie B.V. (https://www.mollie.nl)
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Abstract extends Mage_Payment_Model_Method_Abstract
{

/**
* Availability options
*/
protected $_canUseInternal = false;
protected $_canUseCheckout = false;
protected $_canUseForMultishipping = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void00 extends Mollie_Mpm_Model_Mollie
class Mollie_Mpm_Model_Method_Deprecated_Void00 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void01 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void01 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void02 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void02 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void03 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void03 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void04 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void04 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void05 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void05 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void06 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void06 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void07 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void07 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void08 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void08 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void09 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void09 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void10 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void10 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void11 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void11 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void12 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void12 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void13 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void13 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void14 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void14 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2
*/

class Mollie_Mpm_Model_Method_Deprecated_Void15 extends Mollie_Mpm_Model_Api
class Mollie_Mpm_Model_Method_Deprecated_Void15 extends Mollie_Mpm_Model_Method_Deprecated_Abstract
{

/**
Expand All @@ -52,10 +52,10 @@ public function getTitle()
try {
$paymentInfo = $this->getInfoInstance();
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
$orderId = $paymentInfo->getOrder()->getId();
$order = $paymentInfo->getOrder();
/** @var Mollie_Mpm_Model_Payments $oldPaymentModel */
$oldPaymentModel = Mage::getModel('mpm/payments');
if ($title = $oldPaymentModel->getTitleByOrderId($orderId)) {
if ($title = $oldPaymentModel->getTitleByOrder($order)) {
return $title;
}
}
Expand Down
Loading

0 comments on commit 8aa0670

Please sign in to comment.