Skip to content

Commit 02d23c1

Browse files
committed
feat: add paymentProfileId and poiType support to ConfigurationFactory
1 parent 0908f92 commit 02d23c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vendor/pagarme/ecommerce-module-core/src/Kernel/Factories/ConfigurationFactory.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ public function createFromJsonData($json)
9696
$config->setAccountId($data->accountId);
9797
}
9898

99+
if (!empty($data->paymentProfileId)) {
100+
$config->setPaymentProfileId($data->paymentProfileId);
101+
}
102+
103+
if (!empty($data->poiType)) {
104+
$config->setPoiType($data->poiType);
105+
}
106+
99107
if (!empty($data->sendMail)) {
100108
$config->setSendMailEnabled($data->sendMail);
101109
}

0 commit comments

Comments
 (0)