diff --git a/Classes/Domain/Import/Entity/TouristAttraction.php b/Classes/Domain/Import/Entity/TouristAttraction.php
index c2f6626..d2deb61 100644
--- a/Classes/Domain/Import/Entity/TouristAttraction.php
+++ b/Classes/Domain/Import/Entity/TouristAttraction.php
@@ -60,6 +60,11 @@ class TouristAttraction extends Place implements MapsToType
*/
protected $trafficInfrastructures = [];
+ /**
+ * @var string[]
+ */
+ protected $paymentsAccepted = [];
+
public function getSlogan(): string
{
return $this->slogan;
@@ -110,6 +115,14 @@ class TouristAttraction extends Place implements MapsToType
return $this->trafficInfrastructures;
}
+ /**
+ * @return string[]
+ */
+ public function getPaymentsAccepted(): array
+ {
+ return $this->paymentsAccepted;
+ }
+
/**
* @internal for mapping via Symfony component.
*/
@@ -201,6 +214,21 @@ class TouristAttraction extends Place implements MapsToType
}, $trafficInfrastructure);
}
+ /**
+ * @internal for mapping via Symfony component.
+ * @param string|array $paymentAccepted
+ */
+ public function setPaymentAccepted($paymentAccepted): void
+ {
+ if (is_string($paymentAccepted)) {
+ $paymentAccepted = [$paymentAccepted];
+ }
+
+ $this->paymentsAccepted = array_map(function (string $paymentAccepted) {
+ return str_replace('thuecat:', '', $paymentAccepted);
+ }, $paymentAccepted);
+ }
+
public static function getSupportedTypes(): array
{
return [
diff --git a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
index 62d0591..d249303 100644
--- a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
+++ b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
@@ -120,6 +120,7 @@ class TouristAttraction implements Converter
'museum_service' => implode(',', $entity->getMuseumServices()),
'architectural_style' => implode(',', $entity->getArchitecturalStyles()),
'traffic_infrastructure' => implode(',', $entity->getTrafficInfrastructures()),
+ 'payment_accepted' => implode(',', $entity->getPaymentsAccepted()),
]
);
}
diff --git a/Classes/Domain/Model/Frontend/TouristAttraction.php b/Classes/Domain/Model/Frontend/TouristAttraction.php
index fb9a614..f4efcd7 100644
--- a/Classes/Domain/Model/Frontend/TouristAttraction.php
+++ b/Classes/Domain/Model/Frontend/TouristAttraction.php
@@ -98,6 +98,11 @@ class TouristAttraction extends AbstractEntity
*/
protected $trafficInfrastructure = '';
+ /**
+ * @var string
+ */
+ protected $paymentAccepted = '';
+
public function getTitle(): string
{
return $this->title;
@@ -167,4 +172,9 @@ class TouristAttraction extends AbstractEntity
{
return GeneralUtility::trimExplode(',', $this->trafficInfrastructure, true);
}
+
+ public function getPaymentAccepted(): array
+ {
+ return GeneralUtility::trimExplode(',', $this->paymentAccepted, true);
+ }
}
diff --git a/Configuration/TCA/tx_thuecat_tourist_attraction.php b/Configuration/TCA/tx_thuecat_tourist_attraction.php
index 0d32930..5f995dd 100644
--- a/Configuration/TCA/tx_thuecat_tourist_attraction.php
+++ b/Configuration/TCA/tx_thuecat_tourist_attraction.php
@@ -133,6 +133,14 @@ return (static function (string $extensionKey, string $tableName) {
'readOnly' => true,
],
],
+ 'payment_accepted' => [
+ 'label' => $languagePath . '.payment_accepted',
+ 'l10n_mode' => 'prefixLangTitle',
+ 'config' => [
+ 'type' => 'input',
+ 'readOnly' => true,
+ ],
+ ],
'opening_hours' => [
'label' => $languagePath . '.opening_hours',
'l10n_mode' => 'exclude',
@@ -216,7 +224,7 @@ return (static function (string $extensionKey, string $tableName) {
],
'types' => [
'0' => [
- 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, traffic_infrastructure, opening_hours, offers, address, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by',
+ 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, traffic_infrastructure, payment_accepted, opening_hours, offers, address, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by',
],
],
];
diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf
index 132ad83..2a91106 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -246,6 +246,47 @@
Zero Special Traffic Infrastructure
keine Angabe
+
+
+ AliPay
+ AliPay
+
+
+ American Express
+ American Express
+
+
+ ApplePay
+ ApplePay
+
+
+ Cash Payment
+ Barzahlung
+
+
+ EC
+ EC
+
+
+ Instant Bank Transfer
+ Sofortüberweisung
+
+
+ Invoice
+ Rechnung
+
+
+ MasterCard
+ MasterCard
+
+
+ PayPal
+ PayPal
+
+
+ Visa
+ Visa
+