Skip to content

Commit

Permalink
#9 Add missing generated model properties and objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dnl-blkv committed Aug 8, 2017
1 parent b498d2e commit 4e2bcb7
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
42 changes: 42 additions & 0 deletions bunq/sdk/model/generated/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,7 @@ class Card(model.BunqModel):
:type _country_permission: list[object_.CardCountryPermission]
:type _label_monetary_account_ordered: object_.MonetaryAccountReference
:type _label_monetary_account_current: object_.MonetaryAccountReference
:type _pin_code_assignment: object_.CardPinAssignment
"""

# Field constants.
Expand All @@ -1577,6 +1578,8 @@ class Card(model.BunqModel):
FIELD_MAG_STRIPE_PERMISSION = "mag_stripe_permission"
FIELD_COUNTRY_PERMISSION = "country_permission"
FIELD_MONETARY_ACCOUNT_CURRENT_ID = "monetary_account_current_id"
FIELD_PIN_CODE_ASSIGNMENT = "pin_code_assignment"
FIELD_MONETARY_ACCOUNT_ID_FALLBACK = "monetary_account_id_fallback"

# Endpoint constants.
_ENDPOINT_URL_UPDATE = "user/{}/card/{}"
Expand All @@ -1602,6 +1605,7 @@ def __init__(self):
self._country_permission = None
self._label_monetary_account_ordered = None
self._label_monetary_account_current = None
self._pin_code_assignment = None

@classmethod
def update(cls, api_context, request_map, user_id, card_id,
Expand Down Expand Up @@ -1797,6 +1801,14 @@ def label_monetary_account_current(self):

return self._label_monetary_account_current

@property
def pin_code_assignment(self):
"""
:rtype: object_.CardPinAssignment
"""

return self._pin_code_assignment


class CashRegisterQrCodeContent(model.BunqModel):
"""
Expand Down Expand Up @@ -8974,6 +8986,9 @@ class UserCredentialPasswordIp(model.BunqModel):
Create a credential of a user for server authentication, or delete the
credential of a user for server authentication.
:type _id_: int
:type _created: str
:type _updated: str
:type _status: str
:type _expiry_time: str
:type _token_value: str
Expand All @@ -8988,6 +9003,9 @@ class UserCredentialPasswordIp(model.BunqModel):
_OBJECT_TYPE = "CredentialPasswordIp"

def __init__(self):
self._id_ = None
self._created = None
self._updated = None
self._status = None
self._expiry_time = None
self._token_value = None
Expand Down Expand Up @@ -9034,6 +9052,30 @@ def list(cls, api_context, user_id, custom_headers=None):

return cls._from_json_list(response_raw, cls._OBJECT_TYPE)

@property
def id_(self):
"""
:rtype: int
"""

return self._id_

@property
def created(self):
"""
:rtype: str
"""

return self._created

@property
def updated(self):
"""
:rtype: str
"""

return self._updated

@property
def status(self):
"""
Expand Down
17 changes: 17 additions & 0 deletions bunq/sdk/model/generated/object_.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,23 @@ def __init__(self):
self.expiry_time = None


class CardPinAssignment(model.BunqModel):
"""
:type type_: str
:type pin_code: str
:type monetary_account_id: str
"""

def __init__(self, type_):
"""
:type type_: str
"""

self.type_ = type_
self.pin_code = None
self.monetary_account_id = None


class Geolocation(model.BunqModel):
"""
:type latitude: float
Expand Down

0 comments on commit 4e2bcb7

Please sign in to comment.