From e1c5e026ff6b1f959509627c630ee34afa285d47 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Wed, 15 Dec 2021 12:00:52 +0100 Subject: [PATCH 01/20] Release 1.0.0 (2021-12-13) - Initial release of v0 based on v0.0.6 --- README.md | 87 ++---- calcasa-api/__init__.py | 6 +- calcasa-api/api/adressen_api.py | 8 +- calcasa-api/api/bestemmingsplannen_api.py | 6 +- calcasa-api/api/bodem_api.py | 6 +- calcasa-api/api/buurt_api.py | 6 +- calcasa-api/api/configuratie_api.py | 8 +- calcasa-api/api/facturen_api.py | 6 +- calcasa-api/api/fotos_api.py | 6 +- calcasa-api/api/funderingen_api.py | 6 +- calcasa-api/api/rapporten_api.py | 6 +- calcasa-api/api/waarderingen_api.py | 18 +- calcasa-api/api_client.py | 6 +- calcasa-api/configuration.py | 8 +- calcasa-api/exceptions.py | 4 +- calcasa-api/model/aanvraagdoel.py | 4 +- calcasa-api/model/adres.py | 4 +- calcasa-api/model/adres_info.py | 4 +- calcasa-api/model/bestemmingsdata.py | 4 +- calcasa-api/model/bodem_status_type.py | 4 +- calcasa-api/model/bodemdata.py | 4 +- calcasa-api/model/business_rules_code.py | 4 +- .../model/business_rules_problem_details.py | 4 +- calcasa-api/model/callback.py | 4 +- calcasa-api/model/cbs_indeling.py | 4 +- calcasa-api/model/energielabel.py | 4 +- calcasa-api/model/factuur.py | 4 +- calcasa-api/model/foto.py | 4 +- calcasa-api/model/fundering_data_bron.py | 4 +- calcasa-api/model/fundering_herstel_type.py | 4 +- calcasa-api/model/fundering_risico.py | 4 +- calcasa-api/model/fundering_risico_label.py | 4 +- calcasa-api/model/fundering_soort_bron.py | 4 +- calcasa-api/model/fundering_type.py | 4 +- calcasa-api/model/fundering_typering.py | 4 +- calcasa-api/model/funderingdata.py | 4 +- calcasa-api/model/gebiedsdata.py | 4 +- .../model/invalid_argument_problem_details.py | 4 +- calcasa-api/model/json_patch_document.py | 4 +- calcasa-api/model/klantwaarde_type.py | 4 +- calcasa-api/model/kwartaal.py | 4 +- calcasa-api/model/modeldata.py | 4 +- .../model/not_found_problem_details.py | 4 +- calcasa-api/model/notitie.py | 4 +- calcasa-api/model/notities.py | 4 +- calcasa-api/model/objectdata.py | 4 +- calcasa-api/model/omgevingsdata.py | 4 +- calcasa-api/model/operation.py | 4 +- calcasa-api/model/operation_type.py | 4 +- .../permissions_denied_problem_details.py | 4 +- calcasa-api/model/problem_details.py | 4 +- calcasa-api/model/product_type.py | 4 +- calcasa-api/model/rapport.py | 4 +- calcasa-api/model/referentieobject.py | 4 +- calcasa-api/model/taxatiedata.py | 4 +- calcasa-api/model/taxatiestatus.py | 4 +- .../model/validation_problem_details.py | 4 +- calcasa-api/model/verkoop_bijzonderheden.py | 4 +- calcasa-api/model/vorige_verkoop.py | 4 +- calcasa-api/model/waardering.py | 4 +- .../model/waardering_input_parameters.py | 4 +- calcasa-api/model/waardering_ontwikkeling.py | 4 +- .../model/waardering_ontwikkeling_kwartaal.py | 4 +- calcasa-api/model/waardering_status.py | 4 +- .../model/waardering_webhook_payload.py | 286 ------------------ .../model/waardering_zoek_parameters.py | 4 +- calcasa-api/model/woning_type.py | 4 +- calcasa-api/model_utils.py | 4 +- calcasa-api/models/__init__.py | 1 - calcasa-api/rest.py | 4 +- setup.py | 10 +- 71 files changed, 182 insertions(+), 514 deletions(-) delete mode 100644 calcasa-api/model/waardering_webhook_payload.py diff --git a/README.md b/README.md index f7b4d86..d333963 100644 --- a/README.md +++ b/README.md @@ -1,53 +1,10 @@ # calcasa-api -This is a preliminary version of the Calcasa Public API. This service is currently in development. +The Calcasa API is used to connect to Calcasa provided services. This is the first production version of the service ## 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 +### 2021-12-13 (v1.0.0) +- Initial release of v0 based on v0.0.6 ## Client packages [Nuget](https://www.nuget.org/packages/Calcasa.Api) - [Packagist](https://packagist.org/packages/calcasa/api) - [PyPI](https://pypi.org/project/calcasa.api) @@ -68,14 +25,13 @@ 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. 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.0.0 +- Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -165,22 +121,22 @@ All URIs are relative to *https://api.calcasa.nl* 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** /api/v1/adressen/{bagNummeraanduidingId} | Adres info op basis van BAG Nummeraanduiding Id. +*AdressenApi* | [**search_adres**](docs/AdressenApi.md#search_adres) | **POST** /api/v1/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/v1/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/v1/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/v1/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/v1/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client. +*ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /api/v1/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client. +*FacturenApi* | [**get_factuur**](docs/FacturenApi.md#get_factuur) | **GET** /api/v1/facturen/{id} | Factuur op basis van een waardering Id. +*FotosApi* | [**get_foto**](docs/FotosApi.md#get_foto) | **GET** /api/v1/fotos/{id} | Foto op basis van een foto Id. +*FunderingenApi* | [**get_fundering_by_id**](docs/FunderingenApi.md#get_fundering_by_id) | **GET** /api/v1/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/v1/rapporten/{id} | Rapport op basis van waardering Id. +*WaarderingenApi* | [**create_waardering**](docs/WaarderingenApi.md#create_waardering) | **POST** /api/v1/waarderingen | Creërt een waardering. +*WaarderingenApi* | [**get_waardering**](docs/WaarderingenApi.md#get_waardering) | **GET** /api/v1/waarderingen/{id} | Waardering op basis van Id. +*WaarderingenApi* | [**get_waardering_ontwikkeling**](docs/WaarderingenApi.md#get_waardering_ontwikkeling) | **GET** /api/v1/waarderingen/{id}/ontwikkeling | Waardering ontwikkeling op basis van waardering Id. +*WaarderingenApi* | [**patch_waarderingen**](docs/WaarderingenApi.md#patch_waarderingen) | **PATCH** /api/v1/waarderingen/{id} | Patcht een waardering. +*WaarderingenApi* | [**search_waarderingen**](docs/WaarderingenApi.md#search_waarderingen) | **POST** /api/v1/waarderingen/zoeken | Zoek waardering op basis van input parameters. ## Documentation For Models @@ -234,7 +190,6 @@ Class | Method | HTTP request | Description - [WaarderingOntwikkeling](docs/WaarderingOntwikkeling.md) - [WaarderingOntwikkelingKwartaal](docs/WaarderingOntwikkelingKwartaal.md) - [WaarderingStatus](docs/WaarderingStatus.md) - - [WaarderingWebhookPayload](docs/WaarderingWebhookPayload.md) - [WaarderingZoekParameters](docs/WaarderingZoekParameters.md) - [WoningType](docs/WoningType.md) diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index d02df85..4e4a7a2 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -15,14 +15,14 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "0.0.6" +__version__ = "1.0.0" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index 4f78b15..f8cbcf0 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -57,7 +57,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/adressen/{bagNummeraanduidingId}', + 'endpoint_path': '/api/v1/adressen/{bagNummeraanduidingId}', 'operation_id': 'get_adres', 'http_method': 'GET', 'servers': None, @@ -109,7 +109,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/adressen/zoeken', + 'endpoint_path': '/api/v1/adressen/zoeken', 'operation_id': 'search_adres', 'http_method': 'POST', 'servers': None, diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py index 6bf6b21..735103f 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,7 +56,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/bestemmingsplannen/{bagNummeraanduidingId}', + 'endpoint_path': '/api/v1/bestemmingsplannen/{bagNummeraanduidingId}', 'operation_id': 'get_bestemming_by_id', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index 4916c63..4e7f8ee 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,7 +56,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/bodem/{id}', + 'endpoint_path': '/api/v1/bodem/{id}', 'operation_id': 'get_bodem_by_id', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py index f3ecc43..a8e9506 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,7 +56,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/buurt/{buurtId}', + 'endpoint_path': '/api/v1/buurt/{buurtId}', 'operation_id': 'get_buurt', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index 058a2ff..ddce422 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,7 +56,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/configuratie/callbacks', + 'endpoint_path': '/api/v1/configuratie/callbacks', 'operation_id': 'get_callbacks', 'http_method': 'GET', 'servers': None, @@ -101,7 +101,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/configuratie/callbacks', + 'endpoint_path': '/api/v1/configuratie/callbacks', 'operation_id': 'update_callbacks', 'http_method': 'POST', 'servers': None, diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py index 241af3a..565ac2f 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -55,7 +55,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/facturen/{id}', + 'endpoint_path': '/api/v1/facturen/{id}', 'operation_id': 'get_factuur', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index 80cca2e..40e595d 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -55,7 +55,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/fotos/{id}', + 'endpoint_path': '/api/v1/fotos/{id}', 'operation_id': 'get_foto', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index 00f237c..dc10bac 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,7 +56,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/funderingen/{bagNummeraanduidingId}', + 'endpoint_path': '/api/v1/funderingen/{bagNummeraanduidingId}', 'operation_id': 'get_fundering_by_id', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index 59484da..4dc51bf 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -55,7 +55,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/rapporten/{id}', + 'endpoint_path': '/api/v1/rapporten/{id}', 'operation_id': 'get_rapport', 'http_method': 'GET', 'servers': None, diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index bbc28c9..c3619c7 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -63,7 +63,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/waarderingen', + 'endpoint_path': '/api/v1/waarderingen', 'operation_id': 'create_waardering', 'http_method': 'POST', 'servers': None, @@ -114,7 +114,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/waarderingen/{id}', + 'endpoint_path': '/api/v1/waarderingen/{id}', 'operation_id': 'get_waardering', 'http_method': 'GET', 'servers': None, @@ -166,7 +166,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/waarderingen/{id}/ontwikkeling', + 'endpoint_path': '/api/v1/waarderingen/{id}/ontwikkeling', 'operation_id': 'get_waardering_ontwikkeling', 'http_method': 'GET', 'servers': None, @@ -218,7 +218,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/waarderingen/{id}', + 'endpoint_path': '/api/v1/waarderingen/{id}', 'operation_id': 'patch_waarderingen', 'http_method': 'PATCH', 'servers': None, @@ -276,7 +276,7 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v0/waarderingen/zoeken', + 'endpoint_path': '/api/v1/waarderingen/zoeken', 'operation_id': 'search_waarderingen', 'http_method': 'POST', 'servers': None, @@ -328,7 +328,7 @@ def create_waardering( ): """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 + Nadat de waardering aangemaakt is zal deze bevestigd moeten worden. De BagNummeraanduidingId en ProductType velden zijn verplicht. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -523,7 +523,7 @@ def patch_waarderingen( ): """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 + Op dit moment kan alleen de waarderingsstatus gepatcht worden. Dit endpoint kan gebruikt worden om een waarderingsinitialisatie te bevestigen. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py index 1fb7939..9326deb 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=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' + self.user_agent = 'Calcasa Python Api Client/1.0.0' def __enter__(self): return self diff --git a/calcasa-api/configuration.py b/calcasa-api/configuration.py index 1ea10da..777ce25 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): 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".\ + "Version of the API: 1.0.0\n"\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index 6af1506..93a0c30 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index 89a529e..f980dba 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index 2fd16ef..0152317 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index 76f2318..3361f31 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index 4bb3f53..7a24cf3 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index f44d617..d439edc 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index b140ffe..9af9e68 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py index fe200f0..53469ad 100644 --- a/calcasa-api/model/business_rules_code.py +++ b/calcasa-api/model/business_rules_code.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa-api/model/business_rules_problem_details.py index b4e888c..b47e5a3 100644 --- a/calcasa-api/model/business_rules_problem_details.py +++ b/calcasa-api/model/business_rules_problem_details.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/callback.py b/calcasa-api/model/callback.py index 790343d..d211c1c 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index 08af553..d307279 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index a7520e3..6339b4e 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index b906236..eb02903 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index 186b4a3..ecf5d53 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index 6cd973e..4cc18af 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index c3a70f8..2273784 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index 32be6dd..d614435 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index 4e24660..d0a4d9f 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index f6e47f2..51a0e9f 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index 74f0c36..b9b97f8 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index 6875c5f..840e2c1 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index 33441f2..4d213f8 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index 9b58ae6..e7517f7 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py index abd0fb4..de8a5e0 100644 --- a/calcasa-api/model/invalid_argument_problem_details.py +++ b/calcasa-api/model/invalid_argument_problem_details.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/json_patch_document.py b/calcasa-api/model/json_patch_document.py index 09a5706..d8f63c1 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index 4fb5f29..4463655 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index c7fb6e0..5edccea 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index ed2f4d1..1c087d4 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py index fad2328..eac943b 100644 --- a/calcasa-api/model/not_found_problem_details.py +++ b/calcasa-api/model/not_found_problem_details.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notitie.py b/calcasa-api/model/notitie.py index 2eed0c1..061df81 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index 3b4ac73..81d9907 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index 8b26b37..d9f2215 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 3cadd00..6d8ec83 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index ebe85bd..ab0e569 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 132b955..9c97450 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py index 5fb2679..e94024b 100644 --- a/calcasa-api/model/permissions_denied_problem_details.py +++ b/calcasa-api/model/permissions_denied_problem_details.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/problem_details.py b/calcasa-api/model/problem_details.py index 67aa32f..b932b2a 100644 --- a/calcasa-api/model/problem_details.py +++ b/calcasa-api/model/problem_details.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/product_type.py b/calcasa-api/model/product_type.py index 6e6e303..b80415c 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index 5c84e23..09b36d3 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index 790b3f1..c3816ba 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py index dc0724f..29a2e65 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index c8a92d6..3e6e593 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index 261bed1..fcf4a5b 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py index 227329b..20926f8 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index 60f7fa0..58dc0d1 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index f0fdcd0..55dd1b4 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index fd5a8d5..33c9f8e 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index b2c4629..76a92dc 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index 8954850..cefac5a 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index c26dba7..8e43c60 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ 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 index a4aace9..60eba86 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index f005919..baec3a3 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index 98ebd2b..f1f0f4f 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py index af10017..1deab61 100644 --- a/calcasa-api/models/__init__.py +++ b/calcasa-api/models/__init__.py @@ -58,6 +58,5 @@ 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 index 9a7eb1f..b25dc1c 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 9fffd08..01ba57e 100644 --- a/setup.py +++ b/setup.py @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v0 + Calcasa Public API v1 - The version of the OpenAPI document: 0.0.6 + The version of the OpenAPI document: 1.0.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "0.0.6" +VERSION = "1.0.0" # To install the library, run the following # # python setup.py install @@ -44,11 +44,11 @@ setup( name=NAME, version=VERSION, - description="Calcasa Public API v0", + description="Calcasa Public API v1", author="Calcasa B.V.", author_email="info@calcasa.nl", url="https://github.com/calcasa/api-python", - keywords=["OpenAPI", "OpenAPI-Generator", "Calcasa Public API v0"], + keywords=["OpenAPI", "OpenAPI-Generator", "Calcasa Public API v1"], classifiers=["Programming Language :: Python :: 3 :: Only", "License :: OSI Approved :: Apache Software License"], python_requires=">=3.6", install_requires=REQUIRES, From b0bf179ecc458eb55d9dcb4deb0b886fe9066676 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Wed, 22 Dec 2021 17:21:12 +0100 Subject: [PATCH 02/20] Release 1.0.1 (2021-12-22) - Dates are now serialized in the ISO date-only format `yyyy-MM-dd` to stop any confusion around timezones and are all assumed to be in UTC. - `peildatum` in `WaarderingsInputParameters` - `datum_bestemmingplan` in `Bestemmingsdata` - `datum_laatste_onderzoek` in `Bodemdata` - `verkoopdatum` in `Referentieobject` - `verkoopdatum` in `VorigeVerkoop` - `waardebepalingsdatum` in `Modeldata` - Reintroduced the `WaarderingWebhookPayload` model that was omitted. --- README.md | 20 +- calcasa-api/__init__.py | 4 +- calcasa-api/api/adressen_api.py | 2 +- calcasa-api/api/bestemmingsplannen_api.py | 2 +- calcasa-api/api/bodem_api.py | 2 +- calcasa-api/api/buurt_api.py | 2 +- calcasa-api/api/configuratie_api.py | 2 +- calcasa-api/api/facturen_api.py | 2 +- calcasa-api/api/fotos_api.py | 2 +- calcasa-api/api/funderingen_api.py | 2 +- calcasa-api/api/rapporten_api.py | 2 +- calcasa-api/api/waarderingen_api.py | 6 +- calcasa-api/api_client.py | 4 +- calcasa-api/configuration.py | 6 +- calcasa-api/exceptions.py | 2 +- calcasa-api/model/aanvraagdoel.py | 2 +- calcasa-api/model/adres.py | 2 +- calcasa-api/model/adres_info.py | 2 +- calcasa-api/model/bestemmingsdata.py | 2 +- calcasa-api/model/bodem_status_type.py | 2 +- calcasa-api/model/bodemdata.py | 2 +- calcasa-api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa-api/model/callback.py | 2 +- calcasa-api/model/cbs_indeling.py | 2 +- calcasa-api/model/energielabel.py | 2 +- calcasa-api/model/factuur.py | 2 +- calcasa-api/model/foto.py | 2 +- calcasa-api/model/fundering_data_bron.py | 2 +- calcasa-api/model/fundering_herstel_type.py | 2 +- calcasa-api/model/fundering_risico.py | 2 +- calcasa-api/model/fundering_risico_label.py | 2 +- calcasa-api/model/fundering_soort_bron.py | 2 +- calcasa-api/model/fundering_type.py | 2 +- calcasa-api/model/fundering_typering.py | 2 +- calcasa-api/model/funderingdata.py | 2 +- calcasa-api/model/gebiedsdata.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa-api/model/json_patch_document.py | 2 +- calcasa-api/model/klantwaarde_type.py | 2 +- calcasa-api/model/kwartaal.py | 2 +- calcasa-api/model/modeldata.py | 2 +- .../model/not_found_problem_details.py | 2 +- calcasa-api/model/notitie.py | 2 +- calcasa-api/model/notities.py | 2 +- calcasa-api/model/objectdata.py | 2 +- calcasa-api/model/omgevingsdata.py | 2 +- calcasa-api/model/operation.py | 2 +- calcasa-api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa-api/model/problem_details.py | 2 +- calcasa-api/model/product_type.py | 2 +- calcasa-api/model/rapport.py | 2 +- calcasa-api/model/referentieobject.py | 2 +- calcasa-api/model/taxatiedata.py | 2 +- calcasa-api/model/taxatiestatus.py | 2 +- .../model/validation_problem_details.py | 2 +- calcasa-api/model/verkoop_bijzonderheden.py | 2 +- calcasa-api/model/vorige_verkoop.py | 2 +- calcasa-api/model/waardering.py | 2 +- .../model/waardering_input_parameters.py | 2 +- calcasa-api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa-api/model/waardering_status.py | 2 +- .../model/waardering_webhook_payload.py | 286 ++++++++++++++++++ .../model/waardering_zoek_parameters.py | 6 +- calcasa-api/model/woning_type.py | 2 +- calcasa-api/model_utils.py | 2 +- calcasa-api/models/__init__.py | 1 + calcasa-api/rest.py | 2 +- setup.py | 4 +- 71 files changed, 381 insertions(+), 80 deletions(-) create mode 100644 calcasa-api/model/waardering_webhook_payload.py diff --git a/README.md b/README.md index d333963..fac4414 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,21 @@ The Calcasa API is used to connect to Calcasa provided services. This is the fir ## Changelog +### 2021-12-22 (v1.0.1) +- Dates are now serialized in the ISO date-only format `yyyy-MM-dd` to stop any confusion around timezones and are all assumed to be in UTC. + - `peildatum` in `WaarderingsInputParameters` + - `datum_bestemmingplan` in `Bestemmingsdata` + - `datum_laatste_onderzoek` in `Bodemdata` + - `verkoopdatum` in `Referentieobject` + - `verkoopdatum` in `VorigeVerkoop` + - `waardebepalingsdatum` in `Modeldata` +- Reintroduced the `WaarderingWebhookPayload` model that was omitted. + +### 2021-12-21 +- Patching the status of a `Waardering` object will now immediatly reflect its new status in the response object. + ### 2021-12-13 (v1.0.0) -- Initial release of v0 based on v0.0.6 +- Initial release of v1 based on v0.0.6 ## Client packages [Nuget](https://www.nuget.org/packages/Calcasa.Api) - [Packagist](https://packagist.org/packages/calcasa/api) - [PyPI](https://pypi.org/project/calcasa.api) @@ -30,8 +43,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.0 -- Package version: 1.0.0 +- API version: 1.0.1 +- Package version: 1.0.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -190,6 +203,7 @@ Class | Method | HTTP request | Description - [WaarderingOntwikkeling](docs/WaarderingOntwikkeling.md) - [WaarderingOntwikkelingKwartaal](docs/WaarderingOntwikkelingKwartaal.md) - [WaarderingStatus](docs/WaarderingStatus.md) + - [WaarderingWebhookPayload](docs/WaarderingWebhookPayload.md) - [WaarderingZoekParameters](docs/WaarderingZoekParameters.md) - [WoningType](docs/WoningType.md) diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index 4e4a7a2..5159e1f 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.0.0" +__version__ = "1.0.1" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index f8cbcf0..2957c76 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py index 735103f..7cad05a 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index 4e7f8ee..b4d93ce 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py index a8e9506..5505bb1 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index ddce422..a8d5e96 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py index 565ac2f..0588463 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index 40e595d..53995e2 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index dc10bac..e0bea00 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index 4dc51bf..5b82778 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index c3619c7..0b082bf 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -328,7 +328,7 @@ def create_waardering( ): """Creërt een waardering. # noqa: E501 - Nadat de waardering aangemaakt is zal deze bevestigd moeten worden. De BagNummeraanduidingId en ProductType velden zijn verplicht. # 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/v1/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 @@ -523,7 +523,7 @@ def patch_waarderingen( ): """Patcht een waardering. # noqa: E501 - Op dit moment kan alleen de waarderingsstatus gepatcht worden. Dit endpoint kan gebruikt worden om een waarderingsinitialisatie te bevestigen. # 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/v1/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 diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py index 9326deb..74586ef 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.0.0' + self.user_agent = 'Calcasa Python Api Client/1.0.1' def __enter__(self): return self diff --git a/calcasa-api/configuration.py b/calcasa-api/configuration.py index 777ce25..7ae90e2 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ - "SDK Package Version: 1.0.0".\ + "Version of the API: 1.0.1\n"\ + "SDK Package Version: 1.0.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index 93a0c30..850b7b3 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index f980dba..6a79dc8 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index 0152317..88be39e 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index 3361f31..7a28af2 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index 7a24cf3..ca5b388 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index d439edc..b5be223 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index 9af9e68..ab52689 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py index 53469ad..1850bf0 100644 --- a/calcasa-api/model/business_rules_code.py +++ b/calcasa-api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa-api/model/business_rules_problem_details.py index b47e5a3..dec08ca 100644 --- a/calcasa-api/model/business_rules_problem_details.py +++ b/calcasa-api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/callback.py b/calcasa-api/model/callback.py index d211c1c..36e461a 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index d307279..60e9e41 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index 6339b4e..d5da65f 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index eb02903..0a968d0 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index ecf5d53..f1af9bb 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index 4cc18af..e0d303d 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index 2273784..0f17114 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index d614435..cc557a0 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index d0a4d9f..4ba2a1c 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index 51a0e9f..439f61d 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index b9b97f8..80b78d4 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index 840e2c1..0754911 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index 4d213f8..a17eb8e 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index e7517f7..6853568 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py index de8a5e0..9172724 100644 --- a/calcasa-api/model/invalid_argument_problem_details.py +++ b/calcasa-api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/json_patch_document.py b/calcasa-api/model/json_patch_document.py index d8f63c1..7e8cf79 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index 4463655..056e171 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index 5edccea..faaf58c 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index 1c087d4..ac33223 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py index eac943b..c870fa2 100644 --- a/calcasa-api/model/not_found_problem_details.py +++ b/calcasa-api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notitie.py b/calcasa-api/model/notitie.py index 061df81..8167878 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index 81d9907..72e9715 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index d9f2215..36033b9 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 6d8ec83..076dd83 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index ab0e569..4f8b156 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 9c97450..6ed92df 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py index e94024b..c7ad934 100644 --- a/calcasa-api/model/permissions_denied_problem_details.py +++ b/calcasa-api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/problem_details.py b/calcasa-api/model/problem_details.py index b932b2a..20428a3 100644 --- a/calcasa-api/model/problem_details.py +++ b/calcasa-api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/product_type.py b/calcasa-api/model/product_type.py index b80415c..38935ae 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index 09b36d3..dcd47f1 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index c3816ba..24125a2 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py index 29a2e65..68c4482 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index 3e6e593..91af116 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index fcf4a5b..fc66db1 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py index 20926f8..7986826 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index 58dc0d1..8251047 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index 55dd1b4..039ec3a 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index 33c9f8e..05eede0 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index 76a92dc..df36f85 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index cefac5a..37ae51b 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index 8e43c60..0542efa 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py new file mode 100644 index 0000000..79ef6fc --- /dev/null +++ b/calcasa-api/model/waardering_webhook_payload.py @@ -0,0 +1,286 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.0.1 + 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 index 60eba86..eacdf1c 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -154,7 +154,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar 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 + aangemaakt (datetime, none_type): De datum/tijd 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 @@ -245,7 +245,7 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n 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 + aangemaakt (datetime, none_type): De datum/tijd 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 diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index baec3a3..587c9cc 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index f1f0f4f..3841e17 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py index 1deab61..af10017 100644 --- a/calcasa-api/models/__init__.py +++ b/calcasa-api/models/__init__.py @@ -58,5 +58,6 @@ 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 index b25dc1c..e9c68fc 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 01ba57e..5f608f4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.0.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.0.0" +VERSION = "1.0.1" # To install the library, run the following # # python setup.py install From 085af6b25c63b1f5152fde2e2757240d0bbc5c4c Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 11 Jan 2022 15:24:12 +0100 Subject: [PATCH 03/20] Release 1.0.2 (2022-01-11) - Fixed `GET /api/v1/bodem/{id}` endpoint path parameter description, query parameter was never meant to be there. --- README.md | 14 ++++-- calcasa-api/__init__.py | 4 +- calcasa-api/api/adressen_api.py | 2 +- calcasa-api/api/bestemmingsplannen_api.py | 2 +- calcasa-api/api/bodem_api.py | 24 ++++----- calcasa-api/api/buurt_api.py | 2 +- calcasa-api/api/configuratie_api.py | 4 +- calcasa-api/api/facturen_api.py | 2 +- calcasa-api/api/fotos_api.py | 2 +- calcasa-api/api/funderingen_api.py | 2 +- calcasa-api/api/rapporten_api.py | 2 +- calcasa-api/api/waarderingen_api.py | 2 +- calcasa-api/api_client.py | 4 +- calcasa-api/configuration.py | 6 +-- calcasa-api/exceptions.py | 2 +- calcasa-api/model/aanvraagdoel.py | 2 +- calcasa-api/model/adres.py | 2 +- calcasa-api/model/adres_info.py | 2 +- calcasa-api/model/bestemmingsdata.py | 2 +- calcasa-api/model/bodem_status_type.py | 2 +- calcasa-api/model/bodemdata.py | 2 +- calcasa-api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa-api/model/callback.py | 6 +-- calcasa-api/model/cbs_indeling.py | 2 +- calcasa-api/model/energielabel.py | 2 +- calcasa-api/model/factuur.py | 2 +- calcasa-api/model/foto.py | 2 +- calcasa-api/model/fundering_data_bron.py | 2 +- calcasa-api/model/fundering_herstel_type.py | 2 +- calcasa-api/model/fundering_risico.py | 2 +- calcasa-api/model/fundering_risico_label.py | 2 +- calcasa-api/model/fundering_soort_bron.py | 2 +- calcasa-api/model/fundering_type.py | 2 +- calcasa-api/model/fundering_typering.py | 2 +- calcasa-api/model/funderingdata.py | 2 +- calcasa-api/model/gebiedsdata.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa-api/model/json_patch_document.py | 2 +- calcasa-api/model/klantwaarde_type.py | 2 +- calcasa-api/model/kwartaal.py | 2 +- calcasa-api/model/modeldata.py | 2 +- .../model/not_found_problem_details.py | 2 +- calcasa-api/model/notitie.py | 2 +- calcasa-api/model/notities.py | 2 +- calcasa-api/model/objectdata.py | 2 +- calcasa-api/model/omgevingsdata.py | 2 +- calcasa-api/model/operation.py | 2 +- calcasa-api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa-api/model/problem_details.py | 2 +- calcasa-api/model/product_type.py | 10 ++-- calcasa-api/model/rapport.py | 2 +- calcasa-api/model/referentieobject.py | 2 +- calcasa-api/model/taxatiedata.py | 2 +- calcasa-api/model/taxatiestatus.py | 2 +- .../model/validation_problem_details.py | 2 +- calcasa-api/model/verkoop_bijzonderheden.py | 2 +- calcasa-api/model/vorige_verkoop.py | 2 +- calcasa-api/model/waardering.py | 2 +- .../model/waardering_input_parameters.py | 50 +++++++++---------- calcasa-api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa-api/model/waardering_status.py | 2 +- .../model/waardering_webhook_payload.py | 2 +- .../model/waardering_zoek_parameters.py | 6 +-- calcasa-api/model/woning_type.py | 2 +- calcasa-api/model_utils.py | 2 +- calcasa-api/rest.py | 2 +- setup.py | 4 +- 70 files changed, 125 insertions(+), 125 deletions(-) diff --git a/README.md b/README.md index fac4414..b9aae7b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,12 @@ The Calcasa API is used to connect to Calcasa provided services. This is the fir ## Changelog +### 2022-01-11 (v1.0.2) +- Fixed `GET /api/v1/bodem/{id}` endpoint path parameter description, query parameter was never meant to be there. + +### 2021-12-23 +- Clarified the documentation pertaining to the `WaarderingInputParameters` and which fields are required for the different product types. + ### 2021-12-22 (v1.0.1) - Dates are now serialized in the ISO date-only format `yyyy-MM-dd` to stop any confusion around timezones and are all assumed to be in UTC. - `peildatum` in `WaarderingsInputParameters` @@ -17,7 +23,7 @@ The Calcasa API is used to connect to Calcasa provided services. This is the fir - Patching the status of a `Waardering` object will now immediatly reflect its new status in the response object. ### 2021-12-13 (v1.0.0) -- Initial release of v1 based on v0.0.6 +- Initial release of `v1` based on `v0.0.6` ## Client packages [Nuget](https://www.nuget.org/packages/Calcasa.Api) - [Packagist](https://packagist.org/packages/calcasa/api) - [PyPI](https://pypi.org/project/calcasa.api) @@ -43,8 +49,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.1 -- Package version: 1.0.1 +- API version: 1.0.2 +- Package version: 1.0.2 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -137,7 +143,7 @@ Class | Method | HTTP request | Description *AdressenApi* | [**get_adres**](docs/AdressenApi.md#get_adres) | **GET** /api/v1/adressen/{bagNummeraanduidingId} | Adres info op basis van BAG Nummeraanduiding Id. *AdressenApi* | [**search_adres**](docs/AdressenApi.md#search_adres) | **POST** /api/v1/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/v1/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/v1/bodem/{id} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). +*BodemApi* | [**get_bodem_by_id**](docs/BodemApi.md#get_bodem_by_id) | **GET** /api/v1/bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). *BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v1/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/v1/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client. *ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /api/v1/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client. diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index 5159e1f..9ad6774 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.0.1" +__version__ = "1.0.2" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index 2957c76..50b7a30 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py index 7cad05a..9b9e1a3 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index b4d93ce..84bc0c6 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,18 +56,17 @@ def __init__(self, api_client=None): 'auth': [ 'oauth' ], - 'endpoint_path': '/api/v1/bodem/{id}', + 'endpoint_path': '/api/v1/bodem/{bagNummeraanduidingId}', 'operation_id': 'get_bodem_by_id', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'id', 'bag_nummeraanduiding_id', ], 'required': [ - 'id', + 'bag_nummeraanduiding_id', ], 'nullable': [ ], @@ -82,18 +81,14 @@ def __init__(self, api_client=None): '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', + 'bag_nummeraanduiding_id': 'path', }, 'collection_format_map': { } @@ -110,7 +105,7 @@ def __init__(self, api_client=None): def get_bodem_by_id( self, - id, + bag_nummeraanduiding_id, **kwargs ): """Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). # noqa: E501 @@ -119,14 +114,13 @@ def get_bodem_by_id( 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) + >>> thread = api.get_bodem_by_id(bag_nummeraanduiding_id, async_req=True) >>> result = thread.get() Args: - id (str): + bag_nummeraanduiding_id (int): Een BAG Nummeraanduiding ID om een adres te specificeren. 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 @@ -171,7 +165,7 @@ def get_bodem_by_id( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['id'] = \ - id + kwargs['bag_nummeraanduiding_id'] = \ + bag_nummeraanduiding_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 index 5505bb1..978452c 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index a8d5e96..399e4e0 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -219,7 +219,7 @@ def update_callbacks( ): """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 + 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. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py index 0588463..6e8239b 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index 53995e2..a8f1448 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index e0bea00..8cf86e6 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index 5b82778..c818884 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index 0b082bf..028cde5 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py index 74586ef..2bbaadb 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.0.1' + self.user_agent = 'Calcasa Python Api Client/1.0.2' def __enter__(self): return self diff --git a/calcasa-api/configuration.py b/calcasa-api/configuration.py index 7ae90e2..11d0053 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.1\n"\ - "SDK Package Version: 1.0.1".\ + "Version of the API: 1.0.2\n"\ + "SDK Package Version: 1.0.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index 850b7b3..f3a0546 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index 6a79dc8..48fb36e 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index 88be39e..491a6fc 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index 7a28af2..ab7f234 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index ca5b388..873f967 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index b5be223..668d1fc 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index ab52689..9f95103 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py index 1850bf0..646d545 100644 --- a/calcasa-api/model/business_rules_code.py +++ b/calcasa-api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa-api/model/business_rules_problem_details.py index dec08ca..047d77a 100644 --- a/calcasa-api/model/business_rules_problem_details.py +++ b/calcasa-api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/callback.py b/calcasa-api/model/callback.py index 36e461a..f0c650f 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -146,7 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + url (str): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -229,7 +229,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + url (str): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index 60e9e41..59f2184 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index d5da65f..7a5297a 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index 0a968d0..17e0d42 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index f1af9bb..d3beca3 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index e0d303d..5267959 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index 0f17114..6797c46 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index cc557a0..679e0ba 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index 4ba2a1c..c6e976b 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index 439f61d..df679d7 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index 80b78d4..4574f9f 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index 0754911..2cf13e3 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index a17eb8e..7f83088 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index 6853568..2cfa849 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py index 9172724..a454df1 100644 --- a/calcasa-api/model/invalid_argument_problem_details.py +++ b/calcasa-api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/json_patch_document.py b/calcasa-api/model/json_patch_document.py index 7e8cf79..c0b92ed 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index 056e171..2ca0639 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index faaf58c..ab72369 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index ac33223..5fa258d 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py index c870fa2..96cad90 100644 --- a/calcasa-api/model/not_found_problem_details.py +++ b/calcasa-api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notitie.py b/calcasa-api/model/notitie.py index 8167878..b8551ca 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index 72e9715..64d86b0 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index 36033b9..5997a5c 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 076dd83..3ed3a79 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index 4f8b156..4a3a993 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 6ed92df..2517431 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py index c7ad934..449e0b4 100644 --- a/calcasa-api/model/permissions_denied_problem_details.py +++ b/calcasa-api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/problem_details.py b/calcasa-api/model/problem_details.py index 20428a3..665baf0 100644 --- a/calcasa-api/model/problem_details.py +++ b/calcasa-api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/product_type.py b/calcasa-api/model/product_type.py index 38935ae..49e3653 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -120,10 +120,10 @@ def __init__(self, *args, **kwargs): 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 + args[0] (str): 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. | ., 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 + value (str): 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. | ., 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. @@ -210,10 +210,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + args[0] (str): 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. | ., 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 + value (str): 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. | ., 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. diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index dcd47f1..7d50f00 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index 24125a2..d649412 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py index 68c4482..8da21d0 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index 91af116..d42eac0 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index fc66db1..68681f2 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py index 7986826..a19f0a0 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index 8251047..195071c 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index 039ec3a..6737b2d 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index 05eede0..adcf38b 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -132,8 +132,8 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar """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. + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | + bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -166,16 +166,16 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar 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 + geldverstrekker (str): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 + hypotheekwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros.. [optional] # noqa: E501 + aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 + klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 + is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + is_bestaande_nhg_hypotheek (bool): Optioneel te gebruiken voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 + peildatum (datetime, none_type): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -229,8 +229,8 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n """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. + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | + bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -263,16 +263,16 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n 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 + geldverstrekker (str): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 + hypotheekwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros.. [optional] # noqa: E501 + aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 + klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 + is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + is_bestaande_nhg_hypotheek (bool): Optioneel te gebruiken voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 + peildatum (datetime, none_type): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index df36f85..da2ddbd 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index 37ae51b..78273f9 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index 0542efa..6a7d791 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py index 79ef6fc..831a191 100644 --- a/calcasa-api/model/waardering_webhook_payload.py +++ b/calcasa-api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa-api/model/waardering_zoek_parameters.py index eacdf1c..a0636d0 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -120,7 +120,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar """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. | + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht.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. | bag_nummeraanduiding_id (int): Verplicht. Keyword Args: @@ -211,7 +211,7 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n """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. | + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht.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. | bag_nummeraanduiding_id (int): Verplicht. Keyword Args: diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index 587c9cc..c329796 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index 3841e17..aae056b 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/rest.py b/calcasa-api/rest.py index e9c68fc..765ab91 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 5f608f4..0403e4e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.0.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.0.1" +VERSION = "1.0.2" # To install the library, run the following # # python setup.py install From 651ed9c2d7d676b386b988faa5ebdffd6c780210 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Mon, 7 Mar 2022 16:24:20 +0100 Subject: [PATCH 04/20] Release 1.1.0 (2022-03-07) - Added `isErfpacht` to `WaarderingInputParameters`. - Cleaned up serialization of null values, they should no longer appear in the output. --- README.md | 98 ++++-- calcasa-api/__init__.py | 4 +- calcasa-api/api/adressen_api.py | 31 +- calcasa-api/api/bestemmingsplannen_api.py | 18 +- calcasa-api/api/bodem_api.py | 18 +- calcasa-api/api/buurt_api.py | 18 +- calcasa-api/api/configuratie_api.py | 31 +- calcasa-api/api/facturen_api.py | 18 +- calcasa-api/api/fotos_api.py | 18 +- calcasa-api/api/funderingen_api.py | 18 +- calcasa-api/api/rapporten_api.py | 18 +- calcasa-api/api/waarderingen_api.py | 72 ++++- calcasa-api/api_client.py | 49 ++- calcasa-api/configuration.py | 6 +- calcasa-api/exceptions.py | 2 +- calcasa-api/model/__init__.py | 2 +- calcasa-api/model/aanvraagdoel.py | 4 +- calcasa-api/model/adres.py | 4 +- calcasa-api/model/adres_info.py | 11 +- calcasa-api/model/bestemmingsdata.py | 4 +- calcasa-api/model/bodem_status_type.py | 4 +- calcasa-api/model/bodemdata.py | 9 +- calcasa-api/model/business_rules_code.py | 302 ------------------ .../model/business_rules_problem_details.py | 287 ----------------- calcasa-api/model/callback.py | 4 +- calcasa-api/model/cbs_indeling.py | 4 +- calcasa-api/model/energielabel.py | 4 +- calcasa-api/model/factuur.py | 4 +- calcasa-api/model/foto.py | 4 +- calcasa-api/model/fundering_data_bron.py | 4 +- calcasa-api/model/fundering_herstel_type.py | 4 +- calcasa-api/model/fundering_risico.py | 11 +- calcasa-api/model/fundering_risico_label.py | 4 +- calcasa-api/model/fundering_soort_bron.py | 4 +- calcasa-api/model/fundering_type.py | 4 +- calcasa-api/model/fundering_typering.py | 11 +- calcasa-api/model/funderingdata.py | 15 +- calcasa-api/model/gebiedsdata.py | 4 +- .../model/invalid_argument_problem_details.py | 287 ----------------- calcasa-api/model/json_patch_document.py | 4 +- calcasa-api/model/klantwaarde_type.py | 4 +- calcasa-api/model/kwartaal.py | 4 +- calcasa-api/model/modeldata.py | 4 +- .../model/not_found_problem_details.py | 287 ----------------- calcasa-api/model/notitie.py | 4 +- calcasa-api/model/notities.py | 9 +- calcasa-api/model/objectdata.py | 11 +- calcasa-api/model/omgevingsdata.py | 9 +- calcasa-api/model/operation.py | 4 +- calcasa-api/model/operation_type.py | 4 +- .../permissions_denied_problem_details.py | 287 ----------------- calcasa-api/model/problem_details.py | 283 ---------------- calcasa-api/model/product_type.py | 4 +- calcasa-api/model/rapport.py | 4 +- calcasa-api/model/referentieobject.py | 10 +- calcasa-api/model/taxatiedata.py | 9 +- calcasa-api/model/taxatiestatus.py | 4 +- .../model/validation_problem_details.py | 80 +---- calcasa-api/model/verkoop_bijzonderheden.py | 4 +- calcasa-api/model/vorige_verkoop.py | 4 +- calcasa-api/model/waardering.py | 26 +- .../model/waardering_input_parameters.py | 25 +- calcasa-api/model/waardering_ontwikkeling.py | 4 +- .../model/waardering_ontwikkeling_kwartaal.py | 9 +- calcasa-api/model/waardering_status.py | 13 +- .../model/waardering_webhook_payload.py | 17 +- .../model/waardering_zoek_parameters.py | 13 +- calcasa-api/model/woning_type.py | 4 +- calcasa-api/model_utils.py | 12 +- calcasa-api/models/__init__.py | 6 - calcasa-api/rest.py | 2 +- setup.py | 4 +- 72 files changed, 558 insertions(+), 2024 deletions(-) delete mode 100644 calcasa-api/model/business_rules_code.py delete mode 100644 calcasa-api/model/business_rules_problem_details.py delete mode 100644 calcasa-api/model/invalid_argument_problem_details.py delete mode 100644 calcasa-api/model/not_found_problem_details.py delete mode 100644 calcasa-api/model/permissions_denied_problem_details.py delete mode 100644 calcasa-api/model/problem_details.py diff --git a/README.md b/README.md index b9aae7b..205530b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,28 @@ # calcasa-api The Calcasa API is used to connect to Calcasa provided services. This is the first production version of the service +## 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 for for example the languages we don't provide a pre-built client for. This is documented [here](/api/v1/articles/clients/generation). + ## Changelog +### 2022-03-07 (v1.1.0) +- Added `isErfpacht` to `WaarderingInputParameters`. +- Cleaned up serialization of null values, they should no longer appear in the output. + +### 2021-02-04 +- Added extra clarification to the documentation pertaining to the `WaarderingInputParameters` and which fields are required for the different input parameter combinations. + ### 2022-01-11 (v1.0.2) - Fixed `GET /api/v1/bodem/{id}` endpoint path parameter description, query parameter was never meant to be there. @@ -25,19 +45,6 @@ The Calcasa API is used to connect to Calcasa provided services. This is the fir ### 2021-12-13 (v1.0.0) - Initial release of `v1` based on `v0.0.6` -## 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. @@ -46,17 +53,67 @@ All responses have a wildcard same-origin which makes them completely public and ## Authentication Authentication is done via [OAuth2](https://oauth.net/2/) and the [client credentials](https://oauth.net/2/grant-types/client-credentials/) grant type. +## Previous versions changelogs + +### 2022-02-02 +- API version `v0` was removed from service. + +### 2021-12-23 +- Mark `v0` as officially deprecated. No further versions will be released. Every implementation should move to `v1` + +### 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` This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.2 -- Package version: 1.0.2 +- API version: 1.1.0 +- Package version: 1.1.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.6 ## Installation & Usage ### pip install @@ -99,9 +156,6 @@ 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 # See configuration.py for a list of all supported configuration parameters. configuration = calcasa-api.Configuration( @@ -166,8 +220,6 @@ Class | Method | HTTP request | Description - [Bestemmingsdata](docs/Bestemmingsdata.md) - [BodemStatusType](docs/BodemStatusType.md) - [Bodemdata](docs/Bodemdata.md) - - [BusinessRulesCode](docs/BusinessRulesCode.md) - - [BusinessRulesProblemDetails](docs/BusinessRulesProblemDetails.md) - [Callback](docs/Callback.md) - [CbsIndeling](docs/CbsIndeling.md) - [Energielabel](docs/Energielabel.md) @@ -182,20 +234,16 @@ Class | Method | HTTP request | Description - [FunderingTypering](docs/FunderingTypering.md) - [Funderingdata](docs/Funderingdata.md) - [Gebiedsdata](docs/Gebiedsdata.md) - - [InvalidArgumentProblemDetails](docs/InvalidArgumentProblemDetails.md) - [JsonPatchDocument](docs/JsonPatchDocument.md) - [KlantwaardeType](docs/KlantwaardeType.md) - [Kwartaal](docs/Kwartaal.md) - [Modeldata](docs/Modeldata.md) - - [NotFoundProblemDetails](docs/NotFoundProblemDetails.md) - [Notitie](docs/Notitie.md) - [Notities](docs/Notities.md) - [Objectdata](docs/Objectdata.md) - [Omgevingsdata](docs/Omgevingsdata.md) - [Operation](docs/Operation.md) - [OperationType](docs/OperationType.md) - - [PermissionsDeniedProblemDetails](docs/PermissionsDeniedProblemDetails.md) - - [ProblemDetails](docs/ProblemDetails.md) - [ProductType](docs/ProductType.md) - [Rapport](docs/Rapport.md) - [Referentieobject](docs/Referentieobject.md) diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index 9ad6774..a2ebca3 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.0.2" +__version__ = "1.1.0" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index 50b7a30..28508a3 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -35,9 +35,6 @@ ) 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): @@ -96,7 +93,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -145,7 +141,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [ @@ -188,6 +183,13 @@ def get_adres( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -216,6 +218,11 @@ def get_adres( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['bag_nummeraanduiding_id'] = \ bag_nummeraanduiding_id @@ -252,6 +259,13 @@ def search_adres( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -280,6 +294,11 @@ def search_adres( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') 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 index 9b9e1a3..1dad95d 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,9 +34,6 @@ 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): @@ -95,7 +92,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -136,6 +132,13 @@ def get_bestemming_by_id( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -164,6 +167,11 @@ def get_bestemming_by_id( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['bag_nummeraanduiding_id'] = \ bag_nummeraanduiding_id diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index 84bc0c6..8ed4a61 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,9 +34,6 @@ 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): @@ -95,7 +92,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -136,6 +132,13 @@ def get_bodem_by_id( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -164,6 +167,11 @@ def get_bodem_by_id( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['bag_nummeraanduiding_id'] = \ bag_nummeraanduiding_id diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py index 978452c..9b6ed45 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,10 +33,7 @@ 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): @@ -95,7 +92,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -136,6 +132,13 @@ def get_buurt( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -164,6 +167,11 @@ def get_buurt( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['buurt_id'] = \ buurt_id diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index 399e4e0..3b76b42 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,9 +34,6 @@ 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): @@ -88,7 +85,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -137,7 +133,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [ @@ -182,6 +177,13 @@ def get_callbacks( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -210,6 +212,11 @@ def get_callbacks( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.get_callbacks_endpoint.call_with_http_info(**kwargs) @@ -244,6 +251,13 @@ def update_callbacks( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -272,6 +286,11 @@ def update_callbacks( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') 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 index 6e8239b..eccade1 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,9 +33,6 @@ 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): @@ -94,7 +91,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/pdf' ], 'content_type': [], @@ -134,6 +130,13 @@ def get_factuur( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -162,6 +165,11 @@ def get_factuur( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index a8f1448..41d8dd8 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,9 +33,6 @@ 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): @@ -94,7 +91,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'image/jpeg', 'image/png' ], @@ -135,6 +131,13 @@ def get_foto( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -163,6 +166,11 @@ def get_foto( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index 8cf86e6..4f5d6dc 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,9 +34,6 @@ 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): @@ -95,7 +92,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -136,6 +132,13 @@ def get_fundering_by_id( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -164,6 +167,11 @@ def get_fundering_by_id( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['bag_nummeraanduiding_id'] = \ bag_nummeraanduiding_id diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index c818884..5174424 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,9 +33,6 @@ 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): @@ -94,7 +91,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/pdf' ], 'content_type': [], @@ -134,6 +130,13 @@ def get_rapport( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -162,6 +165,11 @@ def get_rapport( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index 028cde5..e44cd64 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,12 +33,7 @@ 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 @@ -99,7 +94,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [ @@ -153,7 +147,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -205,7 +198,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [], @@ -261,7 +253,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [ @@ -312,7 +303,6 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/problem+json', 'application/json' ], 'content_type': [ @@ -353,6 +343,13 @@ def create_waardering( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -381,6 +378,11 @@ def create_waardering( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') return self.create_waardering_endpoint.call_with_http_info(**kwargs) @@ -417,6 +419,13 @@ def get_waardering( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -445,6 +454,11 @@ def get_waardering( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id @@ -483,6 +497,13 @@ def get_waardering_ontwikkeling( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -511,6 +532,11 @@ def get_waardering_ontwikkeling( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id @@ -550,6 +576,13 @@ def patch_waarderingen( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -578,6 +611,11 @@ def patch_waarderingen( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id @@ -614,6 +652,13 @@ def search_waarderingen( _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. @@ -642,6 +687,11 @@ def search_waarderingen( kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') 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 index 2bbaadb..05989b9 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.0.2' + self.user_agent = 'Calcasa Python Api Client/1.1.0' def __enter__(self): return self @@ -143,7 +143,8 @@ def __call_api( _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 + _check_type: typing.Optional[bool] = None, + _content_type: typing.Optional[str] = None ): config = self.configuration @@ -584,17 +585,24 @@ def select_header_accept(self, accepts): else: return ', '.join(accepts) - def select_header_content_type(self, content_types): + def select_header_content_type(self, content_types, method=None, body=None): """Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. + :param method: http method (e.g. POST, PATCH). + :param body: http body to send. :return: Content-Type (e.g. application/json). """ if not content_types: - return 'application/json' + return None content_types = [x.lower() for x in content_types] + if (method == 'PATCH' and + 'application/json-patch+json' in content_types and + isinstance(body, list)): + return 'application/json-patch+json' + if 'application/json' in content_types or '*/*' in content_types: return 'application/json' else: @@ -676,7 +684,9 @@ def __init__(self, settings=None, params_map=None, root_map=None, '_request_timeout', '_return_http_data_only', '_check_input_type', - '_check_return_type' + '_check_return_type', + '_content_type', + '_spec_property_naming' ]) self.params_map['nullable'].extend(['_request_timeout']) self.validations = root_map['validations'] @@ -689,7 +699,9 @@ def __init__(self, settings=None, params_map=None, root_map=None, '_request_timeout': (none_type, float, (float,), [float], int, (int,), [int]), '_return_http_data_only': (bool,), '_check_input_type': (bool,), - '_check_return_type': (bool,) + '_check_return_type': (bool,), + '_spec_property_naming': (bool,), + '_content_type': (none_type, str) } self.openapi_types.update(extra_types) self.attribute_map = root_map['attribute_map'] @@ -725,7 +737,7 @@ def __validate_inputs(self, kwargs): value, self.openapi_types[key], [key], - False, + kwargs['_spec_property_naming'], kwargs['_check_input_type'], configuration=self.api_client.configuration ) @@ -753,11 +765,11 @@ def __gather_params(self, kwargs): 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] + params['file'][base_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 + params['file'][base_name] = param_value elif param_location in {'form', 'query'}: param_value_full = (base_name, param_value) params[param_location].append(param_value_full) @@ -836,12 +848,17 @@ def call_with_http_info(self, **kwargs): 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 + if kwargs.get('_content_type'): + params['header']['Content-Type'] = kwargs['_content_type'] + else: + content_type_headers_list = self.headers_map['content_type'] + if content_type_headers_list: + if params['body'] != "": + content_types_list = self.api_client.select_header_content_type( + content_type_headers_list, self.settings['http_method'], + params['body']) + if content_types_list: + params['header']['Content-Type'] = content_types_list return self.api_client.call_api( self.settings['endpoint_path'], self.settings['http_method'], diff --git a/calcasa-api/configuration.py b/calcasa-api/configuration.py index 11d0053..c1374a7 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.2\n"\ - "SDK Package Version: 1.0.2".\ + "Version of the API: 1.1.0\n"\ + "SDK Package Version: 1.1.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index f3a0546..d13a3f7 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/__init__.py b/calcasa-api/model/__init__.py index cfe32b7..c41b2f8 100644 --- a/calcasa-api/model/__init__.py +++ b/calcasa-api/model/__init__.py @@ -2,4 +2,4 @@ # 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 +# from calcasa-api.models import ModelA, ModelB diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index 48fb36e..3aa93ef 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index 491a6fc..4f3b4e6 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index ab7f234..aa0cf9a 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,17 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.adres import Adres + from calcasa-api.model.notities import Notities + globals()['Adres'] = Adres + globals()['Notities'] = Notities + class AdresInfo(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +92,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'bag_nummeraanduiding_id': (int,), # noqa: E501 'adres': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index 873f967..6b0f29a 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index 668d1fc..256a8a3 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index 9f95103..88b5db1 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,15 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.bodem_status_type import BodemStatusType + globals()['BodemStatusType'] = BodemStatusType + class Bodemdata(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +90,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'datum_laatste_onderzoek': (datetime, none_type,), # noqa: E501 diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py deleted file mode 100644 index 646d545..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 v1 - - The version of the OpenAPI document: 1.0.2 - 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 047d77a..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 v1 - - The version of the OpenAPI document: 1.0.2 - 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 index f0c650f..acec4ac 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index 59f2184..aecdfe8 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index 7a5297a..682cf58 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index 17e0d42..40316a3 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index d3beca3..cdce10e 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index 5267959..ffe4296 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index 6797c46..31f20cd 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index 679e0ba..cf910c5 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,17 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.fundering_risico_label import FunderingRisicoLabel + from calcasa-api.model.fundering_soort_bron import FunderingSoortBron + globals()['FunderingRisicoLabel'] = FunderingRisicoLabel + globals()['FunderingSoortBron'] = FunderingSoortBron + class FunderingRisico(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +92,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() 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 diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index c6e976b..8efa095 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index df679d7..f4fb6c5 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index 4574f9f..da62179 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index 2cf13e3..ed17b63 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,17 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.fundering_soort_bron import FunderingSoortBron + from calcasa-api.model.fundering_type import FunderingType + globals()['FunderingSoortBron'] = FunderingSoortBron + globals()['FunderingType'] = FunderingType + class FunderingTypering(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +92,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() 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 diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index 7f83088..b1ac0d4 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,21 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + 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_typering import FunderingTypering + globals()['FunderingDataBron'] = FunderingDataBron + globals()['FunderingHerstelType'] = FunderingHerstelType + globals()['FunderingRisico'] = FunderingRisico + globals()['FunderingTypering'] = FunderingTypering + class Funderingdata(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +96,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() 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 diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index 2cfa849..1fe8e0a 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError 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 a454df1..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 v1 - - The version of the OpenAPI document: 1.0.2 - 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 index c0b92ed..6329388 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index 2ca0639..eebc897 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index ab72369..775a74a 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index 5fa258d..70d67e4 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError 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 96cad90..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 v1 - - The version of the OpenAPI document: 1.0.2 - 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 index b8551ca..df93183 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index 64d86b0..e7c2841 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,15 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.notitie import Notitie + globals()['Notitie'] = Notitie + class Notities(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +90,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() 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 diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index 5997a5c..9258870 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,17 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.energielabel import Energielabel + from calcasa-api.model.woning_type import WoningType + globals()['Energielabel'] = Energielabel + globals()['WoningType'] = WoningType + class Objectdata(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +92,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'woning_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'bouwjaar': (int,), # noqa: E501 diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 3ed3a79..889b718 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,15 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata + class Omgevingsdata(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +90,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() 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 diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index 4a3a993..ec70e57 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 2517431..68c5eaa 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError 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 449e0b4..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 v1 - - The version of the OpenAPI document: 1.0.2 - 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 665baf0..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 v1 - - The version of the OpenAPI document: 1.0.2 - 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 index 49e3653..ec499c3 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index 7d50f00..3c3472b 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index d649412..8146a89 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,15 +36,21 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError def lazy_import(): + from calcasa-api.model.adres import Adres + from calcasa-api.model.cbs_indeling import CbsIndeling from calcasa-api.model.foto import Foto + from calcasa-api.model.objectdata import Objectdata from calcasa-api.model.verkoop_bijzonderheden import VerkoopBijzonderheden + globals()['Adres'] = Adres + globals()['CbsIndeling'] = CbsIndeling globals()['Foto'] = Foto + globals()['Objectdata'] = Objectdata globals()['VerkoopBijzonderheden'] = VerkoopBijzonderheden diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py index 8da21d0..f19155a 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,15 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.taxatiestatus import Taxatiestatus + globals()['Taxatiestatus'] = Taxatiestatus + class Taxatiedata(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +90,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'taxatieorganisatie': (str,), # noqa: E501 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index d42eac0..c876e0b 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index 68681f2..2f02df0 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,17 +36,13 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -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): +class ValidationProblemDetails(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,7 +78,6 @@ 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 @@ -97,9 +92,8 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'errors': ({str: ([str],)}, none_type,), # noqa: E501 + 'errors': ({str: ([str],)},), # noqa: E501 'type': (str, none_type,), # noqa: E501 'title': (str, none_type,), # noqa: E501 'status': (int, none_type,), # noqa: E501 @@ -124,6 +118,8 @@ def discriminator(): read_only_vars = { } + _composed_schemas = {} + @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @@ -160,7 +156,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + errors ({str: ([str],)}): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 title (str, none_type): [optional] # noqa: E501 status (int, none_type): [optional] # noqa: E501 @@ -193,29 +189,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 \ + if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: + self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) - return self required_properties = set([ @@ -225,9 +206,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 '_path_to_item', '_configuration', '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', ]) @convert_js_args_to_python_args @@ -265,7 +243,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + errors ({str: ([str],)}): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 title (str, none_type): [optional] # noqa: E501 status (int, none_type): [optional] # noqa: E501 @@ -296,48 +274,14 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 \ + if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: + 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.") - - @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 index a19f0a0..1913cbd 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index 195071c..1c7ca2d 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index 6737b2d..950f32b 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,18 +36,36 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError def lazy_import(): + from calcasa-api.model.adres import Adres + from calcasa-api.model.cbs_indeling import CbsIndeling + from calcasa-api.model.factuur import Factuur from calcasa-api.model.foto import Foto + from calcasa-api.model.modeldata import Modeldata + from calcasa-api.model.objectdata import Objectdata + 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.vorige_verkoop import VorigeVerkoop + from calcasa-api.model.waardering_input_parameters import WaarderingInputParameters + from calcasa-api.model.waardering_status import WaarderingStatus + globals()['Adres'] = Adres + globals()['CbsIndeling'] = CbsIndeling + globals()['Factuur'] = Factuur globals()['Foto'] = Foto + globals()['Modeldata'] = Modeldata + globals()['Objectdata'] = Objectdata + globals()['Rapport'] = Rapport globals()['Referentieobject'] = Referentieobject + globals()['Taxatiedata'] = Taxatiedata globals()['VorigeVerkoop'] = VorigeVerkoop + globals()['WaarderingInputParameters'] = WaarderingInputParameters + globals()['WaarderingStatus'] = WaarderingStatus class Waardering(ModelNormal): @@ -177,7 +195,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 @@ -272,7 +290,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index adcf38b..ead555f 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,19 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.aanvraagdoel import Aanvraagdoel + from calcasa-api.model.klantwaarde_type import KlantwaardeType + from calcasa-api.model.product_type import ProductType + globals()['Aanvraagdoel'] = Aanvraagdoel + globals()['KlantwaardeType'] = KlantwaardeType + globals()['ProductType'] = ProductType + class WaarderingInputParameters(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +94,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'product_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'bag_nummeraanduiding_id': (int,), # noqa: E501 @@ -99,6 +108,7 @@ def openapi_types(): 'is_bestaande_nhg_hypotheek': (bool,), # noqa: E501 'benodigde_overbrugging': (int,), # noqa: E501 'peildatum': (datetime, none_type,), # noqa: E501 + 'is_erfpacht': (bool, none_type,), # noqa: E501 } @cached_property @@ -119,6 +129,7 @@ def discriminator(): 'is_bestaande_nhg_hypotheek': 'isBestaandeNhgHypotheek', # noqa: E501 'benodigde_overbrugging': 'benodigdeOverbrugging', # noqa: E501 'peildatum': 'peildatum', # noqa: E501 + 'is_erfpacht': 'isErfpacht', # noqa: E501 } read_only_vars = { @@ -167,15 +178,16 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar through its discriminator because we passed in _visited_composed_classes = (Animal,) geldverstrekker (str): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 - hypotheekwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros.. [optional] # noqa: E501 + hypotheekwaarde (int): 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.. [optional] # noqa: E501 aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 - is_bestaande_nhg_hypotheek (bool): Optioneel te gebruiken voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 peildatum (datetime, none_type): 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.. [optional] # noqa: E501 + is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -264,15 +276,16 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n through its discriminator because we passed in _visited_composed_classes = (Animal,) geldverstrekker (str): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 - hypotheekwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros.. [optional] # noqa: E501 + hypotheekwaarde (int): 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.. [optional] # noqa: E501 aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 - is_bestaande_nhg_hypotheek (bool): Optioneel te gebruiken voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er bij de eventuele bestaande hypotheek gebruik is gemaakt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 peildatum (datetime, none_type): 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.. [optional] # noqa: E501 + is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index da2ddbd..2be0a5e 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index 78273f9..489057f 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,15 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.kwartaal import Kwartaal + globals()['Kwartaal'] = Kwartaal + class WaarderingOntwikkelingKwartaal(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +90,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'kwartaal': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'waarde': (int,), # noqa: E501 diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index 6a7d791..1758ff9 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError @@ -72,6 +72,7 @@ class WaarderingStatus(ModelSimple): 'ONGELDIG': "ongeldig", 'VERLOPEN': "verlopen", 'ERROR': "error", + 'INBEHANDELING': "inBehandeling", }, } @@ -123,10 +124,10 @@ def __init__(self, *args, **kwargs): 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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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. @@ -213,10 +214,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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. diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py index 831a191..9832fba 100644 --- a/calcasa-api/model/waardering_webhook_payload.py +++ b/calcasa-api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,15 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.waardering_status import WaarderingStatus + globals()['WaarderingStatus'] = WaarderingStatus + class WaarderingWebhookPayload(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +90,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'callback_name': (str,), # noqa: E501 'event_id': (str,), # noqa: E501 @@ -156,8 +161,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 """ @@ -244,8 +249,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 """ diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa-api/model/waardering_zoek_parameters.py index a0636d0..bcb158a 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,11 +36,19 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError +def lazy_import(): + from calcasa-api.model.aanvraagdoel import Aanvraagdoel + from calcasa-api.model.product_type import ProductType + from calcasa-api.model.waardering_status import WaarderingStatus + globals()['Aanvraagdoel'] = Aanvraagdoel + globals()['ProductType'] = ProductType + globals()['WaarderingStatus'] = WaarderingStatus + class WaarderingZoekParameters(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -86,6 +94,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'product_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'bag_nummeraanduiding_id': (int,), # noqa: E501 diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index c329796..4fd243e 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,8 +36,8 @@ file_type, none_type, validate_get_composed_info, + OpenApiModel ) -from ..model_utils import OpenApiModel from calcasa-api.exceptions import ApiAttributeError diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index aae056b..53d8eba 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -1669,6 +1669,7 @@ def model_to_dict(model_instance, serialize=True): attribute_map """ result = {} + extract_item = lambda item: (item[0], model_to_dict(item[1], serialize=serialize)) if hasattr(item[1], '_data_store') else item model_instances = [model_instance] if model_instance._composed_schemas: @@ -1698,14 +1699,17 @@ def model_to_dict(model_instance, serialize=True): res.append(v) elif isinstance(v, ModelSimple): res.append(v.value) + elif isinstance(v, dict): + res.append(dict(map( + extract_item, + v.items() + ))) 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, + extract_item, value.items() )) elif isinstance(value, ModelSimple): diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py index af10017..c4f452d 100644 --- a/calcasa-api/models/__init__.py +++ b/calcasa-api/models/__init__.py @@ -15,8 +15,6 @@ 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 @@ -31,20 +29,16 @@ 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 diff --git a/calcasa-api/rest.py b/calcasa-api/rest.py index 765ab91..2303f5c 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 0403e4e..3c39af3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.0.2 + The version of the OpenAPI document: 1.1.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.0.2" +VERSION = "1.1.0" # To install the library, run the following # # python setup.py install From c828467629cb36cd689ea70f55b002cf6638ee31 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 8 Mar 2022 15:59:47 +0100 Subject: [PATCH 05/20] Release 1.1.1 (2022-03-08) - Added `GET /v1/geldverstrekkers/{productType}` endpoint. - Restored all `ProblemDetails` models. --- README.md | 20 +- calcasa-api/__init__.py | 4 +- calcasa-api/api/adressen_api.py | 7 +- calcasa-api/api/bestemmingsplannen_api.py | 6 +- calcasa-api/api/bodem_api.py | 6 +- calcasa-api/api/buurt_api.py | 6 +- calcasa-api/api/configuratie_api.py | 7 +- calcasa-api/api/facturen_api.py | 6 +- calcasa-api/api/fotos_api.py | 6 +- calcasa-api/api/funderingen_api.py | 6 +- calcasa-api/api/geldverstrekkers_api.py | 181 +++++++++ calcasa-api/api/rapporten_api.py | 6 +- calcasa-api/api/waarderingen_api.py | 12 +- calcasa-api/api_client.py | 4 +- calcasa-api/apis/__init__.py | 1 + calcasa-api/configuration.py | 6 +- calcasa-api/exceptions.py | 2 +- calcasa-api/model/aanvraagdoel.py | 2 +- calcasa-api/model/adres.py | 2 +- calcasa-api/model/adres_info.py | 2 +- calcasa-api/model/bestemmingsdata.py | 2 +- calcasa-api/model/bodem_status_type.py | 2 +- calcasa-api/model/bodemdata.py | 2 +- calcasa-api/model/business_rules_code.py | 302 +++++++++++++++ .../model/business_rules_problem_details.py | 293 +++++++++++++++ calcasa-api/model/callback.py | 2 +- calcasa-api/model/cbs_indeling.py | 2 +- calcasa-api/model/energielabel.py | 2 +- calcasa-api/model/factuur.py | 2 +- calcasa-api/model/foto.py | 2 +- calcasa-api/model/fundering_data_bron.py | 2 +- calcasa-api/model/fundering_herstel_type.py | 2 +- calcasa-api/model/fundering_risico.py | 2 +- calcasa-api/model/fundering_risico_label.py | 2 +- calcasa-api/model/fundering_soort_bron.py | 2 +- calcasa-api/model/fundering_type.py | 2 +- calcasa-api/model/fundering_typering.py | 2 +- calcasa-api/model/funderingdata.py | 2 +- calcasa-api/model/gebiedsdata.py | 2 +- .../model/http_validation_problem_details.py | 343 ++++++++++++++++++ .../model/invalid_argument_problem_details.py | 287 +++++++++++++++ calcasa-api/model/json_patch_document.py | 2 +- calcasa-api/model/klantwaarde_type.py | 2 +- calcasa-api/model/kwartaal.py | 2 +- calcasa-api/model/modeldata.py | 2 +- .../model/not_found_problem_details.py | 287 +++++++++++++++ calcasa-api/model/notitie.py | 2 +- calcasa-api/model/notities.py | 2 +- calcasa-api/model/objectdata.py | 2 +- calcasa-api/model/omgevingsdata.py | 2 +- calcasa-api/model/operation.py | 2 +- calcasa-api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 287 +++++++++++++++ calcasa-api/model/problem_details.py | 283 +++++++++++++++ calcasa-api/model/product_type.py | 2 +- calcasa-api/model/rapport.py | 2 +- calcasa-api/model/referentieobject.py | 2 +- calcasa-api/model/taxatiedata.py | 2 +- calcasa-api/model/taxatiestatus.py | 2 +- .../model/validation_problem_details.py | 2 +- calcasa-api/model/verkoop_bijzonderheden.py | 2 +- calcasa-api/model/vorige_verkoop.py | 2 +- calcasa-api/model/waardering.py | 2 +- .../model/waardering_input_parameters.py | 2 +- calcasa-api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa-api/model/waardering_status.py | 2 +- .../model/waardering_webhook_payload.py | 2 +- .../model/waardering_zoek_parameters.py | 2 +- calcasa-api/model/woning_type.py | 2 +- calcasa-api/model_utils.py | 2 +- calcasa-api/models/__init__.py | 7 + calcasa-api/rest.py | 2 +- setup.py | 4 +- 74 files changed, 2405 insertions(+), 70 deletions(-) create mode 100644 calcasa-api/api/geldverstrekkers_api.py create mode 100644 calcasa-api/model/business_rules_code.py create mode 100644 calcasa-api/model/business_rules_problem_details.py create mode 100644 calcasa-api/model/http_validation_problem_details.py create mode 100644 calcasa-api/model/invalid_argument_problem_details.py create mode 100644 calcasa-api/model/not_found_problem_details.py create mode 100644 calcasa-api/model/permissions_denied_problem_details.py create mode 100644 calcasa-api/model/problem_details.py diff --git a/README.md b/README.md index 205530b..bc97bcb 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-03-08 (v1.1.1) +- Added `GET /v1/geldverstrekkers/{productType}` endpoint. +- Restored all `ProblemDetails` models. + ### 2022-03-07 (v1.1.0) - Added `isErfpacht` to `WaarderingInputParameters`. - Cleaned up serialization of null values, they should no longer appear in the output. @@ -106,8 +110,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.0 -- Package version: 1.1.0 +- API version: 1.1.1 +- Package version: 1.1.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -156,6 +160,9 @@ 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 # See configuration.py for a list of all supported configuration parameters. configuration = calcasa-api.Configuration( @@ -204,6 +211,7 @@ Class | Method | HTTP request | Description *FacturenApi* | [**get_factuur**](docs/FacturenApi.md#get_factuur) | **GET** /api/v1/facturen/{id} | Factuur op basis van een waardering Id. *FotosApi* | [**get_foto**](docs/FotosApi.md#get_foto) | **GET** /api/v1/fotos/{id} | Foto op basis van een foto Id. *FunderingenApi* | [**get_fundering_by_id**](docs/FunderingenApi.md#get_fundering_by_id) | **GET** /api/v1/funderingen/{bagNummeraanduidingId} | Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID). +*GeldverstrekkersApi* | [**get_geldverstrekkers**](docs/GeldverstrekkersApi.md#get_geldverstrekkers) | **GET** /api/v1/geldverstrekkers/{productType} | Alle geldverstrekkers die te gebruiken zijn voor aanvragen. *RapportenApi* | [**get_rapport**](docs/RapportenApi.md#get_rapport) | **GET** /api/v1/rapporten/{id} | Rapport op basis van waardering Id. *WaarderingenApi* | [**create_waardering**](docs/WaarderingenApi.md#create_waardering) | **POST** /api/v1/waarderingen | Creërt een waardering. *WaarderingenApi* | [**get_waardering**](docs/WaarderingenApi.md#get_waardering) | **GET** /api/v1/waarderingen/{id} | Waardering op basis van Id. @@ -220,6 +228,8 @@ Class | Method | HTTP request | Description - [Bestemmingsdata](docs/Bestemmingsdata.md) - [BodemStatusType](docs/BodemStatusType.md) - [Bodemdata](docs/Bodemdata.md) + - [BusinessRulesCode](docs/BusinessRulesCode.md) + - [BusinessRulesProblemDetails](docs/BusinessRulesProblemDetails.md) - [Callback](docs/Callback.md) - [CbsIndeling](docs/CbsIndeling.md) - [Energielabel](docs/Energielabel.md) @@ -234,16 +244,21 @@ Class | Method | HTTP request | Description - [FunderingTypering](docs/FunderingTypering.md) - [Funderingdata](docs/Funderingdata.md) - [Gebiedsdata](docs/Gebiedsdata.md) + - [HttpValidationProblemDetails](docs/HttpValidationProblemDetails.md) + - [InvalidArgumentProblemDetails](docs/InvalidArgumentProblemDetails.md) - [JsonPatchDocument](docs/JsonPatchDocument.md) - [KlantwaardeType](docs/KlantwaardeType.md) - [Kwartaal](docs/Kwartaal.md) - [Modeldata](docs/Modeldata.md) + - [NotFoundProblemDetails](docs/NotFoundProblemDetails.md) - [Notitie](docs/Notitie.md) - [Notities](docs/Notities.md) - [Objectdata](docs/Objectdata.md) - [Omgevingsdata](docs/Omgevingsdata.md) - [Operation](docs/Operation.md) - [OperationType](docs/OperationType.md) + - [PermissionsDeniedProblemDetails](docs/PermissionsDeniedProblemDetails.md) + - [ProblemDetails](docs/ProblemDetails.md) - [ProductType](docs/ProductType.md) - [Rapport](docs/Rapport.md) - [Referentieobject](docs/Referentieobject.md) @@ -291,6 +306,7 @@ Class | Method | HTTP request | Description - **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:geldverstrekkers:read**: Read permissions for the geldverstrekkers 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. diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index a2ebca3..a048787 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.0" +__version__ = "1.1.1" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index 28508a3..18d420c 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -35,6 +35,9 @@ ) 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): @@ -93,6 +96,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], @@ -141,6 +145,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [ diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py index 1dad95d..7661ca5 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,6 +34,9 @@ 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): @@ -92,6 +95,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index 8ed4a61..4c3cc1f 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,6 +34,9 @@ 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): @@ -92,6 +95,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py index 9b6ed45..1cdf389 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,7 +33,10 @@ 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): @@ -92,6 +95,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index 3b76b42..e2dc108 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,6 +34,9 @@ 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): @@ -85,6 +88,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], @@ -133,6 +137,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [ diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py index eccade1..096a54b 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,6 +33,9 @@ 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): @@ -91,6 +94,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/pdf' ], 'content_type': [], diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index 41d8dd8..8ec0cd8 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,6 +33,9 @@ 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): @@ -91,6 +94,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'image/jpeg', 'image/png' ], diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index 4f5d6dc..00be384 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -34,6 +34,9 @@ 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): @@ -92,6 +95,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], diff --git a/calcasa-api/api/geldverstrekkers_api.py b/calcasa-api/api/geldverstrekkers_api.py new file mode 100644 index 0000000..9aff388 --- /dev/null +++ b/calcasa-api/api/geldverstrekkers_api.py @@ -0,0 +1,181 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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_info import AdresInfo +from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails +from calcasa-api.model.problem_details import ProblemDetails + + +class GeldverstrekkersApi(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_geldverstrekkers_endpoint = _Endpoint( + settings={ + 'response_type': (AdresInfo,), + 'auth': [ + 'oauth' + ], + 'endpoint_path': '/api/v1/geldverstrekkers/{productType}', + 'operation_id': 'get_geldverstrekkers', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'product_type', + ], + 'required': [ + 'product_type', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'product_type': + (bool, date, datetime, dict, float, int, list, str, none_type,), + }, + 'attribute_map': { + 'product_type': 'productType', + }, + 'location_map': { + 'product_type': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/problem+json', + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def get_geldverstrekkers( + self, + product_type, + **kwargs + ): + """Alle geldverstrekkers die te gebruiken zijn voor aanvragen. # 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_geldverstrekkers(product_type, async_req=True) + >>> result = thread.get() + + Args: + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Een parameter om de lijst te filteren op gesupporte producttypen. + + 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. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _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['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['product_type'] = \ + product_type + return self.get_geldverstrekkers_endpoint.call_with_http_info(**kwargs) + diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index 5174424..154134e 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,6 +33,9 @@ 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): @@ -91,6 +94,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/pdf' ], 'content_type': [], diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index e44cd64..fc2b425 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,7 +33,12 @@ 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 @@ -94,6 +99,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [ @@ -147,6 +153,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], @@ -198,6 +205,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [], @@ -253,6 +261,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [ @@ -303,6 +312,7 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ + 'application/problem+json', 'application/json' ], 'content_type': [ diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py index 05989b9..a9fa61d 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.0' + self.user_agent = 'Calcasa Python Api Client/1.1.1' def __enter__(self): return self diff --git a/calcasa-api/apis/__init__.py b/calcasa-api/apis/__init__.py index 836bc16..4f231bd 100644 --- a/calcasa-api/apis/__init__.py +++ b/calcasa-api/apis/__init__.py @@ -22,5 +22,6 @@ 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/configuration.py b/calcasa-api/configuration.py index c1374a7..240e3af 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0\n"\ - "SDK Package Version: 1.1.0".\ + "Version of the API: 1.1.1\n"\ + "SDK Package Version: 1.1.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index d13a3f7..4b4cfb6 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index 3aa93ef..d4e67e7 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index 4f3b4e6..37c75bc 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index aa0cf9a..ce366dc 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index 6b0f29a..b3f02ec 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index 256a8a3..6a9c554 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index 88b5db1..47d23d8 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py new file mode 100644 index 0000000..6d7ef4b --- /dev/null +++ b/calcasa-api/model/business_rules_code.py @@ -0,0 +1,302 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + 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 new file mode 100644 index 0000000..3515ef4 --- /dev/null +++ b/calcasa-api/model/business_rules_problem_details.py @@ -0,0 +1,293 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + OpenApiModel +) +from calcasa-api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa-api.model.business_rules_code import BusinessRulesCode + globals()['BusinessRulesCode'] = BusinessRulesCode + + +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 + """ + 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 { + '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 index acec4ac..d75196b 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index aecdfe8..070c022 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index 682cf58..cc6d51d 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index 40316a3..cee9418 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index cdce10e..c3fd102 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index ffe4296..29d3449 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index 31f20cd..0aa799a 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index cf910c5..0399417 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index 8efa095..14b5844 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index f4fb6c5..5f49fd0 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index da62179..b9dd698 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index ed17b63..0d008bf 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index b1ac0d4..26c5b02 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index 1fe8e0a..fad8e3b 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/http_validation_problem_details.py b/calcasa-api/model/http_validation_problem_details.py new file mode 100644 index 0000000..9136ad9 --- /dev/null +++ b/calcasa-api/model/http_validation_problem_details.py @@ -0,0 +1,343 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + OpenApiModel +) +from calcasa-api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa-api.model.problem_details import ProblemDetails + globals()['ProblemDetails'] = ProblemDetails + + +class HttpValidationProblemDetails(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],)},), # 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 + """HttpValidationProblemDetails - 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],)}): [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 + """HttpValidationProblemDetails - 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],)}): [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/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py new file mode 100644 index 0000000..0a2a9be --- /dev/null +++ b/calcasa-api/model/invalid_argument_problem_details.py @@ -0,0 +1,287 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + 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 index 6329388..c96fe03 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index eebc897..1f914c1 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index 775a74a..8f4228a 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index 70d67e4..1e9f37c 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py new file mode 100644 index 0000000..8f1e8c1 --- /dev/null +++ b/calcasa-api/model/not_found_problem_details.py @@ -0,0 +1,287 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + 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 index df93183..b8f7431 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index e7c2841..c3e75f8 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index 9258870..fd26abd 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 889b718..577bff2 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index ec70e57..1895612 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 68c5eaa..8deb893 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py new file mode 100644 index 0000000..ae50626 --- /dev/null +++ b/calcasa-api/model/permissions_denied_problem_details.py @@ -0,0 +1,287 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + 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 new file mode 100644 index 0000000..99aaa3b --- /dev/null +++ b/calcasa-api/model/problem_details.py @@ -0,0 +1,283 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.1 + 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, + 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 index ec499c3..cbc2fd3 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index 3c3472b..922b0fa 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index 8146a89..b1393da 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py index f19155a..558b2d6 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index c876e0b..0c84cac 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index 2f02df0..df813ec 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py index 1913cbd..765373b 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index 1c7ca2d..e3c4622 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index 950f32b..17e603b 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index ead555f..da33e06 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index 2be0a5e..fb39f1f 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index 489057f..32eb14d 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index 1758ff9..abdd139 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py index 9832fba..52290bd 100644 --- a/calcasa-api/model/waardering_webhook_payload.py +++ b/calcasa-api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa-api/model/waardering_zoek_parameters.py index bcb158a..00af311 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index 4fd243e..67ea9b1 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index 53d8eba..9f4b469 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py index c4f452d..2cef89f 100644 --- a/calcasa-api/models/__init__.py +++ b/calcasa-api/models/__init__.py @@ -15,6 +15,8 @@ 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 @@ -29,16 +31,21 @@ 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.http_validation_problem_details import HttpValidationProblemDetails +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 diff --git a/calcasa-api/rest.py b/calcasa-api/rest.py index 2303f5c..23dbb2c 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 3c39af3..ab2785a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.1.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.0" +VERSION = "1.1.1" # To install the library, run the following # # python setup.py install From 049fdde4800bad8fa6d3ce1b879dad6225932bc8 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Thu, 17 Mar 2022 13:55:33 +0100 Subject: [PATCH 06/20] Release 1.1.2 (2022-03-17) - Fixed response type for `GET /v1/geldverstrekkers/{productType}` endpoint. --- README.md | 8 +- calcasa-api/__init__.py | 4 +- calcasa-api/api/adressen_api.py | 2 +- calcasa-api/api/bestemmingsplannen_api.py | 2 +- calcasa-api/api/bodem_api.py | 2 +- calcasa-api/api/buurt_api.py | 2 +- calcasa-api/api/configuratie_api.py | 2 +- calcasa-api/api/facturen_api.py | 2 +- calcasa-api/api/fotos_api.py | 2 +- calcasa-api/api/funderingen_api.py | 2 +- calcasa-api/api/geldverstrekkers_api.py | 8 +- calcasa-api/api/rapporten_api.py | 2 +- calcasa-api/api/waarderingen_api.py | 2 +- calcasa-api/api_client.py | 4 +- calcasa-api/configuration.py | 6 +- calcasa-api/exceptions.py | 2 +- calcasa-api/model/aanvraagdoel.py | 2 +- calcasa-api/model/adres.py | 2 +- calcasa-api/model/adres_info.py | 2 +- calcasa-api/model/bestemmingsdata.py | 2 +- calcasa-api/model/bodem_status_type.py | 2 +- calcasa-api/model/bodemdata.py | 2 +- calcasa-api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa-api/model/callback.py | 2 +- calcasa-api/model/cbs_indeling.py | 2 +- calcasa-api/model/energielabel.py | 2 +- calcasa-api/model/factuur.py | 2 +- calcasa-api/model/foto.py | 2 +- calcasa-api/model/fundering_data_bron.py | 2 +- calcasa-api/model/fundering_herstel_type.py | 2 +- calcasa-api/model/fundering_risico.py | 2 +- calcasa-api/model/fundering_risico_label.py | 2 +- calcasa-api/model/fundering_soort_bron.py | 2 +- calcasa-api/model/fundering_type.py | 2 +- calcasa-api/model/fundering_typering.py | 2 +- calcasa-api/model/funderingdata.py | 2 +- calcasa-api/model/gebiedsdata.py | 2 +- calcasa-api/model/geldverstrekker.py | 265 ++++++++++++++++++ .../model/http_validation_problem_details.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa-api/model/json_patch_document.py | 2 +- calcasa-api/model/klantwaarde_type.py | 2 +- calcasa-api/model/kwartaal.py | 2 +- calcasa-api/model/modeldata.py | 2 +- .../model/not_found_problem_details.py | 2 +- calcasa-api/model/notitie.py | 2 +- calcasa-api/model/notities.py | 2 +- calcasa-api/model/objectdata.py | 2 +- calcasa-api/model/omgevingsdata.py | 2 +- calcasa-api/model/operation.py | 2 +- calcasa-api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa-api/model/problem_details.py | 2 +- calcasa-api/model/product_type.py | 2 +- calcasa-api/model/rapport.py | 2 +- calcasa-api/model/referentieobject.py | 2 +- calcasa-api/model/taxatiedata.py | 2 +- calcasa-api/model/taxatiestatus.py | 2 +- .../model/validation_problem_details.py | 2 +- calcasa-api/model/verkoop_bijzonderheden.py | 2 +- calcasa-api/model/vorige_verkoop.py | 2 +- calcasa-api/model/waardering.py | 2 +- .../model/waardering_input_parameters.py | 2 +- calcasa-api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa-api/model/waardering_status.py | 2 +- .../model/waardering_webhook_payload.py | 2 +- .../model/waardering_zoek_parameters.py | 2 +- calcasa-api/model/woning_type.py | 2 +- calcasa-api/model_utils.py | 2 +- calcasa-api/models/__init__.py | 1 + calcasa-api/rest.py | 2 +- setup.py | 4 +- 74 files changed, 351 insertions(+), 81 deletions(-) create mode 100644 calcasa-api/model/geldverstrekker.py diff --git a/README.md b/README.md index bc97bcb..522bb5f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-03-17 (v1.1.2) +- Fixed response type for `GET /v1/geldverstrekkers/{productType}` endpoint. + ### 2022-03-08 (v1.1.1) - Added `GET /v1/geldverstrekkers/{productType}` endpoint. - Restored all `ProblemDetails` models. @@ -110,8 +113,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.1 -- Package version: 1.1.1 +- API version: 1.1.2 +- Package version: 1.1.2 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -244,6 +247,7 @@ Class | Method | HTTP request | Description - [FunderingTypering](docs/FunderingTypering.md) - [Funderingdata](docs/Funderingdata.md) - [Gebiedsdata](docs/Gebiedsdata.md) + - [Geldverstrekker](docs/Geldverstrekker.md) - [HttpValidationProblemDetails](docs/HttpValidationProblemDetails.md) - [InvalidArgumentProblemDetails](docs/InvalidArgumentProblemDetails.md) - [JsonPatchDocument](docs/JsonPatchDocument.md) diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index a048787..fcd9f51 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.1" +__version__ = "1.1.2" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index 18d420c..eb01448 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py index 7661ca5..85cf92a 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index 4c3cc1f..b7007bd 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py index 1cdf389..1abf8bf 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index e2dc108..3d227b2 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py index 096a54b..aed605c 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index 8ec0cd8..7a9582e 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index 00be384..6c4660a 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/geldverstrekkers_api.py b/calcasa-api/api/geldverstrekkers_api.py index 9aff388..23301c6 100644 --- a/calcasa-api/api/geldverstrekkers_api.py +++ b/calcasa-api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -33,7 +33,7 @@ none_type, validate_and_convert_types ) -from calcasa-api.model.adres_info import AdresInfo +from calcasa-api.model.geldverstrekker import Geldverstrekker from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails from calcasa-api.model.problem_details import ProblemDetails @@ -51,7 +51,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_geldverstrekkers_endpoint = _Endpoint( settings={ - 'response_type': (AdresInfo,), + 'response_type': ([Geldverstrekker],), 'auth': [ 'oauth' ], @@ -147,7 +147,7 @@ def get_geldverstrekkers( async_req (bool): execute request asynchronously Returns: - AdresInfo + [Geldverstrekker] If the method is called asynchronously, returns the request thread. """ diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index 154134e..3b7e059 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index fc2b425..62ea911 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py index a9fa61d..c718668 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.1' + self.user_agent = 'Calcasa Python Api Client/1.1.2' def __enter__(self): return self diff --git a/calcasa-api/configuration.py b/calcasa-api/configuration.py index 240e3af..21a9ae9 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.1\n"\ - "SDK Package Version: 1.1.1".\ + "Version of the API: 1.1.2\n"\ + "SDK Package Version: 1.1.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index 4b4cfb6..83cc38e 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index d4e67e7..fa41766 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index 37c75bc..dd58c56 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index ce366dc..fc86aa2 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index b3f02ec..8dd730e 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index 6a9c554..1c83866 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index 47d23d8..c9511ec 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py index 6d7ef4b..b7becbe 100644 --- a/calcasa-api/model/business_rules_code.py +++ b/calcasa-api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa-api/model/business_rules_problem_details.py index 3515ef4..169d97c 100644 --- a/calcasa-api/model/business_rules_problem_details.py +++ b/calcasa-api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/callback.py b/calcasa-api/model/callback.py index d75196b..48c67c0 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index 070c022..557bfcf 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index cc6d51d..ab291b8 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index cee9418..1a5a5b4 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index c3fd102..b700db8 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index 29d3449..bc3aadb 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index 0aa799a..08a0dde 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index 0399417..eb7d1f5 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index 14b5844..e2b1b2b 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index 5f49fd0..e15ab93 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index b9dd698..32e5ca1 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index 0d008bf..57a5afd 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index 26c5b02..96f2e6b 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index fad8e3b..5ad54d5 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/geldverstrekker.py b/calcasa-api/model/geldverstrekker.py new file mode 100644 index 0000000..1e19907 --- /dev/null +++ b/calcasa-api/model/geldverstrekker.py @@ -0,0 +1,265 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.2 + 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, + OpenApiModel +) +from calcasa-api.exceptions import ApiAttributeError + + + +class Geldverstrekker(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 { + 'slug': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'slug': 'slug', # noqa: E501 + 'name': 'name', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Geldverstrekker - 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,) + slug (str): De slug voor deze geldverstrekker, dit is de waarde die gebruikt moet worden als input voor andere endpoints.. [optional] # noqa: E501 + name (str): De volledige naam van deze geldverstrekker.. [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 + """Geldverstrekker - 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,) + slug (str): De slug voor deze geldverstrekker, dit is de waarde die gebruikt moet worden als input voor andere endpoints.. [optional] # noqa: E501 + name (str): De volledige naam van deze geldverstrekker.. [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/http_validation_problem_details.py b/calcasa-api/model/http_validation_problem_details.py index 9136ad9..3236dd9 100644 --- a/calcasa-api/model/http_validation_problem_details.py +++ b/calcasa-api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py index 0a2a9be..0e7d7b1 100644 --- a/calcasa-api/model/invalid_argument_problem_details.py +++ b/calcasa-api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/json_patch_document.py b/calcasa-api/model/json_patch_document.py index c96fe03..602f9d6 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index 1f914c1..ae0bd59 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index 8f4228a..4981c94 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index 1e9f37c..8cc6280 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py index 8f1e8c1..19f29c8 100644 --- a/calcasa-api/model/not_found_problem_details.py +++ b/calcasa-api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notitie.py b/calcasa-api/model/notitie.py index b8f7431..c90ad88 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index c3e75f8..7c79cc6 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index fd26abd..4a34996 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 577bff2..431ec7b 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index 1895612..c9c5564 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 8deb893..9ba09c5 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py index ae50626..562dff8 100644 --- a/calcasa-api/model/permissions_denied_problem_details.py +++ b/calcasa-api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/problem_details.py b/calcasa-api/model/problem_details.py index 99aaa3b..645bab0 100644 --- a/calcasa-api/model/problem_details.py +++ b/calcasa-api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/product_type.py b/calcasa-api/model/product_type.py index cbc2fd3..71e3724 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index 922b0fa..7d48ffb 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index b1393da..626c635 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiedata.py b/calcasa-api/model/taxatiedata.py index 558b2d6..dd14c32 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index 0c84cac..01fb591 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index df813ec..1711ce2 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py index 765373b..8adfc5b 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index e3c4622..9f675e9 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index 17e603b..a053d53 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index da33e06..daddc89 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index fb39f1f..1f84d22 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index 32eb14d..0519702 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index abdd139..b972821 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py index 52290bd..8857f77 100644 --- a/calcasa-api/model/waardering_webhook_payload.py +++ b/calcasa-api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa-api/model/waardering_zoek_parameters.py index 00af311..7e8823a 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index 67ea9b1..35e54cb 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index 9f4b469..809c3ea 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py index 2cef89f..e962e00 100644 --- a/calcasa-api/models/__init__.py +++ b/calcasa-api/models/__init__.py @@ -31,6 +31,7 @@ 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.geldverstrekker import Geldverstrekker from calcasa-api.model.http_validation_problem_details import HttpValidationProblemDetails from calcasa-api.model.invalid_argument_problem_details import InvalidArgumentProblemDetails from calcasa-api.model.json_patch_document import JsonPatchDocument diff --git a/calcasa-api/rest.py b/calcasa-api/rest.py index 23dbb2c..d2dfbe1 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index ab2785a..e081732 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.1 + The version of the OpenAPI document: 1.1.2 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.1" +VERSION = "1.1.2" # To install the library, run the following # # python setup.py install From 246b9c44f637d9e4d2d36118399b9b4fd65eaa01 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 22 Mar 2022 16:39:54 +0100 Subject: [PATCH 07/20] Release 1.1.3 (2022-03-22) - Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for `PATCH /v1/waarderingen/{id}`. --- README.md | 8 +- calcasa-api/__init__.py | 4 +- calcasa-api/api/adressen_api.py | 2 +- calcasa-api/api/bestemmingsplannen_api.py | 2 +- calcasa-api/api/bodem_api.py | 2 +- calcasa-api/api/buurt_api.py | 2 +- calcasa-api/api/configuratie_api.py | 2 +- calcasa-api/api/facturen_api.py | 2 +- calcasa-api/api/fotos_api.py | 2 +- calcasa-api/api/funderingen_api.py | 2 +- calcasa-api/api/geldverstrekkers_api.py | 2 +- calcasa-api/api/rapporten_api.py | 2 +- calcasa-api/api/waarderingen_api.py | 3 +- calcasa-api/api_client.py | 4 +- calcasa-api/configuration.py | 6 +- calcasa-api/exceptions.py | 2 +- calcasa-api/model/aanvraagdoel.py | 2 +- calcasa-api/model/adres.py | 2 +- calcasa-api/model/adres_info.py | 2 +- calcasa-api/model/bestemmingsdata.py | 2 +- calcasa-api/model/bodem_status_type.py | 2 +- calcasa-api/model/bodemdata.py | 2 +- calcasa-api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa-api/model/callback.py | 2 +- calcasa-api/model/cbs_indeling.py | 2 +- calcasa-api/model/energielabel.py | 2 +- calcasa-api/model/factuur.py | 2 +- calcasa-api/model/foto.py | 2 +- calcasa-api/model/fundering_data_bron.py | 2 +- calcasa-api/model/fundering_herstel_type.py | 2 +- calcasa-api/model/fundering_risico.py | 2 +- calcasa-api/model/fundering_risico_label.py | 2 +- calcasa-api/model/fundering_soort_bron.py | 2 +- calcasa-api/model/fundering_type.py | 2 +- calcasa-api/model/fundering_typering.py | 2 +- calcasa-api/model/funderingdata.py | 2 +- calcasa-api/model/gebiedsdata.py | 2 +- calcasa-api/model/geldverstrekker.py | 2 +- .../model/http_validation_problem_details.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa-api/model/json_patch_document.py | 2 +- calcasa-api/model/klantwaarde_type.py | 2 +- calcasa-api/model/kwartaal.py | 2 +- calcasa-api/model/modeldata.py | 2 +- .../model/not_found_problem_details.py | 2 +- calcasa-api/model/notitie.py | 2 +- calcasa-api/model/notities.py | 2 +- calcasa-api/model/objectdata.py | 2 +- calcasa-api/model/omgevingsdata.py | 2 +- calcasa-api/model/operation.py | 2 +- calcasa-api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa-api/model/problem_details.py | 2 +- calcasa-api/model/product_type.py | 2 +- calcasa-api/model/rapport.py | 2 +- calcasa-api/model/referentieobject.py | 2 +- .../resource_exhausted_problem_details.py | 287 ++++++++++++++++++ calcasa-api/model/taxatiedata.py | 2 +- calcasa-api/model/taxatiestatus.py | 2 +- .../model/validation_problem_details.py | 2 +- calcasa-api/model/verkoop_bijzonderheden.py | 2 +- calcasa-api/model/vorige_verkoop.py | 2 +- calcasa-api/model/waardering.py | 2 +- .../model/waardering_input_parameters.py | 2 +- calcasa-api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa-api/model/waardering_status.py | 2 +- .../model/waardering_webhook_payload.py | 2 +- .../model/waardering_zoek_parameters.py | 2 +- calcasa-api/model/woning_type.py | 2 +- calcasa-api/model_utils.py | 2 +- calcasa-api/models/__init__.py | 1 + calcasa-api/rest.py | 2 +- setup.py | 4 +- 75 files changed, 372 insertions(+), 79 deletions(-) create mode 100644 calcasa-api/model/resource_exhausted_problem_details.py diff --git a/README.md b/README.md index 522bb5f..ec66ea9 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-03-22 (v1.1.3) +- Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for `PATCH /v1/waarderingen/{id}`. + ### 2022-03-17 (v1.1.2) - Fixed response type for `GET /v1/geldverstrekkers/{productType}` endpoint. @@ -113,8 +116,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.2 -- Package version: 1.1.2 +- API version: 1.1.3 +- Package version: 1.1.3 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -266,6 +269,7 @@ 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) - [ValidationProblemDetails](docs/ValidationProblemDetails.md) diff --git a/calcasa-api/__init__.py b/calcasa-api/__init__.py index fcd9f51..72051db 100644 --- a/calcasa-api/__init__.py +++ b/calcasa-api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.2" +__version__ = "1.1.3" # import ApiClient from calcasa-api.api_client import ApiClient diff --git a/calcasa-api/api/adressen_api.py b/calcasa-api/api/adressen_api.py index eb01448..b6a9a12 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa-api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bestemmingsplannen_api.py b/calcasa-api/api/bestemmingsplannen_api.py index 85cf92a..1226352 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa-api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/bodem_api.py b/calcasa-api/api/bodem_api.py index b7007bd..53057ef 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa-api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/buurt_api.py b/calcasa-api/api/buurt_api.py index 1abf8bf..c6c21b6 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa-api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/configuratie_api.py b/calcasa-api/api/configuratie_api.py index 3d227b2..2055166 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa-api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/facturen_api.py b/calcasa-api/api/facturen_api.py index aed605c..3dd4d04 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa-api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/fotos_api.py b/calcasa-api/api/fotos_api.py index 7a9582e..57d8324 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa-api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/funderingen_api.py b/calcasa-api/api/funderingen_api.py index 6c4660a..6b6d0d0 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa-api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/geldverstrekkers_api.py b/calcasa-api/api/geldverstrekkers_api.py index 23301c6..129782d 100644 --- a/calcasa-api/api/geldverstrekkers_api.py +++ b/calcasa-api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/rapporten_api.py b/calcasa-api/api/rapporten_api.py index 3b7e059..8d250a1 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa-api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/api/waarderingen_api.py b/calcasa-api/api/waarderingen_api.py index 62ea911..ef05127 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa-api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -39,6 +39,7 @@ 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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails 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 diff --git a/calcasa-api/api_client.py b/calcasa-api/api_client.py index c718668..380e704 100644 --- a/calcasa-api/api_client.py +++ b/calcasa-api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.2' + self.user_agent = 'Calcasa Python Api Client/1.1.3' def __enter__(self): return self diff --git a/calcasa-api/configuration.py b/calcasa-api/configuration.py index 21a9ae9..f88faa7 100644 --- a/calcasa-api/configuration.py +++ b/calcasa-api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.2\n"\ - "SDK Package Version: 1.1.2".\ + "Version of the API: 1.1.3\n"\ + "SDK Package Version: 1.1.3".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa-api/exceptions.py index 83cc38e..6c2a568 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa-api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa-api/model/aanvraagdoel.py index fa41766..389a167 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa-api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres.py b/calcasa-api/model/adres.py index dd58c56..d23f2fe 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa-api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/adres_info.py b/calcasa-api/model/adres_info.py index fc86aa2..bd2aaa3 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa-api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa-api/model/bestemmingsdata.py index 8dd730e..a74037e 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa-api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa-api/model/bodem_status_type.py index 1c83866..9b191d2 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa-api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/bodemdata.py b/calcasa-api/model/bodemdata.py index c9511ec..68ab296 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa-api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_code.py b/calcasa-api/model/business_rules_code.py index b7becbe..580c2d4 100644 --- a/calcasa-api/model/business_rules_code.py +++ b/calcasa-api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa-api/model/business_rules_problem_details.py index 169d97c..7ef304e 100644 --- a/calcasa-api/model/business_rules_problem_details.py +++ b/calcasa-api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/callback.py b/calcasa-api/model/callback.py index 48c67c0..bc2efde 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa-api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa-api/model/cbs_indeling.py index 557bfcf..da8047e 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa-api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/energielabel.py b/calcasa-api/model/energielabel.py index ab291b8..04422e4 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa-api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/factuur.py b/calcasa-api/model/factuur.py index 1a5a5b4..232d8d5 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa-api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/foto.py b/calcasa-api/model/foto.py index b700db8..f69ff39 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa-api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa-api/model/fundering_data_bron.py index bc3aadb..15c85b7 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa-api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa-api/model/fundering_herstel_type.py index 08a0dde..15f447e 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa-api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico.py b/calcasa-api/model/fundering_risico.py index eb7d1f5..c7d5e90 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa-api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa-api/model/fundering_risico_label.py index e2b1b2b..4a110f9 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa-api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa-api/model/fundering_soort_bron.py index e15ab93..891b54a 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa-api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_type.py b/calcasa-api/model/fundering_type.py index 32e5ca1..0a20cae 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa-api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/fundering_typering.py b/calcasa-api/model/fundering_typering.py index 57a5afd..61c85e5 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa-api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/funderingdata.py b/calcasa-api/model/funderingdata.py index 96f2e6b..65dea0f 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa-api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa-api/model/gebiedsdata.py index 5ad54d5..a7e4767 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa-api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/geldverstrekker.py b/calcasa-api/model/geldverstrekker.py index 1e19907..265d85b 100644 --- a/calcasa-api/model/geldverstrekker.py +++ b/calcasa-api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/http_validation_problem_details.py b/calcasa-api/model/http_validation_problem_details.py index 3236dd9..3a9f0ff 100644 --- a/calcasa-api/model/http_validation_problem_details.py +++ b/calcasa-api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa-api/model/invalid_argument_problem_details.py index 0e7d7b1..628ef89 100644 --- a/calcasa-api/model/invalid_argument_problem_details.py +++ b/calcasa-api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/json_patch_document.py b/calcasa-api/model/json_patch_document.py index 602f9d6..3500c24 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa-api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa-api/model/klantwaarde_type.py index ae0bd59..7829fd5 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa-api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/kwartaal.py b/calcasa-api/model/kwartaal.py index 4981c94..3a4d091 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa-api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/modeldata.py b/calcasa-api/model/modeldata.py index 8cc6280..65ac5ae 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa-api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa-api/model/not_found_problem_details.py index 19f29c8..a1bae0d 100644 --- a/calcasa-api/model/not_found_problem_details.py +++ b/calcasa-api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notitie.py b/calcasa-api/model/notitie.py index c90ad88..c2c916f 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa-api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/notities.py b/calcasa-api/model/notities.py index 7c79cc6..45dcd19 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa-api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/objectdata.py b/calcasa-api/model/objectdata.py index 4a34996..783619e 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa-api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa-api/model/omgevingsdata.py index 431ec7b..2691028 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa-api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation.py b/calcasa-api/model/operation.py index c9c5564..8e3ae2f 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa-api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/operation_type.py b/calcasa-api/model/operation_type.py index 9ba09c5..66e01d7 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa-api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa-api/model/permissions_denied_problem_details.py index 562dff8..c12b97a 100644 --- a/calcasa-api/model/permissions_denied_problem_details.py +++ b/calcasa-api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/problem_details.py b/calcasa-api/model/problem_details.py index 645bab0..d0beeb8 100644 --- a/calcasa-api/model/problem_details.py +++ b/calcasa-api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/product_type.py b/calcasa-api/model/product_type.py index 71e3724..3c18527 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa-api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/rapport.py b/calcasa-api/model/rapport.py index 7d48ffb..3afdb3c 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa-api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/referentieobject.py b/calcasa-api/model/referentieobject.py index 626c635..77c7a33 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa-api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/resource_exhausted_problem_details.py b/calcasa-api/model/resource_exhausted_problem_details.py new file mode 100644 index 0000000..6ed8e46 --- /dev/null +++ b/calcasa-api/model/resource_exhausted_problem_details.py @@ -0,0 +1,287 @@ +""" + 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 v1 + + The version of the OpenAPI document: 1.1.3 + 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, + OpenApiModel +) +from calcasa-api.exceptions import ApiAttributeError + + + +class ResourceExhaustedProblemDetails(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 { + 'resource': (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 = { + 'resource': 'resource', # 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 + """ResourceExhaustedProblemDetails - 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,) + resource (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 + """ResourceExhaustedProblemDetails - 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,) + resource (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/taxatiedata.py b/calcasa-api/model/taxatiedata.py index dd14c32..1e208c7 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa-api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa-api/model/taxatiestatus.py index 01fb591..93044a9 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa-api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa-api/model/validation_problem_details.py index 1711ce2..4e8c302 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa-api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa-api/model/verkoop_bijzonderheden.py index 8adfc5b..94f5c6a 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa-api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa-api/model/vorige_verkoop.py index 9f675e9..6f51592 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa-api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering.py b/calcasa-api/model/waardering.py index a053d53..458054c 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa-api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa-api/model/waardering_input_parameters.py index daddc89..ee7bc1a 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa-api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa-api/model/waardering_ontwikkeling.py index 1f84d22..7f4f793 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa-api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py index 0519702..9d234b8 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa-api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_status.py b/calcasa-api/model/waardering_status.py index b972821..7bae9a7 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa-api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa-api/model/waardering_webhook_payload.py index 8857f77..749ff65 100644 --- a/calcasa-api/model/waardering_webhook_payload.py +++ b/calcasa-api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa-api/model/waardering_zoek_parameters.py index 7e8823a..c584d5e 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa-api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model/woning_type.py b/calcasa-api/model/woning_type.py index 35e54cb..d02c528 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa-api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/model_utils.py b/calcasa-api/model_utils.py index 809c3ea..13818ba 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa-api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa-api/models/__init__.py b/calcasa-api/models/__init__.py index e962e00..6456a97 100644 --- a/calcasa-api/models/__init__.py +++ b/calcasa-api/models/__init__.py @@ -50,6 +50,7 @@ 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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails from calcasa-api.model.taxatiedata import Taxatiedata from calcasa-api.model.taxatiestatus import Taxatiestatus from calcasa-api.model.validation_problem_details import ValidationProblemDetails diff --git a/calcasa-api/rest.py b/calcasa-api/rest.py index d2dfbe1..6c40075 100644 --- a/calcasa-api/rest.py +++ b/calcasa-api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index e081732..f51c9fd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.2 + The version of the OpenAPI document: 1.1.3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.2" +VERSION = "1.1.3" # To install the library, run the following # # python setup.py install From 201f891bbda8803c5bf9a56a6890e868bebad94f Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 12 Apr 2022 10:50:29 +0200 Subject: [PATCH 08/20] Release 1.1.4 (2022-04-12) - Added proper Content-Disposition headers to the `GET /v1/rapporten/{id}` and `GET /v1/facturen/{id}` endpoints with the correct filename. - Fix Mime Types for the `GET /v1/configuratie/callbacks` and `POST /v1/configuratie/callbacks` endpoints to only be `application/json`. - Fix --- README.md | 50 +++++++------ calcasa-api/apis/__init__.py | 27 ------- calcasa-api/models/__init__.py | 66 ----------------- calcasa/__init__.py | 0 {calcasa-api => calcasa/api}/__init__.py | 20 +++--- {calcasa-api => calcasa/api}/api/__init__.py | 2 +- .../api}/api/adressen_api.py | 26 ++++--- .../api}/api/bestemmingsplannen_api.py | 19 +++-- {calcasa-api => calcasa/api}/api/bodem_api.py | 19 +++-- {calcasa-api => calcasa/api}/api/buurt_api.py | 19 +++-- .../api}/api/configuratie_api.py | 31 ++++---- .../api}/api/facturen_api.py | 17 +++-- {calcasa-api => calcasa/api}/api/fotos_api.py | 17 +++-- .../api}/api/funderingen_api.py | 19 +++-- .../api}/api/geldverstrekkers_api.py | 17 +++-- .../api}/api/rapporten_api.py | 17 +++-- .../api}/api/waarderingen_api.py | 59 ++++++++++----- {calcasa-api => calcasa/api}/api_client.py | 70 +++++++++++------- calcasa/api/apis/__init__.py | 27 +++++++ {calcasa-api => calcasa/api}/configuration.py | 10 +-- {calcasa-api => calcasa/api}/exceptions.py | 4 +- .../api}/model/__init__.py | 2 +- .../api}/model/aanvraagdoel.py | 46 +++++++----- {calcasa-api => calcasa/api}/model/adres.py | 48 +++++++------ .../api}/model/adres_info.py | 52 ++++++++------ .../api}/model/bestemmingsdata.py | 48 +++++++------ .../api}/model/bodem_status_type.py | 46 +++++++----- .../api}/model/bodemdata.py | 50 +++++++------ .../api}/model/business_rules_code.py | 46 +++++++----- .../model/business_rules_problem_details.py | 50 +++++++------ .../api}/model/callback.py | 48 +++++++------ .../api}/model/cbs_indeling.py | 48 +++++++------ .../api}/model/energielabel.py | 46 +++++++----- {calcasa-api => calcasa/api}/model/factuur.py | 48 +++++++------ {calcasa-api => calcasa/api}/model/foto.py | 48 +++++++------ .../api}/model/fundering_data_bron.py | 46 +++++++----- .../api}/model/fundering_herstel_type.py | 46 +++++++----- .../api}/model/fundering_risico.py | 52 ++++++++------ .../api}/model/fundering_risico_label.py | 46 +++++++----- .../api}/model/fundering_soort_bron.py | 46 +++++++----- .../api}/model/fundering_type.py | 46 +++++++----- .../api}/model/fundering_typering.py | 52 ++++++++------ .../api}/model/funderingdata.py | 56 ++++++++------- .../api}/model/gebiedsdata.py | 48 +++++++------ .../api}/model/geldverstrekker.py | 48 +++++++------ .../model/http_validation_problem_details.py | 48 +++++++------ .../model/invalid_argument_problem_details.py | 48 +++++++------ .../api}/model/json_patch_document.py | 48 +++++++------ .../api}/model/klantwaarde_type.py | 46 +++++++----- .../api}/model/kwartaal.py | 48 +++++++------ .../api}/model/modeldata.py | 48 +++++++------ .../api}/model/not_found_problem_details.py | 48 +++++++------ {calcasa-api => calcasa/api}/model/notitie.py | 46 +++++++----- .../api}/model/notities.py | 50 +++++++------ .../api}/model/objectdata.py | 52 ++++++++------ .../api}/model/omgevingsdata.py | 50 +++++++------ .../api}/model/operation.py | 50 +++++++------ .../api}/model/operation_type.py | 46 +++++++----- .../permissions_denied_problem_details.py | 48 +++++++------ .../api}/model/problem_details.py | 48 +++++++------ .../api}/model/product_type.py | 46 +++++++----- {calcasa-api => calcasa/api}/model/rapport.py | 48 +++++++------ .../api}/model/referentieobject.py | 58 ++++++++------- .../resource_exhausted_problem_details.py | 48 +++++++------ .../api}/model/taxatiedata.py | 50 +++++++------ .../api}/model/taxatiestatus.py | 46 +++++++----- .../api}/model/validation_problem_details.py | 48 +++++++------ .../api}/model/verkoop_bijzonderheden.py | 46 +++++++----- .../api}/model/vorige_verkoop.py | 50 +++++++------ .../api}/model/waardering.py | 72 ++++++++++--------- .../api}/model/waardering_input_parameters.py | 58 ++++++++------- .../api}/model/waardering_ontwikkeling.py | 50 +++++++------ .../model/waardering_ontwikkeling_kwartaal.py | 50 +++++++------ .../api}/model/waardering_status.py | 46 +++++++----- .../api}/model/waardering_webhook_payload.py | 50 +++++++------ .../api}/model/waardering_zoek_parameters.py | 54 ++++++++------ .../api}/model/woning_type.py | 46 +++++++----- {calcasa-api => calcasa/api}/model_utils.py | 19 +++-- calcasa/api/models/__init__.py | 66 +++++++++++++++++ {calcasa-api => calcasa/api}/rest.py | 4 +- setup.py | 4 +- 81 files changed, 1944 insertions(+), 1387 deletions(-) delete mode 100644 calcasa-api/apis/__init__.py delete mode 100644 calcasa-api/models/__init__.py create mode 100644 calcasa/__init__.py rename {calcasa-api => calcasa/api}/__init__.py (63%) rename {calcasa-api => calcasa/api}/api/__init__.py (80%) rename {calcasa-api => calcasa/api}/api/adressen_api.py (91%) rename {calcasa-api => calcasa/api}/api/bestemmingsplannen_api.py (89%) rename {calcasa-api => calcasa/api}/api/bodem_api.py (89%) rename {calcasa-api => calcasa/api}/api/buurt_api.py (89%) rename {calcasa-api => calcasa/api}/api/configuratie_api.py (90%) rename {calcasa-api => calcasa/api}/api/facturen_api.py (89%) rename {calcasa-api => calcasa/api}/api/fotos_api.py (90%) rename {calcasa-api => calcasa/api}/api/funderingen_api.py (89%) rename {calcasa-api => calcasa/api}/api/geldverstrekkers_api.py (90%) rename {calcasa-api => calcasa/api}/api/rapporten_api.py (89%) rename {calcasa-api => calcasa/api}/api/waarderingen_api.py (90%) rename {calcasa-api => calcasa/api}/api_client.py (93%) create mode 100644 calcasa/api/apis/__init__.py rename {calcasa-api => calcasa/api}/configuration.py (98%) rename {calcasa-api => calcasa/api}/exceptions.py (98%) rename {calcasa-api => calcasa/api}/model/__init__.py (86%) rename {calcasa-api => calcasa/api}/model/aanvraagdoel.py (91%) rename {calcasa-api => calcasa/api}/model/adres.py (90%) rename {calcasa-api => calcasa/api}/model/adres_info.py (90%) rename {calcasa-api => calcasa/api}/model/bestemmingsdata.py (89%) rename {calcasa-api => calcasa/api}/model/bodem_status_type.py (91%) rename {calcasa-api => calcasa/api}/model/bodemdata.py (90%) rename {calcasa-api => calcasa/api}/model/business_rules_code.py (93%) rename {calcasa-api => calcasa/api}/model/business_rules_problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/callback.py (90%) rename {calcasa-api => calcasa/api}/model/cbs_indeling.py (90%) rename {calcasa-api => calcasa/api}/model/energielabel.py (91%) rename {calcasa-api => calcasa/api}/model/factuur.py (89%) rename {calcasa-api => calcasa/api}/model/foto.py (89%) rename {calcasa-api => calcasa/api}/model/fundering_data_bron.py (90%) rename {calcasa-api => calcasa/api}/model/fundering_herstel_type.py (91%) rename {calcasa-api => calcasa/api}/model/fundering_risico.py (89%) rename {calcasa-api => calcasa/api}/model/fundering_risico_label.py (90%) rename {calcasa-api => calcasa/api}/model/fundering_soort_bron.py (90%) rename {calcasa-api => calcasa/api}/model/fundering_type.py (93%) rename {calcasa-api => calcasa/api}/model/fundering_typering.py (90%) rename {calcasa-api => calcasa/api}/model/funderingdata.py (90%) rename {calcasa-api => calcasa/api}/model/gebiedsdata.py (91%) rename {calcasa-api => calcasa/api}/model/geldverstrekker.py (89%) rename {calcasa-api => calcasa/api}/model/http_validation_problem_details.py (91%) rename {calcasa-api => calcasa/api}/model/invalid_argument_problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/json_patch_document.py (89%) rename {calcasa-api => calcasa/api}/model/klantwaarde_type.py (90%) rename {calcasa-api => calcasa/api}/model/kwartaal.py (89%) rename {calcasa-api => calcasa/api}/model/modeldata.py (90%) rename {calcasa-api => calcasa/api}/model/not_found_problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/notitie.py (91%) rename {calcasa-api => calcasa/api}/model/notities.py (92%) rename {calcasa-api => calcasa/api}/model/objectdata.py (91%) rename {calcasa-api => calcasa/api}/model/omgevingsdata.py (90%) rename {calcasa-api => calcasa/api}/model/operation.py (89%) rename {calcasa-api => calcasa/api}/model/operation_type.py (90%) rename {calcasa-api => calcasa/api}/model/permissions_denied_problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/product_type.py (92%) rename {calcasa-api => calcasa/api}/model/rapport.py (89%) rename {calcasa-api => calcasa/api}/model/referentieobject.py (90%) rename {calcasa-api => calcasa/api}/model/resource_exhausted_problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/taxatiedata.py (90%) rename {calcasa-api => calcasa/api}/model/taxatiestatus.py (91%) rename {calcasa-api => calcasa/api}/model/validation_problem_details.py (90%) rename {calcasa-api => calcasa/api}/model/verkoop_bijzonderheden.py (92%) rename {calcasa-api => calcasa/api}/model/vorige_verkoop.py (90%) rename {calcasa-api => calcasa/api}/model/waardering.py (89%) rename {calcasa-api => calcasa/api}/model/waardering_input_parameters.py (90%) rename {calcasa-api => calcasa/api}/model/waardering_ontwikkeling.py (92%) rename {calcasa-api => calcasa/api}/model/waardering_ontwikkeling_kwartaal.py (89%) rename {calcasa-api => calcasa/api}/model/waardering_status.py (92%) rename {calcasa-api => calcasa/api}/model/waardering_webhook_payload.py (92%) rename {calcasa-api => calcasa/api}/model/waardering_zoek_parameters.py (90%) rename {calcasa-api => calcasa/api}/model/woning_type.py (92%) rename {calcasa-api => calcasa/api}/model_utils.py (99%) create mode 100644 calcasa/api/models/__init__.py rename {calcasa-api => calcasa/api}/rest.py (99%) diff --git a/README.md b/README.md index ec66ea9..74ebe3c 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,14 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-04-12 (v1.1.4) +- Added proper Content-Disposition headers to the `GET /v1/rapporten/{id}` and `GET /v1/facturen/{id}` endpoints with the correct filename. +- Fix Mime Types for the `GET /v1/configuratie/callbacks` and `POST /v1/configuratie/callbacks` endpoints to only be `application/json`. +- Fix C# API client to correctly use the `application/json-patch+json` content type in requests that require it. +- Fix C# client's `FileParameter` type correct handling of response headers like `Content-Disposition` and `Content-Type`. +- Removed C# client's useless implementation of `IValidatableObject`. +- Fix Python client's internal namespace name being illegal `calcasa-api` -> calcasa.api. + ### 2022-03-22 (v1.1.3) - Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for `PATCH /v1/waarderingen/{id}`. @@ -116,8 +124,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.3 -- Package version: 1.1.3 +- API version: 1.1.4 +- Package version: 1.1.4 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -137,7 +145,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 @@ -151,7 +159,7 @@ python setup.py install --user Then import the package: ```python -import calcasa-api +import calcasa.api ``` ## Getting Started @@ -161,17 +169,17 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python import time -import calcasa-api +import calcasa.api 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 +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 # See configuration.py for a list of all supported configuration parameters. -configuration = calcasa-api.Configuration( +configuration = calcasa.api.Configuration( host = "https://api.calcasa.nl" ) @@ -181,14 +189,14 @@ configuration = calcasa-api.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = calcasa-api.Configuration( +configuration = calcasa.api.Configuration( host = "https://api.calcasa.nl" ) configuration.access_token = 'YOUR_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. @@ -197,7 +205,7 @@ with calcasa-api.ApiClient(configuration) as api_client: # Adres info op basis van BAG Nummeraanduiding Id. api_response = api_instance.get_adres(bag_nummeraanduiding_id) pprint(api_response) - except calcasa-api.ApiException as e: + except calcasa.api.ApiException as e: print("Exception when calling AdressenApi->get_adres: %s\n" % e) ``` @@ -328,21 +336,21 @@ 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 +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` +- `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 * +import calcasa.api +from calcasa.api.apis import * +from calcasa.api.models import * ``` diff --git a/calcasa-api/apis/__init__.py b/calcasa-api/apis/__init__.py deleted file mode 100644 index 4f231bd..0000000 --- a/calcasa-api/apis/__init__.py +++ /dev/null @@ -1,27 +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.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/models/__init__.py b/calcasa-api/models/__init__.py deleted file mode 100644 index 6456a97..0000000 --- a/calcasa-api/models/__init__.py +++ /dev/null @@ -1,66 +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.geldverstrekker import Geldverstrekker -from calcasa-api.model.http_validation_problem_details import HttpValidationProblemDetails -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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails -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/__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 similarity index 63% rename from calcasa-api/__init__.py rename to calcasa/api/__init__.py index 72051db..3c4a218 100644 --- a/calcasa-api/__init__.py +++ b/calcasa/api/__init__.py @@ -17,23 +17,23 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.3" +__version__ = "1.1.4" # import ApiClient -from calcasa-api.api_client import ApiClient +from calcasa.api.api_client import ApiClient # import Configuration -from calcasa-api.configuration 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 +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 similarity index 80% rename from calcasa-api/api/__init__.py rename to calcasa/api/api/__init__.py index 2f43687..1332ba3 100644 --- a/calcasa-api/api/__init__.py +++ b/calcasa/api/api/__init__.py @@ -1,3 +1,3 @@ # 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 +# from calcasa.api.apis import AdressenApi diff --git a/calcasa-api/api/adressen_api.py b/calcasa/api/api/adressen_api.py similarity index 91% rename from calcasa-api/api/adressen_api.py rename to calcasa/api/api/adressen_api.py index b6a9a12..b04fda7 100644 --- a/calcasa-api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,11 +33,11 @@ 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 +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): @@ -198,6 +198,10 @@ def get_adres( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -229,6 +233,7 @@ def get_adres( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['bag_nummeraanduiding_id'] = \ bag_nummeraanduiding_id return self.get_adres_endpoint.call_with_http_info(**kwargs) @@ -274,6 +279,10 @@ def search_adres( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -305,5 +314,6 @@ def search_adres( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 89% rename from calcasa-api/api/bestemmingsplannen_api.py rename to calcasa/api/api/bestemmingsplannen_api.py index 1226352..a6f56bf 100644 --- a/calcasa-api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,10 +33,10 @@ 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 +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): @@ -146,6 +146,10 @@ def get_bestemming_by_id( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -177,6 +181,7 @@ def get_bestemming_by_id( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 89% rename from calcasa-api/api/bodem_api.py rename to calcasa/api/api/bodem_api.py index 53057ef..fcf1971 100644 --- a/calcasa-api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,10 +33,10 @@ 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 +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): @@ -146,6 +146,10 @@ def get_bodem_by_id( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -177,6 +181,7 @@ def get_bodem_by_id( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['bag_nummeraanduiding_id'] = \ bag_nummeraanduiding_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 similarity index 89% rename from calcasa-api/api/buurt_api.py rename to calcasa/api/api/buurt_api.py index c6c21b6..73b773a 100644 --- a/calcasa-api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,10 +33,10 @@ 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 +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): @@ -146,6 +146,10 @@ def get_buurt( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -177,6 +181,7 @@ def get_buurt( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 90% rename from calcasa-api/api/configuratie_api.py rename to calcasa/api/api/configuratie_api.py index 2055166..3be5646 100644 --- a/calcasa-api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,10 +33,10 @@ 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 +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): @@ -141,12 +141,7 @@ def __init__(self, api_client=None): 'application/json' ], 'content_type': [ - 'application/json-patch+json', - 'application/json', - 'text/json', - 'application/*+json', - 'application/x-protobuf', - 'application/protobuf' + 'application/json' ] }, api_client=api_client @@ -192,6 +187,10 @@ def get_callbacks( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -223,6 +222,7 @@ def get_callbacks( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) return self.get_callbacks_endpoint.call_with_http_info(**kwargs) def update_callbacks( @@ -266,6 +266,10 @@ def update_callbacks( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -297,5 +301,6 @@ def update_callbacks( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 89% rename from calcasa-api/api/facturen_api.py rename to calcasa/api/api/facturen_api.py index 3dd4d04..4b417b7 100644 --- a/calcasa-api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,9 +33,9 @@ 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 +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): @@ -144,6 +144,10 @@ def get_factuur( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -175,6 +179,7 @@ def get_factuur( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 90% rename from calcasa-api/api/fotos_api.py rename to calcasa/api/api/fotos_api.py index 57d8324..10bc149 100644 --- a/calcasa-api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,9 +33,9 @@ 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 +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): @@ -145,6 +145,10 @@ def get_foto( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -176,6 +180,7 @@ def get_foto( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 89% rename from calcasa-api/api/funderingen_api.py rename to calcasa/api/api/funderingen_api.py index 6b6d0d0..1f1b239 100644 --- a/calcasa-api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,10 +33,10 @@ 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 +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): @@ -146,6 +146,10 @@ def get_fundering_by_id( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -177,6 +181,7 @@ def get_fundering_by_id( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py similarity index 90% rename from calcasa-api/api/geldverstrekkers_api.py rename to calcasa/api/api/geldverstrekkers_api.py index 129782d..fd44581 100644 --- a/calcasa-api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,9 +33,9 @@ none_type, validate_and_convert_types ) -from calcasa-api.model.geldverstrekker import Geldverstrekker -from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails -from calcasa-api.model.problem_details import ProblemDetails +from calcasa.api.model.geldverstrekker import Geldverstrekker +from calcasa.api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails +from calcasa.api.model.problem_details import ProblemDetails class GeldverstrekkersApi(object): @@ -144,6 +144,10 @@ def get_geldverstrekkers( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -175,6 +179,7 @@ def get_geldverstrekkers( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['product_type'] = \ product_type return self.get_geldverstrekkers_endpoint.call_with_http_info(**kwargs) diff --git a/calcasa-api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py similarity index 89% rename from calcasa-api/api/rapporten_api.py rename to calcasa/api/api/rapporten_api.py index 8d250a1..06b27df 100644 --- a/calcasa-api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,9 +33,9 @@ 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 +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): @@ -144,6 +144,10 @@ def get_rapport( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -175,6 +179,7 @@ def get_rapport( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) 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 similarity index 90% rename from calcasa-api/api/waarderingen_api.py rename to calcasa/api/api/waarderingen_api.py index ef05127..bea928b 100644 --- a/calcasa-api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,8 +23,8 @@ 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 +from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint +from calcasa.api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -33,18 +33,18 @@ 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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails -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 +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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails +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): @@ -329,7 +329,7 @@ def create_waardering( ): """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/v1/reference/schemas/WaarderingWebhookPayload) | # 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/v1/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 @@ -364,6 +364,10 @@ def create_waardering( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -395,6 +399,7 @@ def create_waardering( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) return self.create_waardering_endpoint.call_with_http_info(**kwargs) def get_waardering( @@ -440,6 +445,10 @@ def get_waardering( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -471,6 +480,7 @@ def get_waardering( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['id'] = \ id return self.get_waardering_endpoint.call_with_http_info(**kwargs) @@ -518,6 +528,10 @@ def get_waardering_ontwikkeling( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -549,6 +563,7 @@ def get_waardering_ontwikkeling( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['id'] = \ id return self.get_waardering_ontwikkeling_endpoint.call_with_http_info(**kwargs) @@ -560,7 +575,7 @@ def patch_waarderingen( ): """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/v1/reference/schemas/WaarderingWebhookPayload) | # 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/v1/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 @@ -597,6 +612,10 @@ def patch_waarderingen( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -628,6 +647,7 @@ def patch_waarderingen( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['id'] = \ id return self.patch_waarderingen_endpoint.call_with_http_info(**kwargs) @@ -673,6 +693,10 @@ def search_waarderingen( _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: @@ -704,5 +728,6 @@ def search_waarderingen( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) return self.search_waarderingen_endpoint.call_with_http_info(**kwargs) diff --git a/calcasa-api/api_client.py b/calcasa/api/api_client.py similarity index 93% rename from calcasa-api/api_client.py rename to calcasa/api/api_client.py index 380e704..95119f4 100644 --- a/calcasa-api/api_client.py +++ b/calcasa/api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -32,10 +32,10 @@ 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 ( +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, @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.3' + self.user_agent = 'Calcasa Python Api Client/1.1.4' def __enter__(self): return self @@ -144,7 +144,8 @@ def __call_api( _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, _host: typing.Optional[str] = None, _check_type: typing.Optional[bool] = None, - _content_type: typing.Optional[str] = None + _content_type: typing.Optional[str] = None, + _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None ): config = self.configuration @@ -194,7 +195,8 @@ def __call_api( # auth setting self.update_params_for_auth(header_params, query_params, - auth_settings, resource_path, method, body) + auth_settings, resource_path, method, body, + request_auths=_request_auths) # request url if _host is None: @@ -362,7 +364,8 @@ def call_api( _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 + _check_type: typing.Optional[bool] = None, + _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None ): """Makes the HTTP request (synchronous) and returns deserialized data. @@ -410,6 +413,10 @@ def call_api( :param _check_type: boolean describing if the data back from the server should have its type checked. :type _check_type: bool, optional + :param _request_auths: 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_auths: list, optional :return: If async_req parameter is True, the request will be called asynchronously. @@ -424,7 +431,7 @@ def call_api( response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout, _host, - _check_type) + _check_type, _request_auths=_request_auths) return self.pool.apply_async(self.__call_api, (resource_path, method, path_params, @@ -437,7 +444,7 @@ def call_api( collection_formats, _preload_content, _request_timeout, - _host, _check_type)) + _host, _check_type, None, _request_auths)) def request(self, method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True, @@ -609,7 +616,7 @@ def select_header_content_type(self, content_types, method=None, body=None): return content_types[0] def update_params_for_auth(self, headers, queries, auth_settings, - resource_path, method, body): + resource_path, method, body, request_auths=None): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. @@ -619,24 +626,34 @@ def update_params_for_auth(self, headers, queries, auth_settings, :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(). + :param request_auths: if set, the provided settings will + override the token in the configuration. """ if not auth_settings: return + if request_auths: + for auth_setting in request_auths: + self._apply_auth_params(headers, queries, resource_path, method, body, auth_setting) + 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`' - ) + 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): + 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): @@ -686,7 +703,8 @@ def __init__(self, settings=None, params_map=None, root_map=None, '_check_input_type', '_check_return_type', '_content_type', - '_spec_property_naming' + '_spec_property_naming', + '_request_auths' ]) self.params_map['nullable'].extend(['_request_timeout']) self.validations = root_map['validations'] @@ -701,7 +719,8 @@ def __init__(self, settings=None, params_map=None, root_map=None, '_check_input_type': (bool,), '_check_return_type': (bool,), '_spec_property_naming': (bool,), - '_content_type': (none_type, str) + '_content_type': (none_type, str), + '_request_auths': (none_type, list) } self.openapi_types.update(extra_types) self.attribute_map = root_map['attribute_map'] @@ -876,4 +895,5 @@ def call_with_http_info(self, **kwargs): _preload_content=kwargs['_preload_content'], _request_timeout=kwargs['_request_timeout'], _host=_host, + _request_auths=kwargs['_request_auths'], collection_formats=params['collection_format']) diff --git a/calcasa/api/apis/__init__.py b/calcasa/api/apis/__init__.py new file mode 100644 index 0000000..ca6a7ad --- /dev/null +++ b/calcasa/api/apis/__init__.py @@ -0,0 +1,27 @@ + +# 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 calcasa.api.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.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/configuration.py b/calcasa/api/configuration.py similarity index 98% rename from calcasa-api/configuration.py rename to calcasa/api/configuration.py index f88faa7..8b2774c 100644 --- a/calcasa-api/configuration.py +++ b/calcasa/api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -27,7 +27,7 @@ import urllib3 from http import client as http_client -from calcasa-api.exceptions import ApiValueError +from calcasa.api.exceptions import ApiValueError JSON_SCHEMA_VALIDATION_KEYWORDS = { @@ -145,7 +145,7 @@ def __init__(self, host=None, 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' """Log format @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.3\n"\ - "SDK Package Version: 1.1.3".\ + "Version of the API: 1.1.4\n"\ + "SDK Package Version: 1.1.4".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa-api/exceptions.py b/calcasa/api/exceptions.py similarity index 98% rename from calcasa-api/exceptions.py rename to calcasa/api/exceptions.py index 6c2a568..1ae6abe 100644 --- a/calcasa-api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -124,7 +124,7 @@ def __init__(self, status=None, reason=None, http_resp=None): def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n"\ + error_message = "Status Code: {0}\n"\ "Reason: {1}\n".format(self.status, self.reason) if self.headers: error_message += "HTTP response headers: {0}\n".format( diff --git a/calcasa-api/model/__init__.py b/calcasa/api/model/__init__.py similarity index 86% rename from calcasa-api/model/__init__.py rename to calcasa/api/model/__init__.py index c41b2f8..ea78aa8 100644 --- a/calcasa-api/model/__init__.py +++ b/calcasa/api/model/__init__.py @@ -2,4 +2,4 @@ # 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 calcasa-api.models import ModelA, ModelB +# from calcasa.api.models import ModelA, ModelB diff --git a/calcasa-api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py similarity index 91% rename from calcasa-api/model/aanvraagdoel.py rename to calcasa/api/model/aanvraagdoel.py index 389a167..c9b1a67 100644 --- a/calcasa-api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -178,14 +178,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -270,14 +274,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/adres.py b/calcasa/api/model/adres.py similarity index 90% rename from calcasa-api/model/adres.py rename to calcasa/api/model/adres.py index d23f2fe..82ee361 100644 --- a/calcasa-api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -156,7 +156,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -164,14 +164,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -248,14 +252,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/adres_info.py b/calcasa/api/model/adres_info.py similarity index 90% rename from calcasa-api/model/adres_info.py rename to calcasa/api/model/adres_info.py index bd2aaa3..9cd8c9d 100644 --- a/calcasa-api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,12 +38,12 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.adres import Adres - from calcasa-api.model.notities import Notities + from calcasa.api.model.adres import Adres + from calcasa.api.model.notities import Notities globals()['Adres'] = Adres globals()['Notities'] = Notities @@ -160,7 +160,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -168,14 +168,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -251,14 +255,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py similarity index 89% rename from calcasa-api/model/bestemmingsdata.py rename to calcasa/api/model/bestemmingsdata.py index a74037e..e491f32 100644 --- a/calcasa-api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -155,14 +155,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -236,14 +240,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py similarity index 91% rename from calcasa-api/model/bodem_status_type.py rename to calcasa/api/model/bodem_status_type.py index 9b191d2..f922913 100644 --- a/calcasa-api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -177,14 +177,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -269,14 +273,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/bodemdata.py b/calcasa/api/model/bodemdata.py similarity index 90% rename from calcasa-api/model/bodemdata.py rename to calcasa/api/model/bodemdata.py index 68ab296..8090f87 100644 --- a/calcasa-api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.bodem_status_type import BodemStatusType + from calcasa.api.model.bodem_status_type import BodemStatusType globals()['BodemStatusType'] = BodemStatusType @@ -155,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -163,14 +163,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -245,14 +249,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py similarity index 93% rename from calcasa-api/model/business_rules_code.py rename to calcasa/api/model/business_rules_code.py index 580c2d4..3012a97 100644 --- a/calcasa-api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -181,14 +181,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -273,14 +277,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py similarity index 90% rename from calcasa-api/model/business_rules_problem_details.py rename to calcasa/api/model/business_rules_problem_details.py index 7ef304e..54b3b32 100644 --- a/calcasa-api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.business_rules_code import BusinessRulesCode + from calcasa.api.model.business_rules_code import BusinessRulesCode globals()['BusinessRulesCode'] = BusinessRulesCode @@ -171,7 +171,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -179,14 +179,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -264,14 +268,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/callback.py b/calcasa/api/model/callback.py similarity index 90% rename from calcasa-api/model/callback.py rename to calcasa/api/model/callback.py index bc2efde..19d45da 100644 --- a/calcasa-api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -150,7 +150,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -158,14 +158,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -239,14 +243,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py similarity index 90% rename from calcasa-api/model/cbs_indeling.py rename to calcasa/api/model/cbs_indeling.py index da8047e..d9d6743 100644 --- a/calcasa-api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -153,7 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -161,14 +161,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -244,14 +248,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/energielabel.py b/calcasa/api/model/energielabel.py similarity index 91% rename from calcasa-api/model/energielabel.py rename to calcasa/api/model/energielabel.py index 04422e4..27e8827 100644 --- a/calcasa-api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -183,14 +183,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -275,14 +279,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/factuur.py b/calcasa/api/model/factuur.py similarity index 89% rename from calcasa-api/model/factuur.py rename to calcasa/api/model/factuur.py index 232d8d5..25919d9 100644 --- a/calcasa-api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -155,14 +155,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -236,14 +240,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/foto.py b/calcasa/api/model/foto.py similarity index 89% rename from calcasa-api/model/foto.py rename to calcasa/api/model/foto.py index f69ff39..b1d0736 100644 --- a/calcasa-api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -144,7 +144,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -152,14 +152,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -232,14 +236,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py similarity index 90% rename from calcasa-api/model/fundering_data_bron.py rename to calcasa/api/model/fundering_data_bron.py index 15c85b7..e498882 100644 --- a/calcasa-api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -173,14 +173,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -265,14 +269,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py similarity index 91% rename from calcasa-api/model/fundering_herstel_type.py rename to calcasa/api/model/fundering_herstel_type.py index 15f447e..341cb80 100644 --- a/calcasa-api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -176,14 +176,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -268,14 +272,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py similarity index 89% rename from calcasa-api/model/fundering_risico.py rename to calcasa/api/model/fundering_risico.py index c7d5e90..1dc37b7 100644 --- a/calcasa-api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,12 +38,12 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.fundering_risico_label import FunderingRisicoLabel - from calcasa-api.model.fundering_soort_bron import FunderingSoortBron + from calcasa.api.model.fundering_risico_label import FunderingRisicoLabel + from calcasa.api.model.fundering_soort_bron import FunderingSoortBron globals()['FunderingRisicoLabel'] = FunderingRisicoLabel globals()['FunderingSoortBron'] = FunderingSoortBron @@ -157,7 +157,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -165,14 +165,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -247,14 +251,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py similarity index 90% rename from calcasa-api/model/fundering_risico_label.py rename to calcasa/api/model/fundering_risico_label.py index 4a110f9..7b43f19 100644 --- a/calcasa-api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -175,14 +175,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -267,14 +271,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py similarity index 90% rename from calcasa-api/model/fundering_soort_bron.py rename to calcasa/api/model/fundering_soort_bron.py index 891b54a..0f58510 100644 --- a/calcasa-api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -174,14 +174,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -266,14 +270,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_type.py b/calcasa/api/model/fundering_type.py similarity index 93% rename from calcasa-api/model/fundering_type.py rename to calcasa/api/model/fundering_type.py index 0a20cae..4669e47 100644 --- a/calcasa-api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -189,14 +189,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -281,14 +285,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py similarity index 90% rename from calcasa-api/model/fundering_typering.py rename to calcasa/api/model/fundering_typering.py index 61c85e5..950112b 100644 --- a/calcasa-api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,12 +38,12 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.fundering_soort_bron import FunderingSoortBron - from calcasa-api.model.fundering_type import FunderingType + from calcasa.api.model.fundering_soort_bron import FunderingSoortBron + from calcasa.api.model.fundering_type import FunderingType globals()['FunderingSoortBron'] = FunderingSoortBron globals()['FunderingType'] = FunderingType @@ -157,7 +157,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -165,14 +165,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -247,14 +251,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/funderingdata.py b/calcasa/api/model/funderingdata.py similarity index 90% rename from calcasa-api/model/funderingdata.py rename to calcasa/api/model/funderingdata.py index 65dea0f..ff11c27 100644 --- a/calcasa-api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,14 +38,14 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - 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_typering import FunderingTypering + 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_typering import FunderingTypering globals()['FunderingDataBron'] = FunderingDataBron globals()['FunderingHerstelType'] = FunderingHerstelType globals()['FunderingRisico'] = FunderingRisico @@ -173,7 +173,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -181,14 +181,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -267,14 +271,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py similarity index 91% rename from calcasa-api/model/gebiedsdata.py rename to calcasa/api/model/gebiedsdata.py index a7e4767..bc553ea 100644 --- a/calcasa-api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -168,7 +168,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -176,14 +176,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -264,14 +268,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py similarity index 89% rename from calcasa-api/model/geldverstrekker.py rename to calcasa/api/model/geldverstrekker.py index 265d85b..176a2f0 100644 --- a/calcasa-api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -155,14 +155,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -236,14 +240,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py similarity index 91% rename from calcasa-api/model/http_validation_problem_details.py rename to calcasa/api/model/http_validation_problem_details.py index 3a9f0ff..7bc9a48 100644 --- a/calcasa-api/model/http_validation_problem_details.py +++ b/calcasa/api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.problem_details import ProblemDetails + from calcasa.api.model.problem_details import ProblemDetails globals()['ProblemDetails'] = ProblemDetails @@ -177,14 +177,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -280,14 +284,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py similarity index 90% rename from calcasa-api/model/invalid_argument_problem_details.py rename to calcasa/api/model/invalid_argument_problem_details.py index 628ef89..8b07048 100644 --- a/calcasa-api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -173,14 +173,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -258,14 +262,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py similarity index 89% rename from calcasa-api/model/json_patch_document.py rename to calcasa/api/model/json_patch_document.py index 3500c24..da83722 100644 --- a/calcasa-api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.operation import Operation + from calcasa.api.model.operation import Operation globals()['Operation'] = Operation @@ -174,14 +174,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -266,14 +270,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py similarity index 90% rename from calcasa-api/model/klantwaarde_type.py rename to calcasa/api/model/klantwaarde_type.py index 7829fd5..d9c2266 100644 --- a/calcasa-api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -176,14 +176,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -268,14 +272,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/kwartaal.py b/calcasa/api/model/kwartaal.py similarity index 89% rename from calcasa-api/model/kwartaal.py rename to calcasa/api/model/kwartaal.py index 3a4d091..b2470aa 100644 --- a/calcasa-api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -155,14 +155,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -236,14 +240,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/modeldata.py b/calcasa/api/model/modeldata.py similarity index 90% rename from calcasa-api/model/modeldata.py rename to calcasa/api/model/modeldata.py index 65ac5ae..d00f9e9 100644 --- a/calcasa-api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -159,7 +159,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -167,14 +167,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -252,14 +256,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py similarity index 90% rename from calcasa-api/model/not_found_problem_details.py rename to calcasa/api/model/not_found_problem_details.py index a1bae0d..aaf3fd8 100644 --- a/calcasa-api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -173,14 +173,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -258,14 +262,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/notitie.py b/calcasa/api/model/notitie.py similarity index 91% rename from calcasa-api/model/notitie.py rename to calcasa/api/model/notitie.py index c2c916f..2a69763 100644 --- a/calcasa-api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -175,14 +175,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -267,14 +271,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/notities.py b/calcasa/api/model/notities.py similarity index 92% rename from calcasa-api/model/notities.py rename to calcasa/api/model/notities.py index 45dcd19..21acdf7 100644 --- a/calcasa-api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.notitie import Notitie + from calcasa.api.model.notitie import Notitie globals()['Notitie'] = Notitie @@ -161,7 +161,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -169,14 +169,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -253,14 +257,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/objectdata.py b/calcasa/api/model/objectdata.py similarity index 91% rename from calcasa-api/model/objectdata.py rename to calcasa/api/model/objectdata.py index 783619e..4fb0c8a 100644 --- a/calcasa-api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,12 +38,12 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.energielabel import Energielabel - from calcasa-api.model.woning_type import WoningType + from calcasa.api.model.energielabel import Energielabel + from calcasa.api.model.woning_type import WoningType globals()['Energielabel'] = Energielabel globals()['WoningType'] = WoningType @@ -166,7 +166,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -174,14 +174,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -259,14 +263,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py similarity index 90% rename from calcasa-api/model/omgevingsdata.py rename to calcasa/api/model/omgevingsdata.py index 2691028..fc02b3b 100644 --- a/calcasa-api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.gebiedsdata import Gebiedsdata + from calcasa.api.model.gebiedsdata import Gebiedsdata globals()['Gebiedsdata'] = Gebiedsdata @@ -161,7 +161,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -169,14 +169,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -253,14 +257,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/operation.py b/calcasa/api/model/operation.py similarity index 89% rename from calcasa-api/model/operation.py rename to calcasa/api/model/operation.py index 8e3ae2f..e34ee51 100644 --- a/calcasa-api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.operation_type import OperationType + from calcasa.api.model.operation_type import OperationType globals()['OperationType'] = OperationType @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -173,14 +173,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -256,14 +260,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/operation_type.py b/calcasa/api/model/operation_type.py similarity index 90% rename from calcasa-api/model/operation_type.py rename to calcasa/api/model/operation_type.py index 66e01d7..0090b52 100644 --- a/calcasa-api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -178,14 +178,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -270,14 +274,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py similarity index 90% rename from calcasa-api/model/permissions_denied_problem_details.py rename to calcasa/api/model/permissions_denied_problem_details.py index c12b97a..2a78694 100644 --- a/calcasa-api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -173,14 +173,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -258,14 +262,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/problem_details.py b/calcasa/api/model/problem_details.py similarity index 90% rename from calcasa-api/model/problem_details.py rename to calcasa/api/model/problem_details.py index d0beeb8..4867051 100644 --- a/calcasa-api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -162,7 +162,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -170,14 +170,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -254,14 +258,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/product_type.py b/calcasa/api/model/product_type.py similarity index 92% rename from calcasa-api/model/product_type.py rename to calcasa/api/model/product_type.py index 3c18527..214a8ad 100644 --- a/calcasa-api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -176,14 +176,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -268,14 +272,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/rapport.py b/calcasa/api/model/rapport.py similarity index 89% rename from calcasa-api/model/rapport.py rename to calcasa/api/model/rapport.py index 3afdb3c..673c008 100644 --- a/calcasa-api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -144,7 +144,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -152,14 +152,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -232,14 +236,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/referentieobject.py b/calcasa/api/model/referentieobject.py similarity index 90% rename from calcasa-api/model/referentieobject.py rename to calcasa/api/model/referentieobject.py index 77c7a33..ef4c1a6 100644 --- a/calcasa-api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,15 +38,15 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.adres import Adres - from calcasa-api.model.cbs_indeling import CbsIndeling - from calcasa-api.model.foto import Foto - from calcasa-api.model.objectdata import Objectdata - from calcasa-api.model.verkoop_bijzonderheden import VerkoopBijzonderheden + from calcasa.api.model.adres import Adres + from calcasa.api.model.cbs_indeling import CbsIndeling + from calcasa.api.model.foto import Foto + from calcasa.api.model.objectdata import Objectdata + from calcasa.api.model.verkoop_bijzonderheden import VerkoopBijzonderheden globals()['Adres'] = Adres globals()['CbsIndeling'] = CbsIndeling globals()['Foto'] = Foto @@ -193,7 +193,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -201,14 +201,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -293,14 +297,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py similarity index 90% rename from calcasa-api/model/resource_exhausted_problem_details.py rename to calcasa/api/model/resource_exhausted_problem_details.py index 6ed8e46..ae8e767 100644 --- a/calcasa-api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -173,14 +173,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -258,14 +262,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py similarity index 90% rename from calcasa-api/model/taxatiedata.py rename to calcasa/api/model/taxatiedata.py index 1e208c7..95d6a42 100644 --- a/calcasa-api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.taxatiestatus import Taxatiestatus + from calcasa.api.model.taxatiestatus import Taxatiestatus globals()['Taxatiestatus'] = Taxatiestatus @@ -155,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -163,14 +163,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -245,14 +249,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py similarity index 91% rename from calcasa-api/model/taxatiestatus.py rename to calcasa/api/model/taxatiestatus.py index 93044a9..15d86d9 100644 --- a/calcasa-api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -174,14 +174,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -266,14 +270,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py similarity index 90% rename from calcasa-api/model/validation_problem_details.py rename to calcasa/api/model/validation_problem_details.py index 4e8c302..3a4a440 100644 --- a/calcasa-api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -173,14 +173,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -258,14 +262,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py similarity index 92% rename from calcasa-api/model/verkoop_bijzonderheden.py rename to calcasa/api/model/verkoop_bijzonderheden.py index 94f5c6a..72db6a5 100644 --- a/calcasa-api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -180,14 +180,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -272,14 +276,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py similarity index 90% rename from calcasa-api/model/vorige_verkoop.py rename to calcasa/api/model/vorige_verkoop.py index 6f51592..b87f6ca 100644 --- a/calcasa-api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.verkoop_bijzonderheden import VerkoopBijzonderheden + from calcasa.api.model.verkoop_bijzonderheden import VerkoopBijzonderheden globals()['VerkoopBijzonderheden'] = VerkoopBijzonderheden @@ -167,7 +167,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -175,14 +175,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -261,14 +265,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering.py b/calcasa/api/model/waardering.py similarity index 89% rename from calcasa-api/model/waardering.py rename to calcasa/api/model/waardering.py index 458054c..5763b87 100644 --- a/calcasa-api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,22 +38,22 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.adres import Adres - from calcasa-api.model.cbs_indeling import CbsIndeling - from calcasa-api.model.factuur import Factuur - from calcasa-api.model.foto import Foto - from calcasa-api.model.modeldata import Modeldata - from calcasa-api.model.objectdata import Objectdata - 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.vorige_verkoop import VorigeVerkoop - from calcasa-api.model.waardering_input_parameters import WaarderingInputParameters - from calcasa-api.model.waardering_status import WaarderingStatus + from calcasa.api.model.adres import Adres + from calcasa.api.model.cbs_indeling import CbsIndeling + from calcasa.api.model.factuur import Factuur + from calcasa.api.model.foto import Foto + from calcasa.api.model.modeldata import Modeldata + from calcasa.api.model.objectdata import Objectdata + 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.vorige_verkoop import VorigeVerkoop + from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters + from calcasa.api.model.waardering_status import WaarderingStatus globals()['Adres'] = Adres globals()['CbsIndeling'] = CbsIndeling globals()['Factuur'] = Factuur @@ -210,7 +210,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -218,14 +218,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -311,14 +315,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py similarity index 90% rename from calcasa-api/model/waardering_input_parameters.py rename to calcasa/api/model/waardering_input_parameters.py index ee7bc1a..48fd8bb 100644 --- a/calcasa-api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,13 +38,13 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.aanvraagdoel import Aanvraagdoel - from calcasa-api.model.klantwaarde_type import KlantwaardeType - from calcasa-api.model.product_type import ProductType + from calcasa.api.model.aanvraagdoel import Aanvraagdoel + from calcasa.api.model.klantwaarde_type import KlantwaardeType + from calcasa.api.model.product_type import ProductType globals()['Aanvraagdoel'] = Aanvraagdoel globals()['KlantwaardeType'] = KlantwaardeType globals()['ProductType'] = ProductType @@ -181,7 +181,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar hypotheekwaarde (int): 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.. [optional] # noqa: E501 aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + klantwaarde_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 @@ -191,7 +191,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -199,14 +199,18 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -279,7 +283,7 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n hypotheekwaarde (int): 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.. [optional] # noqa: E501 aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + klantwaarde_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 @@ -295,14 +299,18 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py similarity index 92% rename from calcasa-api/model/waardering_ontwikkeling.py rename to calcasa/api/model/waardering_ontwikkeling.py index 7f4f793..b5b5727 100644 --- a/calcasa-api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal + from calcasa.api.model.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal globals()['WaarderingOntwikkelingKwartaal'] = WaarderingOntwikkelingKwartaal @@ -173,7 +173,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -181,14 +181,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -269,14 +273,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py similarity index 89% rename from calcasa-api/model/waardering_ontwikkeling_kwartaal.py rename to calcasa/api/model/waardering_ontwikkeling_kwartaal.py index 9d234b8..d7d9d3e 100644 --- a/calcasa-api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.kwartaal import Kwartaal + from calcasa.api.model.kwartaal import Kwartaal globals()['Kwartaal'] = Kwartaal @@ -152,7 +152,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -160,14 +160,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -241,14 +245,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering_status.py b/calcasa/api/model/waardering_status.py similarity index 92% rename from calcasa-api/model/waardering_status.py rename to calcasa/api/model/waardering_status.py index 7bae9a7..a39d4a6 100644 --- a/calcasa-api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -180,14 +180,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -272,14 +276,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py similarity index 92% rename from calcasa-api/model/waardering_webhook_payload.py rename to calcasa/api/model/waardering_webhook_payload.py index 749ff65..c44d0b4 100644 --- a/calcasa-api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,11 +38,11 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.waardering_status import WaarderingStatus + from calcasa.api.model.waardering_status import WaarderingStatus globals()['WaarderingStatus'] = WaarderingStatus @@ -168,7 +168,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -176,14 +176,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -262,14 +266,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py similarity index 90% rename from calcasa-api/model/waardering_zoek_parameters.py rename to calcasa/api/model/waardering_zoek_parameters.py index c584d5e..e08e810 100644 --- a/calcasa-api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,13 +38,13 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError def lazy_import(): - from calcasa-api.model.aanvraagdoel import Aanvraagdoel - from calcasa-api.model.product_type import ProductType - from calcasa-api.model.waardering_status import WaarderingStatus + from calcasa.api.model.aanvraagdoel import Aanvraagdoel + from calcasa.api.model.product_type import ProductType + from calcasa.api.model.waardering_status import WaarderingStatus globals()['Aanvraagdoel'] = Aanvraagdoel globals()['ProductType'] = ProductType globals()['WaarderingStatus'] = WaarderingStatus @@ -170,7 +170,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -178,14 +178,18 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar 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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -267,14 +271,18 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model/woning_type.py b/calcasa/api/model/woning_type.py similarity index 92% rename from calcasa-api/model/woning_type.py rename to calcasa/api/model/woning_type.py index d02c528..2d92e8b 100644 --- a/calcasa-api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ import re # noqa: F401 import sys # noqa: F401 -from calcasa-api.model_utils import ( # noqa: F401 +from calcasa.api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -38,7 +38,7 @@ validate_get_composed_info, OpenApiModel ) -from calcasa-api.exceptions import ApiAttributeError +from calcasa.api.exceptions import ApiAttributeError @@ -181,14 +181,18 @@ def __init__(self, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 @@ -273,14 +277,18 @@ def _from_openapi_data(cls, *args, **kwargs): _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__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 diff --git a/calcasa-api/model_utils.py b/calcasa/api/model_utils.py similarity index 99% rename from calcasa-api/model_utils.py rename to calcasa/api/model_utils.py index 13818ba..5926a85 100644 --- a/calcasa-api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -28,10 +28,11 @@ import pprint import re import tempfile +import uuid from dateutil.parser import parse -from calcasa-api.exceptions import ( +from calcasa.api.exceptions import ( ApiKeyError, ApiAttributeError, ApiTypeError, @@ -204,7 +205,7 @@ def __copy__(self): if self.get("_spec_property_naming", False): return cls._new_from_openapi_data(**self.__dict__) else: - return new_cls.__new__(cls, **self.__dict__) + return cls.__new__(cls, **self.__dict__) def __deepcopy__(self, memo): cls = self.__class__ @@ -1411,7 +1412,13 @@ def deserialize_file(response_data, configuration, content_disposition=None): if content_disposition: filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) + content_disposition, + flags=re.I) + if filename is not None: + filename = filename.group(1) + else: + filename = "default_" + str(uuid.uuid4()) + path = os.path.join(os.path.dirname(path), filename) with open(path, "wb") as f: @@ -1576,7 +1583,9 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item, 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 (configuration + or (input_class_simple == dict + and not dict in valid_classes)): # if input_value is not valid_type try to convert it converted_instance = attempt_convert_item( input_value, diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py new file mode 100644 index 0000000..dd59ae6 --- /dev/null +++ b/calcasa/api/models/__init__.py @@ -0,0 +1,66 @@ +# 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.geldverstrekker import Geldverstrekker +from calcasa.api.model.http_validation_problem_details import HttpValidationProblemDetails +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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails +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 similarity index 99% rename from calcasa-api/rest.py rename to calcasa/api/rest.py index 6c40075..14663c2 100644 --- a/calcasa-api/rest.py +++ b/calcasa/api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ import urllib3 import ipaddress -from calcasa-api.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError +from calcasa.api.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError logger = logging.getLogger(__name__) diff --git a/setup.py b/setup.py index f51c9fd..5622e70 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.3 + The version of the OpenAPI document: 1.1.4 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.3" +VERSION = "1.1.4" # To install the library, run the following # # python setup.py install From 87a5c6e8ec7b054d011e29441a5a44fba8cf2e73 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Wed, 13 Apr 2022 11:37:59 +0200 Subject: [PATCH 09/20] Release 1.1.5 (2022-04-13) - Fix the schema for `Operation` `value` field for the benefit of the PHP and Python code generators, these will now correctly support any value type. --- README.md | 11 +++++++---- calcasa/api/__init__.py | 6 +++--- calcasa/api/api/adressen_api.py | 4 ++-- calcasa/api/api/bestemmingsplannen_api.py | 4 ++-- calcasa/api/api/bodem_api.py | 4 ++-- calcasa/api/api/buurt_api.py | 4 ++-- calcasa/api/api/configuratie_api.py | 4 ++-- calcasa/api/api/facturen_api.py | 4 ++-- calcasa/api/api/fotos_api.py | 4 ++-- calcasa/api/api/funderingen_api.py | 4 ++-- calcasa/api/api/geldverstrekkers_api.py | 4 ++-- calcasa/api/api/rapporten_api.py | 4 ++-- calcasa/api/api/waarderingen_api.py | 4 ++-- calcasa/api/api_client.py | 6 +++--- calcasa/api/configuration.py | 8 ++++---- calcasa/api/exceptions.py | 4 ++-- calcasa/api/model/aanvraagdoel.py | 4 ++-- calcasa/api/model/adres.py | 4 ++-- calcasa/api/model/adres_info.py | 4 ++-- calcasa/api/model/bestemmingsdata.py | 4 ++-- calcasa/api/model/bodem_status_type.py | 4 ++-- calcasa/api/model/bodemdata.py | 4 ++-- calcasa/api/model/business_rules_code.py | 4 ++-- calcasa/api/model/business_rules_problem_details.py | 4 ++-- calcasa/api/model/callback.py | 4 ++-- calcasa/api/model/cbs_indeling.py | 4 ++-- calcasa/api/model/energielabel.py | 4 ++-- calcasa/api/model/factuur.py | 4 ++-- calcasa/api/model/foto.py | 4 ++-- calcasa/api/model/fundering_data_bron.py | 4 ++-- calcasa/api/model/fundering_herstel_type.py | 4 ++-- calcasa/api/model/fundering_risico.py | 4 ++-- calcasa/api/model/fundering_risico_label.py | 4 ++-- calcasa/api/model/fundering_soort_bron.py | 4 ++-- calcasa/api/model/fundering_type.py | 4 ++-- calcasa/api/model/fundering_typering.py | 4 ++-- calcasa/api/model/funderingdata.py | 4 ++-- calcasa/api/model/gebiedsdata.py | 4 ++-- calcasa/api/model/geldverstrekker.py | 4 ++-- calcasa/api/model/http_validation_problem_details.py | 4 ++-- calcasa/api/model/invalid_argument_problem_details.py | 4 ++-- calcasa/api/model/json_patch_document.py | 4 ++-- calcasa/api/model/klantwaarde_type.py | 4 ++-- calcasa/api/model/kwartaal.py | 4 ++-- calcasa/api/model/modeldata.py | 4 ++-- calcasa/api/model/not_found_problem_details.py | 4 ++-- calcasa/api/model/notitie.py | 4 ++-- calcasa/api/model/notities.py | 4 ++-- calcasa/api/model/objectdata.py | 4 ++-- calcasa/api/model/omgevingsdata.py | 4 ++-- calcasa/api/model/operation.py | 10 +++++----- calcasa/api/model/operation_type.py | 4 ++-- .../api/model/permissions_denied_problem_details.py | 4 ++-- calcasa/api/model/problem_details.py | 4 ++-- calcasa/api/model/product_type.py | 4 ++-- calcasa/api/model/rapport.py | 4 ++-- calcasa/api/model/referentieobject.py | 4 ++-- .../api/model/resource_exhausted_problem_details.py | 4 ++-- calcasa/api/model/taxatiedata.py | 4 ++-- calcasa/api/model/taxatiestatus.py | 4 ++-- calcasa/api/model/validation_problem_details.py | 4 ++-- calcasa/api/model/verkoop_bijzonderheden.py | 4 ++-- calcasa/api/model/vorige_verkoop.py | 4 ++-- calcasa/api/model/waardering.py | 4 ++-- calcasa/api/model/waardering_input_parameters.py | 4 ++-- calcasa/api/model/waardering_ontwikkeling.py | 4 ++-- calcasa/api/model/waardering_ontwikkeling_kwartaal.py | 4 ++-- calcasa/api/model/waardering_status.py | 4 ++-- calcasa/api/model/waardering_webhook_payload.py | 4 ++-- calcasa/api/model/waardering_zoek_parameters.py | 4 ++-- calcasa/api/model/woning_type.py | 4 ++-- calcasa/api/model_utils.py | 4 ++-- calcasa/api/rest.py | 4 ++-- setup.py | 6 +++--- 74 files changed, 161 insertions(+), 158 deletions(-) diff --git a/README.md b/README.md index 74ebe3c..fb08baa 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,16 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-04-13 (v1.1.5) +- Fix the schema for `Operation` `value` field for the benefit of the PHP and Python code generators, these will now correctly support any value type. + ### 2022-04-12 (v1.1.4) - Added proper Content-Disposition headers to the `GET /v1/rapporten/{id}` and `GET /v1/facturen/{id}` endpoints with the correct filename. -- Fix Mime Types for the `GET /v1/configuratie/callbacks` and `POST /v1/configuratie/callbacks` endpoints to only be `application/json`. +- Fix Mime Types for the `POST /v1/configuratie/callbacks` endpoint to only accept `application/json`. - Fix C# API client to correctly use the `application/json-patch+json` content type in requests that require it. - Fix C# client's `FileParameter` type correct handling of response headers like `Content-Disposition` and `Content-Type`. - Removed C# client's useless implementation of `IValidatableObject`. -- Fix Python client's internal namespace name being illegal `calcasa-api` -> calcasa.api. +- Fix Python client's internal namespace name being illegal `calcasa-api` -> `calcasa.api`. ### 2022-03-22 (v1.1.3) - Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for `PATCH /v1/waarderingen/{id}`. @@ -124,8 +127,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.4 -- Package version: 1.1.4 +- API version: 1.1.5 +- Package version: 1.1.5 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index 3c4a218..fc31d42 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -1,7 +1,7 @@ # flake8: noqa """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.4" +__version__ = "1.1.5" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index b04fda7..cfcc90c 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index a6f56bf..fbdfdd6 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index fcf1971..e22b0b4 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 73b773a..c7b6ba0 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index 3be5646..241adad 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 4b417b7..2750c0a 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index 10bc149..fcf478b 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 1f1b239..354df22 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index fd44581..dc369c1 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index 06b27df..dec229e 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index bea928b..f393f6d 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 95119f4..367b615 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.4' + self.user_agent = 'Calcasa Python Api Client/1.1.5' def __enter__(self): return self diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 8b2774c..1b07274 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.4\n"\ - "SDK Package Version: 1.1.4".\ + "Version of the API: 1.1.5\n"\ + "SDK Package Version: 1.1.5".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index 1ae6abe..203976e 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index c9b1a67..95a42b5 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index 82ee361..45fabd2 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index 9cd8c9d..aaf3454 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index e491f32..da49473 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index f922913..70dcef6 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index 8090f87..cfab5cc 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index 3012a97..7e73477 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index 54b3b32..176b81f 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index 19d45da..5bbe27d 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py index d9d6743..725f859 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/energielabel.py b/calcasa/api/model/energielabel.py index 27e8827..a7967ac 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 25919d9..90c57f6 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index b1d0736..52aaf1c 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index e498882..2519b74 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index 341cb80..229b06e 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index 1dc37b7..27038e0 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index 7b43f19..0b60305 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index 0f58510..9d68735 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index 4669e47..e090ad7 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index 950112b..c0d8ade 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index ff11c27..46ff1ce 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index bc553ea..d1e42b0 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index 176a2f0..b8c36dd 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py index 7bc9a48..c64d78b 100644 --- a/calcasa/api/model/http_validation_problem_details.py +++ b/calcasa/api/model/http_validation_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index 8b07048..72f71b7 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index da83722..9330b61 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index d9c2266..5741771 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index b2470aa..d32e2c0 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index d00f9e9..c192eb8 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index aaf3fd8..627011b 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index 2a69763..6c5fd06 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index 21acdf7..d6a66d4 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index 4fb0c8a..5936cf5 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index fc02b3b..f1c646c 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index e34ee51..586d925 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -101,7 +101,7 @@ def openapi_types(): 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 + 'value': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'path': (str,), # noqa: E501 } @@ -160,7 +160,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _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 + value (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 path (str): [optional] # noqa: E501 """ @@ -249,7 +249,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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 + value (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 path (str): [optional] # noqa: E501 """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index 0090b52..e32d4d6 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index 2a78694..38e6b2c 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 4867051..3e1e609 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index 214a8ad..93e756a 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index 673c008..706229e 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index ef4c1a6..23c6c3a 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index ae8e767..e7f3a8b 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index 95d6a42..82a23b5 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index 15d86d9..1f534d3 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index 3a4a440..98561e0 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index 72db6a5..4ce76a5 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index b87f6ca..03c0279 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index 5763b87..6adcec1 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index 48fd8bb..2167bae 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index b5b5727..f5f763b 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index d7d9d3e..df504a7 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index a39d4a6..d23ddcf 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index c44d0b4..ba4d69a 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index e08e810..b0b25af 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index 2d92e8b..7d8f13d 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 5926a85..037ea7d 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index 14663c2..7b93f77 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 5622e70..22d46c2 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ """ - Copyright 2021 Calcasa B.V. + Copyright 2022 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.4 + The version of the OpenAPI document: 1.1.5 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.4" +VERSION = "1.1.5" # To install the library, run the following # # python setup.py install From ad57c299f5fa4432e07387f2f64252cb0b3f63fd Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 19 Apr 2022 14:17:30 +0200 Subject: [PATCH 10/20] Release 1.1.6 (2022-05-19) - Added `LtvTeHoogOverbrugging` value to the `BusinessRulesCode` enumeration. --- README.md | 7 +++++-- calcasa/api/__init__.py | 4 ++-- calcasa/api/api/adressen_api.py | 2 +- calcasa/api/api/bestemmingsplannen_api.py | 2 +- calcasa/api/api/bodem_api.py | 2 +- calcasa/api/api/buurt_api.py | 2 +- calcasa/api/api/configuratie_api.py | 2 +- calcasa/api/api/facturen_api.py | 2 +- calcasa/api/api/fotos_api.py | 2 +- calcasa/api/api/funderingen_api.py | 2 +- calcasa/api/api/geldverstrekkers_api.py | 2 +- calcasa/api/api/rapporten_api.py | 2 +- calcasa/api/api/waarderingen_api.py | 2 +- calcasa/api/api_client.py | 4 ++-- calcasa/api/configuration.py | 6 +++--- calcasa/api/exceptions.py | 2 +- calcasa/api/model/aanvraagdoel.py | 2 +- calcasa/api/model/adres.py | 2 +- calcasa/api/model/adres_info.py | 2 +- calcasa/api/model/bestemmingsdata.py | 2 +- calcasa/api/model/bodem_status_type.py | 2 +- calcasa/api/model/bodemdata.py | 2 +- calcasa/api/model/business_rules_code.py | 11 ++++++----- calcasa/api/model/business_rules_problem_details.py | 2 +- calcasa/api/model/callback.py | 2 +- calcasa/api/model/cbs_indeling.py | 2 +- calcasa/api/model/energielabel.py | 2 +- calcasa/api/model/factuur.py | 2 +- calcasa/api/model/foto.py | 2 +- calcasa/api/model/fundering_data_bron.py | 2 +- calcasa/api/model/fundering_herstel_type.py | 2 +- calcasa/api/model/fundering_risico.py | 2 +- calcasa/api/model/fundering_risico_label.py | 2 +- calcasa/api/model/fundering_soort_bron.py | 2 +- calcasa/api/model/fundering_type.py | 2 +- calcasa/api/model/fundering_typering.py | 2 +- calcasa/api/model/funderingdata.py | 2 +- calcasa/api/model/gebiedsdata.py | 2 +- calcasa/api/model/geldverstrekker.py | 2 +- calcasa/api/model/http_validation_problem_details.py | 2 +- calcasa/api/model/invalid_argument_problem_details.py | 2 +- calcasa/api/model/json_patch_document.py | 2 +- calcasa/api/model/klantwaarde_type.py | 2 +- calcasa/api/model/kwartaal.py | 2 +- calcasa/api/model/modeldata.py | 2 +- calcasa/api/model/not_found_problem_details.py | 2 +- calcasa/api/model/notitie.py | 2 +- calcasa/api/model/notities.py | 2 +- calcasa/api/model/objectdata.py | 2 +- calcasa/api/model/omgevingsdata.py | 2 +- calcasa/api/model/operation.py | 2 +- calcasa/api/model/operation_type.py | 2 +- .../api/model/permissions_denied_problem_details.py | 2 +- calcasa/api/model/problem_details.py | 2 +- calcasa/api/model/product_type.py | 2 +- calcasa/api/model/rapport.py | 2 +- calcasa/api/model/referentieobject.py | 2 +- .../api/model/resource_exhausted_problem_details.py | 2 +- calcasa/api/model/taxatiedata.py | 2 +- calcasa/api/model/taxatiestatus.py | 2 +- calcasa/api/model/validation_problem_details.py | 2 +- calcasa/api/model/verkoop_bijzonderheden.py | 2 +- calcasa/api/model/vorige_verkoop.py | 2 +- calcasa/api/model/waardering.py | 2 +- calcasa/api/model/waardering_input_parameters.py | 2 +- calcasa/api/model/waardering_ontwikkeling.py | 2 +- calcasa/api/model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa/api/model/waardering_status.py | 2 +- calcasa/api/model/waardering_webhook_payload.py | 2 +- calcasa/api/model/waardering_zoek_parameters.py | 2 +- calcasa/api/model/woning_type.py | 2 +- calcasa/api/model_utils.py | 2 +- calcasa/api/rest.py | 2 +- setup.py | 4 ++-- 74 files changed, 88 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index fb08baa..c69a520 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-05-19 (v1.1.6) +- Added `LtvTeHoogOverbrugging` value to the `BusinessRulesCode` enumeration. + ### 2022-04-13 (v1.1.5) - Fix the schema for `Operation` `value` field for the benefit of the PHP and Python code generators, these will now correctly support any value type. @@ -127,8 +130,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.5 -- Package version: 1.1.5 +- API version: 1.1.6 +- Package version: 1.1.6 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index fc31d42..d97d7ab 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.5" +__version__ = "1.1.6" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index cfcc90c..d1cef15 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index fbdfdd6..aa954b1 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index e22b0b4..2465700 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index c7b6ba0..6a7d1c6 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index 241adad..8c57d5a 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 2750c0a..3e7a240 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index fcf478b..87b8fc3 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 354df22..8b47183 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index dc369c1..a7fce1a 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index dec229e..f4a8c3f 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index f393f6d..efd92f7 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 367b615..bbd0076 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.5' + self.user_agent = 'Calcasa Python Api Client/1.1.6' def __enter__(self): return self diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 1b07274..aa8e9e7 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.5\n"\ - "SDK Package Version: 1.1.5".\ + "Version of the API: 1.1.6\n"\ + "SDK Package Version: 1.1.6".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index 203976e..18943f2 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index 95a42b5..e8a6575 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index 45fabd2..1341520 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index aaf3454..c50c726 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index da49473..1fe632b 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index 70dcef6..8447a4f 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index cfab5cc..2428625 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index 7e73477..1608369 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -74,6 +74,7 @@ class BusinessRulesCode(ModelSimple): 'CALCASAWAARDETELAAG': "calcasaWaardeTeLaag", 'CALCASAWAARDETEHOOGVOORNHG': "calcasaWaardeTeHoogVoorNhg", 'CALCASAWAARDEENKOOPSOMTEHOOGVOORNHG': "calcasaWaardeEnKoopsomTeHoogVoorNhg", + 'LTVTEHOOGOVERBRUGGING': "ltvTeHoogOverbrugging", }, } @@ -125,10 +126,10 @@ def __init__(self, *args, **kwargs): 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 + 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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 + 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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. @@ -219,10 +220,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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 + 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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. diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index 176b81f..24e8c30 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index 5bbe27d..10f0071 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py index 725f859..da2a75a 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/energielabel.py b/calcasa/api/model/energielabel.py index a7967ac..43dfcb9 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 90c57f6..9d4614c 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index 52aaf1c..7f370e9 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index 2519b74..6582fdb 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index 229b06e..99b1f92 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index 27038e0..8d08d58 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index 0b60305..dc819a6 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index 9d68735..0df951d 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index e090ad7..f19f4dc 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index c0d8ade..10226dc 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index 46ff1ce..1e8c01b 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index d1e42b0..449fcd6 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index b8c36dd..035841b 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py index c64d78b..5e4d040 100644 --- a/calcasa/api/model/http_validation_problem_details.py +++ b/calcasa/api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index 72f71b7..90fff51 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index 9330b61..8057a3c 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index 5741771..87d6258 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index d32e2c0..654491b 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index c192eb8..a4a960d 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index 627011b..195a5b9 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index 6c5fd06..e14f83d 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index d6a66d4..b4d5f58 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index 5936cf5..81c4114 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index f1c646c..bdb4a7b 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index 586d925..ab5fb2f 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index e32d4d6..d950b16 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index 38e6b2c..80cc0e4 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 3e1e609..0283dd0 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index 93e756a..e2a29e2 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index 706229e..b06174c 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index 23c6c3a..9c6bbfa 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index e7f3a8b..fbedd2c 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index 82a23b5..d4d5f02 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index 1f534d3..3b3fc0d 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index 98561e0..19c9999 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index 4ce76a5..e7ec579 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index 03c0279..567b02a 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index 6adcec1..bee1e9d 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index 2167bae..254c457 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index f5f763b..bbf80fc 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index df504a7..a96bd2a 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index d23ddcf..e1ba912 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index ba4d69a..bb17c95 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index b0b25af..f6e5e4b 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index 7d8f13d..1657c97 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 037ea7d..6160e80 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index 7b93f77..d876461 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 22d46c2..d87c968 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.5 + The version of the OpenAPI document: 1.1.6 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.5" +VERSION = "1.1.6" # To install the library, run the following # # python setup.py install From 54e11d1ec8c6b6c69423c6420c23fd87bb8363c2 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Fri, 15 Jul 2022 15:36:11 +0200 Subject: [PATCH 11/20] Release 1.1.7 (2022-07-12) - Added support for the OAuth 2.0 authorization code flow for use of the API with user accounts. - Add `Bouweenheid` to `FunderingSoortBron` enumeration. --- README.md | 70 +++- calcasa/api/__init__.py | 4 +- calcasa/api/api/adressen_api.py | 4 +- calcasa/api/api/bestemmingsplannen_api.py | 3 +- calcasa/api/api/bodem_api.py | 3 +- calcasa/api/api/buurt_api.py | 3 +- calcasa/api/api/configuratie_api.py | 4 +- calcasa/api/api/facturen_api.py | 3 +- calcasa/api/api/fotos_api.py | 3 +- calcasa/api/api/funderingen_api.py | 3 +- calcasa/api/api/geldverstrekkers_api.py | 3 +- calcasa/api/api/rapporten_api.py | 3 +- calcasa/api/api/waarderingen_api.py | 7 +- calcasa/api/api_client.py | 41 +- calcasa/api/configuration.py | 13 +- calcasa/api/exceptions.py | 3 +- calcasa/api/model/aanvraagdoel.py | 2 +- calcasa/api/model/adres.py | 2 +- calcasa/api/model/adres_info.py | 22 +- calcasa/api/model/adres_info_adres.py | 347 ++++++++++++++++ calcasa/api/model/adres_info_notities.py | 349 ++++++++++++++++ calcasa/api/model/bestemmingsdata.py | 2 +- calcasa/api/model/bodem_status_type.py | 2 +- calcasa/api/model/bodemdata.py | 2 +- calcasa/api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa/api/model/callback.py | 2 +- calcasa/api/model/cbs_indeling.py | 2 +- calcasa/api/model/energielabel.py | 2 +- calcasa/api/model/factuur.py | 2 +- calcasa/api/model/foto.py | 2 +- calcasa/api/model/fundering_data_bron.py | 2 +- calcasa/api/model/fundering_herstel_type.py | 2 +- calcasa/api/model/fundering_risico.py | 2 +- calcasa/api/model/fundering_risico_label.py | 2 +- calcasa/api/model/fundering_soort_bron.py | 11 +- calcasa/api/model/fundering_type.py | 2 +- calcasa/api/model/fundering_typering.py | 2 +- calcasa/api/model/funderingdata.py | 38 +- .../funderingdata_bio_infectie_risico.py | 343 ++++++++++++++++ .../model/funderingdata_droogstand_risico.py | 343 ++++++++++++++++ .../funderingdata_optrekkend_vocht_risico.py | 343 ++++++++++++++++ calcasa/api/model/funderingdata_typering.py | 343 ++++++++++++++++ calcasa/api/model/gebiedsdata.py | 2 +- calcasa/api/model/geldverstrekker.py | 2 +- .../model/http_validation_problem_details.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa/api/model/json_patch_document.py | 2 +- calcasa/api/model/klantwaarde_type.py | 2 +- calcasa/api/model/kwartaal.py | 2 +- calcasa/api/model/modeldata.py | 2 +- .../api/model/not_found_problem_details.py | 2 +- calcasa/api/model/notitie.py | 2 +- calcasa/api/model/notities.py | 2 +- calcasa/api/model/objectdata.py | 2 +- calcasa/api/model/omgevingsdata.py | 44 +- calcasa/api/model/omgevingsdata_buurt.py | 363 +++++++++++++++++ calcasa/api/model/omgevingsdata_gemeente.py | 363 +++++++++++++++++ calcasa/api/model/omgevingsdata_land.py | 363 +++++++++++++++++ calcasa/api/model/omgevingsdata_provincie.py | 363 +++++++++++++++++ calcasa/api/model/omgevingsdata_wijk.py | 363 +++++++++++++++++ calcasa/api/model/operation.py | 2 +- calcasa/api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa/api/model/problem_details.py | 2 +- calcasa/api/model/product_type.py | 2 +- calcasa/api/model/rapport.py | 2 +- calcasa/api/model/referentieobject.py | 32 +- calcasa/api/model/referentieobject_adres.py | 347 ++++++++++++++++ .../model/referentieobject_cbs_indeling.py | 343 ++++++++++++++++ calcasa/api/model/referentieobject_object.py | 355 ++++++++++++++++ .../resource_exhausted_problem_details.py | 2 +- calcasa/api/model/taxatiedata.py | 2 +- calcasa/api/model/taxatiestatus.py | 2 +- .../api/model/validation_problem_details.py | 2 +- calcasa/api/model/verkoop_bijzonderheden.py | 2 +- calcasa/api/model/vorige_verkoop.py | 2 +- calcasa/api/model/waardering.py | 82 ++-- calcasa/api/model/waardering_cbs_indeling.py | 343 ++++++++++++++++ calcasa/api/model/waardering_factuur.py | 335 +++++++++++++++ .../api/model/waardering_input_parameters.py | 2 +- calcasa/api/model/waardering_model.py | 351 ++++++++++++++++ calcasa/api/model/waardering_object.py | 355 ++++++++++++++++ calcasa/api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 12 +- ...ardering_ontwikkeling_kwartaal_kwartaal.py | 335 +++++++++++++++ .../api/model/waardering_originele_input.py | 385 ++++++++++++++++++ calcasa/api/model/waardering_rapport.py | 331 +++++++++++++++ calcasa/api/model/waardering_status.py | 2 +- calcasa/api/model/waardering_taxatie.py | 341 ++++++++++++++++ .../api/model/waardering_webhook_payload.py | 2 +- .../api/model/waardering_zoek_parameters.py | 2 +- calcasa/api/model/woning_type.py | 2 +- calcasa/api/model_utils.py | 108 ++--- calcasa/api/models/__init__.py | 22 + calcasa/api/rest.py | 28 +- setup.py | 4 +- 97 files changed, 8114 insertions(+), 259 deletions(-) create mode 100644 calcasa/api/model/adres_info_adres.py create mode 100644 calcasa/api/model/adres_info_notities.py create mode 100644 calcasa/api/model/funderingdata_bio_infectie_risico.py create mode 100644 calcasa/api/model/funderingdata_droogstand_risico.py create mode 100644 calcasa/api/model/funderingdata_optrekkend_vocht_risico.py create mode 100644 calcasa/api/model/funderingdata_typering.py create mode 100644 calcasa/api/model/omgevingsdata_buurt.py create mode 100644 calcasa/api/model/omgevingsdata_gemeente.py create mode 100644 calcasa/api/model/omgevingsdata_land.py create mode 100644 calcasa/api/model/omgevingsdata_provincie.py create mode 100644 calcasa/api/model/omgevingsdata_wijk.py create mode 100644 calcasa/api/model/referentieobject_adres.py create mode 100644 calcasa/api/model/referentieobject_cbs_indeling.py create mode 100644 calcasa/api/model/referentieobject_object.py create mode 100644 calcasa/api/model/waardering_cbs_indeling.py create mode 100644 calcasa/api/model/waardering_factuur.py create mode 100644 calcasa/api/model/waardering_model.py create mode 100644 calcasa/api/model/waardering_object.py create mode 100644 calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py create mode 100644 calcasa/api/model/waardering_originele_input.py create mode 100644 calcasa/api/model/waardering_rapport.py create mode 100644 calcasa/api/model/waardering_taxatie.py diff --git a/README.md b/README.md index c69a520..bd5b300 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-07-12 (v1.1.7) +- Added support for the OAuth 2.0 authorization code flow for use of the API with user accounts. +- Add `Bouweenheid` to `FunderingSoortBron` enumeration. + ### 2022-05-19 (v1.1.6) - Added `LtvTeHoogOverbrugging` value to the `BusinessRulesCode` enumeration. @@ -130,8 +134,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.6 -- Package version: 1.1.6 +- API version: 1.1.7 +- Package version: 1.1.7 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -200,6 +204,12 @@ configuration = calcasa.api.Configuration( ) configuration.access_token = 'YOUR_ACCESS_TOKEN' +# Configure OAuth2 access token for authorization: oauth +configuration = calcasa.api.Configuration( + host = "https://api.calcasa.nl" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + # Enter a context with an instance of the API client with calcasa.api.ApiClient(configuration) as api_client: @@ -245,6 +255,8 @@ Class | Method | HTTP request | Description - [Aanvraagdoel](docs/Aanvraagdoel.md) - [Adres](docs/Adres.md) - [AdresInfo](docs/AdresInfo.md) + - [AdresInfoAdres](docs/AdresInfoAdres.md) + - [AdresInfoNotities](docs/AdresInfoNotities.md) - [Bestemmingsdata](docs/Bestemmingsdata.md) - [BodemStatusType](docs/BodemStatusType.md) - [Bodemdata](docs/Bodemdata.md) @@ -263,6 +275,10 @@ Class | Method | HTTP request | Description - [FunderingType](docs/FunderingType.md) - [FunderingTypering](docs/FunderingTypering.md) - [Funderingdata](docs/Funderingdata.md) + - [FunderingdataBioInfectieRisico](docs/FunderingdataBioInfectieRisico.md) + - [FunderingdataDroogstandRisico](docs/FunderingdataDroogstandRisico.md) + - [FunderingdataOptrekkendVochtRisico](docs/FunderingdataOptrekkendVochtRisico.md) + - [FunderingdataTypering](docs/FunderingdataTypering.md) - [Gebiedsdata](docs/Gebiedsdata.md) - [Geldverstrekker](docs/Geldverstrekker.md) - [HttpValidationProblemDetails](docs/HttpValidationProblemDetails.md) @@ -276,6 +292,11 @@ Class | Method | HTTP request | Description - [Notities](docs/Notities.md) - [Objectdata](docs/Objectdata.md) - [Omgevingsdata](docs/Omgevingsdata.md) + - [OmgevingsdataBuurt](docs/OmgevingsdataBuurt.md) + - [OmgevingsdataGemeente](docs/OmgevingsdataGemeente.md) + - [OmgevingsdataLand](docs/OmgevingsdataLand.md) + - [OmgevingsdataProvincie](docs/OmgevingsdataProvincie.md) + - [OmgevingsdataWijk](docs/OmgevingsdataWijk.md) - [Operation](docs/Operation.md) - [OperationType](docs/OperationType.md) - [PermissionsDeniedProblemDetails](docs/PermissionsDeniedProblemDetails.md) @@ -283,6 +304,9 @@ Class | Method | HTTP request | Description - [ProductType](docs/ProductType.md) - [Rapport](docs/Rapport.md) - [Referentieobject](docs/Referentieobject.md) + - [ReferentieobjectAdres](docs/ReferentieobjectAdres.md) + - [ReferentieobjectCbsIndeling](docs/ReferentieobjectCbsIndeling.md) + - [ReferentieobjectObject](docs/ReferentieobjectObject.md) - [ResourceExhaustedProblemDetails](docs/ResourceExhaustedProblemDetails.md) - [Taxatiedata](docs/Taxatiedata.md) - [Taxatiestatus](docs/Taxatiestatus.md) @@ -290,10 +314,18 @@ Class | Method | HTTP request | Description - [VerkoopBijzonderheden](docs/VerkoopBijzonderheden.md) - [VorigeVerkoop](docs/VorigeVerkoop.md) - [Waardering](docs/Waardering.md) + - [WaarderingCbsIndeling](docs/WaarderingCbsIndeling.md) + - [WaarderingFactuur](docs/WaarderingFactuur.md) - [WaarderingInputParameters](docs/WaarderingInputParameters.md) + - [WaarderingModel](docs/WaarderingModel.md) + - [WaarderingObject](docs/WaarderingObject.md) - [WaarderingOntwikkeling](docs/WaarderingOntwikkeling.md) - [WaarderingOntwikkelingKwartaal](docs/WaarderingOntwikkelingKwartaal.md) + - [WaarderingOntwikkelingKwartaalKwartaal](docs/WaarderingOntwikkelingKwartaalKwartaal.md) + - [WaarderingOrigineleInput](docs/WaarderingOrigineleInput.md) + - [WaarderingRapport](docs/WaarderingRapport.md) - [WaarderingStatus](docs/WaarderingStatus.md) + - [WaarderingTaxatie](docs/WaarderingTaxatie.md) - [WaarderingWebhookPayload](docs/WaarderingWebhookPayload.md) - [WaarderingZoekParameters](docs/WaarderingZoekParameters.md) - [WoningType](docs/WoningType.md) @@ -336,6 +368,40 @@ Class | Method | HTTP request | Description - **api:waarderingen:ontwikkeling**: Read permissions for the ontwikkelingen endpoint in the waarderingen area of the public API. +## oauth + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: https://authentication.calcasa.nl/oauth2/v2.0/authorize +- **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:geldverstrekkers:read**: Read permissions for the geldverstrekkers 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. + + ## Author info@calcasa.nl diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index d97d7ab..25f1344 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.6" +__version__ = "1.1.7" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index d1cef15..14a693e 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -55,6 +55,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (AdresInfo,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/adressen/{bagNummeraanduidingId}', @@ -107,6 +108,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (AdresInfo,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/adressen/zoeken', diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index aa954b1..6e80a67 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,6 +54,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Bestemmingsdata,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/bestemmingsplannen/{bagNummeraanduidingId}', diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index 2465700..faeb123 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,6 +54,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Bodemdata,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/bodem/{bagNummeraanduidingId}', diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 6a7d1c6..b8b57ef 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,6 +54,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Omgevingsdata,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/buurt/{buurtId}', diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index 8c57d5a..d685044 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,6 +54,7 @@ def __init__(self, api_client=None): settings={ 'response_type': ([Callback],), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/configuratie/callbacks', @@ -99,6 +100,7 @@ def __init__(self, api_client=None): settings={ 'response_type': ([Callback],), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/configuratie/callbacks', diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 3e7a240..c6e160b 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -53,6 +53,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (file_type,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/facturen/{id}', diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index 87b8fc3..d467486 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -53,6 +53,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (file_type,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/fotos/{id}', diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 8b47183..038954d 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,6 +54,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Funderingdata,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/funderingen/{bagNummeraanduidingId}', diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index a7fce1a..643b5f4 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -53,6 +53,7 @@ def __init__(self, api_client=None): settings={ 'response_type': ([Geldverstrekker],), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/geldverstrekkers/{productType}', diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index f4a8c3f..261a6fc 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -53,6 +53,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (file_type,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/rapporten/{id}', diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index efd92f7..8834c22 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -62,6 +62,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Waardering,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/waarderingen', @@ -113,6 +114,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Waardering,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/waarderingen/{id}', @@ -165,6 +167,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (WaarderingOntwikkeling,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/waarderingen/{id}/ontwikkeling', @@ -217,6 +220,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (Waardering,), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/waarderingen/{id}', @@ -275,6 +279,7 @@ def __init__(self, api_client=None): settings={ 'response_type': ([Waardering],), 'auth': [ + 'oauth', 'oauth' ], 'endpoint_path': '/api/v1/waarderingen/zoeken', diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index bbd0076..d9bdf58 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.6' + self.user_agent = 'Calcasa Python Api Client/1.1.7' def __enter__(self): return self @@ -187,7 +187,7 @@ def __call_api( post_params.extend(self.files_parameters(files)) if header_params['Content-Type'].startswith("multipart"): post_params = self.parameters_to_multipart(post_params, - (dict) ) + (dict)) # body if body: @@ -260,13 +260,14 @@ def parameters_to_multipart(self, params, collection_types): 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) + 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)) + new_params.append((k, v)) return new_params @classmethod @@ -285,8 +286,10 @@ def sanitize_for_serialization(cls, obj): """ if isinstance(obj, (ModelNormal, ModelComposed)): return { - key: cls.sanitize_for_serialization(val) for key, val in model_to_dict(obj, serialize=True).items() - } + 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)): @@ -299,7 +302,9 @@ def sanitize_for_serialization(cls, obj): 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__)) + 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. @@ -543,7 +548,9 @@ def get_file_data_and_close_file(file_instance: io.IOBase) -> bytes: file_instance.close() return file_data - def files_parameters(self, files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None): + 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 @@ -634,17 +641,19 @@ def update_params_for_auth(self, headers, queries, auth_settings, if request_auths: for auth_setting in request_auths: - self._apply_auth_params(headers, queries, resource_path, method, body, auth_setting) + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting) return 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) + 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): if auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] + headers['Cookie'] = auth_setting['key'] + "=" + auth_setting['value'] elif auth_setting['in'] == 'header': if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value'] diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index aa8e9e7..300fe89 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -382,6 +382,13 @@ def auth_settings(self): :return: The Auth Settings information dict. """ auth = {} + if self.access_token is not None: + auth['oauth'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } if self.access_token is not None: auth['oauth'] = { 'type': 'oauth2', @@ -399,8 +406,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.6\n"\ - "SDK Package Version: 1.1.6".\ + "Version of the API: 1.1.7\n"\ + "SDK Package Version: 1.1.7".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index 18943f2..4f8d967 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -15,12 +15,11 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ - class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index e8a6575..ff4266e 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index 1341520..81ccbf9 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index c50c726..48bc32a 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,10 +42,10 @@ def lazy_import(): - from calcasa.api.model.adres import Adres - from calcasa.api.model.notities import Notities - globals()['Adres'] = Adres - globals()['Notities'] = Notities + from calcasa.api.model.adres_info_adres import AdresInfoAdres + from calcasa.api.model.adres_info_notities import AdresInfoNotities + globals()['AdresInfoAdres'] = AdresInfoAdres + globals()['AdresInfoNotities'] = AdresInfoNotities class AdresInfo(ModelNormal): @@ -95,8 +95,8 @@ def openapi_types(): lazy_import() 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': (AdresInfoAdres,), # noqa: E501 + 'notities': (AdresInfoNotities,), # noqa: E501 'adres_gevonden': (bool, none_type,), # noqa: E501 } @@ -154,8 +154,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 (AdresInfoAdres): [optional] # noqa: E501 + notities (AdresInfoNotities): [optional] # noqa: E501 adres_gevonden (bool, none_type): Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.. [optional] # noqa: E501 """ @@ -243,8 +243,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 (AdresInfoAdres): [optional] # noqa: E501 + notities (AdresInfoNotities): [optional] # noqa: E501 adres_gevonden (bool, none_type): Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/adres_info_adres.py b/calcasa/api/model/adres_info_adres.py new file mode 100644 index 0000000..f2a16d4 --- /dev/null +++ b/calcasa/api/model/adres_info_adres.py @@ -0,0 +1,347 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.adres import Adres + globals()['Adres'] = Adres + + +class AdresInfoAdres(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdresInfoAdres - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """AdresInfoAdres - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Adres, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/adres_info_notities.py b/calcasa/api/model/adres_info_notities.py new file mode 100644 index 0000000..dfc86e6 --- /dev/null +++ b/calcasa/api/model/adres_info_notities.py @@ -0,0 +1,349 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.notitie import Notitie + from calcasa.api.model.notities import Notities + globals()['Notitie'] = Notitie + globals()['Notities'] = Notities + + +class AdresInfoNotities(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdresInfoNotities - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """AdresInfoNotities - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Notities, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index 1fe632b..f2f8402 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index 8447a4f..56b7d52 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index 2428625..d2234e9 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index 1608369..aa92fb4 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index 24e8c30..32cedb8 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index 10f0071..938323b 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py index da2a75a..86366ca 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/energielabel.py b/calcasa/api/model/energielabel.py index 43dfcb9..756559d 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 9d4614c..79c5dfd 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index 7f370e9..d2517b8 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index 6582fdb..09cce42 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index 99b1f92..07f30af 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index 8d08d58..80a7790 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index dc819a6..09a9f93 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index 0df951d..f6bc592 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -67,6 +67,7 @@ class FunderingSoortBron(ModelSimple): 'ONBEKEND': "onbekend", 'MODEL': "model", 'DOCUMENT': "document", + 'BOUWEENHEID': "bouweenheid", }, } @@ -118,10 +119,10 @@ def __init__(self, *args, **kwargs): 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 + args[0] (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # 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 + value (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # 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. @@ -212,10 +213,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + args[0] (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # 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 + value (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # 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. diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index f19f4dc..d2999c0 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index 10226dc..efbbfdc 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index 1e8c01b..70b2c8e 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -44,12 +44,16 @@ def lazy_import(): 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_typering import FunderingTypering + from calcasa.api.model.funderingdata_bio_infectie_risico import FunderingdataBioInfectieRisico + from calcasa.api.model.funderingdata_droogstand_risico import FunderingdataDroogstandRisico + from calcasa.api.model.funderingdata_optrekkend_vocht_risico import FunderingdataOptrekkendVochtRisico + from calcasa.api.model.funderingdata_typering import FunderingdataTypering globals()['FunderingDataBron'] = FunderingDataBron globals()['FunderingHerstelType'] = FunderingHerstelType - globals()['FunderingRisico'] = FunderingRisico - globals()['FunderingTypering'] = FunderingTypering + globals()['FunderingdataBioInfectieRisico'] = FunderingdataBioInfectieRisico + globals()['FunderingdataDroogstandRisico'] = FunderingdataDroogstandRisico + globals()['FunderingdataOptrekkendVochtRisico'] = FunderingdataOptrekkendVochtRisico + globals()['FunderingdataTypering'] = FunderingdataTypering class Funderingdata(ModelNormal): @@ -98,11 +102,11 @@ def openapi_types(): """ lazy_import() return { - 'typering': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'typering': (FunderingdataTypering,), # 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 + 'droogstand_risico': (FunderingdataDroogstandRisico,), # noqa: E501 + 'optrekkend_vocht_risico': (FunderingdataOptrekkendVochtRisico,), # noqa: E501 + 'bio_infectie_risico': (FunderingdataBioInfectieRisico,), # noqa: E501 'herstelkosten': (float, none_type,), # noqa: E501 'bron': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 } @@ -163,11 +167,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + typering (FunderingdataTypering): [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 + droogstand_risico (FunderingdataDroogstandRisico): [optional] # noqa: E501 + optrekkend_vocht_risico (FunderingdataOptrekkendVochtRisico): [optional] # noqa: E501 + bio_infectie_risico (FunderingdataBioInfectieRisico): [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 """ @@ -255,11 +259,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + typering (FunderingdataTypering): [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 + droogstand_risico (FunderingdataDroogstandRisico): [optional] # noqa: E501 + optrekkend_vocht_risico (FunderingdataOptrekkendVochtRisico): [optional] # noqa: E501 + bio_infectie_risico (FunderingdataBioInfectieRisico): [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 """ diff --git a/calcasa/api/model/funderingdata_bio_infectie_risico.py b/calcasa/api/model/funderingdata_bio_infectie_risico.py new file mode 100644 index 0000000..7e3192b --- /dev/null +++ b/calcasa/api/model/funderingdata_bio_infectie_risico.py @@ -0,0 +1,343 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + 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 + globals()['FunderingRisico'] = FunderingRisico + globals()['FunderingRisicoLabel'] = FunderingRisicoLabel + globals()['FunderingSoortBron'] = FunderingSoortBron + + +class FunderingdataBioInfectieRisico(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """FunderingdataBioInfectieRisico - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """FunderingdataBioInfectieRisico - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + FunderingRisico, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/funderingdata_droogstand_risico.py b/calcasa/api/model/funderingdata_droogstand_risico.py new file mode 100644 index 0000000..fc47742 --- /dev/null +++ b/calcasa/api/model/funderingdata_droogstand_risico.py @@ -0,0 +1,343 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + 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 + globals()['FunderingRisico'] = FunderingRisico + globals()['FunderingRisicoLabel'] = FunderingRisicoLabel + globals()['FunderingSoortBron'] = FunderingSoortBron + + +class FunderingdataDroogstandRisico(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """FunderingdataDroogstandRisico - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """FunderingdataDroogstandRisico - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + FunderingRisico, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py new file mode 100644 index 0000000..7aa8d4d --- /dev/null +++ b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py @@ -0,0 +1,343 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + 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 + globals()['FunderingRisico'] = FunderingRisico + globals()['FunderingRisicoLabel'] = FunderingRisicoLabel + globals()['FunderingSoortBron'] = FunderingSoortBron + + +class FunderingdataOptrekkendVochtRisico(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """FunderingdataOptrekkendVochtRisico - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """FunderingdataOptrekkendVochtRisico - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + FunderingRisico, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/funderingdata_typering.py b/calcasa/api/model/funderingdata_typering.py new file mode 100644 index 0000000..7e3ca4d --- /dev/null +++ b/calcasa/api/model/funderingdata_typering.py @@ -0,0 +1,343 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + 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 + globals()['FunderingSoortBron'] = FunderingSoortBron + globals()['FunderingType'] = FunderingType + globals()['FunderingTypering'] = FunderingTypering + + +class FunderingdataTypering(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """FunderingdataTypering - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """FunderingdataTypering - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + FunderingTypering, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index 449fcd6..4eb31a6 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index 035841b..28ecdfb 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py index 5e4d040..94ce39f 100644 --- a/calcasa/api/model/http_validation_problem_details.py +++ b/calcasa/api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index 90fff51..2f403ba 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index 8057a3c..55088aa 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index 87d6258..830882d 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index 654491b..0500dce 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index a4a960d..34ff8ab 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index 195a5b9..138be28 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index e14f83d..6bb19f5 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index b4d5f58..de9af92 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index 81c4114..c8e0e30 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index bdb4a7b..f5dffdd 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,8 +42,16 @@ def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata + from calcasa.api.model.omgevingsdata_buurt import OmgevingsdataBuurt + from calcasa.api.model.omgevingsdata_gemeente import OmgevingsdataGemeente + from calcasa.api.model.omgevingsdata_land import OmgevingsdataLand + from calcasa.api.model.omgevingsdata_provincie import OmgevingsdataProvincie + from calcasa.api.model.omgevingsdata_wijk import OmgevingsdataWijk + globals()['OmgevingsdataBuurt'] = OmgevingsdataBuurt + globals()['OmgevingsdataGemeente'] = OmgevingsdataGemeente + globals()['OmgevingsdataLand'] = OmgevingsdataLand + globals()['OmgevingsdataProvincie'] = OmgevingsdataProvincie + globals()['OmgevingsdataWijk'] = OmgevingsdataWijk class Omgevingsdata(ModelNormal): @@ -92,11 +100,11 @@ def openapi_types(): """ lazy_import() 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 + 'buurt': (OmgevingsdataBuurt,), # noqa: E501 + 'wijk': (OmgevingsdataWijk,), # noqa: E501 + 'gemeente': (OmgevingsdataGemeente,), # noqa: E501 + 'provincie': (OmgevingsdataProvincie,), # noqa: E501 + 'land': (OmgevingsdataLand,), # noqa: E501 } @cached_property @@ -153,11 +161,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + buurt (OmgevingsdataBuurt): [optional] # noqa: E501 + wijk (OmgevingsdataWijk): [optional] # noqa: E501 + gemeente (OmgevingsdataGemeente): [optional] # noqa: E501 + provincie (OmgevingsdataProvincie): [optional] # noqa: E501 + land (OmgevingsdataLand): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,11 +251,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + buurt (OmgevingsdataBuurt): [optional] # noqa: E501 + wijk (OmgevingsdataWijk): [optional] # noqa: E501 + gemeente (OmgevingsdataGemeente): [optional] # noqa: E501 + provincie (OmgevingsdataProvincie): [optional] # noqa: E501 + land (OmgevingsdataLand): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/omgevingsdata_buurt.py b/calcasa/api/model/omgevingsdata_buurt.py new file mode 100644 index 0000000..933e35e --- /dev/null +++ b/calcasa/api/model/omgevingsdata_buurt.py @@ -0,0 +1,363 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata + + +class OmgevingsdataBuurt(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OmgevingsdataBuurt - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """OmgevingsdataBuurt - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Gebiedsdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/omgevingsdata_gemeente.py b/calcasa/api/model/omgevingsdata_gemeente.py new file mode 100644 index 0000000..1667aaa --- /dev/null +++ b/calcasa/api/model/omgevingsdata_gemeente.py @@ -0,0 +1,363 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata + + +class OmgevingsdataGemeente(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OmgevingsdataGemeente - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """OmgevingsdataGemeente - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Gebiedsdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/omgevingsdata_land.py b/calcasa/api/model/omgevingsdata_land.py new file mode 100644 index 0000000..a66c5f0 --- /dev/null +++ b/calcasa/api/model/omgevingsdata_land.py @@ -0,0 +1,363 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata + + +class OmgevingsdataLand(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OmgevingsdataLand - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """OmgevingsdataLand - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Gebiedsdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/omgevingsdata_provincie.py b/calcasa/api/model/omgevingsdata_provincie.py new file mode 100644 index 0000000..620a078 --- /dev/null +++ b/calcasa/api/model/omgevingsdata_provincie.py @@ -0,0 +1,363 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata + + +class OmgevingsdataProvincie(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OmgevingsdataProvincie - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """OmgevingsdataProvincie - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Gebiedsdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/omgevingsdata_wijk.py b/calcasa/api/model/omgevingsdata_wijk.py new file mode 100644 index 0000000..c78a911 --- /dev/null +++ b/calcasa/api/model/omgevingsdata_wijk.py @@ -0,0 +1,363 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata + + +class OmgevingsdataWijk(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OmgevingsdataWijk - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """OmgevingsdataWijk - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Gebiedsdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index ab5fb2f..2cb16b6 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index d950b16..e3d3794 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index 80cc0e4..d09d1f4 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 0283dd0..70514dc 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index e2a29e2..207115f 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index b06174c..ad1ba9c 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index 9c6bbfa..00dd3db 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,15 +42,15 @@ def lazy_import(): - from calcasa.api.model.adres import Adres - from calcasa.api.model.cbs_indeling import CbsIndeling from calcasa.api.model.foto import Foto - from calcasa.api.model.objectdata import Objectdata + from calcasa.api.model.referentieobject_adres import ReferentieobjectAdres + from calcasa.api.model.referentieobject_cbs_indeling import ReferentieobjectCbsIndeling + from calcasa.api.model.referentieobject_object import ReferentieobjectObject from calcasa.api.model.verkoop_bijzonderheden import VerkoopBijzonderheden - globals()['Adres'] = Adres - globals()['CbsIndeling'] = CbsIndeling globals()['Foto'] = Foto - globals()['Objectdata'] = Objectdata + globals()['ReferentieobjectAdres'] = ReferentieobjectAdres + globals()['ReferentieobjectCbsIndeling'] = ReferentieobjectCbsIndeling + globals()['ReferentieobjectObject'] = ReferentieobjectObject globals()['VerkoopBijzonderheden'] = VerkoopBijzonderheden @@ -108,9 +108,9 @@ def openapi_types(): '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 + 'adres': (ReferentieobjectAdres,), # noqa: E501 + 'object': (ReferentieobjectObject,), # noqa: E501 + 'cbs_indeling': (ReferentieobjectCbsIndeling,), # noqa: E501 'fotos': ([Foto],), # noqa: E501 'bijzonderheden': ([VerkoopBijzonderheden],), # noqa: E501 } @@ -185,9 +185,9 @@ def _from_openapi_data(cls, *args, **kwargs): # 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 + adres (ReferentieobjectAdres): [optional] # noqa: E501 + object (ReferentieobjectObject): [optional] # noqa: E501 + cbs_indeling (ReferentieobjectCbsIndeling): [optional] # noqa: E501 fotos ([Foto]): Fotos van het referentieobject.. [optional] # noqa: E501 bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501 """ @@ -283,9 +283,9 @@ def __init__(self, *args, **kwargs): # 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 + adres (ReferentieobjectAdres): [optional] # noqa: E501 + object (ReferentieobjectObject): [optional] # noqa: E501 + cbs_indeling (ReferentieobjectCbsIndeling): [optional] # noqa: E501 fotos ([Foto]): Fotos van het referentieobject.. [optional] # noqa: E501 bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/referentieobject_adres.py b/calcasa/api/model/referentieobject_adres.py new file mode 100644 index 0000000..21a57a7 --- /dev/null +++ b/calcasa/api/model/referentieobject_adres.py @@ -0,0 +1,347 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.adres import Adres + globals()['Adres'] = Adres + + +class ReferentieobjectAdres(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReferentieobjectAdres - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """ReferentieobjectAdres - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Adres, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/referentieobject_cbs_indeling.py b/calcasa/api/model/referentieobject_cbs_indeling.py new file mode 100644 index 0000000..f2d3f33 --- /dev/null +++ b/calcasa/api/model/referentieobject_cbs_indeling.py @@ -0,0 +1,343 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.cbs_indeling import CbsIndeling + globals()['CbsIndeling'] = CbsIndeling + + +class ReferentieobjectCbsIndeling(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReferentieobjectCbsIndeling - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """ReferentieobjectCbsIndeling - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + CbsIndeling, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/referentieobject_object.py b/calcasa/api/model/referentieobject_object.py new file mode 100644 index 0000000..804f9ec --- /dev/null +++ b/calcasa/api/model/referentieobject_object.py @@ -0,0 +1,355 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.energielabel import Energielabel + from calcasa.api.model.objectdata import Objectdata + from calcasa.api.model.woning_type import WoningType + globals()['Energielabel'] = Energielabel + globals()['Objectdata'] = Objectdata + globals()['WoningType'] = WoningType + + +class ReferentieobjectObject(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReferentieobjectObject - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """ReferentieobjectObject - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Objectdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index fbedd2c..3ae64b1 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index d4d5f02..a2c5002 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index 3b3fc0d..0028874 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index 19c9999..0f6ca1f 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index e7ec579..01d23c4 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index 567b02a..24db275 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index bee1e9d..edbd52f 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,30 +42,30 @@ def lazy_import(): - from calcasa.api.model.adres import Adres - from calcasa.api.model.cbs_indeling import CbsIndeling - from calcasa.api.model.factuur import Factuur from calcasa.api.model.foto import Foto - from calcasa.api.model.modeldata import Modeldata - from calcasa.api.model.objectdata import Objectdata - 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.referentieobject_adres import ReferentieobjectAdres from calcasa.api.model.vorige_verkoop import VorigeVerkoop - from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters + from calcasa.api.model.waardering_cbs_indeling import WaarderingCbsIndeling + from calcasa.api.model.waardering_factuur import WaarderingFactuur + from calcasa.api.model.waardering_model import WaarderingModel + from calcasa.api.model.waardering_object import WaarderingObject + from calcasa.api.model.waardering_originele_input import WaarderingOrigineleInput + from calcasa.api.model.waardering_rapport import WaarderingRapport from calcasa.api.model.waardering_status import WaarderingStatus - globals()['Adres'] = Adres - globals()['CbsIndeling'] = CbsIndeling - globals()['Factuur'] = Factuur + from calcasa.api.model.waardering_taxatie import WaarderingTaxatie globals()['Foto'] = Foto - globals()['Modeldata'] = Modeldata - globals()['Objectdata'] = Objectdata - globals()['Rapport'] = Rapport globals()['Referentieobject'] = Referentieobject - globals()['Taxatiedata'] = Taxatiedata + globals()['ReferentieobjectAdres'] = ReferentieobjectAdres globals()['VorigeVerkoop'] = VorigeVerkoop - globals()['WaarderingInputParameters'] = WaarderingInputParameters + globals()['WaarderingCbsIndeling'] = WaarderingCbsIndeling + globals()['WaarderingFactuur'] = WaarderingFactuur + globals()['WaarderingModel'] = WaarderingModel + globals()['WaarderingObject'] = WaarderingObject + globals()['WaarderingOrigineleInput'] = WaarderingOrigineleInput + globals()['WaarderingRapport'] = WaarderingRapport globals()['WaarderingStatus'] = WaarderingStatus + globals()['WaarderingTaxatie'] = WaarderingTaxatie class Waardering(ModelNormal): @@ -117,17 +117,17 @@ def openapi_types(): '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 + 'originele_input': (WaarderingOrigineleInput,), # noqa: E501 + 'adres': (ReferentieobjectAdres,), # noqa: E501 + 'model': (WaarderingModel,), # noqa: E501 + 'taxatie': (WaarderingTaxatie,), # noqa: E501 + 'object': (WaarderingObject,), # noqa: E501 + 'cbs_indeling': (WaarderingCbsIndeling,), # 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 + 'rapport': (WaarderingRapport,), # noqa: E501 + 'factuur': (WaarderingFactuur,), # noqa: E501 } @cached_property @@ -196,17 +196,17 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 + originele_input (WaarderingOrigineleInput): [optional] # noqa: E501 + adres (ReferentieobjectAdres): [optional] # noqa: E501 + model (WaarderingModel): [optional] # noqa: E501 + taxatie (WaarderingTaxatie): [optional] # noqa: E501 + object (WaarderingObject): [optional] # noqa: E501 + cbs_indeling (WaarderingCbsIndeling): [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 + rapport (WaarderingRapport): [optional] # noqa: E501 + factuur (WaarderingFactuur): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -295,17 +295,17 @@ def __init__(self, *args, **kwargs): # noqa: E501 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 + originele_input (WaarderingOrigineleInput): [optional] # noqa: E501 + adres (ReferentieobjectAdres): [optional] # noqa: E501 + model (WaarderingModel): [optional] # noqa: E501 + taxatie (WaarderingTaxatie): [optional] # noqa: E501 + object (WaarderingObject): [optional] # noqa: E501 + cbs_indeling (WaarderingCbsIndeling): [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 + rapport (WaarderingRapport): [optional] # noqa: E501 + factuur (WaarderingFactuur): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/waardering_cbs_indeling.py b/calcasa/api/model/waardering_cbs_indeling.py new file mode 100644 index 0000000..a85f1dd --- /dev/null +++ b/calcasa/api/model/waardering_cbs_indeling.py @@ -0,0 +1,343 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.cbs_indeling import CbsIndeling + globals()['CbsIndeling'] = CbsIndeling + + +class WaarderingCbsIndeling(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingCbsIndeling - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingCbsIndeling - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + CbsIndeling, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_factuur.py b/calcasa/api/model/waardering_factuur.py new file mode 100644 index 0000000..3ad4b3e --- /dev/null +++ b/calcasa/api/model/waardering_factuur.py @@ -0,0 +1,335 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.factuur import Factuur + globals()['Factuur'] = Factuur + + +class WaarderingFactuur(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 = True + + @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 + 'factuurnummer': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'factuurnummer': 'factuurnummer', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingFactuur - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingFactuur - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Factuur, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index 254c457..6a50897 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_model.py b/calcasa/api/model/waardering_model.py new file mode 100644 index 0000000..af234e7 --- /dev/null +++ b/calcasa/api/model/waardering_model.py @@ -0,0 +1,351 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.modeldata import Modeldata + globals()['Modeldata'] = Modeldata + + +class WaarderingModel(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingModel - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingModel - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Modeldata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_object.py b/calcasa/api/model/waardering_object.py new file mode 100644 index 0000000..0b2e33b --- /dev/null +++ b/calcasa/api/model/waardering_object.py @@ -0,0 +1,355 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.energielabel import Energielabel + from calcasa.api.model.objectdata import Objectdata + from calcasa.api.model.woning_type import WoningType + globals()['Energielabel'] = Energielabel + globals()['Objectdata'] = Objectdata + globals()['WoningType'] = WoningType + + +class WaarderingObject(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingObject - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingObject - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Objectdata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index bbf80fc..e0d8e2e 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index a96bd2a..7b85f16 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,8 +42,8 @@ def lazy_import(): - from calcasa.api.model.kwartaal import Kwartaal - globals()['Kwartaal'] = Kwartaal + from calcasa.api.model.waardering_ontwikkeling_kwartaal_kwartaal import WaarderingOntwikkelingKwartaalKwartaal + globals()['WaarderingOntwikkelingKwartaalKwartaal'] = WaarderingOntwikkelingKwartaalKwartaal class WaarderingOntwikkelingKwartaal(ModelNormal): @@ -92,7 +92,7 @@ def openapi_types(): """ lazy_import() return { - 'kwartaal': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'kwartaal': (WaarderingOntwikkelingKwartaalKwartaal,), # noqa: E501 'waarde': (int,), # noqa: E501 } @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + kwartaal (WaarderingOntwikkelingKwartaalKwartaal): [optional] # noqa: E501 waarde (int): In hele euros.. [optional] # noqa: E501 """ @@ -234,7 +234,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + kwartaal (WaarderingOntwikkelingKwartaalKwartaal): [optional] # noqa: E501 waarde (int): In hele euros.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py new file mode 100644 index 0000000..93b7413 --- /dev/null +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py @@ -0,0 +1,335 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.kwartaal import Kwartaal + globals()['Kwartaal'] = Kwartaal + + +class WaarderingOntwikkelingKwartaalKwartaal(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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingOntwikkelingKwartaalKwartaal - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingOntwikkelingKwartaalKwartaal - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Kwartaal, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_originele_input.py b/calcasa/api/model/waardering_originele_input.py new file mode 100644 index 0000000..18e44f3 --- /dev/null +++ b/calcasa/api/model/waardering_originele_input.py @@ -0,0 +1,385 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.aanvraagdoel import Aanvraagdoel + from calcasa.api.model.klantwaarde_type import KlantwaardeType + from calcasa.api.model.product_type import ProductType + from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters + globals()['Aanvraagdoel'] = Aanvraagdoel + globals()['KlantwaardeType'] = KlantwaardeType + globals()['ProductType'] = ProductType + globals()['WaarderingInputParameters'] = WaarderingInputParameters + + +class WaarderingOrigineleInput(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 { + '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 + 'is_erfpacht': (bool, 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 + 'is_erfpacht': 'isErfpacht', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingOrigineleInput - a model defined in OpenAPI + + Keyword Args: + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | + bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. + _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): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 + hypotheekwaarde (int): 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.. [optional] # noqa: E501 + aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 + klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 + is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 + benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 + peildatum (datetime, none_type): 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.. [optional] # noqa: E501 + is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingOrigineleInput - a model defined in OpenAPI + + Keyword Args: + product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | + bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. + _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): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 + hypotheekwaarde (int): 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.. [optional] # noqa: E501 + aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 + klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 + is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 + is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 + benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 + peildatum (datetime, none_type): 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.. [optional] # noqa: E501 + is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + WaarderingInputParameters, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_rapport.py b/calcasa/api/model/waardering_rapport.py new file mode 100644 index 0000000..bf782e3 --- /dev/null +++ b/calcasa/api/model/waardering_rapport.py @@ -0,0 +1,331 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.rapport import Rapport + globals()['Rapport'] = Rapport + + +class WaarderingRapport(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 = True + + @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 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingRapport - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingRapport - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Rapport, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index e1ba912..e898353 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_taxatie.py b/calcasa/api/model/waardering_taxatie.py new file mode 100644 index 0000000..bbafa76 --- /dev/null +++ b/calcasa/api/model/waardering_taxatie.py @@ -0,0 +1,341 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.1.7 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + +def lazy_import(): + from calcasa.api.model.taxatiedata import Taxatiedata + from calcasa.api.model.taxatiestatus import Taxatiestatus + globals()['Taxatiedata'] = Taxatiedata + globals()['Taxatiestatus'] = Taxatiestatus + + +class WaarderingTaxatie(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 = True + + @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 { + '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 = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WaarderingTaxatie - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """WaarderingTaxatie - 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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': [ + Taxatiedata, + ], + 'oneOf': [ + ], + } diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index bb17c95..0f8993c 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index f6e5e4b..46d3632 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index 1657c97..aced275 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 6160e80..433584a 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,7 +54,9 @@ def wrapped_init(_self, *args, **kwargs): """ 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__) + kwargs = change_keys_js_to_python( + kwargs, _self if isinstance( + _self, type) else _self.__class__) return fn(_self, *args, **kwargs) return wrapped_init @@ -79,6 +81,7 @@ def __get__(self, instance, cls=None): 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 @@ -103,6 +106,7 @@ def allows_single_value_input(cls): 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 @@ -236,7 +240,6 @@ def __new__(cls, *args, **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 @@ -283,7 +286,7 @@ def __new__(cls, *args, **kwargs): # 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, []) + cls, discr_propertyname_py, discr_value, []) if new_cls is None: path_to_item = kwargs.get('_path_to_item', ()) disc_prop_value = kwargs.get( @@ -338,7 +341,6 @@ def __new__(cls, *args, **kwargs): return new_inst - @classmethod @convert_js_args_to_python_args def _new_from_openapi_data(cls, *args, **kwargs): @@ -357,7 +359,6 @@ def _new_from_openapi_data(cls, *args, **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 @@ -404,7 +405,7 @@ def _new_from_openapi_data(cls, *args, **kwargs): # 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, []) + cls, discr_propertyname_py, discr_value, []) if new_cls is None: path_to_item = kwargs.get('_path_to_item', ()) disc_prop_value = kwargs.get( @@ -449,7 +450,6 @@ def _new_from_openapi_data(cls, *args, **kwargs): # 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 @@ -750,7 +750,8 @@ def __eq__(self, other): 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. + # A float may be serialized as an integer, e.g. '3' is a valid serialized float. + (int, float), (list, ModelComposed), (dict, ModelComposed), (str, ModelComposed), @@ -903,8 +904,8 @@ def is_json_validation_enabled(schema_keyword, configuration=None): """ return (configuration is None or - not hasattr(configuration, '_disabled_client_side_validations') or - schema_keyword not in configuration._disabled_client_side_validations) + not hasattr(configuration, '_disabled_client_side_validations') or + schema_keyword not in configuration._disabled_client_side_validations) def check_validations( @@ -1042,9 +1043,9 @@ def check_validations( 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'] - ) + 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. @@ -1135,6 +1136,7 @@ def remove_uncoercible(required_types_classes, current_item, spec_property_namin results_classes.append(required_type_class) return results_classes + def get_discriminated_classes(cls): """ Returns all the classes that a discriminator converts to @@ -1333,7 +1335,7 @@ def get_discriminator_class(model_class, # 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', ()) + \ + 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 @@ -1341,7 +1343,7 @@ def get_discriminator_class(model_class, # 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) + cls, discr_name, discr_value, cls_visited) if used_model_class is not None: return used_model_class return used_model_class @@ -1508,9 +1510,11 @@ def is_type_nullable(input_type): 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 + if is_type_nullable(t): + return True for t in input_type._composed_schemas.get('anyOf', ()): - if is_type_nullable(t): return True + if is_type_nullable(t): + return True return False @@ -1525,7 +1529,7 @@ def is_valid_type(input_class_simple, valid_classes): bool """ if issubclass(input_class_simple, OpenApiModel) and \ - valid_classes == (bool, date, datetime, dict, float, int, list, str, none_type,): + 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 ( @@ -1583,9 +1587,9 @@ def validate_and_convert_types(input_value, required_types_mixed, path_to_item, input_class_simple = get_simple_class(input_value) valid_type = is_valid_type(input_class_simple, valid_classes) if not valid_type: - if (configuration - or (input_class_simple == dict - and not dict in valid_classes)): + if (configuration + or (input_class_simple == dict + and dict not in valid_classes)): # if input_value is not valid_type try to convert it converted_instance = attempt_convert_item( input_value, @@ -1678,7 +1682,11 @@ def model_to_dict(model_instance, serialize=True): attribute_map """ result = {} - extract_item = lambda item: (item[0], model_to_dict(item[1], serialize=serialize)) if hasattr(item[1], '_data_store') else item + + def extract_item(item): return ( + item[0], model_to_dict( + item[1], serialize=serialize)) if hasattr( + item[1], '_data_store') else item model_instances = [model_instance] if model_instance._composed_schemas: @@ -1698,24 +1706,24 @@ def model_to_dict(model_instance, serialize=True): 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) - elif isinstance(v, dict): - res.append(dict(map( - extract_item, - v.items() - ))) - else: - res.append(model_to_dict(v, serialize=serialize)) - result[attr] = res + 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) + elif isinstance(v, dict): + res.append(dict(map( + extract_item, + v.items() + ))) + else: + res.append(model_to_dict(v, serialize=serialize)) + result[attr] = res elif isinstance(value, dict): result[attr] = dict(map( extract_item, @@ -1867,13 +1875,15 @@ def get_oneof_instance(cls, model_kwargs, constant_kwargs, model_arg=None): try: if not single_value_input: if constant_kwargs.get('_spec_property_naming'): - oneof_instance = oneof_class._from_openapi_data(**model_kwargs, **constant_kwargs) + 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) + 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: @@ -2048,11 +2058,13 @@ def validate_get_composed_info(constant_args, model_args, self): 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 + var_name_to_model_instances[prop_name] = [self] + list( + filter( + lambda x: prop_name in x.openapi_types, composed_instances)) return [ - composed_instances, - var_name_to_model_instances, - additional_properties_model_instances, - discarded_args + 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 index dd59ae6..8d1ef1c 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -12,6 +12,8 @@ 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.adres_info_adres import AdresInfoAdres +from calcasa.api.model.adres_info_notities import AdresInfoNotities from calcasa.api.model.bestemmingsdata import Bestemmingsdata from calcasa.api.model.bodem_status_type import BodemStatusType from calcasa.api.model.bodemdata import Bodemdata @@ -30,6 +32,10 @@ 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.funderingdata_bio_infectie_risico import FunderingdataBioInfectieRisico +from calcasa.api.model.funderingdata_droogstand_risico import FunderingdataDroogstandRisico +from calcasa.api.model.funderingdata_optrekkend_vocht_risico import FunderingdataOptrekkendVochtRisico +from calcasa.api.model.funderingdata_typering import FunderingdataTypering from calcasa.api.model.gebiedsdata import Gebiedsdata from calcasa.api.model.geldverstrekker import Geldverstrekker from calcasa.api.model.http_validation_problem_details import HttpValidationProblemDetails @@ -43,6 +49,11 @@ 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.omgevingsdata_buurt import OmgevingsdataBuurt +from calcasa.api.model.omgevingsdata_gemeente import OmgevingsdataGemeente +from calcasa.api.model.omgevingsdata_land import OmgevingsdataLand +from calcasa.api.model.omgevingsdata_provincie import OmgevingsdataProvincie +from calcasa.api.model.omgevingsdata_wijk import OmgevingsdataWijk 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 @@ -50,6 +61,9 @@ 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.referentieobject_adres import ReferentieobjectAdres +from calcasa.api.model.referentieobject_cbs_indeling import ReferentieobjectCbsIndeling +from calcasa.api.model.referentieobject_object import ReferentieobjectObject from calcasa.api.model.resource_exhausted_problem_details import ResourceExhaustedProblemDetails from calcasa.api.model.taxatiedata import Taxatiedata from calcasa.api.model.taxatiestatus import Taxatiestatus @@ -57,10 +71,18 @@ 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_cbs_indeling import WaarderingCbsIndeling +from calcasa.api.model.waardering_factuur import WaarderingFactuur from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters +from calcasa.api.model.waardering_model import WaarderingModel +from calcasa.api.model.waardering_object import WaarderingObject from calcasa.api.model.waardering_ontwikkeling import WaarderingOntwikkeling from calcasa.api.model.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal +from calcasa.api.model.waardering_ontwikkeling_kwartaal_kwartaal import WaarderingOntwikkelingKwartaalKwartaal +from calcasa.api.model.waardering_originele_input import WaarderingOrigineleInput +from calcasa.api.model.waardering_rapport import WaarderingRapport from calcasa.api.model.waardering_status import WaarderingStatus +from calcasa.api.model.waardering_taxatie import WaarderingTaxatie 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 index d876461..b93d79c 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -86,7 +86,8 @@ def __init__(self, configuration, pools_size=4, maxsize=None): maxsize = 4 # https pool manager - if configuration.proxy and not should_bypass_proxies(configuration.host, no_proxy=configuration.no_proxy or ''): + 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, @@ -159,7 +160,8 @@ def request(self, method, url, query_params=None, headers=None, 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)): + 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) @@ -306,14 +308,17 @@ def PATCH(self, url, headers=None, query_params=None, post_params=None, body=body) # end of class RESTClientObject + + def is_ipv4(target): """ Test if IPv4 address or not """ try: - chk = ipaddress.IPv4Address(target) - return True + chk = ipaddress.IPv4Address(target) + return True except ipaddress.AddressValueError: - return False + return False + def in_ipv4net(target, net): """ Test if target belongs to given IPv4 network @@ -329,6 +334,7 @@ def in_ipv4net(target, net): 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. @@ -341,18 +347,18 @@ def should_bypass_proxies(url, no_proxy=None): return True # special cases - if no_proxy in [None , '']: + if no_proxy in [None, '']: return False if no_proxy == '*': return True - no_proxy = no_proxy.lower().replace(' ',''); + 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} ) + if in_ipv4net(parsed.hostname, item): + return True + return proxy_bypass_environment(parsed.hostname, {'no': no_proxy}) diff --git a/setup.py b/setup.py index d87c968..0430b4b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.6 + The version of the OpenAPI document: 1.1.7 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.6" +VERSION = "1.1.7" # To install the library, run the following # # python setup.py install From 3f9b1d770319cfdc478c4b11054967255d285add Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Thu, 4 Aug 2022 11:32:45 +0200 Subject: [PATCH 12/20] Release 1.2.0 (2022-08-04) - Add support for managing `CallbackSubscription`'s, this allows you to subscribe to callbacks for valuations that were not created with your API client. - `GET /v1/callbacks/inschrijvingen` - `POST /v1/callbacks/inschrijvingen` - `GET /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}` - `DELETE /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}` - Add `taxateurnaam` field to the `Taxatiedata` model. - Callback URIs should now end in `/` not just contain it to help stop common errors (ending in `=` is also still allowed when using a query string). - Updating configuration in the `POST /v1/configuratie/callbacks` endpoint now clears stored but decommissioned versions from the configuration object. - Add `klantkenmerk` to the `WaarderingInputParameters` and `Waardering` models. --- README.md | 30 +- calcasa/api/__init__.py | 4 +- calcasa/api/api/adressen_api.py | 2 +- calcasa/api/api/bestemmingsplannen_api.py | 2 +- calcasa/api/api/bodem_api.py | 2 +- calcasa/api/api/buurt_api.py | 2 +- calcasa/api/api/callbacks_api.py | 579 ++++++++++++++++++ calcasa/api/api/configuratie_api.py | 2 +- calcasa/api/api/facturen_api.py | 2 +- calcasa/api/api/fotos_api.py | 2 +- calcasa/api/api/funderingen_api.py | 2 +- calcasa/api/api/geldverstrekkers_api.py | 2 +- calcasa/api/api/rapporten_api.py | 2 +- calcasa/api/api/waarderingen_api.py | 2 +- calcasa/api/api_client.py | 4 +- calcasa/api/apis/__init__.py | 1 + calcasa/api/configuration.py | 6 +- calcasa/api/exceptions.py | 2 +- calcasa/api/model/aanvraagdoel.py | 2 +- calcasa/api/model/adres.py | 2 +- calcasa/api/model/adres_info.py | 2 +- calcasa/api/model/adres_info_adres.py | 2 +- calcasa/api/model/adres_info_notities.py | 2 +- calcasa/api/model/bestemmingsdata.py | 2 +- calcasa/api/model/bodem_status_type.py | 2 +- calcasa/api/model/bodemdata.py | 2 +- calcasa/api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa/api/model/callback.py | 2 +- calcasa/api/model/callback_inschrijving.py | 281 +++++++++ calcasa/api/model/cbs_indeling.py | 2 +- calcasa/api/model/energielabel.py | 2 +- calcasa/api/model/factuur.py | 2 +- calcasa/api/model/foto.py | 2 +- calcasa/api/model/fundering_data_bron.py | 2 +- calcasa/api/model/fundering_herstel_type.py | 2 +- calcasa/api/model/fundering_risico.py | 2 +- calcasa/api/model/fundering_risico_label.py | 2 +- calcasa/api/model/fundering_soort_bron.py | 2 +- calcasa/api/model/fundering_type.py | 2 +- calcasa/api/model/fundering_typering.py | 2 +- calcasa/api/model/funderingdata.py | 2 +- .../funderingdata_bio_infectie_risico.py | 2 +- .../model/funderingdata_droogstand_risico.py | 2 +- .../funderingdata_optrekkend_vocht_risico.py | 2 +- calcasa/api/model/funderingdata_typering.py | 2 +- calcasa/api/model/gebiedsdata.py | 2 +- calcasa/api/model/geldverstrekker.py | 2 +- .../model/http_validation_problem_details.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa/api/model/json_patch_document.py | 2 +- calcasa/api/model/klantwaarde_type.py | 2 +- calcasa/api/model/kwartaal.py | 2 +- calcasa/api/model/modeldata.py | 2 +- .../api/model/not_found_problem_details.py | 2 +- calcasa/api/model/notitie.py | 2 +- calcasa/api/model/notities.py | 2 +- calcasa/api/model/objectdata.py | 2 +- calcasa/api/model/omgevingsdata.py | 2 +- calcasa/api/model/omgevingsdata_buurt.py | 2 +- calcasa/api/model/omgevingsdata_gemeente.py | 2 +- calcasa/api/model/omgevingsdata_land.py | 2 +- calcasa/api/model/omgevingsdata_provincie.py | 2 +- calcasa/api/model/omgevingsdata_wijk.py | 2 +- calcasa/api/model/operation.py | 2 +- calcasa/api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa/api/model/problem_details.py | 2 +- calcasa/api/model/product_type.py | 2 +- calcasa/api/model/rapport.py | 2 +- calcasa/api/model/referentieobject.py | 2 +- calcasa/api/model/referentieobject_adres.py | 2 +- .../model/referentieobject_cbs_indeling.py | 2 +- calcasa/api/model/referentieobject_object.py | 2 +- .../resource_exhausted_problem_details.py | 2 +- calcasa/api/model/taxatiedata.py | 6 +- calcasa/api/model/taxatiestatus.py | 2 +- .../api/model/validation_problem_details.py | 2 +- calcasa/api/model/verkoop_bijzonderheden.py | 2 +- calcasa/api/model/vorige_verkoop.py | 2 +- calcasa/api/model/waardering.py | 2 +- calcasa/api/model/waardering_cbs_indeling.py | 2 +- calcasa/api/model/waardering_factuur.py | 2 +- .../api/model/waardering_input_parameters.py | 10 +- calcasa/api/model/waardering_model.py | 2 +- calcasa/api/model/waardering_object.py | 2 +- calcasa/api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- ...ardering_ontwikkeling_kwartaal_kwartaal.py | 2 +- .../api/model/waardering_originele_input.py | 10 +- calcasa/api/model/waardering_rapport.py | 2 +- calcasa/api/model/waardering_status.py | 2 +- calcasa/api/model/waardering_taxatie.py | 6 +- .../api/model/waardering_webhook_payload.py | 2 +- .../api/model/waardering_zoek_parameters.py | 2 +- calcasa/api/model/woning_type.py | 2 +- calcasa/api/model_utils.py | 2 +- calcasa/api/models/__init__.py | 1 + calcasa/api/rest.py | 2 +- setup.py | 4 +- 100 files changed, 1012 insertions(+), 104 deletions(-) create mode 100644 calcasa/api/api/callbacks_api.py create mode 100644 calcasa/api/model/callback_inschrijving.py diff --git a/README.md b/README.md index bd5b300..b3f57d5 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,23 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2022-08-04 (v1.2.0) +- Add support for managing `CallbackSubscription`'s, this allows you to subscribe to callbacks for valuations that were not created with your API client. + - `GET /v1/callbacks/inschrijvingen` + - `POST /v1/callbacks/inschrijvingen` + - `GET /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}` + - `DELETE /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}` +- Add `taxateurnaam` field to the `Taxatiedata` model. +- Callback URIs should now end in `/` not just contain it to help stop common errors (ending in `=` is also still allowed when using a query string). +- Updating configuration in the `POST /v1/configuratie/callbacks` endpoint now clears stored but decommissioned versions from the configuration object. +- Add `klantkenmerk` to the `WaarderingInputParameters` and `Waardering` models. + ### 2022-07-12 (v1.1.7) - Added support for the OAuth 2.0 authorization code flow for use of the API with user accounts. -- Add `Bouweenheid` to `FunderingSoortBron` enumeration. +- Add `bouweenheid` to `FunderingSoortBron` enumeration. ### 2022-05-19 (v1.1.6) -- Added `LtvTeHoogOverbrugging` value to the `BusinessRulesCode` enumeration. +- Added `ltvTeHoogOverbrugging` value to the `BusinessRulesCode` enumeration. ### 2022-04-13 (v1.1.5) - Fix the schema for `Operation` `value` field for the benefit of the PHP and Python code generators, these will now correctly support any value type. @@ -134,8 +145,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.7 -- Package version: 1.1.7 +- API version: 1.2.0 +- Package version: 1.2.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -236,6 +247,10 @@ Class | Method | HTTP request | Description *BestemmingsplannenApi* | [**get_bestemming_by_id**](docs/BestemmingsplannenApi.md#get_bestemming_by_id) | **GET** /api/v1/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/v1/bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). *BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v1/buurt/{buurtId} | 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** /api/v1/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** /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Verwijder de callback inschrijving voor deze client en dit adres. +*CallbacksApi* | [**get_notification_subscription**](docs/CallbacksApi.md#get_notification_subscription) | **GET** /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Haal de callback inschrijving op voor deze client en dit adres. +*CallbacksApi* | [**get_notification_subscriptions**](docs/CallbacksApi.md#get_notification_subscriptions) | **GET** /api/v1/callbacks/inschrijvingen | Haal de callback inschrijvingen binnen voor deze client. *ConfiguratieApi* | [**get_callbacks**](docs/ConfiguratieApi.md#get_callbacks) | **GET** /api/v1/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client. *ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /api/v1/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client. *FacturenApi* | [**get_factuur**](docs/FacturenApi.md#get_factuur) | **GET** /api/v1/facturen/{id} | Factuur op basis van een waardering Id. @@ -263,6 +278,7 @@ 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) - [Energielabel](docs/Energielabel.md) - [Factuur](docs/Factuur.md) @@ -346,6 +362,7 @@ Class | Method | HTTP request | Description - **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:callback:all**: Full permissions for the callback 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. @@ -357,6 +374,8 @@ Class | Method | HTTP request | Description - **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:callback:read**: Read permissions for the callback area of the public API. + - **api:callback:write**: Write permissions for the callback 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. @@ -380,6 +399,7 @@ Class | Method | HTTP request | Description - **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:callback:all**: Full permissions for the callback 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. @@ -391,6 +411,8 @@ Class | Method | HTTP request | Description - **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:callback:read**: Read permissions for the callback area of the public API. + - **api:callback:write**: Write permissions for the callback 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. diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index 25f1344..605d0af 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.1.7" +__version__ = "1.2.0" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index 14a693e..1043685 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index 6e80a67..1832193 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index faeb123..ea58dd3 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index b8b57ef..6592200 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py new file mode 100644 index 0000000..61fda99 --- /dev/null +++ b/calcasa/api/api/callbacks_api.py @@ -0,0 +1,579 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.2.0 + 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_inschrijving import CallbackInschrijving +from calcasa.api.model.invalid_argument_problem_details import InvalidArgumentProblemDetails +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 CallbacksApi(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.add_or_update_callback_subscription_endpoint = _Endpoint( + settings={ + 'response_type': (CallbackInschrijving,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/api/v1/callbacks/inschrijvingen', + 'operation_id': 'add_or_update_callback_subscription', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'callback_inschrijving', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'callback_inschrijving': + (CallbackInschrijving,), + }, + 'attribute_map': { + }, + 'location_map': { + 'callback_inschrijving': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/problem+json', + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.delete_notification_subscription_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId}', + 'operation_id': 'delete_notification_subscription', + 'http_method': 'DELETE', + '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' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_notification_subscription_endpoint = _Endpoint( + settings={ + 'response_type': (CallbackInschrijving,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId}', + 'operation_id': 'get_notification_subscription', + '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.get_notification_subscriptions_endpoint = _Endpoint( + settings={ + 'response_type': ([CallbackInschrijving],), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/api/v1/callbacks/inschrijvingen', + 'operation_id': 'get_notification_subscriptions', + '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 + ) + + def add_or_update_callback_subscription( + self, + **kwargs + ): + """Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres. # noqa: E501 + + 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. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.add_or_update_callback_subscription(async_req=True) + >>> result = thread.get() + + + Keyword Args: + callback_inschrijving (CallbackInschrijving): De te configureren callback inschrijving.. [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. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CallbackInschrijving + 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['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.add_or_update_callback_subscription_endpoint.call_with_http_info(**kwargs) + + def delete_notification_subscription( + self, + bag_nummeraanduiding_id, + **kwargs + ): + """Verwijder de callback inschrijving voor deze client en dit adres. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_notification_subscription(bag_nummeraanduiding_id, async_req=True) + >>> result = thread.get() + + Args: + bag_nummeraanduiding_id (int): + + 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. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + 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['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['bag_nummeraanduiding_id'] = \ + bag_nummeraanduiding_id + return self.delete_notification_subscription_endpoint.call_with_http_info(**kwargs) + + def get_notification_subscription( + self, + bag_nummeraanduiding_id, + **kwargs + ): + """Haal de callback inschrijving op voor deze client en dit adres. # 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_notification_subscription(bag_nummeraanduiding_id, async_req=True) + >>> result = thread.get() + + Args: + bag_nummeraanduiding_id (int): + + 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. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CallbackInschrijving + 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['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['bag_nummeraanduiding_id'] = \ + bag_nummeraanduiding_id + return self.get_notification_subscription_endpoint.call_with_http_info(**kwargs) + + def get_notification_subscriptions( + self, + **kwargs + ): + """Haal de callback inschrijvingen binnen voor deze client. # noqa: E501 + + De callback objecten zullen 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_notification_subscriptions(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. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + [CallbackInschrijving] + 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['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_notification_subscriptions_endpoint.call_with_http_info(**kwargs) + diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index d685044..a9a1526 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index c6e160b..fd97d35 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index d467486..f13d56d 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 038954d..db54595 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index 643b5f4..426fd72 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index 261a6fc..4d030bd 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index 8834c22..6b4bf5a 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index d9bdf58..0b30f7c 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.1.7' + self.user_agent = 'Calcasa Python Api Client/1.2.0' def __enter__(self): return self diff --git a/calcasa/api/apis/__init__.py b/calcasa/api/apis/__init__.py index ca6a7ad..fba62ae 100644 --- a/calcasa/api/apis/__init__.py +++ b/calcasa/api/apis/__init__.py @@ -18,6 +18,7 @@ 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 diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 300fe89..462b046 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -406,8 +406,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.7\n"\ - "SDK Package Version: 1.1.7".\ + "Version of the API: 1.2.0\n"\ + "SDK Package Version: 1.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index 4f8d967..d9b2371 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index ff4266e..f9f89c1 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index 81ccbf9..ac2f5e8 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index 48bc32a..69d9b72 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info_adres.py b/calcasa/api/model/adres_info_adres.py index f2a16d4..198c854 100644 --- a/calcasa/api/model/adres_info_adres.py +++ b/calcasa/api/model/adres_info_adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info_notities.py b/calcasa/api/model/adres_info_notities.py index dfc86e6..5aa7112 100644 --- a/calcasa/api/model/adres_info_notities.py +++ b/calcasa/api/model/adres_info_notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index f2f8402..892bd49 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index 56b7d52..d579ed6 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index d2234e9..49dd559 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index aa92fb4..4eb47e0 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index 32cedb8..e9947d7 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index 938323b..553bd45 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback_inschrijving.py b/calcasa/api/model/callback_inschrijving.py new file mode 100644 index 0000000..25601a9 --- /dev/null +++ b/calcasa/api/model/callback_inschrijving.py @@ -0,0 +1,281 @@ +""" + Copyright 2022 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 v1 + + The version of the OpenAPI document: 1.2.0 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + + +class CallbackInschrijving(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 + 'geldig_tot': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501 + 'geldig_tot': 'geldigTot', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs): # noqa: E501 + """CallbackInschrijving - a model defined in OpenAPI + + Args: + bag_nummeraanduiding_id (int): Verplicht. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. + geldig_tot (datetime): 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. + + 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,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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.bag_nummeraanduiding_id = bag_nummeraanduiding_id + self.geldig_tot = geldig_tot + 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, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs): # noqa: E501 + """CallbackInschrijving - a model defined in OpenAPI + + Args: + bag_nummeraanduiding_id (int): Verplicht. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. + geldig_tot (datetime): 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. + + 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,) + """ + + _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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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.bag_nummeraanduiding_id = bag_nummeraanduiding_id + self.geldig_tot = geldig_tot + 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 index 86366ca..bf85449 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/energielabel.py b/calcasa/api/model/energielabel.py index 756559d..34b354b 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 79c5dfd..5eb5548 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index d2517b8..7b0635d 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index 09cce42..4bfaf20 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index 07f30af..c3b3542 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index 80a7790..3393cfd 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index 09a9f93..8a87ff7 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index f6bc592..109102e 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index d2999c0..f4d3327 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index efbbfdc..b5f392e 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index 70b2c8e..f82d728 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_bio_infectie_risico.py b/calcasa/api/model/funderingdata_bio_infectie_risico.py index 7e3192b..a35b28c 100644 --- a/calcasa/api/model/funderingdata_bio_infectie_risico.py +++ b/calcasa/api/model/funderingdata_bio_infectie_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_droogstand_risico.py b/calcasa/api/model/funderingdata_droogstand_risico.py index fc47742..a841893 100644 --- a/calcasa/api/model/funderingdata_droogstand_risico.py +++ b/calcasa/api/model/funderingdata_droogstand_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py index 7aa8d4d..491b33a 100644 --- a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py +++ b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_typering.py b/calcasa/api/model/funderingdata_typering.py index 7e3ca4d..bbcdda1 100644 --- a/calcasa/api/model/funderingdata_typering.py +++ b/calcasa/api/model/funderingdata_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index 4eb31a6..fa05fb2 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index 28ecdfb..de92075 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py index 94ce39f..8c674e1 100644 --- a/calcasa/api/model/http_validation_problem_details.py +++ b/calcasa/api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index 2f403ba..1d00d54 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index 55088aa..243d2ca 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index 830882d..7b30734 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index 0500dce..148c46c 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index 34ff8ab..6aaed33 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index 138be28..ec7392e 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index 6bb19f5..1d8a41a 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index de9af92..66aa4b0 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index c8e0e30..307c5a8 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index f5dffdd..dbef4bc 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_buurt.py b/calcasa/api/model/omgevingsdata_buurt.py index 933e35e..3b0a06d 100644 --- a/calcasa/api/model/omgevingsdata_buurt.py +++ b/calcasa/api/model/omgevingsdata_buurt.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_gemeente.py b/calcasa/api/model/omgevingsdata_gemeente.py index 1667aaa..64a6ad8 100644 --- a/calcasa/api/model/omgevingsdata_gemeente.py +++ b/calcasa/api/model/omgevingsdata_gemeente.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_land.py b/calcasa/api/model/omgevingsdata_land.py index a66c5f0..795e4a3 100644 --- a/calcasa/api/model/omgevingsdata_land.py +++ b/calcasa/api/model/omgevingsdata_land.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_provincie.py b/calcasa/api/model/omgevingsdata_provincie.py index 620a078..de5bc89 100644 --- a/calcasa/api/model/omgevingsdata_provincie.py +++ b/calcasa/api/model/omgevingsdata_provincie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_wijk.py b/calcasa/api/model/omgevingsdata_wijk.py index c78a911..6750625 100644 --- a/calcasa/api/model/omgevingsdata_wijk.py +++ b/calcasa/api/model/omgevingsdata_wijk.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index 2cb16b6..30b8dfa 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index e3d3794..741f715 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index d09d1f4..6f67037 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 70514dc..6aa4d41 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index 207115f..69b099a 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index ad1ba9c..423a4f7 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index 00dd3db..795def2 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject_adres.py b/calcasa/api/model/referentieobject_adres.py index 21a57a7..cbbcc6d 100644 --- a/calcasa/api/model/referentieobject_adres.py +++ b/calcasa/api/model/referentieobject_adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject_cbs_indeling.py b/calcasa/api/model/referentieobject_cbs_indeling.py index f2d3f33..c4140a8 100644 --- a/calcasa/api/model/referentieobject_cbs_indeling.py +++ b/calcasa/api/model/referentieobject_cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject_object.py b/calcasa/api/model/referentieobject_object.py index 804f9ec..a1bcac5 100644 --- a/calcasa/api/model/referentieobject_object.py +++ b/calcasa/api/model/referentieobject_object.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index 3ae64b1..de24716 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index a2c5002..e2fb349 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -93,6 +93,7 @@ def openapi_types(): lazy_import() return { 'taxatieorganisatie': (str,), # noqa: E501 + 'taxateurnaam': (str,), # noqa: E501 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'taxatiedatum': (datetime,), # noqa: E501 } @@ -104,6 +105,7 @@ def discriminator(): attribute_map = { 'taxatieorganisatie': 'taxatieorganisatie', # noqa: E501 + 'taxateurnaam': 'taxateurnaam', # noqa: E501 'status': 'status', # noqa: E501 'taxatiedatum': 'taxatiedatum', # noqa: E501 } @@ -150,6 +152,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501 + taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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 """ @@ -238,6 +241,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501 + taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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 """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index 0028874..d13ff56 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index 0f6ca1f..6565a7a 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index 01d23c4..16bf0a8 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index 24db275..c655739 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index edbd52f..7314ceb 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_cbs_indeling.py b/calcasa/api/model/waardering_cbs_indeling.py index a85f1dd..251f434 100644 --- a/calcasa/api/model/waardering_cbs_indeling.py +++ b/calcasa/api/model/waardering_cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_factuur.py b/calcasa/api/model/waardering_factuur.py index 3ad4b3e..811dba8 100644 --- a/calcasa/api/model/waardering_factuur.py +++ b/calcasa/api/model/waardering_factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index 6a50897..be3884f 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -78,6 +78,10 @@ class WaarderingInputParameters(ModelNormal): } validations = { + ('klantkenmerk',): { + 'max_length': 100, + 'min_length': 0, + }, } additional_properties_type = None @@ -109,6 +113,7 @@ def openapi_types(): 'benodigde_overbrugging': (int,), # noqa: E501 'peildatum': (datetime, none_type,), # noqa: E501 'is_erfpacht': (bool, none_type,), # noqa: E501 + 'klantkenmerk': (str,), # noqa: E501 } @cached_property @@ -130,6 +135,7 @@ def discriminator(): 'benodigde_overbrugging': 'benodigdeOverbrugging', # noqa: E501 'peildatum': 'peildatum', # noqa: E501 'is_erfpacht': 'isErfpacht', # noqa: E501 + 'klantkenmerk': 'klantkenmerk', # noqa: E501 } read_only_vars = { @@ -188,6 +194,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 peildatum (datetime, none_type): 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.. [optional] # noqa: E501 is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 + klantkenmerk (str): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -290,6 +297,7 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 peildatum (datetime, none_type): 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.. [optional] # noqa: E501 is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 + klantkenmerk (str): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/waardering_model.py b/calcasa/api/model/waardering_model.py index af234e7..625431c 100644 --- a/calcasa/api/model/waardering_model.py +++ b/calcasa/api/model/waardering_model.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_object.py b/calcasa/api/model/waardering_object.py index 0b2e33b..7f6b071 100644 --- a/calcasa/api/model/waardering_object.py +++ b/calcasa/api/model/waardering_object.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index e0d8e2e..983da99 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index 7b85f16..8568538 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py index 93b7413..ecdd228 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_originele_input.py b/calcasa/api/model/waardering_originele_input.py index 18e44f3..5295233 100644 --- a/calcasa/api/model/waardering_originele_input.py +++ b/calcasa/api/model/waardering_originele_input.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -80,6 +80,10 @@ class WaarderingOrigineleInput(ModelComposed): } validations = { + ('klantkenmerk',): { + 'max_length': 100, + 'min_length': 0, + }, } @cached_property @@ -118,6 +122,7 @@ def openapi_types(): 'benodigde_overbrugging': (int,), # noqa: E501 'peildatum': (datetime, none_type,), # noqa: E501 'is_erfpacht': (bool, none_type,), # noqa: E501 + 'klantkenmerk': (str,), # noqa: E501 } @cached_property @@ -139,6 +144,7 @@ def discriminator(): 'benodigde_overbrugging': 'benodigdeOverbrugging', # noqa: E501 'peildatum': 'peildatum', # noqa: E501 'is_erfpacht': 'isErfpacht', # noqa: E501 + 'klantkenmerk': 'klantkenmerk', # noqa: E501 } read_only_vars = { @@ -193,6 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 peildatum (datetime, none_type): 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.. [optional] # noqa: E501 is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 + klantkenmerk (str): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -309,6 +316,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 peildatum (datetime, none_type): 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.. [optional] # noqa: E501 is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 + klantkenmerk (str): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/waardering_rapport.py b/calcasa/api/model/waardering_rapport.py index bf782e3..8891096 100644 --- a/calcasa/api/model/waardering_rapport.py +++ b/calcasa/api/model/waardering_rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index e898353..4480ef7 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_taxatie.py b/calcasa/api/model/waardering_taxatie.py index bbafa76..99fff27 100644 --- a/calcasa/api/model/waardering_taxatie.py +++ b/calcasa/api/model/waardering_taxatie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -102,6 +102,7 @@ def openapi_types(): lazy_import() return { 'taxatieorganisatie': (str,), # noqa: E501 + 'taxateurnaam': (str,), # noqa: E501 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'taxatiedatum': (datetime,), # noqa: E501 } @@ -113,6 +114,7 @@ def discriminator(): attribute_map = { 'taxatieorganisatie': 'taxatieorganisatie', # noqa: E501 + 'taxateurnaam': 'taxateurnaam', # noqa: E501 'status': 'status', # noqa: E501 'taxatiedatum': 'taxatiedatum', # noqa: E501 } @@ -157,6 +159,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501 + taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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 """ @@ -263,6 +266,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501 + taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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 """ diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index 0f8993c..e7e85ae 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index 46d3632..17a4997 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index aced275..b24326f 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 433584a..6c5d583 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py index 8d1ef1c..7a21d92 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -20,6 +20,7 @@ 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.callback_inschrijving import CallbackInschrijving from calcasa.api.model.cbs_indeling import CbsIndeling from calcasa.api.model.energielabel import Energielabel from calcasa.api.model.factuur import Factuur diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index b93d79c..652cfa0 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 0430b4b..8463c72 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.1.7 + The version of the OpenAPI document: 1.2.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.1.7" +VERSION = "1.2.0" # To install the library, run the following # # python setup.py install From edca27b8f6172dab8c390c1925a0308b99ac07a4 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Mon, 17 Apr 2023 12:41:56 +0200 Subject: [PATCH 13/20] Release 1.2.1 (2023-04-17) - Add `externeReferentie` field to the `CallbackInschrijving` and `WaarderingWebhookPayload` models. --- README.md | 7 +++++-- calcasa/api/__init__.py | 4 ++-- calcasa/api/api/adressen_api.py | 2 +- calcasa/api/api/bestemmingsplannen_api.py | 2 +- calcasa/api/api/bodem_api.py | 2 +- calcasa/api/api/buurt_api.py | 2 +- calcasa/api/api/callbacks_api.py | 2 +- calcasa/api/api/configuratie_api.py | 2 +- calcasa/api/api/facturen_api.py | 2 +- calcasa/api/api/fotos_api.py | 2 +- calcasa/api/api/funderingen_api.py | 2 +- calcasa/api/api/geldverstrekkers_api.py | 2 +- calcasa/api/api/rapporten_api.py | 2 +- calcasa/api/api/waarderingen_api.py | 2 +- calcasa/api/api_client.py | 4 ++-- calcasa/api/configuration.py | 6 +++--- calcasa/api/exceptions.py | 2 +- calcasa/api/model/aanvraagdoel.py | 2 +- calcasa/api/model/adres.py | 2 +- calcasa/api/model/adres_info.py | 2 +- calcasa/api/model/adres_info_adres.py | 2 +- calcasa/api/model/adres_info_notities.py | 2 +- calcasa/api/model/bestemmingsdata.py | 2 +- calcasa/api/model/bodem_status_type.py | 2 +- calcasa/api/model/bodemdata.py | 2 +- calcasa/api/model/business_rules_code.py | 2 +- calcasa/api/model/business_rules_problem_details.py | 2 +- calcasa/api/model/callback.py | 2 +- calcasa/api/model/callback_inschrijving.py | 6 +++++- calcasa/api/model/cbs_indeling.py | 2 +- calcasa/api/model/energielabel.py | 2 +- calcasa/api/model/factuur.py | 2 +- calcasa/api/model/foto.py | 2 +- calcasa/api/model/fundering_data_bron.py | 2 +- calcasa/api/model/fundering_herstel_type.py | 2 +- calcasa/api/model/fundering_risico.py | 2 +- calcasa/api/model/fundering_risico_label.py | 2 +- calcasa/api/model/fundering_soort_bron.py | 2 +- calcasa/api/model/fundering_type.py | 2 +- calcasa/api/model/fundering_typering.py | 2 +- calcasa/api/model/funderingdata.py | 2 +- calcasa/api/model/funderingdata_bio_infectie_risico.py | 2 +- calcasa/api/model/funderingdata_droogstand_risico.py | 2 +- calcasa/api/model/funderingdata_optrekkend_vocht_risico.py | 2 +- calcasa/api/model/funderingdata_typering.py | 2 +- calcasa/api/model/gebiedsdata.py | 2 +- calcasa/api/model/geldverstrekker.py | 2 +- calcasa/api/model/http_validation_problem_details.py | 2 +- calcasa/api/model/invalid_argument_problem_details.py | 2 +- calcasa/api/model/json_patch_document.py | 2 +- calcasa/api/model/klantwaarde_type.py | 2 +- calcasa/api/model/kwartaal.py | 2 +- calcasa/api/model/modeldata.py | 2 +- calcasa/api/model/not_found_problem_details.py | 2 +- calcasa/api/model/notitie.py | 2 +- calcasa/api/model/notities.py | 2 +- calcasa/api/model/objectdata.py | 2 +- calcasa/api/model/omgevingsdata.py | 2 +- calcasa/api/model/omgevingsdata_buurt.py | 2 +- calcasa/api/model/omgevingsdata_gemeente.py | 2 +- calcasa/api/model/omgevingsdata_land.py | 2 +- calcasa/api/model/omgevingsdata_provincie.py | 2 +- calcasa/api/model/omgevingsdata_wijk.py | 2 +- calcasa/api/model/operation.py | 2 +- calcasa/api/model/operation_type.py | 2 +- calcasa/api/model/permissions_denied_problem_details.py | 2 +- calcasa/api/model/problem_details.py | 2 +- calcasa/api/model/product_type.py | 2 +- calcasa/api/model/rapport.py | 2 +- calcasa/api/model/referentieobject.py | 2 +- calcasa/api/model/referentieobject_adres.py | 2 +- calcasa/api/model/referentieobject_cbs_indeling.py | 2 +- calcasa/api/model/referentieobject_object.py | 2 +- calcasa/api/model/resource_exhausted_problem_details.py | 2 +- calcasa/api/model/taxatiedata.py | 2 +- calcasa/api/model/taxatiestatus.py | 2 +- calcasa/api/model/validation_problem_details.py | 2 +- calcasa/api/model/verkoop_bijzonderheden.py | 2 +- calcasa/api/model/vorige_verkoop.py | 2 +- calcasa/api/model/waardering.py | 2 +- calcasa/api/model/waardering_cbs_indeling.py | 2 +- calcasa/api/model/waardering_factuur.py | 2 +- calcasa/api/model/waardering_input_parameters.py | 2 +- calcasa/api/model/waardering_model.py | 2 +- calcasa/api/model/waardering_object.py | 2 +- calcasa/api/model/waardering_ontwikkeling.py | 2 +- calcasa/api/model/waardering_ontwikkeling_kwartaal.py | 2 +- .../api/model/waardering_ontwikkeling_kwartaal_kwartaal.py | 2 +- calcasa/api/model/waardering_originele_input.py | 2 +- calcasa/api/model/waardering_rapport.py | 2 +- calcasa/api/model/waardering_status.py | 2 +- calcasa/api/model/waardering_taxatie.py | 2 +- calcasa/api/model/waardering_webhook_payload.py | 6 +++++- calcasa/api/model/waardering_zoek_parameters.py | 2 +- calcasa/api/model/woning_type.py | 2 +- calcasa/api/model_utils.py | 2 +- calcasa/api/rest.py | 2 +- setup.py | 4 ++-- 98 files changed, 115 insertions(+), 104 deletions(-) diff --git a/README.md b/README.md index b3f57d5..1fdd92a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2023-04-17 (v1.2.1) +- Add `externeReferentie` field to the `CallbackInschrijving` and `WaarderingWebhookPayload` models. + ### 2022-08-04 (v1.2.0) - Add support for managing `CallbackSubscription`'s, this allows you to subscribe to callbacks for valuations that were not created with your API client. - `GET /v1/callbacks/inschrijvingen` @@ -145,8 +148,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.2.0 -- Package version: 1.2.0 +- API version: 1.2.1 +- Package version: 1.2.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index 605d0af..21af013 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.2.0" +__version__ = "1.2.1" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index 1043685..a67465c 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index 1832193..11e74b7 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index ea58dd3..5d496ff 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 6592200..8dae67b 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index 61fda99..cc328ce 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index a9a1526..0e40c14 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index fd97d35..41579b5 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index f13d56d..d0d31d2 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index db54595..1c6b273 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index 426fd72..d51689d 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index 4d030bd..ae41eee 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index 6b4bf5a..1952a1b 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 0b30f7c..6851d0f 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.2.0' + self.user_agent = 'Calcasa Python Api Client/1.2.1' def __enter__(self): return self diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 462b046..2c98b5e 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -406,8 +406,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.2.0\n"\ - "SDK Package Version: 1.2.0".\ + "Version of the API: 1.2.1\n"\ + "SDK Package Version: 1.2.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index d9b2371..ced267b 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index f9f89c1..5f774ee 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index ac2f5e8..fe8ec5d 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index 69d9b72..9a377d9 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info_adres.py b/calcasa/api/model/adres_info_adres.py index 198c854..225257c 100644 --- a/calcasa/api/model/adres_info_adres.py +++ b/calcasa/api/model/adres_info_adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info_notities.py b/calcasa/api/model/adres_info_notities.py index 5aa7112..b13b9d8 100644 --- a/calcasa/api/model/adres_info_notities.py +++ b/calcasa/api/model/adres_info_notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index 892bd49..8fbee54 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index d579ed6..ed4f5ad 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index 49dd559..816d204 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index 4eb47e0..1dbd496 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index e9947d7..07f19ea 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index 553bd45..31aeed1 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback_inschrijving.py b/calcasa/api/model/callback_inschrijving.py index 25601a9..876c4fb 100644 --- a/calcasa/api/model/callback_inschrijving.py +++ b/calcasa/api/model/callback_inschrijving.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -89,6 +89,7 @@ def openapi_types(): return { 'bag_nummeraanduiding_id': (int,), # noqa: E501 'geldig_tot': (datetime,), # noqa: E501 + 'externe_referentie': (str, none_type,), # noqa: E501 } @cached_property @@ -99,6 +100,7 @@ def discriminator(): attribute_map = { 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501 'geldig_tot': 'geldigTot', # noqa: E501 + 'externe_referentie': 'externeReferentie', # noqa: E501 } read_only_vars = { @@ -146,6 +148,7 @@ def _from_openapi_data(cls, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + externe_referentie (str, none_type): Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -237,6 +240,7 @@ def __init__(self, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs): # noq Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + externe_referentie (str, none_type): Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py index bf85449..0e4f330 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/energielabel.py b/calcasa/api/model/energielabel.py index 34b354b..14bee60 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 5eb5548..040e96c 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index 7b0635d..1766b10 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index 4bfaf20..b9b64c8 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index c3b3542..a23796f 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index 3393cfd..e635e84 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index 8a87ff7..727dbdb 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index 109102e..c184206 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index f4d3327..2d41639 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index b5f392e..ba85bb1 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index f82d728..00e3c0c 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_bio_infectie_risico.py b/calcasa/api/model/funderingdata_bio_infectie_risico.py index a35b28c..e1e75fd 100644 --- a/calcasa/api/model/funderingdata_bio_infectie_risico.py +++ b/calcasa/api/model/funderingdata_bio_infectie_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_droogstand_risico.py b/calcasa/api/model/funderingdata_droogstand_risico.py index a841893..1b2db56 100644 --- a/calcasa/api/model/funderingdata_droogstand_risico.py +++ b/calcasa/api/model/funderingdata_droogstand_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py index 491b33a..db2ca27 100644 --- a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py +++ b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata_typering.py b/calcasa/api/model/funderingdata_typering.py index bbcdda1..55bc19b 100644 --- a/calcasa/api/model/funderingdata_typering.py +++ b/calcasa/api/model/funderingdata_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index fa05fb2..77f402d 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index de92075..3d07872 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py index 8c674e1..bd263a2 100644 --- a/calcasa/api/model/http_validation_problem_details.py +++ b/calcasa/api/model/http_validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index 1d00d54..f561e26 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index 243d2ca..220c688 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index 7b30734..ff8b5d7 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index 148c46c..84d01bf 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index 6aaed33..df40e27 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index ec7392e..560fa37 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index 1d8a41a..d566f68 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index 66aa4b0..608fe45 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index 307c5a8..064e61c 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index dbef4bc..d859b7f 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_buurt.py b/calcasa/api/model/omgevingsdata_buurt.py index 3b0a06d..ffa5bc9 100644 --- a/calcasa/api/model/omgevingsdata_buurt.py +++ b/calcasa/api/model/omgevingsdata_buurt.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_gemeente.py b/calcasa/api/model/omgevingsdata_gemeente.py index 64a6ad8..6c9fa56 100644 --- a/calcasa/api/model/omgevingsdata_gemeente.py +++ b/calcasa/api/model/omgevingsdata_gemeente.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_land.py b/calcasa/api/model/omgevingsdata_land.py index 795e4a3..8cc5b5a 100644 --- a/calcasa/api/model/omgevingsdata_land.py +++ b/calcasa/api/model/omgevingsdata_land.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_provincie.py b/calcasa/api/model/omgevingsdata_provincie.py index de5bc89..bf04be8 100644 --- a/calcasa/api/model/omgevingsdata_provincie.py +++ b/calcasa/api/model/omgevingsdata_provincie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata_wijk.py b/calcasa/api/model/omgevingsdata_wijk.py index 6750625..6932c82 100644 --- a/calcasa/api/model/omgevingsdata_wijk.py +++ b/calcasa/api/model/omgevingsdata_wijk.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index 30b8dfa..24e7c46 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index 741f715..a74660c 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index 6f67037..7bf28a7 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 6aa4d41..8b2d0bd 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index 69b099a..064df02 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index 423a4f7..1f56e63 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index 795def2..dffeb5d 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject_adres.py b/calcasa/api/model/referentieobject_adres.py index cbbcc6d..fa98f42 100644 --- a/calcasa/api/model/referentieobject_adres.py +++ b/calcasa/api/model/referentieobject_adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject_cbs_indeling.py b/calcasa/api/model/referentieobject_cbs_indeling.py index c4140a8..8f5c262 100644 --- a/calcasa/api/model/referentieobject_cbs_indeling.py +++ b/calcasa/api/model/referentieobject_cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject_object.py b/calcasa/api/model/referentieobject_object.py index a1bcac5..15d86fc 100644 --- a/calcasa/api/model/referentieobject_object.py +++ b/calcasa/api/model/referentieobject_object.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index de24716..87572b2 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index e2fb349..c7db32e 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index d13ff56..66b7b94 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index 6565a7a..0df3411 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index 16bf0a8..b48b116 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index c655739..b9dc15e 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index 7314ceb..e9dd6b3 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_cbs_indeling.py b/calcasa/api/model/waardering_cbs_indeling.py index 251f434..e4afee6 100644 --- a/calcasa/api/model/waardering_cbs_indeling.py +++ b/calcasa/api/model/waardering_cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_factuur.py b/calcasa/api/model/waardering_factuur.py index 811dba8..91afe24 100644 --- a/calcasa/api/model/waardering_factuur.py +++ b/calcasa/api/model/waardering_factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index be3884f..d5879ac 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_model.py b/calcasa/api/model/waardering_model.py index 625431c..bfc637c 100644 --- a/calcasa/api/model/waardering_model.py +++ b/calcasa/api/model/waardering_model.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_object.py b/calcasa/api/model/waardering_object.py index 7f6b071..fbed31f 100644 --- a/calcasa/api/model/waardering_object.py +++ b/calcasa/api/model/waardering_object.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index 983da99..8b53d54 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index 8568538..66d6fbf 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py index ecdd228..f362a60 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_originele_input.py b/calcasa/api/model/waardering_originele_input.py index 5295233..950f31d 100644 --- a/calcasa/api/model/waardering_originele_input.py +++ b/calcasa/api/model/waardering_originele_input.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_rapport.py b/calcasa/api/model/waardering_rapport.py index 8891096..9a9753f 100644 --- a/calcasa/api/model/waardering_rapport.py +++ b/calcasa/api/model/waardering_rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index 4480ef7..2d19e8c 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_taxatie.py b/calcasa/api/model/waardering_taxatie.py index 99fff27..0ee0354 100644 --- a/calcasa/api/model/waardering_taxatie.py +++ b/calcasa/api/model/waardering_taxatie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index e7e85ae..9593305 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -99,6 +99,7 @@ def openapi_types(): 'new_status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'timestamp': (datetime,), # noqa: E501 'is_test': (bool,), # noqa: E501 + 'externe_referentie': (str, none_type,), # noqa: E501 } @cached_property @@ -114,6 +115,7 @@ def discriminator(): 'new_status': 'newStatus', # noqa: E501 'timestamp': 'timestamp', # noqa: E501 'is_test': 'isTest', # noqa: E501 + 'externe_referentie': 'externeReferentie', # noqa: E501 } read_only_vars = { @@ -165,6 +167,7 @@ def _from_openapi_data(cls, *args, **kwargs): # 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 + externe_referentie (str, none_type): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -257,6 +260,7 @@ def __init__(self, *args, **kwargs): # 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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 + externe_referentie (str, none_type): 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.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index 17a4997..1fdbd6e 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index b24326f..34406d2 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 6c5d583..00188c3 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index 652cfa0..b3738d9 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 8463c72..d1be141 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.0 + The version of the OpenAPI document: 1.2.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.2.0" +VERSION = "1.2.1" # To install the library, run the following # # python setup.py install From c59d4344736dade250c1f8848dcdd9c0715df59a Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Fri, 22 Sep 2023 10:40:01 +0200 Subject: [PATCH 14/20] Release 1.3.0 (2023-10-24) - Add `geldverstrekker` field to the `CallbackInschrijving` model. - Add support for mTLS on the callback service. - By default when requested by the target server the public CA signed TLS certificate with the appropriate domain as Common Name will be offered as the client certificate. - Public TLS Certificates rotate every couple of months. - Change a couple of `date-time` fields that only contained a date to pure `date` fields. This might result is a different type in the generated clients and the service-side validation will be more strict. Times included in values will no longer be silently dropped, but will generate an error. - Change `Modeldata` model `waardebepalingsdatum` field to type `date` in OpenAPI spec. - Change `Bestemmingsdata` model `datumBestemmingplan` field to type `date` in OpenAPI spec. - Change `Bodemdata` model `datumLaatsteOnderzoek` field to type `date` in OpenAPI spec. - Change `Referentieobject` model `verkoopdatum` field to type `date` in OpenAPI spec. - Change `VorigeVerkoop` model `verkoopdatum` field to type `date` in OpenAPI spec. - Change `waarderingInputParameters` model `peildatum` field to type `date` in OpenAPI spec. This is an input field and will now require a date without a time. - Add `desktopTaxatieHerwaardering` product to enumeration `ProductType`. - The service no longer returns CORS headers. - Actions now correctly report the 'application/problem+json' Content-Type in the documentation for the `HTTP 422 Unprocessable Entity` responses. - Added `energielabelData` field to `Objectdata` model to contain the extra information about the energy label. - The OpenAPI spec generation was changed slightly and thus the generated and published clients might be affected. There might be some slight breaking changes at compile time, but the functionality remains the same. - For example for --- README.md | 54 +-- calcasa/api/__init__.py | 6 +- calcasa/api/api/adressen_api.py | 4 +- calcasa/api/api/bestemmingsplannen_api.py | 4 +- calcasa/api/api/bodem_api.py | 4 +- calcasa/api/api/buurt_api.py | 4 +- calcasa/api/api/callbacks_api.py | 20 +- calcasa/api/api/configuratie_api.py | 4 +- calcasa/api/api/facturen_api.py | 4 +- calcasa/api/api/fotos_api.py | 4 +- calcasa/api/api/funderingen_api.py | 4 +- calcasa/api/api/geldverstrekkers_api.py | 9 +- calcasa/api/api/rapporten_api.py | 4 +- calcasa/api/api/waarderingen_api.py | 4 +- calcasa/api/api_client.py | 6 +- calcasa/api/configuration.py | 8 +- calcasa/api/exceptions.py | 4 +- calcasa/api/model/aanvraagdoel.py | 4 +- calcasa/api/model/adres.py | 4 +- calcasa/api/model/adres_info.py | 24 +- calcasa/api/model/adres_info_adres.py | 347 ---------------- calcasa/api/model/adres_info_notities.py | 349 ---------------- calcasa/api/model/bestemmingsdata.py | 10 +- calcasa/api/model/bodem_status_type.py | 4 +- calcasa/api/model/bodemdata.py | 16 +- calcasa/api/model/business_rules_code.py | 4 +- .../model/business_rules_problem_details.py | 10 +- calcasa/api/model/callback.py | 4 +- calcasa/api/model/callback_inschrijving.py | 8 +- calcasa/api/model/cbs_indeling.py | 4 +- calcasa/api/model/energielabel.py | 4 +- ...dering_rapport.py => energielabel_data.py} | 106 ++--- calcasa/api/model/factuur.py | 4 +- calcasa/api/model/foto.py | 4 +- calcasa/api/model/fundering_data_bron.py | 4 +- calcasa/api/model/fundering_herstel_type.py | 4 +- calcasa/api/model/fundering_risico.py | 16 +- calcasa/api/model/fundering_risico_label.py | 4 +- calcasa/api/model/fundering_soort_bron.py | 4 +- calcasa/api/model/fundering_type.py | 4 +- calcasa/api/model/fundering_typering.py | 16 +- calcasa/api/model/funderingdata.py | 52 ++- .../funderingdata_bio_infectie_risico.py | 343 --------------- .../model/funderingdata_droogstand_risico.py | 343 --------------- .../funderingdata_optrekkend_vocht_risico.py | 343 --------------- calcasa/api/model/funderingdata_typering.py | 343 --------------- calcasa/api/model/gebiedsdata.py | 4 +- calcasa/api/model/geldverstrekker.py | 4 +- .../model/http_validation_problem_details.py | 351 ---------------- .../model/invalid_argument_problem_details.py | 4 +- calcasa/api/model/json_patch_document.py | 4 +- calcasa/api/model/klantwaarde_type.py | 4 +- calcasa/api/model/kwartaal.py | 4 +- calcasa/api/model/modeldata.py | 10 +- .../api/model/not_found_problem_details.py | 4 +- calcasa/api/model/notitie.py | 4 +- calcasa/api/model/notities.py | 34 +- calcasa/api/model/objectdata.py | 22 +- calcasa/api/model/omgevingsdata.py | 46 +- calcasa/api/model/omgevingsdata_buurt.py | 363 ---------------- calcasa/api/model/omgevingsdata_gemeente.py | 363 ---------------- calcasa/api/model/omgevingsdata_land.py | 363 ---------------- calcasa/api/model/omgevingsdata_provincie.py | 363 ---------------- calcasa/api/model/omgevingsdata_wijk.py | 363 ---------------- calcasa/api/model/operation.py | 4 +- calcasa/api/model/operation_type.py | 4 +- .../permissions_denied_problem_details.py | 4 +- calcasa/api/model/problem_details.py | 4 +- calcasa/api/model/product_type.py | 13 +- calcasa/api/model/rapport.py | 4 +- calcasa/api/model/referentieobject.py | 40 +- calcasa/api/model/referentieobject_adres.py | 347 ---------------- .../model/referentieobject_cbs_indeling.py | 343 --------------- calcasa/api/model/referentieobject_object.py | 355 ---------------- .../resource_exhausted_problem_details.py | 4 +- calcasa/api/model/taxatiedata.py | 10 +- calcasa/api/model/taxatiestatus.py | 4 +- .../api/model/validation_problem_details.py | 4 +- calcasa/api/model/verkoop_bijzonderheden.py | 4 +- calcasa/api/model/vorige_verkoop.py | 10 +- calcasa/api/model/waardering.py | 90 ++-- calcasa/api/model/waardering_cbs_indeling.py | 343 --------------- calcasa/api/model/waardering_factuur.py | 335 --------------- .../api/model/waardering_input_parameters.py | 28 +- calcasa/api/model/waardering_model.py | 351 ---------------- calcasa/api/model/waardering_object.py | 355 ---------------- calcasa/api/model/waardering_ontwikkeling.py | 4 +- .../model/waardering_ontwikkeling_kwartaal.py | 14 +- ...ardering_ontwikkeling_kwartaal_kwartaal.py | 335 --------------- .../api/model/waardering_originele_input.py | 393 ------------------ calcasa/api/model/waardering_status.py | 4 +- calcasa/api/model/waardering_taxatie.py | 345 --------------- .../api/model/waardering_webhook_payload.py | 16 +- .../api/model/waardering_zoek_parameters.py | 22 +- calcasa/api/model/woning_type.py | 4 +- calcasa/api/model_utils.py | 4 +- calcasa/api/models/__init__.py | 24 +- calcasa/api/rest.py | 4 +- setup.py | 6 +- 99 files changed, 435 insertions(+), 8235 deletions(-) delete mode 100644 calcasa/api/model/adres_info_adres.py delete mode 100644 calcasa/api/model/adres_info_notities.py rename calcasa/api/model/{waardering_rapport.py => energielabel_data.py} (77%) delete mode 100644 calcasa/api/model/funderingdata_bio_infectie_risico.py delete mode 100644 calcasa/api/model/funderingdata_droogstand_risico.py delete mode 100644 calcasa/api/model/funderingdata_optrekkend_vocht_risico.py delete mode 100644 calcasa/api/model/funderingdata_typering.py delete mode 100644 calcasa/api/model/http_validation_problem_details.py delete mode 100644 calcasa/api/model/omgevingsdata_buurt.py delete mode 100644 calcasa/api/model/omgevingsdata_gemeente.py delete mode 100644 calcasa/api/model/omgevingsdata_land.py delete mode 100644 calcasa/api/model/omgevingsdata_provincie.py delete mode 100644 calcasa/api/model/omgevingsdata_wijk.py delete mode 100644 calcasa/api/model/referentieobject_adres.py delete mode 100644 calcasa/api/model/referentieobject_cbs_indeling.py delete mode 100644 calcasa/api/model/referentieobject_object.py delete mode 100644 calcasa/api/model/waardering_cbs_indeling.py delete mode 100644 calcasa/api/model/waardering_factuur.py delete mode 100644 calcasa/api/model/waardering_model.py delete mode 100644 calcasa/api/model/waardering_object.py delete mode 100644 calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py delete mode 100644 calcasa/api/model/waardering_originele_input.py delete mode 100644 calcasa/api/model/waardering_taxatie.py diff --git a/README.md b/README.md index 1fdd92a..2f54eb4 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,28 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog +### 2023-10-24 (v1.3.0) +- Add `geldverstrekker` field to the `CallbackInschrijving` model. +- Add support for mTLS on the callback service. + - By default when requested by the target server the public CA signed TLS certificate with the appropriate domain as Common Name will be offered as the client certificate. + - Public TLS Certificates rotate every couple of months. +- Change a couple of `date-time` fields that only contained a date to pure `date` fields. This might result is a different type in the generated clients and the service-side validation will be more strict. Times included in values will no longer be silently dropped, but will generate an error. + - Change `Modeldata` model `waardebepalingsdatum` field to type `date` in OpenAPI spec. + - Change `Bestemmingsdata` model `datumBestemmingplan` field to type `date` in OpenAPI spec. + - Change `Bodemdata` model `datumLaatsteOnderzoek` field to type `date` in OpenAPI spec. + - Change `Referentieobject` model `verkoopdatum` field to type `date` in OpenAPI spec. + - Change `VorigeVerkoop` model `verkoopdatum` field to type `date` in OpenAPI spec. + - Change `waarderingInputParameters` model `peildatum` field to type `date` in OpenAPI spec. This is an input field and will now require a date without a time. +- Add `desktopTaxatieHerwaardering` product to enumeration `ProductType`. +- The service no longer returns CORS headers. +- Actions now correctly report the 'application/problem+json' Content-Type in the documentation for the `HTTP 422 Unprocessable Entity` responses. +- Added `energielabelData` field to `Objectdata` model to contain the extra information about the energy label. +- The OpenAPI spec generation was changed slightly and thus the generated and published clients might be affected. There might be some slight breaking changes at compile time, but the functionality remains the same. + - For example for C# and PHP `AdresInfoAdres` is now just covered by `Adres` + - Likewise for the `Omgevingsdata*` models that are now all covered by `Gebiedsdata` + - For a lot of the `Waardering*` models they are now using the correct model names, like `WaarderingModel` -> `Modeldata` + + ### 2023-04-17 (v1.2.1) - Add `externeReferentie` field to the `CallbackInschrijving` and `WaarderingWebhookPayload` models. @@ -148,8 +170,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.2.1 -- Package version: 1.2.1 +- API version: 1.3.0 +- Package version: 1.3.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -251,8 +273,8 @@ Class | Method | HTTP request | Description *BodemApi* | [**get_bodem_by_id**](docs/BodemApi.md#get_bodem_by_id) | **GET** /api/v1/bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). *BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v1/buurt/{buurtId} | 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** /api/v1/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** /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Verwijder de callback inschrijving voor deze client en dit adres. -*CallbacksApi* | [**get_notification_subscription**](docs/CallbacksApi.md#get_notification_subscription) | **GET** /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Haal de callback inschrijving op voor deze client en dit adres. +*CallbacksApi* | [**delete_notification_subscription**](docs/CallbacksApi.md#delete_notification_subscription) | **DELETE** /api/v1/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** /api/v1/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** /api/v1/callbacks/inschrijvingen | Haal de callback inschrijvingen binnen voor deze client. *ConfiguratieApi* | [**get_callbacks**](docs/ConfiguratieApi.md#get_callbacks) | **GET** /api/v1/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client. *ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /api/v1/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client. @@ -273,8 +295,6 @@ Class | Method | HTTP request | Description - [Aanvraagdoel](docs/Aanvraagdoel.md) - [Adres](docs/Adres.md) - [AdresInfo](docs/AdresInfo.md) - - [AdresInfoAdres](docs/AdresInfoAdres.md) - - [AdresInfoNotities](docs/AdresInfoNotities.md) - [Bestemmingsdata](docs/Bestemmingsdata.md) - [BodemStatusType](docs/BodemStatusType.md) - [Bodemdata](docs/Bodemdata.md) @@ -284,6 +304,7 @@ Class | Method | HTTP request | Description - [CallbackInschrijving](docs/CallbackInschrijving.md) - [CbsIndeling](docs/CbsIndeling.md) - [Energielabel](docs/Energielabel.md) + - [EnergielabelData](docs/EnergielabelData.md) - [Factuur](docs/Factuur.md) - [Foto](docs/Foto.md) - [FunderingDataBron](docs/FunderingDataBron.md) @@ -294,13 +315,8 @@ Class | Method | HTTP request | Description - [FunderingType](docs/FunderingType.md) - [FunderingTypering](docs/FunderingTypering.md) - [Funderingdata](docs/Funderingdata.md) - - [FunderingdataBioInfectieRisico](docs/FunderingdataBioInfectieRisico.md) - - [FunderingdataDroogstandRisico](docs/FunderingdataDroogstandRisico.md) - - [FunderingdataOptrekkendVochtRisico](docs/FunderingdataOptrekkendVochtRisico.md) - - [FunderingdataTypering](docs/FunderingdataTypering.md) - [Gebiedsdata](docs/Gebiedsdata.md) - [Geldverstrekker](docs/Geldverstrekker.md) - - [HttpValidationProblemDetails](docs/HttpValidationProblemDetails.md) - [InvalidArgumentProblemDetails](docs/InvalidArgumentProblemDetails.md) - [JsonPatchDocument](docs/JsonPatchDocument.md) - [KlantwaardeType](docs/KlantwaardeType.md) @@ -311,11 +327,6 @@ Class | Method | HTTP request | Description - [Notities](docs/Notities.md) - [Objectdata](docs/Objectdata.md) - [Omgevingsdata](docs/Omgevingsdata.md) - - [OmgevingsdataBuurt](docs/OmgevingsdataBuurt.md) - - [OmgevingsdataGemeente](docs/OmgevingsdataGemeente.md) - - [OmgevingsdataLand](docs/OmgevingsdataLand.md) - - [OmgevingsdataProvincie](docs/OmgevingsdataProvincie.md) - - [OmgevingsdataWijk](docs/OmgevingsdataWijk.md) - [Operation](docs/Operation.md) - [OperationType](docs/OperationType.md) - [PermissionsDeniedProblemDetails](docs/PermissionsDeniedProblemDetails.md) @@ -323,9 +334,6 @@ Class | Method | HTTP request | Description - [ProductType](docs/ProductType.md) - [Rapport](docs/Rapport.md) - [Referentieobject](docs/Referentieobject.md) - - [ReferentieobjectAdres](docs/ReferentieobjectAdres.md) - - [ReferentieobjectCbsIndeling](docs/ReferentieobjectCbsIndeling.md) - - [ReferentieobjectObject](docs/ReferentieobjectObject.md) - [ResourceExhaustedProblemDetails](docs/ResourceExhaustedProblemDetails.md) - [Taxatiedata](docs/Taxatiedata.md) - [Taxatiestatus](docs/Taxatiestatus.md) @@ -333,18 +341,10 @@ Class | Method | HTTP request | Description - [VerkoopBijzonderheden](docs/VerkoopBijzonderheden.md) - [VorigeVerkoop](docs/VorigeVerkoop.md) - [Waardering](docs/Waardering.md) - - [WaarderingCbsIndeling](docs/WaarderingCbsIndeling.md) - - [WaarderingFactuur](docs/WaarderingFactuur.md) - [WaarderingInputParameters](docs/WaarderingInputParameters.md) - - [WaarderingModel](docs/WaarderingModel.md) - - [WaarderingObject](docs/WaarderingObject.md) - [WaarderingOntwikkeling](docs/WaarderingOntwikkeling.md) - [WaarderingOntwikkelingKwartaal](docs/WaarderingOntwikkelingKwartaal.md) - - [WaarderingOntwikkelingKwartaalKwartaal](docs/WaarderingOntwikkelingKwartaalKwartaal.md) - - [WaarderingOrigineleInput](docs/WaarderingOrigineleInput.md) - - [WaarderingRapport](docs/WaarderingRapport.md) - [WaarderingStatus](docs/WaarderingStatus.md) - - [WaarderingTaxatie](docs/WaarderingTaxatie.md) - [WaarderingWebhookPayload](docs/WaarderingWebhookPayload.md) - [WaarderingZoekParameters](docs/WaarderingZoekParameters.md) - [WoningType](docs/WoningType.md) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index 21af013..ef47c12 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -1,7 +1,7 @@ # flake8: noqa """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.2.1" +__version__ = "1.3.0" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index a67465c..8b7d121 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index 11e74b7..1813dd6 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index 5d496ff..badbb08 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 8dae67b..4084b70 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index cc328ce..786117b 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -118,6 +118,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'bag_nummeraanduiding_id', + 'geldverstrekker', ], 'required': [ 'bag_nummeraanduiding_id', @@ -137,12 +138,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'bag_nummeraanduiding_id': (int,), + 'geldverstrekker': + (str,), }, 'attribute_map': { 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', + 'geldverstrekker': 'geldverstrekker', }, 'location_map': { 'bag_nummeraanduiding_id': 'path', + 'geldverstrekker': 'query', }, 'collection_format_map': { } @@ -170,6 +175,7 @@ def __init__(self, api_client=None): params_map={ 'all': [ 'bag_nummeraanduiding_id', + 'geldverstrekker', ], 'required': [ 'bag_nummeraanduiding_id', @@ -189,12 +195,16 @@ def __init__(self, api_client=None): 'openapi_types': { 'bag_nummeraanduiding_id': (int,), + 'geldverstrekker': + (str,), }, 'attribute_map': { 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', + 'geldverstrekker': 'geldverstrekker', }, 'location_map': { 'bag_nummeraanduiding_id': 'path', + 'geldverstrekker': 'query', }, 'collection_format_map': { } @@ -339,7 +349,7 @@ def delete_notification_subscription( bag_nummeraanduiding_id, **kwargs ): - """Verwijder de callback inschrijving voor deze client en dit adres. # noqa: E501 + """Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -351,6 +361,7 @@ def delete_notification_subscription( bag_nummeraanduiding_id (int): Keyword Args: + geldverstrekker (str): [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 @@ -421,7 +432,7 @@ def get_notification_subscription( bag_nummeraanduiding_id, **kwargs ): - """Haal de callback inschrijving op voor deze client en dit adres. # noqa: E501 + """Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker. # 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 @@ -434,6 +445,7 @@ def get_notification_subscription( bag_nummeraanduiding_id (int): Keyword Args: + geldverstrekker (str): [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 diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index 0e40c14..f474e88 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 41579b5..47591e2 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index d0d31d2..9b7831e 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 1c6b273..e54b48d 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index d51689d..4ec5fc0 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -36,6 +36,7 @@ from calcasa.api.model.geldverstrekker import Geldverstrekker 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 class GeldverstrekkersApi(object): @@ -82,7 +83,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'product_type': - (bool, date, datetime, dict, float, int, list, str, none_type,), + (ProductType,), }, 'attribute_map': { 'product_type': 'productType', @@ -117,7 +118,7 @@ def get_geldverstrekkers( >>> result = thread.get() Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Een parameter om de lijst te filteren op gesupporte producttypen. + product_type (ProductType): Een parameter om de lijst te filteren op gesupporte producttypen. Keyword Args: _return_http_data_only (bool): response data without head status diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index ae41eee..7d47f35 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index 1952a1b..c73eb97 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 6851d0f..917ce62 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.2.1' + self.user_agent = 'Calcasa Python Api Client/1.3.0' def __enter__(self): return self diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 2c98b5e..19dd67b 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -406,8 +406,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.2.1\n"\ - "SDK Package Version: 1.2.1".\ + "Version of the API: 1.3.0\n"\ + "SDK Package Version: 1.3.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index ced267b..cfd89da 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index 5f774ee..dfbcac5 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index fe8ec5d..9c762e3 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index 9a377d9..a9d7d6c 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,10 +42,10 @@ def lazy_import(): - from calcasa.api.model.adres_info_adres import AdresInfoAdres - from calcasa.api.model.adres_info_notities import AdresInfoNotities - globals()['AdresInfoAdres'] = AdresInfoAdres - globals()['AdresInfoNotities'] = AdresInfoNotities + from calcasa.api.model.adres import Adres + from calcasa.api.model.notities import Notities + globals()['Adres'] = Adres + globals()['Notities'] = Notities class AdresInfo(ModelNormal): @@ -95,8 +95,8 @@ def openapi_types(): lazy_import() return { 'bag_nummeraanduiding_id': (int,), # noqa: E501 - 'adres': (AdresInfoAdres,), # noqa: E501 - 'notities': (AdresInfoNotities,), # noqa: E501 + 'adres': (Adres,), # noqa: E501 + 'notities': (Notities,), # noqa: E501 'adres_gevonden': (bool, none_type,), # noqa: E501 } @@ -154,8 +154,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 (AdresInfoAdres): [optional] # noqa: E501 - notities (AdresInfoNotities): [optional] # noqa: E501 + adres (Adres): [optional] # noqa: E501 + notities (Notities): [optional] # noqa: E501 adres_gevonden (bool, none_type): Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.. [optional] # noqa: E501 """ @@ -243,8 +243,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 (AdresInfoAdres): [optional] # noqa: E501 - notities (AdresInfoNotities): [optional] # noqa: E501 + adres (Adres): [optional] # noqa: E501 + notities (Notities): [optional] # noqa: E501 adres_gevonden (bool, none_type): Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/adres_info_adres.py b/calcasa/api/model/adres_info_adres.py deleted file mode 100644 index 225257c..0000000 --- a/calcasa/api/model/adres_info_adres.py +++ /dev/null @@ -1,347 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.adres import Adres - globals()['Adres'] = Adres - - -class AdresInfoAdres(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdresInfoAdres - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """AdresInfoAdres - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Adres, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/adres_info_notities.py b/calcasa/api/model/adres_info_notities.py deleted file mode 100644 index b13b9d8..0000000 --- a/calcasa/api/model/adres_info_notities.py +++ /dev/null @@ -1,349 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.notitie import Notitie - from calcasa.api.model.notities import Notities - globals()['Notitie'] = Notitie - globals()['Notities'] = Notities - - -class AdresInfoNotities(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdresInfoNotities - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """AdresInfoNotities - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Notities, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index 8fbee54..8c3d079 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def openapi_types(): """ return { 'enkelbestemming': (str, none_type,), # noqa: E501 - 'datum_bestemmingplan': (datetime, none_type,), # noqa: E501 + 'datum_bestemmingplan': (date, none_type,), # noqa: E501 } @cached_property @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + datum_bestemmingplan (date, none_type): De datum waarop dit bestemmingsplan vastgelegd is.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + datum_bestemmingplan (date, none_type): De datum waarop dit bestemmingsplan vastgelegd is.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index ed4f5ad..956c5bc 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index 816d204..61e308d 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -92,8 +92,8 @@ def openapi_types(): """ lazy_import() return { - 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 - 'datum_laatste_onderzoek': (datetime, none_type,), # noqa: E501 + 'status': (BodemStatusType,), # noqa: E501 + 'datum_laatste_onderzoek': (date, none_type,), # noqa: E501 'url': (str, none_type,), # noqa: E501 } @@ -149,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + status (BodemStatusType): [optional] # noqa: E501 + datum_laatste_onderzoek (date, 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 """ @@ -237,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + status (BodemStatusType): [optional] # noqa: E501 + datum_laatste_onderzoek (date, 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 """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index 1dbd496..7b320ea 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index 07f19ea..798731f 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -99,7 +99,7 @@ def openapi_types(): """ lazy_import() return { - 'business_rules_code': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'business_rules_code': (BusinessRulesCode,), # noqa: E501 'type': (str, none_type,), # noqa: E501 'title': (str, none_type,), # noqa: E501 'status': (int, none_type,), # noqa: E501 @@ -162,7 +162,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + business_rules_code (BusinessRulesCode): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 title (str, none_type): [optional] # noqa: E501 status (int, none_type): [optional] # noqa: E501 @@ -253,7 +253,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + business_rules_code (BusinessRulesCode): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 title (str, none_type): [optional] # noqa: E501 status (int, none_type): [optional] # noqa: E501 diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index 31aeed1..ef96e1c 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback_inschrijving.py b/calcasa/api/model/callback_inschrijving.py index 876c4fb..66f6a63 100644 --- a/calcasa/api/model/callback_inschrijving.py +++ b/calcasa/api/model/callback_inschrijving.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -90,6 +90,7 @@ def openapi_types(): 'bag_nummeraanduiding_id': (int,), # noqa: E501 'geldig_tot': (datetime,), # noqa: E501 'externe_referentie': (str, none_type,), # noqa: E501 + 'geldverstrekker': (str, none_type,), # noqa: E501 } @cached_property @@ -101,6 +102,7 @@ def discriminator(): 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501 'geldig_tot': 'geldigTot', # noqa: E501 'externe_referentie': 'externeReferentie', # noqa: E501 + 'geldverstrekker': 'geldverstrekker', # noqa: E501 } read_only_vars = { @@ -149,6 +151,7 @@ def _from_openapi_data(cls, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs through its discriminator because we passed in _visited_composed_classes = (Animal,) externe_referentie (str, none_type): Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.. [optional] # noqa: E501 + geldverstrekker (str, none_type): Optioneel veld om alleen op aanvragen voor een bepaalde geldverstrekker in te schrijven.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,6 +244,7 @@ def __init__(self, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs): # noq through its discriminator because we passed in _visited_composed_classes = (Animal,) externe_referentie (str, none_type): Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.. [optional] # noqa: E501 + geldverstrekker (str, none_type): Optioneel veld om alleen op aanvragen voor een bepaalde geldverstrekker in te schrijven.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py index 0e4f330..fadf9fc 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/energielabel.py b/calcasa/api/model/energielabel.py index 14bee60..6d995c3 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_rapport.py b/calcasa/api/model/energielabel_data.py similarity index 77% rename from calcasa/api/model/waardering_rapport.py rename to calcasa/api/model/energielabel_data.py index 9a9753f..58d20c6 100644 --- a/calcasa/api/model/waardering_rapport.py +++ b/calcasa/api/model/energielabel_data.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -41,12 +41,8 @@ from calcasa.api.exceptions import ApiAttributeError -def lazy_import(): - from calcasa.api.model.rapport import Rapport - globals()['Rapport'] = Rapport - -class WaarderingRapport(ModelComposed): +class EnergielabelData(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -76,16 +72,9 @@ class WaarderingRapport(ModelComposed): 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 + additional_properties_type = None - _nullable = True + _nullable = False @cached_property def openapi_types(): @@ -97,9 +86,10 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'id': (str,), # noqa: E501 + 'aantal_sterren': (int, none_type,), # noqa: E501 + 'geldig_tot': (date, none_type,), # noqa: E501 + 'registratiedatum': (date, none_type,), # noqa: E501 } @cached_property @@ -108,16 +98,20 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 + 'aantal_sterren': 'aantalSterren', # noqa: E501 + 'geldig_tot': 'geldigTot', # noqa: E501 + 'registratiedatum': 'registratiedatum', # noqa: E501 } read_only_vars = { } + _composed_schemas = {} + @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingRapport - a model defined in OpenAPI + """EnergielabelData - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -150,11 +144,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + aantal_sterren (int, none_type): 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.. [optional] # noqa: E501 + geldig_tot (date, none_type): De registratiedatum. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 + registratiedatum (date, none_type): De datum tot wanneer het label geldig is. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -182,29 +178,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 \ + if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: + self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) - return self required_properties = set([ @@ -214,14 +195,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 '_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 - """WaarderingRapport - a model defined in OpenAPI + """EnergielabelData - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -254,7 +232,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + aantal_sterren (int, none_type): 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.. [optional] # noqa: E501 + geldig_tot (date, none_type): De registratiedatum. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 + registratiedatum (date, none_type): De datum tot wanneer het label geldig is. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -284,48 +264,14 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 \ + if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: + 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.") - - @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': [ - Rapport, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 040e96c..354292f 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index 1766b10..730f5f8 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index b9b64c8..ab5cddb 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index a23796f..0b6b382 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index e635e84..c870a76 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -94,8 +94,8 @@ def openapi_types(): """ lazy_import() 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 + 'label': (FunderingRisicoLabel,), # noqa: E501 + 'bron': (FunderingSoortBron,), # noqa: E501 'omschrijving': (str,), # noqa: E501 } @@ -151,8 +151,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + label (FunderingRisicoLabel): [optional] # noqa: E501 + bron (FunderingSoortBron): [optional] # noqa: E501 omschrijving (str): De omschrijving van het risico.. [optional] # noqa: E501 """ @@ -239,8 +239,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + label (FunderingRisicoLabel): [optional] # noqa: E501 + bron (FunderingSoortBron): [optional] # noqa: E501 omschrijving (str): De omschrijving van het risico.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index 727dbdb..9982159 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index c184206..560ecff 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index 2d41639..e61ef89 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index ba85bb1..9da10f6 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -94,8 +94,8 @@ def openapi_types(): """ lazy_import() 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 + 'type': (FunderingType,), # noqa: E501 + 'bron': (FunderingSoortBron,), # noqa: E501 'omschrijving': (str,), # noqa: E501 } @@ -151,8 +151,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + type (FunderingType): [optional] # noqa: E501 + bron (FunderingSoortBron): [optional] # noqa: E501 omschrijving (str): De omschrijving van het funderingstype.. [optional] # noqa: E501 """ @@ -239,8 +239,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + type (FunderingType): [optional] # noqa: E501 + bron (FunderingSoortBron): [optional] # noqa: E501 omschrijving (str): De omschrijving van het funderingstype.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index 00e3c0c..201a55f 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -44,16 +44,12 @@ def lazy_import(): from calcasa.api.model.fundering_data_bron import FunderingDataBron from calcasa.api.model.fundering_herstel_type import FunderingHerstelType - from calcasa.api.model.funderingdata_bio_infectie_risico import FunderingdataBioInfectieRisico - from calcasa.api.model.funderingdata_droogstand_risico import FunderingdataDroogstandRisico - from calcasa.api.model.funderingdata_optrekkend_vocht_risico import FunderingdataOptrekkendVochtRisico - from calcasa.api.model.funderingdata_typering import FunderingdataTypering + from calcasa.api.model.fundering_risico import FunderingRisico + from calcasa.api.model.fundering_typering import FunderingTypering globals()['FunderingDataBron'] = FunderingDataBron globals()['FunderingHerstelType'] = FunderingHerstelType - globals()['FunderingdataBioInfectieRisico'] = FunderingdataBioInfectieRisico - globals()['FunderingdataDroogstandRisico'] = FunderingdataDroogstandRisico - globals()['FunderingdataOptrekkendVochtRisico'] = FunderingdataOptrekkendVochtRisico - globals()['FunderingdataTypering'] = FunderingdataTypering + globals()['FunderingRisico'] = FunderingRisico + globals()['FunderingTypering'] = FunderingTypering class Funderingdata(ModelNormal): @@ -102,13 +98,13 @@ def openapi_types(): """ lazy_import() return { - 'typering': (FunderingdataTypering,), # noqa: E501 - 'herstel_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 - 'droogstand_risico': (FunderingdataDroogstandRisico,), # noqa: E501 - 'optrekkend_vocht_risico': (FunderingdataOptrekkendVochtRisico,), # noqa: E501 - 'bio_infectie_risico': (FunderingdataBioInfectieRisico,), # noqa: E501 + 'typering': (FunderingTypering,), # noqa: E501 + 'herstel_type': (FunderingHerstelType,), # noqa: E501 + 'droogstand_risico': (FunderingRisico,), # noqa: E501 + 'optrekkend_vocht_risico': (FunderingRisico,), # noqa: E501 + 'bio_infectie_risico': (FunderingRisico,), # noqa: E501 'herstelkosten': (float, none_type,), # noqa: E501 - 'bron': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'bron': (FunderingDataBron,), # noqa: E501 } @cached_property @@ -167,13 +163,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - typering (FunderingdataTypering): [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 (FunderingdataDroogstandRisico): [optional] # noqa: E501 - optrekkend_vocht_risico (FunderingdataOptrekkendVochtRisico): [optional] # noqa: E501 - bio_infectie_risico (FunderingdataBioInfectieRisico): [optional] # noqa: E501 + typering (FunderingTypering): [optional] # noqa: E501 + herstel_type (FunderingHerstelType): [optional] # noqa: E501 + droogstand_risico (FunderingRisico): [optional] # noqa: E501 + optrekkend_vocht_risico (FunderingRisico): [optional] # noqa: E501 + bio_infectie_risico (FunderingRisico): [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 + bron (FunderingDataBron): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -259,13 +255,13 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - typering (FunderingdataTypering): [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 (FunderingdataDroogstandRisico): [optional] # noqa: E501 - optrekkend_vocht_risico (FunderingdataOptrekkendVochtRisico): [optional] # noqa: E501 - bio_infectie_risico (FunderingdataBioInfectieRisico): [optional] # noqa: E501 + typering (FunderingTypering): [optional] # noqa: E501 + herstel_type (FunderingHerstelType): [optional] # noqa: E501 + droogstand_risico (FunderingRisico): [optional] # noqa: E501 + optrekkend_vocht_risico (FunderingRisico): [optional] # noqa: E501 + bio_infectie_risico (FunderingRisico): [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 + bron (FunderingDataBron): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/funderingdata_bio_infectie_risico.py b/calcasa/api/model/funderingdata_bio_infectie_risico.py deleted file mode 100644 index e1e75fd..0000000 --- a/calcasa/api/model/funderingdata_bio_infectie_risico.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - 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 - globals()['FunderingRisico'] = FunderingRisico - globals()['FunderingRisicoLabel'] = FunderingRisicoLabel - globals()['FunderingSoortBron'] = FunderingSoortBron - - -class FunderingdataBioInfectieRisico(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """FunderingdataBioInfectieRisico - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """FunderingdataBioInfectieRisico - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - FunderingRisico, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/funderingdata_droogstand_risico.py b/calcasa/api/model/funderingdata_droogstand_risico.py deleted file mode 100644 index 1b2db56..0000000 --- a/calcasa/api/model/funderingdata_droogstand_risico.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - 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 - globals()['FunderingRisico'] = FunderingRisico - globals()['FunderingRisicoLabel'] = FunderingRisicoLabel - globals()['FunderingSoortBron'] = FunderingSoortBron - - -class FunderingdataDroogstandRisico(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """FunderingdataDroogstandRisico - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """FunderingdataDroogstandRisico - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - FunderingRisico, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py b/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py deleted file mode 100644 index db2ca27..0000000 --- a/calcasa/api/model/funderingdata_optrekkend_vocht_risico.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - 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 - globals()['FunderingRisico'] = FunderingRisico - globals()['FunderingRisicoLabel'] = FunderingRisicoLabel - globals()['FunderingSoortBron'] = FunderingSoortBron - - -class FunderingdataOptrekkendVochtRisico(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """FunderingdataOptrekkendVochtRisico - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """FunderingdataOptrekkendVochtRisico - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - FunderingRisico, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/funderingdata_typering.py b/calcasa/api/model/funderingdata_typering.py deleted file mode 100644 index 55bc19b..0000000 --- a/calcasa/api/model/funderingdata_typering.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - 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 - globals()['FunderingSoortBron'] = FunderingSoortBron - globals()['FunderingType'] = FunderingType - globals()['FunderingTypering'] = FunderingTypering - - -class FunderingdataTypering(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """FunderingdataTypering - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """FunderingdataTypering - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - FunderingTypering, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index 77f402d..86cd928 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index 3d07872..2eb09cb 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/http_validation_problem_details.py b/calcasa/api/model/http_validation_problem_details.py deleted file mode 100644 index bd263a2..0000000 --- a/calcasa/api/model/http_validation_problem_details.py +++ /dev/null @@ -1,351 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails - - -class HttpValidationProblemDetails(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],)},), # 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 - """HttpValidationProblemDetails - 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],)}): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """HttpValidationProblemDetails - 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],)}): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index f561e26..63270de 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index 220c688..31095d1 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index ff8b5d7..43aec96 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index 84d01bf..004f1aa 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index df40e27..cfc8826 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -91,7 +91,7 @@ def openapi_types(): 'marktwaarde_ondergrens': (int,), # noqa: E501 'marktwaarde_bovengrens': (int,), # noqa: E501 'confidence_level': (float,), # noqa: E501 - 'waardebepalingsdatum': (datetime,), # noqa: E501 + 'waardebepalingsdatum': (date,), # noqa: E501 'executiewaarde': (int,), # noqa: E501 } @@ -154,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # 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 + waardebepalingsdatum (date): In UTC.. [optional] # noqa: E501 executiewaarde (int): In hele euros.. [optional] # noqa: E501 """ @@ -245,7 +245,7 @@ def __init__(self, *args, **kwargs): # 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 + waardebepalingsdatum (date): In UTC.. [optional] # noqa: E501 executiewaarde (int): In hele euros.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index 560fa37..dbb436f 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index d566f68..2eb2d7f 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index 608fe45..b84f68b 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -92,11 +92,11 @@ def openapi_types(): """ lazy_import() 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 + 'straat': (Notitie,), # noqa: E501 + 'huisnummer': (Notitie,), # noqa: E501 + 'huisnummertoevoeging': (Notitie,), # noqa: E501 + 'postcode': (Notitie,), # noqa: E501 + 'woonplaats': (Notitie,), # noqa: E501 } @cached_property @@ -153,11 +153,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + straat (Notitie): [optional] # noqa: E501 + huisnummer (Notitie): [optional] # noqa: E501 + huisnummertoevoeging (Notitie): [optional] # noqa: E501 + postcode (Notitie): [optional] # noqa: E501 + woonplaats (Notitie): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,11 +243,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + straat (Notitie): [optional] # noqa: E501 + huisnummer (Notitie): [optional] # noqa: E501 + huisnummertoevoeging (Notitie): [optional] # noqa: E501 + postcode (Notitie): [optional] # noqa: E501 + woonplaats (Notitie): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index 064e61c..26a80bd 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -43,8 +43,10 @@ def lazy_import(): from calcasa.api.model.energielabel import Energielabel + from calcasa.api.model.energielabel_data import EnergielabelData from calcasa.api.model.woning_type import WoningType globals()['Energielabel'] = Energielabel + globals()['EnergielabelData'] = EnergielabelData globals()['WoningType'] = WoningType @@ -94,12 +96,13 @@ def openapi_types(): """ lazy_import() return { - 'woning_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'woning_type': (WoningType,), # 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 + 'energielabel': (Energielabel,), # noqa: E501 + 'energielabel_data': (EnergielabelData,), # noqa: E501 } @cached_property @@ -114,6 +117,7 @@ def discriminator(): 'perceeloppervlak': 'perceeloppervlak', # noqa: E501 'inhoud': 'inhoud', # noqa: E501 'energielabel': 'energielabel', # noqa: E501 + 'energielabel_data': 'energielabelData', # noqa: E501 } read_only_vars = { @@ -157,12 +161,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + woning_type (WoningType): [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 + energielabel (Energielabel): [optional] # noqa: E501 + energielabel_data (EnergielabelData): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -248,12 +253,13 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + woning_type (WoningType): [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 + energielabel (Energielabel): [optional] # noqa: E501 + energielabel_data (EnergielabelData): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index d859b7f..9e0e034 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,16 +42,8 @@ def lazy_import(): - from calcasa.api.model.omgevingsdata_buurt import OmgevingsdataBuurt - from calcasa.api.model.omgevingsdata_gemeente import OmgevingsdataGemeente - from calcasa.api.model.omgevingsdata_land import OmgevingsdataLand - from calcasa.api.model.omgevingsdata_provincie import OmgevingsdataProvincie - from calcasa.api.model.omgevingsdata_wijk import OmgevingsdataWijk - globals()['OmgevingsdataBuurt'] = OmgevingsdataBuurt - globals()['OmgevingsdataGemeente'] = OmgevingsdataGemeente - globals()['OmgevingsdataLand'] = OmgevingsdataLand - globals()['OmgevingsdataProvincie'] = OmgevingsdataProvincie - globals()['OmgevingsdataWijk'] = OmgevingsdataWijk + from calcasa.api.model.gebiedsdata import Gebiedsdata + globals()['Gebiedsdata'] = Gebiedsdata class Omgevingsdata(ModelNormal): @@ -100,11 +92,11 @@ def openapi_types(): """ lazy_import() return { - 'buurt': (OmgevingsdataBuurt,), # noqa: E501 - 'wijk': (OmgevingsdataWijk,), # noqa: E501 - 'gemeente': (OmgevingsdataGemeente,), # noqa: E501 - 'provincie': (OmgevingsdataProvincie,), # noqa: E501 - 'land': (OmgevingsdataLand,), # noqa: E501 + 'buurt': (Gebiedsdata,), # noqa: E501 + 'wijk': (Gebiedsdata,), # noqa: E501 + 'gemeente': (Gebiedsdata,), # noqa: E501 + 'provincie': (Gebiedsdata,), # noqa: E501 + 'land': (Gebiedsdata,), # noqa: E501 } @cached_property @@ -161,11 +153,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - buurt (OmgevingsdataBuurt): [optional] # noqa: E501 - wijk (OmgevingsdataWijk): [optional] # noqa: E501 - gemeente (OmgevingsdataGemeente): [optional] # noqa: E501 - provincie (OmgevingsdataProvincie): [optional] # noqa: E501 - land (OmgevingsdataLand): [optional] # noqa: E501 + buurt (Gebiedsdata): [optional] # noqa: E501 + wijk (Gebiedsdata): [optional] # noqa: E501 + gemeente (Gebiedsdata): [optional] # noqa: E501 + provincie (Gebiedsdata): [optional] # noqa: E501 + land (Gebiedsdata): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -251,11 +243,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - buurt (OmgevingsdataBuurt): [optional] # noqa: E501 - wijk (OmgevingsdataWijk): [optional] # noqa: E501 - gemeente (OmgevingsdataGemeente): [optional] # noqa: E501 - provincie (OmgevingsdataProvincie): [optional] # noqa: E501 - land (OmgevingsdataLand): [optional] # noqa: E501 + buurt (Gebiedsdata): [optional] # noqa: E501 + wijk (Gebiedsdata): [optional] # noqa: E501 + gemeente (Gebiedsdata): [optional] # noqa: E501 + provincie (Gebiedsdata): [optional] # noqa: E501 + land (Gebiedsdata): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/omgevingsdata_buurt.py b/calcasa/api/model/omgevingsdata_buurt.py deleted file mode 100644 index ffa5bc9..0000000 --- a/calcasa/api/model/omgevingsdata_buurt.py +++ /dev/null @@ -1,363 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata - - -class OmgevingsdataBuurt(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """OmgevingsdataBuurt - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """OmgevingsdataBuurt - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Gebiedsdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/omgevingsdata_gemeente.py b/calcasa/api/model/omgevingsdata_gemeente.py deleted file mode 100644 index 6c9fa56..0000000 --- a/calcasa/api/model/omgevingsdata_gemeente.py +++ /dev/null @@ -1,363 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata - - -class OmgevingsdataGemeente(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """OmgevingsdataGemeente - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """OmgevingsdataGemeente - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Gebiedsdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/omgevingsdata_land.py b/calcasa/api/model/omgevingsdata_land.py deleted file mode 100644 index 8cc5b5a..0000000 --- a/calcasa/api/model/omgevingsdata_land.py +++ /dev/null @@ -1,363 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata - - -class OmgevingsdataLand(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """OmgevingsdataLand - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """OmgevingsdataLand - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Gebiedsdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/omgevingsdata_provincie.py b/calcasa/api/model/omgevingsdata_provincie.py deleted file mode 100644 index bf04be8..0000000 --- a/calcasa/api/model/omgevingsdata_provincie.py +++ /dev/null @@ -1,363 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata - - -class OmgevingsdataProvincie(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """OmgevingsdataProvincie - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """OmgevingsdataProvincie - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Gebiedsdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/omgevingsdata_wijk.py b/calcasa/api/model/omgevingsdata_wijk.py deleted file mode 100644 index 6932c82..0000000 --- a/calcasa/api/model/omgevingsdata_wijk.py +++ /dev/null @@ -1,363 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata - - -class OmgevingsdataWijk(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """OmgevingsdataWijk - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """OmgevingsdataWijk - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Gebiedsdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index 24e7c46..8fafd3d 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index a74660c..56feec6 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index 7bf28a7..db76412 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 8b2d0bd..2421298 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index 064df02..7646cd2 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -69,6 +69,7 @@ class ProductType(ModelSimple): 'MODELWAARDERISICO': "modelwaardeRisico", 'MODELWAARDEDESKTOPTAXATIE': "modelwaardeDesktopTaxatie", 'DESKTOPTAXATIE': "desktopTaxatie", + 'DESKTOPTAXATIEHERWAARDERING': "desktopTaxatieHerwaardering", }, } @@ -120,10 +121,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501 + args[0] (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # noqa: E501 Keyword Args: - value (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501 + value (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # 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. @@ -214,10 +215,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501 + args[0] (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # noqa: E501 Keyword Args: - value (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", ] # noqa: E501 + value (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # 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. diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index 1f56e63..aa334ca 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index dffeb5d..ddf95cc 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,15 +42,15 @@ def lazy_import(): + from calcasa.api.model.adres import Adres + from calcasa.api.model.cbs_indeling import CbsIndeling from calcasa.api.model.foto import Foto - from calcasa.api.model.referentieobject_adres import ReferentieobjectAdres - from calcasa.api.model.referentieobject_cbs_indeling import ReferentieobjectCbsIndeling - from calcasa.api.model.referentieobject_object import ReferentieobjectObject + from calcasa.api.model.objectdata import Objectdata from calcasa.api.model.verkoop_bijzonderheden import VerkoopBijzonderheden + globals()['Adres'] = Adres + globals()['CbsIndeling'] = CbsIndeling globals()['Foto'] = Foto - globals()['ReferentieobjectAdres'] = ReferentieobjectAdres - globals()['ReferentieobjectCbsIndeling'] = ReferentieobjectCbsIndeling - globals()['ReferentieobjectObject'] = ReferentieobjectObject + globals()['Objectdata'] = Objectdata globals()['VerkoopBijzonderheden'] = VerkoopBijzonderheden @@ -107,10 +107,10 @@ def openapi_types(): 'vierkantemeterprijs': (int,), # noqa: E501 'gecorrigeerde_vierkantemeterprijs': (int,), # noqa: E501 'geindexeerde_vierkantemeterprijs': (int,), # noqa: E501 - 'verkoopdatum': (datetime,), # noqa: E501 - 'adres': (ReferentieobjectAdres,), # noqa: E501 - 'object': (ReferentieobjectObject,), # noqa: E501 - 'cbs_indeling': (ReferentieobjectCbsIndeling,), # noqa: E501 + 'verkoopdatum': (date,), # noqa: E501 + 'adres': (Adres,), # noqa: E501 + 'object': (Objectdata,), # noqa: E501 + 'cbs_indeling': (CbsIndeling,), # noqa: E501 'fotos': ([Foto],), # noqa: E501 'bijzonderheden': ([VerkoopBijzonderheden],), # noqa: E501 } @@ -184,10 +184,10 @@ def _from_openapi_data(cls, *args, **kwargs): # 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 (ReferentieobjectAdres): [optional] # noqa: E501 - object (ReferentieobjectObject): [optional] # noqa: E501 - cbs_indeling (ReferentieobjectCbsIndeling): [optional] # noqa: E501 + verkoopdatum (date): In UTC.. [optional] # noqa: E501 + adres (Adres): [optional] # noqa: E501 + object (Objectdata): [optional] # noqa: E501 + cbs_indeling (CbsIndeling): [optional] # noqa: E501 fotos ([Foto]): Fotos van het referentieobject.. [optional] # noqa: E501 bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501 """ @@ -282,10 +282,10 @@ def __init__(self, *args, **kwargs): # 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 (ReferentieobjectAdres): [optional] # noqa: E501 - object (ReferentieobjectObject): [optional] # noqa: E501 - cbs_indeling (ReferentieobjectCbsIndeling): [optional] # noqa: E501 + verkoopdatum (date): In UTC.. [optional] # noqa: E501 + adres (Adres): [optional] # noqa: E501 + object (Objectdata): [optional] # noqa: E501 + cbs_indeling (CbsIndeling): [optional] # noqa: E501 fotos ([Foto]): Fotos van het referentieobject.. [optional] # noqa: E501 bijzonderheden ([VerkoopBijzonderheden]): Eventuele bijzonderheden van de transactie.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/referentieobject_adres.py b/calcasa/api/model/referentieobject_adres.py deleted file mode 100644 index fa98f42..0000000 --- a/calcasa/api/model/referentieobject_adres.py +++ /dev/null @@ -1,347 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.adres import Adres - globals()['Adres'] = Adres - - -class ReferentieobjectAdres(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ReferentieobjectAdres - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """ReferentieobjectAdres - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Adres, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/referentieobject_cbs_indeling.py b/calcasa/api/model/referentieobject_cbs_indeling.py deleted file mode 100644 index 8f5c262..0000000 --- a/calcasa/api/model/referentieobject_cbs_indeling.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.cbs_indeling import CbsIndeling - globals()['CbsIndeling'] = CbsIndeling - - -class ReferentieobjectCbsIndeling(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ReferentieobjectCbsIndeling - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """ReferentieobjectCbsIndeling - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - CbsIndeling, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/referentieobject_object.py b/calcasa/api/model/referentieobject_object.py deleted file mode 100644 index 15d86fc..0000000 --- a/calcasa/api/model/referentieobject_object.py +++ /dev/null @@ -1,355 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.energielabel import Energielabel - from calcasa.api.model.objectdata import Objectdata - from calcasa.api.model.woning_type import WoningType - globals()['Energielabel'] = Energielabel - globals()['Objectdata'] = Objectdata - globals()['WoningType'] = WoningType - - -class ReferentieobjectObject(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ReferentieobjectObject - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """ReferentieobjectObject - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Objectdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index 87572b2..ce76b66 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index c7db32e..5dc4c3d 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -94,7 +94,7 @@ def openapi_types(): return { 'taxatieorganisatie': (str,), # noqa: E501 'taxateurnaam': (str,), # noqa: E501 - 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'status': (Taxatiestatus,), # noqa: E501 'taxatiedatum': (datetime,), # noqa: E501 } @@ -153,7 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501 taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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 + status (Taxatiestatus): [optional] # noqa: E501 taxatiedatum (datetime): De datum/tijd waarop de waardering getaxeerd is, in UTC.. [optional] # noqa: E501 """ @@ -242,7 +242,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) taxatieorganisatie (str): De naam van de taxatieorganisatie.. [optional] # noqa: E501 taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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 + status (Taxatiestatus): [optional] # noqa: E501 taxatiedatum (datetime): De datum/tijd waarop de waardering getaxeerd is, in UTC.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index 66b7b94..6b02c1c 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index 0df3411..eb05293 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index b48b116..37ded98 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index b9dc15e..4f8fcc1 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -96,7 +96,7 @@ def openapi_types(): 'geindexeerde_verkoopprijs': (int,), # noqa: E501 'vierkantemeterprijs': (int,), # noqa: E501 'geindexeerde_vierkantemeterprijs': (int,), # noqa: E501 - 'verkoopdatum': (datetime,), # noqa: E501 + 'verkoopdatum': (date,), # noqa: E501 'perceeloppervlak': (int,), # noqa: E501 'bijzonderheden': ([VerkoopBijzonderheden],), # noqa: E501 } @@ -161,7 +161,7 @@ def _from_openapi_data(cls, *args, **kwargs): # 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 + verkoopdatum (date): 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 """ @@ -253,7 +253,7 @@ def __init__(self, *args, **kwargs): # 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 + verkoopdatum (date): 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 """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index e9dd6b3..0d9bbe8 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,30 +42,30 @@ def lazy_import(): + from calcasa.api.model.adres import Adres + from calcasa.api.model.cbs_indeling import CbsIndeling + from calcasa.api.model.factuur import Factuur from calcasa.api.model.foto import Foto + from calcasa.api.model.modeldata import Modeldata + from calcasa.api.model.objectdata import Objectdata + from calcasa.api.model.rapport import Rapport from calcasa.api.model.referentieobject import Referentieobject - from calcasa.api.model.referentieobject_adres import ReferentieobjectAdres + from calcasa.api.model.taxatiedata import Taxatiedata from calcasa.api.model.vorige_verkoop import VorigeVerkoop - from calcasa.api.model.waardering_cbs_indeling import WaarderingCbsIndeling - from calcasa.api.model.waardering_factuur import WaarderingFactuur - from calcasa.api.model.waardering_model import WaarderingModel - from calcasa.api.model.waardering_object import WaarderingObject - from calcasa.api.model.waardering_originele_input import WaarderingOrigineleInput - from calcasa.api.model.waardering_rapport import WaarderingRapport + from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters from calcasa.api.model.waardering_status import WaarderingStatus - from calcasa.api.model.waardering_taxatie import WaarderingTaxatie + globals()['Adres'] = Adres + globals()['CbsIndeling'] = CbsIndeling + globals()['Factuur'] = Factuur globals()['Foto'] = Foto + globals()['Modeldata'] = Modeldata + globals()['Objectdata'] = Objectdata + globals()['Rapport'] = Rapport globals()['Referentieobject'] = Referentieobject - globals()['ReferentieobjectAdres'] = ReferentieobjectAdres + globals()['Taxatiedata'] = Taxatiedata globals()['VorigeVerkoop'] = VorigeVerkoop - globals()['WaarderingCbsIndeling'] = WaarderingCbsIndeling - globals()['WaarderingFactuur'] = WaarderingFactuur - globals()['WaarderingModel'] = WaarderingModel - globals()['WaarderingObject'] = WaarderingObject - globals()['WaarderingOrigineleInput'] = WaarderingOrigineleInput - globals()['WaarderingRapport'] = WaarderingRapport + globals()['WaarderingInputParameters'] = WaarderingInputParameters globals()['WaarderingStatus'] = WaarderingStatus - globals()['WaarderingTaxatie'] = WaarderingTaxatie class Waardering(ModelNormal): @@ -116,18 +116,18 @@ def openapi_types(): return { 'id': (str,), # noqa: E501 'aangemaakt': (datetime,), # noqa: E501 - 'status': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 - 'originele_input': (WaarderingOrigineleInput,), # noqa: E501 - 'adres': (ReferentieobjectAdres,), # noqa: E501 - 'model': (WaarderingModel,), # noqa: E501 - 'taxatie': (WaarderingTaxatie,), # noqa: E501 - 'object': (WaarderingObject,), # noqa: E501 - 'cbs_indeling': (WaarderingCbsIndeling,), # noqa: E501 + 'status': (WaarderingStatus,), # noqa: E501 + 'originele_input': (WaarderingInputParameters,), # noqa: E501 + 'adres': (Adres,), # noqa: E501 + 'model': (Modeldata,), # noqa: E501 + 'taxatie': (Taxatiedata,), # noqa: E501 + 'object': (Objectdata,), # noqa: E501 + 'cbs_indeling': (CbsIndeling,), # noqa: E501 'fotos': ([Foto], none_type,), # noqa: E501 'referenties': ([Referentieobject], none_type,), # noqa: E501 'vorige_verkopen': ([VorigeVerkoop], none_type,), # noqa: E501 - 'rapport': (WaarderingRapport,), # noqa: E501 - 'factuur': (WaarderingFactuur,), # noqa: E501 + 'rapport': (Rapport,), # noqa: E501 + 'factuur': (Factuur,), # noqa: E501 } @cached_property @@ -195,18 +195,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [optional] # noqa: E501 - originele_input (WaarderingOrigineleInput): [optional] # noqa: E501 - adres (ReferentieobjectAdres): [optional] # noqa: E501 - model (WaarderingModel): [optional] # noqa: E501 - taxatie (WaarderingTaxatie): [optional] # noqa: E501 - object (WaarderingObject): [optional] # noqa: E501 - cbs_indeling (WaarderingCbsIndeling): [optional] # noqa: E501 + status (WaarderingStatus): [optional] # noqa: E501 + originele_input (WaarderingInputParameters): [optional] # noqa: E501 + adres (Adres): [optional] # noqa: E501 + model (Modeldata): [optional] # noqa: E501 + taxatie (Taxatiedata): [optional] # noqa: E501 + object (Objectdata): [optional] # noqa: E501 + cbs_indeling (CbsIndeling): [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 (WaarderingRapport): [optional] # noqa: E501 - factuur (WaarderingFactuur): [optional] # noqa: E501 + rapport (Rapport): [optional] # noqa: E501 + factuur (Factuur): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -294,18 +294,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [optional] # noqa: E501 - originele_input (WaarderingOrigineleInput): [optional] # noqa: E501 - adres (ReferentieobjectAdres): [optional] # noqa: E501 - model (WaarderingModel): [optional] # noqa: E501 - taxatie (WaarderingTaxatie): [optional] # noqa: E501 - object (WaarderingObject): [optional] # noqa: E501 - cbs_indeling (WaarderingCbsIndeling): [optional] # noqa: E501 + status (WaarderingStatus): [optional] # noqa: E501 + originele_input (WaarderingInputParameters): [optional] # noqa: E501 + adres (Adres): [optional] # noqa: E501 + model (Modeldata): [optional] # noqa: E501 + taxatie (Taxatiedata): [optional] # noqa: E501 + object (Objectdata): [optional] # noqa: E501 + cbs_indeling (CbsIndeling): [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 (WaarderingRapport): [optional] # noqa: E501 - factuur (WaarderingFactuur): [optional] # noqa: E501 + rapport (Rapport): [optional] # noqa: E501 + factuur (Factuur): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/waardering_cbs_indeling.py b/calcasa/api/model/waardering_cbs_indeling.py deleted file mode 100644 index e4afee6..0000000 --- a/calcasa/api/model/waardering_cbs_indeling.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.cbs_indeling import CbsIndeling - globals()['CbsIndeling'] = CbsIndeling - - -class WaarderingCbsIndeling(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingCbsIndeling - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingCbsIndeling - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - CbsIndeling, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_factuur.py b/calcasa/api/model/waardering_factuur.py deleted file mode 100644 index 91afe24..0000000 --- a/calcasa/api/model/waardering_factuur.py +++ /dev/null @@ -1,335 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.factuur import Factuur - globals()['Factuur'] = Factuur - - -class WaarderingFactuur(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 = True - - @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 - 'factuurnummer': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'id': 'id', # noqa: E501 - 'factuurnummer': 'factuurnummer', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingFactuur - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingFactuur - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Factuur, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index d5879ac..f9353c7 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -100,18 +100,18 @@ def openapi_types(): """ lazy_import() return { - 'product_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'product_type': (ProductType,), # 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 + 'aanvraagdoel': (Aanvraagdoel,), # noqa: E501 'klantwaarde': (int,), # noqa: E501 - 'klantwaarde_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'klantwaarde_type': (KlantwaardeType,), # 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 + 'peildatum': (date, none_type,), # noqa: E501 'is_erfpacht': (bool, none_type,), # noqa: E501 'klantkenmerk': (str,), # noqa: E501 } @@ -149,7 +149,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar """WaarderingInputParameters - a model defined in OpenAPI Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | + product_type (ProductType): bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. Keyword Args: @@ -185,14 +185,14 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar _visited_composed_classes = (Animal,) geldverstrekker (str): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 hypotheekwaarde (int): 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.. [optional] # noqa: E501 - aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 + aanvraagdoel (Aanvraagdoel): [optional] # noqa: E501 klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + klantwaarde_type (KlantwaardeType): [optional] # noqa: E501 is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 - peildatum (datetime, none_type): 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.. [optional] # noqa: E501 + peildatum (date, none_type): 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.. [optional] # noqa: E501 is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 klantkenmerk (str): 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.. [optional] # noqa: E501 """ @@ -252,7 +252,7 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n """WaarderingInputParameters - a model defined in OpenAPI Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | + product_type (ProductType): bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. Keyword Args: @@ -288,14 +288,14 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n _visited_composed_classes = (Animal,) geldverstrekker (str): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 hypotheekwaarde (int): 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.. [optional] # noqa: E501 - aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 + aanvraagdoel (Aanvraagdoel): [optional] # noqa: E501 klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 + klantwaarde_type (KlantwaardeType): [optional] # noqa: E501 is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 - peildatum (datetime, none_type): 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.. [optional] # noqa: E501 + peildatum (date, none_type): 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.. [optional] # noqa: E501 is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 klantkenmerk (str): 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.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/waardering_model.py b/calcasa/api/model/waardering_model.py deleted file mode 100644 index bfc637c..0000000 --- a/calcasa/api/model/waardering_model.py +++ /dev/null @@ -1,351 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.modeldata import Modeldata - globals()['Modeldata'] = Modeldata - - -class WaarderingModel(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingModel - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingModel - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Modeldata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_object.py b/calcasa/api/model/waardering_object.py deleted file mode 100644 index fbed31f..0000000 --- a/calcasa/api/model/waardering_object.py +++ /dev/null @@ -1,355 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.energielabel import Energielabel - from calcasa.api.model.objectdata import Objectdata - from calcasa.api.model.woning_type import WoningType - globals()['Energielabel'] = Energielabel - globals()['Objectdata'] = Objectdata - globals()['WoningType'] = WoningType - - -class WaarderingObject(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 = True - - @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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingObject - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingObject - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Objectdata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index 8b53d54..e3b7306 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index 66d6fbf..ef459c1 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,8 +42,8 @@ def lazy_import(): - from calcasa.api.model.waardering_ontwikkeling_kwartaal_kwartaal import WaarderingOntwikkelingKwartaalKwartaal - globals()['WaarderingOntwikkelingKwartaalKwartaal'] = WaarderingOntwikkelingKwartaalKwartaal + from calcasa.api.model.kwartaal import Kwartaal + globals()['Kwartaal'] = Kwartaal class WaarderingOntwikkelingKwartaal(ModelNormal): @@ -92,7 +92,7 @@ def openapi_types(): """ lazy_import() return { - 'kwartaal': (WaarderingOntwikkelingKwartaalKwartaal,), # noqa: E501 + 'kwartaal': (Kwartaal,), # noqa: E501 'waarde': (int,), # noqa: E501 } @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - kwartaal (WaarderingOntwikkelingKwartaalKwartaal): [optional] # noqa: E501 + kwartaal (Kwartaal): [optional] # noqa: E501 waarde (int): In hele euros.. [optional] # noqa: E501 """ @@ -234,7 +234,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - kwartaal (WaarderingOntwikkelingKwartaalKwartaal): [optional] # noqa: E501 + kwartaal (Kwartaal): [optional] # noqa: E501 waarde (int): In hele euros.. [optional] # noqa: E501 """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py deleted file mode 100644 index f362a60..0000000 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal_kwartaal.py +++ /dev/null @@ -1,335 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.kwartaal import Kwartaal - globals()['Kwartaal'] = Kwartaal - - -class WaarderingOntwikkelingKwartaalKwartaal(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 { - '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 = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingOntwikkelingKwartaalKwartaal - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingOntwikkelingKwartaalKwartaal - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Kwartaal, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_originele_input.py b/calcasa/api/model/waardering_originele_input.py deleted file mode 100644 index 950f31d..0000000 --- a/calcasa/api/model/waardering_originele_input.py +++ /dev/null @@ -1,393 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.aanvraagdoel import Aanvraagdoel - from calcasa.api.model.klantwaarde_type import KlantwaardeType - from calcasa.api.model.product_type import ProductType - from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters - globals()['Aanvraagdoel'] = Aanvraagdoel - globals()['KlantwaardeType'] = KlantwaardeType - globals()['ProductType'] = ProductType - globals()['WaarderingInputParameters'] = WaarderingInputParameters - - -class WaarderingOrigineleInput(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 = { - ('klantkenmerk',): { - 'max_length': 100, - 'min_length': 0, - }, - } - - @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 { - '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 - 'is_erfpacht': (bool, none_type,), # noqa: E501 - 'klantkenmerk': (str,), # 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 - 'is_erfpacht': 'isErfpacht', # noqa: E501 - 'klantkenmerk': 'klantkenmerk', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingOrigineleInput - a model defined in OpenAPI - - Keyword Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | - bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. - _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): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 - hypotheekwaarde (int): 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.. [optional] # noqa: E501 - aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 - klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 - is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 - is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 - is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 - benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 - peildatum (datetime, none_type): 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.. [optional] # noqa: E501 - is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 - klantkenmerk (str): 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.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingOrigineleInput - a model defined in OpenAPI - - Keyword Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor alle aanvragen. Bepalend voor welke andere velden verplicht zijn.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. | - bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. - _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): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 - hypotheekwaarde (int): 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.. [optional] # noqa: E501 - aanvraagdoel (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Bepalend voor welke andere velden verplicht zijn.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 | . [optional] # noqa: E501 - klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. 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): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Afhankelijk van de geldverstrekker- en accountconfiguratie is alleen `koopsom` toegestaan voor het aanvraagdoel `aankoopNieuweWoning`. | Waarde | Omschrijving | | --- | --- | | `onbekend` | | | `koopsom` | | | `taxatiewaarde` | | | `wozWaarde` | | | `eigenWaardeinschatting` | | . [optional] # noqa: E501 - is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 - is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 - is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 - benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 - peildatum (datetime, none_type): 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.. [optional] # noqa: E501 - is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 - klantkenmerk (str): 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.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - WaarderingInputParameters, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index 2d19e8c..83972a2 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_taxatie.py b/calcasa/api/model/waardering_taxatie.py deleted file mode 100644 index 0ee0354..0000000 --- a/calcasa/api/model/waardering_taxatie.py +++ /dev/null @@ -1,345 +0,0 @@ -""" - Copyright 2022 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 v1 - - The version of the OpenAPI document: 1.2.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.taxatiedata import Taxatiedata - from calcasa.api.model.taxatiestatus import Taxatiestatus - globals()['Taxatiedata'] = Taxatiedata - globals()['Taxatiestatus'] = Taxatiestatus - - -class WaarderingTaxatie(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 = True - - @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 { - 'taxatieorganisatie': (str,), # noqa: E501 - 'taxateurnaam': (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 - 'taxateurnaam': 'taxateurnaam', # noqa: E501 - 'status': 'status', # noqa: E501 - 'taxatiedatum': 'taxatiedatum', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WaarderingTaxatie - 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 - taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """WaarderingTaxatie - 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 - taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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': [ - Taxatiedata, - ], - 'oneOf': [ - ], - } diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index 9593305..3ee9570 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -95,8 +95,8 @@ def openapi_types(): '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 + 'old_status': (WaarderingStatus,), # noqa: E501 + 'new_status': (WaarderingStatus,), # noqa: E501 'timestamp': (datetime,), # noqa: E501 'is_test': (bool,), # noqa: E501 'externe_referentie': (str, none_type,), # noqa: E501 @@ -163,8 +163,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [optional] # noqa: E501 + old_status (WaarderingStatus): [optional] # noqa: E501 + new_status (WaarderingStatus): [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 externe_referentie (str, none_type): 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.. [optional] # noqa: E501 @@ -256,8 +256,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | . [optional] # noqa: E501 + old_status (WaarderingStatus): [optional] # noqa: E501 + new_status (WaarderingStatus): [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 externe_referentie (str, none_type): 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.. [optional] # noqa: E501 diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index 1fdbd6e..bba757b 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -96,12 +96,12 @@ def openapi_types(): """ lazy_import() return { - 'product_type': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 + 'product_type': (ProductType,), # 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 + 'aanvraagdoel': (Aanvraagdoel,), # noqa: E501 + 'waardering_status': (WaarderingStatus,), # noqa: E501 } @cached_property @@ -129,7 +129,7 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar """WaarderingZoekParameters - a model defined in OpenAPI Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht.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. | + product_type (ProductType): bag_nummeraanduiding_id (int): Verplicht. Keyword Args: @@ -165,8 +165,8 @@ def _from_openapi_data(cls, product_type, bag_nummeraanduiding_id, *args, **kwar _visited_composed_classes = (Animal,) aangemaakt (datetime, none_type): De datum/tijd 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 + aanvraagdoel (Aanvraagdoel): [optional] # noqa: E501 + waardering_status (WaarderingStatus): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -224,7 +224,7 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n """WaarderingZoekParameters - a model defined in OpenAPI Args: - product_type (bool, date, datetime, dict, float, int, list, str, none_type): Verplicht.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. | + product_type (ProductType): bag_nummeraanduiding_id (int): Verplicht. Keyword Args: @@ -260,8 +260,8 @@ def __init__(self, product_type, bag_nummeraanduiding_id, *args, **kwargs): # n _visited_composed_classes = (Animal,) aangemaakt (datetime, none_type): De datum/tijd 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 + aanvraagdoel (Aanvraagdoel): [optional] # noqa: E501 + waardering_status (WaarderingStatus): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index 34406d2..600ef25 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 00188c3..15b349f 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py index 7a21d92..e7f1636 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -12,8 +12,6 @@ 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.adres_info_adres import AdresInfoAdres -from calcasa.api.model.adres_info_notities import AdresInfoNotities from calcasa.api.model.bestemmingsdata import Bestemmingsdata from calcasa.api.model.bodem_status_type import BodemStatusType from calcasa.api.model.bodemdata import Bodemdata @@ -23,6 +21,7 @@ from calcasa.api.model.callback_inschrijving import CallbackInschrijving from calcasa.api.model.cbs_indeling import CbsIndeling from calcasa.api.model.energielabel import Energielabel +from calcasa.api.model.energielabel_data import EnergielabelData from calcasa.api.model.factuur import Factuur from calcasa.api.model.foto import Foto from calcasa.api.model.fundering_data_bron import FunderingDataBron @@ -33,13 +32,8 @@ 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.funderingdata_bio_infectie_risico import FunderingdataBioInfectieRisico -from calcasa.api.model.funderingdata_droogstand_risico import FunderingdataDroogstandRisico -from calcasa.api.model.funderingdata_optrekkend_vocht_risico import FunderingdataOptrekkendVochtRisico -from calcasa.api.model.funderingdata_typering import FunderingdataTypering from calcasa.api.model.gebiedsdata import Gebiedsdata from calcasa.api.model.geldverstrekker import Geldverstrekker -from calcasa.api.model.http_validation_problem_details import HttpValidationProblemDetails 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 @@ -50,11 +44,6 @@ 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.omgevingsdata_buurt import OmgevingsdataBuurt -from calcasa.api.model.omgevingsdata_gemeente import OmgevingsdataGemeente -from calcasa.api.model.omgevingsdata_land import OmgevingsdataLand -from calcasa.api.model.omgevingsdata_provincie import OmgevingsdataProvincie -from calcasa.api.model.omgevingsdata_wijk import OmgevingsdataWijk 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 @@ -62,9 +51,6 @@ 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.referentieobject_adres import ReferentieobjectAdres -from calcasa.api.model.referentieobject_cbs_indeling import ReferentieobjectCbsIndeling -from calcasa.api.model.referentieobject_object import ReferentieobjectObject from calcasa.api.model.resource_exhausted_problem_details import ResourceExhaustedProblemDetails from calcasa.api.model.taxatiedata import Taxatiedata from calcasa.api.model.taxatiestatus import Taxatiestatus @@ -72,18 +58,10 @@ 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_cbs_indeling import WaarderingCbsIndeling -from calcasa.api.model.waardering_factuur import WaarderingFactuur from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters -from calcasa.api.model.waardering_model import WaarderingModel -from calcasa.api.model.waardering_object import WaarderingObject from calcasa.api.model.waardering_ontwikkeling import WaarderingOntwikkeling from calcasa.api.model.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal -from calcasa.api.model.waardering_ontwikkeling_kwartaal_kwartaal import WaarderingOntwikkelingKwartaalKwartaal -from calcasa.api.model.waardering_originele_input import WaarderingOrigineleInput -from calcasa.api.model.waardering_rapport import WaarderingRapport from calcasa.api.model.waardering_status import WaarderingStatus -from calcasa.api.model.waardering_taxatie import WaarderingTaxatie 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 index b3738d9..d70062e 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index d1be141..671ffab 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ """ - Copyright 2022 Calcasa B.V. + Copyright 2023 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. @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.3.0 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.2.1" +VERSION = "1.3.0" # To install the library, run the following # # python setup.py install From bedfe22b2db080cb2f3c3124cc4866208c62709b Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Fri, 7 Jun 2024 10:58:46 +0200 Subject: [PATCH 15/20] Release 1.3.1 (2024-05-14) - Add `DeelWaarderingWebhookPayload` model. - Use of strings for CBS codes. - Add `buurtCode` field to `CbsIndeling` model. - Allow for string input for endpoint `buurt`. - Add UserAgent header to callback requests with format: CalcasaPublicAPI/`` --- README.md | 18 +- calcasa/api/__init__.py | 4 +- calcasa/api/api/adressen_api.py | 2 +- calcasa/api/api/bestemmingsplannen_api.py | 2 +- calcasa/api/api/bodem_api.py | 2 +- calcasa/api/api/buurt_api.py | 26 +- calcasa/api/api/callbacks_api.py | 2 +- calcasa/api/api/configuratie_api.py | 2 +- calcasa/api/api/facturen_api.py | 2 +- calcasa/api/api/fotos_api.py | 2 +- calcasa/api/api/funderingen_api.py | 2 +- calcasa/api/api/geldverstrekkers_api.py | 2 +- calcasa/api/api/rapporten_api.py | 2 +- calcasa/api/api/waarderingen_api.py | 6 +- calcasa/api/api_client.py | 4 +- calcasa/api/configuration.py | 10 +- calcasa/api/exceptions.py | 2 +- calcasa/api/model/aanvraagdoel.py | 10 +- calcasa/api/model/adres.py | 2 +- calcasa/api/model/adres_info.py | 2 +- calcasa/api/model/bestemmingsdata.py | 2 +- calcasa/api/model/bodem_status_type.py | 2 +- calcasa/api/model/bodemdata.py | 2 +- calcasa/api/model/business_rules_code.py | 2 +- .../model/business_rules_problem_details.py | 2 +- calcasa/api/model/callback.py | 2 +- calcasa/api/model/callback_inschrijving.py | 2 +- calcasa/api/model/cbs_indeling.py | 10 +- .../model/deel_waardering_webhook_payload.py | 282 ++++++++++++++++++ calcasa/api/model/energielabel.py | 10 +- calcasa/api/model/energielabel_data.py | 2 +- calcasa/api/model/factuur.py | 2 +- calcasa/api/model/foto.py | 2 +- calcasa/api/model/fundering_data_bron.py | 2 +- calcasa/api/model/fundering_herstel_type.py | 2 +- calcasa/api/model/fundering_risico.py | 2 +- calcasa/api/model/fundering_risico_label.py | 2 +- calcasa/api/model/fundering_soort_bron.py | 2 +- calcasa/api/model/fundering_type.py | 10 +- calcasa/api/model/fundering_typering.py | 2 +- calcasa/api/model/funderingdata.py | 2 +- calcasa/api/model/gebiedsdata.py | 2 +- calcasa/api/model/geldverstrekker.py | 2 +- .../model/invalid_argument_problem_details.py | 2 +- calcasa/api/model/json_patch_document.py | 2 +- calcasa/api/model/klantwaarde_type.py | 2 +- calcasa/api/model/kwartaal.py | 2 +- calcasa/api/model/modeldata.py | 2 +- .../api/model/not_found_problem_details.py | 2 +- calcasa/api/model/notitie.py | 2 +- calcasa/api/model/notities.py | 2 +- calcasa/api/model/objectdata.py | 2 +- calcasa/api/model/omgevingsdata.py | 2 +- calcasa/api/model/operation.py | 2 +- calcasa/api/model/operation_type.py | 2 +- .../permissions_denied_problem_details.py | 2 +- calcasa/api/model/problem_details.py | 2 +- calcasa/api/model/product_type.py | 2 +- calcasa/api/model/rapport.py | 2 +- calcasa/api/model/referentieobject.py | 2 +- .../resource_exhausted_problem_details.py | 2 +- calcasa/api/model/taxatiedata.py | 2 +- calcasa/api/model/taxatiestatus.py | 2 +- .../api/model/validation_problem_details.py | 2 +- calcasa/api/model/verkoop_bijzonderheden.py | 2 +- calcasa/api/model/vorige_verkoop.py | 2 +- calcasa/api/model/waardering.py | 2 +- .../api/model/waardering_input_parameters.py | 2 +- calcasa/api/model/waardering_ontwikkeling.py | 2 +- .../model/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa/api/model/waardering_status.py | 2 +- .../api/model/waardering_webhook_payload.py | 2 +- .../api/model/waardering_zoek_parameters.py | 2 +- calcasa/api/model/woning_type.py | 10 +- calcasa/api/model_utils.py | 2 +- calcasa/api/models/__init__.py | 1 + calcasa/api/rest.py | 2 +- setup.py | 4 +- 78 files changed, 416 insertions(+), 117 deletions(-) create mode 100644 calcasa/api/model/deel_waardering_webhook_payload.py diff --git a/README.md b/README.md index 2f54eb4..802ea88 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,14 @@ This API is documented in **OpenAPI format version 3** you can use tools like th ## Changelog -### 2023-10-24 (v1.3.0) +### 2024-05-14 (v1.3.1) +- Add `DeelWaarderingWebhookPayload` model. +- Use of strings for CBS codes. + - Add `buurtCode` field to `CbsIndeling` model. + - Allow for string input for endpoint `buurt`. +- Add UserAgent header to callback requests with format: CalcasaPublicAPI/`` + +### 2023-11-14 (v1.3.0) - Add `geldverstrekker` field to the `CallbackInschrijving` model. - Add support for mTLS on the callback service. - By default when requested by the target server the public CA signed TLS certificate with the appropriate domain as Common Name will be offered as the client certificate. @@ -170,8 +177,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.3.0 -- Package version: 1.3.0 +- API version: 1.3.1 +- Package version: 1.3.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact) @@ -271,7 +278,7 @@ Class | Method | HTTP request | Description *AdressenApi* | [**search_adres**](docs/AdressenApi.md#search_adres) | **POST** /api/v1/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/v1/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/v1/bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). -*BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v1/buurt/{buurtId} | Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is. +*BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v1/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** /api/v1/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** /api/v1/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** /api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId} | Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker. @@ -303,6 +310,7 @@ Class | Method | HTTP request | Description - [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) @@ -394,7 +402,7 @@ Class | Method | HTTP request | Description - **Type**: OAuth - **Flow**: accessCode -- **Authorization URL**: https://authentication.calcasa.nl/oauth2/v2.0/authorize +- **Authorization URL**: https://authentication.01.staging.calcasa.nl/oauth2/v2.0/authorize - **Scopes**: - **all**: Full permissions for all areas. - **api:all**: Full permissions for all areas of the public API. diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index ef47c12..0449099 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -17,12 +17,12 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.3.0" +__version__ = "1.3.1" # import ApiClient from calcasa.api.api_client import ApiClient diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index 8b7d121..153f603 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index 1813dd6..df9e5bf 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index badbb08..7f8064a 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 4084b70..d2aed24 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -57,17 +57,17 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/api/v1/buurt/{buurtId}', + 'endpoint_path': '/api/v1/buurt/{buurtCode}', 'operation_id': 'get_buurt', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'buurt_id', + 'buurt_code', ], 'required': [ - 'buurt_id', + 'buurt_code', ], 'nullable': [ ], @@ -82,14 +82,14 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'buurt_id': - (int,), + 'buurt_code': + (str,), }, 'attribute_map': { - 'buurt_id': 'buurtId', + 'buurt_code': 'buurtCode', }, 'location_map': { - 'buurt_id': 'path', + 'buurt_code': 'path', }, 'collection_format_map': { } @@ -106,7 +106,7 @@ def __init__(self, api_client=None): def get_buurt( self, - buurt_id, + buurt_code, **kwargs ): """Gegevens over een buurt en de wijk, gemeente en land waarin deze buurt gesitueerd is. # noqa: E501 @@ -115,11 +115,11 @@ def get_buurt( 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) + >>> thread = api.get_buurt(buurt_code, async_req=True) >>> result = thread.get() Args: - buurt_id (int): Een CBS buurt ID. + buurt_code (str): Een CBS buurt code. Keyword Args: _return_http_data_only (bool): response data without head status @@ -183,7 +183,7 @@ def get_buurt( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['buurt_id'] = \ - buurt_id + kwargs['buurt_code'] = \ + buurt_code return self.get_buurt_endpoint.call_with_http_info(**kwargs) diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index 786117b..7e1164d 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index f474e88..32d6dcf 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 47591e2..79a9c1d 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index 9b7831e..3009f43 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index e54b48d..75d8eff 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index 4ec5fc0..9fa719b 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index 7d47f35..8ba4232 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index c73eb97..97f24cf 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -334,7 +334,7 @@ def create_waardering( ): """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/v1/reference/schemas/WaarderingWebhookPayload) | # 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/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) | # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -580,7 +580,7 @@ def patch_waarderingen( ): """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/v1/reference/schemas/WaarderingWebhookPayload) | # 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/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) | # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 917ce62..e7b9b27 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.3.0' + self.user_agent = 'Calcasa Python Api Client/1.3.1' def __enter__(self): return self diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 19dd67b..a39793c 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -406,8 +406,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.3.0\n"\ - "SDK Package Version: 1.3.0".\ + "Version of the API: 1.3.1\n"\ + "SDK Package Version: 1.3.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): @@ -419,6 +419,10 @@ def get_host_settings(self): { 'url': "https://api.calcasa.nl", 'description': "Production", + }, + { + 'url': "https://api.staging.calcasa.nl", + 'description': "Staging", } ] diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index cfd89da..3e340a3 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py index dfbcac5..5e30cab 100644 --- a/calcasa/api/model/aanvraagdoel.py +++ b/calcasa/api/model/aanvraagdoel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -122,10 +122,10 @@ def __init__(self, *args, **kwargs): 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 + 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 + 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. @@ -216,10 +216,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + 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 + 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. diff --git a/calcasa/api/model/adres.py b/calcasa/api/model/adres.py index 9c762e3..8bc8bbb 100644 --- a/calcasa/api/model/adres.py +++ b/calcasa/api/model/adres.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/adres_info.py b/calcasa/api/model/adres_info.py index a9d7d6c..bc10f48 100644 --- a/calcasa/api/model/adres_info.py +++ b/calcasa/api/model/adres_info.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bestemmingsdata.py b/calcasa/api/model/bestemmingsdata.py index 8c3d079..bf8883a 100644 --- a/calcasa/api/model/bestemmingsdata.py +++ b/calcasa/api/model/bestemmingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodem_status_type.py b/calcasa/api/model/bodem_status_type.py index 956c5bc..5f5f73a 100644 --- a/calcasa/api/model/bodem_status_type.py +++ b/calcasa/api/model/bodem_status_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/bodemdata.py b/calcasa/api/model/bodemdata.py index 61e308d..363cc91 100644 --- a/calcasa/api/model/bodemdata.py +++ b/calcasa/api/model/bodemdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_code.py b/calcasa/api/model/business_rules_code.py index 7b320ea..0648b65 100644 --- a/calcasa/api/model/business_rules_code.py +++ b/calcasa/api/model/business_rules_code.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/business_rules_problem_details.py b/calcasa/api/model/business_rules_problem_details.py index 798731f..4c28af3 100644 --- a/calcasa/api/model/business_rules_problem_details.py +++ b/calcasa/api/model/business_rules_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback.py b/calcasa/api/model/callback.py index ef96e1c..d484ecf 100644 --- a/calcasa/api/model/callback.py +++ b/calcasa/api/model/callback.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/callback_inschrijving.py b/calcasa/api/model/callback_inschrijving.py index 66f6a63..2e694bb 100644 --- a/calcasa/api/model/callback_inschrijving.py +++ b/calcasa/api/model/callback_inschrijving.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/cbs_indeling.py b/calcasa/api/model/cbs_indeling.py index fadf9fc..db9bf54 100644 --- a/calcasa/api/model/cbs_indeling.py +++ b/calcasa/api/model/cbs_indeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -88,6 +88,7 @@ def openapi_types(): """ return { 'buurt_id': (int,), # noqa: E501 + 'buurt_code': (str,), # noqa: E501 'buurtnaam': (str,), # noqa: E501 'wijknaam': (str,), # noqa: E501 'gemeentenaam': (str,), # noqa: E501 @@ -100,6 +101,7 @@ def discriminator(): attribute_map = { 'buurt_id': 'buurtId', # noqa: E501 + 'buurt_code': 'buurtCode', # noqa: E501 'buurtnaam': 'buurtnaam', # noqa: E501 'wijknaam': 'wijknaam', # noqa: E501 'gemeentenaam': 'gemeentenaam', # noqa: E501 @@ -146,7 +148,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + buurt_id (int): De buurt code zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).. [optional] # noqa: E501 + buurt_code (str): De buurt code 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 @@ -235,7 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + buurt_id (int): De buurt code zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).. [optional] # noqa: E501 + buurt_code (str): De buurt code 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 diff --git a/calcasa/api/model/deel_waardering_webhook_payload.py b/calcasa/api/model/deel_waardering_webhook_payload.py new file mode 100644 index 0000000..8e9d9d0 --- /dev/null +++ b/calcasa/api/model/deel_waardering_webhook_payload.py @@ -0,0 +1,282 @@ +""" + Copyright 2023 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 v1 + + The version of the OpenAPI document: 1.3.1 + 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, + OpenApiModel +) +from calcasa.api.exceptions import ApiAttributeError + + + +class DeelWaarderingWebhookPayload(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 + 'timestamp': (datetime,), # 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 + 'timestamp': 'timestamp', # 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 + """DeelWaarderingWebhookPayload - 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 + timestamp (datetime): Het tijdstip van het event, in UTC.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 + """DeelWaarderingWebhookPayload - 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 + timestamp (datetime): Het tijdstip van het event, 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: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + 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 index 6d995c3..78d0fc2 100644 --- a/calcasa/api/model/energielabel.py +++ b/calcasa/api/model/energielabel.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -127,10 +127,10 @@ def __init__(self, *args, **kwargs): 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 + 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 + 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. @@ -221,10 +221,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + 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 + 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. diff --git a/calcasa/api/model/energielabel_data.py b/calcasa/api/model/energielabel_data.py index 58d20c6..7fc06a9 100644 --- a/calcasa/api/model/energielabel_data.py +++ b/calcasa/api/model/energielabel_data.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/factuur.py b/calcasa/api/model/factuur.py index 354292f..0dabef5 100644 --- a/calcasa/api/model/factuur.py +++ b/calcasa/api/model/factuur.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/foto.py b/calcasa/api/model/foto.py index 730f5f8..bd875fe 100644 --- a/calcasa/api/model/foto.py +++ b/calcasa/api/model/foto.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_data_bron.py b/calcasa/api/model/fundering_data_bron.py index ab5cddb..3b2349c 100644 --- a/calcasa/api/model/fundering_data_bron.py +++ b/calcasa/api/model/fundering_data_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_herstel_type.py b/calcasa/api/model/fundering_herstel_type.py index 0b6b382..3e305e3 100644 --- a/calcasa/api/model/fundering_herstel_type.py +++ b/calcasa/api/model/fundering_herstel_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico.py b/calcasa/api/model/fundering_risico.py index c870a76..3447400 100644 --- a/calcasa/api/model/fundering_risico.py +++ b/calcasa/api/model/fundering_risico.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_risico_label.py b/calcasa/api/model/fundering_risico_label.py index 9982159..b961f58 100644 --- a/calcasa/api/model/fundering_risico_label.py +++ b/calcasa/api/model/fundering_risico_label.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_soort_bron.py b/calcasa/api/model/fundering_soort_bron.py index 560ecff..229cf73 100644 --- a/calcasa/api/model/fundering_soort_bron.py +++ b/calcasa/api/model/fundering_soort_bron.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/fundering_type.py b/calcasa/api/model/fundering_type.py index e61ef89..cd06ff6 100644 --- a/calcasa/api/model/fundering_type.py +++ b/calcasa/api/model/fundering_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -133,10 +133,10 @@ def __init__(self, *args, **kwargs): 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 + 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 + 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. @@ -227,10 +227,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + 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 + 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. diff --git a/calcasa/api/model/fundering_typering.py b/calcasa/api/model/fundering_typering.py index 9da10f6..593d145 100644 --- a/calcasa/api/model/fundering_typering.py +++ b/calcasa/api/model/fundering_typering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/funderingdata.py b/calcasa/api/model/funderingdata.py index 201a55f..e7673f7 100644 --- a/calcasa/api/model/funderingdata.py +++ b/calcasa/api/model/funderingdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/gebiedsdata.py b/calcasa/api/model/gebiedsdata.py index 86cd928..3723bb5 100644 --- a/calcasa/api/model/gebiedsdata.py +++ b/calcasa/api/model/gebiedsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py index 2eb09cb..b621324 100644 --- a/calcasa/api/model/geldverstrekker.py +++ b/calcasa/api/model/geldverstrekker.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/invalid_argument_problem_details.py b/calcasa/api/model/invalid_argument_problem_details.py index 63270de..5910c87 100644 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ b/calcasa/api/model/invalid_argument_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/json_patch_document.py b/calcasa/api/model/json_patch_document.py index 31095d1..44b9007 100644 --- a/calcasa/api/model/json_patch_document.py +++ b/calcasa/api/model/json_patch_document.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/klantwaarde_type.py b/calcasa/api/model/klantwaarde_type.py index 43aec96..5c22b1a 100644 --- a/calcasa/api/model/klantwaarde_type.py +++ b/calcasa/api/model/klantwaarde_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/kwartaal.py b/calcasa/api/model/kwartaal.py index 004f1aa..3a62c16 100644 --- a/calcasa/api/model/kwartaal.py +++ b/calcasa/api/model/kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/modeldata.py b/calcasa/api/model/modeldata.py index cfc8826..41ef881 100644 --- a/calcasa/api/model/modeldata.py +++ b/calcasa/api/model/modeldata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/not_found_problem_details.py b/calcasa/api/model/not_found_problem_details.py index dbb436f..fb5c20d 100644 --- a/calcasa/api/model/not_found_problem_details.py +++ b/calcasa/api/model/not_found_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notitie.py b/calcasa/api/model/notitie.py index 2eb2d7f..7d9454b 100644 --- a/calcasa/api/model/notitie.py +++ b/calcasa/api/model/notitie.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/notities.py b/calcasa/api/model/notities.py index b84f68b..364a447 100644 --- a/calcasa/api/model/notities.py +++ b/calcasa/api/model/notities.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/objectdata.py b/calcasa/api/model/objectdata.py index 26a80bd..c93452f 100644 --- a/calcasa/api/model/objectdata.py +++ b/calcasa/api/model/objectdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/omgevingsdata.py b/calcasa/api/model/omgevingsdata.py index 9e0e034..9055ca6 100644 --- a/calcasa/api/model/omgevingsdata.py +++ b/calcasa/api/model/omgevingsdata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation.py b/calcasa/api/model/operation.py index 8fafd3d..62df157 100644 --- a/calcasa/api/model/operation.py +++ b/calcasa/api/model/operation.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/operation_type.py b/calcasa/api/model/operation_type.py index 56feec6..eb8cf55 100644 --- a/calcasa/api/model/operation_type.py +++ b/calcasa/api/model/operation_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/permissions_denied_problem_details.py b/calcasa/api/model/permissions_denied_problem_details.py index db76412..f4bd849 100644 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ b/calcasa/api/model/permissions_denied_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/problem_details.py b/calcasa/api/model/problem_details.py index 2421298..8e2f5c1 100644 --- a/calcasa/api/model/problem_details.py +++ b/calcasa/api/model/problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/product_type.py b/calcasa/api/model/product_type.py index 7646cd2..78097ea 100644 --- a/calcasa/api/model/product_type.py +++ b/calcasa/api/model/product_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/rapport.py b/calcasa/api/model/rapport.py index aa334ca..527283d 100644 --- a/calcasa/api/model/rapport.py +++ b/calcasa/api/model/rapport.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/referentieobject.py b/calcasa/api/model/referentieobject.py index ddf95cc..654612c 100644 --- a/calcasa/api/model/referentieobject.py +++ b/calcasa/api/model/referentieobject.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py index ce76b66..324fd98 100644 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ b/calcasa/api/model/resource_exhausted_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiedata.py b/calcasa/api/model/taxatiedata.py index 5dc4c3d..a63fd0b 100644 --- a/calcasa/api/model/taxatiedata.py +++ b/calcasa/api/model/taxatiedata.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/taxatiestatus.py b/calcasa/api/model/taxatiestatus.py index 6b02c1c..6e2f299 100644 --- a/calcasa/api/model/taxatiestatus.py +++ b/calcasa/api/model/taxatiestatus.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/validation_problem_details.py b/calcasa/api/model/validation_problem_details.py index eb05293..84f5e78 100644 --- a/calcasa/api/model/validation_problem_details.py +++ b/calcasa/api/model/validation_problem_details.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py index 37ded98..1e2bcb2 100644 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ b/calcasa/api/model/verkoop_bijzonderheden.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/vorige_verkoop.py b/calcasa/api/model/vorige_verkoop.py index 4f8fcc1..e496d1a 100644 --- a/calcasa/api/model/vorige_verkoop.py +++ b/calcasa/api/model/vorige_verkoop.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering.py b/calcasa/api/model/waardering.py index 0d9bbe8..0c2baed 100644 --- a/calcasa/api/model/waardering.py +++ b/calcasa/api/model/waardering.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_input_parameters.py b/calcasa/api/model/waardering_input_parameters.py index f9353c7..d9815b9 100644 --- a/calcasa/api/model/waardering_input_parameters.py +++ b/calcasa/api/model/waardering_input_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling.py b/calcasa/api/model/waardering_ontwikkeling.py index e3b7306..769c2e7 100644 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ b/calcasa/api/model/waardering_ontwikkeling.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py index ef459c1..b242097 100644 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/model/waardering_ontwikkeling_kwartaal.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_status.py b/calcasa/api/model/waardering_status.py index 83972a2..b47f045 100644 --- a/calcasa/api/model/waardering_status.py +++ b/calcasa/api/model/waardering_status.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_webhook_payload.py b/calcasa/api/model/waardering_webhook_payload.py index 3ee9570..897c268 100644 --- a/calcasa/api/model/waardering_webhook_payload.py +++ b/calcasa/api/model/waardering_webhook_payload.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/waardering_zoek_parameters.py b/calcasa/api/model/waardering_zoek_parameters.py index bba757b..65c89fb 100644 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ b/calcasa/api/model/waardering_zoek_parameters.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/model/woning_type.py b/calcasa/api/model/woning_type.py index 600ef25..936beec 100644 --- a/calcasa/api/model/woning_type.py +++ b/calcasa/api/model/woning_type.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -125,10 +125,10 @@ def __init__(self, *args, **kwargs): 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 + 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 + 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. @@ -219,10 +219,10 @@ def _from_openapi_data(cls, *args, **kwargs): 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 + 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 + 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. diff --git a/calcasa/api/model_utils.py b/calcasa/api/model_utils.py index 15b349f..dda2bea 100644 --- a/calcasa/api/model_utils.py +++ b/calcasa/api/model_utils.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py index e7f1636..4221bad 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -20,6 +20,7 @@ from calcasa.api.model.callback import Callback from calcasa.api.model.callback_inschrijving import CallbackInschrijving from calcasa.api.model.cbs_indeling import CbsIndeling +from calcasa.api.model.deel_waardering_webhook_payload import DeelWaarderingWebhookPayload from calcasa.api.model.energielabel import Energielabel from calcasa.api.model.energielabel_data import EnergielabelData from calcasa.api.model.factuur import Factuur diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index d70062e..d4b7b83 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 671ffab..e82e1f3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ Calcasa Public API v1 - The version of the OpenAPI document: 1.3.0 + The version of the OpenAPI document: 1.3.1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa-api" -VERSION = "1.3.0" +VERSION = "1.3.1" # To install the library, run the following # # python setup.py install From 0ae7a5e7a15eff1e8ab778ea94c42a12443f8871 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 1 Jul 2025 14:07:12 +0200 Subject: [PATCH 16/20] Release 1.4.0-rc1 (2025-07-01) - Change API to TypeSpec as source of truth. - Change generated libraries to `openapi-generator` version 7 with modified templates (see `templates` directory). - PHP - Minimal changes in the use of the library. - Python - Imports have changes, all models and apis are in separate modules and some have moved for example `api.model` -> `api.models` and `api.apis` -> `api.api`. - Model members are now `snake_case`. - Enums are now derived from `enum.Enum`. - `JsonPatchDocument` has been replaced with `list[Operation]`. - Files are now returned as plain `bytearray`. - C# - New library is generic host based, so `Configuration` class has been removed and more. See the new example on how to use the client with tokens. - Uses `System.Text.Json` for JSON processing - `JsonPatchDocument`, `Operation` and `OperationType` were dropped and now use the models from `Microsoft.AspNetCore.JsonPatch` - `ValidationProblemDetails` and `ProblemDetails` were dropped and now use the models from `Microsoft.AspNetCore.Mvc.Core` - Sync versions of operations been removed, added Events based alternative --- README.md | 378 +-- calcasa/api/__init__.py | 93 +- calcasa/api/api/__init__.py | 19 +- calcasa/api/api/adressen_api.py | 830 ++++--- calcasa/api/api/bestemmingsplannen_api.py | 433 ++-- calcasa/api/api/bodem_api.py | 433 ++-- calcasa/api/api/buurt_api.py | 433 ++-- calcasa/api/api/callbacks_api.py | 1664 ++++++++----- calcasa/api/api/configuratie_api.py | 797 ++++-- calcasa/api/api/facturen_api.py | 428 ++-- calcasa/api/api/fotos_api.py | 430 ++-- calcasa/api/api/funderingen_api.py | 433 ++-- calcasa/api/api/geldverstrekkers_api.py | 428 ++-- calcasa/api/api/rapporten_api.py | 428 ++-- calcasa/api/api/waarderingen_api.py | 2130 +++++++++++------ calcasa/api/api_client.py | 1222 +++++----- calcasa/api/api_response.py | 21 + calcasa/api/apis/__init__.py | 28 - calcasa/api/configuration.py | 363 ++- calcasa/api/exceptions.py | 117 +- calcasa/api/model/__init__.py | 5 - calcasa/api/model/aanvraagdoel.py | 307 --- calcasa/api/model/adres.py | 285 --- calcasa/api/model/adres_info.py | 288 --- calcasa/api/model/bestemmingsdata.py | 273 --- calcasa/api/model/bodem_status_type.py | 306 --- calcasa/api/model/bodemdata.py | 282 --- calcasa/api/model/business_rules_code.py | 311 --- .../model/business_rules_problem_details.py | 301 --- calcasa/api/model/callback.py | 276 --- calcasa/api/model/callback_inschrijving.py | 289 --- calcasa/api/model/cbs_indeling.py | 285 --- .../model/deel_waardering_webhook_payload.py | 282 --- calcasa/api/model/energielabel.py | 312 --- calcasa/api/model/energielabel_data.py | 277 --- calcasa/api/model/factuur.py | 273 --- calcasa/api/model/foto.py | 269 --- calcasa/api/model/fundering_data_bron.py | 302 --- calcasa/api/model/fundering_herstel_type.py | 305 --- calcasa/api/model/fundering_risico.py | 284 --- calcasa/api/model/fundering_risico_label.py | 304 --- calcasa/api/model/fundering_soort_bron.py | 304 --- calcasa/api/model/fundering_type.py | 318 --- calcasa/api/model/fundering_typering.py | 284 --- calcasa/api/model/funderingdata.py | 304 --- calcasa/api/model/gebiedsdata.py | 301 --- calcasa/api/model/geldverstrekker.py | 273 --- .../model/invalid_argument_problem_details.py | 295 --- calcasa/api/model/json_patch_document.py | 303 --- calcasa/api/model/klantwaarde_type.py | 305 --- calcasa/api/model/kwartaal.py | 273 --- calcasa/api/model/modeldata.py | 289 --- .../api/model/not_found_problem_details.py | 295 --- calcasa/api/model/notitie.py | 304 --- calcasa/api/model/notities.py | 290 --- calcasa/api/model/objectdata.py | 302 --- calcasa/api/model/omgevingsdata.py | 290 --- calcasa/api/model/operation.py | 293 --- calcasa/api/model/operation_type.py | 307 --- .../permissions_denied_problem_details.py | 295 --- calcasa/api/model/problem_details.py | 291 --- calcasa/api/model/product_type.py | 306 --- calcasa/api/model/rapport.py | 269 --- calcasa/api/model/referentieobject.py | 330 --- .../resource_exhausted_problem_details.py | 295 --- calcasa/api/model/taxatiedata.py | 286 --- calcasa/api/model/taxatiestatus.py | 303 --- .../api/model/validation_problem_details.py | 295 --- calcasa/api/model/verkoop_bijzonderheden.py | 309 --- calcasa/api/model/vorige_verkoop.py | 298 --- calcasa/api/model/waardering.py | 348 --- .../api/model/waardering_input_parameters.py | 342 --- calcasa/api/model/waardering_ontwikkeling.py | 306 --- .../model/waardering_ontwikkeling_kwartaal.py | 278 --- calcasa/api/model/waardering_status.py | 309 --- .../api/model/waardering_webhook_payload.py | 303 --- .../api/model/waardering_zoek_parameters.py | 306 --- calcasa/api/model/woning_type.py | 310 --- calcasa/api/model_utils.py | 2070 ---------------- calcasa/api/models/__init__.py | 148 +- calcasa/api/models/aanvraagdoel.py | 53 + calcasa/api/models/adres.py | 135 ++ calcasa/api/models/adres_info.py | 130 + calcasa/api/models/bestemmingsdata.py | 124 + calcasa/api/models/bodem_status_type.py | 52 + calcasa/api/models/bodemdata.py | 127 + calcasa/api/models/business_rules_code.py | 57 + .../models/business_rules_problem_details.py | 147 ++ calcasa/api/models/callback.py | 119 + calcasa/api/models/callback_inschrijving.py | 128 + calcasa/api/models/cbs_indeling.py | 119 + .../models/deel_waardering_webhook_payload.py | 120 + calcasa/api/models/energielabel.py | 58 + calcasa/api/models/energielabel_data.py | 131 + calcasa/api/models/factuur.py | 113 + calcasa/api/models/foto.py | 111 + calcasa/api/models/fundering_data_bron.py | 48 + calcasa/api/models/fundering_herstel_type.py | 51 + calcasa/api/models/fundering_risico.py | 117 + calcasa/api/models/fundering_risico_label.py | 50 + calcasa/api/models/fundering_soort_bron.py | 50 + calcasa/api/models/fundering_type.py | 64 + calcasa/api/models/fundering_typering.py | 117 + calcasa/api/models/funderingdata.py | 144 ++ calcasa/api/models/gebiedsdata.py | 168 ++ calcasa/api/models/geldverstrekker.py | 113 + .../invalid_argument_problem_details.py | 146 ++ calcasa/api/models/klantwaarde_type.py | 51 + calcasa/api/models/kwartaal.py | 113 + calcasa/api/models/modeldata.py | 122 + .../api/models/not_found_problem_details.py | 146 ++ calcasa/api/models/notitie.py | 50 + calcasa/api/models/notities.py | 120 + calcasa/api/models/objectdata.py | 129 + calcasa/api/models/omgevingsdata.py | 135 ++ calcasa/api/models/operation.py | 128 + calcasa/api/models/operation_type.py | 53 + .../permissions_denied_problem_details.py | 146 ++ calcasa/api/models/problem_details.py | 144 ++ calcasa/api/models/product_type.py | 52 + calcasa/api/models/rapport.py | 111 + calcasa/api/models/referentieobject.py | 157 ++ .../resource_exhausted_problem_details.py | 146 ++ calcasa/api/models/taxatiedata.py | 119 + calcasa/api/models/taxatiestatus.py | 49 + .../models/unauthorized_problem_details.py | 144 ++ .../api/models/validation_problem_details.py | 146 ++ calcasa/api/models/verkoop_bijzonderheden.py | 55 + calcasa/api/models/version_names.py | 47 + calcasa/api/models/vorige_verkoop.py | 125 + calcasa/api/models/waardering.py | 210 ++ .../api/models/waardering_input_parameters.py | 152 ++ calcasa/api/models/waardering_ontwikkeling.py | 184 ++ .../waardering_ontwikkeling_kwartaal.py | 117 + calcasa/api/models/waardering_status.py | 55 + .../api/models/waardering_webhook_payload.py | 134 ++ .../api/models/waardering_zoek_parameters.py | 145 ++ calcasa/api/models/webhook_payload.py | 118 + calcasa/api/models/woning_type.py | 56 + calcasa/api/py.typed | 0 calcasa/api/rest.py | 375 ++- pyproject.toml | 89 + requirements.txt | 7 +- setup.py | 15 +- 144 files changed, 13753 insertions(+), 23435 deletions(-) create mode 100644 calcasa/api/api_response.py delete mode 100644 calcasa/api/apis/__init__.py delete mode 100644 calcasa/api/model/__init__.py delete mode 100644 calcasa/api/model/aanvraagdoel.py delete mode 100644 calcasa/api/model/adres.py delete mode 100644 calcasa/api/model/adres_info.py delete mode 100644 calcasa/api/model/bestemmingsdata.py delete mode 100644 calcasa/api/model/bodem_status_type.py delete mode 100644 calcasa/api/model/bodemdata.py delete mode 100644 calcasa/api/model/business_rules_code.py delete mode 100644 calcasa/api/model/business_rules_problem_details.py delete mode 100644 calcasa/api/model/callback.py delete mode 100644 calcasa/api/model/callback_inschrijving.py delete mode 100644 calcasa/api/model/cbs_indeling.py delete mode 100644 calcasa/api/model/deel_waardering_webhook_payload.py delete mode 100644 calcasa/api/model/energielabel.py delete mode 100644 calcasa/api/model/energielabel_data.py delete mode 100644 calcasa/api/model/factuur.py delete mode 100644 calcasa/api/model/foto.py delete mode 100644 calcasa/api/model/fundering_data_bron.py delete mode 100644 calcasa/api/model/fundering_herstel_type.py delete mode 100644 calcasa/api/model/fundering_risico.py delete mode 100644 calcasa/api/model/fundering_risico_label.py delete mode 100644 calcasa/api/model/fundering_soort_bron.py delete mode 100644 calcasa/api/model/fundering_type.py delete mode 100644 calcasa/api/model/fundering_typering.py delete mode 100644 calcasa/api/model/funderingdata.py delete mode 100644 calcasa/api/model/gebiedsdata.py delete mode 100644 calcasa/api/model/geldverstrekker.py delete mode 100644 calcasa/api/model/invalid_argument_problem_details.py delete mode 100644 calcasa/api/model/json_patch_document.py delete mode 100644 calcasa/api/model/klantwaarde_type.py delete mode 100644 calcasa/api/model/kwartaal.py delete mode 100644 calcasa/api/model/modeldata.py delete mode 100644 calcasa/api/model/not_found_problem_details.py delete mode 100644 calcasa/api/model/notitie.py delete mode 100644 calcasa/api/model/notities.py delete mode 100644 calcasa/api/model/objectdata.py delete mode 100644 calcasa/api/model/omgevingsdata.py delete mode 100644 calcasa/api/model/operation.py delete mode 100644 calcasa/api/model/operation_type.py delete mode 100644 calcasa/api/model/permissions_denied_problem_details.py delete mode 100644 calcasa/api/model/problem_details.py delete mode 100644 calcasa/api/model/product_type.py delete mode 100644 calcasa/api/model/rapport.py delete mode 100644 calcasa/api/model/referentieobject.py delete mode 100644 calcasa/api/model/resource_exhausted_problem_details.py delete mode 100644 calcasa/api/model/taxatiedata.py delete mode 100644 calcasa/api/model/taxatiestatus.py delete mode 100644 calcasa/api/model/validation_problem_details.py delete mode 100644 calcasa/api/model/verkoop_bijzonderheden.py delete mode 100644 calcasa/api/model/vorige_verkoop.py delete mode 100644 calcasa/api/model/waardering.py delete mode 100644 calcasa/api/model/waardering_input_parameters.py delete mode 100644 calcasa/api/model/waardering_ontwikkeling.py delete mode 100644 calcasa/api/model/waardering_ontwikkeling_kwartaal.py delete mode 100644 calcasa/api/model/waardering_status.py delete mode 100644 calcasa/api/model/waardering_webhook_payload.py delete mode 100644 calcasa/api/model/waardering_zoek_parameters.py delete mode 100644 calcasa/api/model/woning_type.py delete mode 100644 calcasa/api/model_utils.py create mode 100644 calcasa/api/models/aanvraagdoel.py create mode 100644 calcasa/api/models/adres.py create mode 100644 calcasa/api/models/adres_info.py create mode 100644 calcasa/api/models/bestemmingsdata.py create mode 100644 calcasa/api/models/bodem_status_type.py create mode 100644 calcasa/api/models/bodemdata.py create mode 100644 calcasa/api/models/business_rules_code.py create mode 100644 calcasa/api/models/business_rules_problem_details.py create mode 100644 calcasa/api/models/callback.py create mode 100644 calcasa/api/models/callback_inschrijving.py create mode 100644 calcasa/api/models/cbs_indeling.py create mode 100644 calcasa/api/models/deel_waardering_webhook_payload.py create mode 100644 calcasa/api/models/energielabel.py create mode 100644 calcasa/api/models/energielabel_data.py create mode 100644 calcasa/api/models/factuur.py create mode 100644 calcasa/api/models/foto.py create mode 100644 calcasa/api/models/fundering_data_bron.py create mode 100644 calcasa/api/models/fundering_herstel_type.py create mode 100644 calcasa/api/models/fundering_risico.py create mode 100644 calcasa/api/models/fundering_risico_label.py create mode 100644 calcasa/api/models/fundering_soort_bron.py create mode 100644 calcasa/api/models/fundering_type.py create mode 100644 calcasa/api/models/fundering_typering.py create mode 100644 calcasa/api/models/funderingdata.py create mode 100644 calcasa/api/models/gebiedsdata.py create mode 100644 calcasa/api/models/geldverstrekker.py create mode 100644 calcasa/api/models/invalid_argument_problem_details.py create mode 100644 calcasa/api/models/klantwaarde_type.py create mode 100644 calcasa/api/models/kwartaal.py create mode 100644 calcasa/api/models/modeldata.py create mode 100644 calcasa/api/models/not_found_problem_details.py create mode 100644 calcasa/api/models/notitie.py create mode 100644 calcasa/api/models/notities.py create mode 100644 calcasa/api/models/objectdata.py create mode 100644 calcasa/api/models/omgevingsdata.py create mode 100644 calcasa/api/models/operation.py create mode 100644 calcasa/api/models/operation_type.py create mode 100644 calcasa/api/models/permissions_denied_problem_details.py create mode 100644 calcasa/api/models/problem_details.py create mode 100644 calcasa/api/models/product_type.py create mode 100644 calcasa/api/models/rapport.py create mode 100644 calcasa/api/models/referentieobject.py create mode 100644 calcasa/api/models/resource_exhausted_problem_details.py create mode 100644 calcasa/api/models/taxatiedata.py create mode 100644 calcasa/api/models/taxatiestatus.py create mode 100644 calcasa/api/models/unauthorized_problem_details.py create mode 100644 calcasa/api/models/validation_problem_details.py create mode 100644 calcasa/api/models/verkoop_bijzonderheden.py create mode 100644 calcasa/api/models/version_names.py create mode 100644 calcasa/api/models/vorige_verkoop.py create mode 100644 calcasa/api/models/waardering.py create mode 100644 calcasa/api/models/waardering_input_parameters.py create mode 100644 calcasa/api/models/waardering_ontwikkeling.py create mode 100644 calcasa/api/models/waardering_ontwikkeling_kwartaal.py create mode 100644 calcasa/api/models/waardering_status.py create mode 100644 calcasa/api/models/waardering_webhook_payload.py create mode 100644 calcasa/api/models/waardering_zoek_parameters.py create mode 100644 calcasa/api/models/webhook_payload.py create mode 100644 calcasa/api/models/woning_type.py create mode 100644 calcasa/api/py.typed create mode 100644 pyproject.toml diff --git a/README.md b/README.md index 802ea88..0ca2ec1 100644 --- a/README.md +++ b/README.md @@ -1,190 +1,18 @@ -# calcasa-api -The Calcasa API is used to connect to Calcasa provided services. This is the first production version of the service - -## 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 for for example the languages we don't provide a pre-built client for. This is documented [here](/api/v1/articles/clients/generation). - -## Changelog - -### 2024-05-14 (v1.3.1) -- Add `DeelWaarderingWebhookPayload` model. -- Use of strings for CBS codes. - - Add `buurtCode` field to `CbsIndeling` model. - - Allow for string input for endpoint `buurt`. -- Add UserAgent header to callback requests with format: CalcasaPublicAPI/`` - -### 2023-11-14 (v1.3.0) -- Add `geldverstrekker` field to the `CallbackInschrijving` model. -- Add support for mTLS on the callback service. - - By default when requested by the target server the public CA signed TLS certificate with the appropriate domain as Common Name will be offered as the client certificate. - - Public TLS Certificates rotate every couple of months. -- Change a couple of `date-time` fields that only contained a date to pure `date` fields. This might result is a different type in the generated clients and the service-side validation will be more strict. Times included in values will no longer be silently dropped, but will generate an error. - - Change `Modeldata` model `waardebepalingsdatum` field to type `date` in OpenAPI spec. - - Change `Bestemmingsdata` model `datumBestemmingplan` field to type `date` in OpenAPI spec. - - Change `Bodemdata` model `datumLaatsteOnderzoek` field to type `date` in OpenAPI spec. - - Change `Referentieobject` model `verkoopdatum` field to type `date` in OpenAPI spec. - - Change `VorigeVerkoop` model `verkoopdatum` field to type `date` in OpenAPI spec. - - Change `waarderingInputParameters` model `peildatum` field to type `date` in OpenAPI spec. This is an input field and will now require a date without a time. -- Add `desktopTaxatieHerwaardering` product to enumeration `ProductType`. -- The service no longer returns CORS headers. -- Actions now correctly report the 'application/problem+json' Content-Type in the documentation for the `HTTP 422 Unprocessable Entity` responses. -- Added `energielabelData` field to `Objectdata` model to contain the extra information about the energy label. -- The OpenAPI spec generation was changed slightly and thus the generated and published clients might be affected. There might be some slight breaking changes at compile time, but the functionality remains the same. - - For example for C# and PHP `AdresInfoAdres` is now just covered by `Adres` - - Likewise for the `Omgevingsdata*` models that are now all covered by `Gebiedsdata` - - For a lot of the `Waardering*` models they are now using the correct model names, like `WaarderingModel` -> `Modeldata` - - -### 2023-04-17 (v1.2.1) -- Add `externeReferentie` field to the `CallbackInschrijving` and `WaarderingWebhookPayload` models. - -### 2022-08-04 (v1.2.0) -- Add support for managing `CallbackSubscription`'s, this allows you to subscribe to callbacks for valuations that were not created with your API client. - - `GET /v1/callbacks/inschrijvingen` - - `POST /v1/callbacks/inschrijvingen` - - `GET /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}` - - `DELETE /v1/callbacks/inschrijvingen/{bagNummeraanduidingId}` -- Add `taxateurnaam` field to the `Taxatiedata` model. -- Callback URIs should now end in `/` not just contain it to help stop common errors (ending in `=` is also still allowed when using a query string). -- Updating configuration in the `POST /v1/configuratie/callbacks` endpoint now clears stored but decommissioned versions from the configuration object. -- Add `klantkenmerk` to the `WaarderingInputParameters` and `Waardering` models. - -### 2022-07-12 (v1.1.7) -- Added support for the OAuth 2.0 authorization code flow for use of the API with user accounts. -- Add `bouweenheid` to `FunderingSoortBron` enumeration. - -### 2022-05-19 (v1.1.6) -- Added `ltvTeHoogOverbrugging` value to the `BusinessRulesCode` enumeration. - -### 2022-04-13 (v1.1.5) -- Fix the schema for `Operation` `value` field for the benefit of the PHP and Python code generators, these will now correctly support any value type. - -### 2022-04-12 (v1.1.4) -- Added proper Content-Disposition headers to the `GET /v1/rapporten/{id}` and `GET /v1/facturen/{id}` endpoints with the correct filename. -- Fix Mime Types for the `POST /v1/configuratie/callbacks` endpoint to only accept `application/json`. -- Fix C# API client to correctly use the `application/json-patch+json` content type in requests that require it. -- Fix C# client's `FileParameter` type correct handling of response headers like `Content-Disposition` and `Content-Type`. -- Removed C# client's useless implementation of `IValidatableObject`. -- Fix Python client's internal namespace name being illegal `calcasa-api` -> `calcasa.api`. - -### 2022-03-22 (v1.1.3) -- Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for `PATCH /v1/waarderingen/{id}`. - -### 2022-03-17 (v1.1.2) -- Fixed response type for `GET /v1/geldverstrekkers/{productType}` endpoint. - -### 2022-03-08 (v1.1.1) -- Added `GET /v1/geldverstrekkers/{productType}` endpoint. -- Restored all `ProblemDetails` models. - -### 2022-03-07 (v1.1.0) -- Added `isErfpacht` to `WaarderingInputParameters`. -- Cleaned up serialization of null values, they should no longer appear in the output. - -### 2021-02-04 -- Added extra clarification to the documentation pertaining to the `WaarderingInputParameters` and which fields are required for the different input parameter combinations. - -### 2022-01-11 (v1.0.2) -- Fixed `GET /api/v1/bodem/{id}` endpoint path parameter description, query parameter was never meant to be there. - -### 2021-12-23 -- Clarified the documentation pertaining to the `WaarderingInputParameters` and which fields are required for the different product types. - -### 2021-12-22 (v1.0.1) -- Dates are now serialized in the ISO date-only format `yyyy-MM-dd` to stop any confusion around timezones and are all assumed to be in UTC. - - `peildatum` in `WaarderingsInputParameters` - - `datum_bestemmingplan` in `Bestemmingsdata` - - `datum_laatste_onderzoek` in `Bodemdata` - - `verkoopdatum` in `Referentieobject` - - `verkoopdatum` in `VorigeVerkoop` - - `waardebepalingsdatum` in `Modeldata` -- Reintroduced the `WaarderingWebhookPayload` model that was omitted. - -### 2021-12-21 -- Patching the status of a `Waardering` object will now immediatly reflect its new status in the response object. - -### 2021-12-13 (v1.0.0) -- Initial release of `v1` based on `v0.0.6` - -## 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. - -## Previous versions changelogs - -### 2022-02-02 -- API version `v0` was removed from service. - -### 2021-12-23 -- Mark `v0` as officially deprecated. No further versions will be released. Every implementation should move to `v1` - -### 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` +# 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: 1.3.1 -- Package version: 1.3.1 +- API version: 1.4.0-rc1 +- Package version: 1.4.0-rc1 +- Generator version: 7.13.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 @@ -215,25 +43,24 @@ Then import the package: 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 +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" + host = "https://api.calcasa.nl/api/v1" ) # The client must configure the authentication and authorization parameters @@ -241,60 +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' - -# 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: # 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/v1/adressen/{bagNummeraanduidingId} | Adres info op basis van BAG Nummeraanduiding Id. -*AdressenApi* | [**search_adres**](docs/AdressenApi.md#search_adres) | **POST** /api/v1/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/v1/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/v1/bodem/{bagNummeraanduidingId} | Gegevens over de bodemkwaliteit op de locatie van een adres (BAG Nummeraanduiding ID). -*BuurtApi* | [**get_buurt**](docs/BuurtApi.md#get_buurt) | **GET** /api/v1/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** /api/v1/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** /api/v1/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** /api/v1/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** /api/v1/callbacks/inschrijvingen | Haal de callback inschrijvingen binnen voor deze client. -*ConfiguratieApi* | [**get_callbacks**](docs/ConfiguratieApi.md#get_callbacks) | **GET** /api/v1/configuratie/callbacks | Haal de geconfigureerde callback URL's op voor de huidige client. -*ConfiguratieApi* | [**update_callbacks**](docs/ConfiguratieApi.md#update_callbacks) | **POST** /api/v1/configuratie/callbacks | Configureer callback URL voor een specifieke API versie voor de huidige client. -*FacturenApi* | [**get_factuur**](docs/FacturenApi.md#get_factuur) | **GET** /api/v1/facturen/{id} | Factuur op basis van een waardering Id. -*FotosApi* | [**get_foto**](docs/FotosApi.md#get_foto) | **GET** /api/v1/fotos/{id} | Foto op basis van een foto Id. -*FunderingenApi* | [**get_fundering_by_id**](docs/FunderingenApi.md#get_fundering_by_id) | **GET** /api/v1/funderingen/{bagNummeraanduidingId} | Gegevens over de fundering op de locatie van een adres (BAG Nummeraanduiding ID). -*GeldverstrekkersApi* | [**get_geldverstrekkers**](docs/GeldverstrekkersApi.md#get_geldverstrekkers) | **GET** /api/v1/geldverstrekkers/{productType} | Alle geldverstrekkers die te gebruiken zijn voor aanvragen. -*RapportenApi* | [**get_rapport**](docs/RapportenApi.md#get_rapport) | **GET** /api/v1/rapporten/{id} | Rapport op basis van waardering Id. -*WaarderingenApi* | [**create_waardering**](docs/WaarderingenApi.md#create_waardering) | **POST** /api/v1/waarderingen | Creërt een waardering. -*WaarderingenApi* | [**get_waardering**](docs/WaarderingenApi.md#get_waardering) | **GET** /api/v1/waarderingen/{id} | Waardering op basis van Id. -*WaarderingenApi* | [**get_waardering_ontwikkeling**](docs/WaarderingenApi.md#get_waardering_ontwikkeling) | **GET** /api/v1/waarderingen/{id}/ontwikkeling | Waardering ontwikkeling op basis van waardering Id. -*WaarderingenApi* | [**patch_waarderingen**](docs/WaarderingenApi.md#patch_waarderingen) | **PATCH** /api/v1/waarderingen/{id} | Patcht een waardering. -*WaarderingenApi* | [**search_waarderingen**](docs/WaarderingenApi.md#search_waarderingen) | **POST** /api/v1/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 @@ -326,7 +145,6 @@ Class | Method | HTTP request | Description - [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) @@ -345,8 +163,10 @@ Class | Method | HTTP request | Description - [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) @@ -355,84 +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:callback:all**: Full permissions for the callback 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:callback:read**: Read permissions for the callback area of the public API. - - **api:callback:write**: Write permissions for the callback 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:geldverstrekkers:read**: Read permissions for the geldverstrekkers 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. - - -## oauth - -- **Type**: OAuth -- **Flow**: accessCode -- **Authorization URL**: https://authentication.01.staging.calcasa.nl/oauth2/v2.0/authorize -- **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:callback:all**: Full permissions for the callback 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:callback:read**: Read permissions for the callback area of the public API. - - **api:callback:write**: Write permissions for the callback 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:geldverstrekkers:read**: Read permissions for the geldverstrekkers 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 @@ -440,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 index 0449099..950b548 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -1,7 +1,9 @@ +# coding: utf-8 + # flake8: noqa """ - Copyright 2023 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. @@ -15,25 +17,98 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.3.1" +__version__ = "1.4.0-rc1" + +# import apis into sdk 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 # import ApiClient +from calcasa.api.api_response import ApiResponse 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 ApiAttributeError from calcasa.api.exceptions import ApiException + +# import models into sdk 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/api/__init__.py b/calcasa/api/api/__init__.py index 1332ba3..6dfe8d4 100644 --- a/calcasa/api/api/__init__.py +++ b/calcasa/api/api/__init__.py @@ -1,3 +1,16 @@ -# 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 +# 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 index 153f603..40dae63 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,309 +15,591 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_adres_endpoint = _Endpoint( - settings={ - 'response_type': (AdresInfo,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + 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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['bag_nummeraanduiding_id'] = \ - bag_nummeraanduiding_id - return self.get_adres_endpoint.call_with_http_info(**kwargs) + + + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - 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 index df9e5bf..d531be2 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,177 +15,306 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_bestemming_by_id_endpoint = _Endpoint( - settings={ - 'response_type': (Bestemmingsdata,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - 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 index 7f8064a..011f237 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,177 +15,306 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_bodem_by_id_endpoint = _Endpoint( - settings={ - 'response_type': (Bodemdata,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/bodem/{bagNummeraanduidingId}', - 'operation_id': 'get_bodem_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 - ) + + @validate_call def get_bodem_by_id( self, - bag_nummeraanduiding_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(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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['bag_nummeraanduiding_id'] = \ - bag_nummeraanduiding_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 index d2aed24..e4d9892 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,177 +15,306 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_buurt_endpoint = _Endpoint( - settings={ - 'response_type': (Omgevingsdata,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/buurt/{buurtCode}', - 'operation_id': 'get_buurt', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'buurt_code', - ], - 'required': [ - 'buurt_code', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'buurt_code': - (str,), - }, - 'attribute_map': { - 'buurt_code': 'buurtCode', - }, - 'location_map': { - 'buurt_code': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/problem+json', - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) + + @validate_call def get_buurt( self, - buurt_code, - **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_code, async_req=True) - >>> result = thread.get() - - Args: - buurt_code (str): Een CBS buurt code. - - 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['buurt_code'] = \ - buurt_code - return self.get_buurt_endpoint.call_with_http_info(**kwargs) + diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index 7e1164d..a6ded7f 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,579 +15,1145 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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_inschrijving import CallbackInschrijving -from calcasa.api.model.invalid_argument_problem_details import InvalidArgumentProblemDetails -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 CallbacksApi(object): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.add_or_update_callback_subscription_endpoint = _Endpoint( - settings={ - 'response_type': (CallbackInschrijving,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/callbacks/inschrijvingen', - 'operation_id': 'add_or_update_callback_subscription', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'callback_inschrijving', - ], - 'required': [], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'callback_inschrijving': - (CallbackInschrijving,), - }, - 'attribute_map': { - }, - 'location_map': { - 'callback_inschrijving': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/problem+json', - 'application/json' - ], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) - self.delete_notification_subscription_endpoint = _Endpoint( - settings={ - 'response_type': None, - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId}', - 'operation_id': 'delete_notification_subscription', - 'http_method': 'DELETE', - 'servers': None, - }, - params_map={ - 'all': [ - 'bag_nummeraanduiding_id', - 'geldverstrekker', - ], - 'required': [ - 'bag_nummeraanduiding_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'bag_nummeraanduiding_id': - (int,), - 'geldverstrekker': - (str,), - }, - 'attribute_map': { - 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', - 'geldverstrekker': 'geldverstrekker', - }, - 'location_map': { - 'bag_nummeraanduiding_id': 'path', - 'geldverstrekker': 'query', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ + + + @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' - ], - 'content_type': [], - }, - api_client=api_client - ) - self.get_notification_subscription_endpoint = _Endpoint( - settings={ - 'response_type': (CallbackInschrijving,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/callbacks/inschrijvingen/{bagNummeraanduidingId}', - 'operation_id': 'get_notification_subscription', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'bag_nummeraanduiding_id', - 'geldverstrekker', - ], - 'required': [ - 'bag_nummeraanduiding_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'bag_nummeraanduiding_id': - (int,), - 'geldverstrekker': - (str,), - }, - 'attribute_map': { - 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', - 'geldverstrekker': 'geldverstrekker', - }, - 'location_map': { - 'bag_nummeraanduiding_id': 'path', - 'geldverstrekker': 'query', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/problem+json', - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) - self.get_notification_subscriptions_endpoint = _Endpoint( - settings={ - 'response_type': ([CallbackInschrijving],), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/callbacks/inschrijvingen', - 'operation_id': 'get_notification_subscriptions', - '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 + ) + + # 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 ) - def add_or_update_callback_subscription( - self, - **kwargs - ): - """Voeg een callback inschrijving toe (of werk bij) voor de huidige client voor een adres. # noqa: E501 - - 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. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.add_or_update_callback_subscription(async_req=True) - >>> result = thread.get() - - - Keyword Args: - callback_inschrijving (CallbackInschrijving): De te configureren callback inschrijving.. [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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - CallbackInschrijving - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.add_or_update_callback_subscription_endpoint.call_with_http_info(**kwargs) + + + @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, - **kwargs - ): - """Verwijder de callback inschrijving voor deze client, dit adres en optioneel een geldverstrekker. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.delete_notification_subscription(bag_nummeraanduiding_id, async_req=True) - >>> result = thread.get() - - Args: - bag_nummeraanduiding_id (int): - - Keyword Args: - geldverstrekker (str): [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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - None - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['bag_nummeraanduiding_id'] = \ - bag_nummeraanduiding_id - return self.delete_notification_subscription_endpoint.call_with_http_info(**kwargs) + 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, - **kwargs - ): - """Haal de callback inschrijving op voor deze client, dit adres en eventueel opgegeven geldverstrekker. # 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_notification_subscription(bag_nummeraanduiding_id, async_req=True) - >>> result = thread.get() - - Args: - bag_nummeraanduiding_id (int): - - Keyword Args: - geldverstrekker (str): [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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - CallbackInschrijving - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['bag_nummeraanduiding_id'] = \ - bag_nummeraanduiding_id - return self.get_notification_subscription_endpoint.call_with_http_info(**kwargs) + 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, - **kwargs - ): - """Haal de callback inschrijvingen binnen voor deze client. # noqa: E501 - - De callback objecten zullen 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_notification_subscriptions(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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - [CallbackInschrijving] - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.get_notification_subscriptions_endpoint.call_with_http_info(**kwargs) + _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 index 32d6dcf..d83e4da 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,296 +15,571 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_callbacks_endpoint = _Endpoint( - settings={ - 'response_type': ([Callback],), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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', - 'oauth' - ], - 'endpoint_path': '/api/v1/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' - ] - }, - api_client=api_client - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + _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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + 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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + + _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, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.get_callbacks_endpoint.call_with_http_info(**kwargs) + + + + @validate_call 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 of null verwijdert de geconfigureerde URL. # 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + 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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + + _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 ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + + @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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + + _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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.update_callbacks_endpoint.call_with_http_info(**kwargs) + 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 index 79a9c1d..2189ddf 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,175 +15,303 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 calcasa.api.api_client import ApiClient, RequestSerialized +from calcasa.api.api_response import ApiResponse +from calcasa.api.rest import RESTResponseType -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_factuur_endpoint = _Endpoint( - settings={ - 'response_type': (file_type,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + id: Annotated[StrictStr, 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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[StrictStr, 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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @validate_call + def get_factuur_without_preload_content( + self, + id: Annotated[StrictStr, 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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - 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 index 3009f43..3e31a88 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,176 +15,304 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 calcasa.api.api_client import ApiClient, RequestSerialized +from calcasa.api.api_response import ApiResponse +from calcasa.api.rest import RESTResponseType -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_foto_endpoint = _Endpoint( - settings={ - 'response_type': (file_type,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + id: Annotated[StrictStr, 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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[StrictStr, 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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @validate_call + def get_foto_without_preload_content( + self, + id: Annotated[StrictStr, 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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - 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 index 75d8eff..a7dd451 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,177 +15,306 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_fundering_by_id_endpoint = _Endpoint( - settings={ - 'response_type': (Funderingdata,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - 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/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index 9fa719b..567dd25 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,176 +15,302 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 -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.geldverstrekker import Geldverstrekker -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 - - -class GeldverstrekkersApi(object): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_geldverstrekkers_endpoint = _Endpoint( - settings={ - 'response_type': ([Geldverstrekker],), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/geldverstrekkers/{productType}', - 'operation_id': 'get_geldverstrekkers', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'product_type', - ], - 'required': [ - 'product_type', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'product_type': - (ProductType,), - }, - 'attribute_map': { - 'product_type': 'productType', - }, - 'location_map': { - 'product_type': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/problem+json', - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) + + @validate_call def get_geldverstrekkers( self, - product_type, - **kwargs - ): - """Alle geldverstrekkers die te gebruiken zijn voor aanvragen. # 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_geldverstrekkers(product_type, async_req=True) - >>> result = thread.get() - - Args: - product_type (ProductType): Een parameter om de lijst te filteren op gesupporte producttypen. - - 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - [Geldverstrekker] - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False + 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['product_type'] = \ - product_type - return self.get_geldverstrekkers_endpoint.call_with_http_info(**kwargs) + diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index 8ba4232..a77e475 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,175 +15,303 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 calcasa.api.api_client import ApiClient, RequestSerialized +from calcasa.api.api_response import ApiResponse +from calcasa.api.rest import RESTResponseType -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): + +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.get_rapport_endpoint = _Endpoint( - settings={ - 'response_type': (file_type,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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 + id: Annotated[StrictStr, 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 ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True + + _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[StrictStr, 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 ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True + + _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 ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True + + + @validate_call + def get_rapport_without_preload_content( + self, + id: Annotated[StrictStr, 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 ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True + + _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 ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + 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 ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - 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 index 97f24cf..5477446 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,726 +15,1470 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 import List +from typing_extensions import Annotated +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 + -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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails -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): +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): + def __init__(self, api_client=None) -> None: if api_client is None: - api_client = ApiClient() + api_client = ApiClient.get_default() self.api_client = api_client - self.create_waardering_endpoint = _Endpoint( - settings={ - 'response_type': (Waardering,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/api/v1/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', - 'oauth' - ], - 'endpoint_path': '/api/v1/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', - 'oauth' - ], - 'endpoint_path': '/api/v1/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', - 'oauth' - ], - 'endpoint_path': '/api/v1/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', - 'oauth' - ], - 'endpoint_path': '/api/v1/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 - ) + + @validate_call 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/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) | # 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.create_waardering_endpoint.call_with_http_info(**kwargs) + 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[StrictStr, 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[StrictStr, 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[StrictStr, 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, - **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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = \ - id - return self.get_waardering_endpoint.call_with_http_info(**kwargs) + _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[StrictStr, 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[StrictStr, 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[StrictStr, 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, - **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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = \ - id - return self.get_waardering_ontwikkeling_endpoint.call_with_http_info(**kwargs) + _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[StrictStr, 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[StrictStr, 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[StrictStr, 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, - **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/v1/reference/schemas/WaarderingWebhookPayload) | | deel-waardering | {configuredWebhookUrl}deel-waardering | [DeelWaarderingWebhookPayload](/api/v1/reference/schemas/DeelWaarderingWebhookPayload) | # 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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = \ - id - return self.patch_waarderingen_endpoint.call_with_http_info(**kwargs) + 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, - **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. - _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) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - 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['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.search_waarderingen_endpoint.call_with_http_info(**kwargs) + 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 index e7b9b27..551f0ec 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,45 +15,45 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 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 +import tempfile +from urllib.parse import quote +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr -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 +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(object): +class ApiClient: """Generic API client for OpenAPI client library builds. OpenAPI generic API client. This client handles the client- @@ -59,28 +61,39 @@ class ApiClient(object): 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. """ + 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, pool_threads=1): + 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_copy() + configuration = Configuration.get_default() self.configuration = configuration - self.pool_threads = pool_threads self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} @@ -88,31 +101,14 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.3.1' + self.user_agent = 'Calcasa Python Api Client/1.4.0-rc1' + self.client_side_validation = configuration.client_side_validation 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 + pass @property def user_agent(self): @@ -126,27 +122,69 @@ def user_agent(self, value): def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value - def __call_api( + + _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, - 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, - _content_type: typing.Optional[str] = None, - _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None - ): + 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 @@ -157,14 +195,17 @@ def __call_api( 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)) + 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) + 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( @@ -172,345 +213,269 @@ def __call_api( 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)) + 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) - # auth setting - self.update_params_for_auth(header_params, query_params, - auth_settings, resource_path, method, body, - request_auths=_request_auths) - # request url - if _host is None: + 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.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) + 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: - e.body = e.body.decode('utf-8') raise e - self.last_response = response_data + return response_data - return_data = 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 - if not _preload_content: - return (return_data) - return return_data + 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 - if response_type: - if response_type != (file_type,): - encoding = "utf-8" + 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) - 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 + 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, + ) - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) + return ApiResponse( + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data + ) - def parameters_to_multipart(self, params, collection_types): - """Get parameters as list of tuples, formatting as json if value is collection_types + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. - :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 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. - 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)): + 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, (datetime, date)): + 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, 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): + 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__ + + 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: 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 + :param response_type: class literal for + deserialized object, or string of class name. + :param content_type: content type of response. :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 + 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) + ) - 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, - _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None - ): - """Makes the HTTP request (synchronous) and returns deserialized data. + return self.__deserialize(data, response_type) - To make an async_req request, set the async_req parameter. + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. - :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 - :param _request_auths: 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_auths: list, 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. + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. """ - 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, _request_auths=_request_auths) - - 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, None, _request_auths)) - - 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) + 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 == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) else: - raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) + return self.__deserialize_model(data, klass) def parameters_to_tuples(self, params, collection_formats): """Get parameters as list of tuples, formatting collections. @@ -519,10 +484,10 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params = [] + 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: # noqa: E501 + 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': @@ -542,118 +507,178 @@ def parameters_to_tuples(self, params, collection_formats): 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 parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. - def files_parameters(self, - files: typing.Optional[typing.Dict[str, - typing.List[io.IOBase]]] = None): + :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: 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 + :param files: File parameters. + :return: Form parameters with files. """ - 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 + 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 - 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])])) - + 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): + 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 + return None - accepts = [x.lower() for x in accepts] + for accept in accepts: + if re.search('json', accept, re.IGNORECASE): + return accept - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) + return accepts[0] - def select_header_content_type(self, content_types, method=None, body=None): + 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. - :param method: http method (e.g. POST, PATCH). - :param body: http body to send. :return: Content-Type (e.g. application/json). """ if not content_types: return None - content_types = [x.lower() for x in content_types] + for content_type in content_types: + if re.search('json', content_type, re.IGNORECASE): + return content_type - if (method == 'PATCH' and - 'application/json-patch+json' in content_types and - isinstance(body, list)): - return 'application/json-patch+json' + return content_types[0] - 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, request_auths=None): + 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. - :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(). - :param request_auths: if set, the provided settings will - override the token in the configuration. + :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_auths: - for auth_setting in request_auths: - self._apply_auth_params( - headers, queries, resource_path, method, body, auth_setting) - 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 + ) - 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 - def _apply_auth_params(self, headers, queries, resource_path, method, body, 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['key'] + "=" + auth_setting['value'] + headers['Cookie'] = auth_setting['value'] elif auth_setting['in'] == 'header': if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value'] @@ -664,245 +689,120 @@ def _apply_auth_params(self, headers, queries, resource_path, method, body, auth 'Authentication token must be in `query` or `header`' ) + def __deserialize_file(self, response): + """Deserializes body to file -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', - '_content_type', - '_spec_property_naming', - '_request_auths' - ]) - 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,), - '_spec_property_naming': (bool,), - '_content_type': (none_type, str), - '_request_auths': (none_type, list) - } - 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] - ) + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. - 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 + handle file downloading + save response body into a tmp file and return the instance - for key, value in kwargs.items(): - fixed_val = validate_and_convert_types( - value, - self.openapi_types[key], - [key], - kwargs['_spec_property_naming'], - kwargs['_check_input_type'], - configuration=self.api_client.configuration + :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 ) - kwargs[key] = fixed_val - - def __gather_params(self, kwargs): - params = { - 'body': None, - 'collection_format': {}, - 'file': {}, - 'form': [], - 'header': {}, - 'path': {}, - 'query': [] - } + assert m is not None, "Unexpected 'content-disposition' header value" + filename = m.group(1) + path = os.path.join(os.path.dirname(path), filename) - 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'][base_name] = [param_value] - elif (param_location == 'form' and - self.openapi_types[param_name] == ([file_type],)): - # param_value is already a list - params['file'][base_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 + with open(path, "wb") as f: + f.write(response.data) - return params + return path - def __call__(self, *args, **kwargs): - """ This method is invoked when endpoints are called - Example: + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. - 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 + :param data: str. + :param klass: class literal. + :return: int, long, float, str, bool. """ - return self.callable(self, *args, **kwargs) + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data - def call_with_http_info(self, **kwargs): + 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: - 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'] + 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) ) - 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']) + 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. - self.__validate_inputs(kwargs) + :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) + ) + ) - params = self.__gather_params(kwargs) + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. - accept_headers_list = self.headers_map['accept'] - if accept_headers_list: - params['header']['Accept'] = self.api_client.select_header_accept( - accept_headers_list) + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ - if kwargs.get('_content_type'): - params['header']['Content-Type'] = kwargs['_content_type'] - else: - content_type_headers_list = self.headers_map['content_type'] - if content_type_headers_list: - if params['body'] != "": - content_types_list = self.api_client.select_header_content_type( - content_type_headers_list, self.settings['http_method'], - params['body']) - if content_types_list: - params['header']['Content-Type'] = content_types_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, - _request_auths=kwargs['_request_auths'], - collection_formats=params['collection_format']) + 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..9bc7c11 --- /dev/null +++ b/calcasa/api/api_response.py @@ -0,0 +1,21 @@ +"""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/apis/__init__.py b/calcasa/api/apis/__init__.py deleted file mode 100644 index fba62ae..0000000 --- a/calcasa/api/apis/__init__.py +++ /dev/null @@ -1,28 +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 calcasa.api.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.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/configuration.py b/calcasa/api/configuration.py index a39793c..fd7485a 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,21 +15,24 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 = { @@ -36,46 +41,124 @@ '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 +167,41 @@ 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, - ): + _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" if host is None else host + 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 +212,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,8 +238,9 @@ 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 """ @@ -153,13 +252,16 @@ def __init__(self, host=None, 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 +273,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 +286,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,28 +299,34 @@ 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 = '' """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 + """ + + self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + """datetime format + """ - def __deepcopy__(self, memo): + 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 @@ -224,18 +340,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 +352,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) -> 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_copy(cls): - """Return new instance of configuration. + 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 +391,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 +410,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 +419,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 +430,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 +452,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 +463,7 @@ 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. @@ -361,7 +480,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. @@ -376,19 +497,12 @@ def get_basic_auth_token(self): 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 = {} - if self.access_token is not None: - auth['oauth'] = { - 'type': 'oauth2', - 'in': 'header', - 'key': 'Authorization', - 'value': 'Bearer ' + self.access_token - } + auth: AuthSettings = {} if self.access_token is not None: auth['oauth'] = { 'type': 'oauth2', @@ -398,7 +512,7 @@ def auth_settings(self): } return auth - def to_debug_report(self): + def to_debug_report(self) -> str: """Gets the essential information for debugging. :return: The report for debugging. @@ -406,27 +520,50 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.3.1\n"\ - "SDK Package Version: 1.3.1".\ + "Version of the API: 1.4.0-rc1\n"\ + "SDK Package Version: 1.4.0-rc1".\ 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", + '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", + '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 @@ -466,12 +603,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): 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) @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 index 3e340a3..3b2393e 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,12 +15,15 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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""" @@ -26,7 +31,7 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): + key_type=None) -> None: """ Raises an exception for TypeErrors Args: @@ -54,7 +59,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -72,7 +77,7 @@ def __init__(self, msg, path_to_item=None): class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Raised when an attribute reference or assignment fails. @@ -91,7 +96,7 @@ def __init__(self, msg, path_to_item=None): class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -109,54 +114,106 @@ def __init__(self, msg, path_to_item=None): class ApiException(OpenApiException): - def __init__(self, status=None, reason=None, http_resp=None): + 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: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data + 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() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None + + @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 = "Status Code: {0}\n"\ + 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) + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) return error_message -class NotFoundException(ApiException): +class BadRequestException(ApiException): + pass - def __init__(self, status=None, reason=None, http_resp=None): - super(NotFoundException, self).__init__(status, reason, http_resp) +class NotFoundException(ApiException): + pass -class UnauthorizedException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None): - super(UnauthorizedException, self).__init__(status, reason, http_resp) +class UnauthorizedException(ApiException): + pass class ForbiddenException(ApiException): - - def __init__(self, status=None, reason=None, http_resp=None): - super(ForbiddenException, self).__init__(status, reason, http_resp) + pass class ServiceException(ApiException): + pass + + +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + - def __init__(self, status=None, reason=None, http_resp=None): - super(ServiceException, self).__init__(status, reason, http_resp) +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass def render_path(path_to_item): diff --git a/calcasa/api/model/__init__.py b/calcasa/api/model/__init__.py deleted file mode 100644 index ea78aa8..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 calcasa.api.models import ModelA, ModelB diff --git a/calcasa/api/model/aanvraagdoel.py b/calcasa/api/model/aanvraagdoel.py deleted file mode 100644 index 5e30cab..0000000 --- a/calcasa/api/model/aanvraagdoel.py +++ /dev/null @@ -1,307 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 8bc8bbb..0000000 --- a/calcasa/api/model/adres.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 bc10f48..0000000 --- a/calcasa/api/model/adres_info.py +++ /dev/null @@ -1,288 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.adres import Adres - from calcasa.api.model.notities import Notities - globals()['Adres'] = Adres - globals()['Notities'] = Notities - - -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. - """ - lazy_import() - return { - 'bag_nummeraanduiding_id': (int,), # noqa: E501 - 'adres': (Adres,), # noqa: E501 - 'notities': (Notities,), # 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 (Adres): [optional] # noqa: E501 - notities (Notities): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (Adres): [optional] # noqa: E501 - notities (Notities): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 bf8883a..0000000 --- a/calcasa/api/model/bestemmingsdata.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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': (date, 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 (date, 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (date, 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 5f5f73a..0000000 --- a/calcasa/api/model/bodem_status_type.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 363cc91..0000000 --- a/calcasa/api/model/bodemdata.py +++ /dev/null @@ -1,282 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.bodem_status_type import BodemStatusType - globals()['BodemStatusType'] = BodemStatusType - - -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. - """ - lazy_import() - return { - 'status': (BodemStatusType,), # noqa: E501 - 'datum_laatste_onderzoek': (date, 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 (BodemStatusType): [optional] # noqa: E501 - datum_laatste_onderzoek (date, 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (BodemStatusType): [optional] # noqa: E501 - datum_laatste_onderzoek (date, 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 0648b65..0000000 --- a/calcasa/api/model/business_rules_code.py +++ /dev/null @@ -1,311 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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", - 'LTVTEHOOGOVERBRUGGING': "ltvTeHoogOverbrugging", - }, - } - - 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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. | | `ltvTeHoogOverbrugging` | Loan-to-value is te hoog voor deze overbrugging volgens de business rules. | ., must be one of ["geenWaardebepalingMogelijk", "geenBestaandeWoning", "fouteOfOntbrekendeInvoer", "calcasaWaardeTeHoog", "ltvTeHoog", "hypotheekTeHoog", "woningtypeIncorrect", "calcasaWaardeTeLaag", "calcasaWaardeTeHoogVoorNhg", "calcasaWaardeEnKoopsomTeHoogVoorNhg", "ltvTeHoogOverbrugging", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 4c28af3..0000000 --- a/calcasa/api/model/business_rules_problem_details.py +++ /dev/null @@ -1,301 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.business_rules_code import BusinessRulesCode - globals()['BusinessRulesCode'] = BusinessRulesCode - - -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 - """ - 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 { - 'business_rules_code': (BusinessRulesCode,), # 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 (BusinessRulesCode): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (BusinessRulesCode): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 d484ecf..0000000 --- a/calcasa/api/model/callback.py +++ /dev/null @@ -1,276 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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. 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.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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. 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.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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_inschrijving.py b/calcasa/api/model/callback_inschrijving.py deleted file mode 100644 index 2e694bb..0000000 --- a/calcasa/api/model/callback_inschrijving.py +++ /dev/null @@ -1,289 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - - -class CallbackInschrijving(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 - 'geldig_tot': (datetime,), # noqa: E501 - 'externe_referentie': (str, none_type,), # noqa: E501 - 'geldverstrekker': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'bag_nummeraanduiding_id': 'bagNummeraanduidingId', # noqa: E501 - 'geldig_tot': 'geldigTot', # noqa: E501 - 'externe_referentie': 'externeReferentie', # noqa: E501 - 'geldverstrekker': 'geldverstrekker', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs): # noqa: E501 - """CallbackInschrijving - a model defined in OpenAPI - - Args: - bag_nummeraanduiding_id (int): Verplicht. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. - geldig_tot (datetime): 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. - - 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,) - externe_referentie (str, none_type): Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.. [optional] # noqa: E501 - geldverstrekker (str, none_type): Optioneel veld om alleen op aanvragen voor een bepaalde geldverstrekker in te schrijven.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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.bag_nummeraanduiding_id = bag_nummeraanduiding_id - self.geldig_tot = geldig_tot - 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, bag_nummeraanduiding_id, geldig_tot, *args, **kwargs): # noqa: E501 - """CallbackInschrijving - a model defined in OpenAPI - - Args: - bag_nummeraanduiding_id (int): Verplicht. Het BAG (Basisregistratie Adressen en Gebouwen) nummeraanduiding id. - geldig_tot (datetime): 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. - - 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,) - externe_referentie (str, none_type): Een vrij veld dat terug komt met de callback payload om callbacks aan de juiste callback inschrijving te koppelen.. [optional] # noqa: E501 - geldverstrekker (str, none_type): Optioneel veld om alleen op aanvragen voor een bepaalde geldverstrekker in te schrijven.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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.bag_nummeraanduiding_id = bag_nummeraanduiding_id - self.geldig_tot = geldig_tot - 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 db9bf54..0000000 --- a/calcasa/api/model/cbs_indeling.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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 - 'buurt_code': (str,), # 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 - 'buurt_code': 'buurtCode', # 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): De buurt code zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).. [optional] # noqa: E501 - buurt_code (str): De buurt code 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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): De buurt code zoals bekend bij het CBS (Centraal Bureau voor de Statistiek).. [optional] # noqa: E501 - buurt_code (str): De buurt code 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/deel_waardering_webhook_payload.py b/calcasa/api/model/deel_waardering_webhook_payload.py deleted file mode 100644 index 8e9d9d0..0000000 --- a/calcasa/api/model/deel_waardering_webhook_payload.py +++ /dev/null @@ -1,282 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - - -class DeelWaarderingWebhookPayload(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 - 'timestamp': (datetime,), # 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 - 'timestamp': 'timestamp', # 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 - """DeelWaarderingWebhookPayload - 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 - timestamp (datetime): Het tijdstip van het event, in UTC.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """DeelWaarderingWebhookPayload - 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 - timestamp (datetime): Het tijdstip van het event, 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 78d0fc2..0000000 --- a/calcasa/api/model/energielabel.py +++ /dev/null @@ -1,312 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/energielabel_data.py b/calcasa/api/model/energielabel_data.py deleted file mode 100644 index 7fc06a9..0000000 --- a/calcasa/api/model/energielabel_data.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - - -class EnergielabelData(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 { - 'aantal_sterren': (int, none_type,), # noqa: E501 - 'geldig_tot': (date, none_type,), # noqa: E501 - 'registratiedatum': (date, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'aantal_sterren': 'aantalSterren', # noqa: E501 - 'geldig_tot': 'geldigTot', # noqa: E501 - 'registratiedatum': 'registratiedatum', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """EnergielabelData - 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,) - aantal_sterren (int, none_type): 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.. [optional] # noqa: E501 - geldig_tot (date, none_type): De registratiedatum. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 - registratiedatum (date, none_type): De datum tot wanneer het label geldig is. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """EnergielabelData - 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,) - aantal_sterren (int, none_type): 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.. [optional] # noqa: E501 - geldig_tot (date, none_type): De registratiedatum. Beschikbaar voor 2 en 3 sterrenlabels.. [optional] # noqa: E501 - registratiedatum (date, none_type): De datum tot wanneer het label geldig is. Beschikbaar voor 2 en 3 sterrenlabels.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/factuur.py b/calcasa/api/model/factuur.py deleted file mode 100644 index 0dabef5..0000000 --- a/calcasa/api/model/factuur.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 bd875fe..0000000 --- a/calcasa/api/model/foto.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 3b2349c..0000000 --- a/calcasa/api/model/fundering_data_bron.py +++ /dev/null @@ -1,302 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 3e305e3..0000000 --- a/calcasa/api/model/fundering_herstel_type.py +++ /dev/null @@ -1,305 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 3447400..0000000 --- a/calcasa/api/model/fundering_risico.py +++ /dev/null @@ -1,284 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.fundering_risico_label import FunderingRisicoLabel - from calcasa.api.model.fundering_soort_bron import FunderingSoortBron - globals()['FunderingRisicoLabel'] = FunderingRisicoLabel - globals()['FunderingSoortBron'] = FunderingSoortBron - - -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. - """ - lazy_import() - return { - 'label': (FunderingRisicoLabel,), # noqa: E501 - 'bron': (FunderingSoortBron,), # 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 (FunderingRisicoLabel): [optional] # noqa: E501 - bron (FunderingSoortBron): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (FunderingRisicoLabel): [optional] # noqa: E501 - bron (FunderingSoortBron): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 b961f58..0000000 --- a/calcasa/api/model/fundering_risico_label.py +++ /dev/null @@ -1,304 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 229cf73..0000000 --- a/calcasa/api/model/fundering_soort_bron.py +++ /dev/null @@ -1,304 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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", - 'BOUWEENHEID': "bouweenheid", - }, - } - - 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. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # noqa: E501 - - Keyword Args: - value (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # noqa: E501 - - Keyword Args: - value (str): Bron voor funderingsinformatie. | Waarde | Omschrijving | | --- | --- | | `onbekend` | Onbekende bron. | | `model` | Modelmatig. | | `document` | Uit een document. | | `bouweenheid` | Op basis van woningen in hetzelfde woonblok. | ., must be one of ["onbekend", "model", "document", "bouweenheid", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 cd06ff6..0000000 --- a/calcasa/api/model/fundering_type.py +++ /dev/null @@ -1,318 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 593d145..0000000 --- a/calcasa/api/model/fundering_typering.py +++ /dev/null @@ -1,284 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.fundering_soort_bron import FunderingSoortBron - from calcasa.api.model.fundering_type import FunderingType - globals()['FunderingSoortBron'] = FunderingSoortBron - globals()['FunderingType'] = FunderingType - - -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. - """ - lazy_import() - return { - 'type': (FunderingType,), # noqa: E501 - 'bron': (FunderingSoortBron,), # 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 (FunderingType): [optional] # noqa: E501 - bron (FunderingSoortBron): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (FunderingType): [optional] # noqa: E501 - bron (FunderingSoortBron): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 e7673f7..0000000 --- a/calcasa/api/model/funderingdata.py +++ /dev/null @@ -1,304 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - 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_typering import FunderingTypering - globals()['FunderingDataBron'] = FunderingDataBron - globals()['FunderingHerstelType'] = FunderingHerstelType - globals()['FunderingRisico'] = FunderingRisico - globals()['FunderingTypering'] = FunderingTypering - - -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. - """ - lazy_import() - return { - 'typering': (FunderingTypering,), # noqa: E501 - 'herstel_type': (FunderingHerstelType,), # noqa: E501 - 'droogstand_risico': (FunderingRisico,), # noqa: E501 - 'optrekkend_vocht_risico': (FunderingRisico,), # noqa: E501 - 'bio_infectie_risico': (FunderingRisico,), # noqa: E501 - 'herstelkosten': (float, none_type,), # noqa: E501 - 'bron': (FunderingDataBron,), # 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 (FunderingTypering): [optional] # noqa: E501 - herstel_type (FunderingHerstelType): [optional] # noqa: E501 - droogstand_risico (FunderingRisico): [optional] # noqa: E501 - optrekkend_vocht_risico (FunderingRisico): [optional] # noqa: E501 - bio_infectie_risico (FunderingRisico): [optional] # noqa: E501 - herstelkosten (float, none_type): Indicatieve herstelkosten van de fundering.. [optional] # noqa: E501 - bron (FunderingDataBron): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (FunderingTypering): [optional] # noqa: E501 - herstel_type (FunderingHerstelType): [optional] # noqa: E501 - droogstand_risico (FunderingRisico): [optional] # noqa: E501 - optrekkend_vocht_risico (FunderingRisico): [optional] # noqa: E501 - bio_infectie_risico (FunderingRisico): [optional] # noqa: E501 - herstelkosten (float, none_type): Indicatieve herstelkosten van de fundering.. [optional] # noqa: E501 - bron (FunderingDataBron): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 3723bb5..0000000 --- a/calcasa/api/model/gebiedsdata.py +++ /dev/null @@ -1,301 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/geldverstrekker.py b/calcasa/api/model/geldverstrekker.py deleted file mode 100644 index b621324..0000000 --- a/calcasa/api/model/geldverstrekker.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - - -class Geldverstrekker(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 { - 'slug': (str,), # noqa: E501 - 'name': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'slug': 'slug', # noqa: E501 - 'name': 'name', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """Geldverstrekker - 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,) - slug (str): De slug voor deze geldverstrekker, dit is de waarde die gebruikt moet worden als input voor andere endpoints.. [optional] # noqa: E501 - name (str): De volledige naam van deze geldverstrekker.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """Geldverstrekker - 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,) - slug (str): De slug voor deze geldverstrekker, dit is de waarde die gebruikt moet worden als input voor andere endpoints.. [optional] # noqa: E501 - name (str): De volledige naam van deze geldverstrekker.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 5910c87..0000000 --- a/calcasa/api/model/invalid_argument_problem_details.py +++ /dev/null @@ -1,295 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 44b9007..0000000 --- a/calcasa/api/model/json_patch_document.py +++ /dev/null @@ -1,303 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 5c22b1a..0000000 --- a/calcasa/api/model/klantwaarde_type.py +++ /dev/null @@ -1,305 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 3a62c16..0000000 --- a/calcasa/api/model/kwartaal.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 41ef881..0000000 --- a/calcasa/api/model/modeldata.py +++ /dev/null @@ -1,289 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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': (date,), # 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 (date): 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (date): 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 fb5c20d..0000000 --- a/calcasa/api/model/not_found_problem_details.py +++ /dev/null @@ -1,295 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 7d9454b..0000000 --- a/calcasa/api/model/notitie.py +++ /dev/null @@ -1,304 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 364a447..0000000 --- a/calcasa/api/model/notities.py +++ /dev/null @@ -1,290 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.notitie import Notitie - globals()['Notitie'] = Notitie - - -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. - """ - lazy_import() - return { - 'straat': (Notitie,), # noqa: E501 - 'huisnummer': (Notitie,), # noqa: E501 - 'huisnummertoevoeging': (Notitie,), # noqa: E501 - 'postcode': (Notitie,), # noqa: E501 - 'woonplaats': (Notitie,), # 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 (Notitie): [optional] # noqa: E501 - huisnummer (Notitie): [optional] # noqa: E501 - huisnummertoevoeging (Notitie): [optional] # noqa: E501 - postcode (Notitie): [optional] # noqa: E501 - woonplaats (Notitie): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (Notitie): [optional] # noqa: E501 - huisnummer (Notitie): [optional] # noqa: E501 - huisnummertoevoeging (Notitie): [optional] # noqa: E501 - postcode (Notitie): [optional] # noqa: E501 - woonplaats (Notitie): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 c93452f..0000000 --- a/calcasa/api/model/objectdata.py +++ /dev/null @@ -1,302 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.energielabel import Energielabel - from calcasa.api.model.energielabel_data import EnergielabelData - from calcasa.api.model.woning_type import WoningType - globals()['Energielabel'] = Energielabel - globals()['EnergielabelData'] = EnergielabelData - globals()['WoningType'] = WoningType - - -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. - """ - lazy_import() - return { - 'woning_type': (WoningType,), # noqa: E501 - 'bouwjaar': (int,), # noqa: E501 - 'oppervlak': (int,), # noqa: E501 - 'perceeloppervlak': (int,), # noqa: E501 - 'inhoud': (int,), # noqa: E501 - 'energielabel': (Energielabel,), # noqa: E501 - 'energielabel_data': (EnergielabelData,), # 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 - 'energielabel_data': 'energielabelData', # 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 (WoningType): [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 (Energielabel): [optional] # noqa: E501 - energielabel_data (EnergielabelData): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (WoningType): [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 (Energielabel): [optional] # noqa: E501 - energielabel_data (EnergielabelData): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 9055ca6..0000000 --- a/calcasa/api/model/omgevingsdata.py +++ /dev/null @@ -1,290 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.gebiedsdata import Gebiedsdata - globals()['Gebiedsdata'] = Gebiedsdata - - -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. - """ - lazy_import() - return { - 'buurt': (Gebiedsdata,), # noqa: E501 - 'wijk': (Gebiedsdata,), # noqa: E501 - 'gemeente': (Gebiedsdata,), # noqa: E501 - 'provincie': (Gebiedsdata,), # noqa: E501 - 'land': (Gebiedsdata,), # 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 (Gebiedsdata): [optional] # noqa: E501 - wijk (Gebiedsdata): [optional] # noqa: E501 - gemeente (Gebiedsdata): [optional] # noqa: E501 - provincie (Gebiedsdata): [optional] # noqa: E501 - land (Gebiedsdata): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (Gebiedsdata): [optional] # noqa: E501 - wijk (Gebiedsdata): [optional] # noqa: E501 - gemeente (Gebiedsdata): [optional] # noqa: E501 - provincie (Gebiedsdata): [optional] # noqa: E501 - land (Gebiedsdata): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 62df157..0000000 --- a/calcasa/api/model/operation.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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': (bool, date, datetime, dict, float, int, list, str, 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 (bool, date, datetime, dict, float, int, list, str, 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (bool, date, datetime, dict, float, int, list, str, 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 eb8cf55..0000000 --- a/calcasa/api/model/operation_type.py +++ /dev/null @@ -1,307 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 f4bd849..0000000 --- a/calcasa/api/model/permissions_denied_problem_details.py +++ /dev/null @@ -1,295 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 8e2f5c1..0000000 --- a/calcasa/api/model/problem_details.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 78097ea..0000000 --- a/calcasa/api/model/product_type.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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", - 'DESKTOPTAXATIEHERWAARDERING': "desktopTaxatieHerwaardering", - }, - } - - 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): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # noqa: E501 - - Keyword Args: - value (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # noqa: E501 - - Keyword Args: - value (str): 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. | ., must be one of ["onbekend", "modelwaardeCalcasa", "modelwaardeRisico", "modelwaardeDesktopTaxatie", "desktopTaxatie", "desktopTaxatieHerwaardering", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 527283d..0000000 --- a/calcasa/api/model/rapport.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 654612c..0000000 --- a/calcasa/api/model/referentieobject.py +++ /dev/null @@ -1,330 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.adres import Adres - from calcasa.api.model.cbs_indeling import CbsIndeling - from calcasa.api.model.foto import Foto - from calcasa.api.model.objectdata import Objectdata - from calcasa.api.model.verkoop_bijzonderheden import VerkoopBijzonderheden - globals()['Adres'] = Adres - globals()['CbsIndeling'] = CbsIndeling - globals()['Foto'] = Foto - globals()['Objectdata'] = Objectdata - 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': (date,), # noqa: E501 - 'adres': (Adres,), # noqa: E501 - 'object': (Objectdata,), # noqa: E501 - 'cbs_indeling': (CbsIndeling,), # 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 (date): In UTC.. [optional] # noqa: E501 - adres (Adres): [optional] # noqa: E501 - object (Objectdata): [optional] # noqa: E501 - cbs_indeling (CbsIndeling): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (date): In UTC.. [optional] # noqa: E501 - adres (Adres): [optional] # noqa: E501 - object (Objectdata): [optional] # noqa: E501 - cbs_indeling (CbsIndeling): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/resource_exhausted_problem_details.py b/calcasa/api/model/resource_exhausted_problem_details.py deleted file mode 100644 index 324fd98..0000000 --- a/calcasa/api/model/resource_exhausted_problem_details.py +++ /dev/null @@ -1,295 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - - -class ResourceExhaustedProblemDetails(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 { - 'resource': (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 = { - 'resource': 'resource', # 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 - """ResourceExhaustedProblemDetails - 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,) - resource (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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """ResourceExhaustedProblemDetails - 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,) - resource (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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 a63fd0b..0000000 --- a/calcasa/api/model/taxatiedata.py +++ /dev/null @@ -1,286 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.taxatiestatus import Taxatiestatus - globals()['Taxatiestatus'] = Taxatiestatus - - -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. - """ - lazy_import() - return { - 'taxatieorganisatie': (str,), # noqa: E501 - 'taxateurnaam': (str,), # noqa: E501 - 'status': (Taxatiestatus,), # noqa: E501 - 'taxatiedatum': (datetime,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'taxatieorganisatie': 'taxatieorganisatie', # noqa: E501 - 'taxateurnaam': 'taxateurnaam', # 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 - taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [optional] # noqa: E501 - status (Taxatiestatus): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - taxateurnaam (str): De naam van de taxateur die de waardering heeft behandeld.. [optional] # noqa: E501 - status (Taxatiestatus): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 6e2f299..0000000 --- a/calcasa/api/model/taxatiestatus.py +++ /dev/null @@ -1,303 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 84f5e78..0000000 --- a/calcasa/api/model/validation_problem_details.py +++ /dev/null @@ -1,295 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - - -class ValidationProblemDetails(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 { - 'errors': ({str: ([str],)},), # 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 = { - } - - _composed_schemas = {} - - @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],)}): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 - """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],)}): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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/verkoop_bijzonderheden.py b/calcasa/api/model/verkoop_bijzonderheden.py deleted file mode 100644 index 1e2bcb2..0000000 --- a/calcasa/api/model/verkoop_bijzonderheden.py +++ /dev/null @@ -1,309 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 e496d1a..0000000 --- a/calcasa/api/model/vorige_verkoop.py +++ /dev/null @@ -1,298 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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': (date,), # 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 (date): 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (date): 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 0c2baed..0000000 --- a/calcasa/api/model/waardering.py +++ /dev/null @@ -1,348 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.adres import Adres - from calcasa.api.model.cbs_indeling import CbsIndeling - from calcasa.api.model.factuur import Factuur - from calcasa.api.model.foto import Foto - from calcasa.api.model.modeldata import Modeldata - from calcasa.api.model.objectdata import Objectdata - 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.vorige_verkoop import VorigeVerkoop - from calcasa.api.model.waardering_input_parameters import WaarderingInputParameters - from calcasa.api.model.waardering_status import WaarderingStatus - globals()['Adres'] = Adres - globals()['CbsIndeling'] = CbsIndeling - globals()['Factuur'] = Factuur - globals()['Foto'] = Foto - globals()['Modeldata'] = Modeldata - globals()['Objectdata'] = Objectdata - globals()['Rapport'] = Rapport - globals()['Referentieobject'] = Referentieobject - globals()['Taxatiedata'] = Taxatiedata - globals()['VorigeVerkoop'] = VorigeVerkoop - globals()['WaarderingInputParameters'] = WaarderingInputParameters - globals()['WaarderingStatus'] = WaarderingStatus - - -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': (WaarderingStatus,), # noqa: E501 - 'originele_input': (WaarderingInputParameters,), # noqa: E501 - 'adres': (Adres,), # noqa: E501 - 'model': (Modeldata,), # noqa: E501 - 'taxatie': (Taxatiedata,), # noqa: E501 - 'object': (Objectdata,), # noqa: E501 - 'cbs_indeling': (CbsIndeling,), # noqa: E501 - 'fotos': ([Foto], none_type,), # noqa: E501 - 'referenties': ([Referentieobject], none_type,), # noqa: E501 - 'vorige_verkopen': ([VorigeVerkoop], none_type,), # noqa: E501 - 'rapport': (Rapport,), # noqa: E501 - 'factuur': (Factuur,), # 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 (WaarderingStatus): [optional] # noqa: E501 - originele_input (WaarderingInputParameters): [optional] # noqa: E501 - adres (Adres): [optional] # noqa: E501 - model (Modeldata): [optional] # noqa: E501 - taxatie (Taxatiedata): [optional] # noqa: E501 - object (Objectdata): [optional] # noqa: E501 - cbs_indeling (CbsIndeling): [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 (Rapport): [optional] # noqa: E501 - factuur (Factuur): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (WaarderingStatus): [optional] # noqa: E501 - originele_input (WaarderingInputParameters): [optional] # noqa: E501 - adres (Adres): [optional] # noqa: E501 - model (Modeldata): [optional] # noqa: E501 - taxatie (Taxatiedata): [optional] # noqa: E501 - object (Objectdata): [optional] # noqa: E501 - cbs_indeling (CbsIndeling): [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 (Rapport): [optional] # noqa: E501 - factuur (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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 d9815b9..0000000 --- a/calcasa/api/model/waardering_input_parameters.py +++ /dev/null @@ -1,342 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.aanvraagdoel import Aanvraagdoel - from calcasa.api.model.klantwaarde_type import KlantwaardeType - from calcasa.api.model.product_type import ProductType - globals()['Aanvraagdoel'] = Aanvraagdoel - globals()['KlantwaardeType'] = KlantwaardeType - globals()['ProductType'] = ProductType - - -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 = { - ('klantkenmerk',): { - 'max_length': 100, - 'min_length': 0, - }, - } - - 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 { - 'product_type': (ProductType,), # noqa: E501 - 'bag_nummeraanduiding_id': (int,), # noqa: E501 - 'geldverstrekker': (str,), # noqa: E501 - 'hypotheekwaarde': (int,), # noqa: E501 - 'aanvraagdoel': (Aanvraagdoel,), # noqa: E501 - 'klantwaarde': (int,), # noqa: E501 - 'klantwaarde_type': (KlantwaardeType,), # 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': (date, none_type,), # noqa: E501 - 'is_erfpacht': (bool, none_type,), # noqa: E501 - 'klantkenmerk': (str,), # 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 - 'is_erfpacht': 'isErfpacht', # noqa: E501 - 'klantkenmerk': 'klantkenmerk', # 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 (ProductType): - bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. 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): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 - hypotheekwaarde (int): 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.. [optional] # noqa: E501 - aanvraagdoel (Aanvraagdoel): [optional] # noqa: E501 - klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros. De waarde zoals bekend bij de klant met bijbehorende KlantwaardeType.. [optional] # noqa: E501 - klantwaarde_type (KlantwaardeType): [optional] # noqa: E501 - is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 - is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 - is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 - benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 - peildatum (date, none_type): 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.. [optional] # noqa: E501 - is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 - klantkenmerk (str): 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.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (ProductType): - bag_nummeraanduiding_id (int): Verplicht voor alle producttypen. 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): Ongebruikt voor alle producttypen op dit moment. Deze informatie komt uit de credentials.. [optional] # noqa: E501 - hypotheekwaarde (int): 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.. [optional] # noqa: E501 - aanvraagdoel (Aanvraagdoel): [optional] # noqa: E501 - klantwaarde (int): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. In hele euros. De waarde zoals bekend bij de klant met bijbehorende KlantwaardeType.. [optional] # noqa: E501 - klantwaarde_type (KlantwaardeType): [optional] # noqa: E501 - is_bestaande_woning (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of het te waarderen object een bestaande koopwoning is.. [optional] # noqa: E501 - is_nhg (bool): Verplicht voor de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie`. Geeft aan of er gebruikt gemaakt wordt van de Nationale Hypotheekgarantie.. [optional] # noqa: E501 - is_bestaande_nhg_hypotheek (bool): 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.. [optional] # noqa: E501 - benodigde_overbrugging (int): Verplicht voor de combinatie van de producttypen `modelwaardeDesktopTaxatie` en `desktopTaxatie` en het aanvraagdoel `overbruggingsfinanciering`. In hele euros.. [optional] # noqa: E501 - peildatum (date, none_type): 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.. [optional] # noqa: E501 - is_erfpacht (bool, none_type): Potentieel verplicht voor de product typen `modelwaardeDesktopTaxatie` en `desktopTaxatie` afhankelijk van de geldverstrekker- en accountconfiguratie.. [optional] # noqa: E501 - klantkenmerk (str): 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.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 769c2e7..0000000 --- a/calcasa/api/model/waardering_ontwikkeling.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 b242097..0000000 --- a/calcasa/api/model/waardering_ontwikkeling_kwartaal.py +++ /dev/null @@ -1,278 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.kwartaal import Kwartaal - globals()['Kwartaal'] = Kwartaal - - -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. - """ - lazy_import() - return { - 'kwartaal': (Kwartaal,), # 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 (Kwartaal): [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', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (Kwartaal): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 b47f045..0000000 --- a/calcasa/api/model/waardering_status.py +++ /dev/null @@ -1,309 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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", - 'INBEHANDELING': "inBehandeling", - }, - } - - 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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. | | `inBehandeling` | Deze waardering is in behandeling door het systeem. | ., must be one of ["onbekend", "initialiseren", "open", "voltooid", "opgewaardeerd", "ongeldig", "verlopen", "error", "inBehandeling", ] # 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 897c268..0000000 --- a/calcasa/api/model/waardering_webhook_payload.py +++ /dev/null @@ -1,303 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.waardering_status import WaarderingStatus - globals()['WaarderingStatus'] = WaarderingStatus - - -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. - """ - lazy_import() - return { - 'callback_name': (str,), # noqa: E501 - 'event_id': (str,), # noqa: E501 - 'waardering_id': (str,), # noqa: E501 - 'old_status': (WaarderingStatus,), # noqa: E501 - 'new_status': (WaarderingStatus,), # noqa: E501 - 'timestamp': (datetime,), # noqa: E501 - 'is_test': (bool,), # noqa: E501 - 'externe_referentie': (str, none_type,), # 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 - 'externe_referentie': 'externeReferentie', # 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 (WaarderingStatus): [optional] # noqa: E501 - new_status (WaarderingStatus): [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 - externe_referentie (str, none_type): 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.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (WaarderingStatus): [optional] # noqa: E501 - new_status (WaarderingStatus): [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 - externe_referentie (str, none_type): 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.. [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 65c89fb..0000000 --- a/calcasa/api/model/waardering_zoek_parameters.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - OpenApiModel -) -from calcasa.api.exceptions import ApiAttributeError - - -def lazy_import(): - from calcasa.api.model.aanvraagdoel import Aanvraagdoel - from calcasa.api.model.product_type import ProductType - from calcasa.api.model.waardering_status import WaarderingStatus - globals()['Aanvraagdoel'] = Aanvraagdoel - globals()['ProductType'] = ProductType - globals()['WaarderingStatus'] = WaarderingStatus - - -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. - """ - lazy_import() - return { - 'product_type': (ProductType,), # noqa: E501 - 'bag_nummeraanduiding_id': (int,), # noqa: E501 - 'aangemaakt': (datetime, none_type,), # noqa: E501 - 'geldverstrekker': (str, none_type,), # noqa: E501 - 'aanvraagdoel': (Aanvraagdoel,), # noqa: E501 - 'waardering_status': (WaarderingStatus,), # 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 (ProductType): - 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/tijd 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 (Aanvraagdoel): [optional] # noqa: E501 - waardering_status (WaarderingStatus): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 (ProductType): - 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/tijd 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 (Aanvraagdoel): [optional] # noqa: E501 - waardering_status (WaarderingStatus): [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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 936beec..0000000 --- a/calcasa/api/model/woning_type.py +++ /dev/null @@ -1,310 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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, - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - 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 dda2bea..0000000 --- a/calcasa/api/model_utils.py +++ /dev/null @@ -1,2070 +0,0 @@ -""" - Copyright 2023 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 v1 - - The version of the OpenAPI document: 1.3.1 - 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 -import uuid - -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 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), - # A float may be serialized as an integer, e.g. '3' is a valid serialized float. - (int, 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, - flags=re.I) - if filename is not None: - filename = filename.group(1) - else: - filename = "default_" + str(uuid.uuid4()) - - 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 - or (input_class_simple == dict - and dict not in valid_classes)): - # 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 = {} - - def extract_item(item): return ( - item[0], model_to_dict( - item[1], serialize=serialize)) if hasattr( - item[1], '_data_store') else item - - 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) - elif isinstance(v, dict): - res.append(dict(map( - extract_item, - v.items() - ))) - else: - res.append(model_to_dict(v, serialize=serialize)) - result[attr] = res - elif isinstance(value, dict): - result[attr] = dict(map( - extract_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] + list( - filter( - lambda x: prop_name in x.openapi_types, 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 index 4221bad..b13052d 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -1,68 +1,86 @@ +# 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). -# 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) + The version of the OpenAPI document: 1.4.0-rc1 + Contact: info@calcasa.nl + Generated by: https://openapi-generator.tech +""" -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.callback_inschrijving import CallbackInschrijving -from calcasa.api.model.cbs_indeling import CbsIndeling -from calcasa.api.model.deel_waardering_webhook_payload import DeelWaarderingWebhookPayload -from calcasa.api.model.energielabel import Energielabel -from calcasa.api.model.energielabel_data import EnergielabelData -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.geldverstrekker import Geldverstrekker -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.resource_exhausted_problem_details import ResourceExhaustedProblemDetails -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 +# 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..8587b3a --- /dev/null +++ b/calcasa/api/models/aanvraagdoel.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..0e1733b --- /dev/null +++ b/calcasa/api/models/adres.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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).") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/adres_info.py b/calcasa/api/models/adres_info.py new file mode 100644 index 0000000..0b7a3b3 --- /dev/null +++ b/calcasa/api/models/adres_info.py @@ -0,0 +1,130 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/bestemmingsdata.py b/calcasa/api/models/bestemmingsdata.py new file mode 100644 index 0000000..bd76546 --- /dev/null +++ b/calcasa/api/models/bestemmingsdata.py @@ -0,0 +1,124 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..f9a9bd9 --- /dev/null +++ b/calcasa/api/models/bodem_status_type.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..fecf2c4 --- /dev/null +++ b/calcasa/api/models/bodemdata.py @@ -0,0 +1,127 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..dbfd5ad --- /dev/null +++ b/calcasa/api/models/business_rules_code.py @@ -0,0 +1,57 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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. | + """ + + """ + 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' + + @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..81599b8 --- /dev/null +++ b/calcasa/api/models/business_rules_problem_details.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/callback.py b/calcasa/api/models/callback.py new file mode 100644 index 0000000..00ac8f0 --- /dev/null +++ b/calcasa/api/models/callback.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/callback_inschrijving.py b/calcasa/api/models/callback_inschrijving.py new file mode 100644 index 0000000..2f91106 --- /dev/null +++ b/calcasa/api/models/callback_inschrijving.py @@ -0,0 +1,128 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/cbs_indeling.py b/calcasa/api/models/cbs_indeling.py new file mode 100644 index 0000000..004ff4a --- /dev/null +++ b/calcasa/api/models/cbs_indeling.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..73abfd9 --- /dev/null +++ b/calcasa/api/models/deel_waardering_webhook_payload.py @@ -0,0 +1,120 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 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: StrictStr = Field(description="Uniek Id voor deze callback.", alias="eventId") + timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.") + waardering_id: Optional[StrictStr] = Field(default=None, description="Het Id van de waardering waarop deze callback betrekking heeft.", alias="waarderingId") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "callback_name", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/energielabel.py b/calcasa/api/models/energielabel.py new file mode 100644 index 0000000..ddcd1f7 --- /dev/null +++ b/calcasa/api/models/energielabel.py @@ -0,0 +1,58 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..63c8eac --- /dev/null +++ b/calcasa/api/models/energielabel_data.py @@ -0,0 +1,131 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/factuur.py b/calcasa/api/models/factuur.py new file mode 100644 index 0000000..9a92b03 --- /dev/null +++ b/calcasa/api/models/factuur.py @@ -0,0 +1,113 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 typing import Optional, Set +from typing_extensions import Self + +class Factuur(BaseModel): + """ + Factuur + """ # noqa: E501 + id: StrictStr = Field(description="Het factuur Id.") + factuurnummer: StrictStr = Field(description="Het factuurnummer van de factuur.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/foto.py b/calcasa/api/models/foto.py new file mode 100644 index 0000000..364eb38 --- /dev/null +++ b/calcasa/api/models/foto.py @@ -0,0 +1,111 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 Foto(BaseModel): + """ + Foto + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Het foto Id.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..0840838 --- /dev/null +++ b/calcasa/api/models/fundering_data_bron.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..1105b89 --- /dev/null +++ b/calcasa/api/models/fundering_herstel_type.py @@ -0,0 +1,51 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..85fa998 --- /dev/null +++ b/calcasa/api/models/fundering_risico.py @@ -0,0 +1,117 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..8723bef --- /dev/null +++ b/calcasa/api/models/fundering_risico_label.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..ede2428 --- /dev/null +++ b/calcasa/api/models/fundering_soort_bron.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..03b53a7 --- /dev/null +++ b/calcasa/api/models/fundering_type.py @@ -0,0 +1,64 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..6b4ac06 --- /dev/null +++ b/calcasa/api/models/fundering_typering.py @@ -0,0 +1,117 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/funderingdata.py b/calcasa/api/models/funderingdata.py new file mode 100644 index 0000000..73014cc --- /dev/null +++ b/calcasa/api/models/funderingdata.py @@ -0,0 +1,144 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/gebiedsdata.py b/calcasa/api/models/gebiedsdata.py new file mode 100644 index 0000000..84fcf60 --- /dev/null +++ b/calcasa/api/models/gebiedsdata.py @@ -0,0 +1,168 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/geldverstrekker.py b/calcasa/api/models/geldverstrekker.py new file mode 100644 index 0000000..9bf4e39 --- /dev/null +++ b/calcasa/api/models/geldverstrekker.py @@ -0,0 +1,113 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..cde2b6c --- /dev/null +++ b/calcasa/api/models/invalid_argument_problem_details.py @@ -0,0 +1,146 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/klantwaarde_type.py b/calcasa/api/models/klantwaarde_type.py new file mode 100644 index 0000000..482709a --- /dev/null +++ b/calcasa/api/models/klantwaarde_type.py @@ -0,0 +1,51 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..2508367 --- /dev/null +++ b/calcasa/api/models/kwartaal.py @@ -0,0 +1,113 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/modeldata.py b/calcasa/api/models/modeldata.py new file mode 100644 index 0000000..93211d7 --- /dev/null +++ b/calcasa/api/models/modeldata.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..74c69e8 --- /dev/null +++ b/calcasa/api/models/not_found_problem_details.py @@ -0,0 +1,146 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/notitie.py b/calcasa/api/models/notitie.py new file mode 100644 index 0000000..0865e1f --- /dev/null +++ b/calcasa/api/models/notitie.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..20acfff --- /dev/null +++ b/calcasa/api/models/notities.py @@ -0,0 +1,120 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/objectdata.py b/calcasa/api/models/objectdata.py new file mode 100644 index 0000000..3ac4e85 --- /dev/null +++ b/calcasa/api/models/objectdata.py @@ -0,0 +1,129 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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 + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/omgevingsdata.py b/calcasa/api/models/omgevingsdata.py new file mode 100644 index 0000000..2983125 --- /dev/null +++ b/calcasa/api/models/omgevingsdata.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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 + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/operation.py b/calcasa/api/models/operation.py new file mode 100644 index 0000000..efc1340 --- /dev/null +++ b/calcasa/api/models/operation.py @@ -0,0 +1,128 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/operation_type.py b/calcasa/api/models/operation_type.py new file mode 100644 index 0000000..20a74cd --- /dev/null +++ b/calcasa/api/models/operation_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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..40f80dc --- /dev/null +++ b/calcasa/api/models/permissions_denied_problem_details.py @@ -0,0 +1,146 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/problem_details.py b/calcasa/api/models/problem_details.py new file mode 100644 index 0000000..f81dc2f --- /dev/null +++ b/calcasa/api/models/problem_details.py @@ -0,0 +1,144 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/product_type.py b/calcasa/api/models/product_type.py new file mode 100644 index 0000000..e8c17a0 --- /dev/null +++ b/calcasa/api/models/product_type.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..164e1d4 --- /dev/null +++ b/calcasa/api/models/rapport.py @@ -0,0 +1,111 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 typing import Optional, Set +from typing_extensions import Self + +class Rapport(BaseModel): + """ + Rapport + """ # noqa: E501 + id: StrictStr = Field(description="Het rapport Id.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/referentieobject.py b/calcasa/api/models/referentieobject.py new file mode 100644 index 0000000..f52aef2 --- /dev/null +++ b/calcasa/api/models/referentieobject.py @@ -0,0 +1,157 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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 + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..0bee8a1 --- /dev/null +++ b/calcasa/api/models/resource_exhausted_problem_details.py @@ -0,0 +1,146 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/taxatiedata.py b/calcasa/api/models/taxatiedata.py new file mode 100644 index 0000000..47f2ac7 --- /dev/null +++ b/calcasa/api/models/taxatiedata.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 naam van de taxatieorganisatie.") + 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.") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["taxatieorganisatie", "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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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"), + "taxateurnaam": obj.get("taxateurnaam"), + "status": obj.get("status"), + "taxatiedatum": obj.get("taxatiedatum") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/taxatiestatus.py b/calcasa/api/models/taxatiestatus.py new file mode 100644 index 0000000..46c63d7 --- /dev/null +++ b/calcasa/api/models/taxatiestatus.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..8294c35 --- /dev/null +++ b/calcasa/api/models/unauthorized_problem_details.py @@ -0,0 +1,144 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..9522db2 --- /dev/null +++ b/calcasa/api/models/validation_problem_details.py @@ -0,0 +1,146 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/verkoop_bijzonderheden.py b/calcasa/api/models/verkoop_bijzonderheden.py new file mode 100644 index 0000000..f7198a8 --- /dev/null +++ b/calcasa/api/models/verkoop_bijzonderheden.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..7f36e51 --- /dev/null +++ b/calcasa/api/models/version_names.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..00457bd --- /dev/null +++ b/calcasa/api/models/vorige_verkoop.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/waardering.py b/calcasa/api/models/waardering.py new file mode 100644 index 0000000..4628c62 --- /dev/null +++ b/calcasa/api/models/waardering.py @@ -0,0 +1,210 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.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: StrictStr + 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 + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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 + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..5baccf7 --- /dev/null +++ b/calcasa/api/models/waardering_input_parameters.py @@ -0,0 +1,152 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/waardering_ontwikkeling.py b/calcasa/api/models/waardering_ontwikkeling.py new file mode 100644 index 0000000..bd0d24a --- /dev/null +++ b/calcasa/api/models/waardering_ontwikkeling.py @@ -0,0 +1,184 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal +from typing import Optional, Set +from typing_extensions import Self + +class WaarderingOntwikkeling(BaseModel): + """ + WaarderingOntwikkeling + """ # noqa: E501 + id: Optional[StrictStr] = 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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 + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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 + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..f2fd084 --- /dev/null +++ b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py @@ -0,0 +1,117 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/waardering_status.py b/calcasa/api/models/waardering_status.py new file mode 100644 index 0000000..6fee246 --- /dev/null +++ b/calcasa/api/models/waardering_status.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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..2eef5bc --- /dev/null +++ b/calcasa/api/models/waardering_webhook_payload.py @@ -0,0 +1,134 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 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: StrictStr = Field(description="Uniek Id voor deze callback.", alias="eventId") + timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.") + waardering_id: Optional[StrictStr] = 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "callback_name", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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..e0013bc --- /dev/null +++ b/calcasa/api/models/waardering_zoek_parameters.py @@ -0,0 +1,145 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/webhook_payload.py b/calcasa/api/models/webhook_payload.py new file mode 100644 index 0000000..45dd3c2 --- /dev/null +++ b/calcasa/api/models/webhook_payload.py @@ -0,0 +1,118 @@ +# 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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 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: StrictStr = Field(description="Uniek Id voor deze callback.", alias="eventId") + timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.") + additional_properties: Dict[str, Any] = {} + __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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "callback_name", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/calcasa/api/models/woning_type.py b/calcasa/api/models/woning_type.py new file mode 100644 index 0000000..3ae50c0 --- /dev/null +++ b/calcasa/api/models/woning_type.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). + + The version of the OpenAPI document: 1.4.0-rc1 + 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 index d4b7b83..41af7e2 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -1,5 +1,7 @@ +# coding: utf-8 + """ - Copyright 2023 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. @@ -13,54 +15,65 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 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 +from calcasa.api.exceptions import ApiException, ApiValueError +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} +RESTResponseType = urllib3.HTTPResponse -logger = logging.getLogger(__name__) + +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): - self.urllib3_response = resp + def __init__(self, resp) -> None: + self.response = resp self.status = resp.status self.reason = resp.reason - self.data = resp.data + 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.urllib3_response.getheaders() + return self.response.headers def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) + return self.response.headers.get(name, default) -class RESTClientObject(object): +class RESTClientObject: - def __init__(self, configuration, pools_size=4, maxsize=None): + 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 - # 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 @@ -69,71 +82,80 @@ def __init__(self, configuration, pools_size=4, maxsize=None): else: cert_reqs = ssl.CERT_NONE - addition_pool_args = {} + 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: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) if configuration.retries is not None: - addition_pool_args['retries'] = configuration.retries + 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: - addition_pool_args['socket_options'] = configuration.socket_options + 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 + if configuration.connection_pool_maxsize is not None: + pool_args['maxsize'] = configuration.connection_pool_maxsize # 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 - ) + 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( - 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): + 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 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'] + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] if post_params and body: raise ApiValueError( @@ -145,61 +167,83 @@ def request(self, method, url, query_params=None, headers=None, timeout = None if _request_timeout: - if isinstance(_request_timeout, (int, float)): # noqa: E501,F821 + if isinstance(_request_timeout, (int, float)): timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) + 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)): + + # 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, + method, + url, body=request_body, - preload_content=_preload_content, timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + headers=headers, + preload_content=False + ) + elif content_type == 'application/x-www-form-urlencoded': r = self.pool_manager.request( - method, url, + method, + url, fields=post_params, encode_multipart=False, - preload_content=_preload_content, timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': + 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, + method, + url, fields=post_params, encode_multipart=True, - preload_content=_preload_content, timeout=timeout, - headers=headers) + 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 + # 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, + 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=_preload_content, + preload_content=False, timeout=timeout, headers=headers) else: @@ -210,155 +254,16 @@ def request(self, method, url, query_params=None, headers=None, 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) + r = self.pool_manager.request( + method, + url, + fields={}, + timeout=timeout, + headers=headers, + preload_content=False + ) except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) + msg = "\n".join([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}) + return RESTResponse(r) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fd056b6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,89 @@ +[tool.poetry] +name = "calcasa.api" +version = "1.4.0-rc1" +description = "Calcasa Public API" +authors = ["Calcasa B.V. "] +license = "Apache License 2.0" +readme = "README.md" +repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" +keywords = ["OpenAPI", "OpenAPI-Generator", "Calcasa Public API"] +include = ["calcasa.api/py.typed"] + +[tool.poetry.dependencies] +python = "^3.9" + +urllib3 = ">= 2.1.0, < 3.0.0" +python-dateutil = ">= 2.8.2" +pydantic = ">= 2" +typing-extensions = ">= 4.7.1" + +[tool.poetry.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 e82e1f3..0c927b5 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ """ - Copyright 2023 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. @@ -13,17 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. - Calcasa Public API v1 + 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: 1.3.1 + The version of the OpenAPI document: 1.4.0-rc1 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ from setuptools import setup, find_namespace_packages # noqa: H301 -NAME = "calcasa-api" -VERSION = "1.3.1" +NAME = "calcasa.api" +VERSION = "1.4.0-rc1" # To install the library, run the following # # python setup.py install @@ -44,11 +45,11 @@ setup( name=NAME, version=VERSION, - description="Calcasa Public API v1", + 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 v1"], + 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, From c4c606bd41c048f6834d189ed5acd536bebe1fa2 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Thu, 2 Oct 2025 15:55:15 +0200 Subject: [PATCH 17/20] Release 1.4.0-rc2 (2025-10-02) - Updated code formatting. - Update client generation tooling and templates. --- .editorconfig | 363 +++++++++++ .gitignore | 2 +- README.md | 6 +- calcasa/api/__init__.py | 320 ++++++--- calcasa/api/api/__init__.py | 1 - calcasa/api/api/adressen_api.py | 265 ++++---- calcasa/api/api/bestemmingsplannen_api.py | 143 ++--- calcasa/api/api/bodem_api.py | 143 ++--- calcasa/api/api/buurt_api.py | 122 ++-- calcasa/api/api/callbacks_api.py | 509 +++++++-------- calcasa/api/api/configuratie_api.py | 215 +++---- calcasa/api/api/facturen_api.py | 129 ++-- calcasa/api/api/fotos_api.py | 145 ++--- calcasa/api/api/funderingen_api.py | 143 ++--- calcasa/api/api/geldverstrekkers_api.py | 137 ++-- calcasa/api/api/rapporten_api.py | 129 ++-- calcasa/api/api/waarderingen_api.py | 606 ++++++++---------- calcasa/api/api_client.py | 299 ++++----- calcasa/api/api_response.py | 5 +- calcasa/api/configuration.py | 183 +++--- calcasa/api/exceptions.py | 66 +- calcasa/api/models/__init__.py | 55 +- calcasa/api/models/aanvraagdoel.py | 46 +- calcasa/api/models/adres.py | 103 +-- calcasa/api/models/adres_info.py | 91 ++- calcasa/api/models/bestemmingsdata.py | 74 ++- calcasa/api/models/bodem_status_type.py | 44 +- calcasa/api/models/bodemdata.py | 76 ++- calcasa/api/models/business_rules_code.py | 54 +- .../models/business_rules_problem_details.py | 110 ++-- calcasa/api/models/callback.py | 64 +- calcasa/api/models/callback_inschrijving.py | 96 +-- calcasa/api/models/cbs_indeling.py | 93 ++- .../models/deel_waardering_webhook_payload.py | 77 ++- calcasa/api/models/energielabel.py | 56 +- calcasa/api/models/energielabel_data.py | 91 ++- calcasa/api/models/factuur.py | 55 +- calcasa/api/models/foto.py | 54 +- calcasa/api/models/fundering_data_bron.py | 36 +- calcasa/api/models/fundering_herstel_type.py | 42 +- calcasa/api/models/fundering_risico.py | 61 +- calcasa/api/models/fundering_risico_label.py | 40 +- calcasa/api/models/fundering_soort_bron.py | 40 +- calcasa/api/models/fundering_type.py | 68 +- calcasa/api/models/fundering_typering.py | 61 +- calcasa/api/models/funderingdata.py | 121 ++-- calcasa/api/models/gebiedsdata.py | 211 ++++-- calcasa/api/models/geldverstrekker.py | 59 +- .../invalid_argument_problem_details.py | 106 +-- calcasa/api/models/klantwaarde_type.py | 42 +- calcasa/api/models/kwartaal.py | 56 +- calcasa/api/models/modeldata.py | 88 ++- .../api/models/not_found_problem_details.py | 106 +-- calcasa/api/models/notitie.py | 40 +- calcasa/api/models/notities.py | 69 +- calcasa/api/models/objectdata.py | 97 +-- calcasa/api/models/omgevingsdata.py | 99 ++- calcasa/api/models/operation.py | 63 +- calcasa/api/models/operation_type.py | 46 +- .../permissions_denied_problem_details.py | 110 ++-- calcasa/api/models/problem_details.py | 103 +-- calcasa/api/models/product_type.py | 44 +- calcasa/api/models/rapport.py | 54 +- calcasa/api/models/referentieobject.py | 161 +++-- .../resource_exhausted_problem_details.py | 106 +-- calcasa/api/models/taxatiedata.py | 80 ++- calcasa/api/models/taxatiestatus.py | 38 +- .../models/unauthorized_problem_details.py | 103 +-- .../api/models/validation_problem_details.py | 106 +-- calcasa/api/models/verkoop_bijzonderheden.py | 50 +- calcasa/api/models/version_names.py | 34 +- calcasa/api/models/vorige_verkoop.py | 103 +-- calcasa/api/models/waardering.py | 181 ++++-- .../api/models/waardering_input_parameters.py | 166 +++-- calcasa/api/models/waardering_ontwikkeling.py | 252 ++++++-- .../waardering_ontwikkeling_kwartaal.py | 61 +- calcasa/api/models/waardering_status.py | 50 +- .../api/models/waardering_webhook_payload.py | 108 ++-- .../api/models/waardering_zoek_parameters.py | 102 +-- calcasa/api/models/webhook_payload.py | 62 +- calcasa/api/models/woning_type.py | 52 +- calcasa/api/rest.py | 101 ++- pyproject.toml | 32 +- setup.py | 46 +- 84 files changed, 5115 insertions(+), 3911 deletions(-) create mode 100644 .editorconfig 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 0ca2ec1..c643a8d 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ For more information, please visit [Documentation](https://docs.calcasa.nl) or [ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.4.0-rc1 -- Package version: 1.4.0-rc1 -- Generator version: 7.13.0 +- API version: 1.4.0-rc2 +- Package version: 1.4.0-rc2 +- 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) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index 950b548..20ebb4f 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -3,112 +3,240 @@ # flake8: noqa """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ -__version__ = "1.4.0-rc1" +__version__ = "1.4.0-rc2" + +# 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 -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 +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 -from calcasa.api.api_client import ApiClient -from calcasa.api.configuration import Configuration -from calcasa.api.exceptions import OpenApiException -from calcasa.api.exceptions import ApiTypeError -from calcasa.api.exceptions import ApiValueError -from calcasa.api.exceptions import ApiKeyError -from calcasa.api.exceptions import ApiAttributeError -from calcasa.api.exceptions import ApiException +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 -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 +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 index 6dfe8d4..5005828 100644 --- a/calcasa/api/api/__init__.py +++ b/calcasa/api/api/__init__.py @@ -13,4 +13,3 @@ 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 index 40dae63..ef680a2 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -49,18 +49,21 @@ def __init__(self, api_client=None) -> 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -93,25 +96,24 @@ def get_adres( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdresInfo", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "AdresInfo", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -119,18 +121,21 @@ def get_adres( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -163,25 +168,24 @@ def get_adres_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdresInfo", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "AdresInfo", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -189,18 +193,21 @@ def get_adres_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -233,29 +240,27 @@ def get_adres_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdresInfo", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "AdresInfo", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_adres_serialize( self, bag_nummeraanduiding_id, @@ -267,8 +272,7 @@ def _get_adres_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -281,31 +285,24 @@ def _get_adres_serialize( # process the path parameters if bag_nummeraanduiding_id is not None: - _path_params['bagNummeraanduidingId'] = bag_nummeraanduiding_id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/adressen/{bagNummeraanduidingId}', + method="GET", + resource_path="/adressen/{bagNummeraanduidingId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -315,23 +312,24 @@ def _get_adres_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -364,25 +362,24 @@ def search_adres( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._search_adres_serialize( adres=adres, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdresInfo", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "AdresInfo", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -390,18 +387,21 @@ def search_adres( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -434,25 +434,24 @@ def search_adres_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._search_adres_serialize( adres=adres, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdresInfo", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "AdresInfo", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -460,18 +459,21 @@ def search_adres_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -504,29 +506,27 @@ def search_adres_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._search_adres_serialize( adres=adres, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdresInfo", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "AdresInfo", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _search_adres_serialize( self, adres, @@ -538,8 +538,7 @@ def _search_adres_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -558,38 +557,28 @@ def _search_adres_serialize( 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' - ] + 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 + _header_params["Content-Type"] = _content_type else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + _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 + _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [ - 'oauth' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='POST', - resource_path='/adressen/zoeken', + method="POST", + resource_path="/adressen/zoeken", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -599,7 +588,5 @@ def _search_adres_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index d531be2..1c6f287 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -48,18 +48,21 @@ def __init__(self, api_client=None) -> 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -92,25 +95,24 @@ def get_bestemming_by_id( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Bestemmingsdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Bestemmingsdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,18 +120,21 @@ def get_bestemming_by_id( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,25 +167,24 @@ def get_bestemming_by_id_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Bestemmingsdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Bestemmingsdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -188,18 +192,21 @@ def get_bestemming_by_id_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,29 +239,27 @@ def get_bestemming_by_id_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Bestemmingsdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Bestemmingsdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_bestemming_by_id_serialize( self, bag_nummeraanduiding_id, @@ -266,8 +271,7 @@ def _get_bestemming_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -280,31 +284,24 @@ def _get_bestemming_by_id_serialize( # process the path parameters if bag_nummeraanduiding_id is not None: - _path_params['bagNummeraanduidingId'] = bag_nummeraanduiding_id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/bestemmingsplannen/{bagNummeraanduidingId}', + method="GET", + resource_path="/bestemmingsplannen/{bagNummeraanduidingId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -314,7 +311,5 @@ def _get_bestemming_by_id_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index 011f237..f7ee017 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -48,18 +48,21 @@ def __init__(self, api_client=None) -> 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -92,25 +95,24 @@ def get_bodem_by_id( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Bodemdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Bodemdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,18 +120,21 @@ def get_bodem_by_id( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,25 +167,24 @@ def get_bodem_by_id_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Bodemdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Bodemdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -188,18 +192,21 @@ def get_bodem_by_id_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,29 +239,27 @@ def get_bodem_by_id_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Bodemdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Bodemdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_bodem_by_id_serialize( self, bag_nummeraanduiding_id, @@ -266,8 +271,7 @@ def _get_bodem_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -280,31 +284,24 @@ def _get_bodem_by_id_serialize( # process the path parameters if bag_nummeraanduiding_id is not None: - _path_params['bagNummeraanduidingId'] = bag_nummeraanduiding_id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/bodem/{bagNummeraanduidingId}', + method="GET", + resource_path="/bodem/{bagNummeraanduidingId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -314,7 +311,5 @@ def _get_bodem_by_id_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index e4d9892..2516b17 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -48,7 +48,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_buurt( self, @@ -57,9 +56,8 @@ def get_buurt( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -92,25 +90,24 @@ def get_buurt( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Omgevingsdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Omgevingsdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,7 +115,6 @@ def get_buurt( response_types_map=_response_types_map, ).data - @validate_call def get_buurt_with_http_info( self, @@ -127,9 +123,8 @@ def get_buurt_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,25 +157,24 @@ def get_buurt_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Omgevingsdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Omgevingsdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -188,7 +182,6 @@ def get_buurt_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_buurt_without_preload_content( self, @@ -197,9 +190,8 @@ def get_buurt_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,29 +224,27 @@ def get_buurt_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Omgevingsdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Omgevingsdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_buurt_serialize( self, buurt_code, @@ -266,8 +256,7 @@ def _get_buurt_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -280,31 +269,24 @@ def _get_buurt_serialize( # process the path parameters if buurt_code is not None: - _path_params['buurtCode'] = buurt_code + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/buurt/{buurtCode}', + method="GET", + resource_path="/buurt/{buurtCode}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -314,7 +296,5 @@ def _get_buurt_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index a6ded7f..323e0d9 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -49,18 +49,19 @@ def __init__(self, api_client=None) -> 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -93,25 +94,24 @@ def add_or_update_callback_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CallbackInschrijving", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "CallbackInschrijving", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -119,18 +119,19 @@ def add_or_update_callback_subscription( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -163,25 +164,24 @@ def add_or_update_callback_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CallbackInschrijving", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "CallbackInschrijving", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -189,18 +189,19 @@ def add_or_update_callback_subscription_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -233,29 +234,27 @@ def add_or_update_callback_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CallbackInschrijving", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "CallbackInschrijving", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _add_or_update_callback_subscription_serialize( self, callback_inschrijving, @@ -267,8 +266,7 @@ def _add_or_update_callback_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -287,38 +285,28 @@ def _add_or_update_callback_subscription_serialize( 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' - ] + 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 + _header_params["Content-Type"] = _content_type else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + _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 + _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [ - 'oauth' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='POST', - resource_path='/callbacks/inschrijvingen', + method="POST", + resource_path="/callbacks/inschrijvingen", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -328,24 +316,30 @@ def _add_or_update_callback_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _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, + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -379,7 +373,7 @@ def delete_notification_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_notification_subscription_serialize( bag_nummeraanduiding_id=bag_nummeraanduiding_id, @@ -387,18 +381,17 @@ def delete_notification_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "204": None, + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -406,19 +399,27 @@ def delete_notification_subscription( 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, + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -452,7 +453,7 @@ def delete_notification_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_notification_subscription_serialize( bag_nummeraanduiding_id=bag_nummeraanduiding_id, @@ -460,18 +461,17 @@ def delete_notification_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "204": None, + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -479,19 +479,27 @@ def delete_notification_subscription_with_http_info( 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, + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -525,7 +533,7 @@ def delete_notification_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_notification_subscription_serialize( bag_nummeraanduiding_id=bag_nummeraanduiding_id, @@ -533,22 +541,20 @@ def delete_notification_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "204": None, + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _delete_notification_subscription_serialize( self, bag_nummeraanduiding_id, @@ -561,8 +567,7 @@ def _delete_notification_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -575,34 +580,28 @@ def _delete_notification_subscription_serialize( # process the path parameters if bag_nummeraanduiding_id is not None: - _path_params['bagNummeraanduidingId'] = bag_nummeraanduiding_id + _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id # process the query parameters if geldverstrekker is not None: - - _query_params.append(('geldverstrekker', geldverstrekker)) - + + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='DELETE', - resource_path='/callbacks/inschrijvingen/{bagNummeraanduidingId}', + method="DELETE", + resource_path="/callbacks/inschrijvingen/{bagNummeraanduidingId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -612,24 +611,30 @@ def _delete_notification_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _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, + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -664,7 +669,7 @@ def get_notification_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_notification_subscription_serialize( bag_nummeraanduiding_id=bag_nummeraanduiding_id, @@ -672,18 +677,17 @@ def get_notification_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CallbackInschrijving", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "CallbackInschrijving", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -691,19 +695,27 @@ def get_notification_subscription( 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, + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -738,7 +750,7 @@ def get_notification_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_notification_subscription_serialize( bag_nummeraanduiding_id=bag_nummeraanduiding_id, @@ -746,18 +758,17 @@ def get_notification_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CallbackInschrijving", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "CallbackInschrijving", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -765,19 +776,27 @@ def get_notification_subscription_with_http_info( 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, + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -812,7 +831,7 @@ def get_notification_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_notification_subscription_serialize( bag_nummeraanduiding_id=bag_nummeraanduiding_id, @@ -820,22 +839,20 @@ def get_notification_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CallbackInschrijving", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "CallbackInschrijving", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_notification_subscription_serialize( self, bag_nummeraanduiding_id, @@ -848,8 +865,7 @@ def _get_notification_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -862,35 +878,28 @@ def _get_notification_subscription_serialize( # process the path parameters if bag_nummeraanduiding_id is not None: - _path_params['bagNummeraanduidingId'] = bag_nummeraanduiding_id + _path_params["bagNummeraanduidingId"] = bag_nummeraanduiding_id # process the query parameters if geldverstrekker is not None: - - _query_params.append(('geldverstrekker', geldverstrekker)) - + + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/callbacks/inschrijvingen/{bagNummeraanduidingId}', + method="GET", + resource_path="/callbacks/inschrijvingen/{bagNummeraanduidingId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -900,12 +909,9 @@ def _get_notification_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_notification_subscriptions( self, @@ -913,9 +919,8 @@ def get_notification_subscriptions( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -946,23 +951,22 @@ def get_notification_subscriptions( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_notification_subscriptions_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[CallbackInschrijving]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[CallbackInschrijving]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -970,7 +974,6 @@ def get_notification_subscriptions( response_types_map=_response_types_map, ).data - @validate_call def get_notification_subscriptions_with_http_info( self, @@ -978,9 +981,8 @@ def get_notification_subscriptions_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1011,23 +1013,22 @@ def get_notification_subscriptions_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_notification_subscriptions_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[CallbackInschrijving]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[CallbackInschrijving]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1035,7 +1036,6 @@ def get_notification_subscriptions_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_notification_subscriptions_without_preload_content( self, @@ -1043,9 +1043,8 @@ def get_notification_subscriptions_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1076,27 +1075,25 @@ def get_notification_subscriptions_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_notification_subscriptions_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[CallbackInschrijving]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[CallbackInschrijving]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_notification_subscriptions_serialize( self, _request_auth, @@ -1107,8 +1104,7 @@ def _get_notification_subscriptions_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1125,25 +1121,18 @@ def _get_notification_subscriptions_serialize( # 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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/callbacks/inschrijvingen', + method="GET", + resource_path="/callbacks/inschrijvingen", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1153,7 +1142,5 @@ def _get_notification_subscriptions_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index d83e4da..65d2438 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -47,7 +47,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_callbacks( self, @@ -55,9 +54,8 @@ def get_callbacks( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -88,23 +86,22 @@ def get_callbacks( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_callbacks_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Callback]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Callback]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -112,7 +109,6 @@ def get_callbacks( response_types_map=_response_types_map, ).data - @validate_call def get_callbacks_with_http_info( self, @@ -120,9 +116,8 @@ def get_callbacks_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -153,23 +148,22 @@ def get_callbacks_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_callbacks_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Callback]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Callback]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -177,7 +171,6 @@ def get_callbacks_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_callbacks_without_preload_content( self, @@ -185,9 +178,8 @@ def get_callbacks_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -218,27 +210,25 @@ def get_callbacks_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_callbacks_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Callback]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Callback]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_callbacks_serialize( self, _request_auth, @@ -249,8 +239,7 @@ def _get_callbacks_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -267,25 +256,18 @@ def _get_callbacks_serialize( # 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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/configuratie/callbacks', + method="GET", + resource_path="/configuratie/callbacks", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -295,12 +277,9 @@ def _get_callbacks_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_callbacks( self, @@ -309,9 +288,8 @@ def update_callbacks( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -344,25 +322,24 @@ def update_callbacks( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_callbacks_serialize( callback=callback, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Callback]", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Callback]", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -370,7 +347,6 @@ def update_callbacks( response_types_map=_response_types_map, ).data - @validate_call def update_callbacks_with_http_info( self, @@ -379,9 +355,8 @@ def update_callbacks_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -414,25 +389,24 @@ def update_callbacks_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_callbacks_serialize( callback=callback, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Callback]", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Callback]", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -440,7 +414,6 @@ def update_callbacks_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_callbacks_without_preload_content( self, @@ -449,9 +422,8 @@ def update_callbacks_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -484,29 +456,27 @@ def update_callbacks_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_callbacks_serialize( callback=callback, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Callback]", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Callback]", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_callbacks_serialize( self, callback, @@ -518,8 +488,7 @@ def _update_callbacks_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -538,38 +507,28 @@ def _update_callbacks_serialize( 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' - ] + 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 + _header_params["Content-Type"] = _content_type else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + _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 + _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [ - 'oauth' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='POST', - resource_path='/configuratie/callbacks', + method="POST", + resource_path="/configuratie/callbacks", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -579,7 +538,5 @@ def _update_callbacks_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 2189ddf..110c340 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -30,6 +30,7 @@ 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 @@ -48,18 +49,16 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_factuur( self, - id: Annotated[StrictStr, Field(description="De Id van een waardering.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -91,25 +90,24 @@ def get_factuur( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_factuur_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -117,18 +115,16 @@ def get_factuur( response_types_map=_response_types_map, ).data - @validate_call def get_factuur_with_http_info( self, - id: Annotated[StrictStr, Field(description="De Id van een waardering.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -160,25 +156,24 @@ def get_factuur_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_factuur_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -186,18 +181,16 @@ def get_factuur_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_factuur_without_preload_content( self, - id: Annotated[StrictStr, Field(description="De Id van een waardering.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,29 +222,27 @@ def get_factuur_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_factuur_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_factuur_serialize( self, id, @@ -263,8 +254,7 @@ def _get_factuur_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,31 +267,24 @@ def _get_factuur_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/facturen/{id}', + method="GET", + resource_path="/facturen/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -311,7 +294,5 @@ def _get_factuur_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index 3e31a88..7361f63 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -30,6 +30,7 @@ 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 @@ -48,18 +49,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_foto( self, - id: Annotated[StrictStr, Field(description="De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -91,25 +95,24 @@ def get_foto( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_foto_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -117,18 +120,21 @@ def get_foto( response_types_map=_response_types_map, ).data - @validate_call def get_foto_with_http_info( self, - id: Annotated[StrictStr, Field(description="De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -160,25 +166,24 @@ def get_foto_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_foto_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -186,18 +191,21 @@ def get_foto_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_foto_without_preload_content( self, - id: Annotated[StrictStr, Field(description="De Id van een foto, welke onder andere bij waarderingen en referenties teruggestuurd worden.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,29 +237,27 @@ def get_foto_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_foto_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_foto_serialize( self, id, @@ -263,8 +269,7 @@ def _get_foto_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,32 +282,24 @@ def _get_foto_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/fotos/{id}', + method="GET", + resource_path="/fotos/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -312,7 +309,5 @@ def _get_foto_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index a7dd451..04a7158 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -48,18 +48,21 @@ def __init__(self, api_client=None) -> 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -92,25 +95,24 @@ def get_fundering_by_id( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Funderingdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Funderingdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,18 +120,21 @@ def get_fundering_by_id( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,25 +167,24 @@ def get_fundering_by_id_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Funderingdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Funderingdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -188,18 +192,21 @@ def get_fundering_by_id_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,29 +239,27 @@ def get_fundering_by_id_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Funderingdata", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "Funderingdata", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_fundering_by_id_serialize( self, bag_nummeraanduiding_id, @@ -266,8 +271,7 @@ def _get_fundering_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -280,31 +284,24 @@ def _get_fundering_by_id_serialize( # process the path parameters if bag_nummeraanduiding_id is not None: - _path_params['bagNummeraanduidingId'] = bag_nummeraanduiding_id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/funderingen/{bagNummeraanduidingId}', + method="GET", + resource_path="/funderingen/{bagNummeraanduidingId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -314,7 +311,5 @@ def _get_fundering_by_id_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index 567dd25..cd5db2d 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -50,18 +50,21 @@ def __init__(self, api_client=None) -> 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -93,24 +96,23 @@ def get_geldverstrekkers( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Geldverstrekker]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Geldverstrekker]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -118,18 +120,21 @@ def get_geldverstrekkers( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -161,24 +166,23 @@ def get_geldverstrekkers_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Geldverstrekker]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Geldverstrekker]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -186,18 +190,21 @@ def get_geldverstrekkers_with_http_info( 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.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,28 +236,26 @@ def get_geldverstrekkers_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Geldverstrekker]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", + "200": "List[Geldverstrekker]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_geldverstrekkers_serialize( self, product_type, @@ -262,8 +267,7 @@ def _get_geldverstrekkers_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -276,31 +280,24 @@ def _get_geldverstrekkers_serialize( # process the path parameters if product_type is not None: - _path_params['productType'] = product_type.value + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/geldverstrekkers/{productType}', + method="GET", + resource_path="/geldverstrekkers/{productType}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -310,7 +307,5 @@ def _get_geldverstrekkers_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index a77e475..f7994e0 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt @@ -30,6 +30,7 @@ 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 @@ -48,18 +49,16 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_rapport( self, - id: Annotated[StrictStr, Field(description="De Id van een waardering.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -91,25 +90,24 @@ def get_rapport( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_rapport_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -117,18 +115,16 @@ def get_rapport( response_types_map=_response_types_map, ).data - @validate_call def get_rapport_with_http_info( self, - id: Annotated[StrictStr, Field(description="De Id van een waardering.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -160,25 +156,24 @@ def get_rapport_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_rapport_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -186,18 +181,16 @@ def get_rapport_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_rapport_without_preload_content( self, - id: Annotated[StrictStr, Field(description="De Id van een waardering.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,29 +222,27 @@ def get_rapport_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_rapport_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", + "200": "bytearray", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_rapport_serialize( self, id, @@ -263,8 +254,7 @@ def _get_rapport_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,31 +267,24 @@ def _get_rapport_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/rapporten/{id}', + method="GET", + resource_path="/rapporten/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -311,7 +294,5 @@ def _get_rapport_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index 5477446..e3f6d87 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -1,35 +1,36 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +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 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 @@ -53,7 +54,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_waardering( self, @@ -62,9 +62,8 @@ def create_waardering( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -97,27 +96,26 @@ def create_waardering( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Waardering", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '406': "BusinessRulesProblemDetails", - '422': "ValidationProblemDetails", + "200": "Waardering", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "406": "BusinessRulesProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -125,7 +123,6 @@ def create_waardering( response_types_map=_response_types_map, ).data - @validate_call def create_waardering_with_http_info( self, @@ -134,9 +131,8 @@ def create_waardering_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -169,27 +165,26 @@ def create_waardering_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Waardering", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '406': "BusinessRulesProblemDetails", - '422': "ValidationProblemDetails", + "200": "Waardering", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "406": "BusinessRulesProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -197,7 +192,6 @@ def create_waardering_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_waardering_without_preload_content( self, @@ -206,9 +200,8 @@ def create_waardering_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -241,31 +234,29 @@ def create_waardering_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Waardering", - '400': "InvalidArgumentProblemDetails", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '406': "BusinessRulesProblemDetails", - '422': "ValidationProblemDetails", + "200": "Waardering", + "400": "InvalidArgumentProblemDetails", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "406": "BusinessRulesProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _create_waardering_serialize( self, waardering_input_parameters, @@ -277,8 +268,7 @@ def _create_waardering_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -297,38 +287,28 @@ def _create_waardering_serialize( 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' - ] + 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 + _header_params["Content-Type"] = _content_type else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + _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 + _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [ - 'oauth' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='POST', - resource_path='/waarderingen', + method="POST", + resource_path="/waarderingen", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -338,23 +318,21 @@ def _create_waardering_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_waardering( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -387,26 +365,25 @@ def get_waardering( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_waardering_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Waardering", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", - '422': "ValidationProblemDetails", + "200": "Waardering", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -414,18 +391,18 @@ def get_waardering( response_types_map=_response_types_map, ).data - @validate_call def get_waardering_with_http_info( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -458,26 +435,25 @@ def get_waardering_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_waardering_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Waardering", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", - '422': "ValidationProblemDetails", + "200": "Waardering", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -485,18 +461,18 @@ def get_waardering_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_waardering_without_preload_content( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -529,30 +505,28 @@ def get_waardering_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_waardering_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Waardering", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", - '422': "ValidationProblemDetails", + "200": "Waardering", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_waardering_serialize( self, id, @@ -564,8 +538,7 @@ def _get_waardering_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -578,31 +551,24 @@ def _get_waardering_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/waarderingen/{id}', + method="GET", + resource_path="/waarderingen/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -612,23 +578,21 @@ def _get_waardering_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_waardering_ontwikkeling( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -661,26 +625,25 @@ def get_waardering_ontwikkeling( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_waardering_ontwikkeling_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WaarderingOntwikkeling", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", - '422': "ValidationProblemDetails", + "200": "WaarderingOntwikkeling", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -688,18 +651,18 @@ def get_waardering_ontwikkeling( response_types_map=_response_types_map, ).data - @validate_call def get_waardering_ontwikkeling_with_http_info( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -732,26 +695,25 @@ def get_waardering_ontwikkeling_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_waardering_ontwikkeling_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WaarderingOntwikkeling", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", - '422': "ValidationProblemDetails", + "200": "WaarderingOntwikkeling", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -759,18 +721,18 @@ def get_waardering_ontwikkeling_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_waardering_ontwikkeling_without_preload_content( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -803,30 +765,28 @@ def get_waardering_ontwikkeling_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_waardering_ontwikkeling_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WaarderingOntwikkeling", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '404': "NotFoundProblemDetails", - '422': "ValidationProblemDetails", + "200": "WaarderingOntwikkeling", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "404": "NotFoundProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_waardering_ontwikkeling_serialize( self, id, @@ -838,8 +798,7 @@ def _get_waardering_ontwikkeling_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -852,31 +811,24 @@ def _get_waardering_ontwikkeling_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _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' - ] + 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' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='GET', - resource_path='/waarderingen/{id}/ontwikkeling', + method="GET", + resource_path="/waarderingen/{id}/ontwikkeling", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -886,24 +838,22 @@ def _get_waardering_ontwikkeling_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def patch_waarderingen( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -938,7 +888,7 @@ def patch_waarderingen( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._patch_waarderingen_serialize( id=id, @@ -946,21 +896,20 @@ def patch_waarderingen( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _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", + "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 + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -968,19 +917,19 @@ def patch_waarderingen( response_types_map=_response_types_map, ).data - @validate_call def patch_waarderingen_with_http_info( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1015,7 +964,7 @@ def patch_waarderingen_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._patch_waarderingen_serialize( id=id, @@ -1023,21 +972,20 @@ def patch_waarderingen_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _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", + "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 + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1045,19 +993,19 @@ def patch_waarderingen_with_http_info( response_types_map=_response_types_map, ) - @validate_call def patch_waarderingen_without_preload_content( self, - id: Annotated[StrictStr, Field(description="De waardering Id in de vorm van een UUID.")], + 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)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1092,7 +1040,7 @@ def patch_waarderingen_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._patch_waarderingen_serialize( id=id, @@ -1100,25 +1048,23 @@ def patch_waarderingen_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _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", + "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 + *_param, _request_timeout=_request_timeout ) return response_data.response - def _patch_waarderingen_serialize( self, id, @@ -1131,8 +1077,7 @@ def _patch_waarderingen_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1145,7 +1090,7 @@ def _patch_waarderingen_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters @@ -1153,38 +1098,28 @@ def _patch_waarderingen_serialize( 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' - ] + 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 + _header_params["Content-Type"] = _content_type else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json' - ] - ) + _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 + _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [ - 'oauth' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='PATCH', - resource_path='/waarderingen/{id}', + method="PATCH", + resource_path="/waarderingen/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1194,12 +1129,9 @@ def _patch_waarderingen_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def search_waarderingen( self, @@ -1208,9 +1140,8 @@ def search_waarderingen( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1219,7 +1150,7 @@ def search_waarderingen( ) -> 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. + 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 @@ -1243,25 +1174,24 @@ def search_waarderingen( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Waardering]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '422': "ValidationProblemDetails", + "200": "List[Waardering]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1269,7 +1199,6 @@ def search_waarderingen( response_types_map=_response_types_map, ).data - @validate_call def search_waarderingen_with_http_info( self, @@ -1278,9 +1207,8 @@ def search_waarderingen_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1289,7 +1217,7 @@ def search_waarderingen_with_http_info( ) -> 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. + 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 @@ -1313,25 +1241,24 @@ def search_waarderingen_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Waardering]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '422': "ValidationProblemDetails", + "200": "List[Waardering]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1339,7 +1266,6 @@ def search_waarderingen_with_http_info( response_types_map=_response_types_map, ) - @validate_call def search_waarderingen_without_preload_content( self, @@ -1348,9 +1274,8 @@ def search_waarderingen_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1359,7 +1284,7 @@ def search_waarderingen_without_preload_content( ) -> 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. + 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 @@ -1383,29 +1308,27 @@ def search_waarderingen_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # 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 + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Waardering]", - '401': "UnauthorizedProblemDetails", - '403': "PermissionsDeniedProblemDetails", - '422': "ValidationProblemDetails", + "200": "List[Waardering]", + "401": "UnauthorizedProblemDetails", + "403": "PermissionsDeniedProblemDetails", + "422": "ValidationProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _search_waarderingen_serialize( self, waardering_zoek_parameters, @@ -1417,8 +1340,7 @@ def _search_waarderingen_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1437,38 +1359,28 @@ def _search_waarderingen_serialize( 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' - ] + 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 + _header_params["Content-Type"] = _content_type else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + _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 + _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [ - 'oauth' - ] + _auth_settings: List[str] = ["oauth"] return self.api_client.param_serialize( - method='POST', - resource_path='/waarderingen/zoeken', + method="POST", + resource_path="/waarderingen/zoeken", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1478,7 +1390,5 @@ def _search_waarderingen_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 551f0ec..8b1462c 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import datetime @@ -32,6 +32,7 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -48,11 +49,12 @@ UnauthorizedException, ForbiddenException, NotFoundException, - ServiceException + ServiceException, ) RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + class ApiClient: """Generic API client for OpenAPI client library builds. @@ -71,24 +73,20 @@ class ApiClient: 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, + "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 + self, configuration=None, header_name=None, header_value=None, cookie=None ) -> None: # use default configuration if none is provided if configuration is None: @@ -101,7 +99,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Calcasa Python Api Client/1.4.0-rc1' + self.user_agent = "Calcasa Python Api Client/1.4.0-rc2" self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -113,16 +111,15 @@ def __exit__(self, exc_type, exc_value, traceback): @property def user_agent(self): """User agent for this API client""" - return self.default_headers['User-Agent'] + return self.default_headers["User-Agent"] @user_agent.setter def user_agent(self, value): - self.default_headers['User-Agent'] = 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 @@ -158,12 +155,12 @@ def param_serialize( header_params=None, body=None, post_params=None, - files=None, auth_settings=None, + files=None, + auth_settings=None, collection_formats=None, _host=None, - _request_auth=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. @@ -192,35 +189,28 @@ def param_serialize( header_params = header_params or {} header_params.update(self.default_headers) if self.cookie: - header_params['Cookie'] = 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) + 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 - ) + 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) + "{%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 - ) + post_params = self.parameters_to_tuples(post_params, collection_formats) if files: post_params.extend(self.files_parameters(files)) @@ -232,7 +222,7 @@ def param_serialize( resource_path, method, body, - request_auth=_request_auth + request_auth=_request_auth, ) # body @@ -249,15 +239,11 @@ def param_serialize( # 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_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, @@ -265,7 +251,7 @@ def call_api( header_params=None, body=None, post_params=None, - _request_timeout=None + _request_timeout=None, ) -> rest.RESTResponse: """Makes the HTTP request (synchronous) :param method: Method to call. @@ -282,10 +268,12 @@ def call_api( try: # perform request and return response response_data = self.rest_client.request( - method, url, + method, + url, headers=header_params, - body=body, post_params=post_params, - _request_timeout=_request_timeout + body=body, + post_params=post_params, + _request_timeout=_request_timeout, ) except ApiException as e: @@ -296,7 +284,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]] = None, ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -308,9 +296,15 @@ def 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 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) + response_type = response_types_map.get( + str(response_data.status)[0] + "XX", None + ) # deserialize response data response_text = None @@ -322,12 +316,14 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader('content-type') + 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) + return_data = self.deserialize( + response_text, response_type, content_type + ) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -337,10 +333,10 @@ def response_deserialize( ) return ApiResponse( - status_code = response_data.status, - data = return_data, - headers = response_data.getheaders(), - raw_data = response_data.data + status_code=response_data.status, + data=return_data, + headers=response_data.getheaders(), + raw_data=response_data.data, ) def sanitize_for_serialization(self, obj): @@ -367,14 +363,12 @@ def sanitize_for_serialization(self, obj): 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 - ] + 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 - ) + 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): @@ -388,17 +382,22 @@ def sanitize_for_serialization(self, obj): # 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')): + 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() + 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]): + 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. @@ -415,17 +414,20 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + 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): + 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) + status=0, reason="Unsupported content type: {0}".format(content_type) ) return self.__deserialize(data, response_type) @@ -442,19 +444,17 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) + 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] + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) + 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()} + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: @@ -464,13 +464,13 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) @@ -490,19 +490,18 @@ def parameters_to_tuples(self, params, 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': + 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 = '|' + 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))) + delimiter = "," + new_params.append((k, delimiter.join(str(value) for value in v))) else: new_params.append((k, v)) return new_params @@ -527,17 +526,17 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] - if collection_format == 'multi': + 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 = '|' + if collection_format == "ssv": + delimiter = " " + elif collection_format == "tsv": + delimiter = "\t" + elif collection_format == "pipes": + delimiter = "|" else: # csv is the default - delimiter = ',' + delimiter = "," new_params.append( (k, delimiter.join(quote(str(value)) for value in v)) ) @@ -558,7 +557,7 @@ def files_parameters( params = [] for k, v in files.items(): if isinstance(v, str): - with open(v, 'rb') as f: + with open(v, "rb") as f: filename = os.path.basename(f.name) filedata = f.read() elif isinstance(v, bytes): @@ -572,13 +571,8 @@ def files_parameters( 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])]) - ) + 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]: @@ -591,7 +585,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: return None for accept in accepts: - if re.search('json', accept, re.IGNORECASE): + if re.search("json", accept, re.IGNORECASE): return accept return accepts[0] @@ -606,7 +600,7 @@ def select_header_content_type(self, content_types): return None for content_type in content_types: - if re.search('json', content_type, re.IGNORECASE): + if re.search("json", content_type, re.IGNORECASE): return content_type return content_types[0] @@ -619,7 +613,7 @@ def update_params_for_auth( resource_path, method, body, - request_auth=None + request_auth=None, ) -> None: """Updates header and query params based on authentication setting. @@ -638,34 +632,18 @@ def update_params_for_auth( if request_auth: self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - request_auth + 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 + headers, queries, resource_path, method, body, auth_setting ) def _apply_auth_params( - self, - headers, - queries, - resource_path, - method, - body, - auth_setting + self, headers, queries, resource_path, method, body, auth_setting ) -> None: """Updates the request parameters based on a single auth_setting @@ -677,17 +655,15 @@ def _apply_auth_params( 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'])) + 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`' - ) + raise ApiValueError("Authentication token must be in `query` or `header`") def __deserialize_file(self, response): """Deserializes body to file @@ -707,10 +683,7 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - m = re.search( - r'filename=[\'"]?([^\'"\s]+)[\'"]?', - 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) @@ -754,8 +727,7 @@ def __deserialize_date(self, string): return string except ValueError: raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) + status=0, reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datetime(self, string): @@ -773,10 +745,7 @@ def __deserialize_datetime(self, string): except ValueError: raise rest.ApiException( status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) + reason=("Failed to parse `{0}` as datetime object".format(string)), ) def __deserialize_enum(self, data, klass): @@ -790,11 +759,7 @@ def __deserialize_enum(self, data, klass): return klass(data) except ValueError: raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as `{1}`" - .format(data, klass) - ) + status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) ) def __deserialize_model(self, data, klass): diff --git a/calcasa/api/api_response.py b/calcasa/api/api_response.py index 9bc7c11..1ce1372 100644 --- a/calcasa/api/api_response.py +++ b/calcasa/api/api_response.py @@ -6,6 +6,7 @@ T = TypeVar("T") + class ApiResponse(BaseModel, Generic[T]): """ API response object @@ -16,6 +17,4 @@ class ApiResponse(BaseModel, Generic[T]): 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 - } + model_config = {"arbitrary_types_allowed": True} diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index fd7485a..bc9b6d1 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import copy @@ -36,9 +36,16 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems' + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", } ServerVariablesT = Dict[str, str] @@ -182,25 +189,24 @@ class Configuration: 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, + 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 - """ + """Constructor""" self._base_path = "https://api.calcasa.nl/api/v1" if host is None else host """Default Base url """ @@ -246,7 +252,7 @@ def __init__( """ 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 @@ -305,7 +311,7 @@ def __init__( 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 = retries @@ -326,12 +332,12 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + 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) @@ -463,7 +469,9 @@ def logger_format(self, value: str) -> None: self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: + 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. @@ -472,7 +480,9 @@ def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=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: @@ -493,22 +503,22 @@ def get_basic_auth_token(self) -> Optional[str]: 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)-> AuthSettings: + def auth_settings(self) -> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ 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 @@ -517,12 +527,15 @@ def to_debug_report(self) -> str: :return: The report for debugging. """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.4.0-rc1\n"\ - "SDK Package Version: 1.4.0-rc1".\ - 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-rc2\n" + "SDK Package Version: 1.4.0-rc2".format( + env=sys.platform, pyversion=sys.version + ) + ) def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings @@ -531,38 +544,34 @@ def get_host_settings(self) -> List[HostSetting]: """ return [ { - 'url': "https://api.calcasa.nl/api/{apiVersion}", - 'description': "Production", - 'variables': { - 'apiVersion': { - 'description': "No description provided", - 'default_value': "v1", - 'enum_values': [ - "v1" - ] - } + "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" - ] - } + "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: Optional[int], - variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + 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 @@ -581,22 +590,22 @@ def get_host_from_settings( 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) @@ -605,7 +614,9 @@ def get_host_from_settings( @property 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: str) -> None: diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index 3b2393e..be3aed2 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +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 + 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 @@ -115,9 +117,9 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): def __init__( - self, - status=None, - reason=None, + self, + status=None, + reason=None, http_resp=None, *, body: Optional[str] = None, @@ -136,17 +138,17 @@ def __init__( self.reason = http_resp.reason if self.body is None: try: - self.body = http_resp.data.decode('utf-8') + 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], + cls, + *, + http_resp, + body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: @@ -166,7 +168,9 @@ def from_response( 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) + 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) @@ -174,11 +178,9 @@ def from_response( def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) + 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) + 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) @@ -208,11 +210,13 @@ class ServiceException(ApiException): class ConflictException(ApiException): """Exception for HTTP 409 Conflict.""" + pass class UnprocessableEntityException(ApiException): """Exception for HTTP 422 Unprocessable Entity.""" + pass diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py index b13052d..d06a8c6 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -2,28 +2,27 @@ # flake8: noqa """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +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 @@ -32,11 +31,15 @@ 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.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.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 @@ -51,7 +54,9 @@ 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.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 @@ -62,12 +67,16 @@ 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.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.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 @@ -78,7 +87,9 @@ 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_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 diff --git a/calcasa/api/models/aanvraagdoel.py b/calcasa/api/models/aanvraagdoel.py index 8587b3a..8387560 100644 --- a/calcasa/api/models/aanvraagdoel.py +++ b/calcasa/api/models/aanvraagdoel.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,17 +37,15 @@ class Aanvraagdoel(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - AANKOOPNIEUWEWONING = 'aankoopNieuweWoning' - OVERBRUGGINGSFINANCIERING = 'overbruggingsfinanciering' - HYPOTHEEKOVERSLUITEN = 'hypotheekOversluiten' - HYPOTHEEKOPHOGEN = 'hypotheekOphogen' - HYPOTHEEKWIJZIGING = 'hypotheekWijziging' - HYPOTHEEKRENTEWIJZIGEN = 'hypotheekrenteWijzigen' + 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 index 0e1733b..c5706f7 100644 --- a/calcasa/api/models/adres.py +++ b/calcasa/api/models/adres.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,26 +34,47 @@ 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).") + """ # 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).") + 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).", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["straat", "huisnummer", "huisnummertoevoeging", "postcode", "woonplaats"] - - @field_validator('postcode') + __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}$/") + raise ValueError( + r"must validate the regular expression /^[0-9]{4}[A-Z]{2}$/" + ) return value model_config = ConfigDict( @@ -62,7 +83,6 @@ def postcode_validate_regular_expression(cls, value): 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)) @@ -88,9 +108,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -104,8 +126,11 @@ def to_dict(self) -> Dict[str, Any]: # 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 + if ( + self.huisnummertoevoeging is None + and "huisnummertoevoeging" in self.model_fields_set + ): + _dict["huisnummertoevoeging"] = None return _dict @@ -118,18 +143,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "straat": obj.get("straat"), + "huisnummer": obj.get("huisnummer"), + "huisnummertoevoeging": obj.get("huisnummertoevoeging"), + "postcode": obj.get("postcode"), + "woonplaats": obj.get("woonplaats"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/adres_info.py b/calcasa/api/models/adres_info.py index 0b7a3b3..58411b8 100644 --- a/calcasa/api/models/adres_info.py +++ b/calcasa/api/models/adres_info.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -35,16 +35,30 @@ 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") + """ # 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") + adres_gevonden: Optional[StrictBool] = Field( + default=None, + description="Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.", + alias="adresGevonden", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bagNummeraanduidingId", "adres", "notities", "adresGevonden"] + __properties: ClassVar[List[str]] = [ + "bagNummeraanduidingId", + "adres", + "notities", + "adresGevonden", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +66,6 @@ class AdresInfo(BaseModel): 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)) @@ -78,9 +91,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -89,10 +104,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of adres if self.adres: - _dict['adres'] = self.adres.to_dict() + _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() + _dict["notities"] = self.notities.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -101,7 +116,7 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _dict["adresGevonden"] = None return _dict @@ -114,17 +129,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/bestemmingsdata.py b/calcasa/api/models/bestemmingsdata.py index bd76546..bc06134 100644 --- a/calcasa/api/models/bestemmingsdata.py +++ b/calcasa/api/models/bestemmingsdata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,12 +34,20 @@ 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") + """ # 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", + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["enkelbestemming", "datumBestemmingplan"] @@ -49,7 +57,6 @@ class Bestemmingsdata(BaseModel): 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)) @@ -75,9 +82,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -92,12 +101,15 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + if ( + self.datum_bestemmingplan is None + and "datum_bestemmingplan" in self.model_fields_set + ): + _dict["datumBestemmingplan"] = None return _dict @@ -110,15 +122,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "enkelbestemming": obj.get("enkelbestemming"), - "datumBestemmingplan": obj.get("datumBestemmingplan") - }) + _obj = cls.model_validate( + { + "enkelbestemming": obj.get("enkelbestemming"), + "datumBestemmingplan": obj.get("datumBestemmingplan"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/bodem_status_type.py b/calcasa/api/models/bodem_status_type.py index f9a9bd9..1c8e4bb 100644 --- a/calcasa/api/models/bodem_status_type.py +++ b/calcasa/api/models/bodem_status_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,16 +37,14 @@ class BodemStatusType(str, Enum): """ allowed enum values """ - GEENDATA = 'geenData' - ONBEKEND = 'onbekend' - NIETVERVUILD = 'nietVervuild' - NIETERNSTIG = 'nietErnstig' - POTENTIEELERNSTIG = 'potentieelErnstig' - ERNSTIG = 'ernstig' + 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 index fecf2c4..55cb7e5 100644 --- a/calcasa/api/models/bodemdata.py +++ b/calcasa/api/models/bodemdata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -35,13 +35,21 @@ from typing import Optional, Set from typing_extensions import Self + class Bodemdata(BaseModel): """ Bodemdata - """ # noqa: E501 + """ # 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.") + 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." + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status", "datumLaatsteOnderzoek", "url"] @@ -51,7 +59,6 @@ class Bodemdata(BaseModel): 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)) @@ -77,9 +84,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -93,13 +102,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 + 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 + _dict["url"] = None return _dict @@ -112,16 +124,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "status": obj.get("status"), + "datumLaatsteOnderzoek": obj.get("datumLaatsteOnderzoek"), + "url": obj.get("url"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/business_rules_code.py b/calcasa/api/models/business_rules_code.py index dbfd5ad..554e400 100644 --- a/calcasa/api/models/business_rules_code.py +++ b/calcasa/api/models/business_rules_code.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,21 +37,19 @@ class BusinessRulesCode(str, Enum): """ 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' + GEENWAARDEBEPALINGMOGELIJK = "geenWaardebepalingMogelijk" + GEENBESTAANDEWONING = "geenBestaandeWoning" + FOUTEOFONTBREKENDEINVOER = "fouteOfOntbrekendeInvoer" + CALCASAWAARDETEHOOG = "calcasaWaardeTeHoog" + LTVTEHOOG = "ltvTeHoog" + HYPOTHEEKTEHOOG = "hypotheekTeHoog" + WONINGTYPEINCORRECT = "woningtypeIncorrect" + CALCASAWAARDETELAAG = "calcasaWaardeTeLaag" + CALCASAWAARDETEHOOGVOORNHG = "calcasaWaardeTeHoogVoorNhg" + CALCASAWAARDEENKOOPSOMTEHOOGVOORNHG = "calcasaWaardeEnKoopsomTeHoogVoorNhg" + LTVTEHOOGOVERBRUGGING = "ltvTeHoogOverbrugging" @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 index 81599b8..5678225 100644 --- a/calcasa/api/models/business_rules_problem_details.py +++ b/calcasa/api/models/business_rules_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,18 +34,43 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["businessRulesCode", "type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "businessRulesCode", + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +78,6 @@ class BusinessRulesProblemDetails(BaseModel): 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)) @@ -79,9 +103,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -96,27 +122,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -129,19 +155,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/callback.py b/calcasa/api/models/callback.py index 00ac8f0..9402790 100644 --- a/calcasa/api/models/callback.py +++ b/calcasa/api/models/callback.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,12 +34,20 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["version", "url"] @@ -49,7 +57,6 @@ class Callback(BaseModel): 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)) @@ -75,9 +82,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -92,7 +101,7 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _dict["url"] = None return _dict @@ -105,15 +114,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "version": obj.get("version"), - "url": obj.get("url") - }) + _obj = cls.model_validate( + {"version": obj.get("version"), "url": obj.get("url")} + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/callback_inschrijving.py b/calcasa/api/models/callback_inschrijving.py index 2f91106..b517055 100644 --- a/calcasa/api/models/callback_inschrijving.py +++ b/calcasa/api/models/callback_inschrijving.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,16 +34,36 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bagNummeraanduidingId", "geldigTot", "externeReferentie", "geldverstrekker"] + __properties: ClassVar[List[str]] = [ + "bagNummeraanduidingId", + "geldigTot", + "externeReferentie", + "geldverstrekker", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +71,6 @@ class CallbackInschrijving(BaseModel): 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)) @@ -77,9 +96,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -93,13 +114,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 + 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 + _dict["geldverstrekker"] = None return _dict @@ -112,17 +136,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "bagNummeraanduidingId": obj.get("bagNummeraanduidingId"), + "geldigTot": obj.get("geldigTot"), + "externeReferentie": obj.get("externeReferentie"), + "geldverstrekker": obj.get("geldverstrekker"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/cbs_indeling.py b/calcasa/api/models/cbs_indeling.py index 004ff4a..4b8ec85 100644 --- a/calcasa/api/models/cbs_indeling.py +++ b/calcasa/api/models/cbs_indeling.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,17 +33,39 @@ 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.") + """ # 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." + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["buurtId", "buurtCode", "buurtnaam", "wijknaam", "gemeentenaam"] + __properties: ClassVar[List[str]] = [ + "buurtId", + "buurtCode", + "buurtnaam", + "wijknaam", + "gemeentenaam", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +73,6 @@ class CbsIndeling(BaseModel): 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)) @@ -77,9 +98,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -102,18 +125,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "buurtId": obj.get("buurtId"), + "buurtCode": obj.get("buurtCode"), + "buurtnaam": obj.get("buurtnaam"), + "wijknaam": obj.get("wijknaam"), + "gemeentenaam": obj.get("gemeentenaam"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/deel_waardering_webhook_payload.py b/calcasa/api/models/deel_waardering_webhook_payload.py index 73abfd9..0d91839 100644 --- a/calcasa/api/models/deel_waardering_webhook_payload.py +++ b/calcasa/api/models/deel_waardering_webhook_payload.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -31,19 +31,31 @@ 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 + """ # noqa: E501 + callback_name: StrictStr = Field(alias="callbackName") - event_id: StrictStr = Field(description="Uniek Id voor deze callback.", alias="eventId") + 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[StrictStr] = Field(default=None, description="Het Id van de waardering waarop deze callback betrekking heeft.", alias="waarderingId") + waardering_id: Optional[UUID] = Field( + default=None, + description="Het Id van de waardering waarop deze callback betrekking heeft.", + alias="waarderingId", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["callbackName", "eventId", "timestamp", "waarderingId"] + __properties: ClassVar[List[str]] = [ + "callbackName", + "eventId", + "timestamp", + "waarderingId", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +63,6 @@ class DeelWaarderingWebhookPayload(BaseModel): 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)) @@ -78,10 +89,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "callback_name", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "callback_name", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -104,17 +117,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "callbackName": obj.get("callbackName"), + "eventId": obj.get("eventId"), + "timestamp": obj.get("timestamp"), + "waarderingId": obj.get("waarderingId"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/energielabel.py b/calcasa/api/models/energielabel.py index ddcd1f7..c27a523 100644 --- a/calcasa/api/models/energielabel.py +++ b/calcasa/api/models/energielabel.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,22 +37,20 @@ class Energielabel(str, Enum): """ 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' + 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 index 63c8eac..10e327b 100644 --- a/calcasa/api/models/energielabel_data.py +++ b/calcasa/api/models/energielabel_data.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,15 +34,32 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["aantalSterren", "geldigTot", "registratiedatum"] + __properties: ClassVar[List[str]] = [ + "aantalSterren", + "geldigTot", + "registratiedatum", + ] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +67,6 @@ class EnergielabelData(BaseModel): 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)) @@ -76,9 +92,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -93,17 +111,20 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + if ( + self.registratiedatum is None + and "registratiedatum" in self.model_fields_set + ): + _dict["registratiedatum"] = None return _dict @@ -116,16 +137,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "aantalSterren": obj.get("aantalSterren"), + "geldigTot": obj.get("geldigTot"), + "registratiedatum": obj.get("registratiedatum"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/factuur.py b/calcasa/api/models/factuur.py index 9a92b03..d8f0649 100644 --- a/calcasa/api/models/factuur.py +++ b/calcasa/api/models/factuur.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -30,14 +30,17 @@ 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: StrictStr = Field(description="Het factuur Id.") + """ # noqa: E501 + + id: UUID = Field(description="Het factuur Id.") factuurnummer: StrictStr = Field(description="Het factuurnummer van de factuur.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "factuurnummer"] @@ -48,7 +51,6 @@ class Factuur(BaseModel): 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)) @@ -74,9 +76,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -99,15 +103,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "factuurnummer": obj.get("factuurnummer") - }) + _obj = cls.model_validate( + {"id": obj.get("id"), "factuurnummer": obj.get("factuurnummer")} + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/foto.py b/calcasa/api/models/foto.py index 364eb38..d981ae4 100644 --- a/calcasa/api/models/foto.py +++ b/calcasa/api/models/foto.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -28,16 +28,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +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[StrictStr] = Field(default=None, description="Het foto Id.") + """ # noqa: E501 + + id: Optional[UUID] = Field(default=None, description="Het foto Id.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id"] @@ -47,7 +50,6 @@ class Foto(BaseModel): 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)) @@ -73,9 +75,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -98,14 +102,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id") - }) + _obj = cls.model_validate({"id": obj.get("id")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/fundering_data_bron.py b/calcasa/api/models/fundering_data_bron.py index 0840838..e0e40cc 100644 --- a/calcasa/api/models/fundering_data_bron.py +++ b/calcasa/api/models/fundering_data_bron.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,12 +37,10 @@ class FunderingDataBron(str, Enum): """ allowed enum values """ - CALCASA = 'calcasa' - FUNDERMAPS = 'fundermaps' + 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 index 1105b89..886216c 100644 --- a/calcasa/api/models/fundering_herstel_type.py +++ b/calcasa/api/models/fundering_herstel_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,15 +37,13 @@ class FunderingHerstelType(str, Enum): """ allowed enum values """ - ONBEKENDHERSTELTYPE = 'onbekendHerstelType' - VERGUNNING = 'vergunning' - FUNDERINGRAPPORT = 'funderingRapport' - ARCHIEFRAPPORT = 'archiefRapport' - EIGENAARBEWIJS = 'eigenaarBewijs' + 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 index 85fa998..df326fa 100644 --- a/calcasa/api/models/fundering_risico.py +++ b/calcasa/api/models/fundering_risico.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -35,13 +35,17 @@ from typing import Optional, Set from typing_extensions import Self + class FunderingRisico(BaseModel): """ Informatie over een bepaald funderingrisico. - """ # noqa: E501 + """ # noqa: E501 + label: Optional[FunderingRisicoLabel] = None bron: Optional[FunderingSoortBron] = None - omschrijving: Optional[StrictStr] = Field(default=None, description="De omschrijving van het risico.") + omschrijving: Optional[StrictStr] = Field( + default=None, description="De omschrijving van het risico." + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["label", "bron", "omschrijving"] @@ -51,7 +55,6 @@ class FunderingRisico(BaseModel): 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)) @@ -77,9 +80,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -102,16 +107,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "label": obj.get("label"), + "bron": obj.get("bron"), + "omschrijving": obj.get("omschrijving"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/fundering_risico_label.py b/calcasa/api/models/fundering_risico_label.py index 8723bef..1fd1abf 100644 --- a/calcasa/api/models/fundering_risico_label.py +++ b/calcasa/api/models/fundering_risico_label.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,14 +37,12 @@ class FunderingRisicoLabel(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - LAAG = 'laag' - GEMIDDELD = 'gemiddeld' - HOOG = 'hoog' + 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 index ede2428..1f1110a 100644 --- a/calcasa/api/models/fundering_soort_bron.py +++ b/calcasa/api/models/fundering_soort_bron.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,14 +37,12 @@ class FunderingSoortBron(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - MODEL = 'model' - DOCUMENT = 'document' - BOUWEENHEID = 'bouweenheid' + 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 index 03b53a7..5ec1ad6 100644 --- a/calcasa/api/models/fundering_type.py +++ b/calcasa/api/models/fundering_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,28 +37,26 @@ class FunderingType(str, Enum): """ 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' + 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 index 6b4ac06..9e506bb 100644 --- a/calcasa/api/models/fundering_typering.py +++ b/calcasa/api/models/fundering_typering.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -35,13 +35,17 @@ from typing import Optional, Set from typing_extensions import Self + class FunderingTypering(BaseModel): """ Informatie over type fundering. - """ # noqa: E501 + """ # noqa: E501 + type: Optional[FunderingType] = None bron: Optional[FunderingSoortBron] = None - omschrijving: Optional[StrictStr] = Field(default=None, description="De omschrijving van het funderingstype.") + omschrijving: Optional[StrictStr] = Field( + default=None, description="De omschrijving van het funderingstype." + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "bron", "omschrijving"] @@ -51,7 +55,6 @@ class FunderingTypering(BaseModel): 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)) @@ -77,9 +80,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -102,16 +107,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "type": obj.get("type"), + "bron": obj.get("bron"), + "omschrijving": obj.get("omschrijving"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/funderingdata.py b/calcasa/api/models/funderingdata.py index 73014cc..55599a4 100644 --- a/calcasa/api/models/funderingdata.py +++ b/calcasa/api/models/funderingdata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,19 +37,39 @@ from typing import Optional, Set from typing_extensions import Self + class Funderingdata(BaseModel): """ Uitvoer met funderingsinformatie. - """ # noqa: E501 + """ # 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.") + 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 additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["typering", "herstelType", "droogstandRisico", "optrekkendVochtRisico", "bioInfectieRisico", "herstelkosten", "bron"] + __properties: ClassVar[List[str]] = [ + "typering", + "herstelType", + "droogstandRisico", + "optrekkendVochtRisico", + "bioInfectieRisico", + "herstelkosten", + "bron", + ] model_config = ConfigDict( populate_by_name=True, @@ -57,7 +77,6 @@ class Funderingdata(BaseModel): 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)) @@ -83,9 +102,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -94,16 +115,16 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of typering if self.typering: - _dict['typering'] = self.typering.to_dict() + _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() + _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() + _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() + _dict["bioInfectieRisico"] = self.bio_infectie_risico.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -112,7 +133,7 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _dict["herstelkosten"] = None return _dict @@ -125,20 +146,36 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/gebiedsdata.py b/calcasa/api/models/gebiedsdata.py index 84fcf60..b352c30 100644 --- a/calcasa/api/models/gebiedsdata.py +++ b/calcasa/api/models/gebiedsdata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,21 +34,73 @@ from typing import Optional, Set from typing_extensions import Self + class Gebiedsdata(BaseModel): """ Gebiedsdata - """ # noqa: E501 + """ # 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") + 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", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["naam", "gemiddeldePrijsEengezinswoningen", "gemiddeldePrijsMeergezinswoningen", "gemiddeldeVierkantemeterPrijsEengezinswoningen", "gemiddeldeVierkantemeterPrijsMeergezinswoningen", "prijsveranderingAfgelopenJaar", "prijsveranderingAfgelopen3Jaar", "prijsveranderingAfgelopen5Jaar", "prijsveranderingAfgelopen10Jaar"] + __properties: ClassVar[List[str]] = [ + "naam", + "gemiddeldePrijsEengezinswoningen", + "gemiddeldePrijsMeergezinswoningen", + "gemiddeldeVierkantemeterPrijsEengezinswoningen", + "gemiddeldeVierkantemeterPrijsMeergezinswoningen", + "prijsveranderingAfgelopenJaar", + "prijsveranderingAfgelopen3Jaar", + "prijsveranderingAfgelopen5Jaar", + "prijsveranderingAfgelopen10Jaar", + ] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +108,6 @@ class Gebiedsdata(BaseModel): 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)) @@ -82,9 +133,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -98,43 +151,69 @@ def to_dict(self) -> Dict[str, Any]: # 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + if ( + self.prijsverandering_afgelopen10_jaar is None + and "prijsverandering_afgelopen10_jaar" in self.model_fields_set + ): + _dict["prijsveranderingAfgelopen10Jaar"] = None return _dict @@ -147,22 +226,38 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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" + ), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/geldverstrekker.py b/calcasa/api/models/geldverstrekker.py index 9bf4e39..df1dc4e 100644 --- a/calcasa/api/models/geldverstrekker.py +++ b/calcasa/api/models/geldverstrekker.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,12 +33,19 @@ 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.") + """ # 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." + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["slug", "name"] @@ -48,7 +55,6 @@ class Geldverstrekker(BaseModel): 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)) @@ -74,9 +80,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -99,15 +107,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "slug": obj.get("slug"), - "name": obj.get("name") - }) + _obj = cls.model_validate({"slug": obj.get("slug"), "name": obj.get("name")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/invalid_argument_problem_details.py b/calcasa/api/models/invalid_argument_problem_details.py index cde2b6c..26e3e6d 100644 --- a/calcasa/api/models/invalid_argument_problem_details.py +++ b/calcasa/api/models/invalid_argument_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,18 +33,41 @@ from typing import Optional, Set from typing_extensions import Self + class InvalidArgumentProblemDetails(BaseModel): """ Invalid argument was provided. - """ # noqa: E501 + """ # 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.") + 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["paramName", "type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "paramName", + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +75,6 @@ class InvalidArgumentProblemDetails(BaseModel): 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)) @@ -78,9 +100,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -95,27 +119,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -128,19 +152,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/klantwaarde_type.py b/calcasa/api/models/klantwaarde_type.py index 482709a..1f0c0c3 100644 --- a/calcasa/api/models/klantwaarde_type.py +++ b/calcasa/api/models/klantwaarde_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,15 +37,13 @@ class KlantwaardeType(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - KOOPSOM = 'koopsom' - TAXATIEWAARDE = 'taxatiewaarde' - WOZWAARDE = 'wozWaarde' - EIGENWAARDEINSCHATTING = 'eigenWaardeinschatting' + 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 index 2508367..e3ad451 100644 --- a/calcasa/api/models/kwartaal.py +++ b/calcasa/api/models/kwartaal.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,12 +33,16 @@ from typing import Optional, Set from typing_extensions import Self + class Kwartaal(BaseModel): """ Kwartaal - """ # noqa: E501 + """ # noqa: E501 + jaar: Optional[StrictInt] = None - number: Optional[StrictInt] = Field(default=None, description="Het kwartaal van 1 tot 4.") + number: Optional[StrictInt] = Field( + default=None, description="Het kwartaal van 1 tot 4." + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["jaar", "number"] @@ -48,7 +52,6 @@ class Kwartaal(BaseModel): 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)) @@ -74,9 +77,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -99,15 +104,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "jaar": obj.get("jaar"), - "number": obj.get("number") - }) + _obj = cls.model_validate( + {"jaar": obj.get("jaar"), "number": obj.get("number")} + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/modeldata.py b/calcasa/api/models/modeldata.py index 93211d7..6484018 100644 --- a/calcasa/api/models/modeldata.py +++ b/calcasa/api/models/modeldata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,18 +34,35 @@ from typing import Optional, Set from typing_extensions import Self + class Modeldata(BaseModel): """ Modeldata - """ # noqa: E501 + """ # 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") + 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.") + executiewaarde: Optional[StrictInt] = Field( + default=None, description="In hele euros." + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["marktwaarde", "marktwaardeOndergrens", "marktwaardeBovengrens", "confidenceLevel", "waardebepalingsdatum", "executiewaarde"] + __properties: ClassVar[List[str]] = [ + "marktwaarde", + "marktwaardeOndergrens", + "marktwaardeBovengrens", + "confidenceLevel", + "waardebepalingsdatum", + "executiewaarde", + ] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +70,6 @@ class Modeldata(BaseModel): 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)) @@ -79,9 +95,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -104,19 +122,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/not_found_problem_details.py b/calcasa/api/models/not_found_problem_details.py index 74c69e8..e89fe31 100644 --- a/calcasa/api/models/not_found_problem_details.py +++ b/calcasa/api/models/not_found_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,18 +33,41 @@ from typing import Optional, Set from typing_extensions import Self + class NotFoundProblemDetails(BaseModel): """ NotFoundProblemDetails - """ # noqa: E501 + """ # 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.") + 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["entity", "type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "entity", + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +75,6 @@ class NotFoundProblemDetails(BaseModel): 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)) @@ -78,9 +100,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -95,27 +119,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -128,19 +152,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/notitie.py b/calcasa/api/models/notitie.py index 0865e1f..54489fc 100644 --- a/calcasa/api/models/notitie.py +++ b/calcasa/api/models/notitie.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,14 +37,12 @@ class Notitie(str, Enum): """ allowed enum values """ - GEEN = 'geen' - GECORRIGEERD = 'gecorrigeerd' - ONBEKEND = 'onbekend' - ONTBREEKT = 'ontbreekt' + 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 index 20acfff..08db8a0 100644 --- a/calcasa/api/models/notities.py +++ b/calcasa/api/models/notities.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,17 +34,25 @@ from typing import Optional, Set from typing_extensions import Self + class Notities(BaseModel): """ Notities - """ # noqa: E501 + """ # noqa: E501 + straat: Optional[Notitie] = None huisnummer: Optional[Notitie] = None huisnummertoevoeging: Optional[Notitie] = None postcode: Optional[Notitie] = None woonplaats: Optional[Notitie] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["straat", "huisnummer", "huisnummertoevoeging", "postcode", "woonplaats"] + __properties: ClassVar[List[str]] = [ + "straat", + "huisnummer", + "huisnummertoevoeging", + "postcode", + "woonplaats", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +60,6 @@ class Notities(BaseModel): 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)) @@ -78,9 +85,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -103,18 +112,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "straat": obj.get("straat"), + "huisnummer": obj.get("huisnummer"), + "huisnummertoevoeging": obj.get("huisnummertoevoeging"), + "postcode": obj.get("postcode"), + "woonplaats": obj.get("woonplaats"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/objectdata.py b/calcasa/api/models/objectdata.py index 3ac4e85..7c215fe 100644 --- a/calcasa/api/models/objectdata.py +++ b/calcasa/api/models/objectdata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -36,19 +36,37 @@ from typing import Optional, Set from typing_extensions import Self + class Objectdata(BaseModel): """ Objectdata - """ # noqa: E501 + """ # 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.") + 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") + energielabel_data: Optional[EnergielabelData] = Field( + default=None, alias="energielabelData" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["woningType", "bouwjaar", "oppervlak", "perceeloppervlak", "inhoud", "energielabel", "energielabelData"] + __properties: ClassVar[List[str]] = [ + "woningType", + "bouwjaar", + "oppervlak", + "perceeloppervlak", + "inhoud", + "energielabel", + "energielabelData", + ] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +74,6 @@ class Objectdata(BaseModel): 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)) @@ -82,9 +99,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -93,7 +112,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of energielabel_data if self.energielabel_data: - _dict['energielabelData'] = self.energielabel_data.to_dict() + _dict["energielabelData"] = self.energielabel_data.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -110,20 +129,24 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 - }) + _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 + ), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/omgevingsdata.py b/calcasa/api/models/omgevingsdata.py index 2983125..4fba1a3 100644 --- a/calcasa/api/models/omgevingsdata.py +++ b/calcasa/api/models/omgevingsdata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,17 +34,25 @@ from typing import Optional, Set from typing_extensions import Self + class Omgevingsdata(BaseModel): """ Omgevingsdata - """ # noqa: E501 + """ # noqa: E501 + buurt: Optional[Gebiedsdata] = None wijk: Optional[Gebiedsdata] = None gemeente: Optional[Gebiedsdata] = None provincie: Optional[Gebiedsdata] = None land: Optional[Gebiedsdata] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["buurt", "wijk", "gemeente", "provincie", "land"] + __properties: ClassVar[List[str]] = [ + "buurt", + "wijk", + "gemeente", + "provincie", + "land", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +60,6 @@ class Omgevingsdata(BaseModel): 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)) @@ -78,9 +85,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -89,19 +98,19 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of buurt if self.buurt: - _dict['buurt'] = self.buurt.to_dict() + _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() + _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() + _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() + _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() + _dict["land"] = self.land.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -118,18 +127,38 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 - }) + _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 + ), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/operation.py b/calcasa/api/models/operation.py index efc1340..8e2a55f 100644 --- a/calcasa/api/models/operation.py +++ b/calcasa/api/models/operation.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,10 +34,12 @@ from typing import Optional, Set from typing_extensions import Self + class Operation(BaseModel): """ Operation - """ # noqa: E501 + """ # noqa: E501 + op: Optional[OperationType] = None var_from: Optional[StrictStr] = Field(default=None, alias="from") value: Optional[Any] = None @@ -51,7 +53,6 @@ class Operation(BaseModel): 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)) @@ -77,9 +78,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -94,12 +97,12 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _dict["value"] = None return _dict @@ -112,17 +115,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "op": obj.get("op"), + "from": obj.get("from"), + "value": obj.get("value"), + "path": obj.get("path"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/operation_type.py b/calcasa/api/models/operation_type.py index 20a74cd..d13d30c 100644 --- a/calcasa/api/models/operation_type.py +++ b/calcasa/api/models/operation_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,17 +37,15 @@ class OperationType(str, Enum): """ allowed enum values """ - ADD = 'add' - REMOVE = 'remove' - REPLACE = 'replace' - MOVE = 'move' - COPY = 'copy' - TEST = 'test' - INVALID = 'invalid' + 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 index 40f80dc..b7cdbbd 100644 --- a/calcasa/api/models/permissions_denied_problem_details.py +++ b/calcasa/api/models/permissions_denied_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,18 +33,43 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["requiredPermission", "type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "requiredPermission", + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +77,6 @@ class PermissionsDeniedProblemDetails(BaseModel): 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)) @@ -78,9 +102,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -95,27 +121,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -128,19 +154,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/problem_details.py b/calcasa/api/models/problem_details.py index f81dc2f..f5f5f62 100644 --- a/calcasa/api/models/problem_details.py +++ b/calcasa/api/models/problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,17 +33,39 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +73,6 @@ class ProblemDetails(BaseModel): 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)) @@ -77,9 +98,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -94,27 +117,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -127,18 +150,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "type": obj.get("type"), + "title": obj.get("title"), + "status": obj.get("status"), + "detail": obj.get("detail"), + "instance": obj.get("instance"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/product_type.py b/calcasa/api/models/product_type.py index e8c17a0..3ece0a5 100644 --- a/calcasa/api/models/product_type.py +++ b/calcasa/api/models/product_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,16 +37,14 @@ class ProductType(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - MODELWAARDECALCASA = 'modelwaardeCalcasa' - MODELWAARDERISICO = 'modelwaardeRisico' - MODELWAARDEDESKTOPTAXATIE = 'modelwaardeDesktopTaxatie' - DESKTOPTAXATIE = 'desktopTaxatie' - DESKTOPTAXATIEHERWAARDERING = 'desktopTaxatieHerwaardering' + 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 index 164e1d4..751bd20 100644 --- a/calcasa/api/models/rapport.py +++ b/calcasa/api/models/rapport.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -28,16 +28,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +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: StrictStr = Field(description="Het rapport Id.") + """ # noqa: E501 + + id: UUID = Field(description="Het rapport Id.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id"] @@ -47,7 +50,6 @@ class Rapport(BaseModel): 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)) @@ -73,9 +75,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -98,14 +102,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id") - }) + _obj = cls.model_validate({"id": obj.get("id")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/referentieobject.py b/calcasa/api/models/referentieobject.py index f52aef2..04210a9 100644 --- a/calcasa/api/models/referentieobject.py +++ b/calcasa/api/models/referentieobject.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -39,25 +39,63 @@ 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") + """ # 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.") + 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." + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["afstand", "verkoopprijs", "gecorrigeerdeVerkoopprijs", "geindexeerdeVerkoopprijs", "vierkantemeterprijs", "gecorrigeerdeVierkantemeterprijs", "geindexeerdeVierkantemeterprijs", "verkoopdatum", "adres", "object", "cbsIndeling", "fotos", "bijzonderheden"] + __properties: ClassVar[List[str]] = [ + "afstand", + "verkoopprijs", + "gecorrigeerdeVerkoopprijs", + "geindexeerdeVerkoopprijs", + "vierkantemeterprijs", + "gecorrigeerdeVierkantemeterprijs", + "geindexeerdeVierkantemeterprijs", + "verkoopdatum", + "adres", + "object", + "cbsIndeling", + "fotos", + "bijzonderheden", + ] model_config = ConfigDict( populate_by_name=True, @@ -65,7 +103,6 @@ class Referentieobject(BaseModel): 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)) @@ -91,9 +128,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -102,20 +141,20 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of adres if self.adres: - _dict['adres'] = self.adres.to_dict() + _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() + _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() + _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 + _dict["fotos"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -132,26 +171,46 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/resource_exhausted_problem_details.py b/calcasa/api/models/resource_exhausted_problem_details.py index 0bee8a1..83ec7cd 100644 --- a/calcasa/api/models/resource_exhausted_problem_details.py +++ b/calcasa/api/models/resource_exhausted_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,18 +33,41 @@ from typing import Optional, Set from typing_extensions import Self + class ResourceExhaustedProblemDetails(BaseModel): """ Resource exhausted. - """ # noqa: E501 + """ # 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.") + 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["resource", "type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "resource", + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +75,6 @@ class ResourceExhaustedProblemDetails(BaseModel): 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)) @@ -78,9 +100,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -95,27 +119,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -128,19 +152,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/taxatiedata.py b/calcasa/api/models/taxatiedata.py index 47f2ac7..dce8033 100644 --- a/calcasa/api/models/taxatiedata.py +++ b/calcasa/api/models/taxatiedata.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -35,16 +35,31 @@ from typing import Optional, Set from typing_extensions import Self + class Taxatiedata(BaseModel): """ Taxatiedata - """ # noqa: E501 - taxatieorganisatie: Optional[StrictStr] = Field(default=None, description="De naam van de taxatieorganisatie.") - taxateurnaam: Optional[StrictStr] = Field(default=None, description="De naam van de taxateur die de waardering heeft behandeld.") + """ # noqa: E501 + + taxatieorganisatie: Optional[StrictStr] = Field( + default=None, description="De naam van de taxatieorganisatie." + ) + 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.") + taxatiedatum: Optional[datetime] = Field( + default=None, + description="De datum/tijd waarop de waardering getaxeerd is, in UTC.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["taxatieorganisatie", "taxateurnaam", "status", "taxatiedatum"] + __properties: ClassVar[List[str]] = [ + "taxatieorganisatie", + "taxateurnaam", + "status", + "taxatiedatum", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +67,6 @@ class Taxatiedata(BaseModel): 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)) @@ -78,9 +92,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -103,17 +119,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "taxatieorganisatie": obj.get("taxatieorganisatie"), - "taxateurnaam": obj.get("taxateurnaam"), - "status": obj.get("status"), - "taxatiedatum": obj.get("taxatiedatum") - }) + _obj = cls.model_validate( + { + "taxatieorganisatie": obj.get("taxatieorganisatie"), + "taxateurnaam": obj.get("taxateurnaam"), + "status": obj.get("status"), + "taxatiedatum": obj.get("taxatiedatum"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/taxatiestatus.py b/calcasa/api/models/taxatiestatus.py index 46c63d7..3531820 100644 --- a/calcasa/api/models/taxatiestatus.py +++ b/calcasa/api/models/taxatiestatus.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,13 +37,11 @@ class Taxatiestatus(str, Enum): """ allowed enum values """ - NIETGECONTROLEERD = 'nietGecontroleerd' - GOEDGEKEURD = 'goedgekeurd' - AFGEKEURD = 'afgekeurd' + 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 index 8294c35..241acee 100644 --- a/calcasa/api/models/unauthorized_problem_details.py +++ b/calcasa/api/models/unauthorized_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,17 +33,39 @@ 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.") + """ # 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +73,6 @@ class UnauthorizedProblemDetails(BaseModel): 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)) @@ -77,9 +98,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -94,27 +117,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -127,18 +150,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "type": obj.get("type"), + "title": obj.get("title"), + "status": obj.get("status"), + "detail": obj.get("detail"), + "instance": obj.get("instance"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/validation_problem_details.py b/calcasa/api/models/validation_problem_details.py index 9522db2..a309359 100644 --- a/calcasa/api/models/validation_problem_details.py +++ b/calcasa/api/models/validation_problem_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -33,18 +33,41 @@ from typing import Optional, Set from typing_extensions import Self + class ValidationProblemDetails(BaseModel): """ ValidationProblemDetails - """ # noqa: E501 + """ # 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.") + 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["errors", "type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "errors", + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +75,6 @@ class ValidationProblemDetails(BaseModel): 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)) @@ -78,9 +100,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -95,27 +119,27 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + _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 + _dict["instance"] = None return _dict @@ -128,19 +152,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/verkoop_bijzonderheden.py b/calcasa/api/models/verkoop_bijzonderheden.py index f7198a8..2db0401 100644 --- a/calcasa/api/models/verkoop_bijzonderheden.py +++ b/calcasa/api/models/verkoop_bijzonderheden.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,19 +37,17 @@ class VerkoopBijzonderheden(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - EXECUTIEVERKOOP = 'executieverkoop' - FAMILIEVERKOOP = 'familieverkoop' - MEERONROERENDGOED = 'meerOnroerendGoed' - ZITTENDEHUURDER = 'zittendeHuurder' - VERKOPERNIETNATUURLIJK = 'verkoperNietNatuurlijk' - KOPERNIETNATUURLIJK = 'koperNietNatuurlijk' - NIETWONING = 'nietWoning' - ERFDIENSTBAARHEID = 'erfdienstbaarheid' + 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 index 7f36e51..1eeedaf 100644 --- a/calcasa/api/models/version_names.py +++ b/calcasa/api/models/version_names.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,11 +37,9 @@ class VersionNames(str, Enum): """ allowed enum values """ - V1 = 'v1' + 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 index 00457bd..9e8b851 100644 --- a/calcasa/api/models/vorige_verkoop.py +++ b/calcasa/api/models/vorige_verkoop.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -35,19 +35,43 @@ 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") + """ # 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.") + 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." + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["verkoopprijs", "geindexeerdeVerkoopprijs", "vierkantemeterprijs", "geindexeerdeVierkantemeterprijs", "verkoopdatum", "perceeloppervlak", "bijzonderheden"] + __properties: ClassVar[List[str]] = [ + "verkoopprijs", + "geindexeerdeVerkoopprijs", + "vierkantemeterprijs", + "geindexeerdeVierkantemeterprijs", + "verkoopdatum", + "perceeloppervlak", + "bijzonderheden", + ] model_config = ConfigDict( populate_by_name=True, @@ -55,7 +79,6 @@ class VorigeVerkoop(BaseModel): 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)) @@ -81,9 +104,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -106,20 +131,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/waardering.py b/calcasa/api/models/waardering.py index 4628c62..5fcdfe6 100644 --- a/calcasa/api/models/waardering.py +++ b/calcasa/api/models/waardering.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -29,8 +29,9 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr +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 @@ -46,12 +47,16 @@ from typing import Optional, Set from typing_extensions import Self + class Waardering(BaseModel): """ Waardering - """ # noqa: E501 - id: StrictStr - aangemaakt: datetime = Field(description="Het tijdsstempel van wanneer de waardering aangemaakt is.") + """ # 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 @@ -61,11 +66,28 @@ class Waardering(BaseModel): 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") + vorige_verkopen: Optional[List[VorigeVerkoop]] = Field( + default=None, alias="vorigeVerkopen" + ) rapport: Optional[Rapport] = None factuur: Optional[Factuur] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "aangemaakt", "status", "origineleInput", "adres", "model", "taxatie", "object", "cbsIndeling", "fotos", "referenties", "vorigeVerkopen", "rapport", "factuur"] + __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, @@ -73,7 +95,6 @@ class Waardering(BaseModel): 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)) @@ -99,9 +120,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -110,49 +133,49 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of originele_input if self.originele_input: - _dict['origineleInput'] = self.originele_input.to_dict() + _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() + _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() + _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() + _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() + _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() + _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 + _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 + _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 + _dict["vorigeVerkopen"] = _items # override the default output from pydantic by calling `to_dict()` of rapport if self.rapport: - _dict['rapport'] = self.rapport.to_dict() + _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() + _dict["factuur"] = self.factuur.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -161,17 +184,17 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _dict["vorigeVerkopen"] = None return _dict @@ -184,27 +207,71 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 - }) + _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 + ), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/waardering_input_parameters.py b/calcasa/api/models/waardering_input_parameters.py index 5baccf7..69eb745 100644 --- a/calcasa/api/models/waardering_input_parameters.py +++ b/calcasa/api/models/waardering_input_parameters.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -38,26 +38,85 @@ 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.") + """ # 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.") + 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.") + 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.", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["geldverstrekker", "productType", "hypotheekwaarde", "aanvraagdoel", "klantwaarde", "klantwaardeType", "isBestaandeWoning", "bagNummeraanduidingId", "isNhg", "isBestaandeNhgHypotheek", "benodigdeOverbrugging", "peildatum", "isErfpacht", "klantkenmerk"] + __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, @@ -65,7 +124,6 @@ class WaarderingInputParameters(BaseModel): 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)) @@ -91,9 +149,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -108,12 +168,12 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _dict["isErfpacht"] = None return _dict @@ -126,27 +186,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/waardering_ontwikkeling.py b/calcasa/api/models/waardering_ontwikkeling.py index bd0d24a..eb05385 100644 --- a/calcasa/api/models/waardering_ontwikkeling.py +++ b/calcasa/api/models/waardering_ontwikkeling.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -28,27 +28,84 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from calcasa.api.models.waardering_ontwikkeling_kwartaal import WaarderingOntwikkelingKwartaal +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[StrictStr] = 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") + """ # 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", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "objectPrijsOntwikkeling", "objectPrijsOntwikkelingPerVierkantemeter", "buurtPrijsOntwikkeling", "buurtPrijsOntwikkelingPerVierkantemeter", "wijkPrijsOntwikkeling", "wijkPrijsOntwikkelingPerVierkantemeter", "gemeentePrijsOntwikkeling", "gemeentePrijsOntwikkelingPerVierkantemeter"] + __properties: ClassVar[List[str]] = [ + "id", + "objectPrijsOntwikkeling", + "objectPrijsOntwikkelingPerVierkantemeter", + "buurtPrijsOntwikkeling", + "buurtPrijsOntwikkelingPerVierkantemeter", + "wijkPrijsOntwikkeling", + "wijkPrijsOntwikkelingPerVierkantemeter", + "gemeentePrijsOntwikkeling", + "gemeentePrijsOntwikkelingPerVierkantemeter", + ] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +113,6 @@ class WaarderingOntwikkeling(BaseModel): 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)) @@ -82,9 +138,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -97,56 +155,72 @@ def to_dict(self) -> Dict[str, Any]: 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 + _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: + 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 + _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 + _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: + 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 + _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 + _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: + 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 + _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 + _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: + 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 + _items.append( + _item_gemeente_prijs_ontwikkeling_per_vierkantemeter.to_dict() + ) + _dict["gemeentePrijsOntwikkelingPerVierkantemeter"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -163,22 +237,78 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 - }) + _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 + ), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py index f2fd084..e1fd30f 100644 --- a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -34,10 +34,12 @@ from typing import Optional, Set from typing_extensions import Self + class WaarderingOntwikkelingKwartaal(BaseModel): """ WaarderingOntwikkelingKwartaal - """ # noqa: E501 + """ # noqa: E501 + kwartaal: Optional[Kwartaal] = None waarde: Optional[StrictInt] = Field(default=None, description="In hele euros.") additional_properties: Dict[str, Any] = {} @@ -49,7 +51,6 @@ class WaarderingOntwikkelingKwartaal(BaseModel): 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)) @@ -75,9 +76,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -86,7 +89,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of kwartaal if self.kwartaal: - _dict['kwartaal'] = self.kwartaal.to_dict() + _dict["kwartaal"] = self.kwartaal.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -103,15 +106,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "kwartaal": ( + Kwartaal.from_dict(obj["kwartaal"]) + if obj.get("kwartaal") is not None + else None + ), + "waarde": obj.get("waarde"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/waardering_status.py b/calcasa/api/models/waardering_status.py index 6fee246..8502a0f 100644 --- a/calcasa/api/models/waardering_status.py +++ b/calcasa/api/models/waardering_status.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,19 +37,17 @@ class WaarderingStatus(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - INITIALISEREN = 'initialiseren' - OPEN = 'open' - VOLTOOID = 'voltooid' - OPGEWAARDEERD = 'opgewaardeerd' - ONGELDIG = 'ongeldig' - VERLOPEN = 'verlopen' - ERROR = 'error' - INBEHANDELING = 'inBehandeling' + 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 index 2eef5bc..e493c76 100644 --- a/calcasa/api/models/waardering_webhook_payload.py +++ b/calcasa/api/models/waardering_webhook_payload.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -31,24 +31,48 @@ 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 + """ # noqa: E501 + callback_name: StrictStr = Field(alias="callbackName") - event_id: StrictStr = Field(description="Uniek Id voor deze callback.", alias="eventId") + 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[StrictStr] = Field(default=None, description="Het Id van de waardering waarop deze callback betrekking heeft.", alias="waarderingId") + 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") + 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", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["callbackName", "eventId", "timestamp", "waarderingId", "oldStatus", "newStatus", "isTest", "externeReferentie"] + __properties: ClassVar[List[str]] = [ + "callbackName", + "eventId", + "timestamp", + "waarderingId", + "oldStatus", + "newStatus", + "isTest", + "externeReferentie", + ] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +80,6 @@ class WaarderingWebhookPayload(BaseModel): 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)) @@ -83,10 +106,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "callback_name", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "callback_name", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -100,8 +125,11 @@ def to_dict(self) -> Dict[str, Any]: # 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 + if ( + self.externe_referentie is None + and "externe_referentie" in self.model_fields_set + ): + _dict["externeReferentie"] = None return _dict @@ -114,21 +142,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/waardering_zoek_parameters.py b/calcasa/api/models/waardering_zoek_parameters.py index e0013bc..3770588 100644 --- a/calcasa/api/models/waardering_zoek_parameters.py +++ b/calcasa/api/models/waardering_zoek_parameters.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,18 +37,36 @@ 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.") + """ # 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") + waardering_status: Optional[WaarderingStatus] = Field( + default=None, alias="waarderingStatus" + ) + bag_nummeraanduiding_id: StrictInt = Field( + description="Verplicht.", alias="bagNummeraanduidingId" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["aangemaakt", "geldverstrekker", "productType", "aanvraagdoel", "waarderingStatus", "bagNummeraanduidingId"] + __properties: ClassVar[List[str]] = [ + "aangemaakt", + "geldverstrekker", + "productType", + "aanvraagdoel", + "waarderingStatus", + "bagNummeraanduidingId", + ] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +74,6 @@ class WaarderingZoekParameters(BaseModel): 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)) @@ -82,9 +99,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -99,22 +118,25 @@ def to_dict(self) -> Dict[str, Any]: # 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 + _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 + _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 + _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 + if ( + self.waardering_status is None + and "waardering_status" in self.model_fields_set + ): + _dict["waarderingStatus"] = None return _dict @@ -127,19 +149,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _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"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/webhook_payload.py b/calcasa/api/models/webhook_payload.py index 45dd3c2..abf9d7c 100644 --- a/calcasa/api/models/webhook_payload.py +++ b/calcasa/api/models/webhook_payload.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -31,15 +31,18 @@ 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 + """ # noqa: E501 + callback_name: StrictStr = Field(alias="callbackName") - event_id: StrictStr = Field(description="Uniek Id voor deze callback.", alias="eventId") + event_id: UUID = Field(description="Uniek Id voor deze callback.", alias="eventId") timestamp: datetime = Field(description="Het tijdstip van het event, in UTC.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callbackName", "eventId", "timestamp"] @@ -50,7 +53,6 @@ class WebhookPayload(BaseModel): 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)) @@ -77,10 +79,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "callback_name", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "callback_name", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -103,16 +107,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") - }) + _obj = cls.model_validate( + { + "callbackName": obj.get("callbackName"), + "eventId": obj.get("eventId"), + "timestamp": obj.get("timestamp"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/calcasa/api/models/woning_type.py b/calcasa/api/models/woning_type.py index 3ae50c0..6c66986 100644 --- a/calcasa/api/models/woning_type.py +++ b/calcasa/api/models/woning_type.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from __future__ import annotations @@ -37,20 +37,18 @@ class WoningType(str, Enum): """ allowed enum values """ - ONBEKEND = 'onbekend' - VRIJSTAAND = 'vrijstaand' - HALFVRIJSTAAND = 'halfVrijstaand' - HOEKWONING = 'hoekwoning' - TUSSENWONING = 'tussenwoning' - GALERIJFLAT = 'galerijflat' - PORTIEKFLAT = 'portiekflat' - MAISONNETTE = 'maisonnette' - BOVENWONING = 'bovenwoning' - BENEDENWONING = 'benedenwoning' + 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/rest.py b/calcasa/api/rest.py index 41af7e2..75d2bb7 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ import io @@ -90,22 +90,19 @@ def __init__(self, configuration) -> None: "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: - pool_args['assert_hostname'] = ( - configuration.assert_hostname - ) + pool_args["assert_hostname"] = configuration.assert_hostname if configuration.retries is not None: - pool_args['retries'] = configuration.retries + pool_args["retries"] = configuration.retries if configuration.tls_server_name: - pool_args['server_hostname'] = 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 + pool_args["socket_options"] = configuration.socket_options if configuration.connection_pool_maxsize is not None: - pool_args['maxsize'] = configuration.connection_pool_maxsize + pool_args["maxsize"] = configuration.connection_pool_maxsize # https pool manager self.pool_manager: urllib3.PoolManager @@ -113,6 +110,7 @@ def __init__(self, configuration) -> None: 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) @@ -130,7 +128,7 @@ def request( headers=None, body=None, post_params=None, - _request_timeout=None + _request_timeout=None, ): """Perform requests. @@ -147,15 +145,7 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in [ - 'GET', - 'HEAD', - 'DELETE', - 'POST', - 'PUT', - 'PATCH', - 'OPTIONS' - ] + assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] if post_params and body: raise ApiValueError( @@ -169,25 +159,18 @@ def request( 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 - ): + elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: timeout = urllib3.Timeout( - connect=_request_timeout[0], - read=_request_timeout[1] + connect=_request_timeout[0], read=_request_timeout[1] ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['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) - ): + 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) @@ -197,9 +180,9 @@ def request( body=request_body, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) - elif content_type == 'application/x-www-form-urlencoded': + elif content_type == "application/x-www-form-urlencoded": r = self.pool_manager.request( method, url, @@ -207,15 +190,18 @@ def request( encode_multipart=False, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) - elif content_type == 'multipart/form-data': + 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'] + 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] + 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, @@ -223,7 +209,7 @@ def request( encode_multipart=True, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) # Pass a `string` parameter directly in the body to support # other content types than JSON when `body` argument is @@ -235,9 +221,11 @@ def request( body=body, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) - elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): + elif headers["Content-Type"].startswith("text/") and isinstance( + body, bool + ): request_body = "true" if body else "false" r = self.pool_manager.request( method, @@ -245,7 +233,8 @@ def request( body=request_body, preload_content=False, timeout=timeout, - headers=headers) + headers=headers, + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -260,7 +249,7 @@ def request( fields={}, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) except urllib3.exceptions.SSLError as e: msg = "\n".join([type(e).__name__, str(e)]) diff --git a/pyproject.toml b/pyproject.toml index fd056b6..859fb05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,29 @@ -[tool.poetry] +[project] name = "calcasa.api" -version = "1.4.0-rc1" +version = "1.4.0-rc2" description = "Calcasa Public API" -authors = ["Calcasa B.V. "] -license = "Apache License 2.0" +authors = [ + {name = "Calcasa B.V.",email = "info@calcasa.nl"}, +] +license = { text = "Apache License 2.0" } readme = "README.md" -repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" keywords = ["OpenAPI", "OpenAPI-Generator", "Calcasa Public API"] -include = ["calcasa.api/py.typed"] +requires-python = ">=3.9" -[tool.poetry.dependencies] -python = "^3.9" +dependencies = [ + "urllib3 (>=2.1.0,<3.0.0)", + "python-dateutil (>=2.8.2)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)", +] -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.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/setup.py b/setup.py index 0c927b5..cd880ea 100644 --- a/setup.py +++ b/setup.py @@ -1,30 +1,30 @@ """ - Copyright 2025 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 - 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). +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: 1.4.0-rc1 - Contact: info@calcasa.nl - Generated by: https://openapi-generator.tech +The version of the OpenAPI document: 1.4.0-rc2 +Contact: info@calcasa.nl +Generated by: https://openapi-generator.tech """ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa.api" -VERSION = "1.4.0-rc1" +VERSION = "1.4.0-rc2" # To install the library, run the following # # python setup.py install @@ -33,12 +33,13 @@ # 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() @@ -50,12 +51,15 @@ author_email="info@calcasa.nl", url="https://github.com/calcasa/api-python", keywords=["OpenAPI", "OpenAPI-Generator", "Calcasa Public API"], - classifiers=["Programming Language :: Python :: 3 :: Only", "License :: OSI Approved :: Apache Software License"], + 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", ) From 0b2e6ad4657b3b7ee748292a2d614dcb2c5d5b50 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 28 Oct 2025 09:28:05 +0100 Subject: [PATCH 18/20] Release 1.4.0-rc3 (2025-10-28) - Add `taxateurorganisatieWeergave` to `Taxatiedata` model. --- README.md | 4 ++-- calcasa/api/__init__.py | 4 ++-- calcasa/api/api/adressen_api.py | 2 +- calcasa/api/api/bestemmingsplannen_api.py | 2 +- calcasa/api/api/bodem_api.py | 2 +- calcasa/api/api/buurt_api.py | 2 +- calcasa/api/api/callbacks_api.py | 2 +- calcasa/api/api/configuratie_api.py | 2 +- calcasa/api/api/facturen_api.py | 2 +- calcasa/api/api/fotos_api.py | 2 +- calcasa/api/api/funderingen_api.py | 2 +- calcasa/api/api/geldverstrekkers_api.py | 2 +- calcasa/api/api/rapporten_api.py | 2 +- calcasa/api/api/waarderingen_api.py | 2 +- calcasa/api/api_client.py | 4 ++-- calcasa/api/configuration.py | 6 +++--- calcasa/api/exceptions.py | 2 +- calcasa/api/models/__init__.py | 2 +- calcasa/api/models/aanvraagdoel.py | 2 +- calcasa/api/models/adres.py | 2 +- calcasa/api/models/adres_info.py | 2 +- calcasa/api/models/bestemmingsdata.py | 2 +- calcasa/api/models/bodem_status_type.py | 2 +- calcasa/api/models/bodemdata.py | 2 +- calcasa/api/models/business_rules_code.py | 2 +- calcasa/api/models/business_rules_problem_details.py | 2 +- calcasa/api/models/callback.py | 2 +- calcasa/api/models/callback_inschrijving.py | 2 +- calcasa/api/models/cbs_indeling.py | 2 +- .../api/models/deel_waardering_webhook_payload.py | 2 +- calcasa/api/models/energielabel.py | 2 +- calcasa/api/models/energielabel_data.py | 2 +- calcasa/api/models/factuur.py | 2 +- calcasa/api/models/foto.py | 2 +- calcasa/api/models/fundering_data_bron.py | 2 +- calcasa/api/models/fundering_herstel_type.py | 2 +- calcasa/api/models/fundering_risico.py | 2 +- calcasa/api/models/fundering_risico_label.py | 2 +- calcasa/api/models/fundering_soort_bron.py | 2 +- calcasa/api/models/fundering_type.py | 2 +- calcasa/api/models/fundering_typering.py | 2 +- calcasa/api/models/funderingdata.py | 2 +- calcasa/api/models/gebiedsdata.py | 2 +- calcasa/api/models/geldverstrekker.py | 2 +- .../api/models/invalid_argument_problem_details.py | 2 +- calcasa/api/models/klantwaarde_type.py | 2 +- calcasa/api/models/kwartaal.py | 2 +- calcasa/api/models/modeldata.py | 2 +- calcasa/api/models/not_found_problem_details.py | 2 +- calcasa/api/models/notitie.py | 2 +- calcasa/api/models/notities.py | 2 +- calcasa/api/models/objectdata.py | 2 +- calcasa/api/models/omgevingsdata.py | 2 +- calcasa/api/models/operation.py | 2 +- calcasa/api/models/operation_type.py | 2 +- .../api/models/permissions_denied_problem_details.py | 2 +- calcasa/api/models/problem_details.py | 2 +- calcasa/api/models/product_type.py | 2 +- calcasa/api/models/rapport.py | 2 +- calcasa/api/models/referentieobject.py | 2 +- .../api/models/resource_exhausted_problem_details.py | 2 +- calcasa/api/models/taxatiedata.py | 12 ++++++++++-- calcasa/api/models/taxatiestatus.py | 2 +- calcasa/api/models/unauthorized_problem_details.py | 2 +- calcasa/api/models/validation_problem_details.py | 2 +- calcasa/api/models/verkoop_bijzonderheden.py | 2 +- calcasa/api/models/version_names.py | 2 +- calcasa/api/models/vorige_verkoop.py | 2 +- calcasa/api/models/waardering.py | 2 +- calcasa/api/models/waardering_input_parameters.py | 2 +- calcasa/api/models/waardering_ontwikkeling.py | 2 +- .../api/models/waardering_ontwikkeling_kwartaal.py | 2 +- calcasa/api/models/waardering_status.py | 2 +- calcasa/api/models/waardering_webhook_payload.py | 2 +- calcasa/api/models/waardering_zoek_parameters.py | 2 +- calcasa/api/models/webhook_payload.py | 2 +- calcasa/api/models/woning_type.py | 2 +- calcasa/api/rest.py | 2 +- pyproject.toml | 2 +- setup.py | 4 ++-- 80 files changed, 95 insertions(+), 87 deletions(-) diff --git a/README.md b/README.md index c643a8d..e219429 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ For more information, please visit [Documentation](https://docs.calcasa.nl) or [ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.4.0-rc2 -- Package version: 1.4.0-rc2 +- API version: 1.4.0-rc3 +- Package version: 1.4.0-rc3 - 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) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index 20ebb4f..ba1e1d8 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -20,12 +20,12 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.4.0-rc2" +__version__ = "1.4.0-rc3" # Define package exports __all__ = [ diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index ef680a2..171bd1c 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index 1c6f287..34c04a7 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index f7ee017..5430476 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 2516b17..157d031 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index 323e0d9..486061d 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index 65d2438..6e07ad4 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 110c340..8f8b784 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index 7361f63..5a4b8f1 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 04a7158..32d0d71 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index cd5db2d..3433fcb 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index f7994e0..d2e44d4 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index e3f6d87..dd9f873 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 8b1462c..fbf1658 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -99,7 +99,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "Calcasa Python Api Client/1.4.0-rc2" + self.user_agent = "Calcasa Python Api Client/1.4.0-rc3" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index bc9b6d1..b231060 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -531,8 +531,8 @@ def to_debug_report(self) -> str: "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 1.4.0-rc2\n" - "SDK Package Version: 1.4.0-rc2".format( + "Version of the API: 1.4.0-rc3\n" + "SDK Package Version: 1.4.0-rc3".format( env=sys.platform, pyversion=sys.version ) ) diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index be3aed2..b5d6e44 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py index d06a8c6..021f771 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -19,7 +19,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/aanvraagdoel.py b/calcasa/api/models/aanvraagdoel.py index 8387560..fd21bf4 100644 --- a/calcasa/api/models/aanvraagdoel.py +++ b/calcasa/api/models/aanvraagdoel.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/adres.py b/calcasa/api/models/adres.py index c5706f7..2606ae5 100644 --- a/calcasa/api/models/adres.py +++ b/calcasa/api/models/adres.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/adres_info.py b/calcasa/api/models/adres_info.py index 58411b8..1d5da75 100644 --- a/calcasa/api/models/adres_info.py +++ b/calcasa/api/models/adres_info.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/bestemmingsdata.py b/calcasa/api/models/bestemmingsdata.py index bc06134..099c4a7 100644 --- a/calcasa/api/models/bestemmingsdata.py +++ b/calcasa/api/models/bestemmingsdata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/bodem_status_type.py b/calcasa/api/models/bodem_status_type.py index 1c8e4bb..667a3ab 100644 --- a/calcasa/api/models/bodem_status_type.py +++ b/calcasa/api/models/bodem_status_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/bodemdata.py b/calcasa/api/models/bodemdata.py index 55cb7e5..94a7b17 100644 --- a/calcasa/api/models/bodemdata.py +++ b/calcasa/api/models/bodemdata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/business_rules_code.py b/calcasa/api/models/business_rules_code.py index 554e400..311724b 100644 --- a/calcasa/api/models/business_rules_code.py +++ b/calcasa/api/models/business_rules_code.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/business_rules_problem_details.py b/calcasa/api/models/business_rules_problem_details.py index 5678225..8ba19e5 100644 --- a/calcasa/api/models/business_rules_problem_details.py +++ b/calcasa/api/models/business_rules_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/callback.py b/calcasa/api/models/callback.py index 9402790..57efab6 100644 --- a/calcasa/api/models/callback.py +++ b/calcasa/api/models/callback.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/callback_inschrijving.py b/calcasa/api/models/callback_inschrijving.py index b517055..ded68ae 100644 --- a/calcasa/api/models/callback_inschrijving.py +++ b/calcasa/api/models/callback_inschrijving.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/cbs_indeling.py b/calcasa/api/models/cbs_indeling.py index 4b8ec85..ac3d754 100644 --- a/calcasa/api/models/cbs_indeling.py +++ b/calcasa/api/models/cbs_indeling.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/deel_waardering_webhook_payload.py b/calcasa/api/models/deel_waardering_webhook_payload.py index 0d91839..579f6e8 100644 --- a/calcasa/api/models/deel_waardering_webhook_payload.py +++ b/calcasa/api/models/deel_waardering_webhook_payload.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/energielabel.py b/calcasa/api/models/energielabel.py index c27a523..4beb874 100644 --- a/calcasa/api/models/energielabel.py +++ b/calcasa/api/models/energielabel.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/energielabel_data.py b/calcasa/api/models/energielabel_data.py index 10e327b..5df9f3c 100644 --- a/calcasa/api/models/energielabel_data.py +++ b/calcasa/api/models/energielabel_data.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/factuur.py b/calcasa/api/models/factuur.py index d8f0649..979831f 100644 --- a/calcasa/api/models/factuur.py +++ b/calcasa/api/models/factuur.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/foto.py b/calcasa/api/models/foto.py index d981ae4..2636240 100644 --- a/calcasa/api/models/foto.py +++ b/calcasa/api/models/foto.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_data_bron.py b/calcasa/api/models/fundering_data_bron.py index e0e40cc..d75f782 100644 --- a/calcasa/api/models/fundering_data_bron.py +++ b/calcasa/api/models/fundering_data_bron.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_herstel_type.py b/calcasa/api/models/fundering_herstel_type.py index 886216c..2f65c2f 100644 --- a/calcasa/api/models/fundering_herstel_type.py +++ b/calcasa/api/models/fundering_herstel_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_risico.py b/calcasa/api/models/fundering_risico.py index df326fa..6cd9c4f 100644 --- a/calcasa/api/models/fundering_risico.py +++ b/calcasa/api/models/fundering_risico.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_risico_label.py b/calcasa/api/models/fundering_risico_label.py index 1fd1abf..3aab36b 100644 --- a/calcasa/api/models/fundering_risico_label.py +++ b/calcasa/api/models/fundering_risico_label.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_soort_bron.py b/calcasa/api/models/fundering_soort_bron.py index 1f1110a..6b6e17b 100644 --- a/calcasa/api/models/fundering_soort_bron.py +++ b/calcasa/api/models/fundering_soort_bron.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_type.py b/calcasa/api/models/fundering_type.py index 5ec1ad6..51e2c5b 100644 --- a/calcasa/api/models/fundering_type.py +++ b/calcasa/api/models/fundering_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_typering.py b/calcasa/api/models/fundering_typering.py index 9e506bb..201059c 100644 --- a/calcasa/api/models/fundering_typering.py +++ b/calcasa/api/models/fundering_typering.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/funderingdata.py b/calcasa/api/models/funderingdata.py index 55599a4..5800a7e 100644 --- a/calcasa/api/models/funderingdata.py +++ b/calcasa/api/models/funderingdata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/gebiedsdata.py b/calcasa/api/models/gebiedsdata.py index b352c30..a5c41eb 100644 --- a/calcasa/api/models/gebiedsdata.py +++ b/calcasa/api/models/gebiedsdata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/geldverstrekker.py b/calcasa/api/models/geldverstrekker.py index df1dc4e..e334f30 100644 --- a/calcasa/api/models/geldverstrekker.py +++ b/calcasa/api/models/geldverstrekker.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/invalid_argument_problem_details.py b/calcasa/api/models/invalid_argument_problem_details.py index 26e3e6d..a9fdeaa 100644 --- a/calcasa/api/models/invalid_argument_problem_details.py +++ b/calcasa/api/models/invalid_argument_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/klantwaarde_type.py b/calcasa/api/models/klantwaarde_type.py index 1f0c0c3..c9e273c 100644 --- a/calcasa/api/models/klantwaarde_type.py +++ b/calcasa/api/models/klantwaarde_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/kwartaal.py b/calcasa/api/models/kwartaal.py index e3ad451..d57e5ad 100644 --- a/calcasa/api/models/kwartaal.py +++ b/calcasa/api/models/kwartaal.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/modeldata.py b/calcasa/api/models/modeldata.py index 6484018..659960c 100644 --- a/calcasa/api/models/modeldata.py +++ b/calcasa/api/models/modeldata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/not_found_problem_details.py b/calcasa/api/models/not_found_problem_details.py index e89fe31..9ff042a 100644 --- a/calcasa/api/models/not_found_problem_details.py +++ b/calcasa/api/models/not_found_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/notitie.py b/calcasa/api/models/notitie.py index 54489fc..c921986 100644 --- a/calcasa/api/models/notitie.py +++ b/calcasa/api/models/notitie.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/notities.py b/calcasa/api/models/notities.py index 08db8a0..9621683 100644 --- a/calcasa/api/models/notities.py +++ b/calcasa/api/models/notities.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/objectdata.py b/calcasa/api/models/objectdata.py index 7c215fe..4c3912c 100644 --- a/calcasa/api/models/objectdata.py +++ b/calcasa/api/models/objectdata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/omgevingsdata.py b/calcasa/api/models/omgevingsdata.py index 4fba1a3..93b68fb 100644 --- a/calcasa/api/models/omgevingsdata.py +++ b/calcasa/api/models/omgevingsdata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/operation.py b/calcasa/api/models/operation.py index 8e2a55f..aeba5a9 100644 --- a/calcasa/api/models/operation.py +++ b/calcasa/api/models/operation.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/operation_type.py b/calcasa/api/models/operation_type.py index d13d30c..a4f8649 100644 --- a/calcasa/api/models/operation_type.py +++ b/calcasa/api/models/operation_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/permissions_denied_problem_details.py b/calcasa/api/models/permissions_denied_problem_details.py index b7cdbbd..98d52e9 100644 --- a/calcasa/api/models/permissions_denied_problem_details.py +++ b/calcasa/api/models/permissions_denied_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/problem_details.py b/calcasa/api/models/problem_details.py index f5f5f62..55bb8cd 100644 --- a/calcasa/api/models/problem_details.py +++ b/calcasa/api/models/problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/product_type.py b/calcasa/api/models/product_type.py index 3ece0a5..cca7873 100644 --- a/calcasa/api/models/product_type.py +++ b/calcasa/api/models/product_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/rapport.py b/calcasa/api/models/rapport.py index 751bd20..f02d435 100644 --- a/calcasa/api/models/rapport.py +++ b/calcasa/api/models/rapport.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/referentieobject.py b/calcasa/api/models/referentieobject.py index 04210a9..282c195 100644 --- a/calcasa/api/models/referentieobject.py +++ b/calcasa/api/models/referentieobject.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/resource_exhausted_problem_details.py b/calcasa/api/models/resource_exhausted_problem_details.py index 83ec7cd..9da7b9c 100644 --- a/calcasa/api/models/resource_exhausted_problem_details.py +++ b/calcasa/api/models/resource_exhausted_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/taxatiedata.py b/calcasa/api/models/taxatiedata.py index dce8033..ce68285 100644 --- a/calcasa/api/models/taxatiedata.py +++ b/calcasa/api/models/taxatiedata.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,7 +42,13 @@ class Taxatiedata(BaseModel): """ # noqa: E501 taxatieorganisatie: Optional[StrictStr] = Field( - default=None, description="De naam van de taxatieorganisatie." + 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, @@ -56,6 +62,7 @@ class Taxatiedata(BaseModel): additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "taxatieorganisatie", + "taxatieorganisatieWeergave", "taxateurnaam", "status", "taxatiedatum", @@ -122,6 +129,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "taxatieorganisatie": obj.get("taxatieorganisatie"), + "taxatieorganisatieWeergave": obj.get("taxatieorganisatieWeergave"), "taxateurnaam": obj.get("taxateurnaam"), "status": obj.get("status"), "taxatiedatum": obj.get("taxatiedatum"), diff --git a/calcasa/api/models/taxatiestatus.py b/calcasa/api/models/taxatiestatus.py index 3531820..dcc22b4 100644 --- a/calcasa/api/models/taxatiestatus.py +++ b/calcasa/api/models/taxatiestatus.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/unauthorized_problem_details.py b/calcasa/api/models/unauthorized_problem_details.py index 241acee..8671427 100644 --- a/calcasa/api/models/unauthorized_problem_details.py +++ b/calcasa/api/models/unauthorized_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/validation_problem_details.py b/calcasa/api/models/validation_problem_details.py index a309359..f8a902a 100644 --- a/calcasa/api/models/validation_problem_details.py +++ b/calcasa/api/models/validation_problem_details.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/verkoop_bijzonderheden.py b/calcasa/api/models/verkoop_bijzonderheden.py index 2db0401..362b8a8 100644 --- a/calcasa/api/models/verkoop_bijzonderheden.py +++ b/calcasa/api/models/verkoop_bijzonderheden.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/version_names.py b/calcasa/api/models/version_names.py index 1eeedaf..a3c0de2 100644 --- a/calcasa/api/models/version_names.py +++ b/calcasa/api/models/version_names.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/vorige_verkoop.py b/calcasa/api/models/vorige_verkoop.py index 9e8b851..5f6df0f 100644 --- a/calcasa/api/models/vorige_verkoop.py +++ b/calcasa/api/models/vorige_verkoop.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering.py b/calcasa/api/models/waardering.py index 5fcdfe6..80beba2 100644 --- a/calcasa/api/models/waardering.py +++ b/calcasa/api/models/waardering.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_input_parameters.py b/calcasa/api/models/waardering_input_parameters.py index 69eb745..36effb2 100644 --- a/calcasa/api/models/waardering_input_parameters.py +++ b/calcasa/api/models/waardering_input_parameters.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_ontwikkeling.py b/calcasa/api/models/waardering_ontwikkeling.py index eb05385..7b5ac34 100644 --- a/calcasa/api/models/waardering_ontwikkeling.py +++ b/calcasa/api/models/waardering_ontwikkeling.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py index e1fd30f..d824fbf 100644 --- a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_status.py b/calcasa/api/models/waardering_status.py index 8502a0f..9a36389 100644 --- a/calcasa/api/models/waardering_status.py +++ b/calcasa/api/models/waardering_status.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_webhook_payload.py b/calcasa/api/models/waardering_webhook_payload.py index e493c76..a4ea563 100644 --- a/calcasa/api/models/waardering_webhook_payload.py +++ b/calcasa/api/models/waardering_webhook_payload.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_zoek_parameters.py b/calcasa/api/models/waardering_zoek_parameters.py index 3770588..198bc26 100644 --- a/calcasa/api/models/waardering_zoek_parameters.py +++ b/calcasa/api/models/waardering_zoek_parameters.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/webhook_payload.py b/calcasa/api/models/webhook_payload.py index abf9d7c..09b5ca6 100644 --- a/calcasa/api/models/webhook_payload.py +++ b/calcasa/api/models/webhook_payload.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/woning_type.py b/calcasa/api/models/woning_type.py index 6c66986..807c328 100644 --- a/calcasa/api/models/woning_type.py +++ b/calcasa/api/models/woning_type.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index 75d2bb7..35acb39 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -18,7 +18,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/pyproject.toml b/pyproject.toml index 859fb05..0ac39e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "calcasa.api" -version = "1.4.0-rc2" +version = "1.4.0-rc3" description = "Calcasa Public API" authors = [ {name = "Calcasa B.V.",email = "info@calcasa.nl"}, diff --git a/setup.py b/setup.py index cd880ea..51ba8fe 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 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: 1.4.0-rc2 +The version of the OpenAPI document: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -24,7 +24,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa.api" -VERSION = "1.4.0-rc2" +VERSION = "1.4.0-rc3" # To install the library, run the following # # python setup.py install From 2f5c4fd8c2028f8d94f9b5ca9a9b9a8629a20a2a Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Wed, 12 Nov 2025 14:16:30 +0100 Subject: [PATCH 19/20] Release 1.4.0-rc4 (2025-11-12) - Disabled `seal-object-schemas` TypeSpec emitter option. - Added `geenEigenBewoning` and `incorrecteErfpacht` values to `BusinessRulesCode`. --- README.md | 4 ++-- calcasa/api/__init__.py | 3 +-- calcasa/api/api/adressen_api.py | 1 - calcasa/api/api/bestemmingsplannen_api.py | 1 - calcasa/api/api/bodem_api.py | 1 - calcasa/api/api/buurt_api.py | 1 - calcasa/api/api/callbacks_api.py | 1 - calcasa/api/api/configuratie_api.py | 1 - calcasa/api/api/facturen_api.py | 1 - calcasa/api/api/fotos_api.py | 1 - calcasa/api/api/funderingen_api.py | 1 - calcasa/api/api/geldverstrekkers_api.py | 1 - calcasa/api/api/rapporten_api.py | 1 - calcasa/api/api/waarderingen_api.py | 1 - calcasa/api/api_client.py | 3 +-- calcasa/api/configuration.py | 5 ++--- calcasa/api/exceptions.py | 1 - calcasa/api/models/__init__.py | 1 - calcasa/api/models/aanvraagdoel.py | 1 - calcasa/api/models/adres.py | 19 +------------------ calcasa/api/models/adres_info.py | 19 +------------------ calcasa/api/models/bestemmingsdata.py | 19 +------------------ calcasa/api/models/bodem_status_type.py | 1 - calcasa/api/models/bodemdata.py | 19 +------------------ calcasa/api/models/business_rules_code.py | 5 +++-- .../models/business_rules_problem_details.py | 19 +------------------ calcasa/api/models/callback.py | 19 +------------------ calcasa/api/models/callback_inschrijving.py | 19 +------------------ calcasa/api/models/cbs_indeling.py | 19 +------------------ .../models/deel_waardering_webhook_payload.py | 14 -------------- calcasa/api/models/energielabel.py | 1 - calcasa/api/models/energielabel_data.py | 19 +------------------ calcasa/api/models/factuur.py | 19 +------------------ calcasa/api/models/foto.py | 19 +------------------ calcasa/api/models/fundering_data_bron.py | 1 - calcasa/api/models/fundering_herstel_type.py | 1 - calcasa/api/models/fundering_risico.py | 19 +------------------ calcasa/api/models/fundering_risico_label.py | 1 - calcasa/api/models/fundering_soort_bron.py | 1 - calcasa/api/models/fundering_type.py | 1 - calcasa/api/models/fundering_typering.py | 19 +------------------ calcasa/api/models/funderingdata.py | 19 +------------------ calcasa/api/models/gebiedsdata.py | 19 +------------------ calcasa/api/models/geldverstrekker.py | 19 +------------------ .../invalid_argument_problem_details.py | 19 +------------------ calcasa/api/models/klantwaarde_type.py | 1 - calcasa/api/models/kwartaal.py | 19 +------------------ calcasa/api/models/modeldata.py | 19 +------------------ .../api/models/not_found_problem_details.py | 19 +------------------ calcasa/api/models/notitie.py | 1 - calcasa/api/models/notities.py | 19 +------------------ calcasa/api/models/objectdata.py | 19 +------------------ calcasa/api/models/omgevingsdata.py | 19 +------------------ calcasa/api/models/operation.py | 19 +------------------ calcasa/api/models/operation_type.py | 1 - .../permissions_denied_problem_details.py | 19 +------------------ calcasa/api/models/problem_details.py | 19 +------------------ calcasa/api/models/product_type.py | 1 - calcasa/api/models/rapport.py | 19 +------------------ calcasa/api/models/referentieobject.py | 19 +------------------ .../resource_exhausted_problem_details.py | 19 +------------------ calcasa/api/models/taxatiedata.py | 19 +------------------ calcasa/api/models/taxatiestatus.py | 1 - .../models/unauthorized_problem_details.py | 19 +------------------ .../api/models/validation_problem_details.py | 19 +------------------ calcasa/api/models/verkoop_bijzonderheden.py | 1 - calcasa/api/models/version_names.py | 1 - calcasa/api/models/vorige_verkoop.py | 19 +------------------ calcasa/api/models/waardering.py | 19 +------------------ .../api/models/waardering_input_parameters.py | 19 +------------------ calcasa/api/models/waardering_ontwikkeling.py | 19 +------------------ .../waardering_ontwikkeling_kwartaal.py | 19 +------------------ calcasa/api/models/waardering_status.py | 1 - .../api/models/waardering_webhook_payload.py | 14 -------------- .../api/models/waardering_zoek_parameters.py | 19 +------------------ calcasa/api/models/webhook_payload.py | 14 -------------- calcasa/api/models/woning_type.py | 1 - calcasa/api/rest.py | 1 - pyproject.toml | 2 +- setup.py | 3 +-- 80 files changed, 49 insertions(+), 772 deletions(-) diff --git a/README.md b/README.md index e219429..80f5961 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ For more information, please visit [Documentation](https://docs.calcasa.nl) or [ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.4.0-rc3 -- Package version: 1.4.0-rc3 +- API version: 1.4.0-rc4 +- Package version: 1.4.0-rc4 - 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) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index ba1e1d8..c68acc1 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -20,12 +20,11 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ -__version__ = "1.4.0-rc3" +__version__ = "1.4.0-rc4" # Define package exports __all__ = [ diff --git a/calcasa/api/api/adressen_api.py b/calcasa/api/api/adressen_api.py index 171bd1c..b130242 100644 --- a/calcasa/api/api/adressen_api.py +++ b/calcasa/api/api/adressen_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bestemmingsplannen_api.py b/calcasa/api/api/bestemmingsplannen_api.py index 34c04a7..9a516c4 100644 --- a/calcasa/api/api/bestemmingsplannen_api.py +++ b/calcasa/api/api/bestemmingsplannen_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/bodem_api.py b/calcasa/api/api/bodem_api.py index 5430476..013c3b8 100644 --- a/calcasa/api/api/bodem_api.py +++ b/calcasa/api/api/bodem_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/buurt_api.py b/calcasa/api/api/buurt_api.py index 157d031..5a3f746 100644 --- a/calcasa/api/api/buurt_api.py +++ b/calcasa/api/api/buurt_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/callbacks_api.py b/calcasa/api/api/callbacks_api.py index 486061d..277d02b 100644 --- a/calcasa/api/api/callbacks_api.py +++ b/calcasa/api/api/callbacks_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/configuratie_api.py b/calcasa/api/api/configuratie_api.py index 6e07ad4..9a16112 100644 --- a/calcasa/api/api/configuratie_api.py +++ b/calcasa/api/api/configuratie_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/facturen_api.py b/calcasa/api/api/facturen_api.py index 8f8b784..63b159b 100644 --- a/calcasa/api/api/facturen_api.py +++ b/calcasa/api/api/facturen_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/fotos_api.py b/calcasa/api/api/fotos_api.py index 5a4b8f1..fc44627 100644 --- a/calcasa/api/api/fotos_api.py +++ b/calcasa/api/api/fotos_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/funderingen_api.py b/calcasa/api/api/funderingen_api.py index 32d0d71..c92fdf8 100644 --- a/calcasa/api/api/funderingen_api.py +++ b/calcasa/api/api/funderingen_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/geldverstrekkers_api.py b/calcasa/api/api/geldverstrekkers_api.py index 3433fcb..c424816 100644 --- a/calcasa/api/api/geldverstrekkers_api.py +++ b/calcasa/api/api/geldverstrekkers_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/rapporten_api.py b/calcasa/api/api/rapporten_api.py index d2e44d4..39e247a 100644 --- a/calcasa/api/api/rapporten_api.py +++ b/calcasa/api/api/rapporten_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api/waarderingen_api.py b/calcasa/api/api/waarderingen_api.py index dd9f873..f5d05bb 100644 --- a/calcasa/api/api/waarderingen_api.py +++ b/calcasa/api/api/waarderingen_api.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index fbf1658..1fb14f3 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -99,7 +98,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "Calcasa Python Api Client/1.4.0-rc3" + self.user_agent = "Calcasa Python Api Client/1.4.0-rc4" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index b231060..9963dbd 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -531,8 +530,8 @@ def to_debug_report(self) -> str: "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 1.4.0-rc3\n" - "SDK Package Version: 1.4.0-rc3".format( + "Version of the API: 1.4.0-rc4\n" + "SDK Package Version: 1.4.0-rc4".format( env=sys.platform, pyversion=sys.version ) ) diff --git a/calcasa/api/exceptions.py b/calcasa/api/exceptions.py index b5d6e44..c6ed4db 100644 --- a/calcasa/api/exceptions.py +++ b/calcasa/api/exceptions.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/__init__.py b/calcasa/api/models/__init__.py index 021f771..b67025e 100644 --- a/calcasa/api/models/__init__.py +++ b/calcasa/api/models/__init__.py @@ -19,7 +19,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/aanvraagdoel.py b/calcasa/api/models/aanvraagdoel.py index fd21bf4..36354c2 100644 --- a/calcasa/api/models/aanvraagdoel.py +++ b/calcasa/api/models/aanvraagdoel.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/adres.py b/calcasa/api/models/adres.py index 2606ae5..bf45704 100644 --- a/calcasa/api/models/adres.py +++ b/calcasa/api/models/adres.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -56,7 +55,6 @@ class Adres(BaseModel): default=None, description="De woonplaats zoals geschreven in de BAG (Basisregistratie Adressen en Gebouwen).", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "straat", "huisnummer", @@ -106,24 +104,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if huisnummertoevoeging (nullable) is None # and model_fields_set contains the field if ( @@ -152,9 +140,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "woonplaats": obj.get("woonplaats"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/adres_info.py b/calcasa/api/models/adres_info.py index 1d5da75..a928fa4 100644 --- a/calcasa/api/models/adres_info.py +++ b/calcasa/api/models/adres_info.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -52,7 +51,6 @@ class AdresInfo(BaseModel): description="Geeft aan of er een correct adres is gevonden voor deze zoekopdracht.", alias="adresGevonden", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "bagNummeraanduidingId", "adres", @@ -89,13 +87,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -108,11 +101,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of notities if self.notities: _dict["notities"] = self.notities.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -145,9 +133,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "adresGevonden": obj.get("adresGevonden"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/bestemmingsdata.py b/calcasa/api/models/bestemmingsdata.py index 099c4a7..a16c8e6 100644 --- a/calcasa/api/models/bestemmingsdata.py +++ b/calcasa/api/models/bestemmingsdata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -48,7 +47,6 @@ class Bestemmingsdata(BaseModel): description="De datum waarop dit bestemmingsplan vastgelegd is.", alias="datumBestemmingplan", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["enkelbestemming", "datumBestemmingplan"] model_config = ConfigDict( @@ -80,24 +78,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -128,9 +116,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "datumBestemmingplan": obj.get("datumBestemmingplan"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/bodem_status_type.py b/calcasa/api/models/bodem_status_type.py index 667a3ab..85e133a 100644 --- a/calcasa/api/models/bodem_status_type.py +++ b/calcasa/api/models/bodem_status_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/bodemdata.py b/calcasa/api/models/bodemdata.py index 94a7b17..52406c9 100644 --- a/calcasa/api/models/bodemdata.py +++ b/calcasa/api/models/bodemdata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -50,7 +49,6 @@ class Bodemdata(BaseModel): url: Optional[StrictStr] = Field( default=None, description="De url met informatie over het bodemonderzoek." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status", "datumLaatsteOnderzoek", "url"] model_config = ConfigDict( @@ -82,24 +80,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if datum_laatste_onderzoek (nullable) is None # and model_fields_set contains the field if ( @@ -131,9 +119,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "url": obj.get("url"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/business_rules_code.py b/calcasa/api/models/business_rules_code.py index 311724b..67f6695 100644 --- a/calcasa/api/models/business_rules_code.py +++ b/calcasa/api/models/business_rules_code.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -31,7 +30,7 @@ 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. | + 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. | """ """ @@ -48,6 +47,8 @@ class BusinessRulesCode(str, Enum): CALCASAWAARDETEHOOGVOORNHG = "calcasaWaardeTeHoogVoorNhg" CALCASAWAARDEENKOOPSOMTEHOOGVOORNHG = "calcasaWaardeEnKoopsomTeHoogVoorNhg" LTVTEHOOGOVERBRUGGING = "ltvTeHoogOverbrugging" + GEENEIGENBEWONING = "geenEigenBewoning" + INCORRECTEERFPACHT = "incorrecteErfpacht" @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/calcasa/api/models/business_rules_problem_details.py b/calcasa/api/models/business_rules_problem_details.py index 8ba19e5..9b624b8 100644 --- a/calcasa/api/models/business_rules_problem_details.py +++ b/calcasa/api/models/business_rules_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -62,7 +61,6 @@ class BusinessRulesProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "businessRulesCode", "type", @@ -101,24 +99,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -165,9 +153,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/callback.py b/calcasa/api/models/callback.py index 57efab6..23e4d22 100644 --- a/calcasa/api/models/callback.py +++ b/calcasa/api/models/callback.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -48,7 +47,6 @@ class Callback(BaseModel): 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.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["version", "url"] model_config = ConfigDict( @@ -80,24 +78,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -117,9 +105,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( {"version": obj.get("version"), "url": obj.get("url")} ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/callback_inschrijving.py b/calcasa/api/models/callback_inschrijving.py index ded68ae..dc01722 100644 --- a/calcasa/api/models/callback_inschrijving.py +++ b/calcasa/api/models/callback_inschrijving.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -57,7 +56,6 @@ class CallbackInschrijving(BaseModel): default=None, description="Optioneel veld om alleen op aanvragen voor een bepaalde geldverstrekker in te schrijven.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "bagNummeraanduidingId", "geldigTot", @@ -94,24 +92,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if externe_referentie (nullable) is None # and model_fields_set contains the field if ( @@ -144,9 +132,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "geldverstrekker": obj.get("geldverstrekker"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/cbs_indeling.py b/calcasa/api/models/cbs_indeling.py index ac3d754..2cf862f 100644 --- a/calcasa/api/models/cbs_indeling.py +++ b/calcasa/api/models/cbs_indeling.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -58,7 +57,6 @@ class CbsIndeling(BaseModel): gemeentenaam: Optional[StrictStr] = Field( default=None, description="De naam van de gemeente." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "buurtId", "buurtCode", @@ -96,24 +94,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -134,9 +122,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "gemeentenaam": obj.get("gemeentenaam"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/deel_waardering_webhook_payload.py b/calcasa/api/models/deel_waardering_webhook_payload.py index 579f6e8..eec9c22 100644 --- a/calcasa/api/models/deel_waardering_webhook_payload.py +++ b/calcasa/api/models/deel_waardering_webhook_payload.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -49,7 +48,6 @@ class DeelWaarderingWebhookPayload(BaseModel): description="Het Id van de waardering waarop deze callback betrekking heeft.", alias="waarderingId", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "callbackName", "eventId", @@ -87,12 +85,10 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. * OpenAPI `readOnly` fields are excluded. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set( [ "callback_name", - "additional_properties", ] ) @@ -101,11 +97,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -125,9 +116,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "waarderingId": obj.get("waarderingId"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/energielabel.py b/calcasa/api/models/energielabel.py index 4beb874..30b660e 100644 --- a/calcasa/api/models/energielabel.py +++ b/calcasa/api/models/energielabel.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/energielabel_data.py b/calcasa/api/models/energielabel_data.py index 5df9f3c..f9531e8 100644 --- a/calcasa/api/models/energielabel_data.py +++ b/calcasa/api/models/energielabel_data.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,7 +53,6 @@ class EnergielabelData(BaseModel): default=None, description="De datum tot wanneer het label geldig is. Beschikbaar voor 2 en 3 sterrenlabels.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "aantalSterren", "geldigTot", @@ -90,24 +88,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -144,9 +132,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "registratiedatum": obj.get("registratiedatum"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/factuur.py b/calcasa/api/models/factuur.py index 979831f..b8f27de 100644 --- a/calcasa/api/models/factuur.py +++ b/calcasa/api/models/factuur.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,7 +41,6 @@ class Factuur(BaseModel): id: UUID = Field(description="Het factuur Id.") factuurnummer: StrictStr = Field(description="Het factuurnummer van de factuur.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "factuurnummer"] model_config = ConfigDict( @@ -74,24 +72,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -106,9 +94,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( {"id": obj.get("id"), "factuurnummer": obj.get("factuurnummer")} ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/foto.py b/calcasa/api/models/foto.py index 2636240..fc9117b 100644 --- a/calcasa/api/models/foto.py +++ b/calcasa/api/models/foto.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -41,7 +40,6 @@ class Foto(BaseModel): """ # noqa: E501 id: Optional[UUID] = Field(default=None, description="Het foto Id.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( @@ -73,24 +71,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -103,9 +91,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({"id": obj.get("id")}) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/fundering_data_bron.py b/calcasa/api/models/fundering_data_bron.py index d75f782..dc0d318 100644 --- a/calcasa/api/models/fundering_data_bron.py +++ b/calcasa/api/models/fundering_data_bron.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_herstel_type.py b/calcasa/api/models/fundering_herstel_type.py index 2f65c2f..490d85e 100644 --- a/calcasa/api/models/fundering_herstel_type.py +++ b/calcasa/api/models/fundering_herstel_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_risico.py b/calcasa/api/models/fundering_risico.py index 6cd9c4f..d34520f 100644 --- a/calcasa/api/models/fundering_risico.py +++ b/calcasa/api/models/fundering_risico.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -46,7 +45,6 @@ class FunderingRisico(BaseModel): omschrijving: Optional[StrictStr] = Field( default=None, description="De omschrijving van het risico." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["label", "bron", "omschrijving"] model_config = ConfigDict( @@ -78,24 +76,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -114,9 +102,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "omschrijving": obj.get("omschrijving"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/fundering_risico_label.py b/calcasa/api/models/fundering_risico_label.py index 3aab36b..cef4cf3 100644 --- a/calcasa/api/models/fundering_risico_label.py +++ b/calcasa/api/models/fundering_risico_label.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_soort_bron.py b/calcasa/api/models/fundering_soort_bron.py index 6b6e17b..ea6bcf8 100644 --- a/calcasa/api/models/fundering_soort_bron.py +++ b/calcasa/api/models/fundering_soort_bron.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_type.py b/calcasa/api/models/fundering_type.py index 51e2c5b..415c0a3 100644 --- a/calcasa/api/models/fundering_type.py +++ b/calcasa/api/models/fundering_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/fundering_typering.py b/calcasa/api/models/fundering_typering.py index 201059c..c1902a9 100644 --- a/calcasa/api/models/fundering_typering.py +++ b/calcasa/api/models/fundering_typering.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -46,7 +45,6 @@ class FunderingTypering(BaseModel): omschrijving: Optional[StrictStr] = Field( default=None, description="De omschrijving van het funderingstype." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "bron", "omschrijving"] model_config = ConfigDict( @@ -78,24 +76,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -114,9 +102,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "omschrijving": obj.get("omschrijving"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/funderingdata.py b/calcasa/api/models/funderingdata.py index 5800a7e..f597790 100644 --- a/calcasa/api/models/funderingdata.py +++ b/calcasa/api/models/funderingdata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -60,7 +59,6 @@ class Funderingdata(BaseModel): default=None, description="Indicatieve herstelkosten van de fundering." ) bron: Optional[FunderingDataBron] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "typering", "herstelType", @@ -100,13 +98,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -125,11 +118,6 @@ def to_dict(self) -> Dict[str, Any]: # 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() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -173,9 +161,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "bron": obj.get("bron"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/gebiedsdata.py b/calcasa/api/models/gebiedsdata.py index a5c41eb..8b29e8e 100644 --- a/calcasa/api/models/gebiedsdata.py +++ b/calcasa/api/models/gebiedsdata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -89,7 +88,6 @@ class Gebiedsdata(BaseModel): description="In hele procenten.", alias="prijsveranderingAfgelopen10Jaar", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "naam", "gemiddeldePrijsEengezinswoningen", @@ -131,24 +129,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if gemiddelde_prijs_eengezinswoningen (nullable) is None # and model_fields_set contains the field if ( @@ -255,9 +243,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/geldverstrekker.py b/calcasa/api/models/geldverstrekker.py index e334f30..c576974 100644 --- a/calcasa/api/models/geldverstrekker.py +++ b/calcasa/api/models/geldverstrekker.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -46,7 +45,6 @@ class Geldverstrekker(BaseModel): name: Optional[StrictStr] = Field( default=None, description="De volledige naam van deze geldverstrekker." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["slug", "name"] model_config = ConfigDict( @@ -78,24 +76,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -108,9 +96,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({"slug": obj.get("slug"), "name": obj.get("name")}) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/invalid_argument_problem_details.py b/calcasa/api/models/invalid_argument_problem_details.py index a9fdeaa..089b83d 100644 --- a/calcasa/api/models/invalid_argument_problem_details.py +++ b/calcasa/api/models/invalid_argument_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -59,7 +58,6 @@ class InvalidArgumentProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "paramName", "type", @@ -98,24 +96,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -162,9 +150,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/klantwaarde_type.py b/calcasa/api/models/klantwaarde_type.py index c9e273c..074d9fa 100644 --- a/calcasa/api/models/klantwaarde_type.py +++ b/calcasa/api/models/klantwaarde_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/kwartaal.py b/calcasa/api/models/kwartaal.py index d57e5ad..0d37976 100644 --- a/calcasa/api/models/kwartaal.py +++ b/calcasa/api/models/kwartaal.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -43,7 +42,6 @@ class Kwartaal(BaseModel): number: Optional[StrictInt] = Field( default=None, description="Het kwartaal van 1 tot 4." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["jaar", "number"] model_config = ConfigDict( @@ -75,24 +73,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -107,9 +95,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( {"jaar": obj.get("jaar"), "number": obj.get("number")} ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/modeldata.py b/calcasa/api/models/modeldata.py index 659960c..5ed9ac6 100644 --- a/calcasa/api/models/modeldata.py +++ b/calcasa/api/models/modeldata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -54,7 +53,6 @@ class Modeldata(BaseModel): executiewaarde: Optional[StrictInt] = Field( default=None, description="In hele euros." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "marktwaarde", "marktwaardeOndergrens", @@ -93,24 +91,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -132,9 +120,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "executiewaarde": obj.get("executiewaarde"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/not_found_problem_details.py b/calcasa/api/models/not_found_problem_details.py index 9ff042a..dc47c99 100644 --- a/calcasa/api/models/not_found_problem_details.py +++ b/calcasa/api/models/not_found_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -59,7 +58,6 @@ class NotFoundProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "entity", "type", @@ -98,24 +96,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -162,9 +150,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/notitie.py b/calcasa/api/models/notitie.py index c921986..1903441 100644 --- a/calcasa/api/models/notitie.py +++ b/calcasa/api/models/notitie.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/notities.py b/calcasa/api/models/notities.py index 9621683..bde5ad2 100644 --- a/calcasa/api/models/notities.py +++ b/calcasa/api/models/notities.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -45,7 +44,6 @@ class Notities(BaseModel): huisnummertoevoeging: Optional[Notitie] = None postcode: Optional[Notitie] = None woonplaats: Optional[Notitie] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "straat", "huisnummer", @@ -83,24 +81,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -121,9 +109,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "woonplaats": obj.get("woonplaats"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/objectdata.py b/calcasa/api/models/objectdata.py index 4c3912c..95e3935 100644 --- a/calcasa/api/models/objectdata.py +++ b/calcasa/api/models/objectdata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -57,7 +56,6 @@ class Objectdata(BaseModel): energielabel_data: Optional[EnergielabelData] = Field( default=None, alias="energielabelData" ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "woningType", "bouwjaar", @@ -97,13 +95,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -113,11 +106,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of energielabel_data if self.energielabel_data: _dict["energielabelData"] = self.energielabel_data.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -144,9 +132,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/omgevingsdata.py b/calcasa/api/models/omgevingsdata.py index 93b68fb..98569eb 100644 --- a/calcasa/api/models/omgevingsdata.py +++ b/calcasa/api/models/omgevingsdata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -45,7 +44,6 @@ class Omgevingsdata(BaseModel): gemeente: Optional[Gebiedsdata] = None provincie: Optional[Gebiedsdata] = None land: Optional[Gebiedsdata] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "buurt", "wijk", @@ -83,13 +81,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -111,11 +104,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of land if self.land: _dict["land"] = self.land.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -156,9 +144,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/operation.py b/calcasa/api/models/operation.py index aeba5a9..487da0e 100644 --- a/calcasa/api/models/operation.py +++ b/calcasa/api/models/operation.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -44,7 +43,6 @@ class Operation(BaseModel): var_from: Optional[StrictStr] = Field(default=None, alias="from") value: Optional[Any] = None path: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["op", "from", "value", "path"] model_config = ConfigDict( @@ -76,24 +74,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -123,9 +111,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "path": obj.get("path"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/operation_type.py b/calcasa/api/models/operation_type.py index a4f8649..f1b9e31 100644 --- a/calcasa/api/models/operation_type.py +++ b/calcasa/api/models/operation_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/permissions_denied_problem_details.py b/calcasa/api/models/permissions_denied_problem_details.py index 98d52e9..2598dd6 100644 --- a/calcasa/api/models/permissions_denied_problem_details.py +++ b/calcasa/api/models/permissions_denied_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -61,7 +60,6 @@ class PermissionsDeniedProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "requiredPermission", "type", @@ -100,24 +98,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -164,9 +152,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/problem_details.py b/calcasa/api/models/problem_details.py index 55bb8cd..88d00a7 100644 --- a/calcasa/api/models/problem_details.py +++ b/calcasa/api/models/problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -58,7 +57,6 @@ class ProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "type", "title", @@ -96,24 +94,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -159,9 +147,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/product_type.py b/calcasa/api/models/product_type.py index cca7873..ac955dc 100644 --- a/calcasa/api/models/product_type.py +++ b/calcasa/api/models/product_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/rapport.py b/calcasa/api/models/rapport.py index f02d435..d6231fa 100644 --- a/calcasa/api/models/rapport.py +++ b/calcasa/api/models/rapport.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -41,7 +40,6 @@ class Rapport(BaseModel): """ # noqa: E501 id: UUID = Field(description="Het rapport Id.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( @@ -73,24 +71,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -103,9 +91,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({"id": obj.get("id")}) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/referentieobject.py b/calcasa/api/models/referentieobject.py index 282c195..bdeadcd 100644 --- a/calcasa/api/models/referentieobject.py +++ b/calcasa/api/models/referentieobject.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -80,7 +79,6 @@ class Referentieobject(BaseModel): bijzonderheden: Optional[List[VerkoopBijzonderheden]] = Field( default=None, description="Eventuele bijzonderheden van de transactie." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "afstand", "verkoopprijs", @@ -126,13 +124,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -155,11 +148,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_fotos: _items.append(_item_fotos.to_dict()) _dict["fotos"] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -208,9 +196,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "bijzonderheden": obj.get("bijzonderheden"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/resource_exhausted_problem_details.py b/calcasa/api/models/resource_exhausted_problem_details.py index 9da7b9c..8e8765e 100644 --- a/calcasa/api/models/resource_exhausted_problem_details.py +++ b/calcasa/api/models/resource_exhausted_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -59,7 +58,6 @@ class ResourceExhaustedProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "resource", "type", @@ -98,24 +96,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -162,9 +150,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/taxatiedata.py b/calcasa/api/models/taxatiedata.py index ce68285..b89cc1a 100644 --- a/calcasa/api/models/taxatiedata.py +++ b/calcasa/api/models/taxatiedata.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -59,7 +58,6 @@ class Taxatiedata(BaseModel): default=None, description="De datum/tijd waarop de waardering getaxeerd is, in UTC.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "taxatieorganisatie", "taxatieorganisatieWeergave", @@ -97,24 +95,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -135,9 +123,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "taxatiedatum": obj.get("taxatiedatum"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/taxatiestatus.py b/calcasa/api/models/taxatiestatus.py index dcc22b4..91a823d 100644 --- a/calcasa/api/models/taxatiestatus.py +++ b/calcasa/api/models/taxatiestatus.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/unauthorized_problem_details.py b/calcasa/api/models/unauthorized_problem_details.py index 8671427..b300d08 100644 --- a/calcasa/api/models/unauthorized_problem_details.py +++ b/calcasa/api/models/unauthorized_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -58,7 +57,6 @@ class UnauthorizedProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "type", "title", @@ -96,24 +94,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -159,9 +147,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/validation_problem_details.py b/calcasa/api/models/validation_problem_details.py index f8a902a..36a2f9b 100644 --- a/calcasa/api/models/validation_problem_details.py +++ b/calcasa/api/models/validation_problem_details.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -59,7 +58,6 @@ class ValidationProblemDetails(BaseModel): default=None, description="A URI reference that identifies the specific occurrence of the problem.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "errors", "type", @@ -98,24 +96,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -162,9 +150,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "instance": obj.get("instance"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/verkoop_bijzonderheden.py b/calcasa/api/models/verkoop_bijzonderheden.py index 362b8a8..a3f45d5 100644 --- a/calcasa/api/models/verkoop_bijzonderheden.py +++ b/calcasa/api/models/verkoop_bijzonderheden.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/version_names.py b/calcasa/api/models/version_names.py index a3c0de2..94d4989 100644 --- a/calcasa/api/models/version_names.py +++ b/calcasa/api/models/version_names.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/vorige_verkoop.py b/calcasa/api/models/vorige_verkoop.py index 5f6df0f..54888b8 100644 --- a/calcasa/api/models/vorige_verkoop.py +++ b/calcasa/api/models/vorige_verkoop.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -62,7 +61,6 @@ class VorigeVerkoop(BaseModel): bijzonderheden: Optional[List[VerkoopBijzonderheden]] = Field( default=None, description="Eventuele bijzonderheden van de transactie." ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "verkoopprijs", "geindexeerdeVerkoopprijs", @@ -102,24 +100,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -144,9 +132,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "bijzonderheden": obj.get("bijzonderheden"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/waardering.py b/calcasa/api/models/waardering.py index 80beba2..36738fe 100644 --- a/calcasa/api/models/waardering.py +++ b/calcasa/api/models/waardering.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -71,7 +70,6 @@ class Waardering(BaseModel): ) rapport: Optional[Rapport] = None factuur: Optional[Factuur] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "id", "aangemaakt", @@ -118,13 +116,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -176,11 +169,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of factuur if self.factuur: _dict["factuur"] = self.factuur.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -269,9 +257,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/waardering_input_parameters.py b/calcasa/api/models/waardering_input_parameters.py index 36effb2..f30650a 100644 --- a/calcasa/api/models/waardering_input_parameters.py +++ b/calcasa/api/models/waardering_input_parameters.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -100,7 +99,6 @@ class WaarderingInputParameters(BaseModel): 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.", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "geldverstrekker", "productType", @@ -147,24 +145,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -204,9 +192,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "klantkenmerk": obj.get("klantkenmerk"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/waardering_ontwikkeling.py b/calcasa/api/models/waardering_ontwikkeling.py index 7b5ac34..750f743 100644 --- a/calcasa/api/models/waardering_ontwikkeling.py +++ b/calcasa/api/models/waardering_ontwikkeling.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -94,7 +93,6 @@ class WaarderingOntwikkeling(BaseModel): description="De prijsontwikkeling van de gemeente van het gewaardeerde object per vierkantemeter.", alias="gemeentePrijsOntwikkelingPerVierkantemeter", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "id", "objectPrijsOntwikkeling", @@ -136,13 +134,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -221,11 +214,6 @@ def to_dict(self) -> Dict[str, Any]: _item_gemeente_prijs_ontwikkeling_per_vierkantemeter.to_dict() ) _dict["gemeentePrijsOntwikkelingPerVierkantemeter"] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -306,9 +294,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py index d824fbf..8c2bb91 100644 --- a/calcasa/api/models/waardering_ontwikkeling_kwartaal.py +++ b/calcasa/api/models/waardering_ontwikkeling_kwartaal.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -42,7 +41,6 @@ class WaarderingOntwikkelingKwartaal(BaseModel): kwartaal: Optional[Kwartaal] = None waarde: Optional[StrictInt] = Field(default=None, description="In hele euros.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["kwartaal", "waarde"] model_config = ConfigDict( @@ -74,13 +72,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -90,11 +83,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of kwartaal if self.kwartaal: _dict["kwartaal"] = self.kwartaal.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -116,9 +104,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "waarde": obj.get("waarde"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/waardering_status.py b/calcasa/api/models/waardering_status.py index 9a36389..4f8b584 100644 --- a/calcasa/api/models/waardering_status.py +++ b/calcasa/api/models/waardering_status.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/models/waardering_webhook_payload.py b/calcasa/api/models/waardering_webhook_payload.py index a4ea563..777f158 100644 --- a/calcasa/api/models/waardering_webhook_payload.py +++ b/calcasa/api/models/waardering_webhook_payload.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -62,7 +61,6 @@ class WaarderingWebhookPayload(BaseModel): 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", ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "callbackName", "eventId", @@ -104,12 +102,10 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. * OpenAPI `readOnly` fields are excluded. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set( [ "callback_name", - "additional_properties", ] ) @@ -118,11 +114,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if externe_referentie (nullable) is None # and model_fields_set contains the field if ( @@ -154,9 +145,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "externeReferentie": obj.get("externeReferentie"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/waardering_zoek_parameters.py b/calcasa/api/models/waardering_zoek_parameters.py index 198bc26..2b369f2 100644 --- a/calcasa/api/models/waardering_zoek_parameters.py +++ b/calcasa/api/models/waardering_zoek_parameters.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -58,7 +57,6 @@ class WaarderingZoekParameters(BaseModel): bag_nummeraanduiding_id: StrictInt = Field( description="Verplicht.", alias="bagNummeraanduidingId" ) - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ "aangemaakt", "geldverstrekker", @@ -97,24 +95,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # 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: @@ -159,9 +147,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "bagNummeraanduidingId": obj.get("bagNummeraanduidingId"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/webhook_payload.py b/calcasa/api/models/webhook_payload.py index 09b5ca6..2c79453 100644 --- a/calcasa/api/models/webhook_payload.py +++ b/calcasa/api/models/webhook_payload.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -44,7 +43,6 @@ class WebhookPayload(BaseModel): 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.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callbackName", "eventId", "timestamp"] model_config = ConfigDict( @@ -77,12 +75,10 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. * OpenAPI `readOnly` fields are excluded. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set( [ "callback_name", - "additional_properties", ] ) @@ -91,11 +87,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -114,9 +105,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "timestamp": obj.get("timestamp"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/calcasa/api/models/woning_type.py b/calcasa/api/models/woning_type.py index 807c328..dd3529d 100644 --- a/calcasa/api/models/woning_type.py +++ b/calcasa/api/models/woning_type.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/calcasa/api/rest.py b/calcasa/api/rest.py index 35acb39..f207f74 100644 --- a/calcasa/api/rest.py +++ b/calcasa/api/rest.py @@ -18,7 +18,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ diff --git a/pyproject.toml b/pyproject.toml index 0ac39e0..7299006 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "calcasa.api" -version = "1.4.0-rc3" +version = "1.4.0-rc4" description = "Calcasa Public API" authors = [ {name = "Calcasa B.V.",email = "info@calcasa.nl"}, diff --git a/setup.py b/setup.py index 51ba8fe..c0e19c9 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,6 @@ 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: 1.4.0-rc3 Contact: info@calcasa.nl Generated by: https://openapi-generator.tech """ @@ -24,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa.api" -VERSION = "1.4.0-rc3" +VERSION = "1.4.0-rc4" # To install the library, run the following # # python setup.py install From 65e6c02451cf3889882785b5e4bb30d2c0b0c401 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 25 Nov 2025 15:17:43 +0100 Subject: [PATCH 20/20] Release 1.4.0 (2025-11-25) - Change API to TypeSpec as source of truth. - Change generated libraries to `openapi-generator` version 7 with modified templates (see `templates` directory). - PHP - Minimal changes in the use of the library. - Python - Imports have changes, all models and apis are in separate modules and some have moved for example `api.model` -> `api.models` and `api.apis` -> `api.api`. - Model members are now `snake_case`. - Enums are now derived from `enum.Enum`. - `JsonPatchDocument` has been replaced with `list[Operation]`. - Files are now returned as plain `bytearray`. - C# - New library is generic host based, so `Configuration` class has been removed and more. See the new example on how to use the client with tokens. - Uses `System.Text.Json` for JSON processing - `JsonPatchDocument`, `Operation` and `OperationType` were dropped and now use the models from `Microsoft.AspNetCore.JsonPatch` - `ValidationProblemDetails` and `ProblemDetails` were dropped and now use the models from `Microsoft.AspNetCore.Mvc.Core` - Sync versions of operations been removed, added Events based alternative - Add `taxatieorganisatieWeergave` to `Taxatiedata` model. - Added `geenEigenBewoning` and `incorrecteErfpacht` values to `BusinessRulesCode`. --- README.md | 4 ++-- calcasa/api/__init__.py | 2 +- calcasa/api/api_client.py | 2 +- calcasa/api/configuration.py | 6 ++---- pyproject.toml | 2 +- setup.py | 2 +- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 80f5961..0a0d930 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ For more information, please visit [Documentation](https://docs.calcasa.nl) or [ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.4.0-rc4 -- Package version: 1.4.0-rc4 +- 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) diff --git a/calcasa/api/__init__.py b/calcasa/api/__init__.py index c68acc1..f4f7cd1 100644 --- a/calcasa/api/__init__.py +++ b/calcasa/api/__init__.py @@ -24,7 +24,7 @@ Generated by: https://openapi-generator.tech """ -__version__ = "1.4.0-rc4" +__version__ = "1.4.0" # Define package exports __all__ = [ diff --git a/calcasa/api/api_client.py b/calcasa/api/api_client.py index 1fb14f3..09b3b95 100644 --- a/calcasa/api/api_client.py +++ b/calcasa/api/api_client.py @@ -98,7 +98,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "Calcasa Python Api Client/1.4.0-rc4" + self.user_agent = "Calcasa Python Api Client/1.4.0" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/calcasa/api/configuration.py b/calcasa/api/configuration.py index 9963dbd..4df63eb 100644 --- a/calcasa/api/configuration.py +++ b/calcasa/api/configuration.py @@ -530,10 +530,8 @@ def to_debug_report(self) -> str: "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 1.4.0-rc4\n" - "SDK Package Version: 1.4.0-rc4".format( - env=sys.platform, pyversion=sys.version - ) + "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) -> List[HostSetting]: diff --git a/pyproject.toml b/pyproject.toml index 7299006..c195e27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "calcasa.api" -version = "1.4.0-rc4" +version = "1.4.0" description = "Calcasa Public API" authors = [ {name = "Calcasa B.V.",email = "info@calcasa.nl"}, diff --git a/setup.py b/setup.py index c0e19c9..04f864c 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ from setuptools import setup, find_namespace_packages # noqa: H301 NAME = "calcasa.api" -VERSION = "1.4.0-rc4" +VERSION = "1.4.0" # To install the library, run the following # # python setup.py install