9 use Magento\Bundle\Api\Data\BundleOptionInterfaceFactory;
46 $request = $this->objectFactory->create();
53 foreach (
$option->getOptionSelections() as $selection) {
93 if (empty($optionSelections)) {
96 $optionSelections = is_array($optionSelections) ? $optionSelections : [$optionSelections];
107 return [
'bundle_options' =>
$data];
getBundleOptions(ProductOptionInterface $productOption)
__construct(DataObjectFactory $objectFactory, BundleOptionInterfaceFactory $bundleOptionFactory)
convertToProductOption(DataObject $request)
convertToBuyRequest(ProductOptionInterface $productOption)