@@ -13,41 +13,51 @@ def initialize_converter():
13
13
14
14
from bunq .sdk .http import api_client
15
15
from bunq .sdk .context import api_context
16
- from bunq .sdk .json import adapters
17
16
from bunq .sdk .json import converter
18
17
from bunq .sdk .model .generated import object_
19
18
from bunq .sdk .model .generated import endpoint
20
19
from bunq .sdk .model .core .installation import Installation
21
20
from bunq .sdk .model .core .session_server import SessionServer
21
+ from bunq .sdk .json .installation_adapter import InstallationAdapter
22
+ from bunq .sdk .json .session_server_adapter import SessionServerAdapter
23
+ from bunq .sdk .json .installation_context_adapter import InstallationContextAdapter
24
+ from bunq .sdk .json .api_environment_type_adapter import ApiEnvironmentTypeAdapter
25
+ from bunq .sdk .json .float_adapter import FloatAdapter
26
+ from bunq .sdk .json .geolocation_adapter import GeolocationAdapter
27
+ from bunq .sdk .json .monetary_account_reference_adapter import MonetaryAccountReferenceAdapter
28
+ from bunq .sdk .json .share_detail_adapter import ShareDetailAdapter
29
+ from bunq .sdk .json .date_time_adapter import DateTimeAdapter
30
+ from bunq .sdk .json .pagination_adapter import PaginationAdapter
22
31
23
- converter .register_adapter (Installation , adapters . InstallationAdapter )
32
+ converter .register_adapter (Installation , InstallationAdapter )
24
33
converter .register_adapter (
25
34
SessionServer ,
26
- adapters . SessionServerAdapter
35
+ SessionServerAdapter
27
36
)
28
37
converter .register_adapter (
29
38
api_context .InstallationContext ,
30
- adapters . InstallationContextAdapter
39
+ InstallationContextAdapter
31
40
)
32
41
converter .register_adapter (
33
42
api_context .ApiEnvironmentType ,
34
- adapters . ApiEnvironmentTypeAdapter
43
+ ApiEnvironmentTypeAdapter
35
44
)
36
- converter .register_adapter (float , adapters . FloatAdapter )
37
- converter .register_adapter (object_ .Geolocation , adapters . GeolocationAdapter )
45
+ converter .register_adapter (float , FloatAdapter )
46
+ converter .register_adapter (object_ .Geolocation , GeolocationAdapter )
38
47
converter .register_adapter (
39
48
object_ .MonetaryAccountReference ,
40
- adapters . MonetaryAccountReferenceAdapter
49
+ MonetaryAccountReferenceAdapter
41
50
)
42
- converter .register_adapter (object_ .ShareDetail , adapters . ShareDetailAdapter )
43
- converter .register_adapter (datetime .datetime , adapters . DateTimeAdapter )
44
- converter .register_adapter (Pagination , adapters . PaginationAdapter )
51
+ converter .register_adapter (object_ .ShareDetail , ShareDetailAdapter )
52
+ converter .register_adapter (datetime .datetime , DateTimeAdapter )
53
+ converter .register_adapter (Pagination , PaginationAdapter )
45
54
46
55
def register_anchor_adapter (class_to_register ):
47
56
if issubclass (class_to_register , AnchoredObjectInterface ):
57
+ from bunq .sdk .json .anchored_object_model_adapter import AnchoredObjectModelAdapter
48
58
converter .register_adapter (
49
59
class_to_register ,
50
- adapters . AnchoredObjectModelAdapter
60
+ AnchoredObjectModelAdapter
51
61
)
52
62
53
63
def get_class (class_string_to_get ):
0 commit comments