public function getByOrderNumber($number)
    {
        $connection = $this->getConnection();
        $select     = $connection->select()->from($this->getMainTable())->where('shopgate_order_number = :number');
        $bind       = [':number' => (string) $number];

        return $connection->fetchRow($select, $bind);
    }
public function getByOrderNumber($number)
    {
        $connection = $this->getConnection();
        $select     = $connection->select()->from($this->getMainTable())->where('shopgate_order_number = :number');
        $bind       = [':number' => (string) $number];

        return $connection->fetchRow($select, $bind);
    }
public function getByOrderNumber ( $ number ) { $ connection = $ this -> getConnection ( ) ; $ select = $ connection -> select ( ) -> from ( $ this -> getMainTable ( ) ) -> where ( 'shopgate_order_number = :number' ) ; $ bind = [ ':number' => ( string ) $ number ] ; return $ connection -> fetchRow ( $ select , $ bind ) ; }
Gets order data using shopgate order number

@param string $number

@return array
@throws LocalizedException
Gets order data using shopgate order number