unzer 1.0.0.dev4__tar.gz → 1.0.0.dev6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. unzer-1.0.0.dev6/PKG-INFO +57 -0
  2. unzer-1.0.0.dev6/README.md +11 -0
  3. unzer-1.0.0.dev6/pyproject.toml +45 -0
  4. unzer-1.0.0.dev6/setup.cfg +4 -0
  5. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/__init__.py +1 -1
  6. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/error.py +1 -1
  7. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/bancontact.py +5 -2
  8. unzer-1.0.0.dev6/src/unzer.egg-info/PKG-INFO +57 -0
  9. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer.egg-info/SOURCES.txt +1 -2
  10. unzer-1.0.0.dev4/PKG-INFO +0 -22
  11. unzer-1.0.0.dev4/README.md +0 -2
  12. unzer-1.0.0.dev4/setup.cfg +0 -30
  13. unzer-1.0.0.dev4/setup.py +0 -3
  14. unzer-1.0.0.dev4/src/unzer.egg-info/PKG-INFO +0 -22
  15. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/LICENSE +0 -0
  16. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/client.py +0 -0
  17. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/__init__.py +0 -0
  18. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/address.py +0 -0
  19. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/base.py +0 -0
  20. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/basket.py +0 -0
  21. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/basketItem.py +0 -0
  22. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/customer.py +0 -0
  23. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment.py +0 -0
  24. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/__init__.py +0 -0
  25. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/abstract_paymenttype.py +0 -0
  26. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/card.py +0 -0
  27. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/ideal.py +0 -0
  28. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/paypal.py +0 -0
  29. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/payment_type/sofort.py +0 -0
  30. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/paymentpage.py +0 -0
  31. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/model/webhook.py +0 -0
  32. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer/utils.py +0 -0
  33. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer.egg-info/dependency_links.txt +0 -0
  34. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer.egg-info/requires.txt +0 -0
  35. {unzer-1.0.0.dev4 → unzer-1.0.0.dev6}/src/unzer.egg-info/top_level.txt +0 -0
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: unzer
3
+ Version: 1.0.0.dev6
4
+ Summary: An unofficial python SDK for unzer.com
5
+ Author-email: Sven Eberth <se@mausbrand.de>
6
+ Maintainer-email: Sven Eberth <se@mausbrand.de>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2021 mausbrand
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Repository, https://github.com/mausbrand/unzer-python-sdk.git
30
+ Project-URL: Bug Tracker, https://github.com/mausbrand/unzer-python-sdk/issues
31
+ Project-URL: Changelog, https://github.com/mausbrand/unzer-python-sdk/releases
32
+ Keywords: unzer,payment,sdk,client
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Operating System :: OS Independent
36
+ Classifier: Programming Language :: Python :: 3.10
37
+ Classifier: Programming Language :: Python :: 3.11
38
+ Classifier: Programming Language :: Python :: 3.12
39
+ Classifier: Programming Language :: Python :: 3.13
40
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
41
+ Requires-Python: >=3.10
42
+ Description-Content-Type: text/markdown
43
+ License-File: LICENSE
44
+ Requires-Dist: requests
45
+ Dynamic: license-file
46
+
47
+ <div align="center">
48
+ <h1>unzer-python-sdk</h1>
49
+ <a href="https://pypi.org/project/unzer/">
50
+ <img alt="Badge showing current PyPI version" title="PyPI" src="https://img.shields.io/pypi/v/unzer">
51
+ </a>
52
+ <a href="LICENSE">
53
+ <img src="https://img.shields.io/github/license/mausbrand/unzer-python-sdk" alt="Badge displaying the license" title="License badge">
54
+ </a>
55
+ <br>
56
+ An unofficial python SDK for the payment service <a href="https://www.unzer.com">Unzer</a>.
57
+ </div>
@@ -0,0 +1,11 @@
1
+ <div align="center">
2
+ <h1>unzer-python-sdk</h1>
3
+ <a href="https://pypi.org/project/unzer/">
4
+ <img alt="Badge showing current PyPI version" title="PyPI" src="https://img.shields.io/pypi/v/unzer">
5
+ </a>
6
+ <a href="LICENSE">
7
+ <img src="https://img.shields.io/github/license/mausbrand/unzer-python-sdk" alt="Badge displaying the license" title="License badge">
8
+ </a>
9
+ <br>
10
+ An unofficial python SDK for the payment service <a href="https://www.unzer.com">Unzer</a>.
11
+ </div>
@@ -0,0 +1,45 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=65",
4
+ # "wheel"
5
+ ]
6
+ build-backend = "setuptools.build_meta"
7
+
8
+ [project]
9
+ name = "unzer"
10
+ dynamic = ["version"]
11
+ dependencies = [
12
+ "requests"
13
+ ]
14
+ requires-python = ">=3.10"
15
+ authors = [
16
+ { name = "Sven Eberth", email = "se@mausbrand.de" },
17
+ ]
18
+ maintainers = [
19
+ { name = "Sven Eberth", email = "se@mausbrand.de" },
20
+ ]
21
+ description = "An unofficial python SDK for unzer.com"
22
+ readme = "README.md"
23
+ license = { file = "LICENSE" }
24
+ keywords = ["unzer", "payment", "sdk", "client"]
25
+ classifiers = [
26
+ "Intended Audience :: Developers",
27
+ "License :: OSI Approved :: MIT License",
28
+ "Operating System :: OS Independent",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "Topic :: Software Development :: Libraries :: Python Modules"
34
+ ]
35
+
36
+ [tool.setuptools.dynamic]
37
+ version = { attr = "unzer.__version__" }
38
+
39
+ [tool.setuptools.packages.find]
40
+ where = ["src"]
41
+
42
+ [project.urls]
43
+ Repository = "https://github.com/mausbrand/unzer-python-sdk.git"
44
+ "Bug Tracker" = "https://github.com/mausbrand/unzer-python-sdk/issues"
45
+ Changelog = "https://github.com/mausbrand/unzer-python-sdk/releases"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -1,7 +1,7 @@
1
1
  __title__ = "unzer-sdk"
2
2
  __author__ = "Sven Eberth"
3
3
  __email__ = "se@mausbrand.de"
4
- __version__ = "1.0.0-dev4"
4
+ __version__ = "1.0.0-dev6"
5
5
 
6
6
  from .client import UnzerClient
7
7
  from .model import *
@@ -67,7 +67,7 @@ class ErrorResponse(Exception):
67
67
  timestamp=datetime.datetime.strptime(data["timestamp"], "%Y-%m-%d %H:%M:%S"),
68
68
  url=data["url"],
69
69
  errors=[Error(**error) for error in data["errors"]],
70
- errorId=data["id"],
70
+ errorId=data.get("id"),
71
71
  traceId=data.get("traceId"),
72
72
  isError=data.get("isError"),
73
73
  isPending=data.get("isPending"),
@@ -11,7 +11,7 @@ class Bancontact(PaymentType):
11
11
 
12
12
  def __init__(
13
13
  self,
14
- holder: str,
14
+ holder: str | None = None,
15
15
  **kwargs
16
16
  ):
17
17
  """Create a new Bancontact paymentType ressource.
@@ -19,9 +19,12 @@ class Bancontact(PaymentType):
19
19
  :param holder: The holder name.
20
20
  """
21
21
  super().__init__(**kwargs)
22
- self.holder: str = holder
22
+ self.holder: str | None = holder
23
23
 
24
24
  def serialize(self) -> dict:
25
+ if not self.holder:
26
+ return super().serialize()
27
+
25
28
  return {
26
29
  "holder": self.holder,
27
30
  }
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: unzer
3
+ Version: 1.0.0.dev6
4
+ Summary: An unofficial python SDK for unzer.com
5
+ Author-email: Sven Eberth <se@mausbrand.de>
6
+ Maintainer-email: Sven Eberth <se@mausbrand.de>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2021 mausbrand
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Repository, https://github.com/mausbrand/unzer-python-sdk.git
30
+ Project-URL: Bug Tracker, https://github.com/mausbrand/unzer-python-sdk/issues
31
+ Project-URL: Changelog, https://github.com/mausbrand/unzer-python-sdk/releases
32
+ Keywords: unzer,payment,sdk,client
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Operating System :: OS Independent
36
+ Classifier: Programming Language :: Python :: 3.10
37
+ Classifier: Programming Language :: Python :: 3.11
38
+ Classifier: Programming Language :: Python :: 3.12
39
+ Classifier: Programming Language :: Python :: 3.13
40
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
41
+ Requires-Python: >=3.10
42
+ Description-Content-Type: text/markdown
43
+ License-File: LICENSE
44
+ Requires-Dist: requests
45
+ Dynamic: license-file
46
+
47
+ <div align="center">
48
+ <h1>unzer-python-sdk</h1>
49
+ <a href="https://pypi.org/project/unzer/">
50
+ <img alt="Badge showing current PyPI version" title="PyPI" src="https://img.shields.io/pypi/v/unzer">
51
+ </a>
52
+ <a href="LICENSE">
53
+ <img src="https://img.shields.io/github/license/mausbrand/unzer-python-sdk" alt="Badge displaying the license" title="License badge">
54
+ </a>
55
+ <br>
56
+ An unofficial python SDK for the payment service <a href="https://www.unzer.com">Unzer</a>.
57
+ </div>
@@ -1,7 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
- setup.cfg
4
- setup.py
3
+ pyproject.toml
5
4
  src/unzer/__init__.py
6
5
  src/unzer/client.py
7
6
  src/unzer/utils.py
unzer-1.0.0.dev4/PKG-INFO DELETED
@@ -1,22 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: unzer
3
- Version: 1.0.0.dev4
4
- Summary: An unofficial python SDK for unzer.com
5
- Home-page: https://github.com/mausbrand/unzer-python-sdk
6
- Author: Sven Eberth
7
- Author-email: se@mausbrand.de
8
- Maintainer: Sven Eberth
9
- Maintainer-email: se@mausbrand.de
10
- Classifier: Intended Audience :: Developers
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
- Requires-Python: >=3.10
17
- Description-Content-Type: text/markdown
18
- License-File: LICENSE
19
- Requires-Dist: requests
20
-
21
- # unzer-python-sdk
22
- An unofficial python SDK for unzer.com (payment)
@@ -1,2 +0,0 @@
1
- # unzer-python-sdk
2
- An unofficial python SDK for unzer.com (payment)
@@ -1,30 +0,0 @@
1
- [metadata]
2
- name = unzer
3
- version = attr: unzer.__version__
4
- author = Sven Eberth
5
- author_email = se@mausbrand.de
6
- maintainer = Sven Eberth
7
- maintainer_email = se@mausbrand.de
8
- description = An unofficial python SDK for unzer.com
9
- long_description = file: README.md
10
- long_description_content_type = text/markdown
11
- url = https://github.com/mausbrand/unzer-python-sdk
12
- classifiers =
13
- Intended Audience :: Developers
14
- License :: OSI Approved :: MIT License
15
- Operating System :: OS Independent
16
- Programming Language :: Python :: 3.10
17
- Programming Language :: Python :: 3.11
18
- Topic :: Software Development :: Libraries :: Python Modules
19
-
20
- [options]
21
- python_requires = >=3.10
22
- package_dir =
23
- = src
24
- install_requires =
25
- requests
26
-
27
- [egg_info]
28
- tag_build =
29
- tag_date = 0
30
-
unzer-1.0.0.dev4/setup.py DELETED
@@ -1,3 +0,0 @@
1
- import setuptools
2
-
3
- setuptools.setup()
@@ -1,22 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: unzer
3
- Version: 1.0.0.dev4
4
- Summary: An unofficial python SDK for unzer.com
5
- Home-page: https://github.com/mausbrand/unzer-python-sdk
6
- Author: Sven Eberth
7
- Author-email: se@mausbrand.de
8
- Maintainer: Sven Eberth
9
- Maintainer-email: se@mausbrand.de
10
- Classifier: Intended Audience :: Developers
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
- Requires-Python: >=3.10
17
- Description-Content-Type: text/markdown
18
- License-File: LICENSE
19
- Requires-Dist: requests
20
-
21
- # unzer-python-sdk
22
- An unofficial python SDK for unzer.com (payment)
File without changes