We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit fab11f8f authored by Alessio Zampatti's avatar Alessio Zampatti Committed by cyattilakiss

Refactor, typos (#556)

* Refactor, typos
* remove duplicate case "Received"
parent c1f27550
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
**Plugin version**: x.y.z **Plugin version**: x.y.z
**Description** **Description**
<!-- <!--
- please provide description of the issue. In case of bug report, please provide the necessary steps to reproduce. - Please provide a description of the issue. In case of bug report, please provide the necessary steps to reproduce.
- For merchant specific requests, please use https://support.adyen.com - For merchant specific requests, please use https://support.adyen.com
--> -->
\ No newline at end of file
...@@ -47,8 +47,8 @@ interface InvoiceInterface ...@@ -47,8 +47,8 @@ interface InvoiceInterface
*/ */
const ACQUIRER_REFERENCE = 'acquirer_reference'; const ACQUIRER_REFERENCE = 'acquirer_reference';
/* /*
* Invoice ID. * Invoice ID.
*/ */
const INVOICE_ID = 'invoice_id'; const INVOICE_ID = 'invoice_id';
/** /**
......
...@@ -25,10 +25,10 @@ namespace Adyen\Payment\Api\Data; ...@@ -25,10 +25,10 @@ namespace Adyen\Payment\Api\Data;
interface NotificationInterface interface NotificationInterface
{ {
/**
/**#@+
* Constants for keys of data array. Identical to the name of the getter in snake case. * Constants for keys of data array. Identical to the name of the getter in snake case.
*/ */
/* /*
* Entity ID. * Entity ID.
*/ */
...@@ -66,15 +66,15 @@ interface NotificationInterface ...@@ -66,15 +66,15 @@ interface NotificationInterface
*/ */
const AMOUNT_CURRENCY = 'amount_currency'; const AMOUNT_CURRENCY = 'amount_currency';
/* /*
* reason * Reason
*/ */
const REASON = 'reason'; const REASON = 'reason';
/* /*
* Live * Live
*/ */
const LIVE = 'live'; const LIVE = 'live';
/* /*
* Live * Done
*/ */
const DONE = 'done'; const DONE = 'done';
/* /*
...@@ -109,7 +109,7 @@ interface NotificationInterface ...@@ -109,7 +109,7 @@ interface NotificationInterface
/** /**
* Gets the Pspreference for the notification. * Gets the Pspreference for the notification.
* *
* @return int|null Pspreference. * @return string|null Pspreference.
*/ */
public function getPspreference(); public function getPspreference();
...@@ -133,14 +133,14 @@ interface NotificationInterface ...@@ -133,14 +133,14 @@ interface NotificationInterface
/** /**
* Gets the OriginalReference for the notification. * Gets the OriginalReference for the notification.
* *
* @return int|null OriginalReference. * @return string|null OriginalReference.
*/ */
public function getOriginalReference(); public function getOriginalReference();
/** /**
* Gets the Merchantreference for the notification. * Gets the Merchantreference for the notification.
* *
* @return int|null MerchantReference. * @return string|null MerchantReference.
*/ */
public function getMerchantReference(); public function getMerchantReference();
...@@ -155,7 +155,7 @@ interface NotificationInterface ...@@ -155,7 +155,7 @@ interface NotificationInterface
/** /**
* Gets the Eventcode for the notification. * Gets the Eventcode for the notification.
* *
* @return int|null Eventcode. * @return string|null Eventcode.
*/ */
public function getEventCode(); public function getEventCode();
...@@ -172,7 +172,7 @@ interface NotificationInterface ...@@ -172,7 +172,7 @@ interface NotificationInterface
* *
* @return int|null Success. * @return int|null Success.
*/ */
public function getSucess(); public function getSuccess();
/** /**
* Sets Success. * Sets Success.
...@@ -185,7 +185,7 @@ interface NotificationInterface ...@@ -185,7 +185,7 @@ interface NotificationInterface
/** /**
* Gets the Paymentmethod for the notification. * Gets the Paymentmethod for the notification.
* *
* @return int|null PaymentMethod. * @return string|null PaymentMethod.
*/ */
public function getPaymentMethod(); public function getPaymentMethod();
...@@ -213,11 +213,11 @@ interface NotificationInterface ...@@ -213,11 +213,11 @@ interface NotificationInterface
public function setAmountValue($amountValue); public function setAmountValue($amountValue);
/** /**
* Gets the AmountValue for the notification. * Gets the AmountCurrency for the notification.
* *
* @return int|null AmountValue. * @return string|null AmountCurrency.
*/ */
public function getAmountCurency(); public function getAmountCurrency();
/** /**
* Sets AmountCurrency. * Sets AmountCurrency.
......
...@@ -25,10 +25,10 @@ namespace Adyen\Payment\Api\Data; ...@@ -25,10 +25,10 @@ namespace Adyen\Payment\Api\Data;
interface OrderPaymentInterface interface OrderPaymentInterface
{ {
/**
/**#@+
* Constants for keys of data array. Identical to the name of the getter in snake case. * Constants for keys of data array. Identical to the name of the getter in snake case.
*/ */
/* /*
* Entity ID. * Entity ID.
*/ */
......
...@@ -112,11 +112,11 @@ class Installments extends \Magento\Config\Block\System\Config\Form\Field\FieldA ...@@ -112,11 +112,11 @@ class Installments extends \Magento\Config\Block\System\Config\Form\Field\FieldA
*/ */
protected function _prepareArrayRow(\Magento\Framework\DataObject $row) protected function _prepareArrayRow(\Magento\Framework\DataObject $row)
{ {
$installlments = $row->getInstallments(); $installments = $row->getInstallments();
$options = []; $options = [];
if ($installlments) { if ($installments) {
$options['option_' . $this->getNumberOfInstallmentsRenderer()->calcOptionHash($installlments)] $options['option_' . $this->getNumberOfInstallmentsRenderer()->calcOptionHash($installments)]
= 'selected="selected"'; = 'selected="selected"';
$ccTypes = $row->getCcTypes(); $ccTypes = $row->getCcTypes();
......
...@@ -82,11 +82,11 @@ class InstallmentsPosCloud extends \Magento\Config\Block\System\Config\Form\Fiel ...@@ -82,11 +82,11 @@ class InstallmentsPosCloud extends \Magento\Config\Block\System\Config\Form\Fiel
*/ */
protected function _prepareArrayRow(\Magento\Framework\DataObject $row) protected function _prepareArrayRow(\Magento\Framework\DataObject $row)
{ {
$installlments = $row->getInstallments(); $installments = $row->getInstallments();
$options = []; $options = [];
if ($installlments) { if ($installments) {
$options['option_' . $this->getNumberOfInstallmentsRenderer()->calcOptionHash($installlments)] $options['option_' . $this->getNumberOfInstallmentsRenderer()->calcOptionHash($installments)]
= 'selected="selected"'; = 'selected="selected"';
} }
$row->setData('option_extra_attrs', $options); $row->setData('option_extra_attrs', $options);
......
...@@ -36,7 +36,7 @@ class Oneclick extends \Adyen\Payment\Block\Form\Cc ...@@ -36,7 +36,7 @@ class Oneclick extends \Adyen\Payment\Block\Form\Cc
protected $_sessionQuote; protected $_sessionQuote;
/** /**
* Cc constructor. * Oneclick constructor.
* *
* @param \Magento\Framework\View\Element\Template\Context $context * @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Payment\Model\Config $paymentConfig * @param \Magento\Payment\Model\Config $paymentConfig
......
...@@ -32,9 +32,10 @@ class Cc extends AbstractInfo ...@@ -32,9 +32,10 @@ class Cc extends AbstractInfo
protected $_template = 'Adyen_Payment::info/adyen_cc.phtml'; protected $_template = 'Adyen_Payment::info/adyen_cc.phtml';
/** /**
* Return credit cart type * Return credit card type
* *
* @return string * @return string
* @throws \Magento\Framework\Exception\LocalizedException
*/ */
public function getCcTypeName() public function getCcTypeName()
{ {
......
...@@ -49,7 +49,7 @@ class Hpp extends AbstractInfo ...@@ -49,7 +49,7 @@ class Hpp extends AbstractInfo
} }
/** /**
* Get all multibanco related data * Get all Multibanco related data
* *
* @return array * @return array
* @throws \Magento\Framework\Exception\LocalizedException * @throws \Magento\Framework\Exception\LocalizedException
......
...@@ -301,7 +301,7 @@ class Result extends \Magento\Framework\App\Action\Action ...@@ -301,7 +301,7 @@ class Result extends \Magento\Framework\App\Action\Action
} }
/** /**
* Authenticate using sha1 Merchant signature * Authenticate using sha256 Merchant signature
* *
* @param $response * @param $response
* @return bool * @return bool
......
...@@ -94,9 +94,6 @@ class CheckoutResponseValidator extends AbstractValidator ...@@ -94,9 +94,6 @@ class CheckoutResponseValidator extends AbstractValidator
$payment->setCcType($ccType); $payment->setCcType($ccType);
} }
$payment->setAdditionalInformation('pspReference', $response['pspReference']);
break;
case "Received":
$payment->setAdditionalInformation('pspReference', $response['pspReference']); $payment->setAdditionalInformation('pspReference', $response['pspReference']);
break; break;
case "PresentToShopper": case "PresentToShopper":
......
...@@ -197,7 +197,7 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not ...@@ -197,7 +197,7 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not
* *
* @return int|null Success. * @return int|null Success.
*/ */
public function getSucess() public function getSuccess()
{ {
return $this->getData(self::SUCCESS); return $this->getData(self::SUCCESS);
} }
...@@ -259,9 +259,9 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not ...@@ -259,9 +259,9 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not
/** /**
* Gets the AmountValue for the notification. * Gets the AmountValue for the notification.
* *
* @return int|null AmountValue. * @return string|null AmountValue.
*/ */
public function getAmountCurency() public function getAmountCurrency()
{ {
return $this->getData(self::AMOUNT_CURRENCY); return $this->getData(self::AMOUNT_CURRENCY);
} }
...@@ -280,7 +280,7 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not ...@@ -280,7 +280,7 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not
/** /**
* Gets the Reason for the notification. * Gets the Reason for the notification.
* *
* @return int|null Reason. * @return string|null Reason.
*/ */
public function getReason() public function getReason()
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment