$data['minpurchase'
] = null;
$data['maxpurchase'
] =
$this->config->
get('maxPurchase'
);
$data['purchasesteps'
] = 1;
$data['purchaseunit'
] = null;
$data['referenceunit'
] = null;
$data['packunit'
] = null;
$data['unitID'
] = null;
$data['sUnit'
] =
['unit' => '', 'description' => ''
];
$data['unit_attributes'
] =
[];
if ($price->
getUnit() instanceof Unit
) { $data =
array_merge($data,
$this->
convertUnitStruct($price->
getUnit()));
} return $this->eventManager->
filter('Legacy_Struct_Converter_Convert_Product_Price',
$data,
[ 'price' =>
$price,
]);
} /**
* Converts the passed ProductStream struct to an array structure.
*
* @return array
*/