Skip to content

Commit 3e76847

Browse files
authored
PTHMINT-64: Remove sdk version (#8)
1 parent 1409417 commit 3e76847

File tree

6 files changed

+27
-188
lines changed

6 files changed

+27
-188
lines changed

poetry.lock

Lines changed: 16 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ homepage = "https://multisafepay.com"
1111
[tool.poetry.dependencies]
1212
python = ">=3.8,<3.14"
1313
requests = "^2.32.3"
14-
toml = "^0.10.2"
1514
pydantic = "^1.10.0"
1615
python-dotenv = "^1.0.1"
1716

src/multisafepay/api/paths/orders/request/components/plugin.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from typing import Optional
1010

1111
from multisafepay.model.request_model import RequestModel
12-
from multisafepay.util.version import Version
1312

1413

1514
class Plugin(RequestModel):
@@ -18,7 +17,6 @@ class Plugin(RequestModel):
1817
1918
Attributes
2019
----------
21-
sdk_version (Optional[str]): The version of the SDK.
2220
plugin_version (Optional[str]): The version of the plugin.
2321
shop (Optional[str]): The name of the shop.
2422
shop_version (Optional[str]): The version of the shop.
@@ -27,32 +25,12 @@ class Plugin(RequestModel):
2725
2826
"""
2927

30-
sdk_version: Optional[str] = Version.detect_sdk_version()
3128
plugin_version: Optional[str]
3229
shop: Optional[str]
3330
shop_version: Optional[str]
3431
partner: Optional[str]
3532
shop_root_url: Optional[str]
3633

37-
def add_sdk_version(
38-
self,
39-
sdk_version: Optional[str],
40-
) -> "Plugin":
41-
"""
42-
Adds the SDK version to the Plugin object.
43-
44-
Parameters
45-
----------
46-
sdk_version (Optional[str]): The version of the SDK.
47-
48-
Returns
49-
-------
50-
Plugin: The updated Plugin object.
51-
52-
"""
53-
self.sdk_version = sdk_version
54-
return self
55-
5634
def add_plugin_version(
5735
self,
5836
plugin_version: Optional[str],

0 commit comments

Comments
 (0)