'tax' => TypeMappingInterface::MAPPING_LONG_FIELD,
],
];
} /**
* @return array<array<string, mixed>>
*/
private function getCalculatedPricesMapping(Shop
$shop): array
{ $prices =
[];
$customerGroups =
$this->identifierSelector->
getCustomerGroupKeys();
$currencies =
$this->identifierSelector->
getShopCurrencyIds($shop->
getId());
if (!
$shop->
isMain()) { $currencies =
$this->identifierSelector->
getShopCurrencyIds($shop->
getParentId());
} foreach ($currencies as $currency) { foreach ($customerGroups as $customerGroup) { $key =
$customerGroup . '_' .
$currency;
$prices[$key] =
$this->
getPriceMapping();
} }