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
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ abstract class AbstractCommand implements CommandInterface
* @var AccountId
*/
protected $accountId;
/**
*
* @var string
*/
protected $paymentProfileId;
/**
*
* @var string
*/
protected $poiType;
/**
*
* @var PublicKey|TestPublicKey
Expand Down Expand Up @@ -84,6 +94,24 @@ public function getAccountId()
return $this->accountId;
}

/**
*
* @return AbstractCommand
*/
public function getPaymentProfileId()
{
return $this->paymentProfileId;
}

/**
*
* @return AbstractCommand
*/
public function getPoiType()
{
return $this->poiType;
}

/**
*
* @param AccountId $accountId
Expand All @@ -95,6 +123,24 @@ public function setAccountId($accountId)
return $this;
}

/**
*
* @param $paymentProfileId
*/
public function setPaymentProfileId($paymentProfileId)
{
$this->paymentProfileId = $paymentProfileId;
}

/**
*
* @param $poiType
*/
public function setPoiType($poiType)
{
$this->poiType = $poiType;
}

/**
*
* @return PublicKey|TestPublicKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Pagarme\Core\Hub\Commands;

use Exception;
use Pagarme\Core\Kernel\Abstractions\AbstractModuleCoreSetup as MPSetup;
use Pagarme\Core\Kernel\Repositories\ConfigurationRepository;

Expand All @@ -14,6 +13,10 @@ public function execute()

$moduleConfig->setAccountId($this->getAccountId());

$moduleConfig->setPaymentProfileId($this->getPaymentProfileId());

$moduleConfig->setPoiType($this->getPoiType());

$moduleConfig->setMerchantId($this->getMerchantId());

$moduleConfig->setHubInstallId($this->getInstallId());
Expand Down