Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Api/CustomerAttributeInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zinrelo\LoyaltyRewards\Api;
namespace TrueLoyal\LoyaltyRewards\Api;

interface CustomerAttributeInterface
{
Expand Down
2 changes: 1 addition & 1 deletion Api/CustomerAttributeUpdateInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zinrelo\LoyaltyRewards\Api;
namespace TrueLoyal\LoyaltyRewards\Api;

interface CustomerAttributeUpdateInterface
{
Expand Down
2 changes: 1 addition & 1 deletion Block/Adminhtml/Group/Edit/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Zinrelo\LoyaltyRewards\Block\Adminhtml\Group\Edit;
namespace TrueLoyal\LoyaltyRewards\Block\Adminhtml\Group\Edit;

use Magento\Customer\Controller\RegistryConstants;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Zinrelo\LoyaltyRewards\Block\Adminhtml\Sales\Order;
namespace TrueLoyal\LoyaltyRewards\Block\Adminhtml\Sales\Order;

use Magento\Framework\DataObject;
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Magento\Sales\Api\OrderRepositoryInterface;
use Zinrelo\LoyaltyRewards\Helper\Data;
use TrueLoyal\LoyaltyRewards\Helper\Data;

class ZinreloCreditMemoCreateDiscount extends Template
class TrueLoyalCreditMemoCreateDiscount extends Template
{
/**
* @var Data
Expand All @@ -20,7 +20,7 @@ class ZinreloCreditMemoCreateDiscount extends Template
private $orderRepository;

/**
* Zinrelo Credit MemoCreate Discount constructor.
* TrueLoyal Credit MemoCreate Discount constructor.
*
* @param Context $context
* @param Data $helper
Expand All @@ -44,7 +44,7 @@ public function __construct(
/**
* This function call initTotals
*
* @return ZinreloCreditMemoCreateDiscount
* @return TrueLoyalCreditMemoCreateDiscount
*/
public function initTotals()
{
Expand All @@ -63,7 +63,7 @@ public function initTotals()
$this->getParentBlock()->addTotal(
new DataObject(
[
'code' => 'zinrelo_discount',
'code' => 'trueloyal_discount',
'strong' => $this->getStrong(),
'value' => $totalAmount["value"],
'base_value' => $totalAmount["value"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Zinrelo\LoyaltyRewards\Block\Adminhtml\Sales\Order;
namespace TrueLoyal\LoyaltyRewards\Block\Adminhtml\Sales\Order;

use Magento\Framework\DataObject;
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Zinrelo\LoyaltyRewards\Helper\Data;
use TrueLoyal\LoyaltyRewards\Helper\Data;
use Magento\Sales\Api\CreditmemoRepositoryInterface;

class ZinreloCreditMemoViewDiscount extends Template
class TrueLoyalCreditMemoViewDiscount extends Template
{
/**
* @var Data
Expand All @@ -20,7 +20,7 @@ class ZinreloCreditMemoViewDiscount extends Template
private $creditMemoRepository;

/**
* Zinrelo Credit Memo View Discount constructor.
* TrueLoyal Credit Memo View Discount constructor.
*
* @param Context $context
* @param Data $helper
Expand All @@ -44,7 +44,7 @@ public function __construct(
/**
* This function call initTotals
*
* @return ZinreloCreditMemoViewDiscount
* @return TrueLoyalCreditMemoViewDiscount
*/
public function initTotals()
{
Expand All @@ -55,7 +55,7 @@ public function initTotals()
$this->getParentBlock()->addTotal(
new DataObject(
[
'code' => 'zinrelo_discount',
'code' => 'trueloyal_discount',
'strong' => $this->getStrong(),
'value' => $totalAmount["value"],
'base_value' => $totalAmount["value"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Zinrelo\LoyaltyRewards\Block\Adminhtml\Sales\Order;
namespace TrueLoyal\LoyaltyRewards\Block\Adminhtml\Sales\Order;

use Magento\Framework\DataObject;
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Zinrelo\LoyaltyRewards\Helper\Data;
use TrueLoyal\LoyaltyRewards\Helper\Data;

class ZinreloDiscount extends Template
class TrueLoyalDiscount extends Template
{
/**
* @var Order
Expand All @@ -23,7 +23,7 @@ class ZinreloDiscount extends Template
private $helper;

/**
* Zinrelo Discount constructor.
* TrueLoyal Discount constructor.
*
* @param Context $context
* @param Data $helper
Expand Down Expand Up @@ -91,7 +91,7 @@ public function getValueProperties()
/**
* This function call initTotals
*
* @return ZinreloDiscount
* @return TrueLoyalDiscount
*/
public function initTotals()
{
Expand All @@ -101,7 +101,7 @@ public function initTotals()
$this->getParentBlock()->addTotal(
new DataObject(
[
'code' => 'zinrelo_discount',
'code' => 'trueloyal_discount',
'strong' => $this->getStrong(),
'value' => $totalAmount["value"],
'base_value' => $totalAmount["value"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Zinrelo\LoyaltyRewards\Block\Adminhtml\Sales\Order;
namespace TrueLoyal\LoyaltyRewards\Block\Adminhtml\Sales\Order;

use Magento\Framework\DataObject;
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Magento\Sales\Api\OrderRepositoryInterface;
use Zinrelo\LoyaltyRewards\Helper\Data;
use TrueLoyal\LoyaltyRewards\Helper\Data;

class ZinreloInvoiceCreateDiscount extends Template
class TrueLoyalInvoiceCreateDiscount extends Template
{
/**
* @var Order
Expand All @@ -28,7 +28,7 @@ class ZinreloInvoiceCreateDiscount extends Template
private $orderRepository;

/**
* Zinrelo Invoice Create Discount constructor.
* TrueLoyal Invoice Create Discount constructor.
*
* @param Context $context
* @param Data $helper
Expand Down Expand Up @@ -99,7 +99,7 @@ public function getValueProperties()
/**
* This function call initTotals
*
* @return ZinreloInvoiceCreateDiscount
* @return TrueLoyalInvoiceCreateDiscount
*/
public function initTotals()
{
Expand All @@ -118,7 +118,7 @@ public function initTotals()
$this->getParentBlock()->addTotal(
new DataObject(
[
'code' => 'zinrelo_discount',
'code' => 'trueloyal_discount',
'strong' => $this->getStrong(),
'value' => $totalAmount["value"],
'base_value' => $totalAmount["value"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Zinrelo\LoyaltyRewards\Block\Adminhtml\Sales\Order;
namespace TrueLoyal\LoyaltyRewards\Block\Adminhtml\Sales\Order;

use Magento\Framework\DataObject;
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Magento\Sales\Api\InvoiceRepositoryInterface;
use Zinrelo\LoyaltyRewards\Helper\Data;
use TrueLoyal\LoyaltyRewards\Helper\Data;

class ZinreloInvoiceViewDiscount extends Template
class TrueLoyalInvoiceViewDiscount extends Template
{

/**
Expand All @@ -21,7 +21,7 @@ class ZinreloInvoiceViewDiscount extends Template
private $invoiceRepository;

/**
* Zinrelo Invoice View Discount constructor.
* TrueLoyal Invoice View Discount constructor.
*
* @param Context $context
* @param Data $helper
Expand All @@ -45,7 +45,7 @@ public function __construct(
/**
* This function call initTotals
*
* @return ZinreloInvoiceViewDiscount
* @return TrueLoyalInvoiceViewDiscount
*/
public function initTotals()
{
Expand All @@ -57,7 +57,7 @@ public function initTotals()
$this->getParentBlock()->addTotal(
new DataObject(
[
'code' => 'zinrelo_discount',
'code' => 'trueloyal_discount',
'strong' => $this->getStrong(),
'value' => $totalAmount["value"],
'base_value' => $totalAmount["value"],
Expand Down
16 changes: 8 additions & 8 deletions Block/Cart/RewardList.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Zinrelo\LoyaltyRewards\Block\Cart;
namespace TrueLoyal\LoyaltyRewards\Block\Cart;

use Magento\Customer\Model\Session as CustomerSession;
use Magento\Framework\View\Element\Template;
use Zinrelo\LoyaltyRewards\Helper\Reward;
use Zinrelo\LoyaltyRewards\Logger\Logger as ZinreloLogger;
use TrueLoyal\LoyaltyRewards\Helper\Reward;
use TrueLoyal\LoyaltyRewards\Logger\Logger as TrueLoyalLogger;

class RewardList extends Template
{
Expand All @@ -15,7 +15,7 @@ class RewardList extends Template
public $helper;

/**
* @var ZinreloLogger
* @var TrueLoyalLogger
*/
public $logger;

Expand All @@ -30,14 +30,14 @@ class RewardList extends Template
* @param Template\Context $context
* @param Reward $helper
* @param CustomerSession $customerSession
* @param ZinreloLogger $logger
* @param TrueLoyalLogger $logger
* @param array $data
*/
public function __construct(
Template\Context $context,
Reward $helper,
CustomerSession $customerSession,
ZinreloLogger $logger,
TrueLoyalLogger $logger,
array $data = []
) {
$this->logger = $logger;
Expand Down Expand Up @@ -67,8 +67,8 @@ public function getFormAction()
public function canCancelRedeem()
{
$quote = $this->helper->getQuote();
$zinreloQuote = $this->helper->getZinreloQuoteByQuoteId($quote->getId());
if (!empty($zinreloQuote->getRewardRulesData() && !empty($zinreloQuote->getRedeemRewardDiscount()))) {
$trueloyalQuote = $this->helper->getTrueLoyalQuoteByQuoteId($quote->getId());
if (!empty($trueloyalQuote->getRewardRulesData() && !empty($trueloyalQuote->getRedeemRewardDiscount()))) {
return true;
}
return false;
Expand Down
Loading