def getBuyerInfo(self, auction_id, buyer_id):
        """Return buyer info."""
        # TODO: add price from getBids
        rc = self.__ask__('doGetPostBuyData', itemsArray=self.ArrayOfLong([auction_id]), buyerFilterArray=self.ArrayOfLong([buyer_id]))
        rc = rc[0]['usersPostBuyData']['item'][0]['userData']
        return {'allegro_aid': auction_id,
                'allegro_uid': rc['userId'],
                'allegro_login': magicDecode(rc['userLogin']),
                'name': magicDecode(rc['userFirstName']),
                'surname': magicDecode(rc['userLastName']),
                'company': magicDecode(rc['userCompany']),
                'postcode': magicDecode(rc['userPostcode']),
                'city': magicDecode(rc['userCity']),
                'address': magicDecode(rc['userAddress']),
                'email': magicDecode(rc['userEmail']),
                'phone': rc['userPhone']}
def getBuyerInfo ( self , auction_id , buyer_id ) : rc = self . __ask__ ( 'doGetPostBuyData' , itemsArray = self . ArrayOfLong ( [ auction_id ] ) , buyerFilterArray = self . ArrayOfLong ( [ buyer_id ] ) ) rc = rc [ 0 ] [ 'usersPostBuyData' ] [ 'item' ] [ 0 ] [ 'userData' ] return { 'allegro_aid' : auction_id , 'allegro_uid' : rc [ 'userId' ] , 'allegro_login' : magicDecode ( rc [ 'userLogin' ] ) , 'name' : magicDecode ( rc [ 'userFirstName' ] ) , 'surname' : magicDecode ( rc [ 'userLastName' ] ) , 'company' : magicDecode ( rc [ 'userCompany' ] ) , 'postcode' : magicDecode ( rc [ 'userPostcode' ] ) , 'city' : magicDecode ( rc [ 'userCity' ] ) , 'address' : magicDecode ( rc [ 'userAddress' ] ) , 'email' : magicDecode ( rc [ 'userEmail' ] ) , 'phone' : rc [ 'userPhone' ] }
Return buyer info.