11 |
12 |
13 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/python-client/.openapi-generator-ignore:
--------------------------------------------------------------------------------
1 | # OpenAPI Generator Ignore
2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3 |
4 | # Use this file to prevent files from being overwritten by the generator.
5 | # The patterns follow closely to .gitignore or .dockerignore.
6 |
7 | # As an example, the C# client generator defines ApiClient.cs.
8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9 | #ApiClient.cs
10 |
11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12 | #foo/*/qux
13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14 |
15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16 | #foo/**/qux
17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18 |
19 | # You can also negate patterns with an exclamation (!).
20 | # For example, you can ignore all files in a docs folder with the file extension .md:
21 | #docs/*.md
22 | # Then explicitly reverse the ignore rule for a single file:
23 | #!docs/README.md
24 |
--------------------------------------------------------------------------------
/python-client/.openapi-generator/FILES:
--------------------------------------------------------------------------------
1 | .gitignore
2 | .gitlab-ci.yml
3 | .openapi-generator-ignore
4 | .travis.yml
5 | README.md
6 | create_doc.py
7 | docs/Categories.md
8 | docs/CategoriesData.md
9 | docs/Category.md
10 | docs/Countries.md
11 | docs/CountriesData.md
12 | docs/Country.md
13 | docs/DefaultApi.md
14 | docs/ExchangeRates.md
15 | docs/ExchangeRatesKurse.md
16 | docs/Product.md
17 | docs/ProductGroup.md
18 | docs/ProductGroups.md
19 | docs/ProductGroupsData.md
20 | docs/ProductUnit.md
21 | docs/ProductUnits.md
22 | docs/ProductUnitsData.md
23 | docs/Products.md
24 | docs/ProductsData.md
25 | git_push.sh
26 | pyproject.toml
27 | rename_generated_code.py
28 | requirements.txt
29 | requirements.txt
30 | setup.cfg
31 | setup.py
32 | test-requirements.txt
33 | test/__init__.py
34 | test/test_categories.py
35 | test/test_categories_data.py
36 | test/test_category.py
37 | test/test_countries.py
38 | test/test_countries_data.py
39 | test/test_country.py
40 | test/test_default_api.py
41 | test/test_exchange_rates.py
42 | test/test_exchange_rates_kurse.py
43 | test/test_product.py
44 | test/test_product_group.py
45 | test/test_product_groups.py
46 | test/test_product_groups_data.py
47 | test/test_product_unit.py
48 | test/test_product_units.py
49 | test/test_product_units_data.py
50 | test/test_products.py
51 | test/test_products_data.py
52 | tox.ini
53 | zoll/__init__.py
54 | zoll/api/__init__.py
55 | zoll/api/default_api.py
56 | zoll/api_client.py
57 | zoll/apis/__init__.py
58 | zoll/configuration.py
59 | zoll/exceptions.py
60 | zoll/model/__init__.py
61 | zoll/model/categories.py
62 | zoll/model/categories_data.py
63 | zoll/model/category.py
64 | zoll/model/countries.py
65 | zoll/model/countries_data.py
66 | zoll/model/country.py
67 | zoll/model/exchange_rates.py
68 | zoll/model/exchange_rates_kurse.py
69 | zoll/model/product.py
70 | zoll/model/product_group.py
71 | zoll/model/product_groups.py
72 | zoll/model/product_groups_data.py
73 | zoll/model/product_unit.py
74 | zoll/model/product_units.py
75 | zoll/model/product_units_data.py
76 | zoll/model/products.py
77 | zoll/model/products_data.py
78 | zoll/model_utils.py
79 | zoll/models/__init__.py
80 | zoll/rest.py
81 |
--------------------------------------------------------------------------------
/python-client/.openapi-generator/VERSION:
--------------------------------------------------------------------------------
1 | 6.0.0-SNAPSHOT
--------------------------------------------------------------------------------
/python-client/README.md:
--------------------------------------------------------------------------------
1 | # zoll
2 | Abfragen von Importzöllen und Wechselkursen
3 |
4 | This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5 |
6 | - API version: 1.0.0
7 | - Package version: 0.1.0
8 | - Build package: org.openapitools.codegen.languages.PythonClientCodegen
9 |
10 | ## Requirements.
11 |
12 | Python >= 3.6
13 |
14 | ## Installation & Usage
15 | ### pip install
16 |
17 | ```sh
18 | pip install deutschland[zoll]
19 | ```
20 |
21 | ### poetry install
22 |
23 | ```sh
24 | poetry add deutschland -E zoll
25 | ```
26 |
27 | ### Setuptools
28 |
29 | Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
30 |
31 | ```sh
32 | python setup.py install --user
33 | ```
34 | (or `sudo python setup.py install` to install the package for all users)
35 |
36 | ## Usage
37 |
38 | Import the package:
39 | ```python
40 | from deutschland import zoll
41 | ```
42 |
43 | ## Getting Started
44 |
45 | Please follow the [installation procedure](#installation--usage) and then run the following:
46 |
47 | ```python
48 |
49 | import time
50 | from deutschland import zoll
51 | from pprint import pprint
52 | from deutschland.zoll.api import default_api
53 | from deutschland.zoll.model.categories import Categories
54 | from deutschland.zoll.model.countries import Countries
55 | from deutschland.zoll.model.exchange_rates import ExchangeRates
56 | from deutschland.zoll.model.product_groups import ProductGroups
57 | from deutschland.zoll.model.product_units import ProductUnits
58 | from deutschland.zoll.model.products import Products
59 | # Defining the host is optional and defaults to https://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieve
60 | # See configuration.py for a list of all supported configuration parameters.
61 | configuration = zoll.Configuration(
62 | host = "https://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieve"
63 | )
64 |
65 |
66 |
67 | # Enter a context with an instance of the API client
68 | with zoll.ApiClient(configuration) as api_client:
69 | # Create an instance of the API class
70 | api_instance = default_api.DefaultApi(api_client)
71 | client = "ZUP" # str | (default to "ZUP")
72 | view = "renderJson[App]" # str | (default to "renderJson[App]")
73 | user_agent = "zollundpost/2 CFNetwork/1220.1 Darwin/20.3.0" # str | (default to "zollundpost/2 CFNetwork/1220.1 Darwin/20.3.0")
74 | last_modified_date = "" # str | (optional) (default to "")
75 |
76 | try:
77 | # Produktkategorien
78 | api_response = api_instance.kategorien_get(client, view, user_agent, last_modified_date=last_modified_date)
79 | pprint(api_response)
80 | except zoll.ApiException as e:
81 | print("Exception when calling DefaultApi->kategorien_get: %s\n" % e)
82 | ```
83 |
84 | ## Documentation for API Endpoints
85 |
86 | All URIs are relative to *https://www.bundesfinanzministerium.de/SiteGlobals/Functions/Apps/retrieve*
87 |
88 | Class | Method | HTTP request | Description
89 | ------------ | ------------- | ------------- | -------------
90 | *DefaultApi* | [**kategorien_get**](docs/DefaultApi.md#kategorien_get) | **GET** /kategorien | Produktkategorien
91 | *DefaultApi* | [**kurse_app_kurs_export_txt_get**](docs/DefaultApi.md#kurse_app_kurs_export_txt_get) | **GET** /Kurse/App/KursExport.txt | Währungskurse
92 | *DefaultApi* | [**laender_get**](docs/DefaultApi.md#laender_get) | **GET** /laender |
93 | *DefaultApi* | [**produkte_get**](docs/DefaultApi.md#produkte_get) | **GET** /produkte | Produkte
94 | *DefaultApi* | [**produkteinheiten_get**](docs/DefaultApi.md#produkteinheiten_get) | **GET** /produkteinheiten |
95 | *DefaultApi* | [**produktgruppen_get**](docs/DefaultApi.md#produktgruppen_get) | **GET** /produktgruppen |
96 |
97 |
98 | ## Documentation For Models
99 |
100 | - [Categories](docs/Categories.md)
101 | - [CategoriesData](docs/CategoriesData.md)
102 | - [Category](docs/Category.md)
103 | - [Countries](docs/Countries.md)
104 | - [CountriesData](docs/CountriesData.md)
105 | - [Country](docs/Country.md)
106 | - [ExchangeRates](docs/ExchangeRates.md)
107 | - [ExchangeRatesKurse](docs/ExchangeRatesKurse.md)
108 | - [Product](docs/Product.md)
109 | - [ProductGroup](docs/ProductGroup.md)
110 | - [ProductGroups](docs/ProductGroups.md)
111 | - [ProductGroupsData](docs/ProductGroupsData.md)
112 | - [ProductUnit](docs/ProductUnit.md)
113 | - [ProductUnits](docs/ProductUnits.md)
114 | - [ProductUnitsData](docs/ProductUnitsData.md)
115 | - [Products](docs/Products.md)
116 | - [ProductsData](docs/ProductsData.md)
117 |
118 |
119 | ## Documentation For Authorization
120 |
121 | All endpoints do not require authorization.
122 |
123 | ## Author
124 |
125 | kontakt@bund.dev
126 |
127 |
128 | ## Notes for Large OpenAPI documents
129 | If the OpenAPI document is large, imports in zoll.apis and zoll.models may fail with a
130 | RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
131 |
132 | Solution 1:
133 | Use specific imports for apis and models like:
134 | - `from deutschland.zoll.api.default_api import DefaultApi`
135 | - `from deutschland.zoll.model.pet import Pet`
136 |
137 | Solution 2:
138 | Before importing the package, adjust the maximum recursion limit as shown below:
139 | ```
140 | import sys
141 | sys.setrecursionlimit(1500)
142 | from deutschland import zoll
143 | from deutschland.zoll.apis import *
144 | from deutschland.zoll.models import *
145 | ```
146 |
147 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/__init__.py:
--------------------------------------------------------------------------------
1 | # flake8: noqa
2 |
3 | """
4 | Einfuhrzoll API
5 |
6 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
7 |
8 | The version of the OpenAPI document: 1.0.0
9 | Contact: kontakt@bund.dev
10 | Generated by: https://openapi-generator.tech
11 | """
12 |
13 |
14 | __version__ = "0.1.0"
15 |
16 | # import ApiClient
17 | from deutschland.zoll.api_client import ApiClient
18 |
19 | # import Configuration
20 | from deutschland.zoll.configuration import Configuration
21 |
22 | # import exceptions
23 | from deutschland.zoll.exceptions import (
24 | ApiAttributeError,
25 | ApiException,
26 | ApiKeyError,
27 | ApiTypeError,
28 | ApiValueError,
29 | OpenApiException,
30 | )
31 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/api/__init__.py:
--------------------------------------------------------------------------------
1 | # do not import all apis into this module because that uses a lot of memory and stack frames
2 | # if you need the ability to import all apis from one package, import them with
3 | # from deutschland.zoll.apis import DefaultApi
4 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/apis/__init__.py:
--------------------------------------------------------------------------------
1 | # flake8: noqa
2 |
3 | # Import all APIs into this package.
4 | # If you have many APIs here with many many models used in each API this may
5 | # raise a `RecursionError`.
6 | # In order to avoid this, import only the API that you directly need like:
7 | #
8 | # from .api.default_api import DefaultApi
9 | #
10 | # or import this package, but before doing it, use:
11 | #
12 | # import sys
13 | # sys.setrecursionlimit(n)
14 |
15 | # Import APIs into API package:
16 | from deutschland.zoll.api.default_api import DefaultApi
17 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/exceptions.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | class OpenApiException(Exception):
13 | """The base exception class for all OpenAPIExceptions"""
14 |
15 |
16 | class ApiTypeError(OpenApiException, TypeError):
17 | def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None):
18 | """Raises an exception for TypeErrors
19 |
20 | Args:
21 | msg (str): the exception message
22 |
23 | Keyword Args:
24 | path_to_item (list): a list of keys an indices to get to the
25 | current_item
26 | None if unset
27 | valid_classes (tuple): the primitive classes that current item
28 | should be an instance of
29 | None if unset
30 | key_type (bool): False if our value is a value in a dict
31 | True if it is a key in a dict
32 | False if our item is an item in a list
33 | None if unset
34 | """
35 | self.path_to_item = path_to_item
36 | self.valid_classes = valid_classes
37 | self.key_type = key_type
38 | full_msg = msg
39 | if path_to_item:
40 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
41 | super(ApiTypeError, self).__init__(full_msg)
42 |
43 |
44 | class ApiValueError(OpenApiException, ValueError):
45 | def __init__(self, msg, path_to_item=None):
46 | """
47 | Args:
48 | msg (str): the exception message
49 |
50 | Keyword Args:
51 | path_to_item (list) the path to the exception in the
52 | received_data dict. None if unset
53 | """
54 |
55 | self.path_to_item = path_to_item
56 | full_msg = msg
57 | if path_to_item:
58 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
59 | super(ApiValueError, self).__init__(full_msg)
60 |
61 |
62 | class ApiAttributeError(OpenApiException, AttributeError):
63 | def __init__(self, msg, path_to_item=None):
64 | """
65 | Raised when an attribute reference or assignment fails.
66 |
67 | Args:
68 | msg (str): the exception message
69 |
70 | Keyword Args:
71 | path_to_item (None/list) the path to the exception in the
72 | received_data dict
73 | """
74 | self.path_to_item = path_to_item
75 | full_msg = msg
76 | if path_to_item:
77 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
78 | super(ApiAttributeError, self).__init__(full_msg)
79 |
80 |
81 | class ApiKeyError(OpenApiException, KeyError):
82 | def __init__(self, msg, path_to_item=None):
83 | """
84 | Args:
85 | msg (str): the exception message
86 |
87 | Keyword Args:
88 | path_to_item (None/list) the path to the exception in the
89 | received_data dict
90 | """
91 | self.path_to_item = path_to_item
92 | full_msg = msg
93 | if path_to_item:
94 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
95 | super(ApiKeyError, self).__init__(full_msg)
96 |
97 |
98 | class ApiException(OpenApiException):
99 | def __init__(self, status=None, reason=None, http_resp=None):
100 | if http_resp:
101 | self.status = http_resp.status
102 | self.reason = http_resp.reason
103 | self.body = http_resp.data
104 | self.headers = http_resp.getheaders()
105 | else:
106 | self.status = status
107 | self.reason = reason
108 | self.body = None
109 | self.headers = None
110 |
111 | def __str__(self):
112 | """Custom error messages for exception"""
113 | error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason)
114 | if self.headers:
115 | error_message += "HTTP response headers: {0}\n".format(self.headers)
116 |
117 | if self.body:
118 | error_message += "HTTP response body: {0}\n".format(self.body)
119 |
120 | return error_message
121 |
122 |
123 | class NotFoundException(ApiException):
124 | def __init__(self, status=None, reason=None, http_resp=None):
125 | super(NotFoundException, self).__init__(status, reason, http_resp)
126 |
127 |
128 | class UnauthorizedException(ApiException):
129 | def __init__(self, status=None, reason=None, http_resp=None):
130 | super(UnauthorizedException, self).__init__(status, reason, http_resp)
131 |
132 |
133 | class ForbiddenException(ApiException):
134 | def __init__(self, status=None, reason=None, http_resp=None):
135 | super(ForbiddenException, self).__init__(status, reason, http_resp)
136 |
137 |
138 | class ServiceException(ApiException):
139 | def __init__(self, status=None, reason=None, http_resp=None):
140 | super(ServiceException, self).__init__(status, reason, http_resp)
141 |
142 |
143 | def render_path(path_to_item):
144 | """Returns a string representation of a path"""
145 | result = ""
146 | for pth in path_to_item:
147 | if isinstance(pth, int):
148 | result += "[{0}]".format(pth)
149 | else:
150 | result += "['{0}']".format(pth)
151 | return result
152 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/__init__.py:
--------------------------------------------------------------------------------
1 | # we can not import model classes here because that would create a circular
2 | # reference which would not work in python2
3 | # do not import all models into this module because that uses a lot of memory and stack frames
4 | # if you need the ability to import all models from one package, import them with
5 | # from deutschland.zoll.models import ModelA, ModelB
6 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/categories.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.categories_data import CategoriesData
35 |
36 | globals()["CategoriesData"] = CategoriesData
37 |
38 |
39 | class Categories(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "data": (CategoriesData,), # noqa: E501
101 | }
102 |
103 | @cached_property
104 | def discriminator():
105 | return None
106 |
107 | attribute_map = {
108 | "data": "data", # noqa: E501
109 | }
110 |
111 | read_only_vars = {}
112 |
113 | _composed_schemas = {}
114 |
115 | @classmethod
116 | @convert_js_args_to_python_args
117 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118 | """Categories - a model defined in OpenAPI
119 |
120 | Keyword Args:
121 | _check_type (bool): if True, values for parameters in openapi_types
122 | will be type checked and a TypeError will be
123 | raised if the wrong type is input.
124 | Defaults to True
125 | _path_to_item (tuple/list): This is a list of keys or values to
126 | drill down to the model in received_data
127 | when deserializing a response
128 | _spec_property_naming (bool): True if the variable names in the input data
129 | are serialized names, as specified in the OpenAPI document.
130 | False if the variable names in the input data
131 | are pythonic names, e.g. snake case (default)
132 | _configuration (Configuration): the instance to use when
133 | deserializing a file_type parameter.
134 | If passed, type conversion is attempted
135 | If omitted no type conversion is done.
136 | _visited_composed_classes (tuple): This stores a tuple of
137 | classes that we have traveled through so that
138 | if we see that class again we will not use its
139 | discriminator again.
140 | When traveling through a discriminator, the
141 | composed schema that is
142 | is traveled through is added to this set.
143 | For example if Animal has a discriminator
144 | petType and we pass in "Dog", and the class Dog
145 | allOf includes Animal, we move through Animal
146 | once using the discriminator, and pick Dog.
147 | Then in Dog, we will make an instance of the
148 | Animal class but this time we won't travel
149 | through its discriminator because we passed in
150 | _visited_composed_classes = (Animal,)
151 | data (CategoriesData): [optional] # noqa: E501
152 | """
153 |
154 | _check_type = kwargs.pop("_check_type", True)
155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
156 | _path_to_item = kwargs.pop("_path_to_item", ())
157 | _configuration = kwargs.pop("_configuration", None)
158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
159 |
160 | self = super(OpenApiModel, cls).__new__(cls)
161 |
162 | if args:
163 | for arg in args:
164 | if isinstance(arg, dict):
165 | kwargs.update(arg)
166 | else:
167 | raise ApiTypeError(
168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
169 | % (
170 | args,
171 | self.__class__.__name__,
172 | ),
173 | path_to_item=_path_to_item,
174 | valid_classes=(self.__class__,),
175 | )
176 |
177 | self._data_store = {}
178 | self._check_type = _check_type
179 | self._spec_property_naming = _spec_property_naming
180 | self._path_to_item = _path_to_item
181 | self._configuration = _configuration
182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183 |
184 | for var_name, var_value in kwargs.items():
185 | if (
186 | var_name not in self.attribute_map
187 | and self._configuration is not None
188 | and self._configuration.discard_unknown_keys
189 | and self.additional_properties_type is None
190 | ):
191 | # discard variable.
192 | continue
193 | setattr(self, var_name, var_value)
194 | return self
195 |
196 | required_properties = set(
197 | [
198 | "_data_store",
199 | "_check_type",
200 | "_spec_property_naming",
201 | "_path_to_item",
202 | "_configuration",
203 | "_visited_composed_classes",
204 | ]
205 | )
206 |
207 | @convert_js_args_to_python_args
208 | def __init__(self, *args, **kwargs): # noqa: E501
209 | """Categories - a model defined in OpenAPI
210 |
211 | Keyword Args:
212 | _check_type (bool): if True, values for parameters in openapi_types
213 | will be type checked and a TypeError will be
214 | raised if the wrong type is input.
215 | Defaults to True
216 | _path_to_item (tuple/list): This is a list of keys or values to
217 | drill down to the model in received_data
218 | when deserializing a response
219 | _spec_property_naming (bool): True if the variable names in the input data
220 | are serialized names, as specified in the OpenAPI document.
221 | False if the variable names in the input data
222 | are pythonic names, e.g. snake case (default)
223 | _configuration (Configuration): the instance to use when
224 | deserializing a file_type parameter.
225 | If passed, type conversion is attempted
226 | If omitted no type conversion is done.
227 | _visited_composed_classes (tuple): This stores a tuple of
228 | classes that we have traveled through so that
229 | if we see that class again we will not use its
230 | discriminator again.
231 | When traveling through a discriminator, the
232 | composed schema that is
233 | is traveled through is added to this set.
234 | For example if Animal has a discriminator
235 | petType and we pass in "Dog", and the class Dog
236 | allOf includes Animal, we move through Animal
237 | once using the discriminator, and pick Dog.
238 | Then in Dog, we will make an instance of the
239 | Animal class but this time we won't travel
240 | through its discriminator because we passed in
241 | _visited_composed_classes = (Animal,)
242 | data (CategoriesData): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/categories_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.category import Category
35 |
36 | globals()["Category"] = Category
37 |
38 |
39 | class CategoriesData(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "last_modified_date": (datetime,), # noqa: E501
101 | "inserted": ([Category],), # noqa: E501
102 | "updated": ([Category],), # noqa: E501
103 | "deleted": ([str],), # noqa: E501
104 | }
105 |
106 | @cached_property
107 | def discriminator():
108 | return None
109 |
110 | attribute_map = {
111 | "last_modified_date": "last_modified_date", # noqa: E501
112 | "inserted": "inserted", # noqa: E501
113 | "updated": "updated", # noqa: E501
114 | "deleted": "deleted", # noqa: E501
115 | }
116 |
117 | read_only_vars = {}
118 |
119 | _composed_schemas = {}
120 |
121 | @classmethod
122 | @convert_js_args_to_python_args
123 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
124 | """CategoriesData - a model defined in OpenAPI
125 |
126 | Keyword Args:
127 | _check_type (bool): if True, values for parameters in openapi_types
128 | will be type checked and a TypeError will be
129 | raised if the wrong type is input.
130 | Defaults to True
131 | _path_to_item (tuple/list): This is a list of keys or values to
132 | drill down to the model in received_data
133 | when deserializing a response
134 | _spec_property_naming (bool): True if the variable names in the input data
135 | are serialized names, as specified in the OpenAPI document.
136 | False if the variable names in the input data
137 | are pythonic names, e.g. snake case (default)
138 | _configuration (Configuration): the instance to use when
139 | deserializing a file_type parameter.
140 | If passed, type conversion is attempted
141 | If omitted no type conversion is done.
142 | _visited_composed_classes (tuple): This stores a tuple of
143 | classes that we have traveled through so that
144 | if we see that class again we will not use its
145 | discriminator again.
146 | When traveling through a discriminator, the
147 | composed schema that is
148 | is traveled through is added to this set.
149 | For example if Animal has a discriminator
150 | petType and we pass in "Dog", and the class Dog
151 | allOf includes Animal, we move through Animal
152 | once using the discriminator, and pick Dog.
153 | Then in Dog, we will make an instance of the
154 | Animal class but this time we won't travel
155 | through its discriminator because we passed in
156 | _visited_composed_classes = (Animal,)
157 | last_modified_date (datetime): [optional] # noqa: E501
158 | inserted ([Category]): [optional] # noqa: E501
159 | updated ([Category]): [optional] # noqa: E501
160 | deleted ([str]): [optional] # noqa: E501
161 | """
162 |
163 | _check_type = kwargs.pop("_check_type", True)
164 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
165 | _path_to_item = kwargs.pop("_path_to_item", ())
166 | _configuration = kwargs.pop("_configuration", None)
167 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
168 |
169 | self = super(OpenApiModel, cls).__new__(cls)
170 |
171 | if args:
172 | for arg in args:
173 | if isinstance(arg, dict):
174 | kwargs.update(arg)
175 | else:
176 | raise ApiTypeError(
177 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
178 | % (
179 | args,
180 | self.__class__.__name__,
181 | ),
182 | path_to_item=_path_to_item,
183 | valid_classes=(self.__class__,),
184 | )
185 |
186 | self._data_store = {}
187 | self._check_type = _check_type
188 | self._spec_property_naming = _spec_property_naming
189 | self._path_to_item = _path_to_item
190 | self._configuration = _configuration
191 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192 |
193 | for var_name, var_value in kwargs.items():
194 | if (
195 | var_name not in self.attribute_map
196 | and self._configuration is not None
197 | and self._configuration.discard_unknown_keys
198 | and self.additional_properties_type is None
199 | ):
200 | # discard variable.
201 | continue
202 | setattr(self, var_name, var_value)
203 | return self
204 |
205 | required_properties = set(
206 | [
207 | "_data_store",
208 | "_check_type",
209 | "_spec_property_naming",
210 | "_path_to_item",
211 | "_configuration",
212 | "_visited_composed_classes",
213 | ]
214 | )
215 |
216 | @convert_js_args_to_python_args
217 | def __init__(self, *args, **kwargs): # noqa: E501
218 | """CategoriesData - a model defined in OpenAPI
219 |
220 | Keyword Args:
221 | _check_type (bool): if True, values for parameters in openapi_types
222 | will be type checked and a TypeError will be
223 | raised if the wrong type is input.
224 | Defaults to True
225 | _path_to_item (tuple/list): This is a list of keys or values to
226 | drill down to the model in received_data
227 | when deserializing a response
228 | _spec_property_naming (bool): True if the variable names in the input data
229 | are serialized names, as specified in the OpenAPI document.
230 | False if the variable names in the input data
231 | are pythonic names, e.g. snake case (default)
232 | _configuration (Configuration): the instance to use when
233 | deserializing a file_type parameter.
234 | If passed, type conversion is attempted
235 | If omitted no type conversion is done.
236 | _visited_composed_classes (tuple): This stores a tuple of
237 | classes that we have traveled through so that
238 | if we see that class again we will not use its
239 | discriminator again.
240 | When traveling through a discriminator, the
241 | composed schema that is
242 | is traveled through is added to this set.
243 | For example if Animal has a discriminator
244 | petType and we pass in "Dog", and the class Dog
245 | allOf includes Animal, we move through Animal
246 | once using the discriminator, and pick Dog.
247 | Then in Dog, we will make an instance of the
248 | Animal class but this time we won't travel
249 | through its discriminator because we passed in
250 | _visited_composed_classes = (Animal,)
251 | last_modified_date (datetime): [optional] # noqa: E501
252 | inserted ([Category]): [optional] # noqa: E501
253 | updated ([Category]): [optional] # noqa: E501
254 | deleted ([str]): [optional] # noqa: E501
255 | """
256 |
257 | _check_type = kwargs.pop("_check_type", True)
258 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
259 | _path_to_item = kwargs.pop("_path_to_item", ())
260 | _configuration = kwargs.pop("_configuration", None)
261 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
262 |
263 | if args:
264 | for arg in args:
265 | if isinstance(arg, dict):
266 | kwargs.update(arg)
267 | else:
268 | raise ApiTypeError(
269 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
270 | % (
271 | args,
272 | self.__class__.__name__,
273 | ),
274 | path_to_item=_path_to_item,
275 | valid_classes=(self.__class__,),
276 | )
277 |
278 | self._data_store = {}
279 | self._check_type = _check_type
280 | self._spec_property_naming = _spec_property_naming
281 | self._path_to_item = _path_to_item
282 | self._configuration = _configuration
283 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284 |
285 | for var_name, var_value in kwargs.items():
286 | if (
287 | var_name not in self.attribute_map
288 | and self._configuration is not None
289 | and self._configuration.discard_unknown_keys
290 | and self.additional_properties_type is None
291 | ):
292 | # discard variable.
293 | continue
294 | setattr(self, var_name, var_value)
295 | if var_name in self.read_only_vars:
296 | raise ApiAttributeError(
297 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
298 | f"class with read only attributes."
299 | )
300 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/countries.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.countries_data import CountriesData
35 |
36 | globals()["CountriesData"] = CountriesData
37 |
38 |
39 | class Countries(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "data": (CountriesData,), # noqa: E501
101 | }
102 |
103 | @cached_property
104 | def discriminator():
105 | return None
106 |
107 | attribute_map = {
108 | "data": "data", # noqa: E501
109 | }
110 |
111 | read_only_vars = {}
112 |
113 | _composed_schemas = {}
114 |
115 | @classmethod
116 | @convert_js_args_to_python_args
117 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118 | """Countries - a model defined in OpenAPI
119 |
120 | Keyword Args:
121 | _check_type (bool): if True, values for parameters in openapi_types
122 | will be type checked and a TypeError will be
123 | raised if the wrong type is input.
124 | Defaults to True
125 | _path_to_item (tuple/list): This is a list of keys or values to
126 | drill down to the model in received_data
127 | when deserializing a response
128 | _spec_property_naming (bool): True if the variable names in the input data
129 | are serialized names, as specified in the OpenAPI document.
130 | False if the variable names in the input data
131 | are pythonic names, e.g. snake case (default)
132 | _configuration (Configuration): the instance to use when
133 | deserializing a file_type parameter.
134 | If passed, type conversion is attempted
135 | If omitted no type conversion is done.
136 | _visited_composed_classes (tuple): This stores a tuple of
137 | classes that we have traveled through so that
138 | if we see that class again we will not use its
139 | discriminator again.
140 | When traveling through a discriminator, the
141 | composed schema that is
142 | is traveled through is added to this set.
143 | For example if Animal has a discriminator
144 | petType and we pass in "Dog", and the class Dog
145 | allOf includes Animal, we move through Animal
146 | once using the discriminator, and pick Dog.
147 | Then in Dog, we will make an instance of the
148 | Animal class but this time we won't travel
149 | through its discriminator because we passed in
150 | _visited_composed_classes = (Animal,)
151 | data (CountriesData): [optional] # noqa: E501
152 | """
153 |
154 | _check_type = kwargs.pop("_check_type", True)
155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
156 | _path_to_item = kwargs.pop("_path_to_item", ())
157 | _configuration = kwargs.pop("_configuration", None)
158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
159 |
160 | self = super(OpenApiModel, cls).__new__(cls)
161 |
162 | if args:
163 | for arg in args:
164 | if isinstance(arg, dict):
165 | kwargs.update(arg)
166 | else:
167 | raise ApiTypeError(
168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
169 | % (
170 | args,
171 | self.__class__.__name__,
172 | ),
173 | path_to_item=_path_to_item,
174 | valid_classes=(self.__class__,),
175 | )
176 |
177 | self._data_store = {}
178 | self._check_type = _check_type
179 | self._spec_property_naming = _spec_property_naming
180 | self._path_to_item = _path_to_item
181 | self._configuration = _configuration
182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183 |
184 | for var_name, var_value in kwargs.items():
185 | if (
186 | var_name not in self.attribute_map
187 | and self._configuration is not None
188 | and self._configuration.discard_unknown_keys
189 | and self.additional_properties_type is None
190 | ):
191 | # discard variable.
192 | continue
193 | setattr(self, var_name, var_value)
194 | return self
195 |
196 | required_properties = set(
197 | [
198 | "_data_store",
199 | "_check_type",
200 | "_spec_property_naming",
201 | "_path_to_item",
202 | "_configuration",
203 | "_visited_composed_classes",
204 | ]
205 | )
206 |
207 | @convert_js_args_to_python_args
208 | def __init__(self, *args, **kwargs): # noqa: E501
209 | """Countries - a model defined in OpenAPI
210 |
211 | Keyword Args:
212 | _check_type (bool): if True, values for parameters in openapi_types
213 | will be type checked and a TypeError will be
214 | raised if the wrong type is input.
215 | Defaults to True
216 | _path_to_item (tuple/list): This is a list of keys or values to
217 | drill down to the model in received_data
218 | when deserializing a response
219 | _spec_property_naming (bool): True if the variable names in the input data
220 | are serialized names, as specified in the OpenAPI document.
221 | False if the variable names in the input data
222 | are pythonic names, e.g. snake case (default)
223 | _configuration (Configuration): the instance to use when
224 | deserializing a file_type parameter.
225 | If passed, type conversion is attempted
226 | If omitted no type conversion is done.
227 | _visited_composed_classes (tuple): This stores a tuple of
228 | classes that we have traveled through so that
229 | if we see that class again we will not use its
230 | discriminator again.
231 | When traveling through a discriminator, the
232 | composed schema that is
233 | is traveled through is added to this set.
234 | For example if Animal has a discriminator
235 | petType and we pass in "Dog", and the class Dog
236 | allOf includes Animal, we move through Animal
237 | once using the discriminator, and pick Dog.
238 | Then in Dog, we will make an instance of the
239 | Animal class but this time we won't travel
240 | through its discriminator because we passed in
241 | _visited_composed_classes = (Animal,)
242 | data (CountriesData): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/countries_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.country import Country
35 |
36 | globals()["Country"] = Country
37 |
38 |
39 | class CountriesData(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "last_modified_date": (datetime,), # noqa: E501
101 | "inserted": ([Country],), # noqa: E501
102 | "updated": ([Country],), # noqa: E501
103 | "deleted": ([str],), # noqa: E501
104 | }
105 |
106 | @cached_property
107 | def discriminator():
108 | return None
109 |
110 | attribute_map = {
111 | "last_modified_date": "last_modified_date", # noqa: E501
112 | "inserted": "inserted", # noqa: E501
113 | "updated": "updated", # noqa: E501
114 | "deleted": "deleted", # noqa: E501
115 | }
116 |
117 | read_only_vars = {}
118 |
119 | _composed_schemas = {}
120 |
121 | @classmethod
122 | @convert_js_args_to_python_args
123 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
124 | """CountriesData - a model defined in OpenAPI
125 |
126 | Keyword Args:
127 | _check_type (bool): if True, values for parameters in openapi_types
128 | will be type checked and a TypeError will be
129 | raised if the wrong type is input.
130 | Defaults to True
131 | _path_to_item (tuple/list): This is a list of keys or values to
132 | drill down to the model in received_data
133 | when deserializing a response
134 | _spec_property_naming (bool): True if the variable names in the input data
135 | are serialized names, as specified in the OpenAPI document.
136 | False if the variable names in the input data
137 | are pythonic names, e.g. snake case (default)
138 | _configuration (Configuration): the instance to use when
139 | deserializing a file_type parameter.
140 | If passed, type conversion is attempted
141 | If omitted no type conversion is done.
142 | _visited_composed_classes (tuple): This stores a tuple of
143 | classes that we have traveled through so that
144 | if we see that class again we will not use its
145 | discriminator again.
146 | When traveling through a discriminator, the
147 | composed schema that is
148 | is traveled through is added to this set.
149 | For example if Animal has a discriminator
150 | petType and we pass in "Dog", and the class Dog
151 | allOf includes Animal, we move through Animal
152 | once using the discriminator, and pick Dog.
153 | Then in Dog, we will make an instance of the
154 | Animal class but this time we won't travel
155 | through its discriminator because we passed in
156 | _visited_composed_classes = (Animal,)
157 | last_modified_date (datetime): [optional] # noqa: E501
158 | inserted ([Country]): [optional] # noqa: E501
159 | updated ([Country]): [optional] # noqa: E501
160 | deleted ([str]): [optional] # noqa: E501
161 | """
162 |
163 | _check_type = kwargs.pop("_check_type", True)
164 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
165 | _path_to_item = kwargs.pop("_path_to_item", ())
166 | _configuration = kwargs.pop("_configuration", None)
167 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
168 |
169 | self = super(OpenApiModel, cls).__new__(cls)
170 |
171 | if args:
172 | for arg in args:
173 | if isinstance(arg, dict):
174 | kwargs.update(arg)
175 | else:
176 | raise ApiTypeError(
177 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
178 | % (
179 | args,
180 | self.__class__.__name__,
181 | ),
182 | path_to_item=_path_to_item,
183 | valid_classes=(self.__class__,),
184 | )
185 |
186 | self._data_store = {}
187 | self._check_type = _check_type
188 | self._spec_property_naming = _spec_property_naming
189 | self._path_to_item = _path_to_item
190 | self._configuration = _configuration
191 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192 |
193 | for var_name, var_value in kwargs.items():
194 | if (
195 | var_name not in self.attribute_map
196 | and self._configuration is not None
197 | and self._configuration.discard_unknown_keys
198 | and self.additional_properties_type is None
199 | ):
200 | # discard variable.
201 | continue
202 | setattr(self, var_name, var_value)
203 | return self
204 |
205 | required_properties = set(
206 | [
207 | "_data_store",
208 | "_check_type",
209 | "_spec_property_naming",
210 | "_path_to_item",
211 | "_configuration",
212 | "_visited_composed_classes",
213 | ]
214 | )
215 |
216 | @convert_js_args_to_python_args
217 | def __init__(self, *args, **kwargs): # noqa: E501
218 | """CountriesData - a model defined in OpenAPI
219 |
220 | Keyword Args:
221 | _check_type (bool): if True, values for parameters in openapi_types
222 | will be type checked and a TypeError will be
223 | raised if the wrong type is input.
224 | Defaults to True
225 | _path_to_item (tuple/list): This is a list of keys or values to
226 | drill down to the model in received_data
227 | when deserializing a response
228 | _spec_property_naming (bool): True if the variable names in the input data
229 | are serialized names, as specified in the OpenAPI document.
230 | False if the variable names in the input data
231 | are pythonic names, e.g. snake case (default)
232 | _configuration (Configuration): the instance to use when
233 | deserializing a file_type parameter.
234 | If passed, type conversion is attempted
235 | If omitted no type conversion is done.
236 | _visited_composed_classes (tuple): This stores a tuple of
237 | classes that we have traveled through so that
238 | if we see that class again we will not use its
239 | discriminator again.
240 | When traveling through a discriminator, the
241 | composed schema that is
242 | is traveled through is added to this set.
243 | For example if Animal has a discriminator
244 | petType and we pass in "Dog", and the class Dog
245 | allOf includes Animal, we move through Animal
246 | once using the discriminator, and pick Dog.
247 | Then in Dog, we will make an instance of the
248 | Animal class but this time we won't travel
249 | through its discriminator because we passed in
250 | _visited_composed_classes = (Animal,)
251 | last_modified_date (datetime): [optional] # noqa: E501
252 | inserted ([Country]): [optional] # noqa: E501
253 | updated ([Country]): [optional] # noqa: E501
254 | deleted ([str]): [optional] # noqa: E501
255 | """
256 |
257 | _check_type = kwargs.pop("_check_type", True)
258 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
259 | _path_to_item = kwargs.pop("_path_to_item", ())
260 | _configuration = kwargs.pop("_configuration", None)
261 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
262 |
263 | if args:
264 | for arg in args:
265 | if isinstance(arg, dict):
266 | kwargs.update(arg)
267 | else:
268 | raise ApiTypeError(
269 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
270 | % (
271 | args,
272 | self.__class__.__name__,
273 | ),
274 | path_to_item=_path_to_item,
275 | valid_classes=(self.__class__,),
276 | )
277 |
278 | self._data_store = {}
279 | self._check_type = _check_type
280 | self._spec_property_naming = _spec_property_naming
281 | self._path_to_item = _path_to_item
282 | self._configuration = _configuration
283 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284 |
285 | for var_name, var_value in kwargs.items():
286 | if (
287 | var_name not in self.attribute_map
288 | and self._configuration is not None
289 | and self._configuration.discard_unknown_keys
290 | and self.additional_properties_type is None
291 | ):
292 | # discard variable.
293 | continue
294 | setattr(self, var_name, var_value)
295 | if var_name in self.read_only_vars:
296 | raise ApiAttributeError(
297 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
298 | f"class with read only attributes."
299 | )
300 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/exchange_rates.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.exchange_rates_kurse import ExchangeRatesKurse
35 |
36 | globals()["ExchangeRatesKurse"] = ExchangeRatesKurse
37 |
38 |
39 | class ExchangeRates(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "kurse": ([ExchangeRatesKurse],), # noqa: E501
101 | }
102 |
103 | @cached_property
104 | def discriminator():
105 | return None
106 |
107 | attribute_map = {
108 | "kurse": "kurse", # noqa: E501
109 | }
110 |
111 | read_only_vars = {}
112 |
113 | _composed_schemas = {}
114 |
115 | @classmethod
116 | @convert_js_args_to_python_args
117 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118 | """ExchangeRates - a model defined in OpenAPI
119 |
120 | Keyword Args:
121 | _check_type (bool): if True, values for parameters in openapi_types
122 | will be type checked and a TypeError will be
123 | raised if the wrong type is input.
124 | Defaults to True
125 | _path_to_item (tuple/list): This is a list of keys or values to
126 | drill down to the model in received_data
127 | when deserializing a response
128 | _spec_property_naming (bool): True if the variable names in the input data
129 | are serialized names, as specified in the OpenAPI document.
130 | False if the variable names in the input data
131 | are pythonic names, e.g. snake case (default)
132 | _configuration (Configuration): the instance to use when
133 | deserializing a file_type parameter.
134 | If passed, type conversion is attempted
135 | If omitted no type conversion is done.
136 | _visited_composed_classes (tuple): This stores a tuple of
137 | classes that we have traveled through so that
138 | if we see that class again we will not use its
139 | discriminator again.
140 | When traveling through a discriminator, the
141 | composed schema that is
142 | is traveled through is added to this set.
143 | For example if Animal has a discriminator
144 | petType and we pass in "Dog", and the class Dog
145 | allOf includes Animal, we move through Animal
146 | once using the discriminator, and pick Dog.
147 | Then in Dog, we will make an instance of the
148 | Animal class but this time we won't travel
149 | through its discriminator because we passed in
150 | _visited_composed_classes = (Animal,)
151 | kurse ([ExchangeRatesKurse]): [optional] # noqa: E501
152 | """
153 |
154 | _check_type = kwargs.pop("_check_type", True)
155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
156 | _path_to_item = kwargs.pop("_path_to_item", ())
157 | _configuration = kwargs.pop("_configuration", None)
158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
159 |
160 | self = super(OpenApiModel, cls).__new__(cls)
161 |
162 | if args:
163 | for arg in args:
164 | if isinstance(arg, dict):
165 | kwargs.update(arg)
166 | else:
167 | raise ApiTypeError(
168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
169 | % (
170 | args,
171 | self.__class__.__name__,
172 | ),
173 | path_to_item=_path_to_item,
174 | valid_classes=(self.__class__,),
175 | )
176 |
177 | self._data_store = {}
178 | self._check_type = _check_type
179 | self._spec_property_naming = _spec_property_naming
180 | self._path_to_item = _path_to_item
181 | self._configuration = _configuration
182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183 |
184 | for var_name, var_value in kwargs.items():
185 | if (
186 | var_name not in self.attribute_map
187 | and self._configuration is not None
188 | and self._configuration.discard_unknown_keys
189 | and self.additional_properties_type is None
190 | ):
191 | # discard variable.
192 | continue
193 | setattr(self, var_name, var_value)
194 | return self
195 |
196 | required_properties = set(
197 | [
198 | "_data_store",
199 | "_check_type",
200 | "_spec_property_naming",
201 | "_path_to_item",
202 | "_configuration",
203 | "_visited_composed_classes",
204 | ]
205 | )
206 |
207 | @convert_js_args_to_python_args
208 | def __init__(self, *args, **kwargs): # noqa: E501
209 | """ExchangeRates - a model defined in OpenAPI
210 |
211 | Keyword Args:
212 | _check_type (bool): if True, values for parameters in openapi_types
213 | will be type checked and a TypeError will be
214 | raised if the wrong type is input.
215 | Defaults to True
216 | _path_to_item (tuple/list): This is a list of keys or values to
217 | drill down to the model in received_data
218 | when deserializing a response
219 | _spec_property_naming (bool): True if the variable names in the input data
220 | are serialized names, as specified in the OpenAPI document.
221 | False if the variable names in the input data
222 | are pythonic names, e.g. snake case (default)
223 | _configuration (Configuration): the instance to use when
224 | deserializing a file_type parameter.
225 | If passed, type conversion is attempted
226 | If omitted no type conversion is done.
227 | _visited_composed_classes (tuple): This stores a tuple of
228 | classes that we have traveled through so that
229 | if we see that class again we will not use its
230 | discriminator again.
231 | When traveling through a discriminator, the
232 | composed schema that is
233 | is traveled through is added to this set.
234 | For example if Animal has a discriminator
235 | petType and we pass in "Dog", and the class Dog
236 | allOf includes Animal, we move through Animal
237 | once using the discriminator, and pick Dog.
238 | Then in Dog, we will make an instance of the
239 | Animal class but this time we won't travel
240 | through its discriminator because we passed in
241 | _visited_composed_classes = (Animal,)
242 | kurse ([ExchangeRatesKurse]): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/exchange_rates_kurse.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | class ExchangeRatesKurse(ModelNormal):
34 | """NOTE: This class is auto generated by OpenAPI Generator.
35 | Ref: https://openapi-generator.tech
36 |
37 | Do not edit the class manually.
38 |
39 | Attributes:
40 | allowed_values (dict): The key is the tuple path to the attribute
41 | and the for var_name this is (var_name,). The value is a dict
42 | with a capitalized key describing the allowed value and an allowed
43 | value. These dicts store the allowed enum values.
44 | attribute_map (dict): The key is attribute name
45 | and the value is json key in definition.
46 | discriminator_value_class_map (dict): A dict to go from the discriminator
47 | variable value to the discriminator class name.
48 | validations (dict): The key is the tuple path to the attribute
49 | and the for var_name this is (var_name,). The value is a dict
50 | that stores validations for max_length, min_length, max_items,
51 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52 | inclusive_minimum, and regex.
53 | additional_properties_type (tuple): A tuple of classes accepted
54 | as additional properties values.
55 | """
56 |
57 | allowed_values = {}
58 |
59 | validations = {}
60 |
61 | @cached_property
62 | def additional_properties_type():
63 | """
64 | This must be a method because a model may have properties that are
65 | of type self, this must run after the class is loaded
66 | """
67 | return (
68 | bool,
69 | date,
70 | datetime,
71 | dict,
72 | float,
73 | int,
74 | list,
75 | str,
76 | none_type,
77 | ) # noqa: E501
78 |
79 | _nullable = False
80 |
81 | @cached_property
82 | def openapi_types():
83 | """
84 | This must be a method because a model may have properties that are
85 | of type self, this must run after the class is loaded
86 |
87 | Returns
88 | openapi_types (dict): The key is attribute name
89 | and the value is attribute type.
90 | """
91 | return {
92 | "kurswert": (float,), # noqa: E501
93 | "iso3": (str,), # noqa: E501
94 | "name": (str,), # noqa: E501
95 | }
96 |
97 | @cached_property
98 | def discriminator():
99 | return None
100 |
101 | attribute_map = {
102 | "kurswert": "kurswert", # noqa: E501
103 | "iso3": "iso3", # noqa: E501
104 | "name": "name", # noqa: E501
105 | }
106 |
107 | read_only_vars = {}
108 |
109 | _composed_schemas = {}
110 |
111 | @classmethod
112 | @convert_js_args_to_python_args
113 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114 | """ExchangeRatesKurse - a model defined in OpenAPI
115 |
116 | Keyword Args:
117 | _check_type (bool): if True, values for parameters in openapi_types
118 | will be type checked and a TypeError will be
119 | raised if the wrong type is input.
120 | Defaults to True
121 | _path_to_item (tuple/list): This is a list of keys or values to
122 | drill down to the model in received_data
123 | when deserializing a response
124 | _spec_property_naming (bool): True if the variable names in the input data
125 | are serialized names, as specified in the OpenAPI document.
126 | False if the variable names in the input data
127 | are pythonic names, e.g. snake case (default)
128 | _configuration (Configuration): the instance to use when
129 | deserializing a file_type parameter.
130 | If passed, type conversion is attempted
131 | If omitted no type conversion is done.
132 | _visited_composed_classes (tuple): This stores a tuple of
133 | classes that we have traveled through so that
134 | if we see that class again we will not use its
135 | discriminator again.
136 | When traveling through a discriminator, the
137 | composed schema that is
138 | is traveled through is added to this set.
139 | For example if Animal has a discriminator
140 | petType and we pass in "Dog", and the class Dog
141 | allOf includes Animal, we move through Animal
142 | once using the discriminator, and pick Dog.
143 | Then in Dog, we will make an instance of the
144 | Animal class but this time we won't travel
145 | through its discriminator because we passed in
146 | _visited_composed_classes = (Animal,)
147 | kurswert (float): [optional] # noqa: E501
148 | iso3 (str): [optional] # noqa: E501
149 | name (str): [optional] # noqa: E501
150 | """
151 |
152 | _check_type = kwargs.pop("_check_type", True)
153 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
154 | _path_to_item = kwargs.pop("_path_to_item", ())
155 | _configuration = kwargs.pop("_configuration", None)
156 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
157 |
158 | self = super(OpenApiModel, cls).__new__(cls)
159 |
160 | if args:
161 | for arg in args:
162 | if isinstance(arg, dict):
163 | kwargs.update(arg)
164 | else:
165 | raise ApiTypeError(
166 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
167 | % (
168 | args,
169 | self.__class__.__name__,
170 | ),
171 | path_to_item=_path_to_item,
172 | valid_classes=(self.__class__,),
173 | )
174 |
175 | self._data_store = {}
176 | self._check_type = _check_type
177 | self._spec_property_naming = _spec_property_naming
178 | self._path_to_item = _path_to_item
179 | self._configuration = _configuration
180 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181 |
182 | for var_name, var_value in kwargs.items():
183 | if (
184 | var_name not in self.attribute_map
185 | and self._configuration is not None
186 | and self._configuration.discard_unknown_keys
187 | and self.additional_properties_type is None
188 | ):
189 | # discard variable.
190 | continue
191 | setattr(self, var_name, var_value)
192 | return self
193 |
194 | required_properties = set(
195 | [
196 | "_data_store",
197 | "_check_type",
198 | "_spec_property_naming",
199 | "_path_to_item",
200 | "_configuration",
201 | "_visited_composed_classes",
202 | ]
203 | )
204 |
205 | @convert_js_args_to_python_args
206 | def __init__(self, *args, **kwargs): # noqa: E501
207 | """ExchangeRatesKurse - a model defined in OpenAPI
208 |
209 | Keyword Args:
210 | _check_type (bool): if True, values for parameters in openapi_types
211 | will be type checked and a TypeError will be
212 | raised if the wrong type is input.
213 | Defaults to True
214 | _path_to_item (tuple/list): This is a list of keys or values to
215 | drill down to the model in received_data
216 | when deserializing a response
217 | _spec_property_naming (bool): True if the variable names in the input data
218 | are serialized names, as specified in the OpenAPI document.
219 | False if the variable names in the input data
220 | are pythonic names, e.g. snake case (default)
221 | _configuration (Configuration): the instance to use when
222 | deserializing a file_type parameter.
223 | If passed, type conversion is attempted
224 | If omitted no type conversion is done.
225 | _visited_composed_classes (tuple): This stores a tuple of
226 | classes that we have traveled through so that
227 | if we see that class again we will not use its
228 | discriminator again.
229 | When traveling through a discriminator, the
230 | composed schema that is
231 | is traveled through is added to this set.
232 | For example if Animal has a discriminator
233 | petType and we pass in "Dog", and the class Dog
234 | allOf includes Animal, we move through Animal
235 | once using the discriminator, and pick Dog.
236 | Then in Dog, we will make an instance of the
237 | Animal class but this time we won't travel
238 | through its discriminator because we passed in
239 | _visited_composed_classes = (Animal,)
240 | kurswert (float): [optional] # noqa: E501
241 | iso3 (str): [optional] # noqa: E501
242 | name (str): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/product_groups.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.product_groups_data import ProductGroupsData
35 |
36 | globals()["ProductGroupsData"] = ProductGroupsData
37 |
38 |
39 | class ProductGroups(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "data": (ProductGroupsData,), # noqa: E501
101 | }
102 |
103 | @cached_property
104 | def discriminator():
105 | return None
106 |
107 | attribute_map = {
108 | "data": "data", # noqa: E501
109 | }
110 |
111 | read_only_vars = {}
112 |
113 | _composed_schemas = {}
114 |
115 | @classmethod
116 | @convert_js_args_to_python_args
117 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118 | """ProductGroups - a model defined in OpenAPI
119 |
120 | Keyword Args:
121 | _check_type (bool): if True, values for parameters in openapi_types
122 | will be type checked and a TypeError will be
123 | raised if the wrong type is input.
124 | Defaults to True
125 | _path_to_item (tuple/list): This is a list of keys or values to
126 | drill down to the model in received_data
127 | when deserializing a response
128 | _spec_property_naming (bool): True if the variable names in the input data
129 | are serialized names, as specified in the OpenAPI document.
130 | False if the variable names in the input data
131 | are pythonic names, e.g. snake case (default)
132 | _configuration (Configuration): the instance to use when
133 | deserializing a file_type parameter.
134 | If passed, type conversion is attempted
135 | If omitted no type conversion is done.
136 | _visited_composed_classes (tuple): This stores a tuple of
137 | classes that we have traveled through so that
138 | if we see that class again we will not use its
139 | discriminator again.
140 | When traveling through a discriminator, the
141 | composed schema that is
142 | is traveled through is added to this set.
143 | For example if Animal has a discriminator
144 | petType and we pass in "Dog", and the class Dog
145 | allOf includes Animal, we move through Animal
146 | once using the discriminator, and pick Dog.
147 | Then in Dog, we will make an instance of the
148 | Animal class but this time we won't travel
149 | through its discriminator because we passed in
150 | _visited_composed_classes = (Animal,)
151 | data (ProductGroupsData): [optional] # noqa: E501
152 | """
153 |
154 | _check_type = kwargs.pop("_check_type", True)
155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
156 | _path_to_item = kwargs.pop("_path_to_item", ())
157 | _configuration = kwargs.pop("_configuration", None)
158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
159 |
160 | self = super(OpenApiModel, cls).__new__(cls)
161 |
162 | if args:
163 | for arg in args:
164 | if isinstance(arg, dict):
165 | kwargs.update(arg)
166 | else:
167 | raise ApiTypeError(
168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
169 | % (
170 | args,
171 | self.__class__.__name__,
172 | ),
173 | path_to_item=_path_to_item,
174 | valid_classes=(self.__class__,),
175 | )
176 |
177 | self._data_store = {}
178 | self._check_type = _check_type
179 | self._spec_property_naming = _spec_property_naming
180 | self._path_to_item = _path_to_item
181 | self._configuration = _configuration
182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183 |
184 | for var_name, var_value in kwargs.items():
185 | if (
186 | var_name not in self.attribute_map
187 | and self._configuration is not None
188 | and self._configuration.discard_unknown_keys
189 | and self.additional_properties_type is None
190 | ):
191 | # discard variable.
192 | continue
193 | setattr(self, var_name, var_value)
194 | return self
195 |
196 | required_properties = set(
197 | [
198 | "_data_store",
199 | "_check_type",
200 | "_spec_property_naming",
201 | "_path_to_item",
202 | "_configuration",
203 | "_visited_composed_classes",
204 | ]
205 | )
206 |
207 | @convert_js_args_to_python_args
208 | def __init__(self, *args, **kwargs): # noqa: E501
209 | """ProductGroups - a model defined in OpenAPI
210 |
211 | Keyword Args:
212 | _check_type (bool): if True, values for parameters in openapi_types
213 | will be type checked and a TypeError will be
214 | raised if the wrong type is input.
215 | Defaults to True
216 | _path_to_item (tuple/list): This is a list of keys or values to
217 | drill down to the model in received_data
218 | when deserializing a response
219 | _spec_property_naming (bool): True if the variable names in the input data
220 | are serialized names, as specified in the OpenAPI document.
221 | False if the variable names in the input data
222 | are pythonic names, e.g. snake case (default)
223 | _configuration (Configuration): the instance to use when
224 | deserializing a file_type parameter.
225 | If passed, type conversion is attempted
226 | If omitted no type conversion is done.
227 | _visited_composed_classes (tuple): This stores a tuple of
228 | classes that we have traveled through so that
229 | if we see that class again we will not use its
230 | discriminator again.
231 | When traveling through a discriminator, the
232 | composed schema that is
233 | is traveled through is added to this set.
234 | For example if Animal has a discriminator
235 | petType and we pass in "Dog", and the class Dog
236 | allOf includes Animal, we move through Animal
237 | once using the discriminator, and pick Dog.
238 | Then in Dog, we will make an instance of the
239 | Animal class but this time we won't travel
240 | through its discriminator because we passed in
241 | _visited_composed_classes = (Animal,)
242 | data (ProductGroupsData): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/product_unit.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | class ProductUnit(ModelNormal):
34 | """NOTE: This class is auto generated by OpenAPI Generator.
35 | Ref: https://openapi-generator.tech
36 |
37 | Do not edit the class manually.
38 |
39 | Attributes:
40 | allowed_values (dict): The key is the tuple path to the attribute
41 | and the for var_name this is (var_name,). The value is a dict
42 | with a capitalized key describing the allowed value and an allowed
43 | value. These dicts store the allowed enum values.
44 | attribute_map (dict): The key is attribute name
45 | and the value is json key in definition.
46 | discriminator_value_class_map (dict): A dict to go from the discriminator
47 | variable value to the discriminator class name.
48 | validations (dict): The key is the tuple path to the attribute
49 | and the for var_name this is (var_name,). The value is a dict
50 | that stores validations for max_length, min_length, max_items,
51 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52 | inclusive_minimum, and regex.
53 | additional_properties_type (tuple): A tuple of classes accepted
54 | as additional properties values.
55 | """
56 |
57 | allowed_values = {}
58 |
59 | validations = {}
60 |
61 | @cached_property
62 | def additional_properties_type():
63 | """
64 | This must be a method because a model may have properties that are
65 | of type self, this must run after the class is loaded
66 | """
67 | return (
68 | bool,
69 | date,
70 | datetime,
71 | dict,
72 | float,
73 | int,
74 | list,
75 | str,
76 | none_type,
77 | ) # noqa: E501
78 |
79 | _nullable = False
80 |
81 | @cached_property
82 | def openapi_types():
83 | """
84 | This must be a method because a model may have properties that are
85 | of type self, this must run after the class is loaded
86 |
87 | Returns
88 | openapi_types (dict): The key is attribute name
89 | and the value is attribute type.
90 | """
91 | return {
92 | "id": (str,), # noqa: E501
93 | "type": (str,), # noqa: E501
94 | "title": (str,), # noqa: E501
95 | "modification_date": (datetime,), # noqa: E501
96 | }
97 |
98 | @cached_property
99 | def discriminator():
100 | return None
101 |
102 | attribute_map = {
103 | "id": "id", # noqa: E501
104 | "type": "type", # noqa: E501
105 | "title": "title", # noqa: E501
106 | "modification_date": "modification_date", # noqa: E501
107 | }
108 |
109 | read_only_vars = {}
110 |
111 | _composed_schemas = {}
112 |
113 | @classmethod
114 | @convert_js_args_to_python_args
115 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
116 | """ProductUnit - a model defined in OpenAPI
117 |
118 | Keyword Args:
119 | _check_type (bool): if True, values for parameters in openapi_types
120 | will be type checked and a TypeError will be
121 | raised if the wrong type is input.
122 | Defaults to True
123 | _path_to_item (tuple/list): This is a list of keys or values to
124 | drill down to the model in received_data
125 | when deserializing a response
126 | _spec_property_naming (bool): True if the variable names in the input data
127 | are serialized names, as specified in the OpenAPI document.
128 | False if the variable names in the input data
129 | are pythonic names, e.g. snake case (default)
130 | _configuration (Configuration): the instance to use when
131 | deserializing a file_type parameter.
132 | If passed, type conversion is attempted
133 | If omitted no type conversion is done.
134 | _visited_composed_classes (tuple): This stores a tuple of
135 | classes that we have traveled through so that
136 | if we see that class again we will not use its
137 | discriminator again.
138 | When traveling through a discriminator, the
139 | composed schema that is
140 | is traveled through is added to this set.
141 | For example if Animal has a discriminator
142 | petType and we pass in "Dog", and the class Dog
143 | allOf includes Animal, we move through Animal
144 | once using the discriminator, and pick Dog.
145 | Then in Dog, we will make an instance of the
146 | Animal class but this time we won't travel
147 | through its discriminator because we passed in
148 | _visited_composed_classes = (Animal,)
149 | id (str): [optional] # noqa: E501
150 | type (str): [optional] # noqa: E501
151 | title (str): [optional] # noqa: E501
152 | modification_date (datetime): [optional] # noqa: E501
153 | """
154 |
155 | _check_type = kwargs.pop("_check_type", True)
156 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
157 | _path_to_item = kwargs.pop("_path_to_item", ())
158 | _configuration = kwargs.pop("_configuration", None)
159 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
160 |
161 | self = super(OpenApiModel, cls).__new__(cls)
162 |
163 | if args:
164 | for arg in args:
165 | if isinstance(arg, dict):
166 | kwargs.update(arg)
167 | else:
168 | raise ApiTypeError(
169 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
170 | % (
171 | args,
172 | self.__class__.__name__,
173 | ),
174 | path_to_item=_path_to_item,
175 | valid_classes=(self.__class__,),
176 | )
177 |
178 | self._data_store = {}
179 | self._check_type = _check_type
180 | self._spec_property_naming = _spec_property_naming
181 | self._path_to_item = _path_to_item
182 | self._configuration = _configuration
183 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
184 |
185 | for var_name, var_value in kwargs.items():
186 | if (
187 | var_name not in self.attribute_map
188 | and self._configuration is not None
189 | and self._configuration.discard_unknown_keys
190 | and self.additional_properties_type is None
191 | ):
192 | # discard variable.
193 | continue
194 | setattr(self, var_name, var_value)
195 | return self
196 |
197 | required_properties = set(
198 | [
199 | "_data_store",
200 | "_check_type",
201 | "_spec_property_naming",
202 | "_path_to_item",
203 | "_configuration",
204 | "_visited_composed_classes",
205 | ]
206 | )
207 |
208 | @convert_js_args_to_python_args
209 | def __init__(self, *args, **kwargs): # noqa: E501
210 | """ProductUnit - a model defined in OpenAPI
211 |
212 | Keyword Args:
213 | _check_type (bool): if True, values for parameters in openapi_types
214 | will be type checked and a TypeError will be
215 | raised if the wrong type is input.
216 | Defaults to True
217 | _path_to_item (tuple/list): This is a list of keys or values to
218 | drill down to the model in received_data
219 | when deserializing a response
220 | _spec_property_naming (bool): True if the variable names in the input data
221 | are serialized names, as specified in the OpenAPI document.
222 | False if the variable names in the input data
223 | are pythonic names, e.g. snake case (default)
224 | _configuration (Configuration): the instance to use when
225 | deserializing a file_type parameter.
226 | If passed, type conversion is attempted
227 | If omitted no type conversion is done.
228 | _visited_composed_classes (tuple): This stores a tuple of
229 | classes that we have traveled through so that
230 | if we see that class again we will not use its
231 | discriminator again.
232 | When traveling through a discriminator, the
233 | composed schema that is
234 | is traveled through is added to this set.
235 | For example if Animal has a discriminator
236 | petType and we pass in "Dog", and the class Dog
237 | allOf includes Animal, we move through Animal
238 | once using the discriminator, and pick Dog.
239 | Then in Dog, we will make an instance of the
240 | Animal class but this time we won't travel
241 | through its discriminator because we passed in
242 | _visited_composed_classes = (Animal,)
243 | id (str): [optional] # noqa: E501
244 | type (str): [optional] # noqa: E501
245 | title (str): [optional] # noqa: E501
246 | modification_date (datetime): [optional] # noqa: E501
247 | """
248 |
249 | _check_type = kwargs.pop("_check_type", True)
250 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
251 | _path_to_item = kwargs.pop("_path_to_item", ())
252 | _configuration = kwargs.pop("_configuration", None)
253 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
254 |
255 | if args:
256 | for arg in args:
257 | if isinstance(arg, dict):
258 | kwargs.update(arg)
259 | else:
260 | raise ApiTypeError(
261 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
262 | % (
263 | args,
264 | self.__class__.__name__,
265 | ),
266 | path_to_item=_path_to_item,
267 | valid_classes=(self.__class__,),
268 | )
269 |
270 | self._data_store = {}
271 | self._check_type = _check_type
272 | self._spec_property_naming = _spec_property_naming
273 | self._path_to_item = _path_to_item
274 | self._configuration = _configuration
275 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
276 |
277 | for var_name, var_value in kwargs.items():
278 | if (
279 | var_name not in self.attribute_map
280 | and self._configuration is not None
281 | and self._configuration.discard_unknown_keys
282 | and self.additional_properties_type is None
283 | ):
284 | # discard variable.
285 | continue
286 | setattr(self, var_name, var_value)
287 | if var_name in self.read_only_vars:
288 | raise ApiAttributeError(
289 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
290 | f"class with read only attributes."
291 | )
292 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/product_units.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.product_units_data import ProductUnitsData
35 |
36 | globals()["ProductUnitsData"] = ProductUnitsData
37 |
38 |
39 | class ProductUnits(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "data": (ProductUnitsData,), # noqa: E501
101 | }
102 |
103 | @cached_property
104 | def discriminator():
105 | return None
106 |
107 | attribute_map = {
108 | "data": "data", # noqa: E501
109 | }
110 |
111 | read_only_vars = {}
112 |
113 | _composed_schemas = {}
114 |
115 | @classmethod
116 | @convert_js_args_to_python_args
117 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118 | """ProductUnits - a model defined in OpenAPI
119 |
120 | Keyword Args:
121 | _check_type (bool): if True, values for parameters in openapi_types
122 | will be type checked and a TypeError will be
123 | raised if the wrong type is input.
124 | Defaults to True
125 | _path_to_item (tuple/list): This is a list of keys or values to
126 | drill down to the model in received_data
127 | when deserializing a response
128 | _spec_property_naming (bool): True if the variable names in the input data
129 | are serialized names, as specified in the OpenAPI document.
130 | False if the variable names in the input data
131 | are pythonic names, e.g. snake case (default)
132 | _configuration (Configuration): the instance to use when
133 | deserializing a file_type parameter.
134 | If passed, type conversion is attempted
135 | If omitted no type conversion is done.
136 | _visited_composed_classes (tuple): This stores a tuple of
137 | classes that we have traveled through so that
138 | if we see that class again we will not use its
139 | discriminator again.
140 | When traveling through a discriminator, the
141 | composed schema that is
142 | is traveled through is added to this set.
143 | For example if Animal has a discriminator
144 | petType and we pass in "Dog", and the class Dog
145 | allOf includes Animal, we move through Animal
146 | once using the discriminator, and pick Dog.
147 | Then in Dog, we will make an instance of the
148 | Animal class but this time we won't travel
149 | through its discriminator because we passed in
150 | _visited_composed_classes = (Animal,)
151 | data (ProductUnitsData): [optional] # noqa: E501
152 | """
153 |
154 | _check_type = kwargs.pop("_check_type", True)
155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
156 | _path_to_item = kwargs.pop("_path_to_item", ())
157 | _configuration = kwargs.pop("_configuration", None)
158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
159 |
160 | self = super(OpenApiModel, cls).__new__(cls)
161 |
162 | if args:
163 | for arg in args:
164 | if isinstance(arg, dict):
165 | kwargs.update(arg)
166 | else:
167 | raise ApiTypeError(
168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
169 | % (
170 | args,
171 | self.__class__.__name__,
172 | ),
173 | path_to_item=_path_to_item,
174 | valid_classes=(self.__class__,),
175 | )
176 |
177 | self._data_store = {}
178 | self._check_type = _check_type
179 | self._spec_property_naming = _spec_property_naming
180 | self._path_to_item = _path_to_item
181 | self._configuration = _configuration
182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183 |
184 | for var_name, var_value in kwargs.items():
185 | if (
186 | var_name not in self.attribute_map
187 | and self._configuration is not None
188 | and self._configuration.discard_unknown_keys
189 | and self.additional_properties_type is None
190 | ):
191 | # discard variable.
192 | continue
193 | setattr(self, var_name, var_value)
194 | return self
195 |
196 | required_properties = set(
197 | [
198 | "_data_store",
199 | "_check_type",
200 | "_spec_property_naming",
201 | "_path_to_item",
202 | "_configuration",
203 | "_visited_composed_classes",
204 | ]
205 | )
206 |
207 | @convert_js_args_to_python_args
208 | def __init__(self, *args, **kwargs): # noqa: E501
209 | """ProductUnits - a model defined in OpenAPI
210 |
211 | Keyword Args:
212 | _check_type (bool): if True, values for parameters in openapi_types
213 | will be type checked and a TypeError will be
214 | raised if the wrong type is input.
215 | Defaults to True
216 | _path_to_item (tuple/list): This is a list of keys or values to
217 | drill down to the model in received_data
218 | when deserializing a response
219 | _spec_property_naming (bool): True if the variable names in the input data
220 | are serialized names, as specified in the OpenAPI document.
221 | False if the variable names in the input data
222 | are pythonic names, e.g. snake case (default)
223 | _configuration (Configuration): the instance to use when
224 | deserializing a file_type parameter.
225 | If passed, type conversion is attempted
226 | If omitted no type conversion is done.
227 | _visited_composed_classes (tuple): This stores a tuple of
228 | classes that we have traveled through so that
229 | if we see that class again we will not use its
230 | discriminator again.
231 | When traveling through a discriminator, the
232 | composed schema that is
233 | is traveled through is added to this set.
234 | For example if Animal has a discriminator
235 | petType and we pass in "Dog", and the class Dog
236 | allOf includes Animal, we move through Animal
237 | once using the discriminator, and pick Dog.
238 | Then in Dog, we will make an instance of the
239 | Animal class but this time we won't travel
240 | through its discriminator because we passed in
241 | _visited_composed_classes = (Animal,)
242 | data (ProductUnitsData): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/products.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.products_data import ProductsData
35 |
36 | globals()["ProductsData"] = ProductsData
37 |
38 |
39 | class Products(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "data": (ProductsData,), # noqa: E501
101 | }
102 |
103 | @cached_property
104 | def discriminator():
105 | return None
106 |
107 | attribute_map = {
108 | "data": "data", # noqa: E501
109 | }
110 |
111 | read_only_vars = {}
112 |
113 | _composed_schemas = {}
114 |
115 | @classmethod
116 | @convert_js_args_to_python_args
117 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118 | """Products - a model defined in OpenAPI
119 |
120 | Keyword Args:
121 | _check_type (bool): if True, values for parameters in openapi_types
122 | will be type checked and a TypeError will be
123 | raised if the wrong type is input.
124 | Defaults to True
125 | _path_to_item (tuple/list): This is a list of keys or values to
126 | drill down to the model in received_data
127 | when deserializing a response
128 | _spec_property_naming (bool): True if the variable names in the input data
129 | are serialized names, as specified in the OpenAPI document.
130 | False if the variable names in the input data
131 | are pythonic names, e.g. snake case (default)
132 | _configuration (Configuration): the instance to use when
133 | deserializing a file_type parameter.
134 | If passed, type conversion is attempted
135 | If omitted no type conversion is done.
136 | _visited_composed_classes (tuple): This stores a tuple of
137 | classes that we have traveled through so that
138 | if we see that class again we will not use its
139 | discriminator again.
140 | When traveling through a discriminator, the
141 | composed schema that is
142 | is traveled through is added to this set.
143 | For example if Animal has a discriminator
144 | petType and we pass in "Dog", and the class Dog
145 | allOf includes Animal, we move through Animal
146 | once using the discriminator, and pick Dog.
147 | Then in Dog, we will make an instance of the
148 | Animal class but this time we won't travel
149 | through its discriminator because we passed in
150 | _visited_composed_classes = (Animal,)
151 | data (ProductsData): [optional] # noqa: E501
152 | """
153 |
154 | _check_type = kwargs.pop("_check_type", True)
155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
156 | _path_to_item = kwargs.pop("_path_to_item", ())
157 | _configuration = kwargs.pop("_configuration", None)
158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
159 |
160 | self = super(OpenApiModel, cls).__new__(cls)
161 |
162 | if args:
163 | for arg in args:
164 | if isinstance(arg, dict):
165 | kwargs.update(arg)
166 | else:
167 | raise ApiTypeError(
168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
169 | % (
170 | args,
171 | self.__class__.__name__,
172 | ),
173 | path_to_item=_path_to_item,
174 | valid_classes=(self.__class__,),
175 | )
176 |
177 | self._data_store = {}
178 | self._check_type = _check_type
179 | self._spec_property_naming = _spec_property_naming
180 | self._path_to_item = _path_to_item
181 | self._configuration = _configuration
182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183 |
184 | for var_name, var_value in kwargs.items():
185 | if (
186 | var_name not in self.attribute_map
187 | and self._configuration is not None
188 | and self._configuration.discard_unknown_keys
189 | and self.additional_properties_type is None
190 | ):
191 | # discard variable.
192 | continue
193 | setattr(self, var_name, var_value)
194 | return self
195 |
196 | required_properties = set(
197 | [
198 | "_data_store",
199 | "_check_type",
200 | "_spec_property_naming",
201 | "_path_to_item",
202 | "_configuration",
203 | "_visited_composed_classes",
204 | ]
205 | )
206 |
207 | @convert_js_args_to_python_args
208 | def __init__(self, *args, **kwargs): # noqa: E501
209 | """Products - a model defined in OpenAPI
210 |
211 | Keyword Args:
212 | _check_type (bool): if True, values for parameters in openapi_types
213 | will be type checked and a TypeError will be
214 | raised if the wrong type is input.
215 | Defaults to True
216 | _path_to_item (tuple/list): This is a list of keys or values to
217 | drill down to the model in received_data
218 | when deserializing a response
219 | _spec_property_naming (bool): True if the variable names in the input data
220 | are serialized names, as specified in the OpenAPI document.
221 | False if the variable names in the input data
222 | are pythonic names, e.g. snake case (default)
223 | _configuration (Configuration): the instance to use when
224 | deserializing a file_type parameter.
225 | If passed, type conversion is attempted
226 | If omitted no type conversion is done.
227 | _visited_composed_classes (tuple): This stores a tuple of
228 | classes that we have traveled through so that
229 | if we see that class again we will not use its
230 | discriminator again.
231 | When traveling through a discriminator, the
232 | composed schema that is
233 | is traveled through is added to this set.
234 | For example if Animal has a discriminator
235 | petType and we pass in "Dog", and the class Dog
236 | allOf includes Animal, we move through Animal
237 | once using the discriminator, and pick Dog.
238 | Then in Dog, we will make an instance of the
239 | Animal class but this time we won't travel
240 | through its discriminator because we passed in
241 | _visited_composed_classes = (Animal,)
242 | data (ProductsData): [optional] # noqa: E501
243 | """
244 |
245 | _check_type = kwargs.pop("_check_type", True)
246 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
247 | _path_to_item = kwargs.pop("_path_to_item", ())
248 | _configuration = kwargs.pop("_configuration", None)
249 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
250 |
251 | if args:
252 | for arg in args:
253 | if isinstance(arg, dict):
254 | kwargs.update(arg)
255 | else:
256 | raise ApiTypeError(
257 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
258 | % (
259 | args,
260 | self.__class__.__name__,
261 | ),
262 | path_to_item=_path_to_item,
263 | valid_classes=(self.__class__,),
264 | )
265 |
266 | self._data_store = {}
267 | self._check_type = _check_type
268 | self._spec_property_naming = _spec_property_naming
269 | self._path_to_item = _path_to_item
270 | self._configuration = _configuration
271 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272 |
273 | for var_name, var_value in kwargs.items():
274 | if (
275 | var_name not in self.attribute_map
276 | and self._configuration is not None
277 | and self._configuration.discard_unknown_keys
278 | and self.additional_properties_type is None
279 | ):
280 | # discard variable.
281 | continue
282 | setattr(self, var_name, var_value)
283 | if var_name in self.read_only_vars:
284 | raise ApiAttributeError(
285 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286 | f"class with read only attributes."
287 | )
288 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/model/products_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import re # noqa: F401
13 | import sys # noqa: F401
14 |
15 | from deutschland.zoll.exceptions import ApiAttributeError
16 | from deutschland.zoll.model_utils import ( # noqa: F401
17 | ApiTypeError,
18 | ModelComposed,
19 | ModelNormal,
20 | ModelSimple,
21 | OpenApiModel,
22 | cached_property,
23 | change_keys_js_to_python,
24 | convert_js_args_to_python_args,
25 | date,
26 | datetime,
27 | file_type,
28 | none_type,
29 | validate_get_composed_info,
30 | )
31 |
32 |
33 | def lazy_import():
34 | from deutschland.zoll.model.product import Product
35 |
36 | globals()["Product"] = Product
37 |
38 |
39 | class ProductsData(ModelNormal):
40 | """NOTE: This class is auto generated by OpenAPI Generator.
41 | Ref: https://openapi-generator.tech
42 |
43 | Do not edit the class manually.
44 |
45 | Attributes:
46 | allowed_values (dict): The key is the tuple path to the attribute
47 | and the for var_name this is (var_name,). The value is a dict
48 | with a capitalized key describing the allowed value and an allowed
49 | value. These dicts store the allowed enum values.
50 | attribute_map (dict): The key is attribute name
51 | and the value is json key in definition.
52 | discriminator_value_class_map (dict): A dict to go from the discriminator
53 | variable value to the discriminator class name.
54 | validations (dict): The key is the tuple path to the attribute
55 | and the for var_name this is (var_name,). The value is a dict
56 | that stores validations for max_length, min_length, max_items,
57 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58 | inclusive_minimum, and regex.
59 | additional_properties_type (tuple): A tuple of classes accepted
60 | as additional properties values.
61 | """
62 |
63 | allowed_values = {}
64 |
65 | validations = {}
66 |
67 | @cached_property
68 | def additional_properties_type():
69 | """
70 | This must be a method because a model may have properties that are
71 | of type self, this must run after the class is loaded
72 | """
73 | lazy_import()
74 | return (
75 | bool,
76 | date,
77 | datetime,
78 | dict,
79 | float,
80 | int,
81 | list,
82 | str,
83 | none_type,
84 | ) # noqa: E501
85 |
86 | _nullable = False
87 |
88 | @cached_property
89 | def openapi_types():
90 | """
91 | This must be a method because a model may have properties that are
92 | of type self, this must run after the class is loaded
93 |
94 | Returns
95 | openapi_types (dict): The key is attribute name
96 | and the value is attribute type.
97 | """
98 | lazy_import()
99 | return {
100 | "last_modified_date": (datetime,), # noqa: E501
101 | "inserted": ([Product],), # noqa: E501
102 | "updated": ([Product],), # noqa: E501
103 | "deleted": ([str],), # noqa: E501
104 | }
105 |
106 | @cached_property
107 | def discriminator():
108 | return None
109 |
110 | attribute_map = {
111 | "last_modified_date": "last_modified_date", # noqa: E501
112 | "inserted": "inserted", # noqa: E501
113 | "updated": "updated", # noqa: E501
114 | "deleted": "deleted", # noqa: E501
115 | }
116 |
117 | read_only_vars = {}
118 |
119 | _composed_schemas = {}
120 |
121 | @classmethod
122 | @convert_js_args_to_python_args
123 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
124 | """ProductsData - a model defined in OpenAPI
125 |
126 | Keyword Args:
127 | _check_type (bool): if True, values for parameters in openapi_types
128 | will be type checked and a TypeError will be
129 | raised if the wrong type is input.
130 | Defaults to True
131 | _path_to_item (tuple/list): This is a list of keys or values to
132 | drill down to the model in received_data
133 | when deserializing a response
134 | _spec_property_naming (bool): True if the variable names in the input data
135 | are serialized names, as specified in the OpenAPI document.
136 | False if the variable names in the input data
137 | are pythonic names, e.g. snake case (default)
138 | _configuration (Configuration): the instance to use when
139 | deserializing a file_type parameter.
140 | If passed, type conversion is attempted
141 | If omitted no type conversion is done.
142 | _visited_composed_classes (tuple): This stores a tuple of
143 | classes that we have traveled through so that
144 | if we see that class again we will not use its
145 | discriminator again.
146 | When traveling through a discriminator, the
147 | composed schema that is
148 | is traveled through is added to this set.
149 | For example if Animal has a discriminator
150 | petType and we pass in "Dog", and the class Dog
151 | allOf includes Animal, we move through Animal
152 | once using the discriminator, and pick Dog.
153 | Then in Dog, we will make an instance of the
154 | Animal class but this time we won't travel
155 | through its discriminator because we passed in
156 | _visited_composed_classes = (Animal,)
157 | last_modified_date (datetime): [optional] # noqa: E501
158 | inserted ([Product]): [optional] # noqa: E501
159 | updated ([Product]): [optional] # noqa: E501
160 | deleted ([str]): [optional] # noqa: E501
161 | """
162 |
163 | _check_type = kwargs.pop("_check_type", True)
164 | _spec_property_naming = kwargs.pop("_spec_property_naming", True)
165 | _path_to_item = kwargs.pop("_path_to_item", ())
166 | _configuration = kwargs.pop("_configuration", None)
167 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
168 |
169 | self = super(OpenApiModel, cls).__new__(cls)
170 |
171 | if args:
172 | for arg in args:
173 | if isinstance(arg, dict):
174 | kwargs.update(arg)
175 | else:
176 | raise ApiTypeError(
177 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
178 | % (
179 | args,
180 | self.__class__.__name__,
181 | ),
182 | path_to_item=_path_to_item,
183 | valid_classes=(self.__class__,),
184 | )
185 |
186 | self._data_store = {}
187 | self._check_type = _check_type
188 | self._spec_property_naming = _spec_property_naming
189 | self._path_to_item = _path_to_item
190 | self._configuration = _configuration
191 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192 |
193 | for var_name, var_value in kwargs.items():
194 | if (
195 | var_name not in self.attribute_map
196 | and self._configuration is not None
197 | and self._configuration.discard_unknown_keys
198 | and self.additional_properties_type is None
199 | ):
200 | # discard variable.
201 | continue
202 | setattr(self, var_name, var_value)
203 | return self
204 |
205 | required_properties = set(
206 | [
207 | "_data_store",
208 | "_check_type",
209 | "_spec_property_naming",
210 | "_path_to_item",
211 | "_configuration",
212 | "_visited_composed_classes",
213 | ]
214 | )
215 |
216 | @convert_js_args_to_python_args
217 | def __init__(self, *args, **kwargs): # noqa: E501
218 | """ProductsData - a model defined in OpenAPI
219 |
220 | Keyword Args:
221 | _check_type (bool): if True, values for parameters in openapi_types
222 | will be type checked and a TypeError will be
223 | raised if the wrong type is input.
224 | Defaults to True
225 | _path_to_item (tuple/list): This is a list of keys or values to
226 | drill down to the model in received_data
227 | when deserializing a response
228 | _spec_property_naming (bool): True if the variable names in the input data
229 | are serialized names, as specified in the OpenAPI document.
230 | False if the variable names in the input data
231 | are pythonic names, e.g. snake case (default)
232 | _configuration (Configuration): the instance to use when
233 | deserializing a file_type parameter.
234 | If passed, type conversion is attempted
235 | If omitted no type conversion is done.
236 | _visited_composed_classes (tuple): This stores a tuple of
237 | classes that we have traveled through so that
238 | if we see that class again we will not use its
239 | discriminator again.
240 | When traveling through a discriminator, the
241 | composed schema that is
242 | is traveled through is added to this set.
243 | For example if Animal has a discriminator
244 | petType and we pass in "Dog", and the class Dog
245 | allOf includes Animal, we move through Animal
246 | once using the discriminator, and pick Dog.
247 | Then in Dog, we will make an instance of the
248 | Animal class but this time we won't travel
249 | through its discriminator because we passed in
250 | _visited_composed_classes = (Animal,)
251 | last_modified_date (datetime): [optional] # noqa: E501
252 | inserted ([Product]): [optional] # noqa: E501
253 | updated ([Product]): [optional] # noqa: E501
254 | deleted ([str]): [optional] # noqa: E501
255 | """
256 |
257 | _check_type = kwargs.pop("_check_type", True)
258 | _spec_property_naming = kwargs.pop("_spec_property_naming", False)
259 | _path_to_item = kwargs.pop("_path_to_item", ())
260 | _configuration = kwargs.pop("_configuration", None)
261 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
262 |
263 | if args:
264 | for arg in args:
265 | if isinstance(arg, dict):
266 | kwargs.update(arg)
267 | else:
268 | raise ApiTypeError(
269 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
270 | % (
271 | args,
272 | self.__class__.__name__,
273 | ),
274 | path_to_item=_path_to_item,
275 | valid_classes=(self.__class__,),
276 | )
277 |
278 | self._data_store = {}
279 | self._check_type = _check_type
280 | self._spec_property_naming = _spec_property_naming
281 | self._path_to_item = _path_to_item
282 | self._configuration = _configuration
283 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284 |
285 | for var_name, var_value in kwargs.items():
286 | if (
287 | var_name not in self.attribute_map
288 | and self._configuration is not None
289 | and self._configuration.discard_unknown_keys
290 | and self.additional_properties_type is None
291 | ):
292 | # discard variable.
293 | continue
294 | setattr(self, var_name, var_value)
295 | if var_name in self.read_only_vars:
296 | raise ApiAttributeError(
297 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
298 | f"class with read only attributes."
299 | )
300 |
--------------------------------------------------------------------------------
/python-client/deutschland/zoll/models/__init__.py:
--------------------------------------------------------------------------------
1 | # flake8: noqa
2 |
3 | # import all models into this package
4 | # if you have many models here with many references from one model to another this may
5 | # raise a RecursionError
6 | # to avoid this, import only the models that you directly need like:
7 | # from from deutschland.zoll.model.pet import Pet
8 | # or import this package, but before doing it, use:
9 | # import sys
10 | # sys.setrecursionlimit(n)
11 |
12 | from deutschland.zoll.model.categories import Categories
13 | from deutschland.zoll.model.categories_data import CategoriesData
14 | from deutschland.zoll.model.category import Category
15 | from deutschland.zoll.model.countries import Countries
16 | from deutschland.zoll.model.countries_data import CountriesData
17 | from deutschland.zoll.model.country import Country
18 | from deutschland.zoll.model.exchange_rates import ExchangeRates
19 | from deutschland.zoll.model.exchange_rates_kurse import ExchangeRatesKurse
20 | from deutschland.zoll.model.product import Product
21 | from deutschland.zoll.model.product_group import ProductGroup
22 | from deutschland.zoll.model.product_groups import ProductGroups
23 | from deutschland.zoll.model.product_groups_data import ProductGroupsData
24 | from deutschland.zoll.model.product_unit import ProductUnit
25 | from deutschland.zoll.model.product_units import ProductUnits
26 | from deutschland.zoll.model.product_units_data import ProductUnitsData
27 | from deutschland.zoll.model.products import Products
28 | from deutschland.zoll.model.products_data import ProductsData
29 |
--------------------------------------------------------------------------------
/python-client/docs/Categories.md:
--------------------------------------------------------------------------------
1 | # Categories
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**CategoriesData**](CategoriesData.md) | | [optional]
8 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9 |
10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/python-client/docs/CategoriesData.md:
--------------------------------------------------------------------------------
1 | # CategoriesData
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **last_modified_date** | **datetime** | | [optional]
8 | **inserted** | [**[Category]**](Category.md) | | [optional]
9 | **updated** | [**[Category]**](Category.md) | | [optional]
10 | **deleted** | **[str]** | | [optional]
11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12 |
13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14 |
15 |
16 |
--------------------------------------------------------------------------------
/python-client/docs/Category.md:
--------------------------------------------------------------------------------
1 | # Category
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **str** | | [optional]
8 | **title** | **str** | | [optional]
9 | **image** | **str, none_type** | | [optional]
10 | **alttext** | **str** | | [optional]
11 | **description_short** | **str** | | [optional]
12 | **special** | **bool** | | [optional]
13 | **modification_date** | **datetime** | | [optional]
14 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
15 |
16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17 |
18 |
19 |
--------------------------------------------------------------------------------
/python-client/docs/Countries.md:
--------------------------------------------------------------------------------
1 | # Countries
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**CountriesData**](CountriesData.md) | | [optional]
8 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9 |
10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/python-client/docs/CountriesData.md:
--------------------------------------------------------------------------------
1 | # CountriesData
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **last_modified_date** | **datetime** | | [optional]
8 | **inserted** | [**[Country]**](Country.md) | | [optional]
9 | **updated** | [**[Country]**](Country.md) | | [optional]
10 | **deleted** | **[str]** | | [optional]
11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12 |
13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14 |
15 |
16 |
--------------------------------------------------------------------------------
/python-client/docs/Country.md:
--------------------------------------------------------------------------------
1 | # Country
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **str** | | [optional]
8 | **title** | **str** | | [optional]
9 | **subtitle** | **str** | | [optional]
10 | **image** | **str** | | [optional]
11 | **fulltitle** | **str** | | [optional]
12 | **code_2** | **str** | | [optional]
13 | **code_3** | **str** | | [optional]
14 | **eu** | **bool** | | [optional]
15 | **special_zone** | **bool** | | [optional]
16 | **calc_zoll** | **bool** | | [optional]
17 | **calc_eu_st** | **bool** | | [optional]
18 | **modification_date** | **datetime** | | [optional]
19 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
20 |
21 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22 |
23 |
24 |
--------------------------------------------------------------------------------
/python-client/docs/ExchangeRates.md:
--------------------------------------------------------------------------------
1 | # ExchangeRates
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **kurse** | [**[ExchangeRatesKurse]**](ExchangeRatesKurse.md) | | [optional]
8 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9 |
10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/python-client/docs/ExchangeRatesKurse.md:
--------------------------------------------------------------------------------
1 | # ExchangeRatesKurse
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **kurswert** | **float** | | [optional]
8 | **iso3** | **str** | | [optional]
9 | **name** | **str** | | [optional]
10 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
11 |
12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13 |
14 |
15 |
--------------------------------------------------------------------------------
/python-client/docs/Product.md:
--------------------------------------------------------------------------------
1 | # Product
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **str** | | [optional]
8 | **title** | **str** | | [optional]
9 | **category_id** | **str** | | [optional]
10 | **product_tags** | **str** | | [optional]
11 | **image** | **str** | | [optional]
12 | **description_short** | **str** | | [optional]
13 | **description_non_eu** | **str** | | [optional]
14 | **zollsatz** | **float** | | [optional]
15 | **eu_st** | **float** | | [optional]
16 | **max_flat_tax_amount** | **int** | | [optional]
17 | **exclude_from_calculation** | **bool** | | [optional]
18 | **modification_date** | **datetime** | | [optional]
19 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
20 |
21 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22 |
23 |
24 |
--------------------------------------------------------------------------------
/python-client/docs/ProductGroup.md:
--------------------------------------------------------------------------------
1 | # ProductGroup
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **str** | | [optional]
8 | **type** | **str** | | [optional]
9 | **title** | **str** | | [optional]
10 | **subtitle** | **str** | | [optional]
11 | **non_eu** | **bool** | | [optional]
12 | **eu** | **bool** | | [optional]
13 | **under15** | **bool** | | [optional]
14 | **under17** | **bool** | | [optional]
15 | **over17** | **bool** | | [optional]
16 | **non_flight** | **bool** | | [optional]
17 | **flight** | **bool** | | [optional]
18 | **modification_date** | **datetime** | | [optional]
19 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
20 |
21 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22 |
23 |
24 |
--------------------------------------------------------------------------------
/python-client/docs/ProductGroups.md:
--------------------------------------------------------------------------------
1 | # ProductGroups
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**ProductGroupsData**](ProductGroupsData.md) | | [optional]
8 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9 |
10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/python-client/docs/ProductGroupsData.md:
--------------------------------------------------------------------------------
1 | # ProductGroupsData
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **last_modified_date** | **datetime** | | [optional]
8 | **inserted** | [**[ProductGroup]**](ProductGroup.md) | | [optional]
9 | **updated** | [**[ProductGroup]**](ProductGroup.md) | | [optional]
10 | **deleted** | **[str]** | | [optional]
11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12 |
13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14 |
15 |
16 |
--------------------------------------------------------------------------------
/python-client/docs/ProductUnit.md:
--------------------------------------------------------------------------------
1 | # ProductUnit
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **str** | | [optional]
8 | **type** | **str** | | [optional]
9 | **title** | **str** | | [optional]
10 | **modification_date** | **datetime** | | [optional]
11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12 |
13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14 |
15 |
16 |
--------------------------------------------------------------------------------
/python-client/docs/ProductUnits.md:
--------------------------------------------------------------------------------
1 | # ProductUnits
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**ProductUnitsData**](ProductUnitsData.md) | | [optional]
8 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9 |
10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/python-client/docs/ProductUnitsData.md:
--------------------------------------------------------------------------------
1 | # ProductUnitsData
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **last_modified_date** | **datetime** | | [optional]
8 | **inserted** | [**[ProductUnit]**](ProductUnit.md) | | [optional]
9 | **updated** | [**[ProductUnit]**](ProductUnit.md) | | [optional]
10 | **deleted** | **[str]** | | [optional]
11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12 |
13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14 |
15 |
16 |
--------------------------------------------------------------------------------
/python-client/docs/Products.md:
--------------------------------------------------------------------------------
1 | # Products
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**ProductsData**](ProductsData.md) | | [optional]
8 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9 |
10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/python-client/docs/ProductsData.md:
--------------------------------------------------------------------------------
1 | # ProductsData
2 |
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **last_modified_date** | **datetime** | | [optional]
8 | **inserted** | [**[Product]**](Product.md) | | [optional]
9 | **updated** | [**[Product]**](Product.md) | | [optional]
10 | **deleted** | **[str]** | | [optional]
11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12 |
13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14 |
15 |
16 |
--------------------------------------------------------------------------------
/python-client/pyproject.toml:
--------------------------------------------------------------------------------
1 | [tool]
2 | [tool.poetry]
3 | name = "de-zoll"
4 | version = "0.1.0"
5 | description = "Einfuhrzoll API"
6 | keywords = ["OpenAPI", "OpenAPI-Generator", "zoll", "App", "API"]
7 | homepage = "https://github.com/bundesAPI/zoll-api"
8 | authors = ["BundesAPI "]
9 | packages = [
10 | { include = "deutschland"}
11 | ]
12 | license = "Apache-2.0"
13 | readme = "README.md"
14 |
15 | [tool.poetry.dependencies]
16 | python = ">=3.6"
17 | python-dateutil = "*"
18 | urllib3 = ">=1.25.3"
19 |
20 | [tool.poetry.urls]
21 | "Bug Tracker" = "https://github.com/bundesAPI/zoll-api/issues"
22 |
23 | [tool.poetry.dev-dependencies]
24 | black = "^21.7b0"
25 | pytest = "^6.2.4"
26 |
27 |
28 | [build-system]
29 | requires = ["poetry-core>=1.0.0"]
30 | build-backend = "poetry.core.masonry.api"
31 |
32 |
--------------------------------------------------------------------------------
/python-client/requirements.txt:
--------------------------------------------------------------------------------
1 | python_dateutil >= 2.5.3
2 | setuptools >= 59.0.0
3 | urllib3 >= 1.25.3
4 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/Makefile:
--------------------------------------------------------------------------------
1 | # Minimal makefile for Sphinx documentation
2 | #
3 |
4 | # You can set these variables from the command line, and also
5 | # from the environment for the first two.
6 | SPHINXOPTS ?=
7 | SPHINXBUILD ?= sphinx-build
8 | SOURCEDIR = .
9 | BUILDDIR = _build
10 |
11 | # Put it first so that "make" without argument is like "make help".
12 | help:
13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14 |
15 | .PHONY: help Makefile
16 |
17 | # Catch-all target: route all unknown targets to Sphinx using the new
18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19 | %: Makefile
20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/conf.py:
--------------------------------------------------------------------------------
1 | import os
2 | import sys
3 |
4 | sys.path.insert(0, os.path.abspath("../"))
5 | # Configuration file for the Sphinx documentation builder.
6 | #
7 | # This file only contains a selection of the most common options. For a full
8 | # list see the documentation:
9 | # https://www.sphinx-doc.org/en/master/usage/configuration.html
10 |
11 | # -- Path setup --------------------------------------------------------------
12 |
13 | # If extensions (or modules to document with autodoc) are in another directory,
14 | # add these directories to sys.path here. If the directory is relative to the
15 | # documentation root, use os.path.abspath to make it absolute, like shown here.
16 | #
17 | # import os
18 | # import sys
19 | # sys.path.insert(0, os.path.abspath('.'))
20 |
21 |
22 | # -- Project information -----------------------------------------------------
23 |
24 | project = "zoll-api"
25 | copyright = "2022, BundesAPI"
26 | author = "BundesAPI"
27 |
28 | # The short X.Y version
29 | version = "0.1.0"
30 |
31 | # The full version, including alpha/beta/rc tags
32 | release = "0.1.0"
33 |
34 |
35 | # -- General configuration ---------------------------------------------------
36 |
37 | # Add any Sphinx extension module names here, as strings. They can be
38 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
39 | # ones.
40 | extensions = [
41 | "m2r2",
42 | "sphinx.ext.autodoc",
43 | "sphinx.ext.napoleon",
44 | "sphinx.ext.autosummary",
45 | ]
46 |
47 | # Add any paths that contain templates here, relative to this directory.
48 | templates_path = ["_templates"]
49 |
50 | # The language for content autogenerated by Sphinx. Refer to documentation
51 | # for a list of supported languages.
52 | #
53 | # This is also used if you do content translation via gettext catalogs.
54 | # Usually you set "language" from the command line for these cases.
55 | language = "de"
56 |
57 | # List of patterns, relative to source directory, that match files and
58 | # directories to ignore when looking for source files.
59 | # This pattern also affects html_static_path and html_extra_path.
60 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
61 |
62 |
63 | # -- Options for HTML output -------------------------------------------------
64 |
65 | # The theme to use for HTML and HTML Help pages. See the documentation for
66 | # a list of builtin themes.
67 | #
68 | html_theme = "alabaster"
69 |
70 | # Add any paths that contain custom static files (such as style sheets) here,
71 | # relative to this directory. They are copied after the builtin static files,
72 | # so a file named "default.css" will overwrite the builtin "default.css".
73 | html_static_path = ["_static"]
74 |
75 |
76 | # -- Extension configuration -------------------------------------------------
77 | source_extensions = [".rst", ".md"]
78 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/index.rst:
--------------------------------------------------------------------------------
1 | zoll-api Documentation
2 | ======================
3 |
4 | .. toctree::
5 | :glob:
6 |
7 | source/*
8 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/make.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | pushd %~dp0
4 |
5 | REM Command file for Sphinx documentation
6 |
7 | if "%SPHINXBUILD%" == "" (
8 | set SPHINXBUILD=sphinx-build
9 | )
10 | set SOURCEDIR=.
11 | set BUILDDIR=_build
12 |
13 | if "%1" == "" goto help
14 |
15 | %SPHINXBUILD% >NUL 2>NUL
16 | if errorlevel 9009 (
17 | echo.
18 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19 | echo.installed, then set the SPHINXBUILD environment variable to point
20 | echo.to the full path of the 'sphinx-build' executable. Alternatively you
21 | echo.may add the Sphinx directory to PATH.
22 | echo.
23 | echo.If you don't have Sphinx installed, grab it from
24 | echo.https://www.sphinx-doc.org/
25 | exit /b 1
26 | )
27 |
28 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29 | goto end
30 |
31 | :help
32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33 |
34 | :end
35 | popd
36 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/source/modules.rst:
--------------------------------------------------------------------------------
1 | deutschland
2 | ===========
3 |
4 | .. toctree::
5 | :maxdepth: 4
6 |
7 | zoll
8 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/source/zoll.api.rst:
--------------------------------------------------------------------------------
1 | zoll.api package
2 | ================
3 |
4 | Submodules
5 | ----------
6 |
7 | zoll.api.default\_api module
8 | ----------------------------
9 |
10 | .. automodule:: zoll.api.default_api
11 | :members:
12 | :undoc-members:
13 | :show-inheritance:
14 |
15 | Module contents
16 | ---------------
17 |
18 | .. automodule:: zoll.api
19 | :members:
20 | :undoc-members:
21 | :show-inheritance:
22 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/source/zoll.apis.rst:
--------------------------------------------------------------------------------
1 | zoll.apis package
2 | =================
3 |
4 | Module contents
5 | ---------------
6 |
7 | .. automodule:: zoll.apis
8 | :members:
9 | :undoc-members:
10 | :show-inheritance:
11 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/source/zoll.model.rst:
--------------------------------------------------------------------------------
1 | zoll.model package
2 | ==================
3 |
4 | Submodules
5 | ----------
6 |
7 | zoll.model.categories module
8 | ----------------------------
9 |
10 | .. automodule:: zoll.model.categories
11 | :members:
12 | :undoc-members:
13 | :show-inheritance:
14 |
15 | zoll.model.categories\_data module
16 | ----------------------------------
17 |
18 | .. automodule:: zoll.model.categories_data
19 | :members:
20 | :undoc-members:
21 | :show-inheritance:
22 |
23 | zoll.model.category module
24 | --------------------------
25 |
26 | .. automodule:: zoll.model.category
27 | :members:
28 | :undoc-members:
29 | :show-inheritance:
30 |
31 | zoll.model.countries module
32 | ---------------------------
33 |
34 | .. automodule:: zoll.model.countries
35 | :members:
36 | :undoc-members:
37 | :show-inheritance:
38 |
39 | zoll.model.countries\_data module
40 | ---------------------------------
41 |
42 | .. automodule:: zoll.model.countries_data
43 | :members:
44 | :undoc-members:
45 | :show-inheritance:
46 |
47 | zoll.model.country module
48 | -------------------------
49 |
50 | .. automodule:: zoll.model.country
51 | :members:
52 | :undoc-members:
53 | :show-inheritance:
54 |
55 | zoll.model.exchange\_rates module
56 | ---------------------------------
57 |
58 | .. automodule:: zoll.model.exchange_rates
59 | :members:
60 | :undoc-members:
61 | :show-inheritance:
62 |
63 | zoll.model.exchange\_rates\_kurse module
64 | ----------------------------------------
65 |
66 | .. automodule:: zoll.model.exchange_rates_kurse
67 | :members:
68 | :undoc-members:
69 | :show-inheritance:
70 |
71 | zoll.model.product module
72 | -------------------------
73 |
74 | .. automodule:: zoll.model.product
75 | :members:
76 | :undoc-members:
77 | :show-inheritance:
78 |
79 | zoll.model.product\_group module
80 | --------------------------------
81 |
82 | .. automodule:: zoll.model.product_group
83 | :members:
84 | :undoc-members:
85 | :show-inheritance:
86 |
87 | zoll.model.product\_groups module
88 | ---------------------------------
89 |
90 | .. automodule:: zoll.model.product_groups
91 | :members:
92 | :undoc-members:
93 | :show-inheritance:
94 |
95 | zoll.model.product\_groups\_data module
96 | ---------------------------------------
97 |
98 | .. automodule:: zoll.model.product_groups_data
99 | :members:
100 | :undoc-members:
101 | :show-inheritance:
102 |
103 | zoll.model.product\_unit module
104 | -------------------------------
105 |
106 | .. automodule:: zoll.model.product_unit
107 | :members:
108 | :undoc-members:
109 | :show-inheritance:
110 |
111 | zoll.model.product\_units module
112 | --------------------------------
113 |
114 | .. automodule:: zoll.model.product_units
115 | :members:
116 | :undoc-members:
117 | :show-inheritance:
118 |
119 | zoll.model.product\_units\_data module
120 | --------------------------------------
121 |
122 | .. automodule:: zoll.model.product_units_data
123 | :members:
124 | :undoc-members:
125 | :show-inheritance:
126 |
127 | zoll.model.products module
128 | --------------------------
129 |
130 | .. automodule:: zoll.model.products
131 | :members:
132 | :undoc-members:
133 | :show-inheritance:
134 |
135 | zoll.model.products\_data module
136 | --------------------------------
137 |
138 | .. automodule:: zoll.model.products_data
139 | :members:
140 | :undoc-members:
141 | :show-inheritance:
142 |
143 | Module contents
144 | ---------------
145 |
146 | .. automodule:: zoll.model
147 | :members:
148 | :undoc-members:
149 | :show-inheritance:
150 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/source/zoll.models.rst:
--------------------------------------------------------------------------------
1 | zoll.models package
2 | ===================
3 |
4 | Module contents
5 | ---------------
6 |
7 | .. automodule:: zoll.models
8 | :members:
9 | :undoc-members:
10 | :show-inheritance:
11 |
--------------------------------------------------------------------------------
/python-client/sphinx-docs/source/zoll.rst:
--------------------------------------------------------------------------------
1 | zoll package
2 | ============
3 |
4 | Subpackages
5 | -----------
6 |
7 | .. toctree::
8 | :maxdepth: 4
9 |
10 | zoll.api
11 | zoll.apis
12 | zoll.model
13 | zoll.models
14 |
15 | Submodules
16 | ----------
17 |
18 | zoll.api\_client module
19 | -----------------------
20 |
21 | .. automodule:: zoll.api_client
22 | :members:
23 | :undoc-members:
24 | :show-inheritance:
25 |
26 | zoll.configuration module
27 | -------------------------
28 |
29 | .. automodule:: zoll.configuration
30 | :members:
31 | :undoc-members:
32 | :show-inheritance:
33 |
34 | zoll.exceptions module
35 | ----------------------
36 |
37 | .. automodule:: zoll.exceptions
38 | :members:
39 | :undoc-members:
40 | :show-inheritance:
41 |
42 | zoll.model\_utils module
43 | ------------------------
44 |
45 | .. automodule:: zoll.model_utils
46 | :members:
47 | :undoc-members:
48 | :show-inheritance:
49 |
50 | zoll.rest module
51 | ----------------
52 |
53 | .. automodule:: zoll.rest
54 | :members:
55 | :undoc-members:
56 | :show-inheritance:
57 |
58 | Module contents
59 | ---------------
60 |
61 | .. automodule:: zoll
62 | :members:
63 | :undoc-members:
64 | :show-inheritance:
65 |
--------------------------------------------------------------------------------
/python-client/test-requirements.txt:
--------------------------------------------------------------------------------
1 | pytest-cov>=2.8.1
2 |
--------------------------------------------------------------------------------
/python-client/test/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bundesAPI/zoll-api/a6277ed7940272df4ecf100a6d77896efc6df130/python-client/test/__init__.py
--------------------------------------------------------------------------------
/python-client/test/test_categories.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.categories_data import CategoriesData
16 |
17 | from deutschland import zoll
18 |
19 | globals()["CategoriesData"] = CategoriesData
20 | from deutschland.zoll.model.categories import Categories
21 |
22 |
23 | class TestCategories(unittest.TestCase):
24 | """Categories unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testCategories(self):
33 | """Test Categories"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = Categories() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_categories_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.category import Category
16 |
17 | from deutschland import zoll
18 |
19 | globals()["Category"] = Category
20 | from deutschland.zoll.model.categories_data import CategoriesData
21 |
22 |
23 | class TestCategoriesData(unittest.TestCase):
24 | """CategoriesData unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testCategoriesData(self):
33 | """Test CategoriesData"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = CategoriesData() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_category.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.category import Category
16 |
17 | from deutschland import zoll
18 |
19 |
20 | class TestCategory(unittest.TestCase):
21 | """Category unit test stubs"""
22 |
23 | def setUp(self):
24 | pass
25 |
26 | def tearDown(self):
27 | pass
28 |
29 | def testCategory(self):
30 | """Test Category"""
31 | # FIXME: construct object with mandatory attributes with example values
32 | # model = Category() # noqa: E501
33 | pass
34 |
35 |
36 | if __name__ == "__main__":
37 | unittest.main()
38 |
--------------------------------------------------------------------------------
/python-client/test/test_countries.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.countries_data import CountriesData
16 |
17 | from deutschland import zoll
18 |
19 | globals()["CountriesData"] = CountriesData
20 | from deutschland.zoll.model.countries import Countries
21 |
22 |
23 | class TestCountries(unittest.TestCase):
24 | """Countries unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testCountries(self):
33 | """Test Countries"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = Countries() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_countries_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.country import Country
16 |
17 | from deutschland import zoll
18 |
19 | globals()["Country"] = Country
20 | from deutschland.zoll.model.countries_data import CountriesData
21 |
22 |
23 | class TestCountriesData(unittest.TestCase):
24 | """CountriesData unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testCountriesData(self):
33 | """Test CountriesData"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = CountriesData() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_country.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.country import Country
16 |
17 | from deutschland import zoll
18 |
19 |
20 | class TestCountry(unittest.TestCase):
21 | """Country unit test stubs"""
22 |
23 | def setUp(self):
24 | pass
25 |
26 | def tearDown(self):
27 | pass
28 |
29 | def testCountry(self):
30 | """Test Country"""
31 | # FIXME: construct object with mandatory attributes with example values
32 | # model = Country() # noqa: E501
33 | pass
34 |
35 |
36 | if __name__ == "__main__":
37 | unittest.main()
38 |
--------------------------------------------------------------------------------
/python-client/test/test_default_api.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import unittest
13 |
14 | from deutschland.zoll.api.default_api import DefaultApi # noqa: E501
15 |
16 | from deutschland import zoll
17 |
18 |
19 | class TestDefaultApi(unittest.TestCase):
20 | """DefaultApi unit test stubs"""
21 |
22 | def setUp(self):
23 | self.api = DefaultApi() # noqa: E501
24 |
25 | def tearDown(self):
26 | pass
27 |
28 | def test_kategorien_get(self):
29 | """Test case for kategorien_get
30 |
31 | Produktkategorien # noqa: E501
32 | """
33 | pass
34 |
35 | def test_kurse_app_kurs_export_txt_get(self):
36 | """Test case for kurse_app_kurs_export_txt_get
37 |
38 | Währungskurse # noqa: E501
39 | """
40 | pass
41 |
42 | def test_laender_get(self):
43 | """Test case for laender_get"""
44 | pass
45 |
46 | def test_produkte_get(self):
47 | """Test case for produkte_get
48 |
49 | Produkte # noqa: E501
50 | """
51 | pass
52 |
53 | def test_produkteinheiten_get(self):
54 | """Test case for produkteinheiten_get"""
55 | pass
56 |
57 | def test_produktgruppen_get(self):
58 | """Test case for produktgruppen_get"""
59 | pass
60 |
61 |
62 | if __name__ == "__main__":
63 | unittest.main()
64 |
--------------------------------------------------------------------------------
/python-client/test/test_exchange_rates.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.exchange_rates_kurse import ExchangeRatesKurse
16 |
17 | from deutschland import zoll
18 |
19 | globals()["ExchangeRatesKurse"] = ExchangeRatesKurse
20 | from deutschland.zoll.model.exchange_rates import ExchangeRates
21 |
22 |
23 | class TestExchangeRates(unittest.TestCase):
24 | """ExchangeRates unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testExchangeRates(self):
33 | """Test ExchangeRates"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = ExchangeRates() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_exchange_rates_kurse.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.exchange_rates_kurse import ExchangeRatesKurse
16 |
17 | from deutschland import zoll
18 |
19 |
20 | class TestExchangeRatesKurse(unittest.TestCase):
21 | """ExchangeRatesKurse unit test stubs"""
22 |
23 | def setUp(self):
24 | pass
25 |
26 | def tearDown(self):
27 | pass
28 |
29 | def testExchangeRatesKurse(self):
30 | """Test ExchangeRatesKurse"""
31 | # FIXME: construct object with mandatory attributes with example values
32 | # model = ExchangeRatesKurse() # noqa: E501
33 | pass
34 |
35 |
36 | if __name__ == "__main__":
37 | unittest.main()
38 |
--------------------------------------------------------------------------------
/python-client/test/test_product.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product import Product
16 |
17 | from deutschland import zoll
18 |
19 |
20 | class TestProduct(unittest.TestCase):
21 | """Product unit test stubs"""
22 |
23 | def setUp(self):
24 | pass
25 |
26 | def tearDown(self):
27 | pass
28 |
29 | def testProduct(self):
30 | """Test Product"""
31 | # FIXME: construct object with mandatory attributes with example values
32 | # model = Product() # noqa: E501
33 | pass
34 |
35 |
36 | if __name__ == "__main__":
37 | unittest.main()
38 |
--------------------------------------------------------------------------------
/python-client/test/test_product_group.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product_group import ProductGroup
16 |
17 | from deutschland import zoll
18 |
19 |
20 | class TestProductGroup(unittest.TestCase):
21 | """ProductGroup unit test stubs"""
22 |
23 | def setUp(self):
24 | pass
25 |
26 | def tearDown(self):
27 | pass
28 |
29 | def testProductGroup(self):
30 | """Test ProductGroup"""
31 | # FIXME: construct object with mandatory attributes with example values
32 | # model = ProductGroup() # noqa: E501
33 | pass
34 |
35 |
36 | if __name__ == "__main__":
37 | unittest.main()
38 |
--------------------------------------------------------------------------------
/python-client/test/test_product_groups.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product_groups_data import ProductGroupsData
16 |
17 | from deutschland import zoll
18 |
19 | globals()["ProductGroupsData"] = ProductGroupsData
20 | from deutschland.zoll.model.product_groups import ProductGroups
21 |
22 |
23 | class TestProductGroups(unittest.TestCase):
24 | """ProductGroups unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testProductGroups(self):
33 | """Test ProductGroups"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = ProductGroups() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_product_groups_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product_group import ProductGroup
16 |
17 | from deutschland import zoll
18 |
19 | globals()["ProductGroup"] = ProductGroup
20 | from deutschland.zoll.model.product_groups_data import ProductGroupsData
21 |
22 |
23 | class TestProductGroupsData(unittest.TestCase):
24 | """ProductGroupsData unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testProductGroupsData(self):
33 | """Test ProductGroupsData"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = ProductGroupsData() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_product_unit.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product_unit import ProductUnit
16 |
17 | from deutschland import zoll
18 |
19 |
20 | class TestProductUnit(unittest.TestCase):
21 | """ProductUnit unit test stubs"""
22 |
23 | def setUp(self):
24 | pass
25 |
26 | def tearDown(self):
27 | pass
28 |
29 | def testProductUnit(self):
30 | """Test ProductUnit"""
31 | # FIXME: construct object with mandatory attributes with example values
32 | # model = ProductUnit() # noqa: E501
33 | pass
34 |
35 |
36 | if __name__ == "__main__":
37 | unittest.main()
38 |
--------------------------------------------------------------------------------
/python-client/test/test_product_units.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product_units_data import ProductUnitsData
16 |
17 | from deutschland import zoll
18 |
19 | globals()["ProductUnitsData"] = ProductUnitsData
20 | from deutschland.zoll.model.product_units import ProductUnits
21 |
22 |
23 | class TestProductUnits(unittest.TestCase):
24 | """ProductUnits unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testProductUnits(self):
33 | """Test ProductUnits"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = ProductUnits() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_product_units_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product_unit import ProductUnit
16 |
17 | from deutschland import zoll
18 |
19 | globals()["ProductUnit"] = ProductUnit
20 | from deutschland.zoll.model.product_units_data import ProductUnitsData
21 |
22 |
23 | class TestProductUnitsData(unittest.TestCase):
24 | """ProductUnitsData unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testProductUnitsData(self):
33 | """Test ProductUnitsData"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = ProductUnitsData() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_products.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.products_data import ProductsData
16 |
17 | from deutschland import zoll
18 |
19 | globals()["ProductsData"] = ProductsData
20 | from deutschland.zoll.model.products import Products
21 |
22 |
23 | class TestProducts(unittest.TestCase):
24 | """Products unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testProducts(self):
33 | """Test Products"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = Products() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/test/test_products_data.py:
--------------------------------------------------------------------------------
1 | """
2 | Einfuhrzoll API
3 |
4 | Abfragen von Importzöllen und Wechselkursen # noqa: E501
5 |
6 | The version of the OpenAPI document: 1.0.0
7 | Contact: kontakt@bund.dev
8 | Generated by: https://openapi-generator.tech
9 | """
10 |
11 |
12 | import sys
13 | import unittest
14 |
15 | from deutschland.zoll.model.product import Product
16 |
17 | from deutschland import zoll
18 |
19 | globals()["Product"] = Product
20 | from deutschland.zoll.model.products_data import ProductsData
21 |
22 |
23 | class TestProductsData(unittest.TestCase):
24 | """ProductsData unit test stubs"""
25 |
26 | def setUp(self):
27 | pass
28 |
29 | def tearDown(self):
30 | pass
31 |
32 | def testProductsData(self):
33 | """Test ProductsData"""
34 | # FIXME: construct object with mandatory attributes with example values
35 | # model = ProductsData() # noqa: E501
36 | pass
37 |
38 |
39 | if __name__ == "__main__":
40 | unittest.main()
41 |
--------------------------------------------------------------------------------
/python-client/tox.ini:
--------------------------------------------------------------------------------
1 | [tox]
2 | envlist = py3
3 |
4 | [testenv]
5 | deps=-r{toxinidir}/requirements.txt
6 | -r{toxinidir}/test-requirements.txt
7 |
8 | commands=
9 | pytest --cov=zoll
10 |
--------------------------------------------------------------------------------