Skip to content

Commit 2c945ae

Browse files
committed
#9 fix location of BunqResponse
1 parent 4e2bcb7 commit 2c945ae

File tree

3 files changed

+214
-203
lines changed

3 files changed

+214
-203
lines changed

bunq/sdk/client.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,35 @@ def headers(self):
302302
"""
303303

304304
return self._headers
305+
306+
307+
class BunqResponse(object):
308+
"""
309+
:type _value: T
310+
:type _headers: dict[str, str]
311+
"""
312+
313+
def __init__(self, value, headers):
314+
"""
315+
:type value: T
316+
:type headers: dict[str, str]
317+
"""
318+
319+
self._value = value
320+
self._headers = headers
321+
322+
@property
323+
def value(self):
324+
"""
325+
:rtype: T
326+
"""
327+
328+
return self._value
329+
330+
@property
331+
def headers(self):
332+
"""
333+
:rtype: dict[str, str]
334+
"""
335+
336+
return self._headers

0 commit comments

Comments
 (0)