diff --git a/Pipfile.lock b/Pipfile.lock index 2d1aeff..8a445e2 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -5,15 +5,15 @@ }, "host-environment-markers": { "implementation_name": "cpython", - "implementation_version": "3.6.5", + "implementation_version": "3.7.0", "os_name": "posix", "platform_machine": "x86_64", "platform_python_implementation": "CPython", - "platform_release": "17.4.0", + "platform_release": "17.7.0", "platform_system": "Darwin", - "platform_version": "Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64", - "python_full_version": "3.6.5", - "python_version": "3.6", + "platform_version": "Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64", + "python_full_version": "3.7.0", + "python_version": "3.7", "sys_platform": "darwin" }, "pipfile-spec": 6, @@ -39,16 +39,16 @@ }, "bunq-sdk": { "hashes": [ - "sha256:1be2ff904f98e85797c66b867a6c6abc95e37d30216690edabc07cf023579d18" + "sha256:2f40bef503863237693d0d2a1e88f055c9bd96174aec72ac209e05877f7ac314" ], - "version": "==0.13.1" + "version": "==1.0.0" }, "certifi": { "hashes": [ - "sha256:9fa520c1bacfb634fa7af20a76bcbd3d5fb390481724c597da32c719a7dca4b0", - "sha256:13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7" + "sha256:b6e8b28b2b7e771a41ecdd12d4d43262ecab52adebbafa42c77d6b57fb6ad3a4", + "sha256:4c1d68a1408dd090d2f3a869aa94c3947cc1d967821d1ed303208c9f41f0f2f4" ], - "version": "==2018.4.16" + "version": "==2018.8.13" }, "chardet": { "hashes": [ diff --git a/tinker/libs/bunq_lib.py b/tinker/libs/bunq_lib.py index c2cef17..65f8501 100644 --- a/tinker/libs/bunq_lib.py +++ b/tinker/libs/bunq_lib.py @@ -13,7 +13,10 @@ from bunq.sdk.exception import BunqException from bunq.sdk.exception import ForbiddenException from bunq.sdk.model.generated import endpoint -from bunq.sdk.model.generated.object_ import Pointer, Amount, NotificationFilter +from bunq.sdk.model.generated.object_ import Pointer +from bunq.sdk.model.generated.object_ import Amount +from bunq.sdk.model.generated.object_ import NotificationFilter +from bunq.sdk.model.generated.object_ import CardPinAssignment NOTIFICATION_DELIVERY_METHOD_URL = 'URL' @@ -196,8 +199,15 @@ def link_card(self, card_id, account_id): :type account_id: int """ - endpoint.Card.update(card_id=int(card_id), - monetary_account_current_id=int(account_id)) + endpoint.Card.update( + card_id=int(card_id), + pin_code_assignment=[ + CardPinAssignment( + type_='PRIMARY', + monetary_account_id=int(account_id) + ) + ] + ) def add_callback_url(self, callback_url): """