Skip to content

Commit 4e2bcb7

Browse files
committed
#9 Add missing generated model properties and objects
1 parent b498d2e commit 4e2bcb7

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

bunq/sdk/model/generated/endpoint.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,7 @@ class Card(model.BunqModel):
15671567
:type _country_permission: list[object_.CardCountryPermission]
15681568
:type _label_monetary_account_ordered: object_.MonetaryAccountReference
15691569
:type _label_monetary_account_current: object_.MonetaryAccountReference
1570+
:type _pin_code_assignment: object_.CardPinAssignment
15701571
"""
15711572

15721573
# Field constants.
@@ -1577,6 +1578,8 @@ class Card(model.BunqModel):
15771578
FIELD_MAG_STRIPE_PERMISSION = "mag_stripe_permission"
15781579
FIELD_COUNTRY_PERMISSION = "country_permission"
15791580
FIELD_MONETARY_ACCOUNT_CURRENT_ID = "monetary_account_current_id"
1581+
FIELD_PIN_CODE_ASSIGNMENT = "pin_code_assignment"
1582+
FIELD_MONETARY_ACCOUNT_ID_FALLBACK = "monetary_account_id_fallback"
15801583

15811584
# Endpoint constants.
15821585
_ENDPOINT_URL_UPDATE = "user/{}/card/{}"
@@ -1602,6 +1605,7 @@ def __init__(self):
16021605
self._country_permission = None
16031606
self._label_monetary_account_ordered = None
16041607
self._label_monetary_account_current = None
1608+
self._pin_code_assignment = None
16051609

16061610
@classmethod
16071611
def update(cls, api_context, request_map, user_id, card_id,
@@ -1797,6 +1801,14 @@ def label_monetary_account_current(self):
17971801

17981802
return self._label_monetary_account_current
17991803

1804+
@property
1805+
def pin_code_assignment(self):
1806+
"""
1807+
:rtype: object_.CardPinAssignment
1808+
"""
1809+
1810+
return self._pin_code_assignment
1811+
18001812

18011813
class CashRegisterQrCodeContent(model.BunqModel):
18021814
"""
@@ -8974,6 +8986,9 @@ class UserCredentialPasswordIp(model.BunqModel):
89748986
Create a credential of a user for server authentication, or delete the
89758987
credential of a user for server authentication.
89768988
8989+
:type _id_: int
8990+
:type _created: str
8991+
:type _updated: str
89778992
:type _status: str
89788993
:type _expiry_time: str
89798994
:type _token_value: str
@@ -8988,6 +9003,9 @@ class UserCredentialPasswordIp(model.BunqModel):
89889003
_OBJECT_TYPE = "CredentialPasswordIp"
89899004

89909005
def __init__(self):
9006+
self._id_ = None
9007+
self._created = None
9008+
self._updated = None
89919009
self._status = None
89929010
self._expiry_time = None
89939011
self._token_value = None
@@ -9034,6 +9052,30 @@ def list(cls, api_context, user_id, custom_headers=None):
90349052

90359053
return cls._from_json_list(response_raw, cls._OBJECT_TYPE)
90369054

9055+
@property
9056+
def id_(self):
9057+
"""
9058+
:rtype: int
9059+
"""
9060+
9061+
return self._id_
9062+
9063+
@property
9064+
def created(self):
9065+
"""
9066+
:rtype: str
9067+
"""
9068+
9069+
return self._created
9070+
9071+
@property
9072+
def updated(self):
9073+
"""
9074+
:rtype: str
9075+
"""
9076+
9077+
return self._updated
9078+
90379079
@property
90389080
def status(self):
90399081
"""

bunq/sdk/model/generated/object_.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,23 @@ def __init__(self):
250250
self.expiry_time = None
251251

252252

253+
class CardPinAssignment(model.BunqModel):
254+
"""
255+
:type type_: str
256+
:type pin_code: str
257+
:type monetary_account_id: str
258+
"""
259+
260+
def __init__(self, type_):
261+
"""
262+
:type type_: str
263+
"""
264+
265+
self.type_ = type_
266+
self.pin_code = None
267+
self.monetary_account_id = None
268+
269+
253270
class Geolocation(model.BunqModel):
254271
"""
255272
:type latitude: float

0 commit comments

Comments
 (0)