Skip to content

Commit

Permalink
Update the SDK version to 1.x.x. (bunq/sdk_python#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Aug 20, 2018
1 parent dfe9812 commit f690154
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
20 changes: 10 additions & 10 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions tinker/libs/bunq_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit f690154

Please sign in to comment.