diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..b8b23ec
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,363 @@
+###############################
+# Core EditorConfig Options #
+###############################
+
+root = true
+
+# All files
+[*]
+end_of_line = lf
+indent_style = space
+charset = utf-8
+tab_width = 4
+max_line_length = 220
+
+# Protobuf, XML, YAML and project files
+[*.{proto,xml,json,yaml,yml,csproj,vbproj,props,config,ini,tf,hcl}]
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+# Markdown files
+[*.{md}]
+max_line_length = off
+trim_trailing_whitespace = false
+
+# Python files
+[*.{py}]
+indent_size = 4
+insert_final_newline = true
+
+# Go files
+[*.{go}]
+indent_size = 1
+indent_style = tab
+insert_final_newline = true
+
+# .NET Code files
+[*.{cs,csx,cshtml,razor}]
+indent_size = 4
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[**/{Migrations,obj}/**.cs]
+generated_code = true
+
+[*.{cshtml}]
+charset = utf-8-bom # BOM for correct UTF-8 display in MVC applications.
+
+[*.{ts,js,tsx,jsx}]
+indent_size = tab
+tab_width = 2
+quote_type = single
+trim_trailing_whitespace = true
+
+# TypeSpec files
+[*.{tsp}]
+indent_size = tab
+tab_width = 2
+trim_trailing_whitespace = true
+
+[*.{css,scss}]
+indent_size = tab
+tab_width = 2
+trim_trailing_whitespace = true
+
+[*.{pug}]
+indent_size = tab
+tab_width = 2
+trim_trailing_whitespace = true
+
+[*.{cs,vb}]
+#### Core EditorConfig Options ####
+
+# Indentation and spacing
+indent_size = 4
+indent_style = space
+tab_width = 4
+
+# New line preferences
+insert_final_newline = true
+
+#### .NET Coding Conventions ####
+
+# Organize usings
+dotnet_separate_import_directive_groups = false
+dotnet_sort_system_directives_first = true
+file_header_template = unset
+
+# this. and Me. preferences
+dotnet_style_qualification_for_event = false
+dotnet_style_qualification_for_field = false
+dotnet_style_qualification_for_method = false
+dotnet_style_qualification_for_property = false
+
+# Language keywords vs BCL types preferences
+dotnet_style_predefined_type_for_locals_parameters_members = true
+dotnet_style_predefined_type_for_member_access = true
+
+# Parentheses preferences
+dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary
+dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
+dotnet_style_parentheses_in_other_operators = never_if_unnecessary
+dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
+
+# Modifier preferences
+dotnet_style_require_accessibility_modifiers = for_non_interface_members
+
+# Expression-level preferences
+dotnet_style_coalesce_expression = true
+dotnet_style_collection_initializer = true
+dotnet_style_explicit_tuple_names = true
+dotnet_style_namespace_match_folder = true
+dotnet_style_null_propagation = true
+dotnet_style_object_initializer = true
+dotnet_style_operator_placement_when_wrapping = beginning_of_line
+dotnet_style_prefer_auto_properties = true
+dotnet_style_prefer_collection_expression = when_types_loosely_match
+dotnet_style_prefer_compound_assignment = true
+dotnet_style_prefer_conditional_expression_over_assignment = true
+dotnet_style_prefer_conditional_expression_over_return = true
+dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
+dotnet_style_prefer_inferred_anonymous_type_member_names = true
+dotnet_style_prefer_inferred_tuple_names = true
+dotnet_style_prefer_is_null_check_over_reference_equality_method = true
+dotnet_style_prefer_simplified_boolean_expressions = true
+dotnet_style_prefer_simplified_interpolation = true
+
+# Field preferences
+dotnet_style_readonly_field = true
+
+# Parameter preferences
+dotnet_code_quality_unused_parameters = all:suggestion
+
+# Suppression preferences
+dotnet_remove_unnecessary_suppression_exclusions = none
+
+# New line preferences
+dotnet_style_allow_multiple_blank_lines_experimental = true
+dotnet_style_allow_statement_immediately_after_block_experimental = true
+
+#### C# Coding Conventions ####
+
+# var preferences
+csharp_style_var_elsewhere = false
+csharp_style_var_for_built_in_types = true
+csharp_style_var_when_type_is_apparent = true
+
+# Expression-bodied members
+csharp_style_expression_bodied_accessors = true
+csharp_style_expression_bodied_constructors = false
+csharp_style_expression_bodied_indexers = true
+csharp_style_expression_bodied_lambdas = true
+csharp_style_expression_bodied_local_functions = false
+csharp_style_expression_bodied_methods = true
+csharp_style_expression_bodied_operators = true
+csharp_style_expression_bodied_properties = true
+
+# Pattern matching preferences
+csharp_style_pattern_matching_over_as_with_null_check = true
+csharp_style_pattern_matching_over_is_with_cast_check = true
+csharp_style_prefer_extended_property_pattern = true
+csharp_style_prefer_not_pattern = true
+csharp_style_prefer_pattern_matching = true
+csharp_style_prefer_switch_expression = true
+
+# Null-checking preferences
+csharp_style_conditional_delegate_call = true
+
+# Modifier preferences
+csharp_prefer_static_local_function = true
+csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
+csharp_style_prefer_readonly_struct = true
+csharp_style_prefer_readonly_struct_member = true
+
+# Code-block preferences
+csharp_prefer_braces = true:silent
+csharp_prefer_simple_using_statement = true
+csharp_style_namespace_declarations = file_scoped
+csharp_style_prefer_method_group_conversion = true
+csharp_style_prefer_primary_constructors = true
+csharp_style_prefer_top_level_statements = true
+
+# Expression-level preferences
+csharp_prefer_simple_default_expression = true
+csharp_style_deconstructed_variable_declaration = true
+csharp_style_implicit_object_creation_when_type_is_apparent = true
+csharp_style_inlined_variable_declaration = true
+csharp_style_prefer_index_operator = true
+csharp_style_prefer_local_over_anonymous_function = true
+csharp_style_prefer_null_check_over_type_check = true
+csharp_style_prefer_range_operator = true
+csharp_style_prefer_tuple_swap = true
+csharp_style_prefer_utf8_string_literals = true
+csharp_style_throw_expression = true
+csharp_style_unused_value_assignment_preference = discard_variable
+csharp_style_unused_value_expression_statement_preference = discard_variable
+
+# 'using' directive preferences
+csharp_using_directive_placement = outside_namespace
+
+# New line preferences
+csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
+csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true
+csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true
+csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
+csharp_style_allow_embedded_statements_on_same_line_experimental = true
+
+#### C# Formatting Rules ####
+
+# New line preferences
+csharp_new_line_before_catch = true
+csharp_new_line_before_else = true
+csharp_new_line_before_finally = true
+csharp_new_line_before_members_in_anonymous_types = true
+csharp_new_line_before_members_in_object_initializers = true
+csharp_new_line_before_open_brace = all
+csharp_new_line_between_query_expression_clauses = true
+
+# Indentation preferences
+csharp_indent_block_contents = true
+csharp_indent_braces = false
+csharp_indent_case_contents = true
+csharp_indent_case_contents_when_block = true
+csharp_indent_labels = one_less_than_current
+csharp_indent_switch_labels = true
+
+# Space preferences
+csharp_space_after_cast = false
+csharp_space_after_colon_in_inheritance_clause = true
+csharp_space_after_comma = true
+csharp_space_after_dot = false
+csharp_space_after_keywords_in_control_flow_statements = true
+csharp_space_after_semicolon_in_for_statement = true
+csharp_space_around_binary_operators = before_and_after
+csharp_space_around_declaration_statements = false
+csharp_space_before_colon_in_inheritance_clause = true
+csharp_space_before_comma = false
+csharp_space_before_dot = false
+csharp_space_before_open_square_brackets = false
+csharp_space_before_semicolon_in_for_statement = false
+csharp_space_between_empty_square_brackets = false
+csharp_space_between_method_call_empty_parameter_list_parentheses = false
+csharp_space_between_method_call_name_and_opening_parenthesis = false
+csharp_space_between_method_call_parameter_list_parentheses = false
+csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
+csharp_space_between_method_declaration_name_and_open_parenthesis = false
+csharp_space_between_method_declaration_parameter_list_parentheses = false
+csharp_space_between_parentheses = false
+csharp_space_between_square_brackets = false
+
+# Wrapping preferences
+csharp_preserve_single_line_blocks = true
+csharp_preserve_single_line_statements = true
+
+#### Naming styles ####
+
+# Naming rules
+
+dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
+dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
+dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
+
+dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
+dotnet_naming_rule.types_should_be_pascal_case.symbols = types
+dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
+
+dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
+dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
+dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
+
+# Symbol specifications
+
+dotnet_naming_symbols.interface.applicable_kinds = interface
+dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.interface.required_modifiers =
+
+dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
+dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.types.required_modifiers =
+
+dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
+dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.non_field_members.required_modifiers =
+
+# Naming styles
+
+dotnet_naming_style.pascal_case.required_prefix =
+dotnet_naming_style.pascal_case.required_suffix =
+dotnet_naming_style.pascal_case.word_separator =
+dotnet_naming_style.pascal_case.capitalization = pascal_case
+
+dotnet_naming_style.begins_with_i.required_prefix = I
+dotnet_naming_style.begins_with_i.required_suffix =
+dotnet_naming_style.begins_with_i.word_separator =
+dotnet_naming_style.begins_with_i.capitalization = pascal_case
+
+# NOTE: Requires **VS2019 16.3** or later
+
+# Calcasa Global Ruleset
+# Description: Code analysis rules for all Calcasa projects
+
+# Code files
+[*.{cs,vb}]
+
+dotnet_diagnostic.CA1303.severity = none
+
+dotnet_diagnostic.CA2007.severity = none
+
+dotnet_diagnostic.CA1515.severity = none
+
+dotnet_diagnostic.CS1573.severity = suggestion
+
+dotnet_diagnostic.CS1591.severity = suggestion
+
+dotnet_diagnostic.RMG012.severity = error
+
+dotnet_diagnostic.RMG020.severity = error
+
+dotnet_diagnostic.RMG037.severity = error
+
+dotnet_diagnostic.RMG038.severity = error
+
+dotnet_diagnostic.SA1005.severity = none
+
+dotnet_diagnostic.SA1101.severity = none
+
+dotnet_diagnostic.SA1108.severity = none
+
+dotnet_diagnostic.SA1124.severity = none
+
+dotnet_diagnostic.SA1128.severity = none
+
+dotnet_diagnostic.SA1200.severity = none
+
+dotnet_diagnostic.SA1201.severity = none
+
+dotnet_diagnostic.SA1202.severity = none
+
+dotnet_diagnostic.SA1204.severity = none
+
+dotnet_diagnostic.SA1214.severity = none
+
+dotnet_diagnostic.SA1309.severity = none
+
+dotnet_diagnostic.SA1413.severity = none
+
+dotnet_diagnostic.SA1502.severity = none
+
+dotnet_diagnostic.SA1512.severity = none
+
+dotnet_diagnostic.SA1600.severity = suggestion
+
+dotnet_diagnostic.SA1601.severity = suggestion
+
+dotnet_diagnostic.SA1602.severity = suggestion
+
+dotnet_diagnostic.SA1611.severity = suggestion
+
+dotnet_diagnostic.SA1615.severity = suggestion
+
+dotnet_diagnostic.SA1618.severity = suggestion
+
+dotnet_diagnostic.SA1633.severity = none
diff --git a/.gitignore b/.gitignore
index 43995bd..65b06b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,5 +62,5 @@ docs/_build/
# PyBuilder
target/
-#Ipython Notebook
+# Ipython Notebook
.ipynb_checkpoints
diff --git a/README.md b/README.md
index f7b4d86..0a0d930 100644
--- a/README.md
+++ b/README.md
@@ -1,87 +1,18 @@
-# calcasa-api
-This is a preliminary version of the Calcasa Public API. This service is currently in development.
-
-## Changelog
-
-### 2021-12-10 (v0.0.6)
-- Added extra field `peildatum` to the `WaarderingInputParameters` model.
-
-### 2021-11-25 (v0.0.5)
-- Updated all reported OAuth2 scopes and reduced the superflous scope information on each endpoint.
-
-### 2021-11-23 (v0.0.4)
-- Added per square meter developments to the `WaarderingOntwikkeling` object (fields with the `PerVierkantemeter` suffix).
-
-### 2021-11-15 (v0.0.3)
-- Added callback update and read endpoints and models.
-- Updated documentation.
-
-### 2021-11-11
-- Renamed /fundering endpoint to /funderingen to be more in line with other endpoints
-- Renamed `HerstelType` to `FunderingHerstelType`.
-- Added `FunderingType` values.
-
-### 2021-11-10
-- Adjusted OpenAPI Spec generation to fix some issues with certain generators. This also means that the nullable nature of certain fields is now correctly represented. Please refer to the Generation article for more information, the config files were updated aswell.
-### 2021-11-09
-- Added `Status` and `Taxatiedatum` to `Taxatiedata` model.
-
-### 2021-11-08
-
-- Renamed `id` field in `AdresInfo` model to `bagNummeraanduidingId`.
-- Added `GET /v0/fundering/{id}` endpoint with corresponding models.
-- Changed HTTP response code for the `BusinessRulesProblemDetails` error return type of `POST /v0/waardering` from `422 Unprocessable Entity` to `406 Not Acceptable` to fix a duplicate.
-
-### 2021-10-13
-
-- Added `taxatie` field to `Waardering` model.
-- Added `Taxatiedata` model containing the `taxatieorganisatie` field for desktop valuations.
-
-### 2021-09-29
-
-- Added `aangemaakt` timestamp field to `Waardering` model.
-- Added `WaarderingZoekParameters` model to replace `WaarderingInputParameters` in the `POST /v0/waarderingen/zoeken` endpoint.
-- Split `Omgevingsdata` model into a set of separate `Gebiedsdata` models that also contain extra statistics.
-- Added `bijzonderheden` field to `VorigeVerkoop` model.
-- Renamed `ReferentieBijzonderheden` model to `VerkoopBijzonderheden`.
-
-### 2021-09-22
-
-- Initial release of v0
-
-## Client packages
-[Nuget](https://www.nuget.org/packages/Calcasa.Api) - [Packagist](https://packagist.org/packages/calcasa/api) - [PyPI](https://pypi.org/project/calcasa.api)
-## Client implementation notes
-Clients should at all times be tolerant to the following:
-
-- Extra fields in responses
-- Empty or hidden fields in responses
-- Extra values in enumerations
-- Unexpected error responses in the form of [Problem Details](https://rfc-editor.org/rfc/rfc7807)
-
-## OpenAPI Specification
-This API is documented in **OpenAPI format version 3** you can use tools like the [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) to generate API clients.
-
-## Cross-Origin Resource Sharing
-This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).
-And that allows cross-domain communication from the browser.
-All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
-
-## Authentication
-
-Authentication is done via [OAuth2](https://oauth.net/2/) and the [client credentials](https://oauth.net/2/grant-types/client-credentials/) grant type.
-
+# calcasa.api
+The Calcasa API is used to connect to Calcasa provided services.
+For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-- API version: 0.0.6
-- Package version: 0.0.6
+- API version: 1.4.0
+- Package version: 1.4.0
+- Generator version: 7.16.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact)
## Requirements.
-Python >= 3.6
+Python 3.9+
## Installation & Usage
### pip install
@@ -95,7 +26,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
Then import the package:
```python
-import calcasa-api
+import calcasa.api
```
### Setuptools
@@ -109,28 +40,27 @@ python setup.py install --user
Then import the package:
```python
-import calcasa-api
+import calcasa.api
```
+### Tests
+
+Execute `pytest` to run the tests.
+
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
-import time
-import calcasa-api
+import calcasa.api
+from calcasa.api.rest import ApiException
from pprint import pprint
-from calcasa-api.api import adressen_api
-from calcasa-api.model.adres import Adres
-from calcasa-api.model.adres_info import AdresInfo
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-# Defining the host is optional and defaults to https://api.calcasa.nl
+
+# Defining the host is optional and defaults to https://api.calcasa.nl/api/v1
# See configuration.py for a list of all supported configuration parameters.
-configuration = calcasa-api.Configuration(
- host = "https://api.calcasa.nl"
+configuration = calcasa.api.Configuration(
+ host = "https://api.calcasa.nl/api/v1"
)
# The client must configure the authentication and authorization parameters
@@ -138,49 +68,52 @@ configuration = calcasa-api.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure OAuth2 access token for authorization: oauth
-configuration = calcasa-api.Configuration(
- host = "https://api.calcasa.nl"
-)
-configuration.access_token = 'YOUR_ACCESS_TOKEN'
+configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
-with calcasa-api.ApiClient(configuration) as api_client:
+with calcasa.api.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = adressen_api.AdressenApi(api_client)
- bag_nummeraanduiding_id = 1 # int | Een BAG Nummeraanduiding ID om een adres te specificeren.
+ api_instance = calcasa.api.AdressenApi(api_client)
+ bag_nummeraanduiding_id = 56 # int | Een BAG Nummeraanduiding ID om een adres te specificeren.
try:
# Adres info op basis van BAG Nummeraanduiding Id.
api_response = api_instance.get_adres(bag_nummeraanduiding_id)
+ print("The response of AdressenApi->get_adres:\n")
pprint(api_response)
- except calcasa-api.ApiException as e:
+ except ApiException as e:
print("Exception when calling AdressenApi->get_adres: %s\n" % e)
+
```
## Documentation for API Endpoints
-All URIs are relative to *https://api.calcasa.nl*
+All URIs are relative to *https://api.calcasa.nl/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*AdressenApi* | [**get_adres**](docs/AdressenApi.md#get_adres) | **GET** /api/v0/adressen/{bagNummeraanduidingId} | Adres info op basis van BAG Nummeraanduiding Id.
-*AdressenApi* | [**search_adres**](docs/AdressenApi.md#search_adres) | **POST** /api/v0/adressen/zoeken | Zoek adres info op basis van het gegeven adres.
-*BestemmingsplannenApi* | [**get_bestemming_by_id**](docs/BestemmingsplannenApi.md#get_bestemming_by_id) | **GET** /api/v0/bestemmingsplannen/{bagNummeraanduidingId} | Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID).
-*BodemApi* | [**get_bodem_by_id**](docs/BodemApi.md#get_bodem_by_id) | **GET** /api/v0/bodem/{id} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID).
-*BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v0/buurt/{buurtId} | Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is.
-*ConfiguratieApi* | [**get_callbacks**](docs/ConfiguratieApi.md#get_callbacks) | **GET** /api/v0/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client.
-*ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /api/v0/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client.
-*FacturenApi* | [**get_factuur**](docs/FacturenApi.md#get_factuur) | **GET** /api/v0/facturen/{id} | Factuur op basis van een waardering Id.
-*FotosApi* | [**get_foto**](docs/FotosApi.md#get_foto) | **GET** /api/v0/fotos/{id} | Foto op basis van een foto Id.
-*FunderingenApi* | [**get_fundering_by_id**](docs/FunderingenApi.md#get_fundering_by_id) | **GET** /api/v0/funderingen/{bagNummeraanduidingId} | Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID).
-*RapportenApi* | [**get_rapport**](docs/RapportenApi.md#get_rapport) | **GET** /api/v0/rapporten/{id} | Rapport op basis van waardering Id.
-*WaarderingenApi* | [**create_waardering**](docs/WaarderingenApi.md#create_waardering) | **POST** /api/v0/waarderingen | Creërt een waardering.
-*WaarderingenApi* | [**get_waardering**](docs/WaarderingenApi.md#get_waardering) | **GET** /api/v0/waarderingen/{id} | Waardering op basis van Id.
-*WaarderingenApi* | [**get_waardering_ontwikkeling**](docs/WaarderingenApi.md#get_waardering_ontwikkeling) | **GET** /api/v0/waarderingen/{id}/ontwikkeling | Waardering ontwikkeling op basis van waardering Id.
-*WaarderingenApi* | [**patch_waarderingen**](docs/WaarderingenApi.md#patch_waarderingen) | **PATCH** /api/v0/waarderingen/{id} | Patcht een waardering.
-*WaarderingenApi* | [**search_waarderingen**](docs/WaarderingenApi.md#search_waarderingen) | **POST** /api/v0/waarderingen/zoeken | Zoek waardering op basis van input parameters.
+*AdressenApi* | [**get_adres**](docs/AdressenApi.md#get_adres) | **GET** /adressen/{bagNummeraanduidingId} | Adres info op basis van BAG Nummeraanduiding Id.
+*AdressenApi* | [**search_adres**](docs/AdressenApi.md#search_adres) | **POST** /adressen/zoeken | Zoek adres info op basis van het gegeven adres.
+*BestemmingsplannenApi* | [**get_bestemming_by_id**](docs/BestemmingsplannenApi.md#get_bestemming_by_id) | **GET** /bestemmingsplannen/{bagNummeraanduidingId} | Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID).
+*BodemApi* | [**get_bodem_by_id**](docs/BodemApi.md#get_bodem_by_id) | **GET** /bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID).
+*BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /buurt/{buurtCode} | Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is.
+*CallbacksApi* | [**add_or_update_callback_subscription**](docs/CallbacksApi.md#add_or_update_callback_subscription) | **POST** /callbacks/inschrijvingen | Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres.
+*CallbacksApi* | [**delete_notification_subscription**](docs/CallbacksApi.md#delete_notification_subscription) | **DELETE** /callbacks/inschrijvingen/{bagNummeraanduidingId} | Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker.
+*CallbacksApi* | [**get_notification_subscription**](docs/CallbacksApi.md#get_notification_subscription) | **GET** /callbacks/inschrijvingen/{bagNummeraanduidingId} | Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker.
+*CallbacksApi* | [**get_notification_subscriptions**](docs/CallbacksApi.md#get_notification_subscriptions) | **GET** /callbacks/inschrijvingen | Haal de callback inschrijvingen binnen voor deze client.
+*ConfiguratieApi* | [**get_callbacks**](docs/ConfiguratieApi.md#get_callbacks) | **GET** /configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client.
+*ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client.
+*FacturenApi* | [**get_factuur**](docs/FacturenApi.md#get_factuur) | **GET** /facturen/{id} | Factuur op basis van een waardering Id.
+*FotosApi* | [**get_foto**](docs/FotosApi.md#get_foto) | **GET** /fotos/{id} | Foto op basis van een foto Id.
+*FunderingenApi* | [**get_fundering_by_id**](docs/FunderingenApi.md#get_fundering_by_id) | **GET** /funderingen/{bagNummeraanduidingId} | Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID).
+*GeldverstrekkersApi* | [**get_geldverstrekkers**](docs/GeldverstrekkersApi.md#get_geldverstrekkers) | **GET** /geldverstrekkers/{productType} | Alle geldverstrekkers die te gebruiken zijn voor aanvragen.
+*RapportenApi* | [**get_rapport**](docs/RapportenApi.md#get_rapport) | **GET** /rapporten/{id} | Rapport op basis van waardering Id.
+*WaarderingenApi* | [**create_waardering**](docs/WaarderingenApi.md#create_waardering) | **POST** /waarderingen | Creërt een waardering.
+*WaarderingenApi* | [**get_waardering**](docs/WaarderingenApi.md#get_waardering) | **GET** /waarderingen/{id} | Waardering op basis van Id.
+*WaarderingenApi* | [**get_waardering_ontwikkeling**](docs/WaarderingenApi.md#get_waardering_ontwikkeling) | **GET** /waarderingen/{id}/ontwikkeling | Waardering ontwikkeling op basis van waardering Id.
+*WaarderingenApi* | [**patch_waarderingen**](docs/WaarderingenApi.md#patch_waarderingen) | **PATCH** /waarderingen/{id} | Patcht een waardering.
+*WaarderingenApi* | [**search_waarderingen**](docs/WaarderingenApi.md#search_waarderingen) | **POST** /waarderingen/zoeken | Zoek waardering op basis van input parameters.
## Documentation For Models
@@ -194,8 +127,11 @@ Class | Method | HTTP request | Description
- [BusinessRulesCode](docs/BusinessRulesCode.md)
- [BusinessRulesProblemDetails](docs/BusinessRulesProblemDetails.md)
- [Callback](docs/Callback.md)
+ - [CallbackInschrijving](docs/CallbackInschrijving.md)
- [CbsIndeling](docs/CbsIndeling.md)
+ - [DeelWaarderingWebhookPayload](docs/DeelWaarderingWebhookPayload.md)
- [Energielabel](docs/Energielabel.md)
+ - [EnergielabelData](docs/EnergielabelData.md)
- [Factuur](docs/Factuur.md)
- [Foto](docs/Foto.md)
- [FunderingDataBron](docs/FunderingDataBron.md)
@@ -207,8 +143,8 @@ Class | Method | HTTP request | Description
- [FunderingTypering](docs/FunderingTypering.md)
- [Funderingdata](docs/Funderingdata.md)
- [Gebiedsdata](docs/Gebiedsdata.md)
+ - [Geldverstrekker](docs/Geldverstrekker.md)
- [InvalidArgumentProblemDetails](docs/InvalidArgumentProblemDetails.md)
- - [JsonPatchDocument](docs/JsonPatchDocument.md)
- [KlantwaardeType](docs/KlantwaardeType.md)
- [Kwartaal](docs/Kwartaal.md)
- [Modeldata](docs/Modeldata.md)
@@ -224,10 +160,13 @@ Class | Method | HTTP request | Description
- [ProductType](docs/ProductType.md)
- [Rapport](docs/Rapport.md)
- [Referentieobject](docs/Referentieobject.md)
+ - [ResourceExhaustedProblemDetails](docs/ResourceExhaustedProblemDetails.md)
- [Taxatiedata](docs/Taxatiedata.md)
- [Taxatiestatus](docs/Taxatiestatus.md)
+ - [UnauthorizedProblemDetails](docs/UnauthorizedProblemDetails.md)
- [ValidationProblemDetails](docs/ValidationProblemDetails.md)
- [VerkoopBijzonderheden](docs/VerkoopBijzonderheden.md)
+ - [VersionNames](docs/VersionNames.md)
- [VorigeVerkoop](docs/VorigeVerkoop.md)
- [Waardering](docs/Waardering.md)
- [WaarderingInputParameters](docs/WaarderingInputParameters.md)
@@ -236,43 +175,39 @@ Class | Method | HTTP request | Description
- [WaarderingStatus](docs/WaarderingStatus.md)
- [WaarderingWebhookPayload](docs/WaarderingWebhookPayload.md)
- [WaarderingZoekParameters](docs/WaarderingZoekParameters.md)
+ - [WebhookPayload](docs/WebhookPayload.md)
- [WoningType](docs/WoningType.md)
+
## Documentation For Authorization
-## oauth
+Authentication schemes defined for the API:
+
+### oauth
- **Type**: OAuth
- **Flow**: application
- **Authorization URL**:
- **Scopes**:
- - **all**: Full permissions for all areas.
- - **api:all**: Full permissions for all areas of the public API.
- - **api:bestemmingsplannen:all**: Full permissions for the bestemmingsplannen area of the public API.
- - **api:bodem:all**: Full permissions for the bodem area of the public API.
- - **api:buurt:all**: Full permissions for the buurt area of the public API.
- - **api:configuratie:all**: Full permissions for the configuratie area of the public API.
- - **api:facturen:all**: Full permissions for the facturen area of the public API.
- - **api:fotos:all**: Full permissions for the fotos area of the public API.
- - **api:funderingen:all**: Full permissions for the funderingen area of the public API.
- - **api:rapporten:all**: Full permissions for the rapporten area of the public API.
- - **api:waarderingen:all**: Full permissions for the waarderingen area of the public API.
- - **api:adressen:read**: Read permissions for the adressen area of the public API.
- - **api:bestemmingsplannen:read**: Read permissions for the bestemmingsplannen area of the public API.
- - **api:bodem:read**: Read permissions for the bodem area of the public API.
- - **api:buurt:read**: Read permissions for the buurt area of the public API.
- - **api:configuratie:read**: Read permissions for the configuratie area of the public API.
- - **api:configuratie:write**: Write permissions for the configuratie area of the public API.
- - **api:facturen:read**: Read permissions for the facturen area of the public API.
- - **api:fotos:read**: Read permissions for the fotos area of the public API.
- - **api:funderingen:read**: Read permissions for the funderingen area of the public API.
- - **api:rapporten:read**: Read permissions for the rapporten area of the public API.
- - **api:waarderingen:create**: Create permissions for the waarderingen area of the public API.
- - **api:waarderingen:patch**: Patch permissions for the waarderingen area of the public API.
- - **api:waarderingen:read**: Read permissions for the waarderingen area of the public API.
- - **api:waarderingen:ontwikkeling**: Read permissions for the ontwikkelingen endpoint in the waarderingen area of the public API.
+ - **api:adressen:read**:
+ - **api:bestemmingsplannen:read**:
+ - **api:bodem:read**:
+ - **api:buurt:read**:
+ - **api:callback:read**:
+ - **api:callback:write**:
+ - **api:configuratie:read**:
+ - **api:configuratie:write**:
+ - **api:facturen:read**:
+ - **api:fotos:read**:
+ - **api:funderingen:read**:
+ - **api:geldverstrekkers:read**:
+ - **api:rapporten:read**:
+ - **api:waarderingen:read**:
+ - **api:waarderingen:patch**:
+ - **api:waarderingen:ontwikkeling**:
+ - **api:waarderingen:create**:
## Author
@@ -280,22 +215,3 @@ Class | Method | HTTP request | Description
info@calcasa.nl
-## Notes for Large OpenAPI documents
-If the OpenAPI document is large, imports in calcasa-api.apis and calcasa-api.models may fail with a
-RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
-
-Solution 1:
-Use specific imports for apis and models like:
-- `from calcasa-api.api.default_api import DefaultApi`
-- `from calcasa-api.model.pet import Pet`
-
-Solution 2:
-Before importing the package, adjust the maximum recursion limit as shown below:
-```
-import sys
-sys.setrecursionlimit(1500)
-import calcasa-api
-from calcasa-api.apis import *
-from calcasa-api.models import *
-```
-
diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py
deleted file mode 100644
index d02df85..0000000
--- a/calcasa-api/__init__.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# flake8: noqa
-
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-__version__ = "0.0.6"
-
-# import ApiClient
-from calcasa-api.api_client import ApiClient
-
-# import Configuration
-from calcasa-api.configuration import Configuration
-
-# import exceptions
-from calcasa-api.exceptions import OpenApiException
-from calcasa-api.exceptions import ApiAttributeError
-from calcasa-api.exceptions import ApiTypeError
-from calcasa-api.exceptions import ApiValueError
-from calcasa-api.exceptions import ApiKeyError
-from calcasa-api.exceptions import ApiException
diff --git a/calcasa-api/api/__init__.py b/calcasa-api/api/__init__.py
deleted file mode 100644
index 2f43687..0000000
--- a/calcasa-api/api/__init__.py
+++ /dev/null
@@ -1,3 +0,0 @@
-# do not import all apis into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all apis from one package, import them with
-# from calcasa-api.apis import AdressenApi
diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py
deleted file mode 100644
index 4f78b15..0000000
--- a/calcasa-api/api/adressen_api.py
+++ /dev/null
@@ -1,285 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.adres import Adres
-from calcasa-api.model.adres_info import AdresInfo
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class AdressenApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_adres_endpoint = _Endpoint(
- settings={
- 'response_type': (AdresInfo,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/adressen/{bagNummeraanduidingId}',
- 'operation_id': 'get_adres',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'bag_nummeraanduiding_id',
- ],
- 'required': [
- 'bag_nummeraanduiding_id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'bag_nummeraanduiding_id':
- (int,),
- },
- 'attribute_map': {
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId',
- },
- 'location_map': {
- 'bag_nummeraanduiding_id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
- self.search_adres_endpoint = _Endpoint(
- settings={
- 'response_type': (AdresInfo,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/adressen/zoeken',
- 'operation_id': 'search_adres',
- 'http_method': 'POST',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'adres',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'adres':
- (Adres,),
- },
- 'attribute_map': {
- },
- 'location_map': {
- 'adres': 'body',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [
- 'application/json'
- ]
- },
- api_client=api_client
- )
-
- def get_adres(
- self,
- bag_nummeraanduiding_id,
- **kwargs
- ):
- """Adres info op basis van BAG Nummeraanduiding Id. # noqa: E501
-
- De Notities zullen leeg blijven voor dit endpoint. Het adres object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_adres(bag_nummeraanduiding_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- bag_nummeraanduiding_id (int): Een BAG Nummeraanduiding ID om een adres te specificeren.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- AdresInfo
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['bag_nummeraanduiding_id'] = \
- bag_nummeraanduiding_id
- return self.get_adres_endpoint.call_with_http_info(**kwargs)
-
- def search_adres(
- self,
- **kwargs
- ):
- """Zoek adres info op basis van het gegeven adres. # noqa: E501
-
- De notities geven aan of de input al dan niet gewijzigd of onbekend is. De enige velden die echt nodig zijn voor een compleet resultaat zijn de postcode, het huisnummer en de huisnummer toevoeging. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.search_adres(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- adres (Adres): De adres zoekopdracht.. [optional]
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- AdresInfo
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.search_adres_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py
deleted file mode 100644
index 6bf6b21..0000000
--- a/calcasa-api/api/bestemmingsplannen_api.py
+++ /dev/null
@@ -1,171 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.bestemmingsdata import Bestemmingsdata
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class BestemmingsplannenApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_bestemming_by_id_endpoint = _Endpoint(
- settings={
- 'response_type': (Bestemmingsdata,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/bestemmingsplannen/{bagNummeraanduidingId}',
- 'operation_id': 'get_bestemming_by_id',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'bag_nummeraanduiding_id',
- ],
- 'required': [
- 'bag_nummeraanduiding_id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'bag_nummeraanduiding_id':
- (int,),
- },
- 'attribute_map': {
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId',
- },
- 'location_map': {
- 'bag_nummeraanduiding_id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_bestemming_by_id(
- self,
- bag_nummeraanduiding_id,
- **kwargs
- ):
- """Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID). # noqa: E501
-
- Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_bestemming_by_id(bag_nummeraanduiding_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- bag_nummeraanduiding_id (int): Een BAG Nummeraanduiding ID om een adres te specificeren.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Bestemmingsdata
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['bag_nummeraanduiding_id'] = \
- bag_nummeraanduiding_id
- return self.get_bestemming_by_id_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py
deleted file mode 100644
index 4916c63..0000000
--- a/calcasa-api/api/bodem_api.py
+++ /dev/null
@@ -1,177 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.bodemdata import Bodemdata
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class BodemApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_bodem_by_id_endpoint = _Endpoint(
- settings={
- 'response_type': (Bodemdata,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/bodem/{id}',
- 'operation_id': 'get_bodem_by_id',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- 'bag_nummeraanduiding_id',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- 'bag_nummeraanduiding_id':
- (int,),
- },
- 'attribute_map': {
- 'id': 'id',
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId',
- },
- 'location_map': {
- 'id': 'path',
- 'bag_nummeraanduiding_id': 'query',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_bodem_by_id(
- self,
- id,
- **kwargs
- ):
- """Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). # noqa: E501
-
- Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_bodem_by_id(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str):
-
- Keyword Args:
- bag_nummeraanduiding_id (int): Een BAG Nummeraanduiding ID om een adres te specificeren.. [optional]
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Bodemdata
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.get_bodem_by_id_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py
deleted file mode 100644
index f3ecc43..0000000
--- a/calcasa-api/api/buurt_api.py
+++ /dev/null
@@ -1,171 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.omgevingsdata import Omgevingsdata
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class BuurtApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_buurt_endpoint = _Endpoint(
- settings={
- 'response_type': (Omgevingsdata,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/buurt/{buurtId}',
- 'operation_id': 'get_buurt',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'buurt_id',
- ],
- 'required': [
- 'buurt_id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'buurt_id':
- (int,),
- },
- 'attribute_map': {
- 'buurt_id': 'buurtId',
- },
- 'location_map': {
- 'buurt_id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_buurt(
- self,
- buurt_id,
- **kwargs
- ):
- """Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is. # noqa: E501
-
- Het omgevingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_buurt(buurt_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- buurt_id (int): Een CBS buurt ID.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Omgevingsdata
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['buurt_id'] = \
- buurt_id
- return self.get_buurt_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py
deleted file mode 100644
index 058a2ff..0000000
--- a/calcasa-api/api/configuratie_api.py
+++ /dev/null
@@ -1,277 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.callback import Callback
-from calcasa-api.model.invalid_argument_problem_details import InvalidArgumentProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class ConfiguratieApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_callbacks_endpoint = _Endpoint(
- settings={
- 'response_type': ([Callback],),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/configuratie/callbacks',
- 'operation_id': 'get_callbacks',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- },
- 'attribute_map': {
- },
- 'location_map': {
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
- self.update_callbacks_endpoint = _Endpoint(
- settings={
- 'response_type': ([Callback],),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/configuratie/callbacks',
- 'operation_id': 'update_callbacks',
- 'http_method': 'POST',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'callback',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'callback':
- (Callback,),
- },
- 'attribute_map': {
- },
- 'location_map': {
- 'callback': 'body',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [
- 'application/json-patch+json',
- 'application/json',
- 'text/json',
- 'application/*+json',
- 'application/x-protobuf',
- 'application/protobuf'
- ]
- },
- api_client=api_client
- )
-
- def get_callbacks(
- self,
- **kwargs
- ):
- """Haal de geconfigureerde callback URL's op voor de huidige client. # noqa: E501
-
- Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_callbacks(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- [Callback]
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.get_callbacks_endpoint.call_with_http_info(**kwargs)
-
- def update_callbacks(
- self,
- **kwargs
- ):
- """Configureer callback URL voor een specifieke API versie voor de huidige client. # noqa: E501
-
- Indien er al een callback geconfigureerd is voor de opgegeven versie zal deze overschreven worden. Bij het aanroepen van de callback URL zal de CallbackName achter de URL toegevoegd worden. Een lege string # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.update_callbacks(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- callback (Callback): De te configureren callback.. [optional]
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- [Callback]
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.update_callbacks_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py
deleted file mode 100644
index 241af3a..0000000
--- a/calcasa-api/api/facturen_api.py
+++ /dev/null
@@ -1,169 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class FacturenApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_factuur_endpoint = _Endpoint(
- settings={
- 'response_type': (file_type,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/facturen/{id}',
- 'operation_id': 'get_factuur',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- },
- 'attribute_map': {
- 'id': 'id',
- },
- 'location_map': {
- 'id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/pdf'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_factuur(
- self,
- id,
- **kwargs
- ):
- """Factuur op basis van een waardering Id. # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_factuur(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str): De Id van een waardering.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- file_type
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.get_factuur_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py
deleted file mode 100644
index 80cca2e..0000000
--- a/calcasa-api/api/fotos_api.py
+++ /dev/null
@@ -1,170 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class FotosApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_foto_endpoint = _Endpoint(
- settings={
- 'response_type': (file_type,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/fotos/{id}',
- 'operation_id': 'get_foto',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- },
- 'attribute_map': {
- 'id': 'id',
- },
- 'location_map': {
- 'id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'image/jpeg',
- 'image/png'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_foto(
- self,
- id,
- **kwargs
- ):
- """Foto op basis van een foto Id. # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_foto(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str): De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- file_type
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.get_foto_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py
deleted file mode 100644
index 00f237c..0000000
--- a/calcasa-api/api/funderingen_api.py
+++ /dev/null
@@ -1,171 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.funderingdata import Funderingdata
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class FunderingenApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_fundering_by_id_endpoint = _Endpoint(
- settings={
- 'response_type': (Funderingdata,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/funderingen/{bagNummeraanduidingId}',
- 'operation_id': 'get_fundering_by_id',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'bag_nummeraanduiding_id',
- ],
- 'required': [
- 'bag_nummeraanduiding_id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'bag_nummeraanduiding_id':
- (int,),
- },
- 'attribute_map': {
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId',
- },
- 'location_map': {
- 'bag_nummeraanduiding_id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_fundering_by_id(
- self,
- bag_nummeraanduiding_id,
- **kwargs
- ):
- """Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID). # noqa: E501
-
- Het funderingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_fundering_by_id(bag_nummeraanduiding_id, async_req=True)
- >>> result = thread.get()
-
- Args:
- bag_nummeraanduiding_id (int): Een BAG Nummeraanduiding ID om een adres te specificeren.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Funderingdata
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['bag_nummeraanduiding_id'] = \
- bag_nummeraanduiding_id
- return self.get_fundering_by_id_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py
deleted file mode 100644
index 59484da..0000000
--- a/calcasa-api/api/rapporten_api.py
+++ /dev/null
@@ -1,169 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-
-
-class RapportenApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.get_rapport_endpoint = _Endpoint(
- settings={
- 'response_type': (file_type,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/rapporten/{id}',
- 'operation_id': 'get_rapport',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- },
- 'attribute_map': {
- 'id': 'id',
- },
- 'location_map': {
- 'id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/pdf'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
-
- def get_rapport(
- self,
- id,
- **kwargs
- ):
- """Rapport op basis van waardering Id. # noqa: E501
-
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_rapport(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str): De Id van een waardering.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- file_type
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.get_rapport_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py
deleted file mode 100644
index bbc28c9..0000000
--- a/calcasa-api/api/waarderingen_api.py
+++ /dev/null
@@ -1,647 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
-from calcasa-api.model_utils import ( # noqa: F401
- check_allowed_values,
- check_validations,
- date,
- datetime,
- file_type,
- none_type,
- validate_and_convert_types
-)
-from calcasa-api.model.business_rules_problem_details import BusinessRulesProblemDetails
-from calcasa-api.model.invalid_argument_problem_details import InvalidArgumentProblemDetails
-from calcasa-api.model.json_patch_document import JsonPatchDocument
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-from calcasa-api.model.validation_problem_details import ValidationProblemDetails
-from calcasa-api.model.waardering import Waardering
-from calcasa-api.model.waardering_input_parameters import WaarderingInputParameters
-from calcasa-api.model.waardering_ontwikkeling import WaarderingOntwikkeling
-from calcasa-api.model.waardering_zoek_parameters import WaarderingZoekParameters
-
-
-class WaarderingenApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
- self.create_waardering_endpoint = _Endpoint(
- settings={
- 'response_type': (Waardering,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/waarderingen',
- 'operation_id': 'create_waardering',
- 'http_method': 'POST',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'waardering_input_parameters',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'waardering_input_parameters':
- (WaarderingInputParameters,),
- },
- 'attribute_map': {
- },
- 'location_map': {
- 'waardering_input_parameters': 'body',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [
- 'application/json'
- ]
- },
- api_client=api_client
- )
- self.get_waardering_endpoint = _Endpoint(
- settings={
- 'response_type': (Waardering,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/waarderingen/{id}',
- 'operation_id': 'get_waardering',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- },
- 'attribute_map': {
- 'id': 'id',
- },
- 'location_map': {
- 'id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
- self.get_waardering_ontwikkeling_endpoint = _Endpoint(
- settings={
- 'response_type': (WaarderingOntwikkeling,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/waarderingen/{id}/ontwikkeling',
- 'operation_id': 'get_waardering_ontwikkeling',
- 'http_method': 'GET',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- },
- 'attribute_map': {
- 'id': 'id',
- },
- 'location_map': {
- 'id': 'path',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [],
- },
- api_client=api_client
- )
- self.patch_waarderingen_endpoint = _Endpoint(
- settings={
- 'response_type': (Waardering,),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/waarderingen/{id}',
- 'operation_id': 'patch_waarderingen',
- 'http_method': 'PATCH',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'id',
- 'json_patch_document',
- ],
- 'required': [
- 'id',
- ],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'id':
- (str,),
- 'json_patch_document':
- (JsonPatchDocument,),
- },
- 'attribute_map': {
- 'id': 'id',
- },
- 'location_map': {
- 'id': 'path',
- 'json_patch_document': 'body',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [
- 'application/json-patch+json'
- ]
- },
- api_client=api_client
- )
- self.search_waarderingen_endpoint = _Endpoint(
- settings={
- 'response_type': ([Waardering],),
- 'auth': [
- 'oauth'
- ],
- 'endpoint_path': '/api/v0/waarderingen/zoeken',
- 'operation_id': 'search_waarderingen',
- 'http_method': 'POST',
- 'servers': None,
- },
- params_map={
- 'all': [
- 'waardering_zoek_parameters',
- ],
- 'required': [],
- 'nullable': [
- ],
- 'enum': [
- ],
- 'validation': [
- ]
- },
- root_map={
- 'validations': {
- },
- 'allowed_values': {
- },
- 'openapi_types': {
- 'waardering_zoek_parameters':
- (WaarderingZoekParameters,),
- },
- 'attribute_map': {
- },
- 'location_map': {
- 'waardering_zoek_parameters': 'body',
- },
- 'collection_format_map': {
- }
- },
- headers_map={
- 'accept': [
- 'application/problem+json',
- 'application/json'
- ],
- 'content_type': [
- 'application/json'
- ]
- },
- api_client=api_client
- )
-
- def create_waardering(
- self,
- **kwargs
- ):
- """Creërt een waardering. # noqa: E501
-
- Nadat de waardering aangemaakt is zal deze bevestigd moeten worden. De BagNummeraanduidingId en ProductType velden zijn verplicht. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}/waardering | [WaarderingWebhookPayload](/api/v0/reference/schemas/WaarderingWebhookPayload) | # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.create_waardering(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- waardering_input_parameters (WaarderingInputParameters): [optional]
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Waardering
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.create_waardering_endpoint.call_with_http_info(**kwargs)
-
- def get_waardering(
- self,
- id,
- **kwargs
- ):
- """Waardering op basis van Id. # noqa: E501
-
- Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_waardering(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str): De waardering Id in de vorm van een UUID.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Waardering
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.get_waardering_endpoint.call_with_http_info(**kwargs)
-
- def get_waardering_ontwikkeling(
- self,
- id,
- **kwargs
- ):
- """Waardering ontwikkeling op basis van waardering Id. # noqa: E501
-
- Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.get_waardering_ontwikkeling(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str): De waardering Id in de vorm van een UUID.
-
- Keyword Args:
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- WaarderingOntwikkeling
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.get_waardering_ontwikkeling_endpoint.call_with_http_info(**kwargs)
-
- def patch_waarderingen(
- self,
- id,
- **kwargs
- ):
- """Patcht een waardering. # noqa: E501
-
- Op dit moment kan alleen de waarderingsstatus gepatcht worden. Dit endpoint kan gebruikt worden om een waarderingsinitialisatie te bevestigen. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}/waardering | [WaarderingWebhookPayload](/api/v0/reference/schemas/WaarderingWebhookPayload) | # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.patch_waarderingen(id, async_req=True)
- >>> result = thread.get()
-
- Args:
- id (str): De waardering Id in de vorm van een UUID.
-
- Keyword Args:
- json_patch_document (JsonPatchDocument): Het JsonPatch document voor de operatie.. [optional]
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- Waardering
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- kwargs['id'] = \
- id
- return self.patch_waarderingen_endpoint.call_with_http_info(**kwargs)
-
- def search_waarderingen(
- self,
- **kwargs
- ):
- """Zoek waardering op basis van input parameters. # noqa: E501
-
- Alle items kunnen gebruikt worden voor het zoeken, ProductType en BagNummeraanduidingId zijn verplicht. Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
-
- >>> thread = api.search_waarderingen(async_req=True)
- >>> result = thread.get()
-
-
- Keyword Args:
- waardering_zoek_parameters (WaarderingZoekParameters): De parameters voor deze zoekopdracht.. [optional]
- _return_http_data_only (bool): response data without head status
- code and headers. Default is True.
- _preload_content (bool): if False, the urllib3.HTTPResponse object
- will be returned without reading/decoding response data.
- Default is True.
- _request_timeout (int/float/tuple): timeout setting for this request. If
- one number provided, it will be total request timeout. It can also
- be a pair (tuple) of (connection, read) timeouts.
- Default is None.
- _check_input_type (bool): specifies if type checking
- should be done one the data sent to the server.
- Default is True.
- _check_return_type (bool): specifies if type checking
- should be done one the data received from the server.
- Default is True.
- _host_index (int/None): specifies the index of the server
- that we want to use.
- Default is read from the configuration.
- async_req (bool): execute request asynchronously
-
- Returns:
- [Waardering]
- If the method is called asynchronously, returns the request
- thread.
- """
- kwargs['async_req'] = kwargs.get(
- 'async_req', False
- )
- kwargs['_return_http_data_only'] = kwargs.get(
- '_return_http_data_only', True
- )
- kwargs['_preload_content'] = kwargs.get(
- '_preload_content', True
- )
- kwargs['_request_timeout'] = kwargs.get(
- '_request_timeout', None
- )
- kwargs['_check_input_type'] = kwargs.get(
- '_check_input_type', True
- )
- kwargs['_check_return_type'] = kwargs.get(
- '_check_return_type', True
- )
- kwargs['_host_index'] = kwargs.get('_host_index')
- return self.search_waarderingen_endpoint.call_with_http_info(**kwargs)
-
diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py
deleted file mode 100644
index 1fb7939..0000000
--- a/calcasa-api/api_client.py
+++ /dev/null
@@ -1,862 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import json
-import atexit
-import mimetypes
-from multiprocessing.pool import ThreadPool
-import io
-import os
-import re
-import typing
-from urllib.parse import quote
-from urllib3.fields import RequestField
-
-
-from calcasa-api import rest
-from calcasa-api.configuration import Configuration
-from calcasa-api.exceptions import ApiTypeError, ApiValueError, ApiException
-from calcasa-api.model_utils import (
- ModelNormal,
- ModelSimple,
- ModelComposed,
- check_allowed_values,
- check_validations,
- date,
- datetime,
- deserialize_file,
- file_type,
- model_to_dict,
- none_type,
- validate_and_convert_types
-)
-
-
-class ApiClient(object):
- """Generic API client for OpenAPI client library builds.
-
- OpenAPI generic API client. This client handles the client-
- server communication, and is invariant across implementations. Specifics of
- the methods and models for each application are generated from the OpenAPI
- templates.
-
- NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
- Do not edit the class manually.
-
- :param configuration: .Configuration object for this client
- :param header_name: a header to pass when making calls to the API.
- :param header_value: a header value to pass when making calls to
- the API.
- :param cookie: a cookie to include in the header when making calls
- to the API
- :param pool_threads: The number of threads to use for async requests
- to the API. More threads means more concurrent API requests.
- """
-
- _pool = None
-
- def __init__(self, configuration=None, header_name=None, header_value=None,
- cookie=None, pool_threads=1):
- if configuration is None:
- configuration = Configuration.get_default_copy()
- self.configuration = configuration
- self.pool_threads = pool_threads
-
- self.rest_client = rest.RESTClientObject(configuration)
- self.default_headers = {}
- if header_name is not None:
- self.default_headers[header_name] = header_value
- self.cookie = cookie
- # Set default User-Agent.
- self.user_agent = 'Calcasa Python Api Client/0.0.6'
-
- def __enter__(self):
- return self
-
- def __exit__(self, exc_type, exc_value, traceback):
- self.close()
-
- def close(self):
- if self._pool:
- self._pool.close()
- self._pool.join()
- self._pool = None
- if hasattr(atexit, 'unregister'):
- atexit.unregister(self.close)
-
- @property
- def pool(self):
- """Create thread pool on first request
- avoids instantiating unused threadpool for blocking clients.
- """
- if self._pool is None:
- atexit.register(self.close)
- self._pool = ThreadPool(self.pool_threads)
- return self._pool
-
- @property
- def user_agent(self):
- """User agent for this API client"""
- return self.default_headers['User-Agent']
-
- @user_agent.setter
- def user_agent(self, value):
- self.default_headers['User-Agent'] = value
-
- def set_default_header(self, header_name, header_value):
- self.default_headers[header_name] = header_value
-
- def __call_api(
- self,
- resource_path: str,
- method: str,
- path_params: typing.Optional[typing.Dict[str, typing.Any]] = None,
- query_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None,
- header_params: typing.Optional[typing.Dict[str, typing.Any]] = None,
- body: typing.Optional[typing.Any] = None,
- post_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None,
- files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None,
- response_type: typing.Optional[typing.Tuple[typing.Any]] = None,
- auth_settings: typing.Optional[typing.List[str]] = None,
- _return_http_data_only: typing.Optional[bool] = None,
- collection_formats: typing.Optional[typing.Dict[str, str]] = None,
- _preload_content: bool = True,
- _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None,
- _host: typing.Optional[str] = None,
- _check_type: typing.Optional[bool] = None
- ):
-
- config = self.configuration
-
- # header parameters
- header_params = header_params or {}
- header_params.update(self.default_headers)
- if self.cookie:
- header_params['Cookie'] = self.cookie
- if header_params:
- header_params = self.sanitize_for_serialization(header_params)
- header_params = dict(self.parameters_to_tuples(header_params,
- collection_formats))
-
- # path parameters
- if path_params:
- path_params = self.sanitize_for_serialization(path_params)
- path_params = self.parameters_to_tuples(path_params,
- collection_formats)
- for k, v in path_params:
- # specified safe chars, encode everything
- resource_path = resource_path.replace(
- '{%s}' % k,
- quote(str(v), safe=config.safe_chars_for_path_param)
- )
-
- # query parameters
- if query_params:
- query_params = self.sanitize_for_serialization(query_params)
- query_params = self.parameters_to_tuples(query_params,
- collection_formats)
-
- # post parameters
- if post_params or files:
- post_params = post_params if post_params else []
- post_params = self.sanitize_for_serialization(post_params)
- post_params = self.parameters_to_tuples(post_params,
- collection_formats)
- post_params.extend(self.files_parameters(files))
- if header_params['Content-Type'].startswith("multipart"):
- post_params = self.parameters_to_multipart(post_params,
- (dict) )
-
- # body
- if body:
- body = self.sanitize_for_serialization(body)
-
- # auth setting
- self.update_params_for_auth(header_params, query_params,
- auth_settings, resource_path, method, body)
-
- # request url
- if _host is None:
- url = self.configuration.host + resource_path
- else:
- # use server/host defined in path or operation instead
- url = _host + resource_path
-
- try:
- # perform request and return response
- response_data = self.request(
- method, url, query_params=query_params, headers=header_params,
- post_params=post_params, body=body,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout)
- except ApiException as e:
- e.body = e.body.decode('utf-8')
- raise e
-
- self.last_response = response_data
-
- return_data = response_data
-
- if not _preload_content:
- return (return_data)
- return return_data
-
- # deserialize response data
- if response_type:
- if response_type != (file_type,):
- encoding = "utf-8"
- content_type = response_data.getheader('content-type')
- if content_type is not None:
- match = re.search(r"charset=([a-zA-Z\-\d]+)[\s\;]?", content_type)
- if match:
- encoding = match.group(1)
- response_data.data = response_data.data.decode(encoding)
-
- return_data = self.deserialize(
- response_data,
- response_type,
- _check_type
- )
- else:
- return_data = None
-
- if _return_http_data_only:
- return (return_data)
- else:
- return (return_data, response_data.status,
- response_data.getheaders())
-
- def parameters_to_multipart(self, params, collection_types):
- """Get parameters as list of tuples, formatting as json if value is collection_types
-
- :param params: Parameters as list of two-tuples
- :param dict collection_types: Parameter collection types
- :return: Parameters as list of tuple or urllib3.fields.RequestField
- """
- new_params = []
- if collection_types is None:
- collection_types = (dict)
- for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501
- if isinstance(v, collection_types): # v is instance of collection_type, formatting as application/json
- v = json.dumps(v, ensure_ascii=False).encode("utf-8")
- field = RequestField(k, v)
- field.make_multipart(content_type="application/json; charset=utf-8")
- new_params.append(field)
- else:
- new_params.append((k, v))
- return new_params
-
- @classmethod
- def sanitize_for_serialization(cls, obj):
- """Prepares data for transmission before it is sent with the rest client
- If obj is None, return None.
- If obj is str, int, long, float, bool, return directly.
- If obj is datetime.datetime, datetime.date
- convert to string in iso8601 format.
- If obj is list, sanitize each element in the list.
- If obj is dict, return the dict.
- If obj is OpenAPI model, return the properties dict.
- If obj is io.IOBase, return the bytes
- :param obj: The data to serialize.
- :return: The serialized form of data.
- """
- if isinstance(obj, (ModelNormal, ModelComposed)):
- return {
- key: cls.sanitize_for_serialization(val) for key, val in model_to_dict(obj, serialize=True).items()
- }
- elif isinstance(obj, io.IOBase):
- return cls.get_file_data_and_close_file(obj)
- elif isinstance(obj, (str, int, float, none_type, bool)):
- return obj
- elif isinstance(obj, (datetime, date)):
- return obj.isoformat()
- elif isinstance(obj, ModelSimple):
- return cls.sanitize_for_serialization(obj.value)
- elif isinstance(obj, (list, tuple)):
- return [cls.sanitize_for_serialization(item) for item in obj]
- if isinstance(obj, dict):
- return {key: cls.sanitize_for_serialization(val) for key, val in obj.items()}
- raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__))
-
- def deserialize(self, response, response_type, _check_type):
- """Deserializes response into an object.
-
- :param response: RESTResponse object to be deserialized.
- :param response_type: For the response, a tuple containing:
- valid classes
- a list containing valid classes (for list schemas)
- a dict containing a tuple of valid classes as the value
- Example values:
- (str,)
- (Pet,)
- (float, none_type)
- ([int, none_type],)
- ({str: (bool, str, int, float, date, datetime, str, none_type)},)
- :param _check_type: boolean, whether to check the types of the data
- received from the server
- :type _check_type: bool
-
- :return: deserialized object.
- """
- # handle file downloading
- # save response body into a tmp file and return the instance
- if response_type == (file_type,):
- content_disposition = response.getheader("Content-Disposition")
- return deserialize_file(response.data, self.configuration,
- content_disposition=content_disposition)
-
- # fetch data from response object
- try:
- received_data = json.loads(response.data)
- except ValueError:
- received_data = response.data
-
- # store our data under the key of 'received_data' so users have some
- # context if they are deserializing a string and the data type is wrong
- deserialized_data = validate_and_convert_types(
- received_data,
- response_type,
- ['received_data'],
- True,
- _check_type,
- configuration=self.configuration
- )
- return deserialized_data
-
- def call_api(
- self,
- resource_path: str,
- method: str,
- path_params: typing.Optional[typing.Dict[str, typing.Any]] = None,
- query_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None,
- header_params: typing.Optional[typing.Dict[str, typing.Any]] = None,
- body: typing.Optional[typing.Any] = None,
- post_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None,
- files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None,
- response_type: typing.Optional[typing.Tuple[typing.Any]] = None,
- auth_settings: typing.Optional[typing.List[str]] = None,
- async_req: typing.Optional[bool] = None,
- _return_http_data_only: typing.Optional[bool] = None,
- collection_formats: typing.Optional[typing.Dict[str, str]] = None,
- _preload_content: bool = True,
- _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None,
- _host: typing.Optional[str] = None,
- _check_type: typing.Optional[bool] = None
- ):
- """Makes the HTTP request (synchronous) and returns deserialized data.
-
- To make an async_req request, set the async_req parameter.
-
- :param resource_path: Path to method endpoint.
- :param method: Method to call.
- :param path_params: Path parameters in the url.
- :param query_params: Query parameters in the url.
- :param header_params: Header parameters to be
- placed in the request header.
- :param body: Request body.
- :param post_params dict: Request post form parameters,
- for `application/x-www-form-urlencoded`, `multipart/form-data`.
- :param auth_settings list: Auth Settings names for the request.
- :param response_type: For the response, a tuple containing:
- valid classes
- a list containing valid classes (for list schemas)
- a dict containing a tuple of valid classes as the value
- Example values:
- (str,)
- (Pet,)
- (float, none_type)
- ([int, none_type],)
- ({str: (bool, str, int, float, date, datetime, str, none_type)},)
- :param files: key -> field name, value -> a list of open file
- objects for `multipart/form-data`.
- :type files: dict
- :param async_req bool: execute request asynchronously
- :type async_req: bool, optional
- :param _return_http_data_only: response data without head status code
- and headers
- :type _return_http_data_only: bool, optional
- :param collection_formats: dict of collection formats for path, query,
- header, and post parameters.
- :type collection_formats: dict, optional
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :type _preload_content: bool, optional
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :param _check_type: boolean describing if the data back from the server
- should have its type checked.
- :type _check_type: bool, optional
- :return:
- If async_req parameter is True,
- the request will be called asynchronously.
- The method will return the request thread.
- If parameter async_req is False or missing,
- then the method will return the response directly.
- """
- if not async_req:
- return self.__call_api(resource_path, method,
- path_params, query_params, header_params,
- body, post_params, files,
- response_type, auth_settings,
- _return_http_data_only, collection_formats,
- _preload_content, _request_timeout, _host,
- _check_type)
-
- return self.pool.apply_async(self.__call_api, (resource_path,
- method, path_params,
- query_params,
- header_params, body,
- post_params, files,
- response_type,
- auth_settings,
- _return_http_data_only,
- collection_formats,
- _preload_content,
- _request_timeout,
- _host, _check_type))
-
- def request(self, method, url, query_params=None, headers=None,
- post_params=None, body=None, _preload_content=True,
- _request_timeout=None):
- """Makes the HTTP request using RESTClient."""
- if method == "GET":
- return self.rest_client.GET(url,
- query_params=query_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- headers=headers)
- elif method == "HEAD":
- return self.rest_client.HEAD(url,
- query_params=query_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- headers=headers)
- elif method == "OPTIONS":
- return self.rest_client.OPTIONS(url,
- query_params=query_params,
- headers=headers,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
- elif method == "POST":
- return self.rest_client.POST(url,
- query_params=query_params,
- headers=headers,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
- elif method == "PUT":
- return self.rest_client.PUT(url,
- query_params=query_params,
- headers=headers,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
- elif method == "PATCH":
- return self.rest_client.PATCH(url,
- query_params=query_params,
- headers=headers,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
- elif method == "DELETE":
- return self.rest_client.DELETE(url,
- query_params=query_params,
- headers=headers,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
- else:
- raise ApiValueError(
- "http method must be `GET`, `HEAD`, `OPTIONS`,"
- " `POST`, `PATCH`, `PUT` or `DELETE`."
- )
-
- def parameters_to_tuples(self, params, collection_formats):
- """Get parameters as list of tuples, formatting collections.
-
- :param params: Parameters as dict or list of two-tuples
- :param dict collection_formats: Parameter collection formats
- :return: Parameters as list of tuples, collections formatted
- """
- new_params = []
- if collection_formats is None:
- collection_formats = {}
- for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501
- if k in collection_formats:
- collection_format = collection_formats[k]
- if collection_format == 'multi':
- new_params.extend((k, value) for value in v)
- else:
- if collection_format == 'ssv':
- delimiter = ' '
- elif collection_format == 'tsv':
- delimiter = '\t'
- elif collection_format == 'pipes':
- delimiter = '|'
- else: # csv is the default
- delimiter = ','
- new_params.append(
- (k, delimiter.join(str(value) for value in v)))
- else:
- new_params.append((k, v))
- return new_params
-
- @staticmethod
- def get_file_data_and_close_file(file_instance: io.IOBase) -> bytes:
- file_data = file_instance.read()
- file_instance.close()
- return file_data
-
- def files_parameters(self, files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None):
- """Builds form parameters.
-
- :param files: None or a dict with key=param_name and
- value is a list of open file objects
- :return: List of tuples of form parameters with file data
- """
- if files is None:
- return []
-
- params = []
- for param_name, file_instances in files.items():
- if file_instances is None:
- # if the file field is nullable, skip None values
- continue
- for file_instance in file_instances:
- if file_instance is None:
- # if the file field is nullable, skip None values
- continue
- if file_instance.closed is True:
- raise ApiValueError(
- "Cannot read a closed file. The passed in file_type "
- "for %s must be open." % param_name
- )
- filename = os.path.basename(file_instance.name)
- filedata = self.get_file_data_and_close_file(file_instance)
- mimetype = (mimetypes.guess_type(filename)[0] or
- 'application/octet-stream')
- params.append(
- tuple([param_name, tuple([filename, filedata, mimetype])]))
-
- return params
-
- def select_header_accept(self, accepts):
- """Returns `Accept` based on an array of accepts provided.
-
- :param accepts: List of headers.
- :return: Accept (e.g. application/json).
- """
- if not accepts:
- return
-
- accepts = [x.lower() for x in accepts]
-
- if 'application/json' in accepts:
- return 'application/json'
- else:
- return ', '.join(accepts)
-
- def select_header_content_type(self, content_types):
- """Returns `Content-Type` based on an array of content_types provided.
-
- :param content_types: List of content-types.
- :return: Content-Type (e.g. application/json).
- """
- if not content_types:
- return 'application/json'
-
- content_types = [x.lower() for x in content_types]
-
- if 'application/json' in content_types or '*/*' in content_types:
- return 'application/json'
- else:
- return content_types[0]
-
- def update_params_for_auth(self, headers, queries, auth_settings,
- resource_path, method, body):
- """Updates header and query params based on authentication setting.
-
- :param headers: Header parameters dict to be updated.
- :param queries: Query parameters tuple list to be updated.
- :param auth_settings: Authentication setting identifiers list.
- :param resource_path: A string representation of the HTTP request resource path.
- :param method: A string representation of the HTTP request method.
- :param body: A object representing the body of the HTTP request.
- The object type is the return value of _encoder.default().
- """
- if not auth_settings:
- return
-
- for auth in auth_settings:
- auth_setting = self.configuration.auth_settings().get(auth)
- if auth_setting:
- if auth_setting['in'] == 'cookie':
- headers['Cookie'] = auth_setting['value']
- elif auth_setting['in'] == 'header':
- if auth_setting['type'] != 'http-signature':
- headers[auth_setting['key']] = auth_setting['value']
- elif auth_setting['in'] == 'query':
- queries.append((auth_setting['key'], auth_setting['value']))
- else:
- raise ApiValueError(
- 'Authentication token must be in `query` or `header`'
- )
-
-
-class Endpoint(object):
- def __init__(self, settings=None, params_map=None, root_map=None,
- headers_map=None, api_client=None, callable=None):
- """Creates an endpoint
-
- Args:
- settings (dict): see below key value pairs
- 'response_type' (tuple/None): response type
- 'auth' (list): a list of auth type keys
- 'endpoint_path' (str): the endpoint path
- 'operation_id' (str): endpoint string identifier
- 'http_method' (str): POST/PUT/PATCH/GET etc
- 'servers' (list): list of str servers that this endpoint is at
- params_map (dict): see below key value pairs
- 'all' (list): list of str endpoint parameter names
- 'required' (list): list of required parameter names
- 'nullable' (list): list of nullable parameter names
- 'enum' (list): list of parameters with enum values
- 'validation' (list): list of parameters with validations
- root_map
- 'validations' (dict): the dict mapping endpoint parameter tuple
- paths to their validation dictionaries
- 'allowed_values' (dict): the dict mapping endpoint parameter
- tuple paths to their allowed_values (enum) dictionaries
- 'openapi_types' (dict): param_name to openapi type
- 'attribute_map' (dict): param_name to camelCase name
- 'location_map' (dict): param_name to 'body', 'file', 'form',
- 'header', 'path', 'query'
- collection_format_map (dict): param_name to `csv` etc.
- headers_map (dict): see below key value pairs
- 'accept' (list): list of Accept header strings
- 'content_type' (list): list of Content-Type header strings
- api_client (ApiClient) api client instance
- callable (function): the function which is invoked when the
- Endpoint is called
- """
- self.settings = settings
- self.params_map = params_map
- self.params_map['all'].extend([
- 'async_req',
- '_host_index',
- '_preload_content',
- '_request_timeout',
- '_return_http_data_only',
- '_check_input_type',
- '_check_return_type'
- ])
- self.params_map['nullable'].extend(['_request_timeout'])
- self.validations = root_map['validations']
- self.allowed_values = root_map['allowed_values']
- self.openapi_types = root_map['openapi_types']
- extra_types = {
- 'async_req': (bool,),
- '_host_index': (none_type, int),
- '_preload_content': (bool,),
- '_request_timeout': (none_type, float, (float,), [float], int, (int,), [int]),
- '_return_http_data_only': (bool,),
- '_check_input_type': (bool,),
- '_check_return_type': (bool,)
- }
- self.openapi_types.update(extra_types)
- self.attribute_map = root_map['attribute_map']
- self.location_map = root_map['location_map']
- self.collection_format_map = root_map['collection_format_map']
- self.headers_map = headers_map
- self.api_client = api_client
- self.callable = callable
-
- def __validate_inputs(self, kwargs):
- for param in self.params_map['enum']:
- if param in kwargs:
- check_allowed_values(
- self.allowed_values,
- (param,),
- kwargs[param]
- )
-
- for param in self.params_map['validation']:
- if param in kwargs:
- check_validations(
- self.validations,
- (param,),
- kwargs[param],
- configuration=self.api_client.configuration
- )
-
- if kwargs['_check_input_type'] is False:
- return
-
- for key, value in kwargs.items():
- fixed_val = validate_and_convert_types(
- value,
- self.openapi_types[key],
- [key],
- False,
- kwargs['_check_input_type'],
- configuration=self.api_client.configuration
- )
- kwargs[key] = fixed_val
-
- def __gather_params(self, kwargs):
- params = {
- 'body': None,
- 'collection_format': {},
- 'file': {},
- 'form': [],
- 'header': {},
- 'path': {},
- 'query': []
- }
-
- for param_name, param_value in kwargs.items():
- param_location = self.location_map.get(param_name)
- if param_location is None:
- continue
- if param_location:
- if param_location == 'body':
- params['body'] = param_value
- continue
- base_name = self.attribute_map[param_name]
- if (param_location == 'form' and
- self.openapi_types[param_name] == (file_type,)):
- params['file'][param_name] = [param_value]
- elif (param_location == 'form' and
- self.openapi_types[param_name] == ([file_type],)):
- # param_value is already a list
- params['file'][param_name] = param_value
- elif param_location in {'form', 'query'}:
- param_value_full = (base_name, param_value)
- params[param_location].append(param_value_full)
- if param_location not in {'form', 'query'}:
- params[param_location][base_name] = param_value
- collection_format = self.collection_format_map.get(param_name)
- if collection_format:
- params['collection_format'][base_name] = collection_format
-
- return params
-
- def __call__(self, *args, **kwargs):
- """ This method is invoked when endpoints are called
- Example:
-
- api_instance = AdressenApi()
- api_instance.get_adres # this is an instance of the class Endpoint
- api_instance.get_adres() # this invokes api_instance.get_adres.__call__()
- which then invokes the callable functions stored in that endpoint at
- api_instance.get_adres.callable or self.callable in this class
-
- """
- return self.callable(self, *args, **kwargs)
-
- def call_with_http_info(self, **kwargs):
-
- try:
- index = self.api_client.configuration.server_operation_index.get(
- self.settings['operation_id'], self.api_client.configuration.server_index
- ) if kwargs['_host_index'] is None else kwargs['_host_index']
- server_variables = self.api_client.configuration.server_operation_variables.get(
- self.settings['operation_id'], self.api_client.configuration.server_variables
- )
- _host = self.api_client.configuration.get_host_from_settings(
- index, variables=server_variables, servers=self.settings['servers']
- )
- except IndexError:
- if self.settings['servers']:
- raise ApiValueError(
- "Invalid host index. Must be 0 <= index < %s" %
- len(self.settings['servers'])
- )
- _host = None
-
- for key, value in kwargs.items():
- if key not in self.params_map['all']:
- raise ApiTypeError(
- "Got an unexpected parameter '%s'"
- " to method `%s`" %
- (key, self.settings['operation_id'])
- )
- # only throw this nullable ApiValueError if _check_input_type
- # is False, if _check_input_type==True we catch this case
- # in self.__validate_inputs
- if (key not in self.params_map['nullable'] and value is None
- and kwargs['_check_input_type'] is False):
- raise ApiValueError(
- "Value may not be None for non-nullable parameter `%s`"
- " when calling `%s`" %
- (key, self.settings['operation_id'])
- )
-
- for key in self.params_map['required']:
- if key not in kwargs.keys():
- raise ApiValueError(
- "Missing the required parameter `%s` when calling "
- "`%s`" % (key, self.settings['operation_id'])
- )
-
- self.__validate_inputs(kwargs)
-
- params = self.__gather_params(kwargs)
-
- accept_headers_list = self.headers_map['accept']
- if accept_headers_list:
- params['header']['Accept'] = self.api_client.select_header_accept(
- accept_headers_list)
-
- content_type_headers_list = self.headers_map['content_type']
- if content_type_headers_list:
- if params['body'] != "":
- header_list = self.api_client.select_header_content_type(
- content_type_headers_list)
- params['header']['Content-Type'] = header_list
-
- return self.api_client.call_api(
- self.settings['endpoint_path'], self.settings['http_method'],
- params['path'],
- params['query'],
- params['header'],
- body=params['body'],
- post_params=params['form'],
- files=params['file'],
- response_type=self.settings['response_type'],
- auth_settings=self.settings['auth'],
- async_req=kwargs['async_req'],
- _check_type=kwargs['_check_return_type'],
- _return_http_data_only=kwargs['_return_http_data_only'],
- _preload_content=kwargs['_preload_content'],
- _request_timeout=kwargs['_request_timeout'],
- _host=_host,
- collection_formats=params['collection_format'])
diff --git a/calcasa-api/apis/__init__.py b/calcasa-api/apis/__init__.py
deleted file mode 100644
index 836bc16..0000000
--- a/calcasa-api/apis/__init__.py
+++ /dev/null
@@ -1,26 +0,0 @@
-
-# flake8: noqa
-
-# Import all APIs into this package.
-# If you have many APIs here with many many models used in each API this may
-# raise a `RecursionError`.
-# In order to avoid this, import only the API that you directly need like:
-#
-# from .api.adressen_api import AdressenApi
-#
-# or import this package, but before doing it, use:
-#
-# import sys
-# sys.setrecursionlimit(n)
-
-# Import APIs into API package:
-from calcasa-api.api.adressen_api import AdressenApi
-from calcasa-api.api.bestemmingsplannen_api import BestemmingsplannenApi
-from calcasa-api.api.bodem_api import BodemApi
-from calcasa-api.api.buurt_api import BuurtApi
-from calcasa-api.api.configuratie_api import ConfiguratieApi
-from calcasa-api.api.facturen_api import FacturenApi
-from calcasa-api.api.fotos_api import FotosApi
-from calcasa-api.api.funderingen_api import FunderingenApi
-from calcasa-api.api.rapporten_api import RapportenApi
-from calcasa-api.api.waarderingen_api import WaarderingenApi
diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py
deleted file mode 100644
index 6af1506..0000000
--- a/calcasa-api/exceptions.py
+++ /dev/null
@@ -1,171 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-
-class OpenApiException(Exception):
- """The base exception class for all OpenAPIExceptions"""
-
-
-class ApiTypeError(OpenApiException, TypeError):
- def __init__(self, msg, path_to_item=None, valid_classes=None,
- key_type=None):
- """ Raises an exception for TypeErrors
-
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (list): a list of keys an indices to get to the
- current_item
- None if unset
- valid_classes (tuple): the primitive classes that current item
- should be an instance of
- None if unset
- key_type (bool): False if our value is a value in a dict
- True if it is a key in a dict
- False if our item is an item in a list
- None if unset
- """
- self.path_to_item = path_to_item
- self.valid_classes = valid_classes
- self.key_type = key_type
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiTypeError, self).__init__(full_msg)
-
-
-class ApiValueError(OpenApiException, ValueError):
- def __init__(self, msg, path_to_item=None):
- """
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (list) the path to the exception in the
- received_data dict. None if unset
- """
-
- self.path_to_item = path_to_item
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiValueError, self).__init__(full_msg)
-
-
-class ApiAttributeError(OpenApiException, AttributeError):
- def __init__(self, msg, path_to_item=None):
- """
- Raised when an attribute reference or assignment fails.
-
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (None/list) the path to the exception in the
- received_data dict
- """
- self.path_to_item = path_to_item
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiAttributeError, self).__init__(full_msg)
-
-
-class ApiKeyError(OpenApiException, KeyError):
- def __init__(self, msg, path_to_item=None):
- """
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (None/list) the path to the exception in the
- received_data dict
- """
- self.path_to_item = path_to_item
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiKeyError, self).__init__(full_msg)
-
-
-class ApiException(OpenApiException):
-
- def __init__(self, status=None, reason=None, http_resp=None):
- if http_resp:
- self.status = http_resp.status
- self.reason = http_resp.reason
- self.body = http_resp.data
- self.headers = http_resp.getheaders()
- else:
- self.status = status
- self.reason = reason
- self.body = None
- self.headers = None
-
- def __str__(self):
- """Custom error messages for exception"""
- error_message = "({0})\n"\
- "Reason: {1}\n".format(self.status, self.reason)
- if self.headers:
- error_message += "HTTP response headers: {0}\n".format(
- self.headers)
-
- if self.body:
- error_message += "HTTP response body: {0}\n".format(self.body)
-
- return error_message
-
-
-class NotFoundException(ApiException):
-
- def __init__(self, status=None, reason=None, http_resp=None):
- super(NotFoundException, self).__init__(status, reason, http_resp)
-
-
-class UnauthorizedException(ApiException):
-
- def __init__(self, status=None, reason=None, http_resp=None):
- super(UnauthorizedException, self).__init__(status, reason, http_resp)
-
-
-class ForbiddenException(ApiException):
-
- def __init__(self, status=None, reason=None, http_resp=None):
- super(ForbiddenException, self).__init__(status, reason, http_resp)
-
-
-class ServiceException(ApiException):
-
- def __init__(self, status=None, reason=None, http_resp=None):
- super(ServiceException, self).__init__(status, reason, http_resp)
-
-
-def render_path(path_to_item):
- """Returns a string representation of a path"""
- result = ""
- for pth in path_to_item:
- if isinstance(pth, int):
- result += "[{0}]".format(pth)
- else:
- result += "['{0}']".format(pth)
- return result
diff --git a/calcasa-api/model/__init__.py b/calcasa-api/model/__init__.py
deleted file mode 100644
index cfe32b7..0000000
--- a/calcasa-api/model/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# we can not import model classes here because that would create a circular
-# reference which would not work in python2
-# do not import all models into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all models from one package, import them with
-# from {{packageName}.models import ModelA, ModelB
diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py
deleted file mode 100644
index 89a529e..0000000
--- a/calcasa-api/model/aanvraagdoel.py
+++ /dev/null
@@ -1,299 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Aanvraagdoel(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'AANKOOPNIEUWEWONING': "aankoopNieuweWoning",
- 'OVERBRUGGINGSFINANCIERING': "overbruggingsfinanciering",
- 'HYPOTHEEKOVERSLUITEN': "hypotheekOversluiten",
- 'HYPOTHEEKOPHOGEN': "hypotheekOphogen",
- 'HYPOTHEEKWIJZIGING': "hypotheekWijziging",
- 'HYPOTHEEKRENTEWIJZIGEN': "hypotheekrenteWijzigen",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """Aanvraagdoel - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): English: Request Goal | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown | | `aankoopNieuweWoning` | English: New Home Purchase | | `overbruggingsfinanciering` | English: Bridge Financing | | `hypotheekOversluiten` | English: Refinancing Mortgage | | `hypotheekOphogen` | English: Increasing Mortage | | `hypotheekWijziging` | English: Changing Mortgage | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest | ., must be one of ["onbekend", "aankoopNieuweWoning", "overbruggingsfinanciering", "hypotheekOversluiten", "hypotheekOphogen", "hypotheekWijziging", "hypotheekrenteWijzigen", ] # noqa: E501
-
- Keyword Args:
- value (str): English: Request Goal | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown | | `aankoopNieuweWoning` | English: New Home Purchase | | `overbruggingsfinanciering` | English: Bridge Financing | | `hypotheekOversluiten` | English: Refinancing Mortgage | | `hypotheekOphogen` | English: Increasing Mortage | | `hypotheekWijziging` | English: Changing Mortgage | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest | ., must be one of ["onbekend", "aankoopNieuweWoning", "overbruggingsfinanciering", "hypotheekOversluiten", "hypotheekOphogen", "hypotheekWijziging", "hypotheekrenteWijzigen", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """Aanvraagdoel - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): English: Request Goal | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown | | `aankoopNieuweWoning` | English: New Home Purchase | | `overbruggingsfinanciering` | English: Bridge Financing | | `hypotheekOversluiten` | English: Refinancing Mortgage | | `hypotheekOphogen` | English: Increasing Mortage | | `hypotheekWijziging` | English: Changing Mortgage | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest | ., must be one of ["onbekend", "aankoopNieuweWoning", "overbruggingsfinanciering", "hypotheekOversluiten", "hypotheekOphogen", "hypotheekWijziging", "hypotheekrenteWijzigen", ] # noqa: E501
-
- Keyword Args:
- value (str): English: Request Goal | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown | | `aankoopNieuweWoning` | English: New Home Purchase | | `overbruggingsfinanciering` | English: Bridge Financing | | `hypotheekOversluiten` | English: Refinancing Mortgage | | `hypotheekOphogen` | English: Increasing Mortage | | `hypotheekWijziging` | English: Changing Mortgage | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest | ., must be one of ["onbekend", "aankoopNieuweWoning", "overbruggingsfinanciering", "hypotheekOversluiten", "hypotheekOphogen", "hypotheekWijziging", "hypotheekrenteWijzigen", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py
deleted file mode 100644
index 2fd16ef..0000000
--- a/calcasa-api/model/adres.py
+++ /dev/null
@@ -1,277 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Adres(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'straat': (str,), # noqa: E501
- 'huisnummer': (int,), # noqa: E501
- 'huisnummertoevoeging': (str, none_type,), # noqa: E501
- 'postcode': (str,), # noqa: E501
- 'woonplaats': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'straat': 'straat', # noqa: E501
- 'huisnummer': 'huisnummer', # noqa: E501
- 'huisnummertoevoeging': 'huisnummertoevoeging', # noqa: E501
- 'postcode': 'postcode', # noqa: E501
- 'woonplaats': 'woonplaats', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Adres - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- straat (str): De straatnaam zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).. [optional] # noqa: E501
- huisnummer (int): Het huisnummer.. [optional] # noqa: E501
- huisnummertoevoeging (str, none_type): De huisnummertoevoeging.. [optional] # noqa: E501
- postcode (str): De postcode met 4 cijfers en 2 letters zonder spatie.. [optional] # noqa: E501
- woonplaats (str): De woonplaats zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Adres - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- straat (str): De straatnaam zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).. [optional] # noqa: E501
- huisnummer (int): Het huisnummer.. [optional] # noqa: E501
- huisnummertoevoeging (str, none_type): De huisnummertoevoeging.. [optional] # noqa: E501
- postcode (str): De postcode met 4 cijfers en 2 letters zonder spatie.. [optional] # noqa: E501
- woonplaats (str): De woonplaats zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py
deleted file mode 100644
index 76f2318..0000000
--- a/calcasa-api/model/adres_info.py
+++ /dev/null
@@ -1,273 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class AdresInfo(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'bag_nummeraanduiding_id': (int,), # noqa: E501
- 'adres': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'notities': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'adres_gevonden': (bool, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501
- 'adres': 'adres', # noqa: E501
- 'notities': 'notities', # noqa: E501
- 'adres_gevonden': 'adresGevonden', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """AdresInfo - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- bag_nummeraanduiding_id (int): Het BAG nummeraanduiding Id van het adres. Normaal aangevuld met nullen tot 16 karakters.. [optional] # noqa: E501
- adres (bool, date, datetime, dict, float, int, list, str, none_type): Het adres object.. [optional] # noqa: E501
- notities (bool, date, datetime, dict, float, int, list, str, none_type): Informatie over de adres zoekopdracht en eventueel gecorrigeerde velden.. [optional] # noqa: E501
- adres_gevonden (bool, none_type): Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """AdresInfo - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- bag_nummeraanduiding_id (int): Het BAG nummeraanduiding Id van het adres. Normaal aangevuld met nullen tot 16 karakters.. [optional] # noqa: E501
- adres (bool, date, datetime, dict, float, int, list, str, none_type): Het adres object.. [optional] # noqa: E501
- notities (bool, date, datetime, dict, float, int, list, str, none_type): Informatie over de adres zoekopdracht en eventueel gecorrigeerde velden.. [optional] # noqa: E501
- adres_gevonden (bool, none_type): Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py
deleted file mode 100644
index 4bb3f53..0000000
--- a/calcasa-api/model/bestemmingsdata.py
+++ /dev/null
@@ -1,265 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Bestemmingsdata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'enkelbestemming': (str, none_type,), # noqa: E501
- 'datum_bestemmingplan': (datetime, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'enkelbestemming': 'enkelbestemming', # noqa: E501
- 'datum_bestemmingplan': 'datumBestemmingplan', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Bestemmingsdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- enkelbestemming (str, none_type): De enkelbestemming volgens het bestemmingsplan.. [optional] # noqa: E501
- datum_bestemmingplan (datetime, none_type): De datum waarop dit bestemmingsplan vastgelegd is.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Bestemmingsdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- enkelbestemming (str, none_type): De enkelbestemming volgens het bestemmingsplan.. [optional] # noqa: E501
- datum_bestemmingplan (datetime, none_type): De datum waarop dit bestemmingsplan vastgelegd is.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py
deleted file mode 100644
index f44d617..0000000
--- a/calcasa-api/model/bodem_status_type.py
+++ /dev/null
@@ -1,298 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class BodemStatusType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'GEENDATA': "geenData",
- 'ONBEKEND': "onbekend",
- 'NIETVERVUILD': "nietVervuild",
- 'NIETERNSTIG': "nietErnstig",
- 'POTENTIEELERNSTIG': "potentieelErnstig",
- 'ERNSTIG': "ernstig",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """BodemStatusType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. | ., must be one of ["geenData", "onbekend", "nietVervuild", "nietErnstig", "potentieelErnstig", "ernstig", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. | ., must be one of ["geenData", "onbekend", "nietVervuild", "nietErnstig", "potentieelErnstig", "ernstig", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """BodemStatusType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. | ., must be one of ["geenData", "onbekend", "nietVervuild", "nietErnstig", "potentieelErnstig", "ernstig", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. | ., must be one of ["geenData", "onbekend", "nietVervuild", "nietErnstig", "potentieelErnstig", "ernstig", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py
deleted file mode 100644
index b140ffe..0000000
--- a/calcasa-api/model/bodemdata.py
+++ /dev/null
@@ -1,269 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Bodemdata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'datum_laatste_onderzoek': (datetime, none_type,), # noqa: E501
- 'url': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'status': 'status', # noqa: E501
- 'datum_laatste_onderzoek': 'datumLaatsteOnderzoek', # noqa: E501
- 'url': 'url', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Bodemdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- status (bool, date, datetime, dict, float, int, list, str, none_type): De staat van de bodem, geeft aan of en in welke mate er sprake is van vervuiling. | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. | . [optional] # noqa: E501
- datum_laatste_onderzoek (datetime, none_type): De datum van het laatste bodemonderzoek.. [optional] # noqa: E501
- url (str, none_type): De url met informatie over het bodemonderzoek.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Bodemdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- status (bool, date, datetime, dict, float, int, list, str, none_type): De staat van de bodem, geeft aan of en in welke mate er sprake is van vervuiling. | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. | . [optional] # noqa: E501
- datum_laatste_onderzoek (datetime, none_type): De datum van het laatste bodemonderzoek.. [optional] # noqa: E501
- url (str, none_type): De url met informatie over het bodemonderzoek.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py
deleted file mode 100644
index fe200f0..0000000
--- a/calcasa-api/model/business_rules_code.py
+++ /dev/null
@@ -1,302 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class BusinessRulesCode(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'GEENWAARDEBEPALINGMOGELIJK': "geenWaardebepalingMogelijk",
- 'GEENBESTAANDEWONING': "geenBestaandeWoning",
- 'FOUTEOFONTBREKENDEINVOER': "fouteOfOntbrekendeInvoer",
- 'CALCASAWAARDETEHOOG': "calcasaWaardeTeHoog",
- 'LTVTEHOOG': "ltvTeHoog",
- 'HYPOTHEEKTEHOOG': "hypotheekTeHoog",
- 'WONINGTYPEINCORRECT': "woningtypeIncorrect",
- 'CALCASAWAARDETELAAG': "calcasaWaardeTeLaag",
- 'CALCASAWAARDETEHOOGVOORNHG': "calcasaWaardeTeHoogVoorNhg",
- 'CALCASAWAARDEENKOOPSOMTEHOOGVOORNHG': "calcasaWaardeEnKoopsomTeHoogVoorNhg",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """BusinessRulesCode - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Reden voor het niet voldoen aan de business rules. | Waarde | Omschrijving | | --- | --- | | `geenWaardebepalingMogelijk` | De ingevoerde woning kan modelmatig niet goed genoeg worden vastgesteld. | | `geenBestaandeWoning` | Geen bestaande koopwoning. | | `fouteOfOntbrekendeInvoer` | Noodzakelijke invoer ontbreekt of is foutief ingevoerd. | | `calcasaWaardeTeHoog` | Calcasa-waarde is te hoog volgens de business rules. | | `ltvTeHoog` | Loan-to-value is te hoog volgens de business rules. | | `hypotheekTeHoog` | Hypotheekbedrag is te hoog volgens de business rules. | | `woningtypeIncorrect` | Woningtype is incorrect volgens de business rules. | | `calcasaWaardeTeLaag` | Calcasa-waarde is te laag volgens de business rules. | | `calcasaWaardeTeHoogVoorNhg` | Calcasa-waarde is te hoog voor een NHG-waardering volgens de business rules. | | `calcasaWaardeEnKoopsomTeHoogVoorNhg` | Calcasa-waarde en ingevoerde koopsom zijn te hoog voor een NHG-waardering volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", ] # noqa: E501
-
- Keyword Args:
- value (str): Reden voor het niet voldoen aan de business rules. | Waarde | Omschrijving | | --- | --- | | `geenWaardebepalingMogelijk` | De ingevoerde woning kan modelmatig niet goed genoeg worden vastgesteld. | | `geenBestaandeWoning` | Geen bestaande koopwoning. | | `fouteOfOntbrekendeInvoer` | Noodzakelijke invoer ontbreekt of is foutief ingevoerd. | | `calcasaWaardeTeHoog` | Calcasa-waarde is te hoog volgens de business rules. | | `ltvTeHoog` | Loan-to-value is te hoog volgens de business rules. | | `hypotheekTeHoog` | Hypotheekbedrag is te hoog volgens de business rules. | | `woningtypeIncorrect` | Woningtype is incorrect volgens de business rules. | | `calcasaWaardeTeLaag` | Calcasa-waarde is te laag volgens de business rules. | | `calcasaWaardeTeHoogVoorNhg` | Calcasa-waarde is te hoog voor een NHG-waardering volgens de business rules. | | `calcasaWaardeEnKoopsomTeHoogVoorNhg` | Calcasa-waarde en ingevoerde koopsom zijn te hoog voor een NHG-waardering volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """BusinessRulesCode - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Reden voor het niet voldoen aan de business rules. | Waarde | Omschrijving | | --- | --- | | `geenWaardebepalingMogelijk` | De ingevoerde woning kan modelmatig niet goed genoeg worden vastgesteld. | | `geenBestaandeWoning` | Geen bestaande koopwoning. | | `fouteOfOntbrekendeInvoer` | Noodzakelijke invoer ontbreekt of is foutief ingevoerd. | | `calcasaWaardeTeHoog` | Calcasa-waarde is te hoog volgens de business rules. | | `ltvTeHoog` | Loan-to-value is te hoog volgens de business rules. | | `hypotheekTeHoog` | Hypotheekbedrag is te hoog volgens de business rules. | | `woningtypeIncorrect` | Woningtype is incorrect volgens de business rules. | | `calcasaWaardeTeLaag` | Calcasa-waarde is te laag volgens de business rules. | | `calcasaWaardeTeHoogVoorNhg` | Calcasa-waarde is te hoog voor een NHG-waardering volgens de business rules. | | `calcasaWaardeEnKoopsomTeHoogVoorNhg` | Calcasa-waarde en ingevoerde koopsom zijn te hoog voor een NHG-waardering volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", ] # noqa: E501
-
- Keyword Args:
- value (str): Reden voor het niet voldoen aan de business rules. | Waarde | Omschrijving | | --- | --- | | `geenWaardebepalingMogelijk` | De ingevoerde woning kan modelmatig niet goed genoeg worden vastgesteld. | | `geenBestaandeWoning` | Geen bestaande koopwoning. | | `fouteOfOntbrekendeInvoer` | Noodzakelijke invoer ontbreekt of is foutief ingevoerd. | | `calcasaWaardeTeHoog` | Calcasa-waarde is te hoog volgens de business rules. | | `ltvTeHoog` | Loan-to-value is te hoog volgens de business rules. | | `hypotheekTeHoog` | Hypotheekbedrag is te hoog volgens de business rules. | | `woningtypeIncorrect` | Woningtype is incorrect volgens de business rules. | | `calcasaWaardeTeLaag` | Calcasa-waarde is te laag volgens de business rules. | | `calcasaWaardeTeHoogVoorNhg` | Calcasa-waarde is te hoog voor een NHG-waardering volgens de business rules. | | `calcasaWaardeEnKoopsomTeHoogVoorNhg` | Calcasa-waarde en ingevoerde koopsom zijn te hoog voor een NHG-waardering volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa-api/model/business_rules_problem_details.py
deleted file mode 100644
index b4e888c..0000000
--- a/calcasa-api/model/business_rules_problem_details.py
+++ /dev/null
@@ -1,287 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class BusinessRulesProblemDetails(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'business_rules_code': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'type': (str, none_type,), # noqa: E501
- 'title': (str, none_type,), # noqa: E501
- 'status': (int, none_type,), # noqa: E501
- 'detail': (str, none_type,), # noqa: E501
- 'instance': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'business_rules_code': 'businessRulesCode', # noqa: E501
- 'type': 'type', # noqa: E501
- 'title': 'title', # noqa: E501
- 'status': 'status', # noqa: E501
- 'detail': 'detail', # noqa: E501
- 'instance': 'instance', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """BusinessRulesProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- business_rules_code (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """BusinessRulesProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- business_rules_code (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/callback.py b/calcasa-api/model/callback.py
deleted file mode 100644
index 790343d..0000000
--- a/calcasa-api/model/callback.py
+++ /dev/null
@@ -1,268 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Callback(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- ('url',): {
- 'max_length': 2048,
- },
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'version': (str,), # noqa: E501
- 'url': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'version': 'version', # noqa: E501
- 'url': 'url', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Callback - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- version (str): De API versie waarvoor deze callback aangeroepen wordt.. [optional] # noqa: E501
- url (str): De URL van de callback. Bij het aanroepen zal de CallbackName hier achter geplaatst worden. English: when making the call, the CallbackName will be appended to this Url.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Callback - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- version (str): De API versie waarvoor deze callback aangeroepen wordt.. [optional] # noqa: E501
- url (str): De URL van de callback. Bij het aanroepen zal de CallbackName hier achter geplaatst worden. English: when making the call, the CallbackName will be appended to this Url.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py
deleted file mode 100644
index 08af553..0000000
--- a/calcasa-api/model/cbs_indeling.py
+++ /dev/null
@@ -1,273 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class CbsIndeling(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'buurt_id': (int,), # noqa: E501
- 'buurtnaam': (str,), # noqa: E501
- 'wijknaam': (str,), # noqa: E501
- 'gemeentenaam': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'buurt_id': 'buurtId', # noqa: E501
- 'buurtnaam': 'buurtnaam', # noqa: E501
- 'wijknaam': 'wijknaam', # noqa: E501
- 'gemeentenaam': 'gemeentenaam', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """CbsIndeling - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- buurt_id (int): Het buurt id zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).. [optional] # noqa: E501
- buurtnaam (str): De naam van de buurt.. [optional] # noqa: E501
- wijknaam (str): De naam van de wijk.. [optional] # noqa: E501
- gemeentenaam (str): De naam van de gemeente.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """CbsIndeling - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- buurt_id (int): Het buurt id zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).. [optional] # noqa: E501
- buurtnaam (str): De naam van de buurt.. [optional] # noqa: E501
- wijknaam (str): De naam van de wijk.. [optional] # noqa: E501
- gemeentenaam (str): De naam van de gemeente.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py
deleted file mode 100644
index a7520e3..0000000
--- a/calcasa-api/model/energielabel.py
+++ /dev/null
@@ -1,304 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Energielabel(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'G': "g",
- 'F': "f",
- 'E': "e",
- 'D': "d",
- 'C': "c",
- 'B': "b",
- 'A': "a",
- 'A1': "a1",
- 'A2': "a2",
- 'A3': "a3",
- 'A4': "a4",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """Energielabel - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+ | | `a2` | A++ | | `a3` | A+++ | | `a4` | A++++ | ., must be one of ["onbekend", "g", "f", "e", "d", "c", "b", "a", "a1", "a2", "a3", "a4", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+ | | `a2` | A++ | | `a3` | A+++ | | `a4` | A++++ | ., must be one of ["onbekend", "g", "f", "e", "d", "c", "b", "a", "a1", "a2", "a3", "a4", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """Energielabel - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+ | | `a2` | A++ | | `a3` | A+++ | | `a4` | A++++ | ., must be one of ["onbekend", "g", "f", "e", "d", "c", "b", "a", "a1", "a2", "a3", "a4", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+ | | `a2` | A++ | | `a3` | A+++ | | `a4` | A++++ | ., must be one of ["onbekend", "g", "f", "e", "d", "c", "b", "a", "a1", "a2", "a3", "a4", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py
deleted file mode 100644
index b906236..0000000
--- a/calcasa-api/model/factuur.py
+++ /dev/null
@@ -1,265 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Factuur(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'id': (str,), # noqa: E501
- 'factuurnummer': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'id': 'id', # noqa: E501
- 'factuurnummer': 'factuurnummer', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Factuur - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Het factuur Id.. [optional] # noqa: E501
- factuurnummer (str): Het factuurnummer van de factuur.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Factuur - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Het factuur Id.. [optional] # noqa: E501
- factuurnummer (str): Het factuurnummer van de factuur.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py
deleted file mode 100644
index 186b4a3..0000000
--- a/calcasa-api/model/foto.py
+++ /dev/null
@@ -1,261 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Foto(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'id': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'id': 'id', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Foto - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Het foto Id.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Foto - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Het foto Id.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py
deleted file mode 100644
index 6cd973e..0000000
--- a/calcasa-api/model/fundering_data_bron.py
+++ /dev/null
@@ -1,294 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingDataBron(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'CALCASA': "calcasa",
- 'FUNDERMAPS': "fundermaps",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """FunderingDataBron - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. | ., must be one of ["calcasa", "fundermaps", ] # noqa: E501
-
- Keyword Args:
- value (str): Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. | ., must be one of ["calcasa", "fundermaps", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """FunderingDataBron - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. | ., must be one of ["calcasa", "fundermaps", ] # noqa: E501
-
- Keyword Args:
- value (str): Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. | ., must be one of ["calcasa", "fundermaps", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py
deleted file mode 100644
index c3a70f8..0000000
--- a/calcasa-api/model/fundering_herstel_type.py
+++ /dev/null
@@ -1,297 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingHerstelType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKENDHERSTELTYPE': "onbekendHerstelType",
- 'VERGUNNING': "vergunning",
- 'FUNDERINGRAPPORT': "funderingRapport",
- 'ARCHIEFRAPPORT': "archiefRapport",
- 'EIGENAARBEWIJS': "eigenaarBewijs",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """FunderingHerstelType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Herstel-types voor funderingen. | Waarde | Omschrijving | | --- | --- | | `onbekendHerstelType` | Hersteltype is onbekend. | | `vergunning` | O.b.v. vergunning. | | `funderingRapport` | O.b.v. fundering-rapport. | | `archiefRapport` | O.b.v. archief-rapport. | | `eigenaarBewijs` | O.b.v. bewijs van eigenaar. | ., must be one of ["onbekendHerstelType", "vergunning", "funderingRapport", "archiefRapport", "eigenaarBewijs", ] # noqa: E501
-
- Keyword Args:
- value (str): Herstel-types voor funderingen. | Waarde | Omschrijving | | --- | --- | | `onbekendHerstelType` | Hersteltype is onbekend. | | `vergunning` | O.b.v. vergunning. | | `funderingRapport` | O.b.v. fundering-rapport. | | `archiefRapport` | O.b.v. archief-rapport. | | `eigenaarBewijs` | O.b.v. bewijs van eigenaar. | ., must be one of ["onbekendHerstelType", "vergunning", "funderingRapport", "archiefRapport", "eigenaarBewijs", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """FunderingHerstelType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Herstel-types voor funderingen. | Waarde | Omschrijving | | --- | --- | | `onbekendHerstelType` | Hersteltype is onbekend. | | `vergunning` | O.b.v. vergunning. | | `funderingRapport` | O.b.v. fundering-rapport. | | `archiefRapport` | O.b.v. archief-rapport. | | `eigenaarBewijs` | O.b.v. bewijs van eigenaar. | ., must be one of ["onbekendHerstelType", "vergunning", "funderingRapport", "archiefRapport", "eigenaarBewijs", ] # noqa: E501
-
- Keyword Args:
- value (str): Herstel-types voor funderingen. | Waarde | Omschrijving | | --- | --- | | `onbekendHerstelType` | Hersteltype is onbekend. | | `vergunning` | O.b.v. vergunning. | | `funderingRapport` | O.b.v. fundering-rapport. | | `archiefRapport` | O.b.v. archief-rapport. | | `eigenaarBewijs` | O.b.v. bewijs van eigenaar. | ., must be one of ["onbekendHerstelType", "vergunning", "funderingRapport", "archiefRapport", "eigenaarBewijs", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py
deleted file mode 100644
index 32be6dd..0000000
--- a/calcasa-api/model/fundering_risico.py
+++ /dev/null
@@ -1,269 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingRisico(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'label': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'bron': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'omschrijving': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'label': 'label', # noqa: E501
- 'bron': 'bron', # noqa: E501
- 'omschrijving': 'omschrijving', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """FunderingRisico - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- label (bool, date, datetime, dict, float, int, list, str, none_type): Het risicolabel van de fundering.Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. | . [optional] # noqa: E501
- bron (bool, date, datetime, dict, float, int, list, str, none_type): De bron voor de bepaalde risico-klasse.. [optional] # noqa: E501
- omschrijving (str): De omschrijving van het risico.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """FunderingRisico - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- label (bool, date, datetime, dict, float, int, list, str, none_type): Het risicolabel van de fundering.Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. | . [optional] # noqa: E501
- bron (bool, date, datetime, dict, float, int, list, str, none_type): De bron voor de bepaalde risico-klasse.. [optional] # noqa: E501
- omschrijving (str): De omschrijving van het risico.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py
deleted file mode 100644
index 4e24660..0000000
--- a/calcasa-api/model/fundering_risico_label.py
+++ /dev/null
@@ -1,296 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingRisicoLabel(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'LAAG': "laag",
- 'GEMIDDELD': "gemiddeld",
- 'HOOG': "hoog",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """FunderingRisicoLabel - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. | ., must be one of ["onbekend", "laag", "gemiddeld", "hoog", ] # noqa: E501
-
- Keyword Args:
- value (str): Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. | ., must be one of ["onbekend", "laag", "gemiddeld", "hoog", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """FunderingRisicoLabel - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. | ., must be one of ["onbekend", "laag", "gemiddeld", "hoog", ] # noqa: E501
-
- Keyword Args:
- value (str): Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. | ., must be one of ["onbekend", "laag", "gemiddeld", "hoog", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py
deleted file mode 100644
index f6e47f2..0000000
--- a/calcasa-api/model/fundering_soort_bron.py
+++ /dev/null
@@ -1,295 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingSoortBron(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'MODEL': "model",
- 'DOCUMENT': "document",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """FunderingSoortBron - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | ., must be one of ["onbekend", "model", "document", ] # noqa: E501
-
- Keyword Args:
- value (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | ., must be one of ["onbekend", "model", "document", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """FunderingSoortBron - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | ., must be one of ["onbekend", "model", "document", ] # noqa: E501
-
- Keyword Args:
- value (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | ., must be one of ["onbekend", "model", "document", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py
deleted file mode 100644
index 74f0c36..0000000
--- a/calcasa-api/model/fundering_type.py
+++ /dev/null
@@ -1,310 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKENDFUNDERINGTYPE': "onbekendFunderingType",
- 'HOUT': "hout",
- 'HOUTAMSTERDAM': "houtAmsterdam",
- 'HOUTROTTERDAM': "houtRotterdam",
- 'BETON': "beton",
- 'NIETONDERHEID': "nietOnderheid",
- 'NIETONDERHEIDGEMETSELD': "nietOnderheidGemetseld",
- 'NIETONDERHEIDSTROKEN': "nietOnderheidStroken",
- 'NIETONDERHEIDPLAAT': "nietOnderheidPlaat",
- 'NIETONDERHEIDBETONPLAAT': "nietOnderheidBetonplaat",
- 'NIETONDERHEIDSLIETEN': "nietOnderheidSlieten",
- 'HOUTOPLANGER': "houtOplanger",
- 'BETONVERZWAARD': "betonVerzwaard",
- 'GECOMBINEERD': "gecombineerd",
- 'STAAL': "staal",
- 'HOUTAMSTERDAMROTTERDAM': "houtAmsterdamRotterdam",
- 'HOUTROTTERDAMSPAARBOOG': "houtRotterdamSpaarboog",
- 'HOUTAMSTERDAMSPAARBOOG': "houtAmsterdamSpaarboog",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """FunderingType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. | ., must be one of ["onbekendFunderingType", "hout", "houtAmsterdam", "houtRotterdam", "beton", "nietOnderheid", "nietOnderheidGemetseld", "nietOnderheidStroken", "nietOnderheidPlaat", "nietOnderheidBetonplaat", "nietOnderheidSlieten", "houtOplanger", "betonVerzwaard", "gecombineerd", "staal", "houtAmsterdamRotterdam", "houtRotterdamSpaarboog", "houtAmsterdamSpaarboog", ] # noqa: E501
-
- Keyword Args:
- value (str): Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. | ., must be one of ["onbekendFunderingType", "hout", "houtAmsterdam", "houtRotterdam", "beton", "nietOnderheid", "nietOnderheidGemetseld", "nietOnderheidStroken", "nietOnderheidPlaat", "nietOnderheidBetonplaat", "nietOnderheidSlieten", "houtOplanger", "betonVerzwaard", "gecombineerd", "staal", "houtAmsterdamRotterdam", "houtRotterdamSpaarboog", "houtAmsterdamSpaarboog", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """FunderingType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. | ., must be one of ["onbekendFunderingType", "hout", "houtAmsterdam", "houtRotterdam", "beton", "nietOnderheid", "nietOnderheidGemetseld", "nietOnderheidStroken", "nietOnderheidPlaat", "nietOnderheidBetonplaat", "nietOnderheidSlieten", "houtOplanger", "betonVerzwaard", "gecombineerd", "staal", "houtAmsterdamRotterdam", "houtRotterdamSpaarboog", "houtAmsterdamSpaarboog", ] # noqa: E501
-
- Keyword Args:
- value (str): Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. | ., must be one of ["onbekendFunderingType", "hout", "houtAmsterdam", "houtRotterdam", "beton", "nietOnderheid", "nietOnderheidGemetseld", "nietOnderheidStroken", "nietOnderheidPlaat", "nietOnderheidBetonplaat", "nietOnderheidSlieten", "houtOplanger", "betonVerzwaard", "gecombineerd", "staal", "houtAmsterdamRotterdam", "houtRotterdamSpaarboog", "houtAmsterdamSpaarboog", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py
deleted file mode 100644
index 6875c5f..0000000
--- a/calcasa-api/model/fundering_typering.py
+++ /dev/null
@@ -1,269 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class FunderingTypering(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'bron': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'omschrijving': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'type': 'type', # noqa: E501
- 'bron': 'bron', # noqa: E501
- 'omschrijving': 'omschrijving', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """FunderingTypering - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- type (bool, date, datetime, dict, float, int, list, str, none_type): Het type fundering.Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. | . [optional] # noqa: E501
- bron (bool, date, datetime, dict, float, int, list, str, none_type): De bron van het funderingstype.. [optional] # noqa: E501
- omschrijving (str): De omschrijving van het funderingstype.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """FunderingTypering - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- type (bool, date, datetime, dict, float, int, list, str, none_type): Het type fundering.Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. | . [optional] # noqa: E501
- bron (bool, date, datetime, dict, float, int, list, str, none_type): De bron van het funderingstype.. [optional] # noqa: E501
- omschrijving (str): De omschrijving van het funderingstype.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py
deleted file mode 100644
index 33441f2..0000000
--- a/calcasa-api/model/funderingdata.py
+++ /dev/null
@@ -1,285 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Funderingdata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'typering': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'herstel_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'droogstand_risico': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'optrekkend_vocht_risico': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'bio_infectie_risico': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'herstelkosten': (float, none_type,), # noqa: E501
- 'bron': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'typering': 'typering', # noqa: E501
- 'herstel_type': 'herstelType', # noqa: E501
- 'droogstand_risico': 'droogstandRisico', # noqa: E501
- 'optrekkend_vocht_risico': 'optrekkendVochtRisico', # noqa: E501
- 'bio_infectie_risico': 'bioInfectieRisico', # noqa: E501
- 'herstelkosten': 'herstelkosten', # noqa: E501
- 'bron': 'bron', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Funderingdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- typering (bool, date, datetime, dict, float, int, list, str, none_type): Informatie over het type fundering.. [optional] # noqa: E501
- herstel_type (bool, date, datetime, dict, float, int, list, str, none_type): Het herstel-type van de fundering.. [optional] # noqa: E501
- droogstand_risico (bool, date, datetime, dict, float, int, list, str, none_type): Risico-informatie over droogstand.. [optional] # noqa: E501
- optrekkend_vocht_risico (bool, date, datetime, dict, float, int, list, str, none_type): Risico-informatie over optrekkend vocht.. [optional] # noqa: E501
- bio_infectie_risico (bool, date, datetime, dict, float, int, list, str, none_type): Risico-informatie over bacteriële infectie.. [optional] # noqa: E501
- herstelkosten (float, none_type): Indicatieve herstelkosten van de fundering.. [optional] # noqa: E501
- bron (bool, date, datetime, dict, float, int, list, str, none_type): De bron van de data.Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. | . [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Funderingdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- typering (bool, date, datetime, dict, float, int, list, str, none_type): Informatie over het type fundering.. [optional] # noqa: E501
- herstel_type (bool, date, datetime, dict, float, int, list, str, none_type): Het herstel-type van de fundering.. [optional] # noqa: E501
- droogstand_risico (bool, date, datetime, dict, float, int, list, str, none_type): Risico-informatie over droogstand.. [optional] # noqa: E501
- optrekkend_vocht_risico (bool, date, datetime, dict, float, int, list, str, none_type): Risico-informatie over optrekkend vocht.. [optional] # noqa: E501
- bio_infectie_risico (bool, date, datetime, dict, float, int, list, str, none_type): Risico-informatie over bacteriële infectie.. [optional] # noqa: E501
- herstelkosten (float, none_type): Indicatieve herstelkosten van de fundering.. [optional] # noqa: E501
- bron (bool, date, datetime, dict, float, int, list, str, none_type): De bron van de data.Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. | . [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py
deleted file mode 100644
index 9b58ae6..0000000
--- a/calcasa-api/model/gebiedsdata.py
+++ /dev/null
@@ -1,293 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Gebiedsdata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'naam': (str,), # noqa: E501
- 'gemiddelde_prijs_eengezinswoningen': (int, none_type,), # noqa: E501
- 'gemiddelde_prijs_meergezinswoningen': (int, none_type,), # noqa: E501
- 'gemiddelde_vierkantemeter_prijs_eengezinswoningen': (int, none_type,), # noqa: E501
- 'gemiddelde_vierkantemeter_prijs_meergezinswoningen': (int, none_type,), # noqa: E501
- 'prijsverandering_afgelopen_jaar': (int, none_type,), # noqa: E501
- 'prijsverandering_afgelopen3_jaar': (int, none_type,), # noqa: E501
- 'prijsverandering_afgelopen5_jaar': (int, none_type,), # noqa: E501
- 'prijsverandering_afgelopen10_jaar': (int, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'naam': 'naam', # noqa: E501
- 'gemiddelde_prijs_eengezinswoningen': 'gemiddeldePrijsEengezinswoningen', # noqa: E501
- 'gemiddelde_prijs_meergezinswoningen': 'gemiddeldePrijsMeergezinswoningen', # noqa: E501
- 'gemiddelde_vierkantemeter_prijs_eengezinswoningen': 'gemiddeldeVierkantemeterPrijsEengezinswoningen', # noqa: E501
- 'gemiddelde_vierkantemeter_prijs_meergezinswoningen': 'gemiddeldeVierkantemeterPrijsMeergezinswoningen', # noqa: E501
- 'prijsverandering_afgelopen_jaar': 'prijsveranderingAfgelopenJaar', # noqa: E501
- 'prijsverandering_afgelopen3_jaar': 'prijsveranderingAfgelopen3Jaar', # noqa: E501
- 'prijsverandering_afgelopen5_jaar': 'prijsveranderingAfgelopen5Jaar', # noqa: E501
- 'prijsverandering_afgelopen10_jaar': 'prijsveranderingAfgelopen10Jaar', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Gebiedsdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- naam (str): [optional] # noqa: E501
- gemiddelde_prijs_eengezinswoningen (int, none_type): In hele euros.. [optional] # noqa: E501
- gemiddelde_prijs_meergezinswoningen (int, none_type): In hele euros.. [optional] # noqa: E501
- gemiddelde_vierkantemeter_prijs_eengezinswoningen (int, none_type): In hele euros per vierkante meter.. [optional] # noqa: E501
- gemiddelde_vierkantemeter_prijs_meergezinswoningen (int, none_type): In hele euros per vierkante meter.. [optional] # noqa: E501
- prijsverandering_afgelopen_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- prijsverandering_afgelopen3_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- prijsverandering_afgelopen5_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- prijsverandering_afgelopen10_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Gebiedsdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- naam (str): [optional] # noqa: E501
- gemiddelde_prijs_eengezinswoningen (int, none_type): In hele euros.. [optional] # noqa: E501
- gemiddelde_prijs_meergezinswoningen (int, none_type): In hele euros.. [optional] # noqa: E501
- gemiddelde_vierkantemeter_prijs_eengezinswoningen (int, none_type): In hele euros per vierkante meter.. [optional] # noqa: E501
- gemiddelde_vierkantemeter_prijs_meergezinswoningen (int, none_type): In hele euros per vierkante meter.. [optional] # noqa: E501
- prijsverandering_afgelopen_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- prijsverandering_afgelopen3_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- prijsverandering_afgelopen5_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- prijsverandering_afgelopen10_jaar (int, none_type): In hele procenten.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py
deleted file mode 100644
index abd0fb4..0000000
--- a/calcasa-api/model/invalid_argument_problem_details.py
+++ /dev/null
@@ -1,287 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class InvalidArgumentProblemDetails(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'param_name': (str, none_type,), # noqa: E501
- 'type': (str, none_type,), # noqa: E501
- 'title': (str, none_type,), # noqa: E501
- 'status': (int, none_type,), # noqa: E501
- 'detail': (str, none_type,), # noqa: E501
- 'instance': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'param_name': 'paramName', # noqa: E501
- 'type': 'type', # noqa: E501
- 'title': 'title', # noqa: E501
- 'status': 'status', # noqa: E501
- 'detail': 'detail', # noqa: E501
- 'instance': 'instance', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """InvalidArgumentProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- param_name (str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """InvalidArgumentProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- param_name (str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/json_patch_document.py b/calcasa-api/model/json_patch_document.py
deleted file mode 100644
index 09a5706..0000000
--- a/calcasa-api/model/json_patch_document.py
+++ /dev/null
@@ -1,295 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.operation import Operation
- globals()['Operation'] = Operation
-
-
-class JsonPatchDocument(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'value': ([Operation],),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """JsonPatchDocument - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] ([Operation]): Array of operations to perform. # noqa: E501
-
- Keyword Args:
- value ([Operation]): Array of operations to perform. # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """JsonPatchDocument - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] ([Operation]): Array of operations to perform. # noqa: E501
-
- Keyword Args:
- value ([Operation]): Array of operations to perform. # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py
deleted file mode 100644
index 4fb5f29..0000000
--- a/calcasa-api/model/klantwaarde_type.py
+++ /dev/null
@@ -1,297 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class KlantwaardeType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'KOOPSOM': "koopsom",
- 'TAXATIEWAARDE': "taxatiewaarde",
- 'WOZWAARDE': "wozWaarde",
- 'EIGENWAARDEINSCHATTING': "eigenWaardeinschatting",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """KlantwaardeType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | ., must be one of ["onbekend", "koopsom", "taxatiewaarde", "wozWaarde", "eigenWaardeinschatting", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | ., must be one of ["onbekend", "koopsom", "taxatiewaarde", "wozWaarde", "eigenWaardeinschatting", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """KlantwaardeType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | ., must be one of ["onbekend", "koopsom", "taxatiewaarde", "wozWaarde", "eigenWaardeinschatting", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | ., must be one of ["onbekend", "koopsom", "taxatiewaarde", "wozWaarde", "eigenWaardeinschatting", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py
deleted file mode 100644
index c7fb6e0..0000000
--- a/calcasa-api/model/kwartaal.py
+++ /dev/null
@@ -1,265 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Kwartaal(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'jaar': (int,), # noqa: E501
- 'number': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'jaar': 'jaar', # noqa: E501
- 'number': 'number', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Kwartaal - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- jaar (int): [optional] # noqa: E501
- number (int): Het kwartaal van 1 tot 4.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Kwartaal - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- jaar (int): [optional] # noqa: E501
- number (int): Het kwartaal van 1 tot 4.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py
deleted file mode 100644
index ed2f4d1..0000000
--- a/calcasa-api/model/modeldata.py
+++ /dev/null
@@ -1,281 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Modeldata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'marktwaarde': (int,), # noqa: E501
- 'marktwaarde_ondergrens': (int,), # noqa: E501
- 'marktwaarde_bovengrens': (int,), # noqa: E501
- 'confidence_level': (float,), # noqa: E501
- 'waardebepalingsdatum': (datetime,), # noqa: E501
- 'executiewaarde': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'marktwaarde': 'marktwaarde', # noqa: E501
- 'marktwaarde_ondergrens': 'marktwaardeOndergrens', # noqa: E501
- 'marktwaarde_bovengrens': 'marktwaardeBovengrens', # noqa: E501
- 'confidence_level': 'confidenceLevel', # noqa: E501
- 'waardebepalingsdatum': 'waardebepalingsdatum', # noqa: E501
- 'executiewaarde': 'executiewaarde', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Modeldata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- marktwaarde (int): In hele euros.. [optional] # noqa: E501
- marktwaarde_ondergrens (int): In hele euros.. [optional] # noqa: E501
- marktwaarde_bovengrens (int): In hele euros.. [optional] # noqa: E501
- confidence_level (float): Op een schaal van 0 tot 7.. [optional] # noqa: E501
- waardebepalingsdatum (datetime): In UTC.. [optional] # noqa: E501
- executiewaarde (int): In hele euros.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Modeldata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- marktwaarde (int): In hele euros.. [optional] # noqa: E501
- marktwaarde_ondergrens (int): In hele euros.. [optional] # noqa: E501
- marktwaarde_bovengrens (int): In hele euros.. [optional] # noqa: E501
- confidence_level (float): Op een schaal van 0 tot 7.. [optional] # noqa: E501
- waardebepalingsdatum (datetime): In UTC.. [optional] # noqa: E501
- executiewaarde (int): In hele euros.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py
deleted file mode 100644
index fad2328..0000000
--- a/calcasa-api/model/not_found_problem_details.py
+++ /dev/null
@@ -1,287 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class NotFoundProblemDetails(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'entity': (str, none_type,), # noqa: E501
- 'type': (str, none_type,), # noqa: E501
- 'title': (str, none_type,), # noqa: E501
- 'status': (int, none_type,), # noqa: E501
- 'detail': (str, none_type,), # noqa: E501
- 'instance': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'entity': 'entity', # noqa: E501
- 'type': 'type', # noqa: E501
- 'title': 'title', # noqa: E501
- 'status': 'status', # noqa: E501
- 'detail': 'detail', # noqa: E501
- 'instance': 'instance', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """NotFoundProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- entity (str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """NotFoundProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- entity (str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/notitie.py b/calcasa-api/model/notitie.py
deleted file mode 100644
index 2eed0c1..0000000
--- a/calcasa-api/model/notitie.py
+++ /dev/null
@@ -1,296 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Notitie(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'GEEN': "geen",
- 'GECORRIGEERD': "gecorrigeerd",
- 'ONBEKEND': "onbekend",
- 'ONTBREEKT': "ontbreekt",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """Notitie - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | ., must be one of ["geen", "gecorrigeerd", "onbekend", "ontbreekt", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | ., must be one of ["geen", "gecorrigeerd", "onbekend", "ontbreekt", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """Notitie - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | ., must be one of ["geen", "gecorrigeerd", "onbekend", "ontbreekt", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | ., must be one of ["geen", "gecorrigeerd", "onbekend", "ontbreekt", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py
deleted file mode 100644
index 3b4ac73..0000000
--- a/calcasa-api/model/notities.py
+++ /dev/null
@@ -1,277 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Notities(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'straat': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'huisnummer': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'huisnummertoevoeging': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'postcode': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'woonplaats': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'straat': 'straat', # noqa: E501
- 'huisnummer': 'huisnummer', # noqa: E501
- 'huisnummertoevoeging': 'huisnummertoevoeging', # noqa: E501
- 'postcode': 'postcode', # noqa: E501
- 'woonplaats': 'woonplaats', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Notities - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- straat (bool, date, datetime, dict, float, int, list, str, none_type): De straatnaamnotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- huisnummer (bool, date, datetime, dict, float, int, list, str, none_type): De huisnummernotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- huisnummertoevoeging (bool, date, datetime, dict, float, int, list, str, none_type): De huisnummertoevoegingnotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- postcode (bool, date, datetime, dict, float, int, list, str, none_type): De postcodenotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- woonplaats (bool, date, datetime, dict, float, int, list, str, none_type): De woonplaatsnotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Notities - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- straat (bool, date, datetime, dict, float, int, list, str, none_type): De straatnaamnotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- huisnummer (bool, date, datetime, dict, float, int, list, str, none_type): De huisnummernotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- huisnummertoevoeging (bool, date, datetime, dict, float, int, list, str, none_type): De huisnummertoevoegingnotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- postcode (bool, date, datetime, dict, float, int, list, str, none_type): De postcodenotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- woonplaats (bool, date, datetime, dict, float, int, list, str, none_type): De woonplaatsnotitie. | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. | . [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py
deleted file mode 100644
index 8b26b37..0000000
--- a/calcasa-api/model/objectdata.py
+++ /dev/null
@@ -1,281 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Objectdata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'woning_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'bouwjaar': (int,), # noqa: E501
- 'oppervlak': (int,), # noqa: E501
- 'perceeloppervlak': (int,), # noqa: E501
- 'inhoud': (int,), # noqa: E501
- 'energielabel': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'woning_type': 'woningType', # noqa: E501
- 'bouwjaar': 'bouwjaar', # noqa: E501
- 'oppervlak': 'oppervlak', # noqa: E501
- 'perceeloppervlak': 'perceeloppervlak', # noqa: E501
- 'inhoud': 'inhoud', # noqa: E501
- 'energielabel': 'energielabel', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Objectdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- woning_type (bool, date, datetime, dict, float, int, list, str, none_type): Woningtypes zoals gedefinieerd in het Calcasa-model.Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap.
Heel speciaal type | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. | . [optional] # noqa: E501
- bouwjaar (int): [optional] # noqa: E501
- oppervlak (int): Het woonoppervlak in hele vierkante meters.. [optional] # noqa: E501
- perceeloppervlak (int): Het perceeloppervlak in hele vierkante meters.. [optional] # noqa: E501
- inhoud (int): De inhoud in hele kubieke meters.. [optional] # noqa: E501
- energielabel (bool, date, datetime, dict, float, int, list, str, none_type): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+ | | `a2` | A++ | | `a3` | A+++ | | `a4` | A++++ | . [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Objectdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- woning_type (bool, date, datetime, dict, float, int, list, str, none_type): Woningtypes zoals gedefinieerd in het Calcasa-model.Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap.
Heel speciaal type | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. | . [optional] # noqa: E501
- bouwjaar (int): [optional] # noqa: E501
- oppervlak (int): Het woonoppervlak in hele vierkante meters.. [optional] # noqa: E501
- perceeloppervlak (int): Het perceeloppervlak in hele vierkante meters.. [optional] # noqa: E501
- inhoud (int): De inhoud in hele kubieke meters.. [optional] # noqa: E501
- energielabel (bool, date, datetime, dict, float, int, list, str, none_type): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+ | | `a2` | A++ | | `a3` | A+++ | | `a4` | A++++ | . [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py
deleted file mode 100644
index 3cadd00..0000000
--- a/calcasa-api/model/omgevingsdata.py
+++ /dev/null
@@ -1,277 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Omgevingsdata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'buurt': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'wijk': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'gemeente': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'provincie': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'land': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'buurt': 'buurt', # noqa: E501
- 'wijk': 'wijk', # noqa: E501
- 'gemeente': 'gemeente', # noqa: E501
- 'provincie': 'provincie', # noqa: E501
- 'land': 'land', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Omgevingsdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- buurt (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op buurt-niveau.. [optional] # noqa: E501
- wijk (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op wijk-niveau.. [optional] # noqa: E501
- gemeente (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op gemeente-niveau.. [optional] # noqa: E501
- provincie (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op provincie-niveau.. [optional] # noqa: E501
- land (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op landelijk-niveau.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Omgevingsdata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- buurt (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op buurt-niveau.. [optional] # noqa: E501
- wijk (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op wijk-niveau.. [optional] # noqa: E501
- gemeente (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op gemeente-niveau.. [optional] # noqa: E501
- provincie (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op provincie-niveau.. [optional] # noqa: E501
- land (bool, date, datetime, dict, float, int, list, str, none_type): Statistieken op landelijk-niveau.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py
deleted file mode 100644
index ebe85bd..0000000
--- a/calcasa-api/model/operation.py
+++ /dev/null
@@ -1,285 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.operation_type import OperationType
- globals()['OperationType'] = OperationType
-
-
-class Operation(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'op': (OperationType,), # noqa: E501
- '_from': (str, none_type,), # noqa: E501
- 'value': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501
- 'path': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'op': 'op', # noqa: E501
- '_from': 'from', # noqa: E501
- 'value': 'value', # noqa: E501
- 'path': 'path', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Operation - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- op (OperationType): [optional] # noqa: E501
- _from (str, none_type): [optional] # noqa: E501
- value ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501
- path (str): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Operation - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- op (OperationType): [optional] # noqa: E501
- _from (str, none_type): [optional] # noqa: E501
- value ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501
- path (str): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py
deleted file mode 100644
index 132b955..0000000
--- a/calcasa-api/model/operation_type.py
+++ /dev/null
@@ -1,299 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class OperationType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ADD': "add",
- 'REMOVE': "remove",
- 'REPLACE': "replace",
- 'MOVE': "move",
- 'COPY': "copy",
- 'TEST': "test",
- 'INVALID': "invalid",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """OperationType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `add` | | | `remove` | | | `replace` | | | `move` | | | `copy` | | | `test` | | | `invalid` | | ., must be one of ["add", "remove", "replace", "move", "copy", "test", "invalid", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `add` | | | `remove` | | | `replace` | | | `move` | | | `copy` | | | `test` | | | `invalid` | | ., must be one of ["add", "remove", "replace", "move", "copy", "test", "invalid", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """OperationType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `add` | | | `remove` | | | `replace` | | | `move` | | | `copy` | | | `test` | | | `invalid` | | ., must be one of ["add", "remove", "replace", "move", "copy", "test", "invalid", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `add` | | | `remove` | | | `replace` | | | `move` | | | `copy` | | | `test` | | | `invalid` | | ., must be one of ["add", "remove", "replace", "move", "copy", "test", "invalid", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py
deleted file mode 100644
index 5fb2679..0000000
--- a/calcasa-api/model/permissions_denied_problem_details.py
+++ /dev/null
@@ -1,287 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class PermissionsDeniedProblemDetails(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'required_permission': (str, none_type,), # noqa: E501
- 'type': (str, none_type,), # noqa: E501
- 'title': (str, none_type,), # noqa: E501
- 'status': (int, none_type,), # noqa: E501
- 'detail': (str, none_type,), # noqa: E501
- 'instance': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'required_permission': 'requiredPermission', # noqa: E501
- 'type': 'type', # noqa: E501
- 'title': 'title', # noqa: E501
- 'status': 'status', # noqa: E501
- 'detail': 'detail', # noqa: E501
- 'instance': 'instance', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """PermissionsDeniedProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- required_permission (str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """PermissionsDeniedProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- required_permission (str, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/problem_details.py b/calcasa-api/model/problem_details.py
deleted file mode 100644
index 67aa32f..0000000
--- a/calcasa-api/model/problem_details.py
+++ /dev/null
@@ -1,283 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class ProblemDetails(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'type': (str, none_type,), # noqa: E501
- 'title': (str, none_type,), # noqa: E501
- 'status': (int, none_type,), # noqa: E501
- 'detail': (str, none_type,), # noqa: E501
- 'instance': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'type': 'type', # noqa: E501
- 'title': 'title', # noqa: E501
- 'status': 'status', # noqa: E501
- 'detail': 'detail', # noqa: E501
- 'instance': 'instance', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """ProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """ProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/product_type.py b/calcasa-api/model/product_type.py
deleted file mode 100644
index 6e6e303..0000000
--- a/calcasa-api/model/product_type.py
+++ /dev/null
@@ -1,297 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class ProductType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'MODELWAARDECALCASA': "modelwaardeCalcasa",
- 'MODELWAARDERISICO': "modelwaardeRisico",
- 'MODELWAARDEDESKTOPTAXATIE': "modelwaardeDesktopTaxatie",
- 'DESKTOPTAXATIE': "desktopTaxatie",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """ProductType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """ProductType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py
deleted file mode 100644
index 5c84e23..0000000
--- a/calcasa-api/model/rapport.py
+++ /dev/null
@@ -1,261 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Rapport(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'id': (str,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'id': 'id', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Rapport - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Het rapport Id.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Rapport - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Het rapport Id.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py
deleted file mode 100644
index 790b3f1..0000000
--- a/calcasa-api/model/referentieobject.py
+++ /dev/null
@@ -1,316 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.foto import Foto
- from calcasa-api.model.verkoop_bijzonderheden import VerkoopBijzonderheden
- globals()['Foto'] = Foto
- globals()['VerkoopBijzonderheden'] = VerkoopBijzonderheden
-
-
-class Referentieobject(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'afstand': (int,), # noqa: E501
- 'verkoopprijs': (int,), # noqa: E501
- 'gecorrigeerde_verkoopprijs': (int,), # noqa: E501
- 'geindexeerde_verkoopprijs': (int,), # noqa: E501
- 'vierkantemeterprijs': (int,), # noqa: E501
- 'gecorrigeerde_vierkantemeterprijs': (int,), # noqa: E501
- 'geindexeerde_vierkantemeterprijs': (int,), # noqa: E501
- 'verkoopdatum': (datetime,), # noqa: E501
- 'adres': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'object': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'cbs_indeling': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'fotos': ([Foto],), # noqa: E501
- 'bijzonderheden': ([VerkoopBijzonderheden],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'afstand': 'afstand', # noqa: E501
- 'verkoopprijs': 'verkoopprijs', # noqa: E501
- 'gecorrigeerde_verkoopprijs': 'gecorrigeerdeVerkoopprijs', # noqa: E501
- 'geindexeerde_verkoopprijs': 'geindexeerdeVerkoopprijs', # noqa: E501
- 'vierkantemeterprijs': 'vierkantemeterprijs', # noqa: E501
- 'gecorrigeerde_vierkantemeterprijs': 'gecorrigeerdeVierkantemeterprijs', # noqa: E501
- 'geindexeerde_vierkantemeterprijs': 'geindexeerdeVierkantemeterprijs', # noqa: E501
- 'verkoopdatum': 'verkoopdatum', # noqa: E501
- 'adres': 'adres', # noqa: E501
- 'object': 'object', # noqa: E501
- 'cbs_indeling': 'cbsIndeling', # noqa: E501
- 'fotos': 'fotos', # noqa: E501
- 'bijzonderheden': 'bijzonderheden', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Referentieobject - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- afstand (int): Afstand tot het waarderingsobject in meters.. [optional] # noqa: E501
- verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- gecorrigeerde_verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- geindexeerde_verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- vierkantemeterprijs (int): In hele euros per vierkante meters.. [optional] # noqa: E501
- gecorrigeerde_vierkantemeterprijs (int): In hele euros per vierkante meters.. [optional] # noqa: E501
- geindexeerde_vierkantemeterprijs (int): In hele euros per vierkante meters.. [optional] # noqa: E501
- verkoopdatum (datetime): In UTC.. [optional] # noqa: E501
- adres (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- object (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- cbs_indeling (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- fotos ([Foto]): Fotos van het referentieobject.. [optional] # noqa: E501
- bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Referentieobject - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- afstand (int): Afstand tot het waarderingsobject in meters.. [optional] # noqa: E501
- verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- gecorrigeerde_verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- geindexeerde_verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- vierkantemeterprijs (int): In hele euros per vierkante meters.. [optional] # noqa: E501
- gecorrigeerde_vierkantemeterprijs (int): In hele euros per vierkante meters.. [optional] # noqa: E501
- geindexeerde_vierkantemeterprijs (int): In hele euros per vierkante meters.. [optional] # noqa: E501
- verkoopdatum (datetime): In UTC.. [optional] # noqa: E501
- adres (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- object (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- cbs_indeling (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- fotos ([Foto]): Fotos van het referentieobject.. [optional] # noqa: E501
- bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py
deleted file mode 100644
index dc0724f..0000000
--- a/calcasa-api/model/taxatiedata.py
+++ /dev/null
@@ -1,269 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Taxatiedata(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'taxatieorganisatie': (str,), # noqa: E501
- 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'taxatiedatum': (datetime,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'taxatieorganisatie': 'taxatieorganisatie', # noqa: E501
- 'status': 'status', # noqa: E501
- 'taxatiedatum': 'taxatiedatum', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Taxatiedata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501
- status (bool, date, datetime, dict, float, int, list, str, none_type): De status van een taxatie (alleen van toepassing voor desktop taxaties). | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. | . [optional] # noqa: E501
- taxatiedatum (datetime): De datum/tijd waarop de waardering getaxeerd is, in UTC.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Taxatiedata - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501
- status (bool, date, datetime, dict, float, int, list, str, none_type): De status van een taxatie (alleen van toepassing voor desktop taxaties). | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. | . [optional] # noqa: E501
- taxatiedatum (datetime): De datum/tijd waarop de waardering getaxeerd is, in UTC.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py
deleted file mode 100644
index c8a92d6..0000000
--- a/calcasa-api/model/taxatiestatus.py
+++ /dev/null
@@ -1,295 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class Taxatiestatus(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'NIETGECONTROLEERD': "nietGecontroleerd",
- 'GOEDGEKEURD': "goedgekeurd",
- 'AFGEKEURD': "afgekeurd",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """Taxatiestatus - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. | ., must be one of ["nietGecontroleerd", "goedgekeurd", "afgekeurd", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. | ., must be one of ["nietGecontroleerd", "goedgekeurd", "afgekeurd", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """Taxatiestatus - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. | ., must be one of ["nietGecontroleerd", "goedgekeurd", "afgekeurd", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. | ., must be one of ["nietGecontroleerd", "goedgekeurd", "afgekeurd", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py
deleted file mode 100644
index 261bed1..0000000
--- a/calcasa-api/model/validation_problem_details.py
+++ /dev/null
@@ -1,343 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.problem_details import ProblemDetails
- globals()['ProblemDetails'] = ProblemDetails
-
-
-class ValidationProblemDetails(ModelComposed):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- @cached_property
- def additional_properties_type():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
- """
- lazy_import()
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'errors': ({str: ([str],)}, none_type,), # noqa: E501
- 'type': (str, none_type,), # noqa: E501
- 'title': (str, none_type,), # noqa: E501
- 'status': (int, none_type,), # noqa: E501
- 'detail': (str, none_type,), # noqa: E501
- 'instance': (str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'errors': 'errors', # noqa: E501
- 'type': 'type', # noqa: E501
- 'title': 'title', # noqa: E501
- 'status': 'status', # noqa: E501
- 'detail': 'detail', # noqa: E501
- 'instance': 'instance', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """ValidationProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- errors ({str: ([str],)}, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- constant_args = {
- '_check_type': _check_type,
- '_path_to_item': _path_to_item,
- '_spec_property_naming': _spec_property_naming,
- '_configuration': _configuration,
- '_visited_composed_classes': self._visited_composed_classes,
- }
- composed_info = validate_get_composed_info(
- constant_args, kwargs, self)
- self._composed_instances = composed_info[0]
- self._var_name_to_model_instances = composed_info[1]
- self._additional_properties_model_instances = composed_info[2]
- discarded_args = composed_info[3]
-
- for var_name, var_value in kwargs.items():
- if var_name in discarded_args and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
-
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- '_composed_instances',
- '_var_name_to_model_instances',
- '_additional_properties_model_instances',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """ValidationProblemDetails - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- errors ({str: ([str],)}, none_type): [optional] # noqa: E501
- type (str, none_type): [optional] # noqa: E501
- title (str, none_type): [optional] # noqa: E501
- status (int, none_type): [optional] # noqa: E501
- detail (str, none_type): [optional] # noqa: E501
- instance (str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- constant_args = {
- '_check_type': _check_type,
- '_path_to_item': _path_to_item,
- '_spec_property_naming': _spec_property_naming,
- '_configuration': _configuration,
- '_visited_composed_classes': self._visited_composed_classes,
- }
- composed_info = validate_get_composed_info(
- constant_args, kwargs, self)
- self._composed_instances = composed_info[0]
- self._var_name_to_model_instances = composed_info[1]
- self._additional_properties_model_instances = composed_info[2]
- discarded_args = composed_info[3]
-
- for var_name, var_value in kwargs.items():
- if var_name in discarded_args and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self._additional_properties_model_instances:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
-
- @cached_property
- def _composed_schemas():
- # we need this here to make our import statements work
- # we must store _composed_schemas in here so the code is only run
- # when we invoke this method. If we kept this at the class
- # level we would get an error because the class level
- # code would be run when this module is imported, and these composed
- # classes don't exist yet because their module has not finished
- # loading
- lazy_import()
- return {
- 'anyOf': [
- ],
- 'allOf': [
- ProblemDetails,
- ],
- 'oneOf': [
- ],
- }
diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py
deleted file mode 100644
index 227329b..0000000
--- a/calcasa-api/model/verkoop_bijzonderheden.py
+++ /dev/null
@@ -1,301 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class VerkoopBijzonderheden(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'EXECUTIEVERKOOP': "executieverkoop",
- 'FAMILIEVERKOOP': "familieverkoop",
- 'MEERONROERENDGOED': "meerOnroerendGoed",
- 'ZITTENDEHUURDER': "zittendeHuurder",
- 'VERKOPERNIETNATUURLIJK': "verkoperNietNatuurlijk",
- 'KOPERNIETNATUURLIJK': "koperNietNatuurlijk",
- 'NIETWONING': "nietWoning",
- 'ERFDIENSTBAARHEID': "erfdienstbaarheid",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """VerkoopBijzonderheden - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Bijzonderheden onbekend. | | `executieverkoop` | Een indicatie dat het object is verkocht via een executieveiling. | | `familieverkoop` | Een indicatie dat de transactie is geregistreerd als familieverkoop. | | `meerOnroerendGoed` | Een indicatie dat de transactie meerdere percelen bevat. | | `zittendeHuurder` | Een indicatie dat de transactie is geregistreerd als verkoop aan de zittende huurder. | | `verkoperNietNatuurlijk` | Een indicatie dat de verkoper een niet-natuurlijke persoon is. | | `koperNietNatuurlijk` | Een indicatie dat de koper een niet-natuurlijke persoon is. | | `nietWoning` | Een indicatie dat het object geregistreerd is als niet-woning. | | `erfdienstbaarheid` | Een indicatie dat er een erfdienstbaarheid op het object gevestigd is. | ., must be one of ["onbekend", "executieverkoop", "familieverkoop", "meerOnroerendGoed", "zittendeHuurder", "verkoperNietNatuurlijk", "koperNietNatuurlijk", "nietWoning", "erfdienstbaarheid", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Bijzonderheden onbekend. | | `executieverkoop` | Een indicatie dat het object is verkocht via een executieveiling. | | `familieverkoop` | Een indicatie dat de transactie is geregistreerd als familieverkoop. | | `meerOnroerendGoed` | Een indicatie dat de transactie meerdere percelen bevat. | | `zittendeHuurder` | Een indicatie dat de transactie is geregistreerd als verkoop aan de zittende huurder. | | `verkoperNietNatuurlijk` | Een indicatie dat de verkoper een niet-natuurlijke persoon is. | | `koperNietNatuurlijk` | Een indicatie dat de koper een niet-natuurlijke persoon is. | | `nietWoning` | Een indicatie dat het object geregistreerd is als niet-woning. | | `erfdienstbaarheid` | Een indicatie dat er een erfdienstbaarheid op het object gevestigd is. | ., must be one of ["onbekend", "executieverkoop", "familieverkoop", "meerOnroerendGoed", "zittendeHuurder", "verkoperNietNatuurlijk", "koperNietNatuurlijk", "nietWoning", "erfdienstbaarheid", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """VerkoopBijzonderheden - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Bijzonderheden onbekend. | | `executieverkoop` | Een indicatie dat het object is verkocht via een executieveiling. | | `familieverkoop` | Een indicatie dat de transactie is geregistreerd als familieverkoop. | | `meerOnroerendGoed` | Een indicatie dat de transactie meerdere percelen bevat. | | `zittendeHuurder` | Een indicatie dat de transactie is geregistreerd als verkoop aan de zittende huurder. | | `verkoperNietNatuurlijk` | Een indicatie dat de verkoper een niet-natuurlijke persoon is. | | `koperNietNatuurlijk` | Een indicatie dat de koper een niet-natuurlijke persoon is. | | `nietWoning` | Een indicatie dat het object geregistreerd is als niet-woning. | | `erfdienstbaarheid` | Een indicatie dat er een erfdienstbaarheid op het object gevestigd is. | ., must be one of ["onbekend", "executieverkoop", "familieverkoop", "meerOnroerendGoed", "zittendeHuurder", "verkoperNietNatuurlijk", "koperNietNatuurlijk", "nietWoning", "erfdienstbaarheid", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Bijzonderheden onbekend. | | `executieverkoop` | Een indicatie dat het object is verkocht via een executieveiling. | | `familieverkoop` | Een indicatie dat de transactie is geregistreerd als familieverkoop. | | `meerOnroerendGoed` | Een indicatie dat de transactie meerdere percelen bevat. | | `zittendeHuurder` | Een indicatie dat de transactie is geregistreerd als verkoop aan de zittende huurder. | | `verkoperNietNatuurlijk` | Een indicatie dat de verkoper een niet-natuurlijke persoon is. | | `koperNietNatuurlijk` | Een indicatie dat de koper een niet-natuurlijke persoon is. | | `nietWoning` | Een indicatie dat het object geregistreerd is als niet-woning. | | `erfdienstbaarheid` | Een indicatie dat er een erfdienstbaarheid op het object gevestigd is. | ., must be one of ["onbekend", "executieverkoop", "familieverkoop", "meerOnroerendGoed", "zittendeHuurder", "verkoperNietNatuurlijk", "koperNietNatuurlijk", "nietWoning", "erfdienstbaarheid", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py
deleted file mode 100644
index 60f7fa0..0000000
--- a/calcasa-api/model/vorige_verkoop.py
+++ /dev/null
@@ -1,290 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.verkoop_bijzonderheden import VerkoopBijzonderheden
- globals()['VerkoopBijzonderheden'] = VerkoopBijzonderheden
-
-
-class VorigeVerkoop(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'verkoopprijs': (int,), # noqa: E501
- 'geindexeerde_verkoopprijs': (int,), # noqa: E501
- 'vierkantemeterprijs': (int,), # noqa: E501
- 'geindexeerde_vierkantemeterprijs': (int,), # noqa: E501
- 'verkoopdatum': (datetime,), # noqa: E501
- 'perceeloppervlak': (int,), # noqa: E501
- 'bijzonderheden': ([VerkoopBijzonderheden],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'verkoopprijs': 'verkoopprijs', # noqa: E501
- 'geindexeerde_verkoopprijs': 'geindexeerdeVerkoopprijs', # noqa: E501
- 'vierkantemeterprijs': 'vierkantemeterprijs', # noqa: E501
- 'geindexeerde_vierkantemeterprijs': 'geindexeerdeVierkantemeterprijs', # noqa: E501
- 'verkoopdatum': 'verkoopdatum', # noqa: E501
- 'perceeloppervlak': 'perceeloppervlak', # noqa: E501
- 'bijzonderheden': 'bijzonderheden', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """VorigeVerkoop - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- geindexeerde_verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- vierkantemeterprijs (int): In hele euros per vierkante meter.. [optional] # noqa: E501
- geindexeerde_vierkantemeterprijs (int): In hele euros per vierkante meter.. [optional] # noqa: E501
- verkoopdatum (datetime): In UTC.. [optional] # noqa: E501
- perceeloppervlak (int): Het perceeloppervlak in hele vierkante meters.. [optional] # noqa: E501
- bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """VorigeVerkoop - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- geindexeerde_verkoopprijs (int): In hele euros.. [optional] # noqa: E501
- vierkantemeterprijs (int): In hele euros per vierkante meter.. [optional] # noqa: E501
- geindexeerde_vierkantemeterprijs (int): In hele euros per vierkante meter.. [optional] # noqa: E501
- verkoopdatum (datetime): In UTC.. [optional] # noqa: E501
- perceeloppervlak (int): Het perceeloppervlak in hele vierkante meters.. [optional] # noqa: E501
- bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py
deleted file mode 100644
index f0fdcd0..0000000
--- a/calcasa-api/model/waardering.py
+++ /dev/null
@@ -1,322 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.foto import Foto
- from calcasa-api.model.referentieobject import Referentieobject
- from calcasa-api.model.vorige_verkoop import VorigeVerkoop
- globals()['Foto'] = Foto
- globals()['Referentieobject'] = Referentieobject
- globals()['VorigeVerkoop'] = VorigeVerkoop
-
-
-class Waardering(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'id': (str,), # noqa: E501
- 'aangemaakt': (datetime,), # noqa: E501
- 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'originele_input': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'adres': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'model': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'taxatie': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'object': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'cbs_indeling': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'fotos': ([Foto], none_type,), # noqa: E501
- 'referenties': ([Referentieobject], none_type,), # noqa: E501
- 'vorige_verkopen': ([VorigeVerkoop], none_type,), # noqa: E501
- 'rapport': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'factuur': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'id': 'id', # noqa: E501
- 'aangemaakt': 'aangemaakt', # noqa: E501
- 'status': 'status', # noqa: E501
- 'originele_input': 'origineleInput', # noqa: E501
- 'adres': 'adres', # noqa: E501
- 'model': 'model', # noqa: E501
- 'taxatie': 'taxatie', # noqa: E501
- 'object': 'object', # noqa: E501
- 'cbs_indeling': 'cbsIndeling', # noqa: E501
- 'fotos': 'fotos', # noqa: E501
- 'referenties': 'referenties', # noqa: E501
- 'vorige_verkopen': 'vorigeVerkopen', # noqa: E501
- 'rapport': 'rapport', # noqa: E501
- 'factuur': 'factuur', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """Waardering - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Id van de waardering of tracking Id.. [optional] # noqa: E501
- aangemaakt (datetime): Het tijdsstempel van wanneer de waardering aangemaakt is.. [optional] # noqa: E501
- status (bool, date, datetime, dict, float, int, list, str, none_type): De huidige status van de waardering. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | . [optional] # noqa: E501
- originele_input (bool, date, datetime, dict, float, int, list, str, none_type): De invoer die gebruikt is voor het aanmaken van deze waardering.. [optional] # noqa: E501
- adres (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- model (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- taxatie (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- object (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- cbs_indeling (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- fotos ([Foto], none_type): [optional] # noqa: E501
- referenties ([Referentieobject], none_type): [optional] # noqa: E501
- vorige_verkopen ([VorigeVerkoop], none_type): [optional] # noqa: E501
- rapport (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- factuur (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """Waardering - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Id van de waardering of tracking Id.. [optional] # noqa: E501
- aangemaakt (datetime): Het tijdsstempel van wanneer de waardering aangemaakt is.. [optional] # noqa: E501
- status (bool, date, datetime, dict, float, int, list, str, none_type): De huidige status van de waardering. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | . [optional] # noqa: E501
- originele_input (bool, date, datetime, dict, float, int, list, str, none_type): De invoer die gebruikt is voor het aanmaken van deze waardering.. [optional] # noqa: E501
- adres (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- model (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- taxatie (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- object (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- cbs_indeling (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- fotos ([Foto], none_type): [optional] # noqa: E501
- referenties ([Referentieobject], none_type): [optional] # noqa: E501
- vorige_verkopen ([VorigeVerkoop], none_type): [optional] # noqa: E501
- rapport (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- factuur (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py
deleted file mode 100644
index fd5a8d5..0000000
--- a/calcasa-api/model/waardering_input_parameters.py
+++ /dev/null
@@ -1,313 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class WaarderingInputParameters(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'product_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'bag_nummeraanduiding_id': (int,), # noqa: E501
- 'geldverstrekker': (str,), # noqa: E501
- 'hypotheekwaarde': (int,), # noqa: E501
- 'aanvraagdoel': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'klantwaarde': (int,), # noqa: E501
- 'klantwaarde_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'is_bestaande_woning': (bool,), # noqa: E501
- 'is_nhg': (bool,), # noqa: E501
- 'is_bestaande_nhg_hypotheek': (bool,), # noqa: E501
- 'benodigde_overbrugging': (int,), # noqa: E501
- 'peildatum': (datetime, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'product_type': 'productType', # noqa: E501
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501
- 'geldverstrekker': 'geldverstrekker', # noqa: E501
- 'hypotheekwaarde': 'hypotheekwaarde', # noqa: E501
- 'aanvraagdoel': 'aanvraagdoel', # noqa: E501
- 'klantwaarde': 'klantwaarde', # noqa: E501
- 'klantwaarde_type': 'klantwaardeType', # noqa: E501
- 'is_bestaande_woning': 'isBestaandeWoning', # noqa: E501
- 'is_nhg': 'isNhg', # noqa: E501
- 'is_bestaande_nhg_hypotheek': 'isBestaandeNhgHypotheek', # noqa: E501
- 'benodigde_overbrugging': 'benodigdeOverbrugging', # noqa: E501
- 'peildatum': 'peildatum', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwargs): # noqa: E501
- """WaarderingInputParameters - a model defined in OpenAPI
-
- Args:
- product_type (bool, date, datetime, dict, float, int, list, str, none_type): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. |
- bag_nummeraanduiding_id (int): Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id.
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- geldverstrekker (str): [optional] # noqa: E501
- hypotheekwaarde (int): In hele euros.. [optional] # noqa: E501
- aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): English: Request GoalEnglish: Request Goal | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown | | `aankoopNieuweWoning` | English: New Home Purchase | | `overbruggingsfinanciering` | English: Bridge Financing | | `hypotheekOversluiten` | English: Refinancing Mortgage | | `hypotheekOphogen` | English: Increasing Mortage | | `hypotheekWijziging` | English: Changing Mortgage | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest | . [optional] # noqa: E501
- klantwaarde (int): In hele euros. De waarde zoals bekend bij de klant met bijbehorende KlantwaardeType.. [optional] # noqa: E501
- klantwaarde_type (bool, date, datetime, dict, float, int, list, str, none_type): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501
- is_bestaande_woning (bool): Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501
- is_nhg (bool): Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501
- is_bestaande_nhg_hypotheek (bool): Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501
- benodigde_overbrugging (int): In hele euros. Alleen van toepassing voor aanvraagdoel Overbruggingsfinanciering.. [optional] # noqa: E501
- peildatum (datetime, none_type): Peildatum voor de aanvraag. Standaard de datum van vandaag.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- self.product_type = product_type
- self.bag_nummeraanduiding_id = bag_nummeraanduiding_id
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # noqa: E501
- """WaarderingInputParameters - a model defined in OpenAPI
-
- Args:
- product_type (bool, date, datetime, dict, float, int, list, str, none_type): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. |
- bag_nummeraanduiding_id (int): Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id.
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- geldverstrekker (str): [optional] # noqa: E501
- hypotheekwaarde (int): In hele euros.. [optional] # noqa: E501
- aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): English: Request GoalEnglish: Request Goal | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown | | `aankoopNieuweWoning` | English: New Home Purchase | | `overbruggingsfinanciering` | English: Bridge Financing | | `hypotheekOversluiten` | English: Refinancing Mortgage | | `hypotheekOphogen` | English: Increasing Mortage | | `hypotheekWijziging` | English: Changing Mortgage | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest | . [optional] # noqa: E501
- klantwaarde (int): In hele euros. De waarde zoals bekend bij de klant met bijbehorende KlantwaardeType.. [optional] # noqa: E501
- klantwaarde_type (bool, date, datetime, dict, float, int, list, str, none_type): | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501
- is_bestaande_woning (bool): Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501
- is_nhg (bool): Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501
- is_bestaande_nhg_hypotheek (bool): Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501
- benodigde_overbrugging (int): In hele euros. Alleen van toepassing voor aanvraagdoel Overbruggingsfinanciering.. [optional] # noqa: E501
- peildatum (datetime, none_type): Peildatum voor de aanvraag. Standaard de datum van vandaag.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- self.product_type = product_type
- self.bag_nummeraanduiding_id = bag_nummeraanduiding_id
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py
deleted file mode 100644
index b2c4629..0000000
--- a/calcasa-api/model/waardering_ontwikkeling.py
+++ /dev/null
@@ -1,298 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-def lazy_import():
- from calcasa-api.model.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal
- globals()['WaarderingOntwikkelingKwartaal'] = WaarderingOntwikkelingKwartaal
-
-
-class WaarderingOntwikkeling(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- lazy_import()
- return {
- 'id': (str,), # noqa: E501
- 'object_prijs_ontwikkeling': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'object_prijs_ontwikkeling_per_vierkantemeter': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'buurt_prijs_ontwikkeling': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'buurt_prijs_ontwikkeling_per_vierkantemeter': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'wijk_prijs_ontwikkeling': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'wijk_prijs_ontwikkeling_per_vierkantemeter': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'gemeente_prijs_ontwikkeling': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- 'gemeente_prijs_ontwikkeling_per_vierkantemeter': ([WaarderingOntwikkelingKwartaal],), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'id': 'id', # noqa: E501
- 'object_prijs_ontwikkeling': 'objectPrijsOntwikkeling', # noqa: E501
- 'object_prijs_ontwikkeling_per_vierkantemeter': 'objectPrijsOntwikkelingPerVierkantemeter', # noqa: E501
- 'buurt_prijs_ontwikkeling': 'buurtPrijsOntwikkeling', # noqa: E501
- 'buurt_prijs_ontwikkeling_per_vierkantemeter': 'buurtPrijsOntwikkelingPerVierkantemeter', # noqa: E501
- 'wijk_prijs_ontwikkeling': 'wijkPrijsOntwikkeling', # noqa: E501
- 'wijk_prijs_ontwikkeling_per_vierkantemeter': 'wijkPrijsOntwikkelingPerVierkantemeter', # noqa: E501
- 'gemeente_prijs_ontwikkeling': 'gemeentePrijsOntwikkeling', # noqa: E501
- 'gemeente_prijs_ontwikkeling_per_vierkantemeter': 'gemeentePrijsOntwikkelingPerVierkantemeter', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """WaarderingOntwikkeling - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Id van de waardering of tracking Id.. [optional] # noqa: E501
- object_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van het gewaardeerde object.. [optional] # noqa: E501
- object_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- buurt_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de buurt van het gewaardeerde object.. [optional] # noqa: E501
- buurt_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de buurt van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- wijk_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de wijk van het gewaardeerde object.. [optional] # noqa: E501
- wijk_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de wijk van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- gemeente_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de gemeente van het gewaardeerde object.. [optional] # noqa: E501
- gemeente_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de gemeente van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """WaarderingOntwikkeling - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- id (str): Id van de waardering of tracking Id.. [optional] # noqa: E501
- object_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van het gewaardeerde object.. [optional] # noqa: E501
- object_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- buurt_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de buurt van het gewaardeerde object.. [optional] # noqa: E501
- buurt_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de buurt van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- wijk_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de wijk van het gewaardeerde object.. [optional] # noqa: E501
- wijk_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de wijk van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- gemeente_prijs_ontwikkeling ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de gemeente van het gewaardeerde object.. [optional] # noqa: E501
- gemeente_prijs_ontwikkeling_per_vierkantemeter ([WaarderingOntwikkelingKwartaal]): De prijsontwikkeling van de gemeente van het gewaardeerde object per vierkantemeter.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py
deleted file mode 100644
index 8954850..0000000
--- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py
+++ /dev/null
@@ -1,265 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class WaarderingOntwikkelingKwartaal(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'kwartaal': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'waarde': (int,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'kwartaal': 'kwartaal', # noqa: E501
- 'waarde': 'waarde', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """WaarderingOntwikkelingKwartaal - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- kwartaal (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- waarde (int): In hele euros.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """WaarderingOntwikkelingKwartaal - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- kwartaal (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- waarde (int): In hele euros.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py
deleted file mode 100644
index c26dba7..0000000
--- a/calcasa-api/model/waardering_status.py
+++ /dev/null
@@ -1,300 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class WaarderingStatus(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'INITIALISEREN': "initialiseren",
- 'OPEN': "open",
- 'VOLTOOID': "voltooid",
- 'OPGEWAARDEERD': "opgewaardeerd",
- 'ONGELDIG': "ongeldig",
- 'VERLOPEN': "verlopen",
- 'ERROR': "error",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """WaarderingStatus - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """WaarderingStatus - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", ] # noqa: E501
-
- Keyword Args:
- value (str): | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py
deleted file mode 100644
index 04eb956..0000000
--- a/calcasa-api/model/waardering_webhook_payload.py
+++ /dev/null
@@ -1,286 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class WaarderingWebhookPayload(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'callback_name': (str,), # noqa: E501
- 'event_id': (str,), # noqa: E501
- 'waardering_id': (str,), # noqa: E501
- 'old_status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'new_status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'timestamp': (datetime,), # noqa: E501
- 'is_test': (bool,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'callback_name': 'callbackName', # noqa: E501
- 'event_id': 'eventId', # noqa: E501
- 'waardering_id': 'waarderingId', # noqa: E501
- 'old_status': 'oldStatus', # noqa: E501
- 'new_status': 'newStatus', # noqa: E501
- 'timestamp': 'timestamp', # noqa: E501
- 'is_test': 'isTest', # noqa: E501
- }
-
- read_only_vars = {
- 'callback_name', # noqa: E501
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
- """WaarderingWebhookPayload - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- callback_name (str): [optional] # noqa: E501
- event_id (str): Uniek Id voor deze callback.. [optional] # noqa: E501
- waardering_id (str): Het Id van de waardering waarop deze callback betrekking heeft.. [optional] # noqa: E501
- old_status (bool, date, datetime, dict, float, int, list, str, none_type): De oude status van de waardering. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | . [optional] # noqa: E501
- new_status (bool, date, datetime, dict, float, int, list, str, none_type): De nieuwe status van de waardering. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | . [optional] # noqa: E501
- timestamp (datetime): Het tijdstip van het event, in UTC.. [optional] # noqa: E501
- is_test (bool): Geeft aan of de betreffende waardering aangevraagd is met een test token.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs): # noqa: E501
- """WaarderingWebhookPayload - a model defined in OpenAPI
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- callback_name (str): [optional] # noqa: E501
- event_id (str): Uniek Id voor deze callback.. [optional] # noqa: E501
- waardering_id (str): Het Id van de waardering waarop deze callback betrekking heeft.. [optional] # noqa: E501
- old_status (bool, date, datetime, dict, float, int, list, str, none_type): De oude status van de waardering. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | . [optional] # noqa: E501
- new_status (bool, date, datetime, dict, float, int, list, str, none_type): De nieuwe status van de waardering. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | . [optional] # noqa: E501
- timestamp (datetime): Het tijdstip van het event, in UTC.. [optional] # noqa: E501
- is_test (bool): Geeft aan of de betreffende waardering aangevraagd is met een test token.. [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa-api/model/waardering_zoek_parameters.py
deleted file mode 100644
index a4aace9..0000000
--- a/calcasa-api/model/waardering_zoek_parameters.py
+++ /dev/null
@@ -1,289 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class WaarderingZoekParameters(ModelNormal):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- discriminator_value_class_map (dict): A dict to go from the discriminator
- variable value to the discriminator class name.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'product_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'bag_nummeraanduiding_id': (int,), # noqa: E501
- 'aangemaakt': (datetime, none_type,), # noqa: E501
- 'geldverstrekker': (str, none_type,), # noqa: E501
- 'aanvraagdoel': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- 'waardering_status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {
- 'product_type': 'productType', # noqa: E501
- 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501
- 'aangemaakt': 'aangemaakt', # noqa: E501
- 'geldverstrekker': 'geldverstrekker', # noqa: E501
- 'aanvraagdoel': 'aanvraagdoel', # noqa: E501
- 'waardering_status': 'waarderingStatus', # noqa: E501
- }
-
- read_only_vars = {
- }
-
- _composed_schemas = {}
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwargs): # noqa: E501
- """WaarderingZoekParameters - a model defined in OpenAPI
-
- Args:
- product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. |
- bag_nummeraanduiding_id (int): Verplicht.
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- aangemaakt (datetime, none_type): De datum waarop de waardering is aangemaakt, in UTC.. [optional] # noqa: E501
- geldverstrekker (str, none_type): De naam van de geldverstrekker voor de waardering.. [optional] # noqa: E501
- aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- waardering_status (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- self.product_type = product_type
- self.bag_nummeraanduiding_id = bag_nummeraanduiding_id
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- return self
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # noqa: E501
- """WaarderingZoekParameters - a model defined in OpenAPI
-
- Args:
- product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend product type. Geen geldige invoer. | | `modelwaardeCalcasa` | Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. |
- bag_nummeraanduiding_id (int): Verplicht.
-
- Keyword Args:
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- aangemaakt (datetime, none_type): De datum waarop de waardering is aangemaakt, in UTC.. [optional] # noqa: E501
- geldverstrekker (str, none_type): De naam van de geldverstrekker voor de waardering.. [optional] # noqa: E501
- aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- waardering_status (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
- """
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _path_to_item = kwargs.pop('_path_to_item', ())
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
-
- self.product_type = product_type
- self.bag_nummeraanduiding_id = bag_nummeraanduiding_id
- for var_name, var_value in kwargs.items():
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
- self.additional_properties_type is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
- if var_name in self.read_only_vars:
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
- f"class with read only attributes.")
diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py
deleted file mode 100644
index f005919..0000000
--- a/calcasa-api/model/woning_type.py
+++ /dev/null
@@ -1,302 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import re # noqa: F401
-import sys # noqa: F401
-
-from calcasa-api.model_utils import ( # noqa: F401
- ApiTypeError,
- ModelComposed,
- ModelNormal,
- ModelSimple,
- cached_property,
- change_keys_js_to_python,
- convert_js_args_to_python_args,
- date,
- datetime,
- file_type,
- none_type,
- validate_get_composed_info,
-)
-from ..model_utils import OpenApiModel
-from calcasa-api.exceptions import ApiAttributeError
-
-
-
-class WoningType(ModelSimple):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
-
- Attributes:
- allowed_values (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- with a capitalized key describing the allowed value and an allowed
- value. These dicts store the allowed enum values.
- validations (dict): The key is the tuple path to the attribute
- and the for var_name this is (var_name,). The value is a dict
- that stores validations for max_length, min_length, max_items,
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
- inclusive_minimum, and regex.
- additional_properties_type (tuple): A tuple of classes accepted
- as additional properties values.
- """
-
- allowed_values = {
- ('value',): {
- 'ONBEKEND': "onbekend",
- 'VRIJSTAAND': "vrijstaand",
- 'HALFVRIJSTAAND': "halfVrijstaand",
- 'HOEKWONING': "hoekwoning",
- 'TUSSENWONING': "tussenwoning",
- 'GALERIJFLAT': "galerijflat",
- 'PORTIEKFLAT': "portiekflat",
- 'MAISONNETTE': "maisonnette",
- 'BOVENWONING': "bovenwoning",
- 'BENEDENWONING': "benedenwoning",
- },
- }
-
- validations = {
- }
-
- additional_properties_type = None
-
- _nullable = False
-
- @cached_property
- def openapi_types():
- """
- This must be a method because a model may have properties that are
- of type self, this must run after the class is loaded
-
- Returns
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- """
- return {
- 'value': (str,),
- }
-
- @cached_property
- def discriminator():
- return None
-
-
- attribute_map = {}
-
- read_only_vars = set()
-
- _composed_schemas = None
-
- required_properties = set([
- '_data_store',
- '_check_type',
- '_spec_property_naming',
- '_path_to_item',
- '_configuration',
- '_visited_composed_classes',
- ])
-
- @convert_js_args_to_python_args
- def __init__(self, *args, **kwargs):
- """WoningType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap.
Heel speciaal type | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. | ., must be one of ["onbekend", "vrijstaand", "halfVrijstaand", "hoekwoning", "tussenwoning", "galerijflat", "portiekflat", "maisonnette", "bovenwoning", "benedenwoning", ] # noqa: E501
-
- Keyword Args:
- value (str): Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap.
Heel speciaal type | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. | ., must be one of ["onbekend", "vrijstaand", "halfVrijstaand", "hoekwoning", "tussenwoning", "galerijflat", "portiekflat", "maisonnette", "bovenwoning", "benedenwoning", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- @classmethod
- @convert_js_args_to_python_args
- def _from_openapi_data(cls, *args, **kwargs):
- """WoningType - a model defined in OpenAPI
-
- Note that value can be passed either in args or in kwargs, but not in both.
-
- Args:
- args[0] (str): Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap.
Heel speciaal type | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. | ., must be one of ["onbekend", "vrijstaand", "halfVrijstaand", "hoekwoning", "tussenwoning", "galerijflat", "portiekflat", "maisonnette", "bovenwoning", "benedenwoning", ] # noqa: E501
-
- Keyword Args:
- value (str): Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap.
Heel speciaal type | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. | ., must be one of ["onbekend", "vrijstaand", "halfVrijstaand", "hoekwoning", "tussenwoning", "galerijflat", "portiekflat", "maisonnette", "bovenwoning", "benedenwoning", ] # noqa: E501
- _check_type (bool): if True, values for parameters in openapi_types
- will be type checked and a TypeError will be
- raised if the wrong type is input.
- Defaults to True
- _path_to_item (tuple/list): This is a list of keys or values to
- drill down to the model in received_data
- when deserializing a response
- _spec_property_naming (bool): True if the variable names in the input data
- are serialized names, as specified in the OpenAPI document.
- False if the variable names in the input data
- are pythonic names, e.g. snake case (default)
- _configuration (Configuration): the instance to use when
- deserializing a file_type parameter.
- If passed, type conversion is attempted
- If omitted no type conversion is done.
- _visited_composed_classes (tuple): This stores a tuple of
- classes that we have traveled through so that
- if we see that class again we will not use its
- discriminator again.
- When traveling through a discriminator, the
- composed schema that is
- is traveled through is added to this set.
- For example if Animal has a discriminator
- petType and we pass in "Dog", and the class Dog
- allOf includes Animal, we move through Animal
- once using the discriminator, and pick Dog.
- Then in Dog, we will make an instance of the
- Animal class but this time we won't travel
- through its discriminator because we passed in
- _visited_composed_classes = (Animal,)
- """
- # required up here when default value is not given
- _path_to_item = kwargs.pop('_path_to_item', ())
-
- self = super(OpenApiModel, cls).__new__(cls)
-
- if 'value' in kwargs:
- value = kwargs.pop('value')
- elif args:
- args = list(args)
- value = args.pop(0)
- else:
- raise ApiTypeError(
- "value is required, but not passed in args or kwargs and doesn't have default",
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- _check_type = kwargs.pop('_check_type', True)
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
- _configuration = kwargs.pop('_configuration', None)
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
-
- if args:
- raise ApiTypeError(
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
- args,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- self._data_store = {}
- self._check_type = _check_type
- self._spec_property_naming = _spec_property_naming
- self._path_to_item = _path_to_item
- self._configuration = _configuration
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
- self.value = value
- if kwargs:
- raise ApiTypeError(
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
- kwargs,
- self.__class__.__name__,
- ),
- path_to_item=_path_to_item,
- valid_classes=(self.__class__,),
- )
-
- return self
diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py
deleted file mode 100644
index 98ebd2b..0000000
--- a/calcasa-api/model_utils.py
+++ /dev/null
@@ -1,2045 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-from datetime import date, datetime # noqa: F401
-from copy import deepcopy
-import inspect
-import io
-import os
-import pprint
-import re
-import tempfile
-
-from dateutil.parser import parse
-
-from calcasa-api.exceptions import (
- ApiKeyError,
- ApiAttributeError,
- ApiTypeError,
- ApiValueError,
-)
-
-none_type = type(None)
-file_type = io.IOBase
-
-
-def convert_js_args_to_python_args(fn):
- from functools import wraps
- @wraps(fn)
- def wrapped_init(_self, *args, **kwargs):
- """
- An attribute named `self` received from the api will conflicts with the reserved `self`
- parameter of a class method. During generation, `self` attributes are mapped
- to `_self` in models. Here, we name `_self` instead of `self` to avoid conflicts.
- """
- spec_property_naming = kwargs.get('_spec_property_naming', False)
- if spec_property_naming:
- kwargs = change_keys_js_to_python(kwargs, _self if isinstance(_self, type) else _self.__class__)
- return fn(_self, *args, **kwargs)
- return wrapped_init
-
-
-class cached_property(object):
- # this caches the result of the function call for fn with no inputs
- # use this as a decorator on function methods that you want converted
- # into cached properties
- result_key = '_results'
-
- def __init__(self, fn):
- self._fn = fn
-
- def __get__(self, instance, cls=None):
- if self.result_key in vars(self):
- return vars(self)[self.result_key]
- else:
- result = self._fn()
- setattr(self, self.result_key, result)
- return result
-
-
-PRIMITIVE_TYPES = (list, float, int, bool, datetime, date, str, file_type)
-
-def allows_single_value_input(cls):
- """
- This function returns True if the input composed schema model or any
- descendant model allows a value only input
- This is true for cases where oneOf contains items like:
- oneOf:
- - float
- - NumberWithValidation
- - StringEnum
- - ArrayModel
- - null
- TODO: lru_cache this
- """
- if (
- issubclass(cls, ModelSimple) or
- cls in PRIMITIVE_TYPES
- ):
- return True
- elif issubclass(cls, ModelComposed):
- if not cls._composed_schemas['oneOf']:
- return False
- return any(allows_single_value_input(c) for c in cls._composed_schemas['oneOf'])
- return False
-
-def composed_model_input_classes(cls):
- """
- This function returns a list of the possible models that can be accepted as
- inputs.
- TODO: lru_cache this
- """
- if issubclass(cls, ModelSimple) or cls in PRIMITIVE_TYPES:
- return [cls]
- elif issubclass(cls, ModelNormal):
- if cls.discriminator is None:
- return [cls]
- else:
- return get_discriminated_classes(cls)
- elif issubclass(cls, ModelComposed):
- if not cls._composed_schemas['oneOf']:
- return []
- if cls.discriminator is None:
- input_classes = []
- for c in cls._composed_schemas['oneOf']:
- input_classes.extend(composed_model_input_classes(c))
- return input_classes
- else:
- return get_discriminated_classes(cls)
- return []
-
-
-class OpenApiModel(object):
- """The base class for all OpenAPIModels"""
-
- def set_attribute(self, name, value):
- # this is only used to set properties on self
-
- path_to_item = []
- if self._path_to_item:
- path_to_item.extend(self._path_to_item)
- path_to_item.append(name)
-
- if name in self.openapi_types:
- required_types_mixed = self.openapi_types[name]
- elif self.additional_properties_type is None:
- raise ApiAttributeError(
- "{0} has no attribute '{1}'".format(
- type(self).__name__, name),
- path_to_item
- )
- elif self.additional_properties_type is not None:
- required_types_mixed = self.additional_properties_type
-
- if get_simple_class(name) != str:
- error_msg = type_error_message(
- var_name=name,
- var_value=name,
- valid_classes=(str,),
- key_type=True
- )
- raise ApiTypeError(
- error_msg,
- path_to_item=path_to_item,
- valid_classes=(str,),
- key_type=True
- )
-
- if self._check_type:
- value = validate_and_convert_types(
- value, required_types_mixed, path_to_item, self._spec_property_naming,
- self._check_type, configuration=self._configuration)
- if (name,) in self.allowed_values:
- check_allowed_values(
- self.allowed_values,
- (name,),
- value
- )
- if (name,) in self.validations:
- check_validations(
- self.validations,
- (name,),
- value,
- self._configuration
- )
- self.__dict__['_data_store'][name] = value
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
-
- def __setattr__(self, attr, value):
- """set the value of an attribute using dot notation: `instance.attr = val`"""
- self[attr] = value
-
- def __getattr__(self, attr):
- """get the value of an attribute using dot notation: `instance.attr`"""
- return self.get(attr)
-
- def __copy__(self):
- cls = self.__class__
- if self.get("_spec_property_naming", False):
- return cls._new_from_openapi_data(**self.__dict__)
- else:
- return new_cls.__new__(cls, **self.__dict__)
-
- def __deepcopy__(self, memo):
- cls = self.__class__
-
- if self.get("_spec_property_naming", False):
- new_inst = cls._new_from_openapi_data()
- else:
- new_inst = cls.__new__(cls)
-
- for k, v in self.__dict__.items():
- setattr(new_inst, k, deepcopy(v, memo))
- return new_inst
-
-
- def __new__(cls, *args, **kwargs):
- # this function uses the discriminator to
- # pick a new schema/class to instantiate because a discriminator
- # propertyName value was passed in
-
- if len(args) == 1:
- arg = args[0]
- if arg is None and is_type_nullable(cls):
- # The input data is the 'null' value and the type is nullable.
- return None
-
- if issubclass(cls, ModelComposed) and allows_single_value_input(cls):
- model_kwargs = {}
- oneof_instance = get_oneof_instance(cls, model_kwargs, kwargs, model_arg=arg)
- return oneof_instance
-
-
- visited_composed_classes = kwargs.get('_visited_composed_classes', ())
- if (
- cls.discriminator is None or
- cls in visited_composed_classes
- ):
- # Use case 1: this openapi schema (cls) does not have a discriminator
- # Use case 2: we have already visited this class before and are sure that we
- # want to instantiate it this time. We have visited this class deserializing
- # a payload with a discriminator. During that process we traveled through
- # this class but did not make an instance of it. Now we are making an
- # instance of a composed class which contains cls in it, so this time make an instance of cls.
- #
- # Here's an example of use case 2: If Animal has a discriminator
- # petType and we pass in "Dog", and the class Dog
- # allOf includes Animal, we move through Animal
- # once using the discriminator, and pick Dog.
- # Then in the composed schema dog Dog, we will make an instance of the
- # Animal class (because Dal has allOf: Animal) but this time we won't travel
- # through Animal's discriminator because we passed in
- # _visited_composed_classes = (Animal,)
-
- return super(OpenApiModel, cls).__new__(cls)
-
- # Get the name and value of the discriminator property.
- # The discriminator name is obtained from the discriminator meta-data
- # and the discriminator value is obtained from the input data.
- discr_propertyname_py = list(cls.discriminator.keys())[0]
- discr_propertyname_js = cls.attribute_map[discr_propertyname_py]
- if discr_propertyname_js in kwargs:
- discr_value = kwargs[discr_propertyname_js]
- elif discr_propertyname_py in kwargs:
- discr_value = kwargs[discr_propertyname_py]
- else:
- # The input data does not contain the discriminator property.
- path_to_item = kwargs.get('_path_to_item', ())
- raise ApiValueError(
- "Cannot deserialize input data due to missing discriminator. "
- "The discriminator property '%s' is missing at path: %s" %
- (discr_propertyname_js, path_to_item)
- )
-
- # Implementation note: the last argument to get_discriminator_class
- # is a list of visited classes. get_discriminator_class may recursively
- # call itself and update the list of visited classes, and the initial
- # value must be an empty list. Hence not using 'visited_composed_classes'
- new_cls = get_discriminator_class(
- cls, discr_propertyname_py, discr_value, [])
- if new_cls is None:
- path_to_item = kwargs.get('_path_to_item', ())
- disc_prop_value = kwargs.get(
- discr_propertyname_js, kwargs.get(discr_propertyname_py))
- raise ApiValueError(
- "Cannot deserialize input data due to invalid discriminator "
- "value. The OpenAPI document has no mapping for discriminator "
- "property '%s'='%s' at path: %s" %
- (discr_propertyname_js, disc_prop_value, path_to_item)
- )
-
- if new_cls in visited_composed_classes:
- # if we are making an instance of a composed schema Descendent
- # which allOf includes Ancestor, then Ancestor contains
- # a discriminator that includes Descendent.
- # So if we make an instance of Descendent, we have to make an
- # instance of Ancestor to hold the allOf properties.
- # This code detects that use case and makes the instance of Ancestor
- # For example:
- # When making an instance of Dog, _visited_composed_classes = (Dog,)
- # then we make an instance of Animal to include in dog._composed_instances
- # so when we are here, cls is Animal
- # cls.discriminator != None
- # cls not in _visited_composed_classes
- # new_cls = Dog
- # but we know we know that we already have Dog
- # because it is in visited_composed_classes
- # so make Animal here
- return super(OpenApiModel, cls).__new__(cls)
-
- # Build a list containing all oneOf and anyOf descendants.
- oneof_anyof_classes = None
- if cls._composed_schemas is not None:
- oneof_anyof_classes = (
- cls._composed_schemas.get('oneOf', ()) +
- cls._composed_schemas.get('anyOf', ()))
- oneof_anyof_child = new_cls in oneof_anyof_classes
- kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,)
-
- if cls._composed_schemas.get('allOf') and oneof_anyof_child:
- # Validate that we can make self because when we make the
- # new_cls it will not include the allOf validations in self
- self_inst = super(OpenApiModel, cls).__new__(cls)
- self_inst.__init__(*args, **kwargs)
-
- if kwargs.get("_spec_property_naming", False):
- # when true, implies new is from deserialization
- new_inst = new_cls._new_from_openapi_data(*args, **kwargs)
- else:
- new_inst = new_cls.__new__(new_cls, *args, **kwargs)
- new_inst.__init__(*args, **kwargs)
-
- return new_inst
-
-
- @classmethod
- @convert_js_args_to_python_args
- def _new_from_openapi_data(cls, *args, **kwargs):
- # this function uses the discriminator to
- # pick a new schema/class to instantiate because a discriminator
- # propertyName value was passed in
-
- if len(args) == 1:
- arg = args[0]
- if arg is None and is_type_nullable(cls):
- # The input data is the 'null' value and the type is nullable.
- return None
-
- if issubclass(cls, ModelComposed) and allows_single_value_input(cls):
- model_kwargs = {}
- oneof_instance = get_oneof_instance(cls, model_kwargs, kwargs, model_arg=arg)
- return oneof_instance
-
-
- visited_composed_classes = kwargs.get('_visited_composed_classes', ())
- if (
- cls.discriminator is None or
- cls in visited_composed_classes
- ):
- # Use case 1: this openapi schema (cls) does not have a discriminator
- # Use case 2: we have already visited this class before and are sure that we
- # want to instantiate it this time. We have visited this class deserializing
- # a payload with a discriminator. During that process we traveled through
- # this class but did not make an instance of it. Now we are making an
- # instance of a composed class which contains cls in it, so this time make an instance of cls.
- #
- # Here's an example of use case 2: If Animal has a discriminator
- # petType and we pass in "Dog", and the class Dog
- # allOf includes Animal, we move through Animal
- # once using the discriminator, and pick Dog.
- # Then in the composed schema dog Dog, we will make an instance of the
- # Animal class (because Dal has allOf: Animal) but this time we won't travel
- # through Animal's discriminator because we passed in
- # _visited_composed_classes = (Animal,)
-
- return cls._from_openapi_data(*args, **kwargs)
-
- # Get the name and value of the discriminator property.
- # The discriminator name is obtained from the discriminator meta-data
- # and the discriminator value is obtained from the input data.
- discr_propertyname_py = list(cls.discriminator.keys())[0]
- discr_propertyname_js = cls.attribute_map[discr_propertyname_py]
- if discr_propertyname_js in kwargs:
- discr_value = kwargs[discr_propertyname_js]
- elif discr_propertyname_py in kwargs:
- discr_value = kwargs[discr_propertyname_py]
- else:
- # The input data does not contain the discriminator property.
- path_to_item = kwargs.get('_path_to_item', ())
- raise ApiValueError(
- "Cannot deserialize input data due to missing discriminator. "
- "The discriminator property '%s' is missing at path: %s" %
- (discr_propertyname_js, path_to_item)
- )
-
- # Implementation note: the last argument to get_discriminator_class
- # is a list of visited classes. get_discriminator_class may recursively
- # call itself and update the list of visited classes, and the initial
- # value must be an empty list. Hence not using 'visited_composed_classes'
- new_cls = get_discriminator_class(
- cls, discr_propertyname_py, discr_value, [])
- if new_cls is None:
- path_to_item = kwargs.get('_path_to_item', ())
- disc_prop_value = kwargs.get(
- discr_propertyname_js, kwargs.get(discr_propertyname_py))
- raise ApiValueError(
- "Cannot deserialize input data due to invalid discriminator "
- "value. The OpenAPI document has no mapping for discriminator "
- "property '%s'='%s' at path: %s" %
- (discr_propertyname_js, disc_prop_value, path_to_item)
- )
-
- if new_cls in visited_composed_classes:
- # if we are making an instance of a composed schema Descendent
- # which allOf includes Ancestor, then Ancestor contains
- # a discriminator that includes Descendent.
- # So if we make an instance of Descendent, we have to make an
- # instance of Ancestor to hold the allOf properties.
- # This code detects that use case and makes the instance of Ancestor
- # For example:
- # When making an instance of Dog, _visited_composed_classes = (Dog,)
- # then we make an instance of Animal to include in dog._composed_instances
- # so when we are here, cls is Animal
- # cls.discriminator != None
- # cls not in _visited_composed_classes
- # new_cls = Dog
- # but we know we know that we already have Dog
- # because it is in visited_composed_classes
- # so make Animal here
- return cls._from_openapi_data(*args, **kwargs)
-
- # Build a list containing all oneOf and anyOf descendants.
- oneof_anyof_classes = None
- if cls._composed_schemas is not None:
- oneof_anyof_classes = (
- cls._composed_schemas.get('oneOf', ()) +
- cls._composed_schemas.get('anyOf', ()))
- oneof_anyof_child = new_cls in oneof_anyof_classes
- kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,)
-
- if cls._composed_schemas.get('allOf') and oneof_anyof_child:
- # Validate that we can make self because when we make the
- # new_cls it will not include the allOf validations in self
- self_inst = cls._from_openapi_data(*args, **kwargs)
-
-
- new_inst = new_cls._new_from_openapi_data(*args, **kwargs)
- return new_inst
-
-
-class ModelSimple(OpenApiModel):
- """the parent class of models whose type != object in their
- swagger/openapi"""
-
- def __setitem__(self, name, value):
- """set the value of an attribute using square-bracket notation: `instance[attr] = val`"""
- if name in self.required_properties:
- self.__dict__[name] = value
- return
-
- self.set_attribute(name, value)
-
- def get(self, name, default=None):
- """returns the value of an attribute or some default value if the attribute was not set"""
- if name in self.required_properties:
- return self.__dict__[name]
-
- return self.__dict__['_data_store'].get(name, default)
-
- def __getitem__(self, name):
- """get the value of an attribute using square-bracket notation: `instance[attr]`"""
- if name in self:
- return self.get(name)
-
- raise ApiAttributeError(
- "{0} has no attribute '{1}'".format(
- type(self).__name__, name),
- [e for e in [self._path_to_item, name] if e]
- )
-
- def __contains__(self, name):
- """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
- if name in self.required_properties:
- return name in self.__dict__
-
- return name in self.__dict__['_data_store']
-
- def to_str(self):
- """Returns the string representation of the model"""
- return str(self.value)
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, self.__class__):
- return False
-
- this_val = self._data_store['value']
- that_val = other._data_store['value']
- types = set()
- types.add(this_val.__class__)
- types.add(that_val.__class__)
- vals_equal = this_val == that_val
- return vals_equal
-
-
-class ModelNormal(OpenApiModel):
- """the parent class of models whose type == object in their
- swagger/openapi"""
-
- def __setitem__(self, name, value):
- """set the value of an attribute using square-bracket notation: `instance[attr] = val`"""
- if name in self.required_properties:
- self.__dict__[name] = value
- return
-
- self.set_attribute(name, value)
-
- def get(self, name, default=None):
- """returns the value of an attribute or some default value if the attribute was not set"""
- if name in self.required_properties:
- return self.__dict__[name]
-
- return self.__dict__['_data_store'].get(name, default)
-
- def __getitem__(self, name):
- """get the value of an attribute using square-bracket notation: `instance[attr]`"""
- if name in self:
- return self.get(name)
-
- raise ApiAttributeError(
- "{0} has no attribute '{1}'".format(
- type(self).__name__, name),
- [e for e in [self._path_to_item, name] if e]
- )
-
- def __contains__(self, name):
- """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
- if name in self.required_properties:
- return name in self.__dict__
-
- return name in self.__dict__['_data_store']
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- return model_to_dict(self, serialize=False)
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, self.__class__):
- return False
-
- if not set(self._data_store.keys()) == set(other._data_store.keys()):
- return False
- for _var_name, this_val in self._data_store.items():
- that_val = other._data_store[_var_name]
- types = set()
- types.add(this_val.__class__)
- types.add(that_val.__class__)
- vals_equal = this_val == that_val
- if not vals_equal:
- return False
- return True
-
-
-class ModelComposed(OpenApiModel):
- """the parent class of models whose type == object in their
- swagger/openapi and have oneOf/allOf/anyOf
-
- When one sets a property we use var_name_to_model_instances to store the value in
- the correct class instances + run any type checking + validation code.
- When one gets a property we use var_name_to_model_instances to get the value
- from the correct class instances.
- This allows multiple composed schemas to contain the same property with additive
- constraints on the value.
-
- _composed_schemas (dict) stores the anyOf/allOf/oneOf classes
- key (str): allOf/oneOf/anyOf
- value (list): the classes in the XOf definition.
- Note: none_type can be included when the openapi document version >= 3.1.0
- _composed_instances (list): stores a list of instances of the composed schemas
- defined in _composed_schemas. When properties are accessed in the self instance,
- they are returned from the self._data_store or the data stores in the instances
- in self._composed_schemas
- _var_name_to_model_instances (dict): maps between a variable name on self and
- the composed instances (self included) which contain that data
- key (str): property name
- value (list): list of class instances, self or instances in _composed_instances
- which contain the value that the key is referring to.
- """
-
- def __setitem__(self, name, value):
- """set the value of an attribute using square-bracket notation: `instance[attr] = val`"""
- if name in self.required_properties:
- self.__dict__[name] = value
- return
-
- """
- Use cases:
- 1. additional_properties_type is None (additionalProperties == False in spec)
- Check for property presence in self.openapi_types
- if not present then throw an error
- if present set in self, set attribute
- always set on composed schemas
- 2. additional_properties_type exists
- set attribute on self
- always set on composed schemas
- """
- if self.additional_properties_type is None:
- """
- For an attribute to exist on a composed schema it must:
- - fulfill schema_requirements in the self composed schema not considering oneOf/anyOf/allOf schemas AND
- - fulfill schema_requirements in each oneOf/anyOf/allOf schemas
-
- schema_requirements:
- For an attribute to exist on a schema it must:
- - be present in properties at the schema OR
- - have additionalProperties unset (defaults additionalProperties = any type) OR
- - have additionalProperties set
- """
- if name not in self.openapi_types:
- raise ApiAttributeError(
- "{0} has no attribute '{1}'".format(
- type(self).__name__, name),
- [e for e in [self._path_to_item, name] if e]
- )
- # attribute must be set on self and composed instances
- self.set_attribute(name, value)
- for model_instance in self._composed_instances:
- setattr(model_instance, name, value)
- if name not in self._var_name_to_model_instances:
- # we assigned an additional property
- self.__dict__['_var_name_to_model_instances'][name] = self._composed_instances + [self]
- return None
-
- __unset_attribute_value__ = object()
-
- def get(self, name, default=None):
- """returns the value of an attribute or some default value if the attribute was not set"""
- if name in self.required_properties:
- return self.__dict__[name]
-
- # get the attribute from the correct instance
- model_instances = self._var_name_to_model_instances.get(name)
- values = []
- # A composed model stores self and child (oneof/anyOf/allOf) models under
- # self._var_name_to_model_instances.
- # Any property must exist in self and all model instances
- # The value stored in all model instances must be the same
- if model_instances:
- for model_instance in model_instances:
- if name in model_instance._data_store:
- v = model_instance._data_store[name]
- if v not in values:
- values.append(v)
- len_values = len(values)
- if len_values == 0:
- return default
- elif len_values == 1:
- return values[0]
- elif len_values > 1:
- raise ApiValueError(
- "Values stored for property {0} in {1} differ when looking "
- "at self and self's composed instances. All values must be "
- "the same".format(name, type(self).__name__),
- [e for e in [self._path_to_item, name] if e]
- )
-
- def __getitem__(self, name):
- """get the value of an attribute using square-bracket notation: `instance[attr]`"""
- value = self.get(name, self.__unset_attribute_value__)
- if value is self.__unset_attribute_value__:
- raise ApiAttributeError(
- "{0} has no attribute '{1}'".format(
- type(self).__name__, name),
- [e for e in [self._path_to_item, name] if e]
- )
- return value
-
- def __contains__(self, name):
- """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
-
- if name in self.required_properties:
- return name in self.__dict__
-
- model_instances = self._var_name_to_model_instances.get(
- name, self._additional_properties_model_instances)
-
- if model_instances:
- for model_instance in model_instances:
- if name in model_instance._data_store:
- return True
-
- return False
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- return model_to_dict(self, serialize=False)
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, self.__class__):
- return False
-
- if not set(self._data_store.keys()) == set(other._data_store.keys()):
- return False
- for _var_name, this_val in self._data_store.items():
- that_val = other._data_store[_var_name]
- types = set()
- types.add(this_val.__class__)
- types.add(that_val.__class__)
- vals_equal = this_val == that_val
- if not vals_equal:
- return False
- return True
-
-
-COERCION_INDEX_BY_TYPE = {
- ModelComposed: 0,
- ModelNormal: 1,
- ModelSimple: 2,
- none_type: 3, # The type of 'None'.
- list: 4,
- dict: 5,
- float: 6,
- int: 7,
- bool: 8,
- datetime: 9,
- date: 10,
- str: 11,
- file_type: 12, # 'file_type' is an alias for the built-in 'file' or 'io.IOBase' type.
-}
-
-# these are used to limit what type conversions we try to do
-# when we have a valid type already and we want to try converting
-# to another type
-UPCONVERSION_TYPE_PAIRS = (
- (str, datetime),
- (str, date),
- (int, float), # A float may be serialized as an integer, e.g. '3' is a valid serialized float.
- (list, ModelComposed),
- (dict, ModelComposed),
- (str, ModelComposed),
- (int, ModelComposed),
- (float, ModelComposed),
- (list, ModelComposed),
- (list, ModelNormal),
- (dict, ModelNormal),
- (str, ModelSimple),
- (int, ModelSimple),
- (float, ModelSimple),
- (list, ModelSimple),
-)
-
-COERCIBLE_TYPE_PAIRS = {
- False: ( # client instantiation of a model with client data
- # (dict, ModelComposed),
- # (list, ModelComposed),
- # (dict, ModelNormal),
- # (list, ModelNormal),
- # (str, ModelSimple),
- # (int, ModelSimple),
- # (float, ModelSimple),
- # (list, ModelSimple),
- # (str, int),
- # (str, float),
- # (str, datetime),
- # (str, date),
- # (int, str),
- # (float, str),
- ),
- True: ( # server -> client data
- (dict, ModelComposed),
- (list, ModelComposed),
- (dict, ModelNormal),
- (list, ModelNormal),
- (str, ModelSimple),
- (int, ModelSimple),
- (float, ModelSimple),
- (list, ModelSimple),
- # (str, int),
- # (str, float),
- (str, datetime),
- (str, date),
- # (int, str),
- # (float, str),
- (str, file_type)
- ),
-}
-
-
-def get_simple_class(input_value):
- """Returns an input_value's simple class that we will use for type checking
- Python2:
- float and int will return int, where int is the python3 int backport
- str and unicode will return str, where str is the python3 str backport
- Note: float and int ARE both instances of int backport
- Note: str_py2 and unicode_py2 are NOT both instances of str backport
-
- Args:
- input_value (class/class_instance): the item for which we will return
- the simple class
- """
- if isinstance(input_value, type):
- # input_value is a class
- return input_value
- elif isinstance(input_value, tuple):
- return tuple
- elif isinstance(input_value, list):
- return list
- elif isinstance(input_value, dict):
- return dict
- elif isinstance(input_value, none_type):
- return none_type
- elif isinstance(input_value, file_type):
- return file_type
- elif isinstance(input_value, bool):
- # this must be higher than the int check because
- # isinstance(True, int) == True
- return bool
- elif isinstance(input_value, int):
- return int
- elif isinstance(input_value, datetime):
- # this must be higher than the date check because
- # isinstance(datetime_instance, date) == True
- return datetime
- elif isinstance(input_value, date):
- return date
- elif isinstance(input_value, str):
- return str
- return type(input_value)
-
-
-def check_allowed_values(allowed_values, input_variable_path, input_values):
- """Raises an exception if the input_values are not allowed
-
- Args:
- allowed_values (dict): the allowed_values dict
- input_variable_path (tuple): the path to the input variable
- input_values (list/str/int/float/date/datetime): the values that we
- are checking to see if they are in allowed_values
- """
- these_allowed_values = list(allowed_values[input_variable_path].values())
- if (isinstance(input_values, list)
- and not set(input_values).issubset(
- set(these_allowed_values))):
- invalid_values = ", ".join(
- map(str, set(input_values) - set(these_allowed_values))),
- raise ApiValueError(
- "Invalid values for `%s` [%s], must be a subset of [%s]" %
- (
- input_variable_path[0],
- invalid_values,
- ", ".join(map(str, these_allowed_values))
- )
- )
- elif (isinstance(input_values, dict)
- and not set(
- input_values.keys()).issubset(set(these_allowed_values))):
- invalid_values = ", ".join(
- map(str, set(input_values.keys()) - set(these_allowed_values)))
- raise ApiValueError(
- "Invalid keys in `%s` [%s], must be a subset of [%s]" %
- (
- input_variable_path[0],
- invalid_values,
- ", ".join(map(str, these_allowed_values))
- )
- )
- elif (not isinstance(input_values, (list, dict))
- and input_values not in these_allowed_values):
- raise ApiValueError(
- "Invalid value for `%s` (%s), must be one of %s" %
- (
- input_variable_path[0],
- input_values,
- these_allowed_values
- )
- )
-
-
-def is_json_validation_enabled(schema_keyword, configuration=None):
- """Returns true if JSON schema validation is enabled for the specified
- validation keyword. This can be used to skip JSON schema structural validation
- as requested in the configuration.
-
- Args:
- schema_keyword (string): the name of a JSON schema validation keyword.
- configuration (Configuration): the configuration class.
- """
-
- return (configuration is None or
- not hasattr(configuration, '_disabled_client_side_validations') or
- schema_keyword not in configuration._disabled_client_side_validations)
-
-
-def check_validations(
- validations, input_variable_path, input_values,
- configuration=None):
- """Raises an exception if the input_values are invalid
-
- Args:
- validations (dict): the validation dictionary.
- input_variable_path (tuple): the path to the input variable.
- input_values (list/str/int/float/date/datetime): the values that we
- are checking.
- configuration (Configuration): the configuration class.
- """
-
- if input_values is None:
- return
-
- current_validations = validations[input_variable_path]
- if (is_json_validation_enabled('multipleOf', configuration) and
- 'multiple_of' in current_validations and
- isinstance(input_values, (int, float)) and
- not (float(input_values) / current_validations['multiple_of']).is_integer()):
- # Note 'multipleOf' will be as good as the floating point arithmetic.
- raise ApiValueError(
- "Invalid value for `%s`, value must be a multiple of "
- "`%s`" % (
- input_variable_path[0],
- current_validations['multiple_of']
- )
- )
-
- if (is_json_validation_enabled('maxLength', configuration) and
- 'max_length' in current_validations and
- len(input_values) > current_validations['max_length']):
- raise ApiValueError(
- "Invalid value for `%s`, length must be less than or equal to "
- "`%s`" % (
- input_variable_path[0],
- current_validations['max_length']
- )
- )
-
- if (is_json_validation_enabled('minLength', configuration) and
- 'min_length' in current_validations and
- len(input_values) < current_validations['min_length']):
- raise ApiValueError(
- "Invalid value for `%s`, length must be greater than or equal to "
- "`%s`" % (
- input_variable_path[0],
- current_validations['min_length']
- )
- )
-
- if (is_json_validation_enabled('maxItems', configuration) and
- 'max_items' in current_validations and
- len(input_values) > current_validations['max_items']):
- raise ApiValueError(
- "Invalid value for `%s`, number of items must be less than or "
- "equal to `%s`" % (
- input_variable_path[0],
- current_validations['max_items']
- )
- )
-
- if (is_json_validation_enabled('minItems', configuration) and
- 'min_items' in current_validations and
- len(input_values) < current_validations['min_items']):
- raise ValueError(
- "Invalid value for `%s`, number of items must be greater than or "
- "equal to `%s`" % (
- input_variable_path[0],
- current_validations['min_items']
- )
- )
-
- items = ('exclusive_maximum', 'inclusive_maximum', 'exclusive_minimum',
- 'inclusive_minimum')
- if (any(item in current_validations for item in items)):
- if isinstance(input_values, list):
- max_val = max(input_values)
- min_val = min(input_values)
- elif isinstance(input_values, dict):
- max_val = max(input_values.values())
- min_val = min(input_values.values())
- else:
- max_val = input_values
- min_val = input_values
-
- if (is_json_validation_enabled('exclusiveMaximum', configuration) and
- 'exclusive_maximum' in current_validations and
- max_val >= current_validations['exclusive_maximum']):
- raise ApiValueError(
- "Invalid value for `%s`, must be a value less than `%s`" % (
- input_variable_path[0],
- current_validations['exclusive_maximum']
- )
- )
-
- if (is_json_validation_enabled('maximum', configuration) and
- 'inclusive_maximum' in current_validations and
- max_val > current_validations['inclusive_maximum']):
- raise ApiValueError(
- "Invalid value for `%s`, must be a value less than or equal to "
- "`%s`" % (
- input_variable_path[0],
- current_validations['inclusive_maximum']
- )
- )
-
- if (is_json_validation_enabled('exclusiveMinimum', configuration) and
- 'exclusive_minimum' in current_validations and
- min_val <= current_validations['exclusive_minimum']):
- raise ApiValueError(
- "Invalid value for `%s`, must be a value greater than `%s`" %
- (
- input_variable_path[0],
- current_validations['exclusive_maximum']
- )
- )
-
- if (is_json_validation_enabled('minimum', configuration) and
- 'inclusive_minimum' in current_validations and
- min_val < current_validations['inclusive_minimum']):
- raise ApiValueError(
- "Invalid value for `%s`, must be a value greater than or equal "
- "to `%s`" % (
- input_variable_path[0],
- current_validations['inclusive_minimum']
- )
- )
- flags = current_validations.get('regex', {}).get('flags', 0)
- if (is_json_validation_enabled('pattern', configuration) and
- 'regex' in current_validations and
- not re.search(current_validations['regex']['pattern'],
- input_values, flags=flags)):
- err_msg = r"Invalid value for `%s`, must match regular expression `%s`" % (
- input_variable_path[0],
- current_validations['regex']['pattern']
- )
- if flags != 0:
- # Don't print the regex flags if the flags are not
- # specified in the OAS document.
- err_msg = r"%s with flags=`%s`" % (err_msg, flags)
- raise ApiValueError(err_msg)
-
-
-def order_response_types(required_types):
- """Returns the required types sorted in coercion order
-
- Args:
- required_types (list/tuple): collection of classes or instance of
- list or dict with class information inside it.
-
- Returns:
- (list): coercion order sorted collection of classes or instance
- of list or dict with class information inside it.
- """
-
- def index_getter(class_or_instance):
- if isinstance(class_or_instance, list):
- return COERCION_INDEX_BY_TYPE[list]
- elif isinstance(class_or_instance, dict):
- return COERCION_INDEX_BY_TYPE[dict]
- elif (inspect.isclass(class_or_instance)
- and issubclass(class_or_instance, ModelComposed)):
- return COERCION_INDEX_BY_TYPE[ModelComposed]
- elif (inspect.isclass(class_or_instance)
- and issubclass(class_or_instance, ModelNormal)):
- return COERCION_INDEX_BY_TYPE[ModelNormal]
- elif (inspect.isclass(class_or_instance)
- and issubclass(class_or_instance, ModelSimple)):
- return COERCION_INDEX_BY_TYPE[ModelSimple]
- elif class_or_instance in COERCION_INDEX_BY_TYPE:
- return COERCION_INDEX_BY_TYPE[class_or_instance]
- raise ApiValueError("Unsupported type: %s" % class_or_instance)
-
- sorted_types = sorted(
- required_types,
- key=lambda class_or_instance: index_getter(class_or_instance)
- )
- return sorted_types
-
-
-def remove_uncoercible(required_types_classes, current_item, spec_property_naming,
- must_convert=True):
- """Only keeps the type conversions that are possible
-
- Args:
- required_types_classes (tuple): tuple of classes that are required
- these should be ordered by COERCION_INDEX_BY_TYPE
- spec_property_naming (bool): True if the variable names in the input
- data are serialized names as specified in the OpenAPI document.
- False if the variables names in the input data are python
- variable names in PEP-8 snake case.
- current_item (any): the current item (input data) to be converted
-
- Keyword Args:
- must_convert (bool): if True the item to convert is of the wrong
- type and we want a big list of coercibles
- if False, we want a limited list of coercibles
-
- Returns:
- (list): the remaining coercible required types, classes only
- """
- current_type_simple = get_simple_class(current_item)
-
- results_classes = []
- for required_type_class in required_types_classes:
- # convert our models to OpenApiModel
- required_type_class_simplified = required_type_class
- if isinstance(required_type_class_simplified, type):
- if issubclass(required_type_class_simplified, ModelComposed):
- required_type_class_simplified = ModelComposed
- elif issubclass(required_type_class_simplified, ModelNormal):
- required_type_class_simplified = ModelNormal
- elif issubclass(required_type_class_simplified, ModelSimple):
- required_type_class_simplified = ModelSimple
-
- if required_type_class_simplified == current_type_simple:
- # don't consider converting to one's own class
- continue
-
- class_pair = (current_type_simple, required_type_class_simplified)
- if must_convert and class_pair in COERCIBLE_TYPE_PAIRS[spec_property_naming]:
- results_classes.append(required_type_class)
- elif class_pair in UPCONVERSION_TYPE_PAIRS:
- results_classes.append(required_type_class)
- return results_classes
-
-def get_discriminated_classes(cls):
- """
- Returns all the classes that a discriminator converts to
- TODO: lru_cache this
- """
- possible_classes = []
- key = list(cls.discriminator.keys())[0]
- if is_type_nullable(cls):
- possible_classes.append(cls)
- for discr_cls in cls.discriminator[key].values():
- if hasattr(discr_cls, 'discriminator') and discr_cls.discriminator is not None:
- possible_classes.extend(get_discriminated_classes(discr_cls))
- else:
- possible_classes.append(discr_cls)
- return possible_classes
-
-
-def get_possible_classes(cls, from_server_context):
- # TODO: lru_cache this
- possible_classes = [cls]
- if from_server_context:
- return possible_classes
- if hasattr(cls, 'discriminator') and cls.discriminator is not None:
- possible_classes = []
- possible_classes.extend(get_discriminated_classes(cls))
- elif issubclass(cls, ModelComposed):
- possible_classes.extend(composed_model_input_classes(cls))
- return possible_classes
-
-
-def get_required_type_classes(required_types_mixed, spec_property_naming):
- """Converts the tuple required_types into a tuple and a dict described
- below
-
- Args:
- required_types_mixed (tuple/list): will contain either classes or
- instance of list or dict
- spec_property_naming (bool): if True these values came from the
- server, and we use the data types in our endpoints.
- If False, we are client side and we need to include
- oneOf and discriminator classes inside the data types in our endpoints
-
- Returns:
- (valid_classes, dict_valid_class_to_child_types_mixed):
- valid_classes (tuple): the valid classes that the current item
- should be
- dict_valid_class_to_child_types_mixed (dict):
- valid_class (class): this is the key
- child_types_mixed (list/dict/tuple): describes the valid child
- types
- """
- valid_classes = []
- child_req_types_by_current_type = {}
- for required_type in required_types_mixed:
- if isinstance(required_type, list):
- valid_classes.append(list)
- child_req_types_by_current_type[list] = required_type
- elif isinstance(required_type, tuple):
- valid_classes.append(tuple)
- child_req_types_by_current_type[tuple] = required_type
- elif isinstance(required_type, dict):
- valid_classes.append(dict)
- child_req_types_by_current_type[dict] = required_type[str]
- else:
- valid_classes.extend(get_possible_classes(required_type, spec_property_naming))
- return tuple(valid_classes), child_req_types_by_current_type
-
-
-def change_keys_js_to_python(input_dict, model_class):
- """
- Converts from javascript_key keys in the input_dict to python_keys in
- the output dict using the mapping in model_class.
- If the input_dict contains a key which does not declared in the model_class,
- the key is added to the output dict as is. The assumption is the model_class
- may have undeclared properties (additionalProperties attribute in the OAS
- document).
- """
-
- if getattr(model_class, 'attribute_map', None) is None:
- return input_dict
- output_dict = {}
- reversed_attr_map = {value: key for key, value in
- model_class.attribute_map.items()}
- for javascript_key, value in input_dict.items():
- python_key = reversed_attr_map.get(javascript_key)
- if python_key is None:
- # if the key is unknown, it is in error or it is an
- # additionalProperties variable
- python_key = javascript_key
- output_dict[python_key] = value
- return output_dict
-
-
-def get_type_error(var_value, path_to_item, valid_classes, key_type=False):
- error_msg = type_error_message(
- var_name=path_to_item[-1],
- var_value=var_value,
- valid_classes=valid_classes,
- key_type=key_type
- )
- return ApiTypeError(
- error_msg,
- path_to_item=path_to_item,
- valid_classes=valid_classes,
- key_type=key_type
- )
-
-
-def deserialize_primitive(data, klass, path_to_item):
- """Deserializes string to primitive type.
-
- :param data: str/int/float
- :param klass: str/class the class to convert to
-
- :return: int, float, str, bool, date, datetime
- """
- additional_message = ""
- try:
- if klass in {datetime, date}:
- additional_message = (
- "If you need your parameter to have a fallback "
- "string value, please set its type as `type: {}` in your "
- "spec. That allows the value to be any type. "
- )
- if klass == datetime:
- if len(data) < 8:
- raise ValueError("This is not a datetime")
- # The string should be in iso8601 datetime format.
- parsed_datetime = parse(data)
- date_only = (
- parsed_datetime.hour == 0 and
- parsed_datetime.minute == 0 and
- parsed_datetime.second == 0 and
- parsed_datetime.tzinfo is None and
- 8 <= len(data) <= 10
- )
- if date_only:
- raise ValueError("This is a date, not a datetime")
- return parsed_datetime
- elif klass == date:
- if len(data) < 8:
- raise ValueError("This is not a date")
- return parse(data).date()
- else:
- converted_value = klass(data)
- if isinstance(data, str) and klass == float:
- if str(converted_value) != data:
- # '7' -> 7.0 -> '7.0' != '7'
- raise ValueError('This is not a float')
- return converted_value
- except (OverflowError, ValueError) as ex:
- # parse can raise OverflowError
- raise ApiValueError(
- "{0}Failed to parse {1} as {2}".format(
- additional_message, repr(data), klass.__name__
- ),
- path_to_item=path_to_item
- ) from ex
-
-
-def get_discriminator_class(model_class,
- discr_name,
- discr_value, cls_visited):
- """Returns the child class specified by the discriminator.
-
- Args:
- model_class (OpenApiModel): the model class.
- discr_name (string): the name of the discriminator property.
- discr_value (any): the discriminator value.
- cls_visited (list): list of model classes that have been visited.
- Used to determine the discriminator class without
- visiting circular references indefinitely.
-
- Returns:
- used_model_class (class/None): the chosen child class that will be used
- to deserialize the data, for example dog.Dog.
- If a class is not found, None is returned.
- """
-
- if model_class in cls_visited:
- # The class has already been visited and no suitable class was found.
- return None
- cls_visited.append(model_class)
- used_model_class = None
- if discr_name in model_class.discriminator:
- class_name_to_discr_class = model_class.discriminator[discr_name]
- used_model_class = class_name_to_discr_class.get(discr_value)
- if used_model_class is None:
- # We didn't find a discriminated class in class_name_to_discr_class.
- # So look in the ancestor or descendant discriminators
- # The discriminator mapping may exist in a descendant (anyOf, oneOf)
- # or ancestor (allOf).
- # Ancestor example: in the GrandparentAnimal -> ParentPet -> ChildCat
- # hierarchy, the discriminator mappings may be defined at any level
- # in the hierarchy.
- # Descendant example: mammal -> whale/zebra/Pig -> BasquePig/DanishPig
- # if we try to make BasquePig from mammal, we need to travel through
- # the oneOf descendant discriminators to find BasquePig
- descendant_classes = model_class._composed_schemas.get('oneOf', ()) + \
- model_class._composed_schemas.get('anyOf', ())
- ancestor_classes = model_class._composed_schemas.get('allOf', ())
- possible_classes = descendant_classes + ancestor_classes
- for cls in possible_classes:
- # Check if the schema has inherited discriminators.
- if hasattr(cls, 'discriminator') and cls.discriminator is not None:
- used_model_class = get_discriminator_class(
- cls, discr_name, discr_value, cls_visited)
- if used_model_class is not None:
- return used_model_class
- return used_model_class
-
-
-def deserialize_model(model_data, model_class, path_to_item, check_type,
- configuration, spec_property_naming):
- """Deserializes model_data to model instance.
-
- Args:
- model_data (int/str/float/bool/none_type/list/dict): data to instantiate the model
- model_class (OpenApiModel): the model class
- path_to_item (list): path to the model in the received data
- check_type (bool): whether to check the data tupe for the values in
- the model
- configuration (Configuration): the instance to use to convert files
- spec_property_naming (bool): True if the variable names in the input
- data are serialized names as specified in the OpenAPI document.
- False if the variables names in the input data are python
- variable names in PEP-8 snake case.
-
- Returns:
- model instance
-
- Raise:
- ApiTypeError
- ApiValueError
- ApiKeyError
- """
-
- kw_args = dict(_check_type=check_type,
- _path_to_item=path_to_item,
- _configuration=configuration,
- _spec_property_naming=spec_property_naming)
-
- if issubclass(model_class, ModelSimple):
- return model_class._new_from_openapi_data(model_data, **kw_args)
- elif isinstance(model_data, list):
- return model_class._new_from_openapi_data(*model_data, **kw_args)
- if isinstance(model_data, dict):
- kw_args.update(model_data)
- return model_class._new_from_openapi_data(**kw_args)
- elif isinstance(model_data, PRIMITIVE_TYPES):
- return model_class._new_from_openapi_data(model_data, **kw_args)
-
-
-def deserialize_file(response_data, configuration, content_disposition=None):
- """Deserializes body to file
-
- Saves response body into a file in a temporary folder,
- using the filename from the `Content-Disposition` header if provided.
-
- Args:
- param response_data (str): the file data to write
- configuration (Configuration): the instance to use to convert files
-
- Keyword Args:
- content_disposition (str): the value of the Content-Disposition
- header
-
- Returns:
- (file_type): the deserialized file which is open
- The user is responsible for closing and reading the file
- """
- fd, path = tempfile.mkstemp(dir=configuration.temp_folder_path)
- os.close(fd)
- os.remove(path)
-
- if content_disposition:
- filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
- content_disposition).group(1)
- path = os.path.join(os.path.dirname(path), filename)
-
- with open(path, "wb") as f:
- if isinstance(response_data, str):
- # change str to bytes so we can write it
- response_data = response_data.encode('utf-8')
- f.write(response_data)
-
- f = open(path, "rb")
- return f
-
-
-def attempt_convert_item(input_value, valid_classes, path_to_item,
- configuration, spec_property_naming, key_type=False,
- must_convert=False, check_type=True):
- """
- Args:
- input_value (any): the data to convert
- valid_classes (any): the classes that are valid
- path_to_item (list): the path to the item to convert
- configuration (Configuration): the instance to use to convert files
- spec_property_naming (bool): True if the variable names in the input
- data are serialized names as specified in the OpenAPI document.
- False if the variables names in the input data are python
- variable names in PEP-8 snake case.
- key_type (bool): if True we need to convert a key type (not supported)
- must_convert (bool): if True we must convert
- check_type (bool): if True we check the type or the returned data in
- ModelComposed/ModelNormal/ModelSimple instances
-
- Returns:
- instance (any) the fixed item
-
- Raises:
- ApiTypeError
- ApiValueError
- ApiKeyError
- """
- valid_classes_ordered = order_response_types(valid_classes)
- valid_classes_coercible = remove_uncoercible(
- valid_classes_ordered, input_value, spec_property_naming)
- if not valid_classes_coercible or key_type:
- # we do not handle keytype errors, json will take care
- # of this for us
- if configuration is None or not configuration.discard_unknown_keys:
- raise get_type_error(input_value, path_to_item, valid_classes,
- key_type=key_type)
- for valid_class in valid_classes_coercible:
- try:
- if issubclass(valid_class, OpenApiModel):
- return deserialize_model(input_value, valid_class,
- path_to_item, check_type,
- configuration, spec_property_naming)
- elif valid_class == file_type:
- return deserialize_file(input_value, configuration)
- return deserialize_primitive(input_value, valid_class,
- path_to_item)
- except (ApiTypeError, ApiValueError, ApiKeyError) as conversion_exc:
- if must_convert:
- raise conversion_exc
- # if we have conversion errors when must_convert == False
- # we ignore the exception and move on to the next class
- continue
- # we were unable to convert, must_convert == False
- return input_value
-
-
-def is_type_nullable(input_type):
- """
- Returns true if None is an allowed value for the specified input_type.
-
- A type is nullable if at least one of the following conditions is true:
- 1. The OAS 'nullable' attribute has been specified,
- 1. The type is the 'null' type,
- 1. The type is a anyOf/oneOf composed schema, and a child schema is
- the 'null' type.
- Args:
- input_type (type): the class of the input_value that we are
- checking
- Returns:
- bool
- """
- if input_type is none_type:
- return True
- if issubclass(input_type, OpenApiModel) and input_type._nullable:
- return True
- if issubclass(input_type, ModelComposed):
- # If oneOf/anyOf, check if the 'null' type is one of the allowed types.
- for t in input_type._composed_schemas.get('oneOf', ()):
- if is_type_nullable(t): return True
- for t in input_type._composed_schemas.get('anyOf', ()):
- if is_type_nullable(t): return True
- return False
-
-
-def is_valid_type(input_class_simple, valid_classes):
- """
- Args:
- input_class_simple (class): the class of the input_value that we are
- checking
- valid_classes (tuple): the valid classes that the current item
- should be
- Returns:
- bool
- """
- if issubclass(input_class_simple, OpenApiModel) and \
- valid_classes == (bool, date, datetime, dict, float, int, list, str, none_type,):
- return True
- valid_type = input_class_simple in valid_classes
- if not valid_type and (
- issubclass(input_class_simple, OpenApiModel) or
- input_class_simple is none_type):
- for valid_class in valid_classes:
- if input_class_simple is none_type and is_type_nullable(valid_class):
- # Schema is oneOf/anyOf and the 'null' type is one of the allowed types.
- return True
- if not (issubclass(valid_class, OpenApiModel) and valid_class.discriminator):
- continue
- discr_propertyname_py = list(valid_class.discriminator.keys())[0]
- discriminator_classes = (
- valid_class.discriminator[discr_propertyname_py].values()
- )
- valid_type = is_valid_type(input_class_simple, discriminator_classes)
- if valid_type:
- return True
- return valid_type
-
-
-def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
- spec_property_naming, _check_type, configuration=None):
- """Raises a TypeError is there is a problem, otherwise returns value
-
- Args:
- input_value (any): the data to validate/convert
- required_types_mixed (list/dict/tuple): A list of
- valid classes, or a list tuples of valid classes, or a dict where
- the value is a tuple of value classes
- path_to_item: (list) the path to the data being validated
- this stores a list of keys or indices to get to the data being
- validated
- spec_property_naming (bool): True if the variable names in the input
- data are serialized names as specified in the OpenAPI document.
- False if the variables names in the input data are python
- variable names in PEP-8 snake case.
- _check_type: (boolean) if true, type will be checked and conversion
- will be attempted.
- configuration: (Configuration): the configuration class to use
- when converting file_type items.
- If passed, conversion will be attempted when possible
- If not passed, no conversions will be attempted and
- exceptions will be raised
-
- Returns:
- the correctly typed value
-
- Raises:
- ApiTypeError
- """
- results = get_required_type_classes(required_types_mixed, spec_property_naming)
- valid_classes, child_req_types_by_current_type = results
-
- input_class_simple = get_simple_class(input_value)
- valid_type = is_valid_type(input_class_simple, valid_classes)
- if not valid_type:
- if configuration:
- # if input_value is not valid_type try to convert it
- converted_instance = attempt_convert_item(
- input_value,
- valid_classes,
- path_to_item,
- configuration,
- spec_property_naming,
- key_type=False,
- must_convert=True,
- check_type=_check_type
- )
- return converted_instance
- else:
- raise get_type_error(input_value, path_to_item, valid_classes,
- key_type=False)
-
- # input_value's type is in valid_classes
- if len(valid_classes) > 1 and configuration:
- # there are valid classes which are not the current class
- valid_classes_coercible = remove_uncoercible(
- valid_classes, input_value, spec_property_naming, must_convert=False)
- if valid_classes_coercible:
- converted_instance = attempt_convert_item(
- input_value,
- valid_classes_coercible,
- path_to_item,
- configuration,
- spec_property_naming,
- key_type=False,
- must_convert=False,
- check_type=_check_type
- )
- return converted_instance
-
- if child_req_types_by_current_type == {}:
- # all types are of the required types and there are no more inner
- # variables left to look at
- return input_value
- inner_required_types = child_req_types_by_current_type.get(
- type(input_value)
- )
- if inner_required_types is None:
- # for this type, there are not more inner variables left to look at
- return input_value
- if isinstance(input_value, list):
- if input_value == []:
- # allow an empty list
- return input_value
- for index, inner_value in enumerate(input_value):
- inner_path = list(path_to_item)
- inner_path.append(index)
- input_value[index] = validate_and_convert_types(
- inner_value,
- inner_required_types,
- inner_path,
- spec_property_naming,
- _check_type,
- configuration=configuration
- )
- elif isinstance(input_value, dict):
- if input_value == {}:
- # allow an empty dict
- return input_value
- for inner_key, inner_val in input_value.items():
- inner_path = list(path_to_item)
- inner_path.append(inner_key)
- if get_simple_class(inner_key) != str:
- raise get_type_error(inner_key, inner_path, valid_classes,
- key_type=True)
- input_value[inner_key] = validate_and_convert_types(
- inner_val,
- inner_required_types,
- inner_path,
- spec_property_naming,
- _check_type,
- configuration=configuration
- )
- return input_value
-
-
-def model_to_dict(model_instance, serialize=True):
- """Returns the model properties as a dict
-
- Args:
- model_instance (one of your model instances): the model instance that
- will be converted to a dict.
-
- Keyword Args:
- serialize (bool): if True, the keys in the dict will be values from
- attribute_map
- """
- result = {}
-
- model_instances = [model_instance]
- if model_instance._composed_schemas:
- model_instances.extend(model_instance._composed_instances)
- seen_json_attribute_names = set()
- used_fallback_python_attribute_names = set()
- py_to_json_map = {}
- for model_instance in model_instances:
- for attr, value in model_instance._data_store.items():
- if serialize:
- # we use get here because additional property key names do not
- # exist in attribute_map
- try:
- attr = model_instance.attribute_map[attr]
- py_to_json_map.update(model_instance.attribute_map)
- seen_json_attribute_names.add(attr)
- except KeyError:
- used_fallback_python_attribute_names.add(attr)
- if isinstance(value, list):
- if not value:
- # empty list or None
- result[attr] = value
- else:
- res = []
- for v in value:
- if isinstance(v, PRIMITIVE_TYPES) or v is None:
- res.append(v)
- elif isinstance(v, ModelSimple):
- res.append(v.value)
- else:
- res.append(model_to_dict(v, serialize=serialize))
- result[attr] = res
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0],
- model_to_dict(item[1], serialize=serialize))
- if hasattr(item[1], '_data_store') else item,
- value.items()
- ))
- elif isinstance(value, ModelSimple):
- result[attr] = value.value
- elif hasattr(value, '_data_store'):
- result[attr] = model_to_dict(value, serialize=serialize)
- else:
- result[attr] = value
- if serialize:
- for python_key in used_fallback_python_attribute_names:
- json_key = py_to_json_map.get(python_key)
- if json_key is None:
- continue
- if python_key == json_key:
- continue
- json_key_assigned_no_need_for_python_key = json_key in seen_json_attribute_names
- if json_key_assigned_no_need_for_python_key:
- del result[python_key]
-
- return result
-
-
-def type_error_message(var_value=None, var_name=None, valid_classes=None,
- key_type=None):
- """
- Keyword Args:
- var_value (any): the variable which has the type_error
- var_name (str): the name of the variable which has the typ error
- valid_classes (tuple): the accepted classes for current_item's
- value
- key_type (bool): False if our value is a value in a dict
- True if it is a key in a dict
- False if our item is an item in a list
- """
- key_or_value = 'value'
- if key_type:
- key_or_value = 'key'
- valid_classes_phrase = get_valid_classes_phrase(valid_classes)
- msg = (
- "Invalid type for variable '{0}'. Required {1} type {2} and "
- "passed type was {3}".format(
- var_name,
- key_or_value,
- valid_classes_phrase,
- type(var_value).__name__,
- )
- )
- return msg
-
-
-def get_valid_classes_phrase(input_classes):
- """Returns a string phrase describing what types are allowed
- """
- all_classes = list(input_classes)
- all_classes = sorted(all_classes, key=lambda cls: cls.__name__)
- all_class_names = [cls.__name__ for cls in all_classes]
- if len(all_class_names) == 1:
- return 'is {0}'.format(all_class_names[0])
- return "is one of [{0}]".format(", ".join(all_class_names))
-
-
-def get_allof_instances(self, model_args, constant_args):
- """
- Args:
- self: the class we are handling
- model_args (dict): var_name to var_value
- used to make instances
- constant_args (dict):
- metadata arguments:
- _check_type
- _path_to_item
- _spec_property_naming
- _configuration
- _visited_composed_classes
-
- Returns
- composed_instances (list)
- """
- composed_instances = []
- for allof_class in self._composed_schemas['allOf']:
-
- try:
- if constant_args.get('_spec_property_naming'):
- allof_instance = allof_class._from_openapi_data(**model_args, **constant_args)
- else:
- allof_instance = allof_class(**model_args, **constant_args)
- composed_instances.append(allof_instance)
- except Exception as ex:
- raise ApiValueError(
- "Invalid inputs given to generate an instance of '%s'. The "
- "input data was invalid for the allOf schema '%s' in the composed "
- "schema '%s'. Error=%s" % (
- allof_class.__name__,
- allof_class.__name__,
- self.__class__.__name__,
- str(ex)
- )
- ) from ex
- return composed_instances
-
-
-def get_oneof_instance(cls, model_kwargs, constant_kwargs, model_arg=None):
- """
- Find the oneOf schema that matches the input data (e.g. payload).
- If exactly one schema matches the input data, an instance of that schema
- is returned.
- If zero or more than one schema match the input data, an exception is raised.
- In OAS 3.x, the payload MUST, by validation, match exactly one of the
- schemas described by oneOf.
-
- Args:
- cls: the class we are handling
- model_kwargs (dict): var_name to var_value
- The input data, e.g. the payload that must match a oneOf schema
- in the OpenAPI document.
- constant_kwargs (dict): var_name to var_value
- args that every model requires, including configuration, server
- and path to item.
-
- Kwargs:
- model_arg: (int, float, bool, str, date, datetime, ModelSimple, None):
- the value to assign to a primitive class or ModelSimple class
- Notes:
- - this is only passed in when oneOf includes types which are not object
- - None is used to suppress handling of model_arg, nullable models are handled in __new__
-
- Returns
- oneof_instance (instance)
- """
- if len(cls._composed_schemas['oneOf']) == 0:
- return None
-
- oneof_instances = []
- # Iterate over each oneOf schema and determine if the input data
- # matches the oneOf schemas.
- for oneof_class in cls._composed_schemas['oneOf']:
- # The composed oneOf schema allows the 'null' type and the input data
- # is the null value. This is a OAS >= 3.1 feature.
- if oneof_class is none_type:
- # skip none_types because we are deserializing dict data.
- # none_type deserialization is handled in the __new__ method
- continue
-
- single_value_input = allows_single_value_input(oneof_class)
-
- try:
- if not single_value_input:
- if constant_kwargs.get('_spec_property_naming'):
- oneof_instance = oneof_class._from_openapi_data(**model_kwargs, **constant_kwargs)
- else:
- oneof_instance = oneof_class(**model_kwargs, **constant_kwargs)
- else:
- if issubclass(oneof_class, ModelSimple):
- if constant_kwargs.get('_spec_property_naming'):
- oneof_instance = oneof_class._from_openapi_data(model_arg, **constant_kwargs)
- else:
- oneof_instance = oneof_class(model_arg, **constant_kwargs)
- elif oneof_class in PRIMITIVE_TYPES:
- oneof_instance = validate_and_convert_types(
- model_arg,
- (oneof_class,),
- constant_kwargs['_path_to_item'],
- constant_kwargs['_spec_property_naming'],
- constant_kwargs['_check_type'],
- configuration=constant_kwargs['_configuration']
- )
- oneof_instances.append(oneof_instance)
- except Exception:
- pass
- if len(oneof_instances) == 0:
- raise ApiValueError(
- "Invalid inputs given to generate an instance of %s. None "
- "of the oneOf schemas matched the input data." %
- cls.__name__
- )
- elif len(oneof_instances) > 1:
- raise ApiValueError(
- "Invalid inputs given to generate an instance of %s. Multiple "
- "oneOf schemas matched the inputs, but a max of one is allowed." %
- cls.__name__
- )
- return oneof_instances[0]
-
-
-def get_anyof_instances(self, model_args, constant_args):
- """
- Args:
- self: the class we are handling
- model_args (dict): var_name to var_value
- The input data, e.g. the payload that must match at least one
- anyOf child schema in the OpenAPI document.
- constant_args (dict): var_name to var_value
- args that every model requires, including configuration, server
- and path to item.
-
- Returns
- anyof_instances (list)
- """
- anyof_instances = []
- if len(self._composed_schemas['anyOf']) == 0:
- return anyof_instances
-
- for anyof_class in self._composed_schemas['anyOf']:
- # The composed oneOf schema allows the 'null' type and the input data
- # is the null value. This is a OAS >= 3.1 feature.
- if anyof_class is none_type:
- # skip none_types because we are deserializing dict data.
- # none_type deserialization is handled in the __new__ method
- continue
-
- try:
- if constant_args.get('_spec_property_naming'):
- anyof_instance = anyof_class._from_openapi_data(**model_args, **constant_args)
- else:
- anyof_instance = anyof_class(**model_args, **constant_args)
- anyof_instances.append(anyof_instance)
- except Exception:
- pass
- if len(anyof_instances) == 0:
- raise ApiValueError(
- "Invalid inputs given to generate an instance of %s. None of the "
- "anyOf schemas matched the inputs." %
- self.__class__.__name__
- )
- return anyof_instances
-
-
-def get_discarded_args(self, composed_instances, model_args):
- """
- Gathers the args that were discarded by configuration.discard_unknown_keys
- """
- model_arg_keys = model_args.keys()
- discarded_args = set()
- # arguments passed to self were already converted to python names
- # before __init__ was called
- for instance in composed_instances:
- if instance.__class__ in self._composed_schemas['allOf']:
- try:
- keys = instance.to_dict().keys()
- discarded_keys = model_args - keys
- discarded_args.update(discarded_keys)
- except Exception:
- # allOf integer schema will throw exception
- pass
- else:
- try:
- all_keys = set(model_to_dict(instance, serialize=False).keys())
- js_keys = model_to_dict(instance, serialize=True).keys()
- all_keys.update(js_keys)
- discarded_keys = model_arg_keys - all_keys
- discarded_args.update(discarded_keys)
- except Exception:
- # allOf integer schema will throw exception
- pass
- return discarded_args
-
-
-def validate_get_composed_info(constant_args, model_args, self):
- """
- For composed schemas, generate schema instances for
- all schemas in the oneOf/anyOf/allOf definition. If additional
- properties are allowed, also assign those properties on
- all matched schemas that contain additionalProperties.
- Openapi schemas are python classes.
-
- Exceptions are raised if:
- - 0 or > 1 oneOf schema matches the model_args input data
- - no anyOf schema matches the model_args input data
- - any of the allOf schemas do not match the model_args input data
-
- Args:
- constant_args (dict): these are the args that every model requires
- model_args (dict): these are the required and optional spec args that
- were passed in to make this model
- self (class): the class that we are instantiating
- This class contains self._composed_schemas
-
- Returns:
- composed_info (list): length three
- composed_instances (list): the composed instances which are not
- self
- var_name_to_model_instances (dict): a dict going from var_name
- to the model_instance which holds that var_name
- the model_instance may be self or an instance of one of the
- classes in self.composed_instances()
- additional_properties_model_instances (list): a list of the
- model instances which have the property
- additional_properties_type. This list can include self
- """
- # create composed_instances
- composed_instances = []
- allof_instances = get_allof_instances(self, model_args, constant_args)
- composed_instances.extend(allof_instances)
- oneof_instance = get_oneof_instance(self.__class__, model_args, constant_args)
- if oneof_instance is not None:
- composed_instances.append(oneof_instance)
- anyof_instances = get_anyof_instances(self, model_args, constant_args)
- composed_instances.extend(anyof_instances)
- """
- set additional_properties_model_instances
- additional properties must be evaluated at the schema level
- so self's additional properties are most important
- If self is a composed schema with:
- - no properties defined in self
- - additionalProperties: False
- Then for object payloads every property is an additional property
- and they are not allowed, so only empty dict is allowed
-
- Properties must be set on all matching schemas
- so when a property is assigned toa composed instance, it must be set on all
- composed instances regardless of additionalProperties presence
- keeping it to prevent breaking changes in v5.0.1
- TODO remove cls._additional_properties_model_instances in 6.0.0
- """
- additional_properties_model_instances = []
- if self.additional_properties_type is not None:
- additional_properties_model_instances = [self]
-
- """
- no need to set properties on self in here, they will be set in __init__
- By here all composed schema oneOf/anyOf/allOf instances have their properties set using
- model_args
- """
- discarded_args = get_discarded_args(self, composed_instances, model_args)
-
- # map variable names to composed_instances
- var_name_to_model_instances = {}
- for prop_name in model_args:
- if prop_name not in discarded_args:
- var_name_to_model_instances[prop_name] = [self] + composed_instances
-
- return [
- composed_instances,
- var_name_to_model_instances,
- additional_properties_model_instances,
- discarded_args
- ]
diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py
deleted file mode 100644
index af10017..0000000
--- a/calcasa-api/models/__init__.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# flake8: noqa
-
-# import all models into this package
-# if you have many models here with many references from one model to another this may
-# raise a RecursionError
-# to avoid this, import only the models that you directly need like:
-# from from calcasa-api.model.pet import Pet
-# or import this package, but before doing it, use:
-# import sys
-# sys.setrecursionlimit(n)
-
-from calcasa-api.model.aanvraagdoel import Aanvraagdoel
-from calcasa-api.model.adres import Adres
-from calcasa-api.model.adres_info import AdresInfo
-from calcasa-api.model.bestemmingsdata import Bestemmingsdata
-from calcasa-api.model.bodem_status_type import BodemStatusType
-from calcasa-api.model.bodemdata import Bodemdata
-from calcasa-api.model.business_rules_code import BusinessRulesCode
-from calcasa-api.model.business_rules_problem_details import BusinessRulesProblemDetails
-from calcasa-api.model.callback import Callback
-from calcasa-api.model.cbs_indeling import CbsIndeling
-from calcasa-api.model.energielabel import Energielabel
-from calcasa-api.model.factuur import Factuur
-from calcasa-api.model.foto import Foto
-from calcasa-api.model.fundering_data_bron import FunderingDataBron
-from calcasa-api.model.fundering_herstel_type import FunderingHerstelType
-from calcasa-api.model.fundering_risico import FunderingRisico
-from calcasa-api.model.fundering_risico_label import FunderingRisicoLabel
-from calcasa-api.model.fundering_soort_bron import FunderingSoortBron
-from calcasa-api.model.fundering_type import FunderingType
-from calcasa-api.model.fundering_typering import FunderingTypering
-from calcasa-api.model.funderingdata import Funderingdata
-from calcasa-api.model.gebiedsdata import Gebiedsdata
-from calcasa-api.model.invalid_argument_problem_details import InvalidArgumentProblemDetails
-from calcasa-api.model.json_patch_document import JsonPatchDocument
-from calcasa-api.model.klantwaarde_type import KlantwaardeType
-from calcasa-api.model.kwartaal import Kwartaal
-from calcasa-api.model.modeldata import Modeldata
-from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
-from calcasa-api.model.notitie import Notitie
-from calcasa-api.model.notities import Notities
-from calcasa-api.model.objectdata import Objectdata
-from calcasa-api.model.omgevingsdata import Omgevingsdata
-from calcasa-api.model.operation import Operation
-from calcasa-api.model.operation_type import OperationType
-from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
-from calcasa-api.model.problem_details import ProblemDetails
-from calcasa-api.model.product_type import ProductType
-from calcasa-api.model.rapport import Rapport
-from calcasa-api.model.referentieobject import Referentieobject
-from calcasa-api.model.taxatiedata import Taxatiedata
-from calcasa-api.model.taxatiestatus import Taxatiestatus
-from calcasa-api.model.validation_problem_details import ValidationProblemDetails
-from calcasa-api.model.verkoop_bijzonderheden import VerkoopBijzonderheden
-from calcasa-api.model.vorige_verkoop import VorigeVerkoop
-from calcasa-api.model.waardering import Waardering
-from calcasa-api.model.waardering_input_parameters import WaarderingInputParameters
-from calcasa-api.model.waardering_ontwikkeling import WaarderingOntwikkeling
-from calcasa-api.model.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal
-from calcasa-api.model.waardering_status import WaarderingStatus
-from calcasa-api.model.waardering_webhook_payload import WaarderingWebhookPayload
-from calcasa-api.model.waardering_zoek_parameters import WaarderingZoekParameters
-from calcasa-api.model.woning_type import WoningType
diff --git a/calcasa-api/rest.py b/calcasa-api/rest.py
deleted file mode 100644
index 9a7eb1f..0000000
--- a/calcasa-api/rest.py
+++ /dev/null
@@ -1,358 +0,0 @@
-"""
- Copyright 2021 Calcasa B.V.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Calcasa Public API v0
-
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
-"""
-
-import io
-import json
-import logging
-import re
-import ssl
-from urllib.parse import urlencode
-from urllib.parse import urlparse
-from urllib.request import proxy_bypass_environment
-import urllib3
-import ipaddress
-
-from calcasa-api.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError
-
-
-logger = logging.getLogger(__name__)
-
-
-class RESTResponse(io.IOBase):
-
- def __init__(self, resp):
- self.urllib3_response = resp
- self.status = resp.status
- self.reason = resp.reason
- self.data = resp.data
-
- def getheaders(self):
- """Returns a dictionary of the response headers."""
- return self.urllib3_response.getheaders()
-
- def getheader(self, name, default=None):
- """Returns a given response header."""
- return self.urllib3_response.getheader(name, default)
-
-
-class RESTClientObject(object):
-
- def __init__(self, configuration, pools_size=4, maxsize=None):
- # urllib3.PoolManager will pass all kw parameters to connectionpool
- # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
- # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
- # maxsize is the number of requests to host that are allowed in parallel # noqa: E501
- # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
-
- # cert_reqs
- if configuration.verify_ssl:
- cert_reqs = ssl.CERT_REQUIRED
- else:
- cert_reqs = ssl.CERT_NONE
-
- addition_pool_args = {}
- if configuration.assert_hostname is not None:
- addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
-
- if configuration.retries is not None:
- addition_pool_args['retries'] = configuration.retries
-
- if configuration.socket_options is not None:
- addition_pool_args['socket_options'] = configuration.socket_options
-
- if maxsize is None:
- if configuration.connection_pool_maxsize is not None:
- maxsize = configuration.connection_pool_maxsize
- else:
- maxsize = 4
-
- # https pool manager
- if configuration.proxy and not should_bypass_proxies(configuration.host, no_proxy=configuration.no_proxy or ''):
- self.pool_manager = urllib3.ProxyManager(
- num_pools=pools_size,
- maxsize=maxsize,
- cert_reqs=cert_reqs,
- ca_certs=configuration.ssl_ca_cert,
- cert_file=configuration.cert_file,
- key_file=configuration.key_file,
- proxy_url=configuration.proxy,
- proxy_headers=configuration.proxy_headers,
- **addition_pool_args
- )
- else:
- self.pool_manager = urllib3.PoolManager(
- num_pools=pools_size,
- maxsize=maxsize,
- cert_reqs=cert_reqs,
- ca_certs=configuration.ssl_ca_cert,
- cert_file=configuration.cert_file,
- key_file=configuration.key_file,
- **addition_pool_args
- )
-
- def request(self, method, url, query_params=None, headers=None,
- body=None, post_params=None, _preload_content=True,
- _request_timeout=None):
- """Perform requests.
-
- :param method: http request method
- :param url: http request url
- :param query_params: query parameters in the url
- :param headers: http request headers
- :param body: request json body, for `application/json`
- :param post_params: request post parameters,
- `application/x-www-form-urlencoded`
- and `multipart/form-data`
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- """
- method = method.upper()
- assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
- 'PATCH', 'OPTIONS']
-
- if post_params and body:
- raise ApiValueError(
- "body parameter cannot be used with post_params parameter."
- )
-
- post_params = post_params or {}
- headers = headers or {}
-
- timeout = None
- if _request_timeout:
- if isinstance(_request_timeout, (int, float)): # noqa: E501,F821
- timeout = urllib3.Timeout(total=_request_timeout)
- elif (isinstance(_request_timeout, tuple) and
- len(_request_timeout) == 2):
- timeout = urllib3.Timeout(
- connect=_request_timeout[0], read=_request_timeout[1])
-
- try:
- # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
- if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
- # Only set a default Content-Type for POST, PUT, PATCH and OPTIONS requests
- if (method != 'DELETE') and ('Content-Type' not in headers):
- headers['Content-Type'] = 'application/json'
- if query_params:
- url += '?' + urlencode(query_params)
- if ('Content-Type' not in headers) or (re.search('json', headers['Content-Type'], re.IGNORECASE)):
- request_body = None
- if body is not None:
- request_body = json.dumps(body)
- r = self.pool_manager.request(
- method, url,
- body=request_body,
- preload_content=_preload_content,
- timeout=timeout,
- headers=headers)
- elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
- r = self.pool_manager.request(
- method, url,
- fields=post_params,
- encode_multipart=False,
- preload_content=_preload_content,
- timeout=timeout,
- headers=headers)
- elif headers['Content-Type'] == 'multipart/form-data':
- # must del headers['Content-Type'], or the correct
- # Content-Type which generated by urllib3 will be
- # overwritten.
- del headers['Content-Type']
- r = self.pool_manager.request(
- method, url,
- fields=post_params,
- encode_multipart=True,
- preload_content=_preload_content,
- timeout=timeout,
- headers=headers)
- # Pass a `string` parameter directly in the body to support
- # other content types than Json when `body` argument is
- # provided in serialized form
- elif isinstance(body, str) or isinstance(body, bytes):
- request_body = body
- r = self.pool_manager.request(
- method, url,
- body=request_body,
- preload_content=_preload_content,
- timeout=timeout,
- headers=headers)
- else:
- # Cannot generate the request from given parameters
- msg = """Cannot prepare a request message for provided
- arguments. Please check that your arguments match
- declared content type."""
- raise ApiException(status=0, reason=msg)
- # For `GET`, `HEAD`
- else:
- r = self.pool_manager.request(method, url,
- fields=query_params,
- preload_content=_preload_content,
- timeout=timeout,
- headers=headers)
- except urllib3.exceptions.SSLError as e:
- msg = "{0}\n{1}".format(type(e).__name__, str(e))
- raise ApiException(status=0, reason=msg)
-
- if _preload_content:
- r = RESTResponse(r)
-
- # log response body
- logger.debug("response body: %s", r.data)
-
- if not 200 <= r.status <= 299:
- if r.status == 401:
- raise UnauthorizedException(http_resp=r)
-
- if r.status == 403:
- raise ForbiddenException(http_resp=r)
-
- if r.status == 404:
- raise NotFoundException(http_resp=r)
-
- if 500 <= r.status <= 599:
- raise ServiceException(http_resp=r)
-
- raise ApiException(http_resp=r)
-
- return r
-
- def GET(self, url, headers=None, query_params=None, _preload_content=True,
- _request_timeout=None):
- return self.request("GET", url,
- headers=headers,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- query_params=query_params)
-
- def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
- _request_timeout=None):
- return self.request("HEAD", url,
- headers=headers,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- query_params=query_params)
-
- def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
- body=None, _preload_content=True, _request_timeout=None):
- return self.request("OPTIONS", url,
- headers=headers,
- query_params=query_params,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
-
- def DELETE(self, url, headers=None, query_params=None, body=None,
- _preload_content=True, _request_timeout=None):
- return self.request("DELETE", url,
- headers=headers,
- query_params=query_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
-
- def POST(self, url, headers=None, query_params=None, post_params=None,
- body=None, _preload_content=True, _request_timeout=None):
- return self.request("POST", url,
- headers=headers,
- query_params=query_params,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
-
- def PUT(self, url, headers=None, query_params=None, post_params=None,
- body=None, _preload_content=True, _request_timeout=None):
- return self.request("PUT", url,
- headers=headers,
- query_params=query_params,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
-
- def PATCH(self, url, headers=None, query_params=None, post_params=None,
- body=None, _preload_content=True, _request_timeout=None):
- return self.request("PATCH", url,
- headers=headers,
- query_params=query_params,
- post_params=post_params,
- _preload_content=_preload_content,
- _request_timeout=_request_timeout,
- body=body)
-
-# end of class RESTClientObject
-def is_ipv4(target):
- """ Test if IPv4 address or not
- """
- try:
- chk = ipaddress.IPv4Address(target)
- return True
- except ipaddress.AddressValueError:
- return False
-
-def in_ipv4net(target, net):
- """ Test if target belongs to given IPv4 network
- """
- try:
- nw = ipaddress.IPv4Network(net)
- ip = ipaddress.IPv4Address(target)
- if ip in nw:
- return True
- return False
- except ipaddress.AddressValueError:
- return False
- except ipaddress.NetmaskValueError:
- return False
-
-def should_bypass_proxies(url, no_proxy=None):
- """ Yet another requests.should_bypass_proxies
- Test if proxies should not be used for a particular url.
- """
-
- parsed = urlparse(url)
-
- # special cases
- if parsed.hostname in [None, '']:
- return True
-
- # special cases
- if no_proxy in [None , '']:
- return False
- if no_proxy == '*':
- return True
-
- no_proxy = no_proxy.lower().replace(' ','');
- entries = (
- host for host in no_proxy.split(',') if host
- )
-
- if is_ipv4(parsed.hostname):
- for item in entries:
- if in_ipv4net(parsed.hostname, item):
- return True
- return proxy_bypass_environment(parsed.hostname, {'no': no_proxy} )
diff --git a/calcasa/__init__.py b/calcasa/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py
new file mode 100644
index 0000000..f4f7cd1
--- /dev/null
+++ b/calcasa/api/__init__.py
@@ -0,0 +1,241 @@
+# coding: utf-8
+
+# flake8: noqa
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+__version__ = "1.4.0"
+
+# Define package exports
+__all__ = [
+ "AdressenApi",
+ "BestemmingsplannenApi",
+ "BodemApi",
+ "BuurtApi",
+ "CallbacksApi",
+ "ConfiguratieApi",
+ "FacturenApi",
+ "FotosApi",
+ "FunderingenApi",
+ "GeldverstrekkersApi",
+ "RapportenApi",
+ "WaarderingenApi",
+ "ApiResponse",
+ "ApiClient",
+ "Configuration",
+ "OpenApiException",
+ "ApiTypeError",
+ "ApiValueError",
+ "ApiKeyError",
+ "ApiAttributeError",
+ "ApiException",
+ "Aanvraagdoel",
+ "Adres",
+ "AdresInfo",
+ "Bestemmingsdata",
+ "BodemStatusType",
+ "Bodemdata",
+ "BusinessRulesCode",
+ "BusinessRulesProblemDetails",
+ "Callback",
+ "CallbackInschrijving",
+ "CbsIndeling",
+ "DeelWaarderingWebhookPayload",
+ "Energielabel",
+ "EnergielabelData",
+ "Factuur",
+ "Foto",
+ "FunderingDataBron",
+ "FunderingHerstelType",
+ "FunderingRisico",
+ "FunderingRisicoLabel",
+ "FunderingSoortBron",
+ "FunderingType",
+ "FunderingTypering",
+ "Funderingdata",
+ "Gebiedsdata",
+ "Geldverstrekker",
+ "InvalidArgumentProblemDetails",
+ "KlantwaardeType",
+ "Kwartaal",
+ "Modeldata",
+ "NotFoundProblemDetails",
+ "Notitie",
+ "Notities",
+ "Objectdata",
+ "Omgevingsdata",
+ "Operation",
+ "OperationType",
+ "PermissionsDeniedProblemDetails",
+ "ProblemDetails",
+ "ProductType",
+ "Rapport",
+ "Referentieobject",
+ "ResourceExhaustedProblemDetails",
+ "Taxatiedata",
+ "Taxatiestatus",
+ "UnauthorizedProblemDetails",
+ "ValidationProblemDetails",
+ "VerkoopBijzonderheden",
+ "VersionNames",
+ "VorigeVerkoop",
+ "Waardering",
+ "WaarderingInputParameters",
+ "WaarderingOntwikkeling",
+ "WaarderingOntwikkelingKwartaal",
+ "WaarderingStatus",
+ "WaarderingWebhookPayload",
+ "WaarderingZoekParameters",
+ "WebhookPayload",
+ "WoningType",
+]
+
+# import apis into sdk package
+from calcasa.api.api.adressen_api import AdressenApi as AdressenApi
+from calcasa.api.api.bestemmingsplannen_api import (
+ BestemmingsplannenApi as BestemmingsplannenApi,
+)
+from calcasa.api.api.bodem_api import BodemApi as BodemApi
+from calcasa.api.api.buurt_api import BuurtApi as BuurtApi
+from calcasa.api.api.callbacks_api import CallbacksApi as CallbacksApi
+from calcasa.api.api.configuratie_api import ConfiguratieApi as ConfiguratieApi
+from calcasa.api.api.facturen_api import FacturenApi as FacturenApi
+from calcasa.api.api.fotos_api import FotosApi as FotosApi
+from calcasa.api.api.funderingen_api import FunderingenApi as FunderingenApi
+from calcasa.api.api.geldverstrekkers_api import (
+ GeldverstrekkersApi as GeldverstrekkersApi,
+)
+from calcasa.api.api.rapporten_api import RapportenApi as RapportenApi
+from calcasa.api.api.waarderingen_api import WaarderingenApi as WaarderingenApi
+
+# import ApiClient
+from calcasa.api.api_response import ApiResponse as ApiResponse
+from calcasa.api.api_client import ApiClient as ApiClient
+from calcasa.api.configuration import Configuration as Configuration
+from calcasa.api.exceptions import OpenApiException as OpenApiException
+from calcasa.api.exceptions import ApiTypeError as ApiTypeError
+from calcasa.api.exceptions import ApiValueError as ApiValueError
+from calcasa.api.exceptions import ApiKeyError as ApiKeyError
+from calcasa.api.exceptions import ApiAttributeError as ApiAttributeError
+from calcasa.api.exceptions import ApiException as ApiException
+
+# import models into sdk package
+from calcasa.api.models.aanvraagdoel import Aanvraagdoel as Aanvraagdoel
+from calcasa.api.models.adres import Adres as Adres
+from calcasa.api.models.adres_info import AdresInfo as AdresInfo
+from calcasa.api.models.bestemmingsdata import Bestemmingsdata as Bestemmingsdata
+from calcasa.api.models.bodem_status_type import BodemStatusType as BodemStatusType
+from calcasa.api.models.bodemdata import Bodemdata as Bodemdata
+from calcasa.api.models.business_rules_code import (
+ BusinessRulesCode as BusinessRulesCode,
+)
+from calcasa.api.models.business_rules_problem_details import (
+ BusinessRulesProblemDetails as BusinessRulesProblemDetails,
+)
+from calcasa.api.models.callback import Callback as Callback
+from calcasa.api.models.callback_inschrijving import (
+ CallbackInschrijving as CallbackInschrijving,
+)
+from calcasa.api.models.cbs_indeling import CbsIndeling as CbsIndeling
+from calcasa.api.models.deel_waardering_webhook_payload import (
+ DeelWaarderingWebhookPayload as DeelWaarderingWebhookPayload,
+)
+from calcasa.api.models.energielabel import Energielabel as Energielabel
+from calcasa.api.models.energielabel_data import EnergielabelData as EnergielabelData
+from calcasa.api.models.factuur import Factuur as Factuur
+from calcasa.api.models.foto import Foto as Foto
+from calcasa.api.models.fundering_data_bron import (
+ FunderingDataBron as FunderingDataBron,
+)
+from calcasa.api.models.fundering_herstel_type import (
+ FunderingHerstelType as FunderingHerstelType,
+)
+from calcasa.api.models.fundering_risico import FunderingRisico as FunderingRisico
+from calcasa.api.models.fundering_risico_label import (
+ FunderingRisicoLabel as FunderingRisicoLabel,
+)
+from calcasa.api.models.fundering_soort_bron import (
+ FunderingSoortBron as FunderingSoortBron,
+)
+from calcasa.api.models.fundering_type import FunderingType as FunderingType
+from calcasa.api.models.fundering_typering import FunderingTypering as FunderingTypering
+from calcasa.api.models.funderingdata import Funderingdata as Funderingdata
+from calcasa.api.models.gebiedsdata import Gebiedsdata as Gebiedsdata
+from calcasa.api.models.geldverstrekker import Geldverstrekker as Geldverstrekker
+from calcasa.api.models.invalid_argument_problem_details import (
+ InvalidArgumentProblemDetails as InvalidArgumentProblemDetails,
+)
+from calcasa.api.models.klantwaarde_type import KlantwaardeType as KlantwaardeType
+from calcasa.api.models.kwartaal import Kwartaal as Kwartaal
+from calcasa.api.models.modeldata import Modeldata as Modeldata
+from calcasa.api.models.not_found_problem_details import (
+ NotFoundProblemDetails as NotFoundProblemDetails,
+)
+from calcasa.api.models.notitie import Notitie as Notitie
+from calcasa.api.models.notities import Notities as Notities
+from calcasa.api.models.objectdata import Objectdata as Objectdata
+from calcasa.api.models.omgevingsdata import Omgevingsdata as Omgevingsdata
+from calcasa.api.models.operation import Operation as Operation
+from calcasa.api.models.operation_type import OperationType as OperationType
+from calcasa.api.models.permissions_denied_problem_details import (
+ PermissionsDeniedProblemDetails as PermissionsDeniedProblemDetails,
+)
+from calcasa.api.models.problem_details import ProblemDetails as ProblemDetails
+from calcasa.api.models.product_type import ProductType as ProductType
+from calcasa.api.models.rapport import Rapport as Rapport
+from calcasa.api.models.referentieobject import Referentieobject as Referentieobject
+from calcasa.api.models.resource_exhausted_problem_details import (
+ ResourceExhaustedProblemDetails as ResourceExhaustedProblemDetails,
+)
+from calcasa.api.models.taxatiedata import Taxatiedata as Taxatiedata
+from calcasa.api.models.taxatiestatus import Taxatiestatus as Taxatiestatus
+from calcasa.api.models.unauthorized_problem_details import (
+ UnauthorizedProblemDetails as UnauthorizedProblemDetails,
+)
+from calcasa.api.models.validation_problem_details import (
+ ValidationProblemDetails as ValidationProblemDetails,
+)
+from calcasa.api.models.verkoop_bijzonderheden import (
+ VerkoopBijzonderheden as VerkoopBijzonderheden,
+)
+from calcasa.api.models.version_names import VersionNames as VersionNames
+from calcasa.api.models.vorige_verkoop import VorigeVerkoop as VorigeVerkoop
+from calcasa.api.models.waardering import Waardering as Waardering
+from calcasa.api.models.waardering_input_parameters import (
+ WaarderingInputParameters as WaarderingInputParameters,
+)
+from calcasa.api.models.waardering_ontwikkeling import (
+ WaarderingOntwikkeling as WaarderingOntwikkeling,
+)
+from calcasa.api.models.waardering_ontwikkeling_kwartaal import (
+ WaarderingOntwikkelingKwartaal as WaarderingOntwikkelingKwartaal,
+)
+from calcasa.api.models.waardering_status import WaarderingStatus as WaarderingStatus
+from calcasa.api.models.waardering_webhook_payload import (
+ WaarderingWebhookPayload as WaarderingWebhookPayload,
+)
+from calcasa.api.models.waardering_zoek_parameters import (
+ WaarderingZoekParameters as WaarderingZoekParameters,
+)
+from calcasa.api.models.webhook_payload import WebhookPayload as WebhookPayload
+from calcasa.api.models.woning_type import WoningType as WoningType
diff --git a/calcasa/api/api/__init__.py b/calcasa/api/api/__init__.py
new file mode 100644
index 0000000..5005828
--- /dev/null
+++ b/calcasa/api/api/__init__.py
@@ -0,0 +1,15 @@
+# flake8: noqa
+
+# import apis into api package
+from calcasa.api.api.adressen_api import AdressenApi
+from calcasa.api.api.bestemmingsplannen_api import BestemmingsplannenApi
+from calcasa.api.api.bodem_api import BodemApi
+from calcasa.api.api.buurt_api import BuurtApi
+from calcasa.api.api.callbacks_api import CallbacksApi
+from calcasa.api.api.configuratie_api import ConfiguratieApi
+from calcasa.api.api.facturen_api import FacturenApi
+from calcasa.api.api.fotos_api import FotosApi
+from calcasa.api.api.funderingen_api import FunderingenApi
+from calcasa.api.api.geldverstrekkers_api import GeldverstrekkersApi
+from calcasa.api.api.rapporten_api import RapportenApi
+from calcasa.api.api.waarderingen_api import WaarderingenApi
diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py
new file mode 100644
index 0000000..b130242
--- /dev/null
+++ b/calcasa/api/api/adressen_api.py
@@ -0,0 +1,591 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt
+from typing_extensions import Annotated
+from calcasa.api.models.adres import Adres
+from calcasa.api.models.adres_info import AdresInfo
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class AdressenApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_adres(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AdresInfo:
+ """Adres info op basis van BAG Nummeraanduiding Id.
+
+ De Notities zullen leeg blijven voor dit endpoint. Het adres object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_adres_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "AdresInfo",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_adres_with_http_info(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AdresInfo]:
+ """Adres info op basis van BAG Nummeraanduiding Id.
+
+ De Notities zullen leeg blijven voor dit endpoint. Het adres object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_adres_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "AdresInfo",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_adres_without_preload_content(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Adres info op basis van BAG Nummeraanduiding Id.
+
+ De Notities zullen leeg blijven voor dit endpoint. Het adres object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_adres_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "AdresInfo",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_adres_serialize(
+ self,
+ bag_nummeraanduiding_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bag_nummeraanduiding_id is not None:
+ _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/adressen/{bagNummeraanduidingId}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def search_adres(
+ self,
+ adres: Annotated[
+ Adres,
+ Field(
+ description="Het adres object dat gebruikt wordt om te zoeken naar adres informatie."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AdresInfo:
+ """Zoek adres info op basis van het gegeven adres.
+
+ De notities geven aan of de input al dan niet gewijzigd of onbekend is. De enige velden die echt nodig zijn voor een compleet resultaat zijn de postcode, het huisnummer en de huisnummer toevoeging.
+
+ :param adres: Het adres object dat gebruikt wordt om te zoeken naar adres informatie. (required)
+ :type adres: Adres
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_adres_serialize(
+ adres=adres,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "AdresInfo",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def search_adres_with_http_info(
+ self,
+ adres: Annotated[
+ Adres,
+ Field(
+ description="Het adres object dat gebruikt wordt om te zoeken naar adres informatie."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AdresInfo]:
+ """Zoek adres info op basis van het gegeven adres.
+
+ De notities geven aan of de input al dan niet gewijzigd of onbekend is. De enige velden die echt nodig zijn voor een compleet resultaat zijn de postcode, het huisnummer en de huisnummer toevoeging.
+
+ :param adres: Het adres object dat gebruikt wordt om te zoeken naar adres informatie. (required)
+ :type adres: Adres
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_adres_serialize(
+ adres=adres,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "AdresInfo",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def search_adres_without_preload_content(
+ self,
+ adres: Annotated[
+ Adres,
+ Field(
+ description="Het adres object dat gebruikt wordt om te zoeken naar adres informatie."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Zoek adres info op basis van het gegeven adres.
+
+ De notities geven aan of de input al dan niet gewijzigd of onbekend is. De enige velden die echt nodig zijn voor een compleet resultaat zijn de postcode, het huisnummer en de huisnummer toevoeging.
+
+ :param adres: Het adres object dat gebruikt wordt om te zoeken naar adres informatie. (required)
+ :type adres: Adres
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_adres_serialize(
+ adres=adres,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "AdresInfo",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _search_adres_serialize(
+ self,
+ adres,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if adres is not None:
+ _body_params = adres
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/adressen/zoeken",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py
new file mode 100644
index 0000000..9a516c4
--- /dev/null
+++ b/calcasa/api/api/bestemmingsplannen_api.py
@@ -0,0 +1,314 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt
+from typing_extensions import Annotated
+from calcasa.api.models.bestemmingsdata import Bestemmingsdata
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class BestemmingsplannenApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_bestemming_by_id(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Bestemmingsdata:
+ """Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bestemming_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Bestemmingsdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_bestemming_by_id_with_http_info(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Bestemmingsdata]:
+ """Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bestemming_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Bestemmingsdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_bestemming_by_id_without_preload_content(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gegevens over de bestemmingsplannen op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bestemming_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Bestemmingsdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_bestemming_by_id_serialize(
+ self,
+ bag_nummeraanduiding_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bag_nummeraanduiding_id is not None:
+ _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/bestemmingsplannen/{bagNummeraanduidingId}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py
new file mode 100644
index 0000000..013c3b8
--- /dev/null
+++ b/calcasa/api/api/bodem_api.py
@@ -0,0 +1,314 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt
+from typing_extensions import Annotated
+from calcasa.api.models.bodemdata import Bodemdata
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class BodemApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_bodem_by_id(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Bodemdata:
+ """Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bodem_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Bodemdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_bodem_by_id_with_http_info(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Bodemdata]:
+ """Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bodem_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Bodemdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_bodem_by_id_without_preload_content(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het bodemdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bodem_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Bodemdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_bodem_by_id_serialize(
+ self,
+ bag_nummeraanduiding_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bag_nummeraanduiding_id is not None:
+ _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/bodem/{bagNummeraanduidingId}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py
new file mode 100644
index 0000000..5a3f746
--- /dev/null
+++ b/calcasa/api/api/buurt_api.py
@@ -0,0 +1,299 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing_extensions import Annotated
+from calcasa.api.models.omgevingsdata import Omgevingsdata
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class BuurtApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_buurt(
+ self,
+ buurt_code: Annotated[StrictStr, Field(description="Een CBS buurt code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Omgevingsdata:
+ """Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is.
+
+ Het omgevingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param buurt_code: Een CBS buurt code. (required)
+ :type buurt_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_buurt_serialize(
+ buurt_code=buurt_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Omgevingsdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_buurt_with_http_info(
+ self,
+ buurt_code: Annotated[StrictStr, Field(description="Een CBS buurt code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Omgevingsdata]:
+ """Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is.
+
+ Het omgevingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param buurt_code: Een CBS buurt code. (required)
+ :type buurt_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_buurt_serialize(
+ buurt_code=buurt_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Omgevingsdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_buurt_without_preload_content(
+ self,
+ buurt_code: Annotated[StrictStr, Field(description="Een CBS buurt code.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is.
+
+ Het omgevingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param buurt_code: Een CBS buurt code. (required)
+ :type buurt_code: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_buurt_serialize(
+ buurt_code=buurt_code,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Omgevingsdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_buurt_serialize(
+ self,
+ buurt_code,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if buurt_code is not None:
+ _path_params["buurtCode"] = buurt_code
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/buurt/{buurtCode}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py
new file mode 100644
index 0000000..277d02b
--- /dev/null
+++ b/calcasa/api/api/callbacks_api.py
@@ -0,0 +1,1145 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt, StrictStr
+from typing import List, Optional
+from typing_extensions import Annotated
+from calcasa.api.models.callback_inschrijving import CallbackInschrijving
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class CallbacksApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def add_or_update_callback_subscription(
+ self,
+ callback_inschrijving: Annotated[
+ CallbackInschrijving,
+ Field(description="De te configureren callback inschrijving."),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CallbackInschrijving:
+ """Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres.
+
+ De callback objecten zullen gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Als er al een inschrijving bestaat voor dit adres dan wordt deze overschreven. De inschrijvingen worden vanzelf opgeruimt als ze verlopen.
+
+ :param callback_inschrijving: De te configureren callback inschrijving. (required)
+ :type callback_inschrijving: CallbackInschrijving
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_or_update_callback_subscription_serialize(
+ callback_inschrijving=callback_inschrijving,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "CallbackInschrijving",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def add_or_update_callback_subscription_with_http_info(
+ self,
+ callback_inschrijving: Annotated[
+ CallbackInschrijving,
+ Field(description="De te configureren callback inschrijving."),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CallbackInschrijving]:
+ """Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres.
+
+ De callback objecten zullen gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Als er al een inschrijving bestaat voor dit adres dan wordt deze overschreven. De inschrijvingen worden vanzelf opgeruimt als ze verlopen.
+
+ :param callback_inschrijving: De te configureren callback inschrijving. (required)
+ :type callback_inschrijving: CallbackInschrijving
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_or_update_callback_subscription_serialize(
+ callback_inschrijving=callback_inschrijving,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "CallbackInschrijving",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def add_or_update_callback_subscription_without_preload_content(
+ self,
+ callback_inschrijving: Annotated[
+ CallbackInschrijving,
+ Field(description="De te configureren callback inschrijving."),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres.
+
+ De callback objecten zullen gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Als er al een inschrijving bestaat voor dit adres dan wordt deze overschreven. De inschrijvingen worden vanzelf opgeruimt als ze verlopen.
+
+ :param callback_inschrijving: De te configureren callback inschrijving. (required)
+ :type callback_inschrijving: CallbackInschrijving
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_or_update_callback_subscription_serialize(
+ callback_inschrijving=callback_inschrijving,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "CallbackInschrijving",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _add_or_update_callback_subscription_serialize(
+ self,
+ callback_inschrijving,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if callback_inschrijving is not None:
+ _body_params = callback_inschrijving
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/callbacks/inschrijvingen",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def delete_notification_subscription(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt."
+ ),
+ ],
+ geldverstrekker: Annotated[
+ Optional[StrictStr],
+ Field(
+ description="De naam van de geldverstrekker waar de callback inschrijving voor geldt."
+ ),
+ ] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker.
+
+
+ :param bag_nummeraanduiding_id: Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt. (required)
+ :type bag_nummeraanduiding_id: int
+ :param geldverstrekker: De naam van de geldverstrekker waar de callback inschrijving voor geldt.
+ :type geldverstrekker: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_notification_subscription_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ geldverstrekker=geldverstrekker,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "204": None,
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def delete_notification_subscription_with_http_info(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt."
+ ),
+ ],
+ geldverstrekker: Annotated[
+ Optional[StrictStr],
+ Field(
+ description="De naam van de geldverstrekker waar de callback inschrijving voor geldt."
+ ),
+ ] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker.
+
+
+ :param bag_nummeraanduiding_id: Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt. (required)
+ :type bag_nummeraanduiding_id: int
+ :param geldverstrekker: De naam van de geldverstrekker waar de callback inschrijving voor geldt.
+ :type geldverstrekker: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_notification_subscription_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ geldverstrekker=geldverstrekker,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "204": None,
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def delete_notification_subscription_without_preload_content(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt."
+ ),
+ ],
+ geldverstrekker: Annotated[
+ Optional[StrictStr],
+ Field(
+ description="De naam van de geldverstrekker waar de callback inschrijving voor geldt."
+ ),
+ ] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker.
+
+
+ :param bag_nummeraanduiding_id: Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt. (required)
+ :type bag_nummeraanduiding_id: int
+ :param geldverstrekker: De naam van de geldverstrekker waar de callback inschrijving voor geldt.
+ :type geldverstrekker: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_notification_subscription_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ geldverstrekker=geldverstrekker,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "204": None,
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _delete_notification_subscription_serialize(
+ self,
+ bag_nummeraanduiding_id,
+ geldverstrekker,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bag_nummeraanduiding_id is not None:
+ _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id
+ # process the query parameters
+ if geldverstrekker is not None:
+
+ _query_params.append(("geldverstrekker", geldverstrekker))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="DELETE",
+ resource_path="/callbacks/inschrijvingen/{bagNummeraanduidingId}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def get_notification_subscription(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt."
+ ),
+ ],
+ geldverstrekker: Annotated[
+ Optional[StrictStr],
+ Field(
+ description="De naam van de geldverstrekker waar de callback inschrijving voor geldt."
+ ),
+ ] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CallbackInschrijving:
+ """Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker.
+
+ Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt. (required)
+ :type bag_nummeraanduiding_id: int
+ :param geldverstrekker: De naam van de geldverstrekker waar de callback inschrijving voor geldt.
+ :type geldverstrekker: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_notification_subscription_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ geldverstrekker=geldverstrekker,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "CallbackInschrijving",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_notification_subscription_with_http_info(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt."
+ ),
+ ],
+ geldverstrekker: Annotated[
+ Optional[StrictStr],
+ Field(
+ description="De naam van de geldverstrekker waar de callback inschrijving voor geldt."
+ ),
+ ] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CallbackInschrijving]:
+ """Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker.
+
+ Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt. (required)
+ :type bag_nummeraanduiding_id: int
+ :param geldverstrekker: De naam van de geldverstrekker waar de callback inschrijving voor geldt.
+ :type geldverstrekker: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_notification_subscription_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ geldverstrekker=geldverstrekker,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "CallbackInschrijving",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_notification_subscription_without_preload_content(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt."
+ ),
+ ],
+ geldverstrekker: Annotated[
+ Optional[StrictStr],
+ Field(
+ description="De naam van de geldverstrekker waar de callback inschrijving voor geldt."
+ ),
+ ] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker.
+
+ Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Het BAG Nummeraanduiding ID waar de callback inschrijving voor geldt. (required)
+ :type bag_nummeraanduiding_id: int
+ :param geldverstrekker: De naam van de geldverstrekker waar de callback inschrijving voor geldt.
+ :type geldverstrekker: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_notification_subscription_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ geldverstrekker=geldverstrekker,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "CallbackInschrijving",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_notification_subscription_serialize(
+ self,
+ bag_nummeraanduiding_id,
+ geldverstrekker,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bag_nummeraanduiding_id is not None:
+ _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id
+ # process the query parameters
+ if geldverstrekker is not None:
+
+ _query_params.append(("geldverstrekker", geldverstrekker))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/callbacks/inschrijvingen/{bagNummeraanduidingId}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def get_notification_subscriptions(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[CallbackInschrijving]:
+ """Haal de callback inschrijvingen binnen voor deze client.
+
+ De callback objecten zullen gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_notification_subscriptions_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[CallbackInschrijving]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_notification_subscriptions_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[CallbackInschrijving]]:
+ """Haal de callback inschrijvingen binnen voor deze client.
+
+ De callback objecten zullen gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_notification_subscriptions_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[CallbackInschrijving]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_notification_subscriptions_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Haal de callback inschrijvingen binnen voor deze client.
+
+ De callback objecten zullen gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_notification_subscriptions_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[CallbackInschrijving]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_notification_subscriptions_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/callbacks/inschrijvingen",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py
new file mode 100644
index 0000000..9a16112
--- /dev/null
+++ b/calcasa/api/api/configuratie_api.py
@@ -0,0 +1,541 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from typing import List
+from calcasa.api.models.callback import Callback
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class ConfiguratieApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_callbacks(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[Callback]:
+ """Haal de geconfigureerde callback URL's op voor de huidige client.
+
+ Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_callbacks_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Callback]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_callbacks_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[Callback]]:
+ """Haal de geconfigureerde callback URL's op voor de huidige client.
+
+ Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_callbacks_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Callback]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_callbacks_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Haal de geconfigureerde callback URL's op voor de huidige client.
+
+ Het callback object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_callbacks_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Callback]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_callbacks_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/configuratie/callbacks",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def update_callbacks(
+ self,
+ callback: Callback,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[Callback]:
+ """Configureer callback URL voor een specifieke API versie voor de huidige client.
+
+ Indien er al een callback geconfigureerd is voor de opgegeven versie zal deze overschreven worden. Bij het aanroepen van de callback URL zal de CallbackName achter de URL toegevoegd worden. Een lege string of null verwijdert de geconfigureerde URL.
+
+ :param callback: (required)
+ :type callback: Callback
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_callbacks_serialize(
+ callback=callback,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Callback]",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def update_callbacks_with_http_info(
+ self,
+ callback: Callback,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[Callback]]:
+ """Configureer callback URL voor een specifieke API versie voor de huidige client.
+
+ Indien er al een callback geconfigureerd is voor de opgegeven versie zal deze overschreven worden. Bij het aanroepen van de callback URL zal de CallbackName achter de URL toegevoegd worden. Een lege string of null verwijdert de geconfigureerde URL.
+
+ :param callback: (required)
+ :type callback: Callback
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_callbacks_serialize(
+ callback=callback,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Callback]",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def update_callbacks_without_preload_content(
+ self,
+ callback: Callback,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Configureer callback URL voor een specifieke API versie voor de huidige client.
+
+ Indien er al een callback geconfigureerd is voor de opgegeven versie zal deze overschreven worden. Bij het aanroepen van de callback URL zal de CallbackName achter de URL toegevoegd worden. Een lege string of null verwijdert de geconfigureerde URL.
+
+ :param callback: (required)
+ :type callback: Callback
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_callbacks_serialize(
+ callback=callback,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Callback]",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _update_callbacks_serialize(
+ self,
+ callback,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if callback is not None:
+ _body_params = callback
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/configuratie/callbacks",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py
new file mode 100644
index 0000000..63b159b
--- /dev/null
+++ b/calcasa/api/api/facturen_api.py
@@ -0,0 +1,297 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBytes, StrictStr
+from typing import Tuple, Union
+from typing_extensions import Annotated
+from uuid import UUID
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class FacturenApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_factuur(
+ self,
+ id: Annotated[UUID, Field(description="De Id van een waardering.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> bytearray:
+ """Factuur op basis van een waardering Id.
+
+
+ :param id: De Id van een waardering. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_factuur_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_factuur_with_http_info(
+ self,
+ id: Annotated[UUID, Field(description="De Id van een waardering.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[bytearray]:
+ """Factuur op basis van een waardering Id.
+
+
+ :param id: De Id van een waardering. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_factuur_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_factuur_without_preload_content(
+ self,
+ id: Annotated[UUID, Field(description="De Id van een waardering.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Factuur op basis van een waardering Id.
+
+
+ :param id: De Id van een waardering. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_factuur_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_factuur_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params["id"] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/pdf", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/facturen/{id}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py
new file mode 100644
index 0000000..fc44627
--- /dev/null
+++ b/calcasa/api/api/fotos_api.py
@@ -0,0 +1,312 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBytes, StrictStr
+from typing import Tuple, Union
+from typing_extensions import Annotated
+from uuid import UUID
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class FotosApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_foto(
+ self,
+ id: Annotated[
+ UUID,
+ Field(
+ description="De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> bytearray:
+ """Foto op basis van een foto Id.
+
+
+ :param id: De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_foto_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_foto_with_http_info(
+ self,
+ id: Annotated[
+ UUID,
+ Field(
+ description="De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[bytearray]:
+ """Foto op basis van een foto Id.
+
+
+ :param id: De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_foto_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_foto_without_preload_content(
+ self,
+ id: Annotated[
+ UUID,
+ Field(
+ description="De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Foto op basis van een foto Id.
+
+
+ :param id: De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_foto_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_foto_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params["id"] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["image/jpeg", "image/png", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/fotos/{id}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py
new file mode 100644
index 0000000..c92fdf8
--- /dev/null
+++ b/calcasa/api/api/funderingen_api.py
@@ -0,0 +1,314 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictInt
+from typing_extensions import Annotated
+from calcasa.api.models.funderingdata import Funderingdata
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class FunderingenApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_fundering_by_id(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Funderingdata:
+ """Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het funderingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_fundering_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Funderingdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_fundering_by_id_with_http_info(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Funderingdata]:
+ """Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het funderingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_fundering_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Funderingdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_fundering_by_id_without_preload_content(
+ self,
+ bag_nummeraanduiding_id: Annotated[
+ StrictInt,
+ Field(
+ description="Een BAG Nummeraanduiding ID om een adres te specificeren."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID).
+
+ Het funderingdata object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param bag_nummeraanduiding_id: Een BAG Nummeraanduiding ID om een adres te specificeren. (required)
+ :type bag_nummeraanduiding_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_fundering_by_id_serialize(
+ bag_nummeraanduiding_id=bag_nummeraanduiding_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Funderingdata",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_fundering_by_id_serialize(
+ self,
+ bag_nummeraanduiding_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bag_nummeraanduiding_id is not None:
+ _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/funderingen/{bagNummeraanduidingId}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py
new file mode 100644
index 0000000..c424816
--- /dev/null
+++ b/calcasa/api/api/geldverstrekkers_api.py
@@ -0,0 +1,310 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field
+from typing import List
+from typing_extensions import Annotated
+from calcasa.api.models.geldverstrekker import Geldverstrekker
+from calcasa.api.models.product_type import ProductType
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class GeldverstrekkersApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_geldverstrekkers(
+ self,
+ product_type: Annotated[
+ ProductType,
+ Field(
+ description="Een parameter om de lijst te filteren op gesupporte producttypen."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[Geldverstrekker]:
+ """Alle geldverstrekkers die te gebruiken zijn voor aanvragen.
+
+
+ :param product_type: Een parameter om de lijst te filteren op gesupporte producttypen. (required)
+ :type product_type: ProductType
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_geldverstrekkers_serialize(
+ product_type=product_type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Geldverstrekker]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_geldverstrekkers_with_http_info(
+ self,
+ product_type: Annotated[
+ ProductType,
+ Field(
+ description="Een parameter om de lijst te filteren op gesupporte producttypen."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[Geldverstrekker]]:
+ """Alle geldverstrekkers die te gebruiken zijn voor aanvragen.
+
+
+ :param product_type: Een parameter om de lijst te filteren op gesupporte producttypen. (required)
+ :type product_type: ProductType
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_geldverstrekkers_serialize(
+ product_type=product_type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Geldverstrekker]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_geldverstrekkers_without_preload_content(
+ self,
+ product_type: Annotated[
+ ProductType,
+ Field(
+ description="Een parameter om de lijst te filteren op gesupporte producttypen."
+ ),
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Alle geldverstrekkers die te gebruiken zijn voor aanvragen.
+
+
+ :param product_type: Een parameter om de lijst te filteren op gesupporte producttypen. (required)
+ :type product_type: ProductType
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_geldverstrekkers_serialize(
+ product_type=product_type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Geldverstrekker]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_geldverstrekkers_serialize(
+ self,
+ product_type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if product_type is not None:
+ _path_params["productType"] = product_type.value
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/geldverstrekkers/{productType}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py
new file mode 100644
index 0000000..39e247a
--- /dev/null
+++ b/calcasa/api/api/rapporten_api.py
@@ -0,0 +1,297 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBytes, StrictStr
+from typing import Tuple, Union
+from typing_extensions import Annotated
+from uuid import UUID
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class RapportenApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def get_rapport(
+ self,
+ id: Annotated[UUID, Field(description="De Id van een waardering.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> bytearray:
+ """Rapport op basis van waardering Id.
+
+
+ :param id: De Id van een waardering. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_rapport_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_rapport_with_http_info(
+ self,
+ id: Annotated[UUID, Field(description="De Id van een waardering.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[bytearray]:
+ """Rapport op basis van waardering Id.
+
+
+ :param id: De Id van een waardering. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_rapport_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_rapport_without_preload_content(
+ self,
+ id: Annotated[UUID, Field(description="De Id van een waardering.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Rapport op basis van waardering Id.
+
+
+ :param id: De Id van een waardering. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_rapport_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_rapport_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params["id"] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/pdf", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/rapporten/{id}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py
new file mode 100644
index 0000000..f5d05bb
--- /dev/null
+++ b/calcasa/api/api/waarderingen_api.py
@@ -0,0 +1,1393 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field
+from typing import List
+from typing_extensions import Annotated
+from uuid import UUID
+from calcasa.api.models.waardering import Waardering
+from calcasa.api.models.waardering_input_parameters import WaarderingInputParameters
+from calcasa.api.models.waardering_ontwikkeling import WaarderingOntwikkeling
+from calcasa.api.models.waardering_zoek_parameters import WaarderingZoekParameters
+from calcasa.api.models.operation import Operation
+
+from calcasa.api.api_client import ApiClient, RequestSerialized
+from calcasa.api.api_response import ApiResponse
+from calcasa.api.rest import RESTResponseType
+
+
+class WaarderingenApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+ @validate_call
+ def create_waardering(
+ self,
+ waardering_input_parameters: WaarderingInputParameters,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Waardering:
+ """Creërt een waardering.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Nadat de waardering aangemaakt is zal deze bevestigd moeten worden. De BagNummeraanduidingId en ProductType velden zijn verplicht. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}waardering | [WaarderingWebhookPayload](/api/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) |
+
+ :param waardering_input_parameters: (required)
+ :type waardering_input_parameters: WaarderingInputParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_waardering_serialize(
+ waardering_input_parameters=waardering_input_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "406": "BusinessRulesProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def create_waardering_with_http_info(
+ self,
+ waardering_input_parameters: WaarderingInputParameters,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Waardering]:
+ """Creërt een waardering.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Nadat de waardering aangemaakt is zal deze bevestigd moeten worden. De BagNummeraanduidingId en ProductType velden zijn verplicht. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}waardering | [WaarderingWebhookPayload](/api/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) |
+
+ :param waardering_input_parameters: (required)
+ :type waardering_input_parameters: WaarderingInputParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_waardering_serialize(
+ waardering_input_parameters=waardering_input_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "406": "BusinessRulesProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def create_waardering_without_preload_content(
+ self,
+ waardering_input_parameters: WaarderingInputParameters,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creërt een waardering.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Nadat de waardering aangemaakt is zal deze bevestigd moeten worden. De BagNummeraanduidingId en ProductType velden zijn verplicht. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}waardering | [WaarderingWebhookPayload](/api/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) |
+
+ :param waardering_input_parameters: (required)
+ :type waardering_input_parameters: WaarderingInputParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_waardering_serialize(
+ waardering_input_parameters=waardering_input_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "406": "BusinessRulesProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _create_waardering_serialize(
+ self,
+ waardering_input_parameters,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if waardering_input_parameters is not None:
+ _body_params = waardering_input_parameters
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/waarderingen",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def get_waardering(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Waardering:
+ """Waardering op basis van Id.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_waardering_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_waardering_with_http_info(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Waardering]:
+ """Waardering op basis van Id.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_waardering_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_waardering_without_preload_content(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Waardering op basis van Id.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_waardering_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_waardering_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params["id"] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/waarderingen/{id}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def get_waardering_ontwikkeling(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> WaarderingOntwikkeling:
+ """Waardering ontwikkeling op basis van waardering Id.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_waardering_ontwikkeling_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "WaarderingOntwikkeling",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_waardering_ontwikkeling_with_http_info(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[WaarderingOntwikkeling]:
+ """Waardering ontwikkeling op basis van waardering Id.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_waardering_ontwikkeling_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "WaarderingOntwikkeling",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_waardering_ontwikkeling_without_preload_content(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Waardering ontwikkeling op basis van waardering Id.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie.
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_waardering_ontwikkeling_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "WaarderingOntwikkeling",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_waardering_ontwikkeling_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params["id"] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/waarderingen/{id}/ontwikkeling",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def patch_waarderingen(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ list_operation: list[Operation],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Waardering:
+ """Patcht een waardering.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Op dit moment kan alleen de waarderingsstatus gepatcht worden. Dit endpoint kan gebruikt worden om een waarderingsinitialisatie te bevestigen. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}waardering | [WaarderingWebhookPayload](/api/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) |
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param list_operation: (required)
+ :type list_operation: list[Operation]
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._patch_waarderingen_serialize(
+ id=id,
+ list_operation=list_operation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "402": "ResourceExhaustedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def patch_waarderingen_with_http_info(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ list_operation: list[Operation],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Waardering]:
+ """Patcht een waardering.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Op dit moment kan alleen de waarderingsstatus gepatcht worden. Dit endpoint kan gebruikt worden om een waarderingsinitialisatie te bevestigen. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}waardering | [WaarderingWebhookPayload](/api/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) |
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param list_operation: (required)
+ :type list_operation: list[Operation]
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._patch_waarderingen_serialize(
+ id=id,
+ list_operation=list_operation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "402": "ResourceExhaustedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def patch_waarderingen_without_preload_content(
+ self,
+ id: Annotated[
+ UUID, Field(description="De waardering Id in de vorm van een UUID.")
+ ],
+ list_operation: list[Operation],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Patcht een waardering.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Op dit moment kan alleen de waarderingsstatus gepatcht worden. Dit endpoint kan gebruikt worden om een waarderingsinitialisatie te bevestigen. ### Callbacks | Name | Url | Schema | | --- | --- | --- | | waardering | {configuredWebhookUrl}waardering | [WaarderingWebhookPayload](/api/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) |
+
+ :param id: De waardering Id in de vorm van een UUID. (required)
+ :type id: str
+ :param list_operation: (required)
+ :type list_operation: list[Operation]
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._patch_waarderingen_serialize(
+ id=id,
+ list_operation=list_operation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "Waardering",
+ "400": "InvalidArgumentProblemDetails",
+ "401": "UnauthorizedProblemDetails",
+ "402": "ResourceExhaustedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "404": "NotFoundProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _patch_waarderingen_serialize(
+ self,
+ id,
+ list_operation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params["id"] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if list_operation is not None:
+ _body_params = list_operation
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json-patch+json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="PATCH",
+ resource_path="/waarderingen/{id}",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def search_waarderingen(
+ self,
+ waardering_zoek_parameters: WaarderingZoekParameters,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[Waardering]:
+ """Zoek waardering op basis van input parameters.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Alle items kunnen gebruikt worden voor het zoeken, ProductType en BagNummeraanduidingId zijn verplicht.
+
+ :param waardering_zoek_parameters: (required)
+ :type waardering_zoek_parameters: WaarderingZoekParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_waarderingen_serialize(
+ waardering_zoek_parameters=waardering_zoek_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Waardering]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def search_waarderingen_with_http_info(
+ self,
+ waardering_zoek_parameters: WaarderingZoekParameters,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[Waardering]]:
+ """Zoek waardering op basis van input parameters.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Alle items kunnen gebruikt worden voor het zoeken, ProductType en BagNummeraanduidingId zijn verplicht.
+
+ :param waardering_zoek_parameters: (required)
+ :type waardering_zoek_parameters: WaarderingZoekParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_waarderingen_serialize(
+ waardering_zoek_parameters=waardering_zoek_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Waardering]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def search_waarderingen_without_preload_content(
+ self,
+ waardering_zoek_parameters: WaarderingZoekParameters,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Zoek waardering op basis van input parameters.
+
+ Het waardering object zal gefilterd terug komen afhankelijk van het client_id wat gebruikt is voor de authenticatie. Alle items kunnen gebruikt worden voor het zoeken, ProductType en BagNummeraanduidingId zijn verplicht.
+
+ :param waardering_zoek_parameters: (required)
+ :type waardering_zoek_parameters: WaarderingZoekParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._search_waarderingen_serialize(
+ waardering_zoek_parameters=waardering_zoek_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "List[Waardering]",
+ "401": "UnauthorizedProblemDetails",
+ "403": "PermissionsDeniedProblemDetails",
+ "422": "ValidationProblemDetails",
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _search_waarderingen_serialize(
+ self,
+ waardering_zoek_parameters,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if waardering_zoek_parameters is not None:
+ _body_params = waardering_zoek_parameters
+
+ # set the HTTP header `Accept`
+ if "Accept" not in _header_params:
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json", "application/problem+json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["oauth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/waarderingen/zoeken",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py
new file mode 100644
index 0000000..09b3b95
--- /dev/null
+++ b/calcasa/api/api_client.py
@@ -0,0 +1,772 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+import datetime
+from dateutil.parser import parse
+from enum import Enum
+import decimal
+import json
+import mimetypes
+import os
+import re
+import tempfile
+import uuid
+
+from urllib.parse import quote
+from typing import Tuple, Optional, List, Dict, Union
+from pydantic import SecretStr
+
+from calcasa.api.configuration import Configuration
+from calcasa.api.api_response import ApiResponse, T as ApiResponseT
+import calcasa.api.models
+from calcasa.api import rest
+from calcasa.api.exceptions import (
+ ApiValueError,
+ ApiException,
+ BadRequestException,
+ UnauthorizedException,
+ ForbiddenException,
+ NotFoundException,
+ ServiceException,
+)
+
+RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
+
+
+class ApiClient:
+ """Generic API client for OpenAPI client library builds.
+
+ OpenAPI generic API client. This client handles the client-
+ server communication, and is invariant across implementations. Specifics of
+ the methods and models for each application are generated from the OpenAPI
+ templates.
+
+ :param configuration: .Configuration object for this client
+ :param header_name: a header to pass when making calls to the API.
+ :param header_value: a header value to pass when making calls to
+ the API.
+ :param cookie: a cookie to include in the header when making calls
+ to the API
+ """
+
+ PRIMITIVE_TYPES = (float, bool, bytes, str, int)
+ NATIVE_TYPES_MAPPING = {
+ "int": int,
+ "long": int, # TODO remove as only py3 is supported?
+ "float": float,
+ "str": str,
+ "bool": bool,
+ "date": datetime.date,
+ "datetime": datetime.datetime,
+ "decimal": decimal.Decimal,
+ "object": object,
+ }
+ _pool = None
+
+ def __init__(
+ self, configuration=None, header_name=None, header_value=None, cookie=None
+ ) -> None:
+ # use default configuration if none is provided
+ if configuration is None:
+ configuration = Configuration.get_default()
+ self.configuration = configuration
+
+ self.rest_client = rest.RESTClientObject(configuration)
+ self.default_headers = {}
+ if header_name is not None:
+ self.default_headers[header_name] = header_value
+ self.cookie = cookie
+ # Set default User-Agent.
+ self.user_agent = "Calcasa Python Api Client/1.4.0"
+ self.client_side_validation = configuration.client_side_validation
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, exc_type, exc_value, traceback):
+ pass
+
+ @property
+ def user_agent(self):
+ """User agent for this API client"""
+ return self.default_headers["User-Agent"]
+
+ @user_agent.setter
+ def user_agent(self, value):
+ self.default_headers["User-Agent"] = value
+
+ def set_default_header(self, header_name, header_value):
+ self.default_headers[header_name] = header_value
+
+ _default = None
+
+ @classmethod
+ def get_default(cls):
+ """Return new instance of ApiClient.
+
+ This method returns newly created, based on default constructor,
+ object of ApiClient class or returns a copy of default
+ ApiClient.
+
+ :return: The ApiClient object.
+ """
+ if cls._default is None:
+ cls._default = ApiClient()
+ return cls._default
+
+ @classmethod
+ def set_default(cls, default):
+ """Set default instance of ApiClient.
+
+ It stores default ApiClient.
+
+ :param default: object of ApiClient.
+ """
+ cls._default = default
+
+ def param_serialize(
+ self,
+ method,
+ resource_path,
+ path_params=None,
+ query_params=None,
+ header_params=None,
+ body=None,
+ post_params=None,
+ files=None,
+ auth_settings=None,
+ collection_formats=None,
+ _host=None,
+ _request_auth=None,
+ ) -> RequestSerialized:
+ """Builds the HTTP request params needed by the request.
+ :param method: Method to call.
+ :param resource_path: Path to method endpoint.
+ :param path_params: Path parameters in the url.
+ :param query_params: Query parameters in the url.
+ :param header_params: Header parameters to be
+ placed in the request header.
+ :param body: Request body.
+ :param post_params dict: Request post form parameters,
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
+ :param auth_settings list: Auth Settings names for the request.
+ :param files dict: key -> filename, value -> filepath,
+ for `multipart/form-data`.
+ :param collection_formats: dict of collection formats for path, query,
+ header, and post parameters.
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the authentication
+ in the spec for a single request.
+ :return: tuple of form (path, http_method, query_params, header_params,
+ body, post_params, files)
+ """
+
+ config = self.configuration
+
+ # header parameters
+ header_params = header_params or {}
+ header_params.update(self.default_headers)
+ if self.cookie:
+ header_params["Cookie"] = self.cookie
+ if header_params:
+ header_params = self.sanitize_for_serialization(header_params)
+ header_params = dict(
+ self.parameters_to_tuples(header_params, collection_formats)
+ )
+
+ # path parameters
+ if path_params:
+ path_params = self.sanitize_for_serialization(path_params)
+ path_params = self.parameters_to_tuples(path_params, collection_formats)
+ for k, v in path_params:
+ # specified safe chars, encode everything
+ resource_path = resource_path.replace(
+ "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param)
+ )
+
+ # post parameters
+ if post_params or files:
+ post_params = post_params if post_params else []
+ post_params = self.sanitize_for_serialization(post_params)
+ post_params = self.parameters_to_tuples(post_params, collection_formats)
+ if files:
+ post_params.extend(self.files_parameters(files))
+
+ # auth setting
+ self.update_params_for_auth(
+ header_params,
+ query_params,
+ auth_settings,
+ resource_path,
+ method,
+ body,
+ request_auth=_request_auth,
+ )
+
+ # body
+ if body:
+ body = self.sanitize_for_serialization(body)
+
+ # request url
+ if _host is None or self.configuration.ignore_operation_servers:
+ url = self.configuration.host + resource_path
+ else:
+ # use server/host defined in path or operation instead
+ url = _host + resource_path
+
+ # query parameters
+ if query_params:
+ query_params = self.sanitize_for_serialization(query_params)
+ url_query = self.parameters_to_url_query(query_params, collection_formats)
+ url += "?" + url_query
+
+ return method, url, header_params, body, post_params
+
+ def call_api(
+ self,
+ method,
+ url,
+ header_params=None,
+ body=None,
+ post_params=None,
+ _request_timeout=None,
+ ) -> rest.RESTResponse:
+ """Makes the HTTP request (synchronous)
+ :param method: Method to call.
+ :param url: Path to method endpoint.
+ :param header_params: Header parameters to be
+ placed in the request header.
+ :param body: Request body.
+ :param post_params dict: Request post form parameters,
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
+ :param _request_timeout: timeout setting for this request.
+ :return: RESTResponse
+ """
+
+ try:
+ # perform request and return response
+ response_data = self.rest_client.request(
+ method,
+ url,
+ headers=header_params,
+ body=body,
+ post_params=post_params,
+ _request_timeout=_request_timeout,
+ )
+
+ except ApiException as e:
+ raise e
+
+ return response_data
+
+ def response_deserialize(
+ self,
+ response_data: rest.RESTResponse,
+ response_types_map: Optional[Dict[str, ApiResponseT]] = None,
+ ) -> ApiResponse[ApiResponseT]:
+ """Deserializes response into an object.
+ :param response_data: RESTResponse object to be deserialized.
+ :param response_types_map: dict of response types.
+ :return: ApiResponse
+ """
+
+ msg = "RESTResponse.read() must be called before passing it to response_deserialize()"
+ assert response_data.data is not None, msg
+
+ response_type = response_types_map.get(str(response_data.status), None)
+ if (
+ not response_type
+ and isinstance(response_data.status, int)
+ and 100 <= response_data.status <= 599
+ ):
+ # if not found, look for '1XX', '2XX', etc.
+ response_type = response_types_map.get(
+ str(response_data.status)[0] + "XX", None
+ )
+
+ # deserialize response data
+ response_text = None
+ return_data = None
+ try:
+ if response_type == "bytearray":
+ return_data = response_data.data
+ elif response_type == "file":
+ return_data = self.__deserialize_file(response_data)
+ elif response_type is not None:
+ match = None
+ content_type = response_data.getheader("content-type")
+ if content_type is not None:
+ match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
+ encoding = match.group(1) if match else "utf-8"
+ response_text = response_data.data.decode(encoding)
+ return_data = self.deserialize(
+ response_text, response_type, content_type
+ )
+ finally:
+ if not 200 <= response_data.status <= 299:
+ raise ApiException.from_response(
+ http_resp=response_data,
+ body=response_text,
+ data=return_data,
+ )
+
+ return ApiResponse(
+ status_code=response_data.status,
+ data=return_data,
+ headers=response_data.getheaders(),
+ raw_data=response_data.data,
+ )
+
+ def sanitize_for_serialization(self, obj):
+ """Builds a JSON POST object.
+
+ If obj is None, return None.
+ If obj is SecretStr, return obj.get_secret_value()
+ If obj is str, int, long, float, bool, return directly.
+ If obj is datetime.datetime, datetime.date
+ convert to string in iso8601 format.
+ If obj is decimal.Decimal return string representation.
+ If obj is list, sanitize each element in the list.
+ If obj is dict, return the dict.
+ If obj is OpenAPI model, return the properties dict.
+
+ :param obj: The data to serialize.
+ :return: The serialized form of data.
+ """
+ if obj is None:
+ return None
+ elif isinstance(obj, Enum):
+ return obj.value
+ elif isinstance(obj, SecretStr):
+ return obj.get_secret_value()
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
+ return obj
+ elif isinstance(obj, uuid.UUID):
+ return str(obj)
+ elif isinstance(obj, list):
+ return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj]
+ elif isinstance(obj, tuple):
+ return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj)
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
+ return obj.isoformat()
+ elif isinstance(obj, decimal.Decimal):
+ return str(obj)
+
+ elif isinstance(obj, dict):
+ obj_dict = obj
+ else:
+ # Convert model obj to dict except
+ # attributes `openapi_types`, `attribute_map`
+ # and attributes which value is not None.
+ # Convert attribute name to json key in
+ # model definition for request.
+ if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")):
+ obj_dict = obj.to_dict()
+ else:
+ obj_dict = obj.__dict__
+
+ if isinstance(obj_dict, list):
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
+ return self.sanitize_for_serialization(obj_dict)
+
+ return {
+ key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()
+ }
+
+ def deserialize(
+ self, response_text: str, response_type: str, content_type: Optional[str]
+ ):
+ """Deserializes response into an object.
+
+ :param response: RESTResponse object to be deserialized.
+ :param response_type: class literal for
+ deserialized object, or string of class name.
+ :param content_type: content type of response.
+
+ :return: deserialized object.
+ """
+
+ # fetch data from response object
+ if content_type is None:
+ try:
+ data = json.loads(response_text)
+ except ValueError:
+ data = response_text
+ elif re.match(
+ r"^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)",
+ content_type,
+ re.IGNORECASE,
+ ):
+ if response_text == "":
+ data = ""
+ else:
+ data = json.loads(response_text)
+ elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE):
+ data = response_text
+ else:
+ raise ApiException(
+ status=0, reason="Unsupported content type: {0}".format(content_type)
+ )
+
+ return self.__deserialize(data, response_type)
+
+ def __deserialize(self, data, klass):
+ """Deserializes dict, list, str into an object.
+
+ :param data: dict, list or str.
+ :param klass: class literal, or string of class name.
+
+ :return: object.
+ """
+ if data is None:
+ return None
+
+ if isinstance(klass, str):
+ if klass.startswith("List["):
+ m = re.match(r"List\[(.*)]", klass)
+ assert m is not None, "Malformed List type definition"
+ sub_kls = m.group(1)
+ return [self.__deserialize(sub_data, sub_kls) for sub_data in data]
+
+ if klass.startswith("Dict["):
+ m = re.match(r"Dict\[([^,]*), (.*)]", klass)
+ assert m is not None, "Malformed Dict type definition"
+ sub_kls = m.group(2)
+ return {k: self.__deserialize(v, sub_kls) for k, v in data.items()}
+
+ # convert str to class
+ if klass in self.NATIVE_TYPES_MAPPING:
+ klass = self.NATIVE_TYPES_MAPPING[klass]
+ else:
+ klass = getattr(calcasa.api.models, klass)
+
+ if klass in self.PRIMITIVE_TYPES:
+ return self.__deserialize_primitive(data, klass)
+ elif klass is object:
+ return self.__deserialize_object(data)
+ elif klass is datetime.date:
+ return self.__deserialize_date(data)
+ elif klass is datetime.datetime:
+ return self.__deserialize_datetime(data)
+ elif klass is decimal.Decimal:
+ return decimal.Decimal(data)
+ elif issubclass(klass, Enum):
+ return self.__deserialize_enum(data, klass)
+ else:
+ return self.__deserialize_model(data, klass)
+
+ def parameters_to_tuples(self, params, collection_formats):
+ """Get parameters as list of tuples, formatting collections.
+
+ :param params: Parameters as dict or list of two-tuples
+ :param dict collection_formats: Parameter collection formats
+ :return: Parameters as list of tuples, collections formatted
+ """
+ new_params: List[Tuple[str, str]] = []
+ if collection_formats is None:
+ collection_formats = {}
+ for k, v in params.items() if isinstance(params, dict) else params:
+ if k in collection_formats:
+ collection_format = collection_formats[k]
+ if collection_format == "multi":
+ new_params.extend((k, value) for value in v)
+ else:
+ if collection_format == "ssv":
+ delimiter = " "
+ elif collection_format == "tsv":
+ delimiter = "\t"
+ elif collection_format == "pipes":
+ delimiter = "|"
+ else: # csv is the default
+ delimiter = ","
+ new_params.append((k, delimiter.join(str(value) for value in v)))
+ else:
+ new_params.append((k, v))
+ return new_params
+
+ def parameters_to_url_query(self, params, collection_formats):
+ """Get parameters as list of tuples, formatting collections.
+
+ :param params: Parameters as dict or list of two-tuples
+ :param dict collection_formats: Parameter collection formats
+ :return: URL query string (e.g. a=Hello%20World&b=123)
+ """
+ new_params: List[Tuple[str, str]] = []
+ if collection_formats is None:
+ collection_formats = {}
+ for k, v in params.items() if isinstance(params, dict) else params:
+ if isinstance(v, bool):
+ v = str(v).lower()
+ if isinstance(v, (int, float)):
+ v = str(v)
+ if isinstance(v, dict):
+ v = json.dumps(v)
+
+ if k in collection_formats:
+ collection_format = collection_formats[k]
+ if collection_format == "multi":
+ new_params.extend((k, quote(str(value))) for value in v)
+ else:
+ if collection_format == "ssv":
+ delimiter = " "
+ elif collection_format == "tsv":
+ delimiter = "\t"
+ elif collection_format == "pipes":
+ delimiter = "|"
+ else: # csv is the default
+ delimiter = ","
+ new_params.append(
+ (k, delimiter.join(quote(str(value)) for value in v))
+ )
+ else:
+ new_params.append((k, quote(str(v))))
+
+ return "&".join(["=".join(map(str, item)) for item in new_params])
+
+ def files_parameters(
+ self,
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
+ ):
+ """Builds form parameters.
+
+ :param files: File parameters.
+ :return: Form parameters with files.
+ """
+ params = []
+ for k, v in files.items():
+ if isinstance(v, str):
+ with open(v, "rb") as f:
+ filename = os.path.basename(f.name)
+ filedata = f.read()
+ elif isinstance(v, bytes):
+ filename = k
+ filedata = v
+ elif isinstance(v, tuple):
+ filename, filedata = v
+ elif isinstance(v, list):
+ for file_param in v:
+ params.extend(self.files_parameters({k: file_param}))
+ continue
+ else:
+ raise ValueError("Unsupported file value")
+ mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream"
+ params.append(tuple([k, tuple([filename, filedata, mimetype])]))
+ return params
+
+ def select_header_accept(self, accepts: List[str]) -> Optional[str]:
+ """Returns `Accept` based on an array of accepts provided.
+
+ :param accepts: List of headers.
+ :return: Accept (e.g. application/json).
+ """
+ if not accepts:
+ return None
+
+ for accept in accepts:
+ if re.search("json", accept, re.IGNORECASE):
+ return accept
+
+ return accepts[0]
+
+ def select_header_content_type(self, content_types):
+ """Returns `Content-Type` based on an array of content_types provided.
+
+ :param content_types: List of content-types.
+ :return: Content-Type (e.g. application/json).
+ """
+ if not content_types:
+ return None
+
+ for content_type in content_types:
+ if re.search("json", content_type, re.IGNORECASE):
+ return content_type
+
+ return content_types[0]
+
+ def update_params_for_auth(
+ self,
+ headers,
+ queries,
+ auth_settings,
+ resource_path,
+ method,
+ body,
+ request_auth=None,
+ ) -> None:
+ """Updates header and query params based on authentication setting.
+
+ :param headers: Header parameters dict to be updated.
+ :param queries: Query parameters tuple list to be updated.
+ :param auth_settings: Authentication setting identifiers list.
+ :resource_path: A string representation of the HTTP request resource path.
+ :method: A string representation of the HTTP request method.
+ :body: A object representing the body of the HTTP request.
+ The object type is the return value of sanitize_for_serialization().
+ :param request_auth: if set, the provided settings will
+ override the token in the configuration.
+ """
+ if not auth_settings:
+ return
+
+ if request_auth:
+ self._apply_auth_params(
+ headers, queries, resource_path, method, body, request_auth
+ )
+ else:
+ for auth in auth_settings:
+ auth_setting = self.configuration.auth_settings().get(auth)
+ if auth_setting:
+ self._apply_auth_params(
+ headers, queries, resource_path, method, body, auth_setting
+ )
+
+ def _apply_auth_params(
+ self, headers, queries, resource_path, method, body, auth_setting
+ ) -> None:
+ """Updates the request parameters based on a single auth_setting
+
+ :param headers: Header parameters dict to be updated.
+ :param queries: Query parameters tuple list to be updated.
+ :resource_path: A string representation of the HTTP request resource path.
+ :method: A string representation of the HTTP request method.
+ :body: A object representing the body of the HTTP request.
+ The object type is the return value of sanitize_for_serialization().
+ :param auth_setting: auth settings for the endpoint
+ """
+ if auth_setting["in"] == "cookie":
+ headers["Cookie"] = auth_setting["value"]
+ elif auth_setting["in"] == "header":
+ if auth_setting["type"] != "http-signature":
+ headers[auth_setting["key"]] = auth_setting["value"]
+ elif auth_setting["in"] == "query":
+ queries.append((auth_setting["key"], auth_setting["value"]))
+ else:
+ raise ApiValueError("Authentication token must be in `query` or `header`")
+
+ def __deserialize_file(self, response):
+ """Deserializes body to file
+
+ Saves response body into a file in a temporary folder,
+ using the filename from the `Content-Disposition` header if provided.
+
+ handle file downloading
+ save response body into a tmp file and return the instance
+
+ :param response: RESTResponse.
+ :return: file path.
+ """
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
+ os.close(fd)
+ os.remove(path)
+
+ content_disposition = response.getheader("Content-Disposition")
+ if content_disposition:
+ m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition)
+ assert m is not None, "Unexpected 'content-disposition' header value"
+ filename = m.group(1)
+ path = os.path.join(os.path.dirname(path), filename)
+
+ with open(path, "wb") as f:
+ f.write(response.data)
+
+ return path
+
+ def __deserialize_primitive(self, data, klass):
+ """Deserializes string to primitive type.
+
+ :param data: str.
+ :param klass: class literal.
+
+ :return: int, long, float, str, bool.
+ """
+ try:
+ return klass(data)
+ except UnicodeEncodeError:
+ return str(data)
+ except TypeError:
+ return data
+
+ def __deserialize_object(self, value):
+ """Return an original value.
+
+ :return: object.
+ """
+ return value
+
+ def __deserialize_date(self, string):
+ """Deserializes string to date.
+
+ :param string: str.
+ :return: date.
+ """
+ try:
+ return parse(string).date()
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0, reason="Failed to parse `{0}` as date object".format(string)
+ )
+
+ def __deserialize_datetime(self, string):
+ """Deserializes string to datetime.
+
+ The string should be in iso8601 datetime format.
+
+ :param string: str.
+ :return: datetime.
+ """
+ try:
+ return parse(string)
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason=("Failed to parse `{0}` as datetime object".format(string)),
+ )
+
+ def __deserialize_enum(self, data, klass):
+ """Deserializes primitive type to enum.
+
+ :param data: primitive type.
+ :param klass: class literal.
+ :return: enum value.
+ """
+ try:
+ return klass(data)
+ except ValueError:
+ raise rest.ApiException(
+ status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass))
+ )
+
+ def __deserialize_model(self, data, klass):
+ """Deserializes list or dict to model.
+
+ :param data: dict, list.
+ :param klass: class literal.
+ :return: model object.
+ """
+
+ return klass.from_dict(data)
diff --git a/calcasa/api/api_response.py b/calcasa/api/api_response.py
new file mode 100644
index 0000000..1ce1372
--- /dev/null
+++ b/calcasa/api/api_response.py
@@ -0,0 +1,20 @@
+"""API response object."""
+
+from __future__ import annotations
+from typing import Optional, Generic, Mapping, TypeVar
+from pydantic import Field, StrictInt, StrictBytes, BaseModel
+
+T = TypeVar("T")
+
+
+class ApiResponse(BaseModel, Generic[T]):
+ """
+ API response object
+ """
+
+ status_code: StrictInt = Field(description="HTTP status code")
+ headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers")
+ data: T = Field(description="Deserialized data given the data type")
+ raw_data: StrictBytes = Field(description="Raw data (HTTP response body)")
+
+ model_config = {"arbitrary_types_allowed": True}
diff --git a/calcasa-api/configuration.py b/calcasa/api/configuration.py
similarity index 51%
rename from calcasa-api/configuration.py
rename to calcasa/api/configuration.py
index 1ea10da..4df63eb 100644
--- a/calcasa-api/configuration.py
+++ b/calcasa/api/configuration.py
@@ -1,81 +1,170 @@
+# coding: utf-8
+
"""
- Copyright 2021 Calcasa B.V.
+Copyright 2025 Calcasa B.V.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
- Calcasa Public API v0
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
"""
import copy
+import http.client as httplib
import logging
+from logging import FileHandler
import multiprocessing
import sys
-import urllib3
+from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
+from typing_extensions import NotRequired, Self
-from http import client as http_client
-from calcasa-api.exceptions import ApiValueError
+import urllib3
JSON_SCHEMA_VALIDATION_KEYWORDS = {
- 'multipleOf', 'maximum', 'exclusiveMaximum',
- 'minimum', 'exclusiveMinimum', 'maxLength',
- 'minLength', 'pattern', 'maxItems', 'minItems'
+ "multipleOf",
+ "maximum",
+ "exclusiveMaximum",
+ "minimum",
+ "exclusiveMinimum",
+ "maxLength",
+ "minLength",
+ "pattern",
+ "maxItems",
+ "minItems",
}
-class Configuration(object):
- """NOTE: This class is auto generated by OpenAPI Generator
-
- Ref: https://openapi-generator.tech
- Do not edit the class manually.
-
- :param host: Base url
+ServerVariablesT = Dict[str, str]
+
+GenericAuthSetting = TypedDict(
+ "GenericAuthSetting",
+ {
+ "type": str,
+ "in": str,
+ "key": str,
+ "value": str,
+ },
+)
+
+
+OAuth2AuthSetting = TypedDict(
+ "OAuth2AuthSetting",
+ {
+ "type": Literal["oauth2"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+APIKeyAuthSetting = TypedDict(
+ "APIKeyAuthSetting",
+ {
+ "type": Literal["api_key"],
+ "in": str,
+ "key": str,
+ "value": Optional[str],
+ },
+)
+
+
+BasicAuthSetting = TypedDict(
+ "BasicAuthSetting",
+ {
+ "type": Literal["basic"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": Optional[str],
+ },
+)
+
+
+BearerFormatAuthSetting = TypedDict(
+ "BearerFormatAuthSetting",
+ {
+ "type": Literal["bearer"],
+ "in": Literal["header"],
+ "format": Literal["JWT"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+BearerAuthSetting = TypedDict(
+ "BearerAuthSetting",
+ {
+ "type": Literal["bearer"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": str,
+ },
+)
+
+
+HTTPSignatureAuthSetting = TypedDict(
+ "HTTPSignatureAuthSetting",
+ {
+ "type": Literal["http-signature"],
+ "in": Literal["header"],
+ "key": Literal["Authorization"],
+ "value": None,
+ },
+)
+
+
+AuthSettings = TypedDict(
+ "AuthSettings",
+ {
+ "oauth": OAuth2AuthSetting,
+ },
+ total=False,
+)
+
+
+class HostSettingVariable(TypedDict):
+ description: str
+ default_value: str
+ enum_values: List[str]
+
+
+class HostSetting(TypedDict):
+ url: str
+ description: str
+ variables: NotRequired[Dict[str, HostSettingVariable]]
+
+
+class Configuration:
+ """This class contains various settings of the API client.
+
+ :param host: Base url.
+ :param ignore_operation_servers
+ Boolean to ignore operation servers for the API client.
+ Config will use `host` as the base url regardless of the operation servers.
:param api_key: Dict to store API key(s).
Each entry in the dict specifies an API key.
The dict key is the name of the security scheme in the OAS specification.
The dict value is the API key secret.
- :param api_key_prefix: Dict to store API prefix (e.g. Bearer)
+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
The dict key is the name of the security scheme in the OAS specification.
The dict value is an API key prefix when generating the auth data.
- :param username: Username for HTTP basic authentication
- :param password: Password for HTTP basic authentication
- :param discard_unknown_keys: Boolean value indicating whether to discard
- unknown properties. A server may send a response that includes additional
- properties that are not known by the client in the following scenarios:
- 1. The OpenAPI document is incomplete, i.e. it does not match the server
- implementation.
- 2. The client was generated using an older version of the OpenAPI document
- and the server has been upgraded since then.
- If a schema in the OpenAPI document defines the additionalProperties attribute,
- then all undeclared properties received by the server are injected into the
- additional properties map. In that case, there are undeclared properties, and
- nothing to discard.
- :param disabled_client_side_validations (string): Comma-separated list of
- JSON schema validation keywords to disable JSON schema structural validation
- rules. The following keywords may be specified: multipleOf, maximum,
- exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,
- maxItems, minItems.
- By default, the validation is performed for data generated locally by the client
- and data received from the server, independent of any validation performed by
- the server side. If the input data does not satisfy the JSON schema validation
- rules specified in the OpenAPI document, an exception is raised.
- If disabled_client_side_validations is set, structural validation is
- disabled. This can be useful to troubleshoot data validation problem, such as
- when the OpenAPI document validation rules do not match the actual API data
- received by the server.
+ :param username: Username for HTTP basic authentication.
+ :param password: Password for HTTP basic authentication.
+ :param access_token: Access token.
:param server_index: Index to servers configuration.
:param server_variables: Mapping with string values to replace variables in
templated server configuration. The validation of enums is performed for
@@ -84,28 +173,40 @@ class Configuration(object):
configuration.
:param server_operation_variables: Mapping from operation ID to a mapping with
string values to replace variables in templated server configuration.
- The validation of enums is performed for variables with defined enum values before.
+ The validation of enums is performed for variables with defined enum
+ values before.
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
- in PEM format
+ in PEM format.
+ :param retries: Number of retries for API requests.
+ :param ca_cert_data: verify the peer using concatenated CA certificate data
+ in PEM (str) or DER (bytes) format.
:Example:
"""
- _default = None
-
- def __init__(self, host=None,
- api_key=None, api_key_prefix=None,
- access_token=None,
- username=None, password=None,
- discard_unknown_keys=False,
- disabled_client_side_validations="",
- server_index=None, server_variables=None,
- server_operation_index=None, server_operation_variables=None,
- ssl_ca_cert=None,
- ):
- """Constructor
- """
- self._base_path = "https://api.calcasa.nl" if host is None else host
+ _default: ClassVar[Optional[Self]] = None
+
+ def __init__(
+ self,
+ host: Optional[str] = None,
+ api_key: Optional[Dict[str, str]] = None,
+ api_key_prefix: Optional[Dict[str, str]] = None,
+ username: Optional[str] = None,
+ password: Optional[str] = None,
+ access_token: Optional[str] = None,
+ server_index: Optional[int] = None,
+ server_variables: Optional[ServerVariablesT] = None,
+ server_operation_index: Optional[Dict[int, int]] = None,
+ server_operation_variables: Optional[Dict[int, ServerVariablesT]] = None,
+ ignore_operation_servers: bool = False,
+ ssl_ca_cert: Optional[str] = None,
+ retries: Optional[int] = None,
+ ca_cert_data: Optional[Union[str, bytes]] = None,
+ *,
+ debug: Optional[bool] = None,
+ ) -> None:
+ """Constructor"""
+ self._base_path = "https://api.calcasa.nl/api/v1" if host is None else host
"""Default Base url
"""
self.server_index = 0 if server_index is None and host is None else server_index
@@ -116,11 +217,13 @@ def __init__(self, host=None,
self.server_operation_variables = server_operation_variables or {}
"""Default server variables
"""
+ self.ignore_operation_servers = ignore_operation_servers
+ """Ignore operation servers
+ """
self.temp_folder_path = None
"""Temp file folder for downloading files
"""
# Authentication Settings
- self.access_token = access_token
self.api_key = {}
if api_key:
self.api_key = api_key
@@ -140,26 +243,30 @@ def __init__(self, host=None,
self.password = password
"""Password for HTTP basic authentication
"""
- self.discard_unknown_keys = discard_unknown_keys
- self.disabled_client_side_validations = disabled_client_side_validations
+ self.access_token = access_token
+ """Access token
+ """
self.logger = {}
"""Logging Settings
"""
- self.logger["package_logger"] = logging.getLogger("calcasa-api")
+ self.logger["package_logger"] = logging.getLogger("calcasa.api")
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
- self.logger_format = '%(asctime)s %(levelname)s %(message)s'
+ self.logger_format = "%(asctime)s %(levelname)s %(message)s"
"""Log format
"""
self.logger_stream_handler = None
"""Log stream handler
"""
- self.logger_file_handler = None
+ self.logger_file_handler: Optional[FileHandler] = None
"""Log file handler
"""
self.logger_file = None
"""Debug file location
"""
- self.debug = False
+ if debug is not None:
+ self.debug = debug
+ else:
+ self.__debug = False
"""Debug switch
"""
@@ -171,6 +278,10 @@ def __init__(self, host=None,
self.ssl_ca_cert = ssl_ca_cert
"""Set this to customize the certificate file to verify the peer.
"""
+ self.ca_cert_data = ca_cert_data
+ """Set this to verify the peer using PEM (str) or DER (bytes)
+ certificate data.
+ """
self.cert_file = None
"""client certificate file
"""
@@ -180,6 +291,10 @@ def __init__(self, host=None,
self.assert_hostname = None
"""Set this to True/False to enable/disable SSL hostname verification.
"""
+ self.tls_server_name = None
+ """SSL/TLS Server Name Indication (SNI)
+ Set this to the SNI value expected by the server.
+ """
self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
"""urllib3 connection pool's maximum number of connections saved
@@ -189,33 +304,39 @@ def __init__(self, host=None,
cpu_count * 5 is used as default value to increase performance.
"""
- self.proxy = None
+ self.proxy: Optional[str] = None
"""Proxy URL
"""
- self.no_proxy = None
- """bypass proxy for host in the no_proxy list.
- """
self.proxy_headers = None
"""Proxy headers
"""
- self.safe_chars_for_path_param = ''
+ self.safe_chars_for_path_param = ""
"""Safe chars for path_param
"""
- self.retries = None
+ self.retries = retries
"""Adding retries to override urllib3 default value 3
"""
# Enable client side validation
self.client_side_validation = True
- # Options to pass down to the underlying urllib3 socket
self.socket_options = None
+ """Options to pass down to the underlying urllib3 socket
+ """
- def __deepcopy__(self, memo):
+ self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
+ """datetime format
+ """
+
+ self.date_format = "%Y-%m-%d"
+ """date format
+ """
+
+ def __deepcopy__(self, memo: Dict[int, Any]) -> Self:
cls = self.__class__
result = cls.__new__(cls)
memo[id(self)] = result
for k, v in self.__dict__.items():
- if k not in ('logger', 'logger_file_handler'):
+ if k not in ("logger", "logger_file_handler"):
setattr(result, k, copy.deepcopy(v, memo))
# shallow copy of loggers
result.logger = copy.copy(self.logger)
@@ -224,18 +345,11 @@ def __deepcopy__(self, memo):
result.debug = self.debug
return result
- def __setattr__(self, name, value):
+ def __setattr__(self, name: str, value: Any) -> None:
object.__setattr__(self, name, value)
- if name == 'disabled_client_side_validations':
- s = set(filter(None, value.split(',')))
- for v in s:
- if v not in JSON_SCHEMA_VALIDATION_KEYWORDS:
- raise ApiValueError(
- "Invalid keyword: '{0}''".format(v))
- self._disabled_client_side_validations = s
@classmethod
- def set_default(cls, default):
+ def set_default(cls, default: Optional[Self]) -> None:
"""Set default instance of configuration.
It stores default configuration, which can be
@@ -243,24 +357,34 @@ def set_default(cls, default):
:param default: object of Configuration
"""
- cls._default = copy.deepcopy(default)
+ cls._default = default
@classmethod
- def get_default_copy(cls):
- """Return new instance of configuration.
+ def get_default_copy(cls) -> Self:
+ """Deprecated. Please use `get_default` instead.
+
+ Deprecated. Please use `get_default` instead.
+
+ :return: The configuration object.
+ """
+ return cls.get_default()
+
+ @classmethod
+ def get_default(cls) -> Self:
+ """Return the default configuration.
This method returns newly created, based on default constructor,
object of Configuration class or returns a copy of default
- configuration passed by the set_default method.
+ configuration.
:return: The configuration object.
"""
- if cls._default is not None:
- return copy.deepcopy(cls._default)
- return Configuration()
+ if cls._default is None:
+ cls._default = cls()
+ return cls._default
@property
- def logger_file(self):
+ def logger_file(self) -> Optional[str]:
"""The logger file.
If the logger_file is None, then add stream handler and remove file
@@ -272,7 +396,7 @@ def logger_file(self):
return self.__logger_file
@logger_file.setter
- def logger_file(self, value):
+ def logger_file(self, value: Optional[str]) -> None:
"""The logger file.
If the logger_file is None, then add stream handler and remove file
@@ -291,7 +415,7 @@ def logger_file(self, value):
logger.addHandler(self.logger_file_handler)
@property
- def debug(self):
+ def debug(self) -> bool:
"""Debug status
:param value: The debug status, True or False.
@@ -300,7 +424,7 @@ def debug(self):
return self.__debug
@debug.setter
- def debug(self, value):
+ def debug(self, value: bool) -> None:
"""Debug status
:param value: The debug status, True or False.
@@ -311,18 +435,18 @@ def debug(self, value):
# if debug status is True, turn on debug logging
for _, logger in self.logger.items():
logger.setLevel(logging.DEBUG)
- # turn on http_client debug
- http_client.HTTPConnection.debuglevel = 1
+ # turn on httplib debug
+ httplib.HTTPConnection.debuglevel = 1
else:
# if debug status is False, turn off debug logging,
# setting log level to default `logging.WARNING`
for _, logger in self.logger.items():
logger.setLevel(logging.WARNING)
- # turn off http_client debug
- http_client.HTTPConnection.debuglevel = 0
+ # turn off httplib debug
+ httplib.HTTPConnection.debuglevel = 0
@property
- def logger_format(self):
+ def logger_format(self) -> str:
"""The logger format.
The logger_formatter will be updated when sets logger_format.
@@ -333,7 +457,7 @@ def logger_format(self):
return self.__logger_format
@logger_format.setter
- def logger_format(self, value):
+ def logger_format(self, value: str) -> None:
"""The logger format.
The logger_formatter will be updated when sets logger_format.
@@ -344,7 +468,9 @@ def logger_format(self, value):
self.__logger_format = value
self.logger_formatter = logging.Formatter(self.__logger_format)
- def get_api_key_with_prefix(self, identifier, alias=None):
+ def get_api_key_with_prefix(
+ self, identifier: str, alias: Optional[str] = None
+ ) -> Optional[str]:
"""Gets API key (with prefix if set).
:param identifier: The identifier of apiKey.
@@ -353,7 +479,9 @@ def get_api_key_with_prefix(self, identifier, alias=None):
"""
if self.refresh_api_key_hook is not None:
self.refresh_api_key_hook(self)
- key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)
+ key = self.api_key.get(
+ identifier, self.api_key.get(alias) if alias is not None else None
+ )
if key:
prefix = self.api_key_prefix.get(identifier)
if prefix:
@@ -361,7 +489,9 @@ def get_api_key_with_prefix(self, identifier, alias=None):
else:
return key
- def get_basic_auth_token(self):
+ return None
+
+ def get_basic_auth_token(self) -> Optional[str]:
"""Gets HTTP basic authentication header (string).
:return: The token for basic HTTP authentication.
@@ -372,50 +502,74 @@ def get_basic_auth_token(self):
password = ""
if self.password is not None:
password = self.password
- return urllib3.util.make_headers(
- basic_auth=username + ':' + password
- ).get('authorization')
+ return urllib3.util.make_headers(basic_auth=username + ":" + password).get(
+ "authorization"
+ )
- def auth_settings(self):
+ def auth_settings(self) -> AuthSettings:
"""Gets Auth Settings dict for api client.
:return: The Auth Settings information dict.
"""
- auth = {}
+ auth: AuthSettings = {}
if self.access_token is not None:
- auth['oauth'] = {
- 'type': 'oauth2',
- 'in': 'header',
- 'key': 'Authorization',
- 'value': 'Bearer ' + self.access_token
+ auth["oauth"] = {
+ "type": "oauth2",
+ "in": "header",
+ "key": "Authorization",
+ "value": "Bearer " + self.access_token,
}
return auth
- def to_debug_report(self):
+ def to_debug_report(self) -> str:
"""Gets the essential information for debugging.
:return: The report for debugging.
"""
- return "Python SDK Debug Report:\n"\
- "OS: {env}\n"\
- "Python Version: {pyversion}\n"\
- "Version of the API: 0.0.6\n"\
- "SDK Package Version: 0.0.6".\
- format(env=sys.platform, pyversion=sys.version)
+ return (
+ "Python SDK Debug Report:\n"
+ "OS: {env}\n"
+ "Python Version: {pyversion}\n"
+ "Version of the API: 1.4.0\n"
+ "SDK Package Version: 1.4.0".format(env=sys.platform, pyversion=sys.version)
+ )
- def get_host_settings(self):
+ def get_host_settings(self) -> List[HostSetting]:
"""Gets an array of host settings
:return: An array of host settings
"""
return [
{
- 'url': "https://api.calcasa.nl",
- 'description': "Production",
- }
+ "url": "https://api.calcasa.nl/api/{apiVersion}",
+ "description": "Production",
+ "variables": {
+ "apiVersion": {
+ "description": "No description provided",
+ "default_value": "v1",
+ "enum_values": ["v1"],
+ }
+ },
+ },
+ {
+ "url": "https://api.staging.calcasa.nl/api/{apiVersion}",
+ "description": "Staging",
+ "variables": {
+ "apiVersion": {
+ "description": "No description provided",
+ "default_value": "v1",
+ "enum_values": ["v1"],
+ }
+ },
+ },
]
- def get_host_from_settings(self, index, variables=None, servers=None):
+ def get_host_from_settings(
+ self,
+ index: Optional[int],
+ variables: Optional[ServerVariablesT] = None,
+ servers: Optional[List[HostSetting]] = None,
+ ) -> str:
"""Gets host URL based on the index and variables
:param index: array index of the host settings
:param variables: hash of variable and the corresponding value
@@ -433,34 +587,36 @@ def get_host_from_settings(self, index, variables=None, servers=None):
except IndexError:
raise ValueError(
"Invalid index {0} when selecting the host settings. "
- "Must be less than {1}".format(index, len(servers)))
+ "Must be less than {1}".format(index, len(servers))
+ )
- url = server['url']
+ url = server["url"]
# go through variables and replace placeholders
- for variable_name, variable in server.get('variables', {}).items():
- used_value = variables.get(
- variable_name, variable['default_value'])
+ for variable_name, variable in server.get("variables", {}).items():
+ used_value = variables.get(variable_name, variable["default_value"])
- if 'enum_values' in variable \
- and used_value not in variable['enum_values']:
+ if "enum_values" in variable and used_value not in variable["enum_values"]:
raise ValueError(
"The variable `{0}` in the host URL has invalid value "
"{1}. Must be {2}.".format(
- variable_name, variables[variable_name],
- variable['enum_values']))
+ variable_name, variables[variable_name], variable["enum_values"]
+ )
+ )
url = url.replace("{" + variable_name + "}", used_value)
return url
@property
- def host(self):
+ def host(self) -> str:
"""Return generated host."""
- return self.get_host_from_settings(self.server_index, variables=self.server_variables)
+ return self.get_host_from_settings(
+ self.server_index, variables=self.server_variables
+ )
@host.setter
- def host(self, value):
+ def host(self, value: str) -> None:
"""Fix base path."""
self._base_path = value
self.server_index = None
diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py
new file mode 100644
index 0000000..c6ed4db
--- /dev/null
+++ b/calcasa/api/exceptions.py
@@ -0,0 +1,230 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+from typing import Any, Optional
+from typing_extensions import Self
+
+
+class OpenApiException(Exception):
+ """The base exception class for all OpenAPIExceptions"""
+
+
+class ApiTypeError(OpenApiException, TypeError):
+ def __init__(
+ self, msg, path_to_item=None, valid_classes=None, key_type=None
+ ) -> None:
+ """Raises an exception for TypeErrors
+
+ Args:
+ msg (str): the exception message
+
+ Keyword Args:
+ path_to_item (list): a list of keys an indices to get to the
+ current_item
+ None if unset
+ valid_classes (tuple): the primitive classes that current item
+ should be an instance of
+ None if unset
+ key_type (bool): False if our value is a value in a dict
+ True if it is a key in a dict
+ False if our item is an item in a list
+ None if unset
+ """
+ self.path_to_item = path_to_item
+ self.valid_classes = valid_classes
+ self.key_type = key_type
+ full_msg = msg
+ if path_to_item:
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
+ super(ApiTypeError, self).__init__(full_msg)
+
+
+class ApiValueError(OpenApiException, ValueError):
+ def __init__(self, msg, path_to_item=None) -> None:
+ """
+ Args:
+ msg (str): the exception message
+
+ Keyword Args:
+ path_to_item (list) the path to the exception in the
+ received_data dict. None if unset
+ """
+
+ self.path_to_item = path_to_item
+ full_msg = msg
+ if path_to_item:
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
+ super(ApiValueError, self).__init__(full_msg)
+
+
+class ApiAttributeError(OpenApiException, AttributeError):
+ def __init__(self, msg, path_to_item=None) -> None:
+ """
+ Raised when an attribute reference or assignment fails.
+
+ Args:
+ msg (str): the exception message
+
+ Keyword Args:
+ path_to_item (None/list) the path to the exception in the
+ received_data dict
+ """
+ self.path_to_item = path_to_item
+ full_msg = msg
+ if path_to_item:
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
+ super(ApiAttributeError, self).__init__(full_msg)
+
+
+class ApiKeyError(OpenApiException, KeyError):
+ def __init__(self, msg, path_to_item=None) -> None:
+ """
+ Args:
+ msg (str): the exception message
+
+ Keyword Args:
+ path_to_item (None/list) the path to the exception in the
+ received_data dict
+ """
+ self.path_to_item = path_to_item
+ full_msg = msg
+ if path_to_item:
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
+ super(ApiKeyError, self).__init__(full_msg)
+
+
+class ApiException(OpenApiException):
+
+ def __init__(
+ self,
+ status=None,
+ reason=None,
+ http_resp=None,
+ *,
+ body: Optional[str] = None,
+ data: Optional[Any] = None,
+ ) -> None:
+ self.status = status
+ self.reason = reason
+ self.body = body
+ self.data = data
+ self.headers = None
+
+ if http_resp:
+ if self.status is None:
+ self.status = http_resp.status
+ if self.reason is None:
+ self.reason = http_resp.reason
+ if self.body is None:
+ try:
+ self.body = http_resp.data.decode("utf-8")
+ except Exception:
+ pass
+ self.headers = http_resp.getheaders()
+
+ @classmethod
+ def from_response(
+ cls,
+ *,
+ http_resp,
+ body: Optional[str],
+ data: Optional[Any],
+ ) -> Self:
+ if http_resp.status == 400:
+ raise BadRequestException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 401:
+ raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 403:
+ raise ForbiddenException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 404:
+ raise NotFoundException(http_resp=http_resp, body=body, data=data)
+
+ # Added new conditions for 409 and 422
+ if http_resp.status == 409:
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
+
+ if http_resp.status == 422:
+ raise UnprocessableEntityException(
+ http_resp=http_resp, body=body, data=data
+ )
+
+ if 500 <= http_resp.status <= 599:
+ raise ServiceException(http_resp=http_resp, body=body, data=data)
+ raise ApiException(http_resp=http_resp, body=body, data=data)
+
+ def __str__(self):
+ """Custom error messages for exception"""
+ error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason)
+ if self.headers:
+ error_message += "HTTP response headers: {0}\n".format(self.headers)
+
+ if self.data or self.body:
+ error_message += "HTTP response body: {0}\n".format(self.data or self.body)
+
+ return error_message
+
+
+class BadRequestException(ApiException):
+ pass
+
+
+class NotFoundException(ApiException):
+ pass
+
+
+class UnauthorizedException(ApiException):
+ pass
+
+
+class ForbiddenException(ApiException):
+ pass
+
+
+class ServiceException(ApiException):
+ pass
+
+
+class ConflictException(ApiException):
+ """Exception for HTTP 409 Conflict."""
+
+ pass
+
+
+class UnprocessableEntityException(ApiException):
+ """Exception for HTTP 422 Unprocessable Entity."""
+
+ pass
+
+
+def render_path(path_to_item):
+ """Returns a string representation of a path"""
+ result = ""
+ for pth in path_to_item:
+ if isinstance(pth, int):
+ result += "[{0}]".format(pth)
+ else:
+ result += "['{0}']".format(pth)
+ return result
diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py
new file mode 100644
index 0000000..b67025e
--- /dev/null
+++ b/calcasa/api/models/__init__.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+# flake8: noqa
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+# import models into model package
+from calcasa.api.models.aanvraagdoel import Aanvraagdoel
+from calcasa.api.models.adres import Adres
+from calcasa.api.models.adres_info import AdresInfo
+from calcasa.api.models.bestemmingsdata import Bestemmingsdata
+from calcasa.api.models.bodem_status_type import BodemStatusType
+from calcasa.api.models.bodemdata import Bodemdata
+from calcasa.api.models.business_rules_code import BusinessRulesCode
+from calcasa.api.models.business_rules_problem_details import (
+ BusinessRulesProblemDetails,
+)
+from calcasa.api.models.callback import Callback
+from calcasa.api.models.callback_inschrijving import CallbackInschrijving
+from calcasa.api.models.cbs_indeling import CbsIndeling
+from calcasa.api.models.deel_waardering_webhook_payload import (
+ DeelWaarderingWebhookPayload,
+)
+from calcasa.api.models.energielabel import Energielabel
+from calcasa.api.models.energielabel_data import EnergielabelData
+from calcasa.api.models.factuur import Factuur
+from calcasa.api.models.foto import Foto
+from calcasa.api.models.fundering_data_bron import FunderingDataBron
+from calcasa.api.models.fundering_herstel_type import FunderingHerstelType
+from calcasa.api.models.fundering_risico import FunderingRisico
+from calcasa.api.models.fundering_risico_label import FunderingRisicoLabel
+from calcasa.api.models.fundering_soort_bron import FunderingSoortBron
+from calcasa.api.models.fundering_type import FunderingType
+from calcasa.api.models.fundering_typering import FunderingTypering
+from calcasa.api.models.funderingdata import Funderingdata
+from calcasa.api.models.gebiedsdata import Gebiedsdata
+from calcasa.api.models.geldverstrekker import Geldverstrekker
+from calcasa.api.models.invalid_argument_problem_details import (
+ InvalidArgumentProblemDetails,
+)
+from calcasa.api.models.klantwaarde_type import KlantwaardeType
+from calcasa.api.models.kwartaal import Kwartaal
+from calcasa.api.models.modeldata import Modeldata
+from calcasa.api.models.not_found_problem_details import NotFoundProblemDetails
+from calcasa.api.models.notitie import Notitie
+from calcasa.api.models.notities import Notities
+from calcasa.api.models.objectdata import Objectdata
+from calcasa.api.models.omgevingsdata import Omgevingsdata
+from calcasa.api.models.operation import Operation
+from calcasa.api.models.operation_type import OperationType
+from calcasa.api.models.permissions_denied_problem_details import (
+ PermissionsDeniedProblemDetails,
+)
+from calcasa.api.models.problem_details import ProblemDetails
+from calcasa.api.models.product_type import ProductType
+from calcasa.api.models.rapport import Rapport
+from calcasa.api.models.referentieobject import Referentieobject
+from calcasa.api.models.resource_exhausted_problem_details import (
+ ResourceExhaustedProblemDetails,
+)
+from calcasa.api.models.taxatiedata import Taxatiedata
+from calcasa.api.models.taxatiestatus import Taxatiestatus
+from calcasa.api.models.unauthorized_problem_details import UnauthorizedProblemDetails
+from calcasa.api.models.validation_problem_details import ValidationProblemDetails
+from calcasa.api.models.verkoop_bijzonderheden import VerkoopBijzonderheden
+from calcasa.api.models.version_names import VersionNames
+from calcasa.api.models.vorige_verkoop import VorigeVerkoop
+from calcasa.api.models.waardering import Waardering
+from calcasa.api.models.waardering_input_parameters import WaarderingInputParameters
+from calcasa.api.models.waardering_ontwikkeling import WaarderingOntwikkeling
+from calcasa.api.models.waardering_ontwikkeling_kwartaal import (
+ WaarderingOntwikkelingKwartaal,
+)
+from calcasa.api.models.waardering_status import WaarderingStatus
+from calcasa.api.models.waardering_webhook_payload import WaarderingWebhookPayload
+from calcasa.api.models.waardering_zoek_parameters import WaarderingZoekParameters
+from calcasa.api.models.webhook_payload import WebhookPayload
+from calcasa.api.models.woning_type import WoningType
diff --git a/calcasa/api/models/aanvraagdoel.py b/calcasa/api/models/aanvraagdoel.py
new file mode 100644
index 0000000..36354c2
--- /dev/null
+++ b/calcasa/api/models/aanvraagdoel.py
@@ -0,0 +1,50 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class Aanvraagdoel(str, Enum):
+ """
+ English: Request Goal. | Waarde | Omschrijving | | --- | --- | | `onbekend` | English: Unknown. | | `aankoopNieuweWoning` | English: New Home Purchase. | | `overbruggingsfinanciering` | English: Bridge Financing. | | `hypotheekOversluiten` | English: Refinancing Mortgage. | | `hypotheekOphogen` | English: Increasing Mortage. | | `hypotheekWijziging` | English: Changing Mortgage. | | `hypotheekrenteWijzigen` | English: Change Mortgage Intrest. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ AANKOOPNIEUWEWONING = "aankoopNieuweWoning"
+ OVERBRUGGINGSFINANCIERING = "overbruggingsfinanciering"
+ HYPOTHEEKOVERSLUITEN = "hypotheekOversluiten"
+ HYPOTHEEKOPHOGEN = "hypotheekOphogen"
+ HYPOTHEEKWIJZIGING = "hypotheekWijziging"
+ HYPOTHEEKRENTEWIJZIGEN = "hypotheekrenteWijzigen"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of Aanvraagdoel from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/adres.py b/calcasa/api/models/adres.py
new file mode 100644
index 0000000..bf45704
--- /dev/null
+++ b/calcasa/api/models/adres.py
@@ -0,0 +1,143 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Adres(BaseModel):
+ """
+ Adres
+ """ # noqa: E501
+
+ straat: Optional[StrictStr] = Field(
+ default=None,
+ description="De straatnaam zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).",
+ )
+ huisnummer: Optional[StrictInt] = Field(default=None, description="Het huisnummer.")
+ huisnummertoevoeging: Optional[StrictStr] = Field(
+ default=None, description="De huisnummertoevoeging."
+ )
+ postcode: Optional[Annotated[str, Field(strict=True)]] = Field(
+ default=None,
+ description="De postcode met 4 cijfers en 2 letters zonder spatie.",
+ )
+ woonplaats: Optional[StrictStr] = Field(
+ default=None,
+ description="De woonplaats zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).",
+ )
+ __properties: ClassVar[List[str]] = [
+ "straat",
+ "huisnummer",
+ "huisnummertoevoeging",
+ "postcode",
+ "woonplaats",
+ ]
+
+ @field_validator("postcode")
+ def postcode_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[0-9]{4}[A-Z]{2}$", value):
+ raise ValueError(
+ r"must validate the regular expression /^[0-9]{4}[A-Z]{2}$/"
+ )
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Adres from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if huisnummertoevoeging (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.huisnummertoevoeging is None
+ and "huisnummertoevoeging" in self.model_fields_set
+ ):
+ _dict["huisnummertoevoeging"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Adres from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "straat": obj.get("straat"),
+ "huisnummer": obj.get("huisnummer"),
+ "huisnummertoevoeging": obj.get("huisnummertoevoeging"),
+ "postcode": obj.get("postcode"),
+ "woonplaats": obj.get("woonplaats"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/adres_info.py b/calcasa/api/models/adres_info.py
new file mode 100644
index 0000000..a928fa4
--- /dev/null
+++ b/calcasa/api/models/adres_info.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.adres import Adres
+from calcasa.api.models.notities import Notities
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class AdresInfo(BaseModel):
+ """
+ AdresInfo
+ """ # noqa: E501
+
+ bag_nummeraanduiding_id: StrictInt = Field(
+ description="Het BAG nummeraanduiding Id van het adres. Normaal aangevuld met nullen tot 16 karakters.",
+ alias="bagNummeraanduidingId",
+ )
+ adres: Optional[Adres] = None
+ notities: Optional[Notities] = None
+ adres_gevonden: Optional[StrictBool] = Field(
+ default=None,
+ description="Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.",
+ alias="adresGevonden",
+ )
+ __properties: ClassVar[List[str]] = [
+ "bagNummeraanduidingId",
+ "adres",
+ "notities",
+ "adresGevonden",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AdresInfo from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of adres
+ if self.adres:
+ _dict["adres"] = self.adres.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of notities
+ if self.notities:
+ _dict["notities"] = self.notities.to_dict()
+ # set to None if adres_gevonden (nullable) is None
+ # and model_fields_set contains the field
+ if self.adres_gevonden is None and "adres_gevonden" in self.model_fields_set:
+ _dict["adresGevonden"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AdresInfo from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "bagNummeraanduidingId": obj.get("bagNummeraanduidingId"),
+ "adres": (
+ Adres.from_dict(obj["adres"])
+ if obj.get("adres") is not None
+ else None
+ ),
+ "notities": (
+ Notities.from_dict(obj["notities"])
+ if obj.get("notities") is not None
+ else None
+ ),
+ "adresGevonden": obj.get("adresGevonden"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/bestemmingsdata.py b/calcasa/api/models/bestemmingsdata.py
new file mode 100644
index 0000000..a16c8e6
--- /dev/null
+++ b/calcasa/api/models/bestemmingsdata.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Bestemmingsdata(BaseModel):
+ """
+ Bestemmingsdata
+ """ # noqa: E501
+
+ enkelbestemming: Optional[StrictStr] = Field(
+ default=None, description="De enkelbestemming volgens het bestemmingsplan."
+ )
+ datum_bestemmingplan: Optional[date] = Field(
+ default=None,
+ description="De datum waarop dit bestemmingsplan vastgelegd is.",
+ alias="datumBestemmingplan",
+ )
+ __properties: ClassVar[List[str]] = ["enkelbestemming", "datumBestemmingplan"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Bestemmingsdata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if enkelbestemming (nullable) is None
+ # and model_fields_set contains the field
+ if self.enkelbestemming is None and "enkelbestemming" in self.model_fields_set:
+ _dict["enkelbestemming"] = None
+
+ # set to None if datum_bestemmingplan (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.datum_bestemmingplan is None
+ and "datum_bestemmingplan" in self.model_fields_set
+ ):
+ _dict["datumBestemmingplan"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Bestemmingsdata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "enkelbestemming": obj.get("enkelbestemming"),
+ "datumBestemmingplan": obj.get("datumBestemmingplan"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/bodem_status_type.py b/calcasa/api/models/bodem_status_type.py
new file mode 100644
index 0000000..85e133a
--- /dev/null
+++ b/calcasa/api/models/bodem_status_type.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class BodemStatusType(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `geenData` | Er is geen data beschikbaar over deze bodem. | | `onbekend` | De status van deze bodem is niet bekend. | | `nietVervuild` | De bodem is niet vervuild. | | `nietErnstig` | De bodem is niet ernstig vervuild. | | `potentieelErnstig` | De bodem is potentieel ernstig veruild. | | `ernstig` | De bodem is ernstig veruild. |
+ """
+
+ """
+ allowed enum values
+ """
+ GEENDATA = "geenData"
+ ONBEKEND = "onbekend"
+ NIETVERVUILD = "nietVervuild"
+ NIETERNSTIG = "nietErnstig"
+ POTENTIEELERNSTIG = "potentieelErnstig"
+ ERNSTIG = "ernstig"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of BodemStatusType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/bodemdata.py b/calcasa/api/models/bodemdata.py
new file mode 100644
index 0000000..52406c9
--- /dev/null
+++ b/calcasa/api/models/bodemdata.py
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.bodem_status_type import BodemStatusType
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Bodemdata(BaseModel):
+ """
+ Bodemdata
+ """ # noqa: E501
+
+ status: Optional[BodemStatusType] = None
+ datum_laatste_onderzoek: Optional[date] = Field(
+ default=None,
+ description="De datum van het laatste bodemonderzoek.",
+ alias="datumLaatsteOnderzoek",
+ )
+ url: Optional[StrictStr] = Field(
+ default=None, description="De url met informatie over het bodemonderzoek."
+ )
+ __properties: ClassVar[List[str]] = ["status", "datumLaatsteOnderzoek", "url"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Bodemdata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if datum_laatste_onderzoek (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.datum_laatste_onderzoek is None
+ and "datum_laatste_onderzoek" in self.model_fields_set
+ ):
+ _dict["datumLaatsteOnderzoek"] = None
+
+ # set to None if url (nullable) is None
+ # and model_fields_set contains the field
+ if self.url is None and "url" in self.model_fields_set:
+ _dict["url"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Bodemdata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "status": obj.get("status"),
+ "datumLaatsteOnderzoek": obj.get("datumLaatsteOnderzoek"),
+ "url": obj.get("url"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/business_rules_code.py b/calcasa/api/models/business_rules_code.py
new file mode 100644
index 0000000..67f6695
--- /dev/null
+++ b/calcasa/api/models/business_rules_code.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class BusinessRulesCode(str, Enum):
+ """
+ Reden voor het niet voldoen aan de business rules. | Waarde | Omschrijving | | --- | --- | | `geenWaardebepalingMogelijk` | De ingevoerde woning kan modelmatig niet goed genoeg worden vastgesteld. | | `geenBestaandeWoning` | Geen bestaande koopwoning. | | `fouteOfOntbrekendeInvoer` | Noodzakelijke invoer ontbreekt of is foutief ingevoerd. | | `calcasaWaardeTeHoog` | Calcasa-waarde is te hoog volgens de business rules. | | `ltvTeHoog` | Loan-to-value is te hoog volgens de business rules. | | `hypotheekTeHoog` | Hypotheekbedrag is te hoog volgens de business rules. | | `woningtypeIncorrect` | Woningtype is incorrect volgens de business rules. | | `calcasaWaardeTeLaag` | Calcasa-waarde is te laag volgens de business rules. | | `calcasaWaardeTeHoogVoorNhg` | Calcasa-waarde is te hoog voor een NHG-waardering volgens de business rules. | | `calcasaWaardeEnKoopsomTeHoogVoorNhg` | Calcasa-waarde en ingevoerde koopsom zijn te hoog voor een NHG-waardering volgens de business rules. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | | `geenEigenBewoning` | Woning is niet bestemd voor eigen bewoning. | | `incorrecteErfpacht` | Erfpachtsituatie is niet toegestaan volgens de business rules. |
+ """
+
+ """
+ allowed enum values
+ """
+ GEENWAARDEBEPALINGMOGELIJK = "geenWaardebepalingMogelijk"
+ GEENBESTAANDEWONING = "geenBestaandeWoning"
+ FOUTEOFONTBREKENDEINVOER = "fouteOfOntbrekendeInvoer"
+ CALCASAWAARDETEHOOG = "calcasaWaardeTeHoog"
+ LTVTEHOOG = "ltvTeHoog"
+ HYPOTHEEKTEHOOG = "hypotheekTeHoog"
+ WONINGTYPEINCORRECT = "woningtypeIncorrect"
+ CALCASAWAARDETELAAG = "calcasaWaardeTeLaag"
+ CALCASAWAARDETEHOOGVOORNHG = "calcasaWaardeTeHoogVoorNhg"
+ CALCASAWAARDEENKOOPSOMTEHOOGVOORNHG = "calcasaWaardeEnKoopsomTeHoogVoorNhg"
+ LTVTEHOOGOVERBRUGGING = "ltvTeHoogOverbrugging"
+ GEENEIGENBEWONING = "geenEigenBewoning"
+ INCORRECTEERFPACHT = "incorrecteErfpacht"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of BusinessRulesCode from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/business_rules_problem_details.py b/calcasa/api/models/business_rules_problem_details.py
new file mode 100644
index 0000000..9b624b8
--- /dev/null
+++ b/calcasa/api/models/business_rules_problem_details.py
@@ -0,0 +1,156 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.business_rules_code import BusinessRulesCode
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class BusinessRulesProblemDetails(BaseModel):
+ """
+ BusinessRulesProblemDetails
+ """ # noqa: E501
+
+ business_rules_code: Optional[BusinessRulesCode] = Field(
+ default=None, alias="businessRulesCode"
+ )
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "businessRulesCode",
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BusinessRulesProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BusinessRulesProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "businessRulesCode": obj.get("businessRulesCode"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/callback.py b/calcasa/api/models/callback.py
new file mode 100644
index 0000000..23e4d22
--- /dev/null
+++ b/calcasa/api/models/callback.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Callback(BaseModel):
+ """
+ Callback
+ """ # noqa: E501
+
+ version: Optional[StrictStr] = Field(
+ default=None,
+ description="De API versie waarvoor deze callback aangeroepen wordt.",
+ )
+ url: Optional[Annotated[str, Field(strict=True, max_length=2048)]] = Field(
+ default=None,
+ description="De URL van de callback. Bij het aanroepen zal de CallbackName hier achter geplaatst worden. Null of lege string om te verwijderen. English: when making the call, the CallbackName will be appended to this Url. Null or empty string to remove.",
+ )
+ __properties: ClassVar[List[str]] = ["version", "url"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Callback from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if url (nullable) is None
+ # and model_fields_set contains the field
+ if self.url is None and "url" in self.model_fields_set:
+ _dict["url"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Callback from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {"version": obj.get("version"), "url": obj.get("url")}
+ )
+ return _obj
diff --git a/calcasa/api/models/callback_inschrijving.py b/calcasa/api/models/callback_inschrijving.py
new file mode 100644
index 0000000..dc01722
--- /dev/null
+++ b/calcasa/api/models/callback_inschrijving.py
@@ -0,0 +1,135 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class CallbackInschrijving(BaseModel):
+ """
+ CallbackInschrijving
+ """ # noqa: E501
+
+ bag_nummeraanduiding_id: StrictInt = Field(
+ description="Verplicht. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id.",
+ alias="bagNummeraanduidingId",
+ )
+ geldig_tot: datetime = Field(
+ description="Verplicht. De datum tot wanneer deze inschrijving effect moet hebben. Als deze inschrijving verloopt wordt deze automatisch opgeruimt. De maximale termijn is afhankelijk van de gebruikte client.",
+ alias="geldigTot",
+ )
+ externe_referentie: Optional[StrictStr] = Field(
+ default=None,
+ description="Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.",
+ alias="externeReferentie",
+ )
+ geldverstrekker: Optional[StrictStr] = Field(
+ default=None,
+ description="Optioneel veld om alleen op aanvragen voor een bepaalde geldverstrekker in te schrijven.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "bagNummeraanduidingId",
+ "geldigTot",
+ "externeReferentie",
+ "geldverstrekker",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CallbackInschrijving from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if externe_referentie (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.externe_referentie is None
+ and "externe_referentie" in self.model_fields_set
+ ):
+ _dict["externeReferentie"] = None
+
+ # set to None if geldverstrekker (nullable) is None
+ # and model_fields_set contains the field
+ if self.geldverstrekker is None and "geldverstrekker" in self.model_fields_set:
+ _dict["geldverstrekker"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CallbackInschrijving from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "bagNummeraanduidingId": obj.get("bagNummeraanduidingId"),
+ "geldigTot": obj.get("geldigTot"),
+ "externeReferentie": obj.get("externeReferentie"),
+ "geldverstrekker": obj.get("geldverstrekker"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/cbs_indeling.py b/calcasa/api/models/cbs_indeling.py
new file mode 100644
index 0000000..2cf862f
--- /dev/null
+++ b/calcasa/api/models/cbs_indeling.py
@@ -0,0 +1,125 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class CbsIndeling(BaseModel):
+ """
+ CbsIndeling
+ """ # noqa: E501
+
+ buurt_id: Optional[StrictInt] = Field(
+ default=None,
+ description="De buurt code zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).",
+ alias="buurtId",
+ )
+ buurt_code: Optional[StrictStr] = Field(
+ default=None,
+ description="De buurt code zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).",
+ alias="buurtCode",
+ )
+ buurtnaam: Optional[StrictStr] = Field(
+ default=None, description="De naam van de buurt."
+ )
+ wijknaam: Optional[StrictStr] = Field(
+ default=None, description="De naam van de wijk."
+ )
+ gemeentenaam: Optional[StrictStr] = Field(
+ default=None, description="De naam van de gemeente."
+ )
+ __properties: ClassVar[List[str]] = [
+ "buurtId",
+ "buurtCode",
+ "buurtnaam",
+ "wijknaam",
+ "gemeentenaam",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CbsIndeling from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CbsIndeling from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "buurtId": obj.get("buurtId"),
+ "buurtCode": obj.get("buurtCode"),
+ "buurtnaam": obj.get("buurtnaam"),
+ "wijknaam": obj.get("wijknaam"),
+ "gemeentenaam": obj.get("gemeentenaam"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/deel_waardering_webhook_payload.py b/calcasa/api/models/deel_waardering_webhook_payload.py
new file mode 100644
index 0000000..eec9c22
--- /dev/null
+++ b/calcasa/api/models/deel_waardering_webhook_payload.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from uuid import UUID
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class DeelWaarderingWebhookPayload(BaseModel):
+ """
+ De payload van de webhooks die verstuurd worden op het moment dat een klant toestemming geeft voor het delen van een waardering.
+ """ # noqa: E501
+
+ callback_name: StrictStr = Field(alias="callbackName")
+ event_id: UUID = Field(description="Uniek Id voor deze callback.", alias="eventId")
+ timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.")
+ waardering_id: Optional[UUID] = Field(
+ default=None,
+ description="Het Id van de waardering waarop deze callback betrekking heeft.",
+ alias="waarderingId",
+ )
+ __properties: ClassVar[List[str]] = [
+ "callbackName",
+ "eventId",
+ "timestamp",
+ "waarderingId",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DeelWaarderingWebhookPayload from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ * OpenAPI `readOnly` fields are excluded.
+ """
+ excluded_fields: Set[str] = set(
+ [
+ "callback_name",
+ ]
+ )
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DeelWaarderingWebhookPayload from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "callbackName": obj.get("callbackName"),
+ "eventId": obj.get("eventId"),
+ "timestamp": obj.get("timestamp"),
+ "waarderingId": obj.get("waarderingId"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/energielabel.py b/calcasa/api/models/energielabel.py
new file mode 100644
index 0000000..30b660e
--- /dev/null
+++ b/calcasa/api/models/energielabel.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class Energielabel(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `g` | | | `f` | | | `e` | | | `d` | | | `c` | | | `b` | | | `a` | | | `a1` | A+. | | `a2` | A++. | | `a3` | A+++. | | `a4` | A++++. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ G = "g"
+ F = "f"
+ E = "e"
+ D = "d"
+ C = "c"
+ B = "b"
+ A = "a"
+ A1 = "a1"
+ A2 = "a2"
+ A3 = "a3"
+ A4 = "a4"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of Energielabel from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/energielabel_data.py b/calcasa/api/models/energielabel_data.py
new file mode 100644
index 0000000..f9531e8
--- /dev/null
+++ b/calcasa/api/models/energielabel_data.py
@@ -0,0 +1,135 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class EnergielabelData(BaseModel):
+ """
+ EnergielabelData
+ """ # noqa: E501
+
+ aantal_sterren: Optional[StrictInt] = Field(
+ default=None,
+ description="Het aantal sterren van het energielabel. 1 is voorlopig label. 3 is beperkt definitief label (zonder energieprestatie-index). 4 is definitief label met energieprestatie-index.",
+ alias="aantalSterren",
+ )
+ geldig_tot: Optional[date] = Field(
+ default=None,
+ description="De registratiedatum. Beschikbaar voor 2 en 3 sterrenlabels.",
+ alias="geldigTot",
+ )
+ registratiedatum: Optional[date] = Field(
+ default=None,
+ description="De datum tot wanneer het label geldig is. Beschikbaar voor 2 en 3 sterrenlabels.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "aantalSterren",
+ "geldigTot",
+ "registratiedatum",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EnergielabelData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if aantal_sterren (nullable) is None
+ # and model_fields_set contains the field
+ if self.aantal_sterren is None and "aantal_sterren" in self.model_fields_set:
+ _dict["aantalSterren"] = None
+
+ # set to None if geldig_tot (nullable) is None
+ # and model_fields_set contains the field
+ if self.geldig_tot is None and "geldig_tot" in self.model_fields_set:
+ _dict["geldigTot"] = None
+
+ # set to None if registratiedatum (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.registratiedatum is None
+ and "registratiedatum" in self.model_fields_set
+ ):
+ _dict["registratiedatum"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EnergielabelData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "aantalSterren": obj.get("aantalSterren"),
+ "geldigTot": obj.get("geldigTot"),
+ "registratiedatum": obj.get("registratiedatum"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/factuur.py b/calcasa/api/models/factuur.py
new file mode 100644
index 0000000..b8f27de
--- /dev/null
+++ b/calcasa/api/models/factuur.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from uuid import UUID
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Factuur(BaseModel):
+ """
+ Factuur
+ """ # noqa: E501
+
+ id: UUID = Field(description="Het factuur Id.")
+ factuurnummer: StrictStr = Field(description="Het factuurnummer van de factuur.")
+ __properties: ClassVar[List[str]] = ["id", "factuurnummer"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Factuur from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Factuur from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {"id": obj.get("id"), "factuurnummer": obj.get("factuurnummer")}
+ )
+ return _obj
diff --git a/calcasa/api/models/foto.py b/calcasa/api/models/foto.py
new file mode 100644
index 0000000..fc9117b
--- /dev/null
+++ b/calcasa/api/models/foto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from uuid import UUID
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Foto(BaseModel):
+ """
+ Foto
+ """ # noqa: E501
+
+ id: Optional[UUID] = Field(default=None, description="Het foto Id.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Foto from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Foto from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({"id": obj.get("id")})
+ return _obj
diff --git a/calcasa/api/models/fundering_data_bron.py b/calcasa/api/models/fundering_data_bron.py
new file mode 100644
index 0000000..dc0d318
--- /dev/null
+++ b/calcasa/api/models/fundering_data_bron.py
@@ -0,0 +1,45 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class FunderingDataBron(str, Enum):
+ """
+ Bron waar de funderingsinformatie opgehaald is. | Waarde | Omschrijving | | --- | --- | | `calcasa` | Calcasa data. | | `fundermaps` | Fundermaps data. |
+ """
+
+ """
+ allowed enum values
+ """
+ CALCASA = "calcasa"
+ FUNDERMAPS = "fundermaps"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of FunderingDataBron from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/fundering_herstel_type.py b/calcasa/api/models/fundering_herstel_type.py
new file mode 100644
index 0000000..490d85e
--- /dev/null
+++ b/calcasa/api/models/fundering_herstel_type.py
@@ -0,0 +1,48 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class FunderingHerstelType(str, Enum):
+ """
+ Herstel-types voor funderingen. | Waarde | Omschrijving | | --- | --- | | `onbekendHerstelType` | Hersteltype is onbekend. | | `vergunning` | O.b.v. vergunning. | | `funderingRapport` | O.b.v. fundering-rapport. | | `archiefRapport` | O.b.v. archief-rapport. | | `eigenaarBewijs` | O.b.v. bewijs van eigenaar. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKENDHERSTELTYPE = "onbekendHerstelType"
+ VERGUNNING = "vergunning"
+ FUNDERINGRAPPORT = "funderingRapport"
+ ARCHIEFRAPPORT = "archiefRapport"
+ EIGENAARBEWIJS = "eigenaarBewijs"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of FunderingHerstelType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/fundering_risico.py b/calcasa/api/models/fundering_risico.py
new file mode 100644
index 0000000..d34520f
--- /dev/null
+++ b/calcasa/api/models/fundering_risico.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.fundering_risico_label import FunderingRisicoLabel
+from calcasa.api.models.fundering_soort_bron import FunderingSoortBron
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class FunderingRisico(BaseModel):
+ """
+ Informatie over een bepaald funderingrisico.
+ """ # noqa: E501
+
+ label: Optional[FunderingRisicoLabel] = None
+ bron: Optional[FunderingSoortBron] = None
+ omschrijving: Optional[StrictStr] = Field(
+ default=None, description="De omschrijving van het risico."
+ )
+ __properties: ClassVar[List[str]] = ["label", "bron", "omschrijving"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunderingRisico from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunderingRisico from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "label": obj.get("label"),
+ "bron": obj.get("bron"),
+ "omschrijving": obj.get("omschrijving"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/fundering_risico_label.py b/calcasa/api/models/fundering_risico_label.py
new file mode 100644
index 0000000..cef4cf3
--- /dev/null
+++ b/calcasa/api/models/fundering_risico_label.py
@@ -0,0 +1,47 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class FunderingRisicoLabel(str, Enum):
+ """
+ Indicatie voor een funderingsrisico. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Risico klasse onbekend. | | `laag` | Laagste risico. | | `gemiddeld` | Gemiddeld risico. | | `hoog` | Hoogste risico. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ LAAG = "laag"
+ GEMIDDELD = "gemiddeld"
+ HOOG = "hoog"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of FunderingRisicoLabel from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/fundering_soort_bron.py b/calcasa/api/models/fundering_soort_bron.py
new file mode 100644
index 0000000..ea6bcf8
--- /dev/null
+++ b/calcasa/api/models/fundering_soort_bron.py
@@ -0,0 +1,47 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class FunderingSoortBron(str, Enum):
+ """
+ Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ MODEL = "model"
+ DOCUMENT = "document"
+ BOUWEENHEID = "bouweenheid"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of FunderingSoortBron from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/fundering_type.py b/calcasa/api/models/fundering_type.py
new file mode 100644
index 0000000..415c0a3
--- /dev/null
+++ b/calcasa/api/models/fundering_type.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class FunderingType(str, Enum):
+ """
+ Funderingstypes. | Waarde | Omschrijving | | --- | --- | | `onbekendFunderingType` | Onbekend fundering-type. | | `hout` | Hout. | | `houtAmsterdam` | Hout, Amsterdamse variant. | | `houtRotterdam` | Hout, Rotterdamse variant. | | `beton` | Beton. | | `nietOnderheid` | Niet onderheid. | | `nietOnderheidGemetseld` | Niet onderheid, gemetseld. | | `nietOnderheidStroken` | Niet onderheid, stroken. | | `nietOnderheidPlaat` | Niet onderheid, plaat. | | `nietOnderheidBetonplaat` | Niet onderheid, betonplaat. | | `nietOnderheidSlieten` | Niet onderheid, slieten. | | `houtOplanger` | Hout met oplanger. | | `betonVerzwaard` | Beton verzwaard. | | `gecombineerd` | Gecombineerd. | | `staal` | Stalen buispaal. | | `houtAmsterdamRotterdam` | Houten paal, Rotterdam/Amsterdam methode. | | `houtRotterdamSpaarboog` | Houten paal, Rotterdam methode met spaarboog. | | `houtAmsterdamSpaarboog` | Houten paal, Amsterdam methode met spaarboog. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKENDFUNDERINGTYPE = "onbekendFunderingType"
+ HOUT = "hout"
+ HOUTAMSTERDAM = "houtAmsterdam"
+ HOUTROTTERDAM = "houtRotterdam"
+ BETON = "beton"
+ NIETONDERHEID = "nietOnderheid"
+ NIETONDERHEIDGEMETSELD = "nietOnderheidGemetseld"
+ NIETONDERHEIDSTROKEN = "nietOnderheidStroken"
+ NIETONDERHEIDPLAAT = "nietOnderheidPlaat"
+ NIETONDERHEIDBETONPLAAT = "nietOnderheidBetonplaat"
+ NIETONDERHEIDSLIETEN = "nietOnderheidSlieten"
+ HOUTOPLANGER = "houtOplanger"
+ BETONVERZWAARD = "betonVerzwaard"
+ GECOMBINEERD = "gecombineerd"
+ STAAL = "staal"
+ HOUTAMSTERDAMROTTERDAM = "houtAmsterdamRotterdam"
+ HOUTROTTERDAMSPAARBOOG = "houtRotterdamSpaarboog"
+ HOUTAMSTERDAMSPAARBOOG = "houtAmsterdamSpaarboog"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of FunderingType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/fundering_typering.py b/calcasa/api/models/fundering_typering.py
new file mode 100644
index 0000000..c1902a9
--- /dev/null
+++ b/calcasa/api/models/fundering_typering.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.fundering_soort_bron import FunderingSoortBron
+from calcasa.api.models.fundering_type import FunderingType
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class FunderingTypering(BaseModel):
+ """
+ Informatie over type fundering.
+ """ # noqa: E501
+
+ type: Optional[FunderingType] = None
+ bron: Optional[FunderingSoortBron] = None
+ omschrijving: Optional[StrictStr] = Field(
+ default=None, description="De omschrijving van het funderingstype."
+ )
+ __properties: ClassVar[List[str]] = ["type", "bron", "omschrijving"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunderingTypering from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunderingTypering from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "type": obj.get("type"),
+ "bron": obj.get("bron"),
+ "omschrijving": obj.get("omschrijving"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/funderingdata.py b/calcasa/api/models/funderingdata.py
new file mode 100644
index 0000000..f597790
--- /dev/null
+++ b/calcasa/api/models/funderingdata.py
@@ -0,0 +1,164 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from calcasa.api.models.fundering_data_bron import FunderingDataBron
+from calcasa.api.models.fundering_herstel_type import FunderingHerstelType
+from calcasa.api.models.fundering_risico import FunderingRisico
+from calcasa.api.models.fundering_typering import FunderingTypering
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Funderingdata(BaseModel):
+ """
+ Uitvoer met funderingsinformatie.
+ """ # noqa: E501
+
+ typering: Optional[FunderingTypering] = None
+ herstel_type: Optional[FunderingHerstelType] = Field(
+ default=None, alias="herstelType"
+ )
+ droogstand_risico: Optional[FunderingRisico] = Field(
+ default=None, alias="droogstandRisico"
+ )
+ optrekkend_vocht_risico: Optional[FunderingRisico] = Field(
+ default=None, alias="optrekkendVochtRisico"
+ )
+ bio_infectie_risico: Optional[FunderingRisico] = Field(
+ default=None, alias="bioInfectieRisico"
+ )
+ herstelkosten: Optional[Union[StrictFloat, StrictInt]] = Field(
+ default=None, description="Indicatieve herstelkosten van de fundering."
+ )
+ bron: Optional[FunderingDataBron] = None
+ __properties: ClassVar[List[str]] = [
+ "typering",
+ "herstelType",
+ "droogstandRisico",
+ "optrekkendVochtRisico",
+ "bioInfectieRisico",
+ "herstelkosten",
+ "bron",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Funderingdata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of typering
+ if self.typering:
+ _dict["typering"] = self.typering.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of droogstand_risico
+ if self.droogstand_risico:
+ _dict["droogstandRisico"] = self.droogstand_risico.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of optrekkend_vocht_risico
+ if self.optrekkend_vocht_risico:
+ _dict["optrekkendVochtRisico"] = self.optrekkend_vocht_risico.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of bio_infectie_risico
+ if self.bio_infectie_risico:
+ _dict["bioInfectieRisico"] = self.bio_infectie_risico.to_dict()
+ # set to None if herstelkosten (nullable) is None
+ # and model_fields_set contains the field
+ if self.herstelkosten is None and "herstelkosten" in self.model_fields_set:
+ _dict["herstelkosten"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Funderingdata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "typering": (
+ FunderingTypering.from_dict(obj["typering"])
+ if obj.get("typering") is not None
+ else None
+ ),
+ "herstelType": obj.get("herstelType"),
+ "droogstandRisico": (
+ FunderingRisico.from_dict(obj["droogstandRisico"])
+ if obj.get("droogstandRisico") is not None
+ else None
+ ),
+ "optrekkendVochtRisico": (
+ FunderingRisico.from_dict(obj["optrekkendVochtRisico"])
+ if obj.get("optrekkendVochtRisico") is not None
+ else None
+ ),
+ "bioInfectieRisico": (
+ FunderingRisico.from_dict(obj["bioInfectieRisico"])
+ if obj.get("bioInfectieRisico") is not None
+ else None
+ ),
+ "herstelkosten": obj.get("herstelkosten"),
+ "bron": obj.get("bron"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/gebiedsdata.py b/calcasa/api/models/gebiedsdata.py
new file mode 100644
index 0000000..8b29e8e
--- /dev/null
+++ b/calcasa/api/models/gebiedsdata.py
@@ -0,0 +1,246 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Gebiedsdata(BaseModel):
+ """
+ Gebiedsdata
+ """ # noqa: E501
+
+ naam: Optional[StrictStr] = None
+ gemiddelde_prijs_eengezinswoningen: Optional[
+ Annotated[int, Field(strict=True, ge=0)]
+ ] = Field(
+ default=None,
+ description="In hele euros.",
+ alias="gemiddeldePrijsEengezinswoningen",
+ )
+ gemiddelde_prijs_meergezinswoningen: Optional[
+ Annotated[int, Field(strict=True, ge=0)]
+ ] = Field(
+ default=None,
+ description="In hele euros.",
+ alias="gemiddeldePrijsMeergezinswoningen",
+ )
+ gemiddelde_vierkantemeter_prijs_eengezinswoningen: Optional[
+ Annotated[int, Field(strict=True, ge=0)]
+ ] = Field(
+ default=None,
+ description="In hele euros per vierkante meter.",
+ alias="gemiddeldeVierkantemeterPrijsEengezinswoningen",
+ )
+ gemiddelde_vierkantemeter_prijs_meergezinswoningen: Optional[
+ Annotated[int, Field(strict=True, ge=0)]
+ ] = Field(
+ default=None,
+ description="In hele euros per vierkante meter.",
+ alias="gemiddeldeVierkantemeterPrijsMeergezinswoningen",
+ )
+ prijsverandering_afgelopen_jaar: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele procenten.",
+ alias="prijsveranderingAfgelopenJaar",
+ )
+ prijsverandering_afgelopen3_jaar: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele procenten.",
+ alias="prijsveranderingAfgelopen3Jaar",
+ )
+ prijsverandering_afgelopen5_jaar: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele procenten.",
+ alias="prijsveranderingAfgelopen5Jaar",
+ )
+ prijsverandering_afgelopen10_jaar: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele procenten.",
+ alias="prijsveranderingAfgelopen10Jaar",
+ )
+ __properties: ClassVar[List[str]] = [
+ "naam",
+ "gemiddeldePrijsEengezinswoningen",
+ "gemiddeldePrijsMeergezinswoningen",
+ "gemiddeldeVierkantemeterPrijsEengezinswoningen",
+ "gemiddeldeVierkantemeterPrijsMeergezinswoningen",
+ "prijsveranderingAfgelopenJaar",
+ "prijsveranderingAfgelopen3Jaar",
+ "prijsveranderingAfgelopen5Jaar",
+ "prijsveranderingAfgelopen10Jaar",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Gebiedsdata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if gemiddelde_prijs_eengezinswoningen (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.gemiddelde_prijs_eengezinswoningen is None
+ and "gemiddelde_prijs_eengezinswoningen" in self.model_fields_set
+ ):
+ _dict["gemiddeldePrijsEengezinswoningen"] = None
+
+ # set to None if gemiddelde_prijs_meergezinswoningen (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.gemiddelde_prijs_meergezinswoningen is None
+ and "gemiddelde_prijs_meergezinswoningen" in self.model_fields_set
+ ):
+ _dict["gemiddeldePrijsMeergezinswoningen"] = None
+
+ # set to None if gemiddelde_vierkantemeter_prijs_eengezinswoningen (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.gemiddelde_vierkantemeter_prijs_eengezinswoningen is None
+ and "gemiddelde_vierkantemeter_prijs_eengezinswoningen"
+ in self.model_fields_set
+ ):
+ _dict["gemiddeldeVierkantemeterPrijsEengezinswoningen"] = None
+
+ # set to None if gemiddelde_vierkantemeter_prijs_meergezinswoningen (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.gemiddelde_vierkantemeter_prijs_meergezinswoningen is None
+ and "gemiddelde_vierkantemeter_prijs_meergezinswoningen"
+ in self.model_fields_set
+ ):
+ _dict["gemiddeldeVierkantemeterPrijsMeergezinswoningen"] = None
+
+ # set to None if prijsverandering_afgelopen_jaar (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.prijsverandering_afgelopen_jaar is None
+ and "prijsverandering_afgelopen_jaar" in self.model_fields_set
+ ):
+ _dict["prijsveranderingAfgelopenJaar"] = None
+
+ # set to None if prijsverandering_afgelopen3_jaar (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.prijsverandering_afgelopen3_jaar is None
+ and "prijsverandering_afgelopen3_jaar" in self.model_fields_set
+ ):
+ _dict["prijsveranderingAfgelopen3Jaar"] = None
+
+ # set to None if prijsverandering_afgelopen5_jaar (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.prijsverandering_afgelopen5_jaar is None
+ and "prijsverandering_afgelopen5_jaar" in self.model_fields_set
+ ):
+ _dict["prijsveranderingAfgelopen5Jaar"] = None
+
+ # set to None if prijsverandering_afgelopen10_jaar (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.prijsverandering_afgelopen10_jaar is None
+ and "prijsverandering_afgelopen10_jaar" in self.model_fields_set
+ ):
+ _dict["prijsveranderingAfgelopen10Jaar"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Gebiedsdata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "naam": obj.get("naam"),
+ "gemiddeldePrijsEengezinswoningen": obj.get(
+ "gemiddeldePrijsEengezinswoningen"
+ ),
+ "gemiddeldePrijsMeergezinswoningen": obj.get(
+ "gemiddeldePrijsMeergezinswoningen"
+ ),
+ "gemiddeldeVierkantemeterPrijsEengezinswoningen": obj.get(
+ "gemiddeldeVierkantemeterPrijsEengezinswoningen"
+ ),
+ "gemiddeldeVierkantemeterPrijsMeergezinswoningen": obj.get(
+ "gemiddeldeVierkantemeterPrijsMeergezinswoningen"
+ ),
+ "prijsveranderingAfgelopenJaar": obj.get(
+ "prijsveranderingAfgelopenJaar"
+ ),
+ "prijsveranderingAfgelopen3Jaar": obj.get(
+ "prijsveranderingAfgelopen3Jaar"
+ ),
+ "prijsveranderingAfgelopen5Jaar": obj.get(
+ "prijsveranderingAfgelopen5Jaar"
+ ),
+ "prijsveranderingAfgelopen10Jaar": obj.get(
+ "prijsveranderingAfgelopen10Jaar"
+ ),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/geldverstrekker.py b/calcasa/api/models/geldverstrekker.py
new file mode 100644
index 0000000..c576974
--- /dev/null
+++ b/calcasa/api/models/geldverstrekker.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Geldverstrekker(BaseModel):
+ """
+ Geldverstrekker
+ """ # noqa: E501
+
+ slug: Optional[StrictStr] = Field(
+ default=None,
+ description="De slug voor deze geldverstrekker, dit is de waarde die gebruikt moet worden als input voor andere endpoints.",
+ )
+ name: Optional[StrictStr] = Field(
+ default=None, description="De volledige naam van deze geldverstrekker."
+ )
+ __properties: ClassVar[List[str]] = ["slug", "name"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Geldverstrekker from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Geldverstrekker from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({"slug": obj.get("slug"), "name": obj.get("name")})
+ return _obj
diff --git a/calcasa/api/models/invalid_argument_problem_details.py b/calcasa/api/models/invalid_argument_problem_details.py
new file mode 100644
index 0000000..089b83d
--- /dev/null
+++ b/calcasa/api/models/invalid_argument_problem_details.py
@@ -0,0 +1,153 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class InvalidArgumentProblemDetails(BaseModel):
+ """
+ Invalid argument was provided.
+ """ # noqa: E501
+
+ param_name: Optional[StrictStr] = Field(default=None, alias="paramName")
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "paramName",
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InvalidArgumentProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InvalidArgumentProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "paramName": obj.get("paramName"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/klantwaarde_type.py b/calcasa/api/models/klantwaarde_type.py
new file mode 100644
index 0000000..074d9fa
--- /dev/null
+++ b/calcasa/api/models/klantwaarde_type.py
@@ -0,0 +1,48 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class KlantwaardeType(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ KOOPSOM = "koopsom"
+ TAXATIEWAARDE = "taxatiewaarde"
+ WOZWAARDE = "wozWaarde"
+ EIGENWAARDEINSCHATTING = "eigenWaardeinschatting"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of KlantwaardeType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/kwartaal.py b/calcasa/api/models/kwartaal.py
new file mode 100644
index 0000000..0d37976
--- /dev/null
+++ b/calcasa/api/models/kwartaal.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Kwartaal(BaseModel):
+ """
+ Kwartaal
+ """ # noqa: E501
+
+ jaar: Optional[StrictInt] = None
+ number: Optional[StrictInt] = Field(
+ default=None, description="Het kwartaal van 1 tot 4."
+ )
+ __properties: ClassVar[List[str]] = ["jaar", "number"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Kwartaal from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Kwartaal from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {"jaar": obj.get("jaar"), "number": obj.get("number")}
+ )
+ return _obj
diff --git a/calcasa/api/models/modeldata.py b/calcasa/api/models/modeldata.py
new file mode 100644
index 0000000..5ed9ac6
--- /dev/null
+++ b/calcasa/api/models/modeldata.py
@@ -0,0 +1,123 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Modeldata(BaseModel):
+ """
+ Modeldata
+ """ # noqa: E501
+
+ marktwaarde: Optional[StrictInt] = Field(default=None, description="In hele euros.")
+ marktwaarde_ondergrens: Optional[StrictInt] = Field(
+ default=None, description="In hele euros.", alias="marktwaardeOndergrens"
+ )
+ marktwaarde_bovengrens: Optional[StrictInt] = Field(
+ default=None, description="In hele euros.", alias="marktwaardeBovengrens"
+ )
+ confidence_level: Optional[Union[StrictFloat, StrictInt]] = Field(
+ default=None, description="Op een schaal van 0 tot 7.", alias="confidenceLevel"
+ )
+ waardebepalingsdatum: Optional[date] = None
+ executiewaarde: Optional[StrictInt] = Field(
+ default=None, description="In hele euros."
+ )
+ __properties: ClassVar[List[str]] = [
+ "marktwaarde",
+ "marktwaardeOndergrens",
+ "marktwaardeBovengrens",
+ "confidenceLevel",
+ "waardebepalingsdatum",
+ "executiewaarde",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Modeldata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Modeldata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "marktwaarde": obj.get("marktwaarde"),
+ "marktwaardeOndergrens": obj.get("marktwaardeOndergrens"),
+ "marktwaardeBovengrens": obj.get("marktwaardeBovengrens"),
+ "confidenceLevel": obj.get("confidenceLevel"),
+ "waardebepalingsdatum": obj.get("waardebepalingsdatum"),
+ "executiewaarde": obj.get("executiewaarde"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/not_found_problem_details.py b/calcasa/api/models/not_found_problem_details.py
new file mode 100644
index 0000000..dc47c99
--- /dev/null
+++ b/calcasa/api/models/not_found_problem_details.py
@@ -0,0 +1,153 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class NotFoundProblemDetails(BaseModel):
+ """
+ NotFoundProblemDetails
+ """ # noqa: E501
+
+ entity: Optional[StrictStr] = None
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "entity",
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of NotFoundProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NotFoundProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "entity": obj.get("entity"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/notitie.py b/calcasa/api/models/notitie.py
new file mode 100644
index 0000000..1903441
--- /dev/null
+++ b/calcasa/api/models/notitie.py
@@ -0,0 +1,47 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class Notitie(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `geen` | De input was correct. | | `gecorrigeerd` | De input was gecorrigeerd. | | `onbekend` | De input is onbekend en kon niet gevonden of gecorrigeerd worden. | | `ontbreekt` | De input was leeg en is wel nodig voor een succesvolle zoekopdracht. |
+ """
+
+ """
+ allowed enum values
+ """
+ GEEN = "geen"
+ GECORRIGEERD = "gecorrigeerd"
+ ONBEKEND = "onbekend"
+ ONTBREEKT = "ontbreekt"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of Notitie from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/notities.py b/calcasa/api/models/notities.py
new file mode 100644
index 0000000..bde5ad2
--- /dev/null
+++ b/calcasa/api/models/notities.py
@@ -0,0 +1,112 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.notitie import Notitie
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Notities(BaseModel):
+ """
+ Notities
+ """ # noqa: E501
+
+ straat: Optional[Notitie] = None
+ huisnummer: Optional[Notitie] = None
+ huisnummertoevoeging: Optional[Notitie] = None
+ postcode: Optional[Notitie] = None
+ woonplaats: Optional[Notitie] = None
+ __properties: ClassVar[List[str]] = [
+ "straat",
+ "huisnummer",
+ "huisnummertoevoeging",
+ "postcode",
+ "woonplaats",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Notities from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Notities from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "straat": obj.get("straat"),
+ "huisnummer": obj.get("huisnummer"),
+ "huisnummertoevoeging": obj.get("huisnummertoevoeging"),
+ "postcode": obj.get("postcode"),
+ "woonplaats": obj.get("woonplaats"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/objectdata.py b/calcasa/api/models/objectdata.py
new file mode 100644
index 0000000..95e3935
--- /dev/null
+++ b/calcasa/api/models/objectdata.py
@@ -0,0 +1,135 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.energielabel import Energielabel
+from calcasa.api.models.energielabel_data import EnergielabelData
+from calcasa.api.models.woning_type import WoningType
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Objectdata(BaseModel):
+ """
+ Objectdata
+ """ # noqa: E501
+
+ woning_type: Optional[WoningType] = Field(default=None, alias="woningType")
+ bouwjaar: Optional[StrictInt] = None
+ oppervlak: Optional[StrictInt] = Field(
+ default=None, description="Het woonoppervlak in hele vierkante meters."
+ )
+ perceeloppervlak: Optional[StrictInt] = Field(
+ default=None, description="Het perceeloppervlak in hele vierkante meters."
+ )
+ inhoud: Optional[StrictInt] = Field(
+ default=None, description="De inhoud in hele kubieke meters."
+ )
+ energielabel: Optional[Energielabel] = None
+ energielabel_data: Optional[EnergielabelData] = Field(
+ default=None, alias="energielabelData"
+ )
+ __properties: ClassVar[List[str]] = [
+ "woningType",
+ "bouwjaar",
+ "oppervlak",
+ "perceeloppervlak",
+ "inhoud",
+ "energielabel",
+ "energielabelData",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Objectdata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of energielabel_data
+ if self.energielabel_data:
+ _dict["energielabelData"] = self.energielabel_data.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Objectdata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "woningType": obj.get("woningType"),
+ "bouwjaar": obj.get("bouwjaar"),
+ "oppervlak": obj.get("oppervlak"),
+ "perceeloppervlak": obj.get("perceeloppervlak"),
+ "inhoud": obj.get("inhoud"),
+ "energielabel": obj.get("energielabel"),
+ "energielabelData": (
+ EnergielabelData.from_dict(obj["energielabelData"])
+ if obj.get("energielabelData") is not None
+ else None
+ ),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/omgevingsdata.py b/calcasa/api/models/omgevingsdata.py
new file mode 100644
index 0000000..98569eb
--- /dev/null
+++ b/calcasa/api/models/omgevingsdata.py
@@ -0,0 +1,147 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.gebiedsdata import Gebiedsdata
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Omgevingsdata(BaseModel):
+ """
+ Omgevingsdata
+ """ # noqa: E501
+
+ buurt: Optional[Gebiedsdata] = None
+ wijk: Optional[Gebiedsdata] = None
+ gemeente: Optional[Gebiedsdata] = None
+ provincie: Optional[Gebiedsdata] = None
+ land: Optional[Gebiedsdata] = None
+ __properties: ClassVar[List[str]] = [
+ "buurt",
+ "wijk",
+ "gemeente",
+ "provincie",
+ "land",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Omgevingsdata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of buurt
+ if self.buurt:
+ _dict["buurt"] = self.buurt.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of wijk
+ if self.wijk:
+ _dict["wijk"] = self.wijk.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of gemeente
+ if self.gemeente:
+ _dict["gemeente"] = self.gemeente.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of provincie
+ if self.provincie:
+ _dict["provincie"] = self.provincie.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of land
+ if self.land:
+ _dict["land"] = self.land.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Omgevingsdata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "buurt": (
+ Gebiedsdata.from_dict(obj["buurt"])
+ if obj.get("buurt") is not None
+ else None
+ ),
+ "wijk": (
+ Gebiedsdata.from_dict(obj["wijk"])
+ if obj.get("wijk") is not None
+ else None
+ ),
+ "gemeente": (
+ Gebiedsdata.from_dict(obj["gemeente"])
+ if obj.get("gemeente") is not None
+ else None
+ ),
+ "provincie": (
+ Gebiedsdata.from_dict(obj["provincie"])
+ if obj.get("provincie") is not None
+ else None
+ ),
+ "land": (
+ Gebiedsdata.from_dict(obj["land"])
+ if obj.get("land") is not None
+ else None
+ ),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/operation.py b/calcasa/api/models/operation.py
new file mode 100644
index 0000000..487da0e
--- /dev/null
+++ b/calcasa/api/models/operation.py
@@ -0,0 +1,114 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.operation_type import OperationType
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Operation(BaseModel):
+ """
+ Operation
+ """ # noqa: E501
+
+ op: Optional[OperationType] = None
+ var_from: Optional[StrictStr] = Field(default=None, alias="from")
+ value: Optional[Any] = None
+ path: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["op", "from", "value", "path"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Operation from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if var_from (nullable) is None
+ # and model_fields_set contains the field
+ if self.var_from is None and "var_from" in self.model_fields_set:
+ _dict["from"] = None
+
+ # set to None if value (nullable) is None
+ # and model_fields_set contains the field
+ if self.value is None and "value" in self.model_fields_set:
+ _dict["value"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Operation from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "op": obj.get("op"),
+ "from": obj.get("from"),
+ "value": obj.get("value"),
+ "path": obj.get("path"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/operation_type.py b/calcasa/api/models/operation_type.py
new file mode 100644
index 0000000..f1b9e31
--- /dev/null
+++ b/calcasa/api/models/operation_type.py
@@ -0,0 +1,50 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class OperationType(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `add` | | | `remove` | | | `replace` | | | `move` | | | `copy` | | | `test` | | | `invalid` | |
+ """
+
+ """
+ allowed enum values
+ """
+ ADD = "add"
+ REMOVE = "remove"
+ REPLACE = "replace"
+ MOVE = "move"
+ COPY = "copy"
+ TEST = "test"
+ INVALID = "invalid"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of OperationType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/permissions_denied_problem_details.py b/calcasa/api/models/permissions_denied_problem_details.py
new file mode 100644
index 0000000..2598dd6
--- /dev/null
+++ b/calcasa/api/models/permissions_denied_problem_details.py
@@ -0,0 +1,155 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class PermissionsDeniedProblemDetails(BaseModel):
+ """
+ PermissionsDeniedProblemDetails
+ """ # noqa: E501
+
+ required_permission: Optional[StrictStr] = Field(
+ default=None, alias="requiredPermission"
+ )
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "requiredPermission",
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PermissionsDeniedProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PermissionsDeniedProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "requiredPermission": obj.get("requiredPermission"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/problem_details.py b/calcasa/api/models/problem_details.py
new file mode 100644
index 0000000..88d00a7
--- /dev/null
+++ b/calcasa/api/models/problem_details.py
@@ -0,0 +1,150 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class ProblemDetails(BaseModel):
+ """
+ Base error response model as defined in RFC 7807 Problem Details for HTTP APIs.
+ """ # noqa: E501
+
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/product_type.py b/calcasa/api/models/product_type.py
new file mode 100644
index 0000000..ac955dc
--- /dev/null
+++ b/calcasa/api/models/product_type.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class ProductType(str, Enum):
+ """
+ Het product type voor een waardering. Deze moeten handmatig aangezet worden voor de gebruikte credentails. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Geen geldige invoer. Onbekend product type. | | `modelwaardeCalcasa` | Niet beschikbaar op dit moment.
Modelwaarde aanvraag met Calcasa Waardebepalingrapport. | | `modelwaardeRisico` | Modelwaarde aanvraag met risicorapport. | | `modelwaardeDesktopTaxatie` | Modelwaarde aanvraag met Desktop Taxatie Beknoptwaarderapport. | | `desktopTaxatie` | Desktop taxatie aanvraag met Desktop Taxatie rapport. | | `desktopTaxatieHerwaardering` | Desktop taxatie aanvraag met Desktop Taxatie rapport voor herwaarderingen. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ MODELWAARDECALCASA = "modelwaardeCalcasa"
+ MODELWAARDERISICO = "modelwaardeRisico"
+ MODELWAARDEDESKTOPTAXATIE = "modelwaardeDesktopTaxatie"
+ DESKTOPTAXATIE = "desktopTaxatie"
+ DESKTOPTAXATIEHERWAARDERING = "desktopTaxatieHerwaardering"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of ProductType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/rapport.py b/calcasa/api/models/rapport.py
new file mode 100644
index 0000000..d6231fa
--- /dev/null
+++ b/calcasa/api/models/rapport.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from uuid import UUID
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Rapport(BaseModel):
+ """
+ Rapport
+ """ # noqa: E501
+
+ id: UUID = Field(description="Het rapport Id.")
+ __properties: ClassVar[List[str]] = ["id"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Rapport from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Rapport from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({"id": obj.get("id")})
+ return _obj
diff --git a/calcasa/api/models/referentieobject.py b/calcasa/api/models/referentieobject.py
new file mode 100644
index 0000000..bdeadcd
--- /dev/null
+++ b/calcasa/api/models/referentieobject.py
@@ -0,0 +1,199 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.adres import Adres
+from calcasa.api.models.cbs_indeling import CbsIndeling
+from calcasa.api.models.foto import Foto
+from calcasa.api.models.objectdata import Objectdata
+from calcasa.api.models.verkoop_bijzonderheden import VerkoopBijzonderheden
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Referentieobject(BaseModel):
+ """
+ Referentieobject
+ """ # noqa: E501
+
+ afstand: Optional[StrictInt] = Field(
+ default=None, description="Afstand tot het waarderingsobject in meters."
+ )
+ verkoopprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros."
+ )
+ gecorrigeerde_verkoopprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros.", alias="gecorrigeerdeVerkoopprijs"
+ )
+ geindexeerde_verkoopprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros.", alias="geindexeerdeVerkoopprijs"
+ )
+ vierkantemeterprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros per vierkante meters."
+ )
+ gecorrigeerde_vierkantemeterprijs: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele euros per vierkante meters.",
+ alias="gecorrigeerdeVierkantemeterprijs",
+ )
+ geindexeerde_vierkantemeterprijs: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele euros per vierkante meters.",
+ alias="geindexeerdeVierkantemeterprijs",
+ )
+ verkoopdatum: Optional[date] = Field(default=None, description="In UTC.")
+ adres: Optional[Adres] = None
+ object: Optional[Objectdata] = None
+ cbs_indeling: Optional[CbsIndeling] = Field(default=None, alias="cbsIndeling")
+ fotos: Optional[List[Foto]] = Field(
+ default=None, description="Fotos van het referentieobject."
+ )
+ bijzonderheden: Optional[List[VerkoopBijzonderheden]] = Field(
+ default=None, description="Eventuele bijzonderheden van de transactie."
+ )
+ __properties: ClassVar[List[str]] = [
+ "afstand",
+ "verkoopprijs",
+ "gecorrigeerdeVerkoopprijs",
+ "geindexeerdeVerkoopprijs",
+ "vierkantemeterprijs",
+ "gecorrigeerdeVierkantemeterprijs",
+ "geindexeerdeVierkantemeterprijs",
+ "verkoopdatum",
+ "adres",
+ "object",
+ "cbsIndeling",
+ "fotos",
+ "bijzonderheden",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Referentieobject from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of adres
+ if self.adres:
+ _dict["adres"] = self.adres.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of object
+ if self.object:
+ _dict["object"] = self.object.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of cbs_indeling
+ if self.cbs_indeling:
+ _dict["cbsIndeling"] = self.cbs_indeling.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in fotos (list)
+ _items = []
+ if self.fotos:
+ for _item_fotos in self.fotos:
+ if _item_fotos:
+ _items.append(_item_fotos.to_dict())
+ _dict["fotos"] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Referentieobject from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "afstand": obj.get("afstand"),
+ "verkoopprijs": obj.get("verkoopprijs"),
+ "gecorrigeerdeVerkoopprijs": obj.get("gecorrigeerdeVerkoopprijs"),
+ "geindexeerdeVerkoopprijs": obj.get("geindexeerdeVerkoopprijs"),
+ "vierkantemeterprijs": obj.get("vierkantemeterprijs"),
+ "gecorrigeerdeVierkantemeterprijs": obj.get(
+ "gecorrigeerdeVierkantemeterprijs"
+ ),
+ "geindexeerdeVierkantemeterprijs": obj.get(
+ "geindexeerdeVierkantemeterprijs"
+ ),
+ "verkoopdatum": obj.get("verkoopdatum"),
+ "adres": (
+ Adres.from_dict(obj["adres"])
+ if obj.get("adres") is not None
+ else None
+ ),
+ "object": (
+ Objectdata.from_dict(obj["object"])
+ if obj.get("object") is not None
+ else None
+ ),
+ "cbsIndeling": (
+ CbsIndeling.from_dict(obj["cbsIndeling"])
+ if obj.get("cbsIndeling") is not None
+ else None
+ ),
+ "fotos": (
+ [Foto.from_dict(_item) for _item in obj["fotos"]]
+ if obj.get("fotos") is not None
+ else None
+ ),
+ "bijzonderheden": obj.get("bijzonderheden"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/resource_exhausted_problem_details.py b/calcasa/api/models/resource_exhausted_problem_details.py
new file mode 100644
index 0000000..8e8765e
--- /dev/null
+++ b/calcasa/api/models/resource_exhausted_problem_details.py
@@ -0,0 +1,153 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class ResourceExhaustedProblemDetails(BaseModel):
+ """
+ Resource exhausted.
+ """ # noqa: E501
+
+ resource: Optional[StrictStr] = None
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "resource",
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ResourceExhaustedProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ResourceExhaustedProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "resource": obj.get("resource"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/taxatiedata.py b/calcasa/api/models/taxatiedata.py
new file mode 100644
index 0000000..b89cc1a
--- /dev/null
+++ b/calcasa/api/models/taxatiedata.py
@@ -0,0 +1,126 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.taxatiestatus import Taxatiestatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Taxatiedata(BaseModel):
+ """
+ Taxatiedata
+ """ # noqa: E501
+
+ taxatieorganisatie: Optional[StrictStr] = Field(
+ default=None,
+ description="De interne naam van de taxatieorganisatie. Deze wijzigt niet.",
+ )
+ taxatieorganisatie_weergave: Optional[StrictStr] = Field(
+ default=None,
+ description="De externe of rapport naam van de taxatieorganisatie.",
+ alias="taxatieorganisatieWeergave",
+ )
+ taxateurnaam: Optional[StrictStr] = Field(
+ default=None,
+ description="De naam van de taxateur die de waardering heeft behandeld.",
+ )
+ status: Optional[Taxatiestatus] = None
+ taxatiedatum: Optional[datetime] = Field(
+ default=None,
+ description="De datum/tijd waarop de waardering getaxeerd is, in UTC.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "taxatieorganisatie",
+ "taxatieorganisatieWeergave",
+ "taxateurnaam",
+ "status",
+ "taxatiedatum",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Taxatiedata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Taxatiedata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "taxatieorganisatie": obj.get("taxatieorganisatie"),
+ "taxatieorganisatieWeergave": obj.get("taxatieorganisatieWeergave"),
+ "taxateurnaam": obj.get("taxateurnaam"),
+ "status": obj.get("status"),
+ "taxatiedatum": obj.get("taxatiedatum"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/taxatiestatus.py b/calcasa/api/models/taxatiestatus.py
new file mode 100644
index 0000000..91a823d
--- /dev/null
+++ b/calcasa/api/models/taxatiestatus.py
@@ -0,0 +1,46 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class Taxatiestatus(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `nietGecontroleerd` | Status is onbekend of niet van toepassing. | | `goedgekeurd` | De waardering is geaccepteerd door een taxateur. | | `afgekeurd` | De waardering is afgewezen door een taxateur. |
+ """
+
+ """
+ allowed enum values
+ """
+ NIETGECONTROLEERD = "nietGecontroleerd"
+ GOEDGEKEURD = "goedgekeurd"
+ AFGEKEURD = "afgekeurd"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of Taxatiestatus from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/unauthorized_problem_details.py b/calcasa/api/models/unauthorized_problem_details.py
new file mode 100644
index 0000000..b300d08
--- /dev/null
+++ b/calcasa/api/models/unauthorized_problem_details.py
@@ -0,0 +1,150 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class UnauthorizedProblemDetails(BaseModel):
+ """
+ UnauthorizedProblemDetails
+ """ # noqa: E501
+
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UnauthorizedProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UnauthorizedProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/validation_problem_details.py b/calcasa/api/models/validation_problem_details.py
new file mode 100644
index 0000000..36a2f9b
--- /dev/null
+++ b/calcasa/api/models/validation_problem_details.py
@@ -0,0 +1,153 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class ValidationProblemDetails(BaseModel):
+ """
+ ValidationProblemDetails
+ """ # noqa: E501
+
+ errors: Optional[Dict[str, List[StrictStr]]] = None
+ type: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference [RFC3986] that identifies the problem type.",
+ )
+ title: Optional[StrictStr] = Field(
+ default=None, description="A short, human-readable summary of the problem type."
+ )
+ status: Optional[StrictInt] = Field(
+ default=None,
+ description="The HTTP status code for this occurrence of the problem.",
+ )
+ detail: Optional[StrictStr] = Field(
+ default=None,
+ description="A human-readable explanation specific to this occurrence of the problem.",
+ )
+ instance: Optional[StrictStr] = Field(
+ default=None,
+ description="A URI reference that identifies the specific occurrence of the problem.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "errors",
+ "type",
+ "title",
+ "status",
+ "detail",
+ "instance",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ValidationProblemDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if type (nullable) is None
+ # and model_fields_set contains the field
+ if self.type is None and "type" in self.model_fields_set:
+ _dict["type"] = None
+
+ # set to None if title (nullable) is None
+ # and model_fields_set contains the field
+ if self.title is None and "title" in self.model_fields_set:
+ _dict["title"] = None
+
+ # set to None if status (nullable) is None
+ # and model_fields_set contains the field
+ if self.status is None and "status" in self.model_fields_set:
+ _dict["status"] = None
+
+ # set to None if detail (nullable) is None
+ # and model_fields_set contains the field
+ if self.detail is None and "detail" in self.model_fields_set:
+ _dict["detail"] = None
+
+ # set to None if instance (nullable) is None
+ # and model_fields_set contains the field
+ if self.instance is None and "instance" in self.model_fields_set:
+ _dict["instance"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ValidationProblemDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "errors": obj.get("errors"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "status": obj.get("status"),
+ "detail": obj.get("detail"),
+ "instance": obj.get("instance"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/verkoop_bijzonderheden.py b/calcasa/api/models/verkoop_bijzonderheden.py
new file mode 100644
index 0000000..a3f45d5
--- /dev/null
+++ b/calcasa/api/models/verkoop_bijzonderheden.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class VerkoopBijzonderheden(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `onbekend` | Bijzonderheden onbekend. | | `executieverkoop` | Een indicatie dat het object is verkocht via een executieveiling. | | `familieverkoop` | Een indicatie dat de transactie is geregistreerd als familieverkoop. | | `meerOnroerendGoed` | Een indicatie dat de transactie meerdere percelen bevat. | | `zittendeHuurder` | Een indicatie dat de transactie is geregistreerd als verkoop aan de zittende huurder. | | `verkoperNietNatuurlijk` | Een indicatie dat de verkoper een niet-natuurlijke persoon is. | | `koperNietNatuurlijk` | Een indicatie dat de koper een niet-natuurlijke persoon is. | | `nietWoning` | Een indicatie dat het object geregistreerd is als niet-woning. | | `erfdienstbaarheid` | Een indicatie dat er een erfdienstbaarheid op het object gevestigd is. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ EXECUTIEVERKOOP = "executieverkoop"
+ FAMILIEVERKOOP = "familieverkoop"
+ MEERONROERENDGOED = "meerOnroerendGoed"
+ ZITTENDEHUURDER = "zittendeHuurder"
+ VERKOPERNIETNATUURLIJK = "verkoperNietNatuurlijk"
+ KOPERNIETNATUURLIJK = "koperNietNatuurlijk"
+ NIETWONING = "nietWoning"
+ ERFDIENSTBAARHEID = "erfdienstbaarheid"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of VerkoopBijzonderheden from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/version_names.py b/calcasa/api/models/version_names.py
new file mode 100644
index 0000000..94d4989
--- /dev/null
+++ b/calcasa/api/models/version_names.py
@@ -0,0 +1,44 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class VersionNames(str, Enum):
+ """
+ VersionNames
+ """
+
+ """
+ allowed enum values
+ """
+ V1 = "v1"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of VersionNames from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/vorige_verkoop.py b/calcasa/api/models/vorige_verkoop.py
new file mode 100644
index 0000000..54888b8
--- /dev/null
+++ b/calcasa/api/models/vorige_verkoop.py
@@ -0,0 +1,135 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.verkoop_bijzonderheden import VerkoopBijzonderheden
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class VorigeVerkoop(BaseModel):
+ """
+ VorigeVerkoop
+ """ # noqa: E501
+
+ verkoopprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros."
+ )
+ geindexeerde_verkoopprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros.", alias="geindexeerdeVerkoopprijs"
+ )
+ vierkantemeterprijs: Optional[StrictInt] = Field(
+ default=None, description="In hele euros per vierkante meter."
+ )
+ geindexeerde_vierkantemeterprijs: Optional[StrictInt] = Field(
+ default=None,
+ description="In hele euros per vierkante meter.",
+ alias="geindexeerdeVierkantemeterprijs",
+ )
+ verkoopdatum: Optional[date] = Field(default=None, description="In UTC.")
+ perceeloppervlak: Optional[StrictInt] = Field(
+ default=None, description="Het perceeloppervlak in hele vierkante meters."
+ )
+ bijzonderheden: Optional[List[VerkoopBijzonderheden]] = Field(
+ default=None, description="Eventuele bijzonderheden van de transactie."
+ )
+ __properties: ClassVar[List[str]] = [
+ "verkoopprijs",
+ "geindexeerdeVerkoopprijs",
+ "vierkantemeterprijs",
+ "geindexeerdeVierkantemeterprijs",
+ "verkoopdatum",
+ "perceeloppervlak",
+ "bijzonderheden",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of VorigeVerkoop from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of VorigeVerkoop from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "verkoopprijs": obj.get("verkoopprijs"),
+ "geindexeerdeVerkoopprijs": obj.get("geindexeerdeVerkoopprijs"),
+ "vierkantemeterprijs": obj.get("vierkantemeterprijs"),
+ "geindexeerdeVierkantemeterprijs": obj.get(
+ "geindexeerdeVierkantemeterprijs"
+ ),
+ "verkoopdatum": obj.get("verkoopdatum"),
+ "perceeloppervlak": obj.get("perceeloppervlak"),
+ "bijzonderheden": obj.get("bijzonderheden"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/waardering.py b/calcasa/api/models/waardering.py
new file mode 100644
index 0000000..36738fe
--- /dev/null
+++ b/calcasa/api/models/waardering.py
@@ -0,0 +1,260 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from uuid import UUID
+from calcasa.api.models.adres import Adres
+from calcasa.api.models.cbs_indeling import CbsIndeling
+from calcasa.api.models.factuur import Factuur
+from calcasa.api.models.foto import Foto
+from calcasa.api.models.modeldata import Modeldata
+from calcasa.api.models.objectdata import Objectdata
+from calcasa.api.models.rapport import Rapport
+from calcasa.api.models.referentieobject import Referentieobject
+from calcasa.api.models.taxatiedata import Taxatiedata
+from calcasa.api.models.vorige_verkoop import VorigeVerkoop
+from calcasa.api.models.waardering_input_parameters import WaarderingInputParameters
+from calcasa.api.models.waardering_status import WaarderingStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class Waardering(BaseModel):
+ """
+ Waardering
+ """ # noqa: E501
+
+ id: UUID
+ aangemaakt: datetime = Field(
+ description="Het tijdsstempel van wanneer de waardering aangemaakt is."
+ )
+ status: WaarderingStatus
+ originele_input: WaarderingInputParameters = Field(alias="origineleInput")
+ adres: Adres
+ model: Optional[Modeldata] = None
+ taxatie: Optional[Taxatiedata] = None
+ object: Optional[Objectdata] = None
+ cbs_indeling: Optional[CbsIndeling] = Field(default=None, alias="cbsIndeling")
+ fotos: Optional[List[Foto]] = None
+ referenties: Optional[List[Referentieobject]] = None
+ vorige_verkopen: Optional[List[VorigeVerkoop]] = Field(
+ default=None, alias="vorigeVerkopen"
+ )
+ rapport: Optional[Rapport] = None
+ factuur: Optional[Factuur] = None
+ __properties: ClassVar[List[str]] = [
+ "id",
+ "aangemaakt",
+ "status",
+ "origineleInput",
+ "adres",
+ "model",
+ "taxatie",
+ "object",
+ "cbsIndeling",
+ "fotos",
+ "referenties",
+ "vorigeVerkopen",
+ "rapport",
+ "factuur",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Waardering from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of originele_input
+ if self.originele_input:
+ _dict["origineleInput"] = self.originele_input.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of adres
+ if self.adres:
+ _dict["adres"] = self.adres.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of model
+ if self.model:
+ _dict["model"] = self.model.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of taxatie
+ if self.taxatie:
+ _dict["taxatie"] = self.taxatie.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of object
+ if self.object:
+ _dict["object"] = self.object.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of cbs_indeling
+ if self.cbs_indeling:
+ _dict["cbsIndeling"] = self.cbs_indeling.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in fotos (list)
+ _items = []
+ if self.fotos:
+ for _item_fotos in self.fotos:
+ if _item_fotos:
+ _items.append(_item_fotos.to_dict())
+ _dict["fotos"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in referenties (list)
+ _items = []
+ if self.referenties:
+ for _item_referenties in self.referenties:
+ if _item_referenties:
+ _items.append(_item_referenties.to_dict())
+ _dict["referenties"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in vorige_verkopen (list)
+ _items = []
+ if self.vorige_verkopen:
+ for _item_vorige_verkopen in self.vorige_verkopen:
+ if _item_vorige_verkopen:
+ _items.append(_item_vorige_verkopen.to_dict())
+ _dict["vorigeVerkopen"] = _items
+ # override the default output from pydantic by calling `to_dict()` of rapport
+ if self.rapport:
+ _dict["rapport"] = self.rapport.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of factuur
+ if self.factuur:
+ _dict["factuur"] = self.factuur.to_dict()
+ # set to None if fotos (nullable) is None
+ # and model_fields_set contains the field
+ if self.fotos is None and "fotos" in self.model_fields_set:
+ _dict["fotos"] = None
+
+ # set to None if referenties (nullable) is None
+ # and model_fields_set contains the field
+ if self.referenties is None and "referenties" in self.model_fields_set:
+ _dict["referenties"] = None
+
+ # set to None if vorige_verkopen (nullable) is None
+ # and model_fields_set contains the field
+ if self.vorige_verkopen is None and "vorige_verkopen" in self.model_fields_set:
+ _dict["vorigeVerkopen"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Waardering from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "id": obj.get("id"),
+ "aangemaakt": obj.get("aangemaakt"),
+ "status": obj.get("status"),
+ "origineleInput": (
+ WaarderingInputParameters.from_dict(obj["origineleInput"])
+ if obj.get("origineleInput") is not None
+ else None
+ ),
+ "adres": (
+ Adres.from_dict(obj["adres"])
+ if obj.get("adres") is not None
+ else None
+ ),
+ "model": (
+ Modeldata.from_dict(obj["model"])
+ if obj.get("model") is not None
+ else None
+ ),
+ "taxatie": (
+ Taxatiedata.from_dict(obj["taxatie"])
+ if obj.get("taxatie") is not None
+ else None
+ ),
+ "object": (
+ Objectdata.from_dict(obj["object"])
+ if obj.get("object") is not None
+ else None
+ ),
+ "cbsIndeling": (
+ CbsIndeling.from_dict(obj["cbsIndeling"])
+ if obj.get("cbsIndeling") is not None
+ else None
+ ),
+ "fotos": (
+ [Foto.from_dict(_item) for _item in obj["fotos"]]
+ if obj.get("fotos") is not None
+ else None
+ ),
+ "referenties": (
+ [Referentieobject.from_dict(_item) for _item in obj["referenties"]]
+ if obj.get("referenties") is not None
+ else None
+ ),
+ "vorigeVerkopen": (
+ [VorigeVerkoop.from_dict(_item) for _item in obj["vorigeVerkopen"]]
+ if obj.get("vorigeVerkopen") is not None
+ else None
+ ),
+ "rapport": (
+ Rapport.from_dict(obj["rapport"])
+ if obj.get("rapport") is not None
+ else None
+ ),
+ "factuur": (
+ Factuur.from_dict(obj["factuur"])
+ if obj.get("factuur") is not None
+ else None
+ ),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/waardering_input_parameters.py b/calcasa/api/models/waardering_input_parameters.py
new file mode 100644
index 0000000..f30650a
--- /dev/null
+++ b/calcasa/api/models/waardering_input_parameters.py
@@ -0,0 +1,195 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from calcasa.api.models.aanvraagdoel import Aanvraagdoel
+from calcasa.api.models.klantwaarde_type import KlantwaardeType
+from calcasa.api.models.product_type import ProductType
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class WaarderingInputParameters(BaseModel):
+ """
+ WaarderingInputParameters
+ """ # noqa: E501
+
+ geldverstrekker: Optional[StrictStr] = Field(
+ default=None,
+ description="Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.",
+ )
+ product_type: ProductType = Field(alias="productType")
+ hypotheekwaarde: Optional[StrictInt] = Field(
+ default=None,
+ description="Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Voor het aanvraagdoel `hypotheekOphogen` is dit de som van de huidige hypotheeksom en de ophoging. In hele euros.",
+ )
+ aanvraagdoel: Optional[Aanvraagdoel] = None
+ klantwaarde: Optional[StrictInt] = Field(
+ default=None,
+ description="Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros. De waarde zoals bekend bij de klant met bijbehorende KlantwaardeType.",
+ )
+ klantwaarde_type: Optional[KlantwaardeType] = Field(
+ default=None, alias="klantwaardeType"
+ )
+ is_bestaande_woning: Optional[StrictBool] = Field(
+ default=None,
+ description="Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.",
+ alias="isBestaandeWoning",
+ )
+ bag_nummeraanduiding_id: StrictInt = Field(
+ description="Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id.",
+ alias="bagNummeraanduidingId",
+ )
+ is_nhg: Optional[StrictBool] = Field(
+ default=None,
+ description="Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.",
+ alias="isNhg",
+ )
+ is_bestaande_nhg_hypotheek: Optional[StrictBool] = Field(
+ default=None,
+ description="Verplicht te gebruiken voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`, als er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie (`isNhg`) en het aanvraagdoel niet `aankoopNieuweWoning` is. Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.",
+ alias="isBestaandeNhgHypotheek",
+ )
+ benodigde_overbrugging: Optional[StrictInt] = Field(
+ default=None,
+ description="Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.",
+ alias="benodigdeOverbrugging",
+ )
+ peildatum: Optional[date] = Field(
+ default=None,
+ description="Optioneel te gebruiken voor de producttypen `modelwaardeRisico`. Peildatum voor de aanvraag. Standaard de datum van vandaag. Supports yyyy-MM-dd or optionally yyyy-MM-ddTHH:mm:ssZ (ISO) with the time stamp assumed to be in UTC and the time is dropped before using the value.",
+ )
+ is_erfpacht: Optional[StrictBool] = Field(
+ default=None,
+ description="Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.",
+ alias="isErfpacht",
+ )
+ klantkenmerk: Optional[
+ Annotated[str, Field(min_length=0, strict=True, max_length=100)]
+ ] = Field(
+ default=None,
+ description="Vrij veld voor het opslaan van een klantkenmerk, zoals bijvoorbeeld een dossiernummer of andere interne referentie. Dit veld komt later weer terug in het `origineleInput` veld in het `waardering` object.",
+ )
+ __properties: ClassVar[List[str]] = [
+ "geldverstrekker",
+ "productType",
+ "hypotheekwaarde",
+ "aanvraagdoel",
+ "klantwaarde",
+ "klantwaardeType",
+ "isBestaandeWoning",
+ "bagNummeraanduidingId",
+ "isNhg",
+ "isBestaandeNhgHypotheek",
+ "benodigdeOverbrugging",
+ "peildatum",
+ "isErfpacht",
+ "klantkenmerk",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WaarderingInputParameters from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if peildatum (nullable) is None
+ # and model_fields_set contains the field
+ if self.peildatum is None and "peildatum" in self.model_fields_set:
+ _dict["peildatum"] = None
+
+ # set to None if is_erfpacht (nullable) is None
+ # and model_fields_set contains the field
+ if self.is_erfpacht is None and "is_erfpacht" in self.model_fields_set:
+ _dict["isErfpacht"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WaarderingInputParameters from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "geldverstrekker": obj.get("geldverstrekker"),
+ "productType": obj.get("productType"),
+ "hypotheekwaarde": obj.get("hypotheekwaarde"),
+ "aanvraagdoel": obj.get("aanvraagdoel"),
+ "klantwaarde": obj.get("klantwaarde"),
+ "klantwaardeType": obj.get("klantwaardeType"),
+ "isBestaandeWoning": obj.get("isBestaandeWoning"),
+ "bagNummeraanduidingId": obj.get("bagNummeraanduidingId"),
+ "isNhg": obj.get("isNhg"),
+ "isBestaandeNhgHypotheek": obj.get("isBestaandeNhgHypotheek"),
+ "benodigdeOverbrugging": obj.get("benodigdeOverbrugging"),
+ "peildatum": obj.get("peildatum"),
+ "isErfpacht": obj.get("isErfpacht"),
+ "klantkenmerk": obj.get("klantkenmerk"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/waardering_ontwikkeling.py b/calcasa/api/models/waardering_ontwikkeling.py
new file mode 100644
index 0000000..750f743
--- /dev/null
+++ b/calcasa/api/models/waardering_ontwikkeling.py
@@ -0,0 +1,297 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from uuid import UUID
+from calcasa.api.models.waardering_ontwikkeling_kwartaal import (
+ WaarderingOntwikkelingKwartaal,
+)
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class WaarderingOntwikkeling(BaseModel):
+ """
+ WaarderingOntwikkeling
+ """ # noqa: E501
+
+ id: Optional[UUID] = Field(
+ default=None, description="Id van de waardering of tracking Id."
+ )
+ object_prijs_ontwikkeling: Optional[List[WaarderingOntwikkelingKwartaal]] = Field(
+ default=None,
+ description="De prijsontwikkeling van het gewaardeerde object.",
+ alias="objectPrijsOntwikkeling",
+ )
+ object_prijs_ontwikkeling_per_vierkantemeter: Optional[
+ List[WaarderingOntwikkelingKwartaal]
+ ] = Field(
+ default=None,
+ description="De prijsontwikkeling van het gewaardeerde object per vierkantemeter.",
+ alias="objectPrijsOntwikkelingPerVierkantemeter",
+ )
+ buurt_prijs_ontwikkeling: Optional[List[WaarderingOntwikkelingKwartaal]] = Field(
+ default=None,
+ description="De prijsontwikkeling van de buurt van het gewaardeerde object.",
+ alias="buurtPrijsOntwikkeling",
+ )
+ buurt_prijs_ontwikkeling_per_vierkantemeter: Optional[
+ List[WaarderingOntwikkelingKwartaal]
+ ] = Field(
+ default=None,
+ description="De prijsontwikkeling van de buurt van het gewaardeerde object per vierkantemeter.",
+ alias="buurtPrijsOntwikkelingPerVierkantemeter",
+ )
+ wijk_prijs_ontwikkeling: Optional[List[WaarderingOntwikkelingKwartaal]] = Field(
+ default=None,
+ description="De prijsontwikkeling van de wijk van het gewaardeerde object.",
+ alias="wijkPrijsOntwikkeling",
+ )
+ wijk_prijs_ontwikkeling_per_vierkantemeter: Optional[
+ List[WaarderingOntwikkelingKwartaal]
+ ] = Field(
+ default=None,
+ description="De prijsontwikkeling van de wijk van het gewaardeerde object per vierkantemeter.",
+ alias="wijkPrijsOntwikkelingPerVierkantemeter",
+ )
+ gemeente_prijs_ontwikkeling: Optional[List[WaarderingOntwikkelingKwartaal]] = Field(
+ default=None,
+ description="De prijsontwikkeling van de gemeente van het gewaardeerde object.",
+ alias="gemeentePrijsOntwikkeling",
+ )
+ gemeente_prijs_ontwikkeling_per_vierkantemeter: Optional[
+ List[WaarderingOntwikkelingKwartaal]
+ ] = Field(
+ default=None,
+ description="De prijsontwikkeling van de gemeente van het gewaardeerde object per vierkantemeter.",
+ alias="gemeentePrijsOntwikkelingPerVierkantemeter",
+ )
+ __properties: ClassVar[List[str]] = [
+ "id",
+ "objectPrijsOntwikkeling",
+ "objectPrijsOntwikkelingPerVierkantemeter",
+ "buurtPrijsOntwikkeling",
+ "buurtPrijsOntwikkelingPerVierkantemeter",
+ "wijkPrijsOntwikkeling",
+ "wijkPrijsOntwikkelingPerVierkantemeter",
+ "gemeentePrijsOntwikkeling",
+ "gemeentePrijsOntwikkelingPerVierkantemeter",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WaarderingOntwikkeling from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in object_prijs_ontwikkeling (list)
+ _items = []
+ if self.object_prijs_ontwikkeling:
+ for _item_object_prijs_ontwikkeling in self.object_prijs_ontwikkeling:
+ if _item_object_prijs_ontwikkeling:
+ _items.append(_item_object_prijs_ontwikkeling.to_dict())
+ _dict["objectPrijsOntwikkeling"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in object_prijs_ontwikkeling_per_vierkantemeter (list)
+ _items = []
+ if self.object_prijs_ontwikkeling_per_vierkantemeter:
+ for (
+ _item_object_prijs_ontwikkeling_per_vierkantemeter
+ ) in self.object_prijs_ontwikkeling_per_vierkantemeter:
+ if _item_object_prijs_ontwikkeling_per_vierkantemeter:
+ _items.append(
+ _item_object_prijs_ontwikkeling_per_vierkantemeter.to_dict()
+ )
+ _dict["objectPrijsOntwikkelingPerVierkantemeter"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in buurt_prijs_ontwikkeling (list)
+ _items = []
+ if self.buurt_prijs_ontwikkeling:
+ for _item_buurt_prijs_ontwikkeling in self.buurt_prijs_ontwikkeling:
+ if _item_buurt_prijs_ontwikkeling:
+ _items.append(_item_buurt_prijs_ontwikkeling.to_dict())
+ _dict["buurtPrijsOntwikkeling"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in buurt_prijs_ontwikkeling_per_vierkantemeter (list)
+ _items = []
+ if self.buurt_prijs_ontwikkeling_per_vierkantemeter:
+ for (
+ _item_buurt_prijs_ontwikkeling_per_vierkantemeter
+ ) in self.buurt_prijs_ontwikkeling_per_vierkantemeter:
+ if _item_buurt_prijs_ontwikkeling_per_vierkantemeter:
+ _items.append(
+ _item_buurt_prijs_ontwikkeling_per_vierkantemeter.to_dict()
+ )
+ _dict["buurtPrijsOntwikkelingPerVierkantemeter"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in wijk_prijs_ontwikkeling (list)
+ _items = []
+ if self.wijk_prijs_ontwikkeling:
+ for _item_wijk_prijs_ontwikkeling in self.wijk_prijs_ontwikkeling:
+ if _item_wijk_prijs_ontwikkeling:
+ _items.append(_item_wijk_prijs_ontwikkeling.to_dict())
+ _dict["wijkPrijsOntwikkeling"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in wijk_prijs_ontwikkeling_per_vierkantemeter (list)
+ _items = []
+ if self.wijk_prijs_ontwikkeling_per_vierkantemeter:
+ for (
+ _item_wijk_prijs_ontwikkeling_per_vierkantemeter
+ ) in self.wijk_prijs_ontwikkeling_per_vierkantemeter:
+ if _item_wijk_prijs_ontwikkeling_per_vierkantemeter:
+ _items.append(
+ _item_wijk_prijs_ontwikkeling_per_vierkantemeter.to_dict()
+ )
+ _dict["wijkPrijsOntwikkelingPerVierkantemeter"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in gemeente_prijs_ontwikkeling (list)
+ _items = []
+ if self.gemeente_prijs_ontwikkeling:
+ for _item_gemeente_prijs_ontwikkeling in self.gemeente_prijs_ontwikkeling:
+ if _item_gemeente_prijs_ontwikkeling:
+ _items.append(_item_gemeente_prijs_ontwikkeling.to_dict())
+ _dict["gemeentePrijsOntwikkeling"] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in gemeente_prijs_ontwikkeling_per_vierkantemeter (list)
+ _items = []
+ if self.gemeente_prijs_ontwikkeling_per_vierkantemeter:
+ for (
+ _item_gemeente_prijs_ontwikkeling_per_vierkantemeter
+ ) in self.gemeente_prijs_ontwikkeling_per_vierkantemeter:
+ if _item_gemeente_prijs_ontwikkeling_per_vierkantemeter:
+ _items.append(
+ _item_gemeente_prijs_ontwikkeling_per_vierkantemeter.to_dict()
+ )
+ _dict["gemeentePrijsOntwikkelingPerVierkantemeter"] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WaarderingOntwikkeling from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "id": obj.get("id"),
+ "objectPrijsOntwikkeling": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["objectPrijsOntwikkeling"]
+ ]
+ if obj.get("objectPrijsOntwikkeling") is not None
+ else None
+ ),
+ "objectPrijsOntwikkelingPerVierkantemeter": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["objectPrijsOntwikkelingPerVierkantemeter"]
+ ]
+ if obj.get("objectPrijsOntwikkelingPerVierkantemeter") is not None
+ else None
+ ),
+ "buurtPrijsOntwikkeling": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["buurtPrijsOntwikkeling"]
+ ]
+ if obj.get("buurtPrijsOntwikkeling") is not None
+ else None
+ ),
+ "buurtPrijsOntwikkelingPerVierkantemeter": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["buurtPrijsOntwikkelingPerVierkantemeter"]
+ ]
+ if obj.get("buurtPrijsOntwikkelingPerVierkantemeter") is not None
+ else None
+ ),
+ "wijkPrijsOntwikkeling": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["wijkPrijsOntwikkeling"]
+ ]
+ if obj.get("wijkPrijsOntwikkeling") is not None
+ else None
+ ),
+ "wijkPrijsOntwikkelingPerVierkantemeter": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["wijkPrijsOntwikkelingPerVierkantemeter"]
+ ]
+ if obj.get("wijkPrijsOntwikkelingPerVierkantemeter") is not None
+ else None
+ ),
+ "gemeentePrijsOntwikkeling": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["gemeentePrijsOntwikkeling"]
+ ]
+ if obj.get("gemeentePrijsOntwikkeling") is not None
+ else None
+ ),
+ "gemeentePrijsOntwikkelingPerVierkantemeter": (
+ [
+ WaarderingOntwikkelingKwartaal.from_dict(_item)
+ for _item in obj["gemeentePrijsOntwikkelingPerVierkantemeter"]
+ ]
+ if obj.get("gemeentePrijsOntwikkelingPerVierkantemeter") is not None
+ else None
+ ),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py
new file mode 100644
index 0000000..8c2bb91
--- /dev/null
+++ b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.kwartaal import Kwartaal
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class WaarderingOntwikkelingKwartaal(BaseModel):
+ """
+ WaarderingOntwikkelingKwartaal
+ """ # noqa: E501
+
+ kwartaal: Optional[Kwartaal] = None
+ waarde: Optional[StrictInt] = Field(default=None, description="In hele euros.")
+ __properties: ClassVar[List[str]] = ["kwartaal", "waarde"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WaarderingOntwikkelingKwartaal from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of kwartaal
+ if self.kwartaal:
+ _dict["kwartaal"] = self.kwartaal.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WaarderingOntwikkelingKwartaal from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "kwartaal": (
+ Kwartaal.from_dict(obj["kwartaal"])
+ if obj.get("kwartaal") is not None
+ else None
+ ),
+ "waarde": obj.get("waarde"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/waardering_status.py b/calcasa/api/models/waardering_status.py
new file mode 100644
index 0000000..4f8b584
--- /dev/null
+++ b/calcasa/api/models/waardering_status.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class WaarderingStatus(str, Enum):
+ """
+ | Waarde | Omschrijving | | --- | --- | | `onbekend` | Status onbekend. | | `initialiseren` | Deze waardering is geinitialiseerd maar moet nog bevestigd worden. | | `open` | Deze waardering is bevestigd maar moet nog uitgevoerd worden. | | `voltooid` | Deze waardering is voltooid. | | `opgewaardeerd` | Deze waardering is geupgrade naar een ander waardering type. | | `ongeldig` | Deze waardering is niet geldig, bijvoorbeeld omdat hij niet door de business rules is gekomen. | | `verlopen` | Deze waardering is verlopen omdat hij niet op tijd bevestigd is. | | `error` | Er is iets mis gegaan voor deze waardering. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ INITIALISEREN = "initialiseren"
+ OPEN = "open"
+ VOLTOOID = "voltooid"
+ OPGEWAARDEERD = "opgewaardeerd"
+ ONGELDIG = "ongeldig"
+ VERLOPEN = "verlopen"
+ ERROR = "error"
+ INBEHANDELING = "inBehandeling"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of WaarderingStatus from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/models/waardering_webhook_payload.py b/calcasa/api/models/waardering_webhook_payload.py
new file mode 100644
index 0000000..777f158
--- /dev/null
+++ b/calcasa/api/models/waardering_webhook_payload.py
@@ -0,0 +1,148 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from uuid import UUID
+from calcasa.api.models.waardering_status import WaarderingStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class WaarderingWebhookPayload(BaseModel):
+ """
+ De payload van de webhooks voor de waarderingen.
+ """ # noqa: E501
+
+ callback_name: StrictStr = Field(alias="callbackName")
+ event_id: UUID = Field(description="Uniek Id voor deze callback.", alias="eventId")
+ timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.")
+ waardering_id: Optional[UUID] = Field(
+ default=None,
+ description="Het Id van de waardering waarop deze callback betrekking heeft.",
+ alias="waarderingId",
+ )
+ old_status: Optional[WaarderingStatus] = Field(default=None, alias="oldStatus")
+ new_status: Optional[WaarderingStatus] = Field(default=None, alias="newStatus")
+ is_test: Optional[StrictBool] = Field(
+ default=None,
+ description="Geeft aan of de betreffende waardering aangevraagd is met een test token.",
+ alias="isTest",
+ )
+ externe_referentie: Optional[StrictStr] = Field(
+ default=None,
+ description="Dit is de externe referentie opgegeven bij de callback inschrijving of als dit een normale API waardering is waarvoor geen callback inschrijving was dit veld null.",
+ alias="externeReferentie",
+ )
+ __properties: ClassVar[List[str]] = [
+ "callbackName",
+ "eventId",
+ "timestamp",
+ "waarderingId",
+ "oldStatus",
+ "newStatus",
+ "isTest",
+ "externeReferentie",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WaarderingWebhookPayload from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ * OpenAPI `readOnly` fields are excluded.
+ """
+ excluded_fields: Set[str] = set(
+ [
+ "callback_name",
+ ]
+ )
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if externe_referentie (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.externe_referentie is None
+ and "externe_referentie" in self.model_fields_set
+ ):
+ _dict["externeReferentie"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WaarderingWebhookPayload from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "callbackName": obj.get("callbackName"),
+ "eventId": obj.get("eventId"),
+ "timestamp": obj.get("timestamp"),
+ "waarderingId": obj.get("waarderingId"),
+ "oldStatus": obj.get("oldStatus"),
+ "newStatus": obj.get("newStatus"),
+ "isTest": obj.get("isTest"),
+ "externeReferentie": obj.get("externeReferentie"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/waardering_zoek_parameters.py b/calcasa/api/models/waardering_zoek_parameters.py
new file mode 100644
index 0000000..2b369f2
--- /dev/null
+++ b/calcasa/api/models/waardering_zoek_parameters.py
@@ -0,0 +1,150 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from calcasa.api.models.aanvraagdoel import Aanvraagdoel
+from calcasa.api.models.product_type import ProductType
+from calcasa.api.models.waardering_status import WaarderingStatus
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class WaarderingZoekParameters(BaseModel):
+ """
+ WaarderingZoekParameters
+ """ # noqa: E501
+
+ aangemaakt: Optional[datetime] = Field(
+ default=None,
+ description="De datum/tijd waarop de waardering is aangemaakt, in UTC.",
+ )
+ geldverstrekker: Optional[StrictStr] = Field(
+ default=None, description="De naam van de geldverstrekker voor de waardering."
+ )
+ product_type: ProductType = Field(alias="productType")
+ aanvraagdoel: Optional[Aanvraagdoel] = None
+ waardering_status: Optional[WaarderingStatus] = Field(
+ default=None, alias="waarderingStatus"
+ )
+ bag_nummeraanduiding_id: StrictInt = Field(
+ description="Verplicht.", alias="bagNummeraanduidingId"
+ )
+ __properties: ClassVar[List[str]] = [
+ "aangemaakt",
+ "geldverstrekker",
+ "productType",
+ "aanvraagdoel",
+ "waarderingStatus",
+ "bagNummeraanduidingId",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WaarderingZoekParameters from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if aangemaakt (nullable) is None
+ # and model_fields_set contains the field
+ if self.aangemaakt is None and "aangemaakt" in self.model_fields_set:
+ _dict["aangemaakt"] = None
+
+ # set to None if geldverstrekker (nullable) is None
+ # and model_fields_set contains the field
+ if self.geldverstrekker is None and "geldverstrekker" in self.model_fields_set:
+ _dict["geldverstrekker"] = None
+
+ # set to None if aanvraagdoel (nullable) is None
+ # and model_fields_set contains the field
+ if self.aanvraagdoel is None and "aanvraagdoel" in self.model_fields_set:
+ _dict["aanvraagdoel"] = None
+
+ # set to None if waardering_status (nullable) is None
+ # and model_fields_set contains the field
+ if (
+ self.waardering_status is None
+ and "waardering_status" in self.model_fields_set
+ ):
+ _dict["waarderingStatus"] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WaarderingZoekParameters from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "aangemaakt": obj.get("aangemaakt"),
+ "geldverstrekker": obj.get("geldverstrekker"),
+ "productType": obj.get("productType"),
+ "aanvraagdoel": obj.get("aanvraagdoel"),
+ "waarderingStatus": obj.get("waarderingStatus"),
+ "bagNummeraanduidingId": obj.get("bagNummeraanduidingId"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/webhook_payload.py b/calcasa/api/models/webhook_payload.py
new file mode 100644
index 0000000..2c79453
--- /dev/null
+++ b/calcasa/api/models/webhook_payload.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from uuid import UUID
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class WebhookPayload(BaseModel):
+ """
+ De base payload van de webhooks die verstuurd worden voor verschillende events.
+ """ # noqa: E501
+
+ callback_name: StrictStr = Field(alias="callbackName")
+ event_id: UUID = Field(description="Uniek Id voor deze callback.", alias="eventId")
+ timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.")
+ __properties: ClassVar[List[str]] = ["callbackName", "eventId", "timestamp"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WebhookPayload from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ * OpenAPI `readOnly` fields are excluded.
+ """
+ excluded_fields: Set[str] = set(
+ [
+ "callback_name",
+ ]
+ )
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WebhookPayload from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "callbackName": obj.get("callbackName"),
+ "eventId": obj.get("eventId"),
+ "timestamp": obj.get("timestamp"),
+ }
+ )
+ return _obj
diff --git a/calcasa/api/models/woning_type.py b/calcasa/api/models/woning_type.py
new file mode 100644
index 0000000..dd3529d
--- /dev/null
+++ b/calcasa/api/models/woning_type.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class WoningType(str, Enum):
+ """
+ Woningtypes zoals gedefinieerd in het Calcasa-model. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekend woning type. | | `vrijstaand` | Vrijstaande woning. | | `halfVrijstaand` | Half-vrijstaande woning / twee-onder-een-kap. | | `hoekwoning` | Hoekwoning. | | `tussenwoning` | Tussenwoning. | | `galerijflat` | Galerijflat. | | `portiekflat` | Portiekflat. | | `maisonnette` | Maisonette. | | `bovenwoning` | Bovenwoning. | | `benedenwoning` | Benedenwoning. |
+ """
+
+ """
+ allowed enum values
+ """
+ ONBEKEND = "onbekend"
+ VRIJSTAAND = "vrijstaand"
+ HALFVRIJSTAAND = "halfVrijstaand"
+ HOEKWONING = "hoekwoning"
+ TUSSENWONING = "tussenwoning"
+ GALERIJFLAT = "galerijflat"
+ PORTIEKFLAT = "portiekflat"
+ MAISONNETTE = "maisonnette"
+ BOVENWONING = "bovenwoning"
+ BENEDENWONING = "benedenwoning"
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of WoningType from a JSON string"""
+ return cls(json.loads(json_str))
diff --git a/calcasa/api/py.typed b/calcasa/api/py.typed
new file mode 100644
index 0000000..e69de29
diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py
new file mode 100644
index 0000000..f207f74
--- /dev/null
+++ b/calcasa/api/rest.py
@@ -0,0 +1,257 @@
+# coding: utf-8
+
+"""
+Copyright 2025 Calcasa B.V.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
+
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
+"""
+
+import io
+import json
+import re
+import ssl
+
+import urllib3
+
+from calcasa.api.exceptions import ApiException, ApiValueError
+
+SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
+RESTResponseType = urllib3.HTTPResponse
+
+
+def is_socks_proxy_url(url):
+ if url is None:
+ return False
+ split_section = url.split("://")
+ if len(split_section) < 2:
+ return False
+ else:
+ return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
+
+
+class RESTResponse(io.IOBase):
+
+ def __init__(self, resp) -> None:
+ self.response = resp
+ self.status = resp.status
+ self.reason = resp.reason
+ self.data = None
+
+ def read(self):
+ if self.data is None:
+ self.data = self.response.data
+ return self.data
+
+ def getheaders(self):
+ """Returns a dictionary of the response headers."""
+ return self.response.headers
+
+ def getheader(self, name, default=None):
+ """Returns a given response header."""
+ return self.response.headers.get(name, default)
+
+
+class RESTClientObject:
+
+ def __init__(self, configuration) -> None:
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
+
+ # cert_reqs
+ if configuration.verify_ssl:
+ cert_reqs = ssl.CERT_REQUIRED
+ else:
+ cert_reqs = ssl.CERT_NONE
+
+ pool_args = {
+ "cert_reqs": cert_reqs,
+ "ca_certs": configuration.ssl_ca_cert,
+ "cert_file": configuration.cert_file,
+ "key_file": configuration.key_file,
+ "ca_cert_data": configuration.ca_cert_data,
+ }
+ if configuration.assert_hostname is not None:
+ pool_args["assert_hostname"] = configuration.assert_hostname
+
+ if configuration.retries is not None:
+ pool_args["retries"] = configuration.retries
+
+ if configuration.tls_server_name:
+ pool_args["server_hostname"] = configuration.tls_server_name
+
+ if configuration.socket_options is not None:
+ pool_args["socket_options"] = configuration.socket_options
+
+ if configuration.connection_pool_maxsize is not None:
+ pool_args["maxsize"] = configuration.connection_pool_maxsize
+
+ # https pool manager
+ self.pool_manager: urllib3.PoolManager
+
+ if configuration.proxy:
+ if is_socks_proxy_url(configuration.proxy):
+ from urllib3.contrib.socks import SOCKSProxyManager
+
+ pool_args["proxy_url"] = configuration.proxy
+ pool_args["headers"] = configuration.proxy_headers
+ self.pool_manager = SOCKSProxyManager(**pool_args)
+ else:
+ pool_args["proxy_url"] = configuration.proxy
+ pool_args["proxy_headers"] = configuration.proxy_headers
+ self.pool_manager = urllib3.ProxyManager(**pool_args)
+ else:
+ self.pool_manager = urllib3.PoolManager(**pool_args)
+
+ def request(
+ self,
+ method,
+ url,
+ headers=None,
+ body=None,
+ post_params=None,
+ _request_timeout=None,
+ ):
+ """Perform requests.
+
+ :param method: http request method
+ :param url: http request url
+ :param headers: http request headers
+ :param body: request json body, for `application/json`
+ :param post_params: request post parameters,
+ `application/x-www-form-urlencoded`
+ and `multipart/form-data`
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ """
+ method = method.upper()
+ assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"]
+
+ if post_params and body:
+ raise ApiValueError(
+ "body parameter cannot be used with post_params parameter."
+ )
+
+ post_params = post_params or {}
+ headers = headers or {}
+
+ timeout = None
+ if _request_timeout:
+ if isinstance(_request_timeout, (int, float)):
+ timeout = urllib3.Timeout(total=_request_timeout)
+ elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2:
+ timeout = urllib3.Timeout(
+ connect=_request_timeout[0], read=_request_timeout[1]
+ )
+
+ try:
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
+ if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]:
+
+ # no content type provided or payload is json
+ content_type = headers.get("Content-Type")
+ if not content_type or re.search("json", content_type, re.IGNORECASE):
+ request_body = None
+ if body is not None:
+ request_body = json.dumps(body)
+ r = self.pool_manager.request(
+ method,
+ url,
+ body=request_body,
+ timeout=timeout,
+ headers=headers,
+ preload_content=False,
+ )
+ elif content_type == "application/x-www-form-urlencoded":
+ r = self.pool_manager.request(
+ method,
+ url,
+ fields=post_params,
+ encode_multipart=False,
+ timeout=timeout,
+ headers=headers,
+ preload_content=False,
+ )
+ elif content_type == "multipart/form-data":
+ # must del headers['Content-Type'], or the correct
+ # Content-Type which generated by urllib3 will be
+ # overwritten.
+ del headers["Content-Type"]
+ # Ensures that dict objects are serialized
+ post_params = [
+ (a, json.dumps(b)) if isinstance(b, dict) else (a, b)
+ for a, b in post_params
+ ]
+ r = self.pool_manager.request(
+ method,
+ url,
+ fields=post_params,
+ encode_multipart=True,
+ timeout=timeout,
+ headers=headers,
+ preload_content=False,
+ )
+ # Pass a `string` parameter directly in the body to support
+ # other content types than JSON when `body` argument is
+ # provided in serialized form.
+ elif isinstance(body, str) or isinstance(body, bytes):
+ r = self.pool_manager.request(
+ method,
+ url,
+ body=body,
+ timeout=timeout,
+ headers=headers,
+ preload_content=False,
+ )
+ elif headers["Content-Type"].startswith("text/") and isinstance(
+ body, bool
+ ):
+ request_body = "true" if body else "false"
+ r = self.pool_manager.request(
+ method,
+ url,
+ body=request_body,
+ preload_content=False,
+ timeout=timeout,
+ headers=headers,
+ )
+ else:
+ # Cannot generate the request from given parameters
+ msg = """Cannot prepare a request message for provided
+ arguments. Please check that your arguments match
+ declared content type."""
+ raise ApiException(status=0, reason=msg)
+ # For `GET`, `HEAD`
+ else:
+ r = self.pool_manager.request(
+ method,
+ url,
+ fields={},
+ timeout=timeout,
+ headers=headers,
+ preload_content=False,
+ )
+ except urllib3.exceptions.SSLError as e:
+ msg = "\n".join([type(e).__name__, str(e)])
+ raise ApiException(status=0, reason=msg)
+
+ return RESTResponse(r)
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..c195e27
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,95 @@
+[project]
+name = "calcasa.api"
+version = "1.4.0"
+description = "Calcasa Public API"
+authors = [
+ {name = "Calcasa B.V.",email = "info@calcasa.nl"},
+]
+license = { text = "Apache License 2.0" }
+readme = "README.md"
+keywords = ["OpenAPI", "OpenAPI-Generator", "Calcasa Public API"]
+requires-python = ">=3.9"
+
+dependencies = [
+ "urllib3 (>=2.1.0,<3.0.0)",
+ "python-dateutil (>=2.8.2)",
+ "pydantic (>=2)",
+ "typing-extensions (>=4.7.1)",
+]
+
+[project.urls]
+Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
+
+[tool.poetry]
+requires-poetry = ">=2.0"
+
+[tool.poetry.group.dev.dependencies]
+pytest = ">= 7.2.1"
+pytest-cov = ">= 2.8.1"
+tox = ">= 3.9.0"
+flake8 = ">= 4.0.0"
+types-python-dateutil = ">= 2.8.19.14"
+mypy = ">= 1.5"
+
+
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
+
+[tool.pylint.'MESSAGES CONTROL']
+extension-pkg-whitelist = "pydantic"
+
+[tool.mypy]
+files = [
+ "calcasa.api",
+ #"test", # auto-generated tests
+ "tests", # hand-written tests
+]
+# TODO: enable "strict" once all these individual checks are passing
+# strict = true
+
+# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
+warn_unused_configs = true
+warn_redundant_casts = true
+warn_unused_ignores = true
+
+## Getting these passing should be easy
+strict_equality = true
+extra_checks = true
+
+## Strongly recommend enabling this one as soon as you can
+check_untyped_defs = true
+
+## These shouldn't be too much additional work, but may be tricky to
+## get passing if you use a lot of untyped libraries
+disallow_subclassing_any = true
+disallow_untyped_decorators = true
+disallow_any_generics = true
+
+### These next few are various gradations of forcing use of type annotations
+#disallow_untyped_calls = true
+#disallow_incomplete_defs = true
+#disallow_untyped_defs = true
+#
+### This one isn't too hard to get passing, but return on investment is lower
+#no_implicit_reexport = true
+#
+### This one can be tricky to get passing if you use a lot of untyped libraries
+#warn_return_any = true
+
+[[tool.mypy.overrides]]
+module = [
+ "calcasa.api.configuration",
+]
+warn_unused_ignores = true
+strict_equality = true
+extra_checks = true
+check_untyped_defs = true
+disallow_subclassing_any = true
+disallow_untyped_decorators = true
+disallow_any_generics = true
+disallow_untyped_calls = true
+disallow_incomplete_defs = true
+disallow_untyped_defs = true
+no_implicit_reexport = true
+warn_return_any = true
diff --git a/requirements.txt b/requirements.txt
index 96947f6..6cbb2b9 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
-python_dateutil >= 2.5.3
-setuptools >= 21.0.0
-urllib3 >= 1.25.3
+urllib3 >= 2.1.0, < 3.0.0
+python_dateutil >= 2.8.2
+pydantic >= 2
+typing-extensions >= 4.7.1
diff --git a/setup.py b/setup.py
index 9fffd08..04f864c 100644
--- a/setup.py
+++ b/setup.py
@@ -1,29 +1,29 @@
"""
- Copyright 2021 Calcasa B.V.
+Copyright 2025 Calcasa B.V.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
- Calcasa Public API v0
+Calcasa Public API
+The Calcasa API is used to connect to Calcasa provided services. For more information, please visit [Documentation](https://docs.calcasa.nl) or [GitHub](https://github.com/calcasa/api).
- The version of the OpenAPI document: 0.0.6
- Contact: info@calcasa.nl
- Generated by: https://openapi-generator.tech
+Contact: info@calcasa.nl
+Generated by: https://openapi-generator.tech
"""
from setuptools import setup, find_namespace_packages # noqa: H301
-NAME = "calcasa-api"
-VERSION = "0.0.6"
+NAME = "calcasa.api"
+VERSION = "1.4.0"
# To install the library, run the following
#
# python setup.py install
@@ -32,29 +32,33 @@
# http://pypi.python.org/pypi/setuptools
REQUIRES = [
- "urllib3 >= 1.25.3",
- "python-dateutil",
+ "urllib3 >= 1.25.3",
+ "python-dateutil",
]
# read the contents of your README file
from pathlib import Path
+
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setup(
name=NAME,
version=VERSION,
- description="Calcasa Public API v0",
+ description="Calcasa Public API",
author="Calcasa B.V.",
author_email="info@calcasa.nl",
url="https://github.com/calcasa/api-python",
- keywords=["OpenAPI", "OpenAPI-Generator", "Calcasa Public API v0"],
- classifiers=["Programming Language :: Python :: 3 :: Only", "License :: OSI Approved :: Apache Software License"],
+ keywords=["OpenAPI", "OpenAPI-Generator", "Calcasa Public API"],
+ classifiers=[
+ "Programming Language :: Python :: 3 :: Only",
+ "License :: OSI Approved :: Apache Software License",
+ ],
python_requires=">=3.6",
install_requires=REQUIRES,
- packages=find_namespace_packages(include=['calcasa.*'],exclude=["test", "tests"]),
+ packages=find_namespace_packages(include=["calcasa.*"], exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
long_description=long_description,
- long_description_content_type='text/markdown; charset=UTF-8; variant=GFM'
+ long_description_content_type="text/markdown; charset=UTF-8; variant=GFM",
)