Does delegated (pre-authorized) purchase of `oid` in the name of
        `huid`, at price `price` (vingd transferred from `huid` to consumer's
        acc).
        
        :raises GeneralException:
        :resource: ``objects/<oid>/purchases``
        
        :access: authorized users with ACL flag ``purchase.object.authorize`` +
            delegate permission required for the requester to charge the
            user: ``purchase.object``

def authorized_purchase_object(self, oid, price, huid):
        """Does delegated (pre-authorized) purchase of `oid` in the name of
        `huid`, at price `price` (vingd transferred from `huid` to consumer's
        acc).
        
        :raises GeneralException:
        :resource: ``objects/<oid>/purchases``
        
        :access: authorized users with ACL flag ``purchase.object.authorize`` +
            delegate permission required for the requester to charge the
            user: ``purchase.object``
        """
        return self.request(
            'post',
            safeformat('objects/{:int}/purchases', oid),
            json.dumps({
                'price': price,
                'huid': huid,
                'autocommit': True
            }))