Due to this refactor, there are some breaking changes to this SDK. The following is a list of imports that have to be updated by SDK users as of version 1.13.0:
from bunq.sdk.client import Pagination -> from bunq import Pagination
from bunq.sdk.context import BunqContext -> from bunq.sdk.context.bunq_context import BunqContext
from bunq.sdk.context import ApiContext -> from bunq.sdk.context.bunq_context import ApiContext
from bunq.sdk.context import ApiEnvironmentType -> from bunq.sdk.context.api_environment_type import ApiEnvironmentType
from bunq.sdk.context import InstallationContext -> from bunq.sdk.context.installation_context import InstallationContext
ApiContext now has to be imported as follows:
from bunq.sdk.context.bunq_context import ApiContext
And finally,ApiContext should now be initialised as follows (using the create metthod):
Due to this refactor, there are some breaking changes to this SDK. The following is a list of imports that have to be updated by SDK users as of version 1.13.0:
from bunq.sdk.client import Pagination
->from bunq import Pagination
from bunq.sdk.context import BunqContext
->from bunq.sdk.context.bunq_context import BunqContext
from bunq.sdk.context import ApiContext
->from bunq.sdk.context.bunq_context import ApiContext
from bunq.sdk.context import ApiEnvironmentType
->from bunq.sdk.context.api_environment_type import ApiEnvironmentType
from bunq.sdk.context import InstallationContext
->from bunq.sdk.context.installation_context import InstallationContext
ApiContext
now has to be imported as follows:from bunq.sdk.context.bunq_context import ApiContext
And finally,
ApiContext
should now be initialised as follows (using thecreate
metthod):api_context = ApiContext.create(ENVIRONMENT_TYPE, API_KEY, DEVICE_DESCRIPTION)
Many thanks to @MarcellaJP for creating the list of broken imports above here.