/** * Get estimated delivery data if the item is backorderable. * * @param Mage_Core_Model_Abstract * @return EbayEnterprise_Inventory_Model_Details_Item | null */ public function getOcrBackorderableEddData(Mage_Core_Model_Abstract $item) { $streetData = $this->getStreetDateForBackorderableItem($item); if ($streetData) { return $this->detailFactory->createItemDetails(['item_id' => $item->getId(), 'sku' => $item->getSku(), 'delivery_window_from_date' => $streetData->getDeliveryWindowFromDate(), 'delivery_window_to_date' => $streetData->getDeliveryWindowToDate(), 'shipping_window_from_date' => null, 'shipping_window_to_date' => null, 'delivery_estimate_creation_time' => null, 'delivery_estimate_display_flag' => null, 'delivery_estimate_message' => null, 'ship_from_lines' => null, 'ship_from_city' => null, 'ship_from_main_division' => null, 'ship_from_country_code' => null, 'ship_from_postal_code' => null]); } return null; }
protected function buildItemModel(array $itemData) { return $this->factory->createItemDetails($itemData); }