/** * @param \XLite\Model\OrderItem $orderItem Order item * * @return array */ protected function getBasketLine(\XLite\Model\OrderItem $orderItem) { return array('lineId' => $orderItem->getSku(), 'currency' => $orderItem->getOrder()->getCurrency()->getCode(), 'quantity' => $orderItem->getAmount(), 'unitPrice' => array('price' => array('value' => $orderItem->getItemNetPrice()), 'codPrice' => array(), 'dutiableValue' => array('value' => $orderItem->getItemNetPrice())), 'commodity' => array('merchantComRefId' => $orderItem->getSku(), 'descriptions' => array(), 'hsCodes' => array(), 'imageUrls' => array(), 'identifiers' => array(), 'attributes' => array(), 'hazmats' => array(), 'categories' => array()), 'kitContents' => array()); }
/** * {@inheritDoc} */ public function getOrder() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrder', array()); return parent::getOrder(); }