Bandwidth/python-bandwidth-iris

Not able to get disconnect order

waqasjaved160 opened this issue · 1 comments

When I try to call account.disconnects.get(id) I get following the error which shows id param is not being passed in get function of Disconnect.

  File "/usr/local/lib/python3.8/dist-packages/iris_sdk/models/disconnects.py", line 31, in get
    return Disconnect(self).get(id, params=params)
TypeError: get() got multiple values for argument 'params'

Here is the function definition of get in Disconnect class where id should be passed in arguments instead of getting from the class instance:

    def get(self, params=None):
        _id = self.id
        order_response = DisconnectOrderResponse(self._parent)
        self.clear()
        order_response.order_request = self
        return order_response.get(_id, params=params)

Hey @waqasjaved160

I have a PR to get this resolved - pending merge which should be today.

Please note that there is a bug in python3.9/ the ElementTree library causing this SDK to fail with >=Python 3.9