Return orders details.

def getOrders(self, auction_ids):
        """Return orders details."""
        orders = {}
        # chunk list (only 25 auction_ids per request)
        for chunk in chunked(auction_ids, 25):
            # auctions = [{'item': auction_id} for auction_id in chunk]  # TODO?: is it needed?
            auctions = self.ArrayOfLong(chunk)
            rc = self.__ask__('doGetPostBuyData', itemsArray=auctions)
            for auction in rc:
                orders_auction = []
                bids = self.getBids(auction['itemId'])
                # get orders details
                # for i in auction.get('usersPostBuyData', ()):
                if not auction['usersPostBuyData']:  # empty
                    continue
                for i in auction['usersPostBuyData']['item']:
                    i = i['userData']
                    if i['userId'] not in bids:  # temporary(?) webapi bug fix
                        continue
                    orders_auction.append({
                        'allegro_aid': auction['itemId'],
                        'allegro_uid': i['userId'],
                        'allegro_login': magicDecode(i['userLogin']),
                        'name': magicDecode(i['userFirstName']),
                        'surname': magicDecode(i['userLastName']),
                        'company': magicDecode(i['userCompany']),
                        'postcode': magicDecode(i['userPostcode']),
                        'city': magicDecode(i['userCity']),
                        'address': magicDecode(i['userAddress']),
                        'email': magicDecode(i['userEmail']),
                        'phone': i['userPhone'],
                        'price': bids[i['userId']]['price'],
                        'quantity': bids[i['userId']]['quantity'],
                        'date_buy': bids[i['userId']]['date_buy']
                    })
                orders[auction['itemId']] = orders_auction
        return orders