diff --git a/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/AbstractCommand.php b/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/AbstractCommand.php index c0fabcca..4e722e39 100644 --- a/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/AbstractCommand.php +++ b/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/AbstractCommand.php @@ -24,6 +24,16 @@ abstract class AbstractCommand implements CommandInterface * @var AccountId */ protected $accountId; + /** + * + * @var string + */ + protected $paymentProfileId; + /** + * + * @var string + */ + protected $poiType; /** * * @var PublicKey|TestPublicKey @@ -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 @@ -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 diff --git a/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/InstallCommand.php b/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/InstallCommand.php index 76ba3e96..1fa9e7b2 100644 --- a/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/InstallCommand.php +++ b/vendor/pagarme/ecommerce-module-core/src/Hub/Commands/InstallCommand.php @@ -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; @@ -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());