sirako-sdk 1.0.0__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 (31) hide show
  1. sirako_sdk-1.0.0/PKG-INFO +155 -0
  2. sirako_sdk-1.0.0/README.md +138 -0
  3. sirako_sdk-1.0.0/pyproject.toml +94 -0
  4. sirako_sdk-1.0.0/setup.cfg +7 -0
  5. sirako_sdk-1.0.0/setup.py +47 -0
  6. sirako_sdk-1.0.0/sirako_sdk/__init__.py +58 -0
  7. sirako_sdk-1.0.0/sirako_sdk/api/__init__.py +5 -0
  8. sirako_sdk-1.0.0/sirako_sdk/api/merchant_pay_in_api.py +1195 -0
  9. sirako_sdk-1.0.0/sirako_sdk/api_client.py +804 -0
  10. sirako_sdk-1.0.0/sirako_sdk/api_response.py +21 -0
  11. sirako_sdk-1.0.0/sirako_sdk/configuration.py +655 -0
  12. sirako_sdk-1.0.0/sirako_sdk/exceptions.py +218 -0
  13. sirako_sdk-1.0.0/sirako_sdk/models/__init__.py +21 -0
  14. sirako_sdk-1.0.0/sirako_sdk/models/customer.py +95 -0
  15. sirako_sdk-1.0.0/sirako_sdk/models/merchant_payment_request.py +112 -0
  16. sirako_sdk-1.0.0/sirako_sdk/models/merchant_payment_response.py +146 -0
  17. sirako_sdk-1.0.0/sirako_sdk/models/next_action.py +92 -0
  18. sirako_sdk-1.0.0/sirako_sdk/models/otp_action_request.py +89 -0
  19. sirako_sdk-1.0.0/sirako_sdk/py.typed +0 -0
  20. sirako_sdk-1.0.0/sirako_sdk/rest.py +313 -0
  21. sirako_sdk-1.0.0/sirako_sdk.egg-info/PKG-INFO +155 -0
  22. sirako_sdk-1.0.0/sirako_sdk.egg-info/SOURCES.txt +30 -0
  23. sirako_sdk-1.0.0/sirako_sdk.egg-info/dependency_links.txt +1 -0
  24. sirako_sdk-1.0.0/sirako_sdk.egg-info/requires.txt +4 -0
  25. sirako_sdk-1.0.0/sirako_sdk.egg-info/top_level.txt +1 -0
  26. sirako_sdk-1.0.0/test/test_customer.py +56 -0
  27. sirako_sdk-1.0.0/test/test_merchant_pay_in_api.py +59 -0
  28. sirako_sdk-1.0.0/test/test_merchant_payment_request.py +69 -0
  29. sirako_sdk-1.0.0/test/test_merchant_payment_response.py +66 -0
  30. sirako_sdk-1.0.0/test/test_next_action.py +53 -0
  31. sirako_sdk-1.0.0/test/test_otp_action_request.py +52 -0
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.4
2
+ Name: sirako_sdk
3
+ Version: 1.0.0
4
+ Summary: Sirako Merchant SDK API
5
+ Home-page:
6
+ Author: OpenAPI Generator community
7
+ Author-email: OpenAPI Generator Community <team@openapitools.org>
8
+ Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
9
+ Keywords: OpenAPI,OpenAPI-Generator,Sirako Merchant SDK API
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: urllib3<3.0.0,>=2.1.0
13
+ Requires-Dist: python-dateutil>=2.8.2
14
+ Requires-Dist: pydantic>=2.11
15
+ Requires-Dist: typing-extensions>=4.7.1
16
+ Dynamic: author
17
+
18
+ # sirako-sdk
19
+ Public endpoints for third-party merchant integrations.
20
+ Authenticate every request with the `X-API-Key` header.
21
+
22
+
23
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
24
+
25
+ - API version: 1.0.0
26
+ - Package version: 1.0.0
27
+ - Generator version: 7.24.0-SNAPSHOT
28
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
29
+
30
+ ## Requirements.
31
+
32
+ Python 3.10+
33
+
34
+ ## Installation & Usage
35
+ ### pip install
36
+
37
+ If the python package is hosted on a repository, you can install directly using:
38
+
39
+ ```sh
40
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
41
+ ```
42
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
43
+
44
+ Then import the package:
45
+ ```python
46
+ import sirako_sdk
47
+ ```
48
+
49
+ ### Setuptools
50
+
51
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
52
+
53
+ ```sh
54
+ python setup.py install --user
55
+ ```
56
+ (or `sudo python setup.py install` to install the package for all users)
57
+
58
+ Then import the package:
59
+ ```python
60
+ import sirako_sdk
61
+ ```
62
+
63
+ ### Tests
64
+
65
+ Execute `pytest` to run the tests.
66
+
67
+ ## Getting Started
68
+
69
+ Please follow the [installation procedure](#installation--usage) and then run the following:
70
+
71
+ ```python
72
+
73
+ import sirako_sdk
74
+ from sirako_sdk.rest import ApiException
75
+ from pprint import pprint
76
+
77
+ # Defining the host is optional and defaults to https://dev-sirako.fidelity-market.com
78
+ # See configuration.py for a list of all supported configuration parameters.
79
+ configuration = sirako_sdk.Configuration(
80
+ host = "https://dev-sirako.fidelity-market.com"
81
+ )
82
+
83
+ # The client must configure the authentication and authorization parameters
84
+ # in accordance with the API server security policy.
85
+ # Examples for each auth method are provided below, use the example that
86
+ # satisfies your auth use case.
87
+
88
+ # Configure API key authorization: apiKeyAuth
89
+ configuration.api_key['apiKeyAuth'] = os.environ["API_KEY"]
90
+
91
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
92
+ # configuration.api_key_prefix['apiKeyAuth'] = 'Bearer'
93
+
94
+
95
+ # Enter a context with an instance of the API client
96
+ with sirako_sdk.ApiClient(configuration) as api_client:
97
+ # Create an instance of the API class
98
+ api_instance = sirako_sdk.MerchantPayInApi(api_client)
99
+ x_api_key = 'x_api_key_example' # str |
100
+ payment_id = 'payment_id_example' # str |
101
+
102
+ try:
103
+ # Read a merchant pay-in
104
+ api_response = api_instance.get_payment(x_api_key, payment_id)
105
+ print("The response of MerchantPayInApi->get_payment:\n")
106
+ pprint(api_response)
107
+ except ApiException as e:
108
+ print("Exception when calling MerchantPayInApi->get_payment: %s\n" % e)
109
+
110
+ ```
111
+
112
+ ## Documentation for API Endpoints
113
+
114
+ All URIs are relative to *https://dev-sirako.fidelity-market.com*
115
+
116
+ Class | Method | HTTP request | Description
117
+ ------------ | ------------- | ------------- | -------------
118
+ *MerchantPayInApi* | [**get_payment**](docs/MerchantPayInApi.md#get_payment) | **GET** /api/v1/payments/{paymentId} | Read a merchant pay-in
119
+ *MerchantPayInApi* | [**get_payment_options**](docs/MerchantPayInApi.md#get_payment_options) | **GET** /api/v1/payments/options | Get available payment operators for a country
120
+ *MerchantPayInApi* | [**initiate**](docs/MerchantPayInApi.md#initiate) | **POST** /api/v1/payments/initiate | Initiate a merchant pay-in
121
+ *MerchantPayInApi* | [**submit_otp**](docs/MerchantPayInApi.md#submit_otp) | **POST** /api/v1/payments/{paymentId}/actions/otp | Submit a required OTP action
122
+
123
+
124
+ ## Documentation For Models
125
+
126
+ - [Customer](docs/Customer.md)
127
+ - [MerchantPaymentRequest](docs/MerchantPaymentRequest.md)
128
+ - [MerchantPaymentResponse](docs/MerchantPaymentResponse.md)
129
+ - [NextAction](docs/NextAction.md)
130
+ - [OtpActionRequest](docs/OtpActionRequest.md)
131
+
132
+
133
+ <a id="documentation-for-authorization"></a>
134
+ ## Documentation For Authorization
135
+
136
+
137
+ Authentication schemes defined for the API:
138
+ <a id="bearerAuth"></a>
139
+ ### bearerAuth
140
+
141
+ - **Type**: Bearer authentication (JWT)
142
+
143
+ <a id="apiKeyAuth"></a>
144
+ ### apiKeyAuth
145
+
146
+ - **Type**: API key
147
+ - **API key parameter name**: X-API-Key
148
+ - **Location**: HTTP header
149
+
150
+
151
+ ## Author
152
+
153
+
154
+
155
+
@@ -0,0 +1,138 @@
1
+ # sirako-sdk
2
+ Public endpoints for third-party merchant integrations.
3
+ Authenticate every request with the `X-API-Key` header.
4
+
5
+
6
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
+
8
+ - API version: 1.0.0
9
+ - Package version: 1.0.0
10
+ - Generator version: 7.24.0-SNAPSHOT
11
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
12
+
13
+ ## Requirements.
14
+
15
+ Python 3.10+
16
+
17
+ ## Installation & Usage
18
+ ### pip install
19
+
20
+ If the python package is hosted on a repository, you can install directly using:
21
+
22
+ ```sh
23
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
24
+ ```
25
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
26
+
27
+ Then import the package:
28
+ ```python
29
+ import sirako_sdk
30
+ ```
31
+
32
+ ### Setuptools
33
+
34
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
35
+
36
+ ```sh
37
+ python setup.py install --user
38
+ ```
39
+ (or `sudo python setup.py install` to install the package for all users)
40
+
41
+ Then import the package:
42
+ ```python
43
+ import sirako_sdk
44
+ ```
45
+
46
+ ### Tests
47
+
48
+ Execute `pytest` to run the tests.
49
+
50
+ ## Getting Started
51
+
52
+ Please follow the [installation procedure](#installation--usage) and then run the following:
53
+
54
+ ```python
55
+
56
+ import sirako_sdk
57
+ from sirako_sdk.rest import ApiException
58
+ from pprint import pprint
59
+
60
+ # Defining the host is optional and defaults to https://dev-sirako.fidelity-market.com
61
+ # See configuration.py for a list of all supported configuration parameters.
62
+ configuration = sirako_sdk.Configuration(
63
+ host = "https://dev-sirako.fidelity-market.com"
64
+ )
65
+
66
+ # The client must configure the authentication and authorization parameters
67
+ # in accordance with the API server security policy.
68
+ # Examples for each auth method are provided below, use the example that
69
+ # satisfies your auth use case.
70
+
71
+ # Configure API key authorization: apiKeyAuth
72
+ configuration.api_key['apiKeyAuth'] = os.environ["API_KEY"]
73
+
74
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
75
+ # configuration.api_key_prefix['apiKeyAuth'] = 'Bearer'
76
+
77
+
78
+ # Enter a context with an instance of the API client
79
+ with sirako_sdk.ApiClient(configuration) as api_client:
80
+ # Create an instance of the API class
81
+ api_instance = sirako_sdk.MerchantPayInApi(api_client)
82
+ x_api_key = 'x_api_key_example' # str |
83
+ payment_id = 'payment_id_example' # str |
84
+
85
+ try:
86
+ # Read a merchant pay-in
87
+ api_response = api_instance.get_payment(x_api_key, payment_id)
88
+ print("The response of MerchantPayInApi->get_payment:\n")
89
+ pprint(api_response)
90
+ except ApiException as e:
91
+ print("Exception when calling MerchantPayInApi->get_payment: %s\n" % e)
92
+
93
+ ```
94
+
95
+ ## Documentation for API Endpoints
96
+
97
+ All URIs are relative to *https://dev-sirako.fidelity-market.com*
98
+
99
+ Class | Method | HTTP request | Description
100
+ ------------ | ------------- | ------------- | -------------
101
+ *MerchantPayInApi* | [**get_payment**](docs/MerchantPayInApi.md#get_payment) | **GET** /api/v1/payments/{paymentId} | Read a merchant pay-in
102
+ *MerchantPayInApi* | [**get_payment_options**](docs/MerchantPayInApi.md#get_payment_options) | **GET** /api/v1/payments/options | Get available payment operators for a country
103
+ *MerchantPayInApi* | [**initiate**](docs/MerchantPayInApi.md#initiate) | **POST** /api/v1/payments/initiate | Initiate a merchant pay-in
104
+ *MerchantPayInApi* | [**submit_otp**](docs/MerchantPayInApi.md#submit_otp) | **POST** /api/v1/payments/{paymentId}/actions/otp | Submit a required OTP action
105
+
106
+
107
+ ## Documentation For Models
108
+
109
+ - [Customer](docs/Customer.md)
110
+ - [MerchantPaymentRequest](docs/MerchantPaymentRequest.md)
111
+ - [MerchantPaymentResponse](docs/MerchantPaymentResponse.md)
112
+ - [NextAction](docs/NextAction.md)
113
+ - [OtpActionRequest](docs/OtpActionRequest.md)
114
+
115
+
116
+ <a id="documentation-for-authorization"></a>
117
+ ## Documentation For Authorization
118
+
119
+
120
+ Authentication schemes defined for the API:
121
+ <a id="bearerAuth"></a>
122
+ ### bearerAuth
123
+
124
+ - **Type**: Bearer authentication (JWT)
125
+
126
+ <a id="apiKeyAuth"></a>
127
+ ### apiKeyAuth
128
+
129
+ - **Type**: API key
130
+ - **API key parameter name**: X-API-Key
131
+ - **Location**: HTTP header
132
+
133
+
134
+ ## Author
135
+
136
+
137
+
138
+
@@ -0,0 +1,94 @@
1
+ [project]
2
+ name = "sirako_sdk"
3
+ version = "1.0.0"
4
+ description = "Sirako Merchant SDK API"
5
+ authors = [
6
+ {name = "OpenAPI Generator Community",email = "team@openapitools.org"},
7
+ ]
8
+ readme = "README.md"
9
+ keywords = ["OpenAPI", "OpenAPI-Generator", "Sirako Merchant SDK API"]
10
+ requires-python = ">=3.9"
11
+
12
+ dependencies = [
13
+ "urllib3 (>=2.1.0,<3.0.0)",
14
+ "python-dateutil (>=2.8.2)",
15
+ "pydantic (>=2.11)",
16
+ "typing-extensions (>=4.7.1)",
17
+ ]
18
+
19
+ [project.urls]
20
+ Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
21
+
22
+ [tool.poetry]
23
+ requires-poetry = ">=2.0"
24
+
25
+ [tool.poetry.group.dev.dependencies]
26
+ pytest = ">= 7.2.1"
27
+ pytest-cov = ">= 2.8.1"
28
+ tox = ">= 3.9.0"
29
+ flake8 = ">= 4.0.0"
30
+ types-python-dateutil = ">= 2.8.19.14"
31
+ mypy = ">= 1.5"
32
+
33
+
34
+ [build-system]
35
+ requires = ["setuptools"]
36
+ build-backend = "setuptools.build_meta"
37
+
38
+ [tool.pylint.'MESSAGES CONTROL']
39
+ extension-pkg-whitelist = "pydantic"
40
+
41
+ [tool.mypy]
42
+ files = [
43
+ "sirako_sdk",
44
+ #"test", # auto-generated tests
45
+ "tests", # hand-written tests
46
+ ]
47
+ # TODO: enable "strict" once all these individual checks are passing
48
+ # strict = true
49
+
50
+ # List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
51
+ warn_unused_configs = true
52
+ warn_redundant_casts = true
53
+ warn_unused_ignores = true
54
+
55
+ ## Getting these passing should be easy
56
+ strict_equality = true
57
+ extra_checks = true
58
+
59
+ ## Strongly recommend enabling this one as soon as you can
60
+ check_untyped_defs = true
61
+
62
+ ## These shouldn't be too much additional work, but may be tricky to
63
+ ## get passing if you use a lot of untyped libraries
64
+ disallow_subclassing_any = true
65
+ disallow_untyped_decorators = true
66
+ disallow_any_generics = true
67
+
68
+ ### These next few are various gradations of forcing use of type annotations
69
+ #disallow_untyped_calls = true
70
+ #disallow_incomplete_defs = true
71
+ #disallow_untyped_defs = true
72
+ #
73
+ ### This one isn't too hard to get passing, but return on investment is lower
74
+ #no_implicit_reexport = true
75
+ #
76
+ ### This one can be tricky to get passing if you use a lot of untyped libraries
77
+ #warn_return_any = true
78
+
79
+ [[tool.mypy.overrides]]
80
+ module = [
81
+ "sirako_sdk.configuration",
82
+ ]
83
+ warn_unused_ignores = true
84
+ strict_equality = true
85
+ extra_checks = true
86
+ check_untyped_defs = true
87
+ disallow_subclassing_any = true
88
+ disallow_untyped_decorators = true
89
+ disallow_any_generics = true
90
+ disallow_untyped_calls = true
91
+ disallow_incomplete_defs = true
92
+ disallow_untyped_defs = true
93
+ no_implicit_reexport = true
94
+ warn_return_any = true
@@ -0,0 +1,7 @@
1
+ [flake8]
2
+ max-line-length = 99
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
@@ -0,0 +1,47 @@
1
+ """
2
+ Sirako Merchant SDK API
3
+
4
+ Public endpoints for third-party merchant integrations. Authenticate every request with the `X-API-Key` header.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ from setuptools import setup, find_packages # noqa: H301
14
+
15
+ # To install the library, run the following
16
+ #
17
+ # python setup.py install
18
+ #
19
+ # prerequisite: setuptools
20
+ # http://pypi.python.org/pypi/setuptools
21
+ NAME = "sirako-sdk"
22
+ VERSION = "1.0.0"
23
+ PYTHON_REQUIRES = ">= 3.10"
24
+ REQUIRES = [
25
+ "urllib3 >= 2.1.0, < 3.0.0",
26
+ "python-dateutil >= 2.8.2",
27
+ "pydantic >= 2.11",
28
+ "typing-extensions >= 4.7.1",
29
+ ]
30
+
31
+ setup(
32
+ name=NAME,
33
+ version=VERSION,
34
+ description="Sirako Merchant SDK API",
35
+ author="OpenAPI Generator community",
36
+ author_email="team@openapitools.org",
37
+ url="",
38
+ keywords=["OpenAPI", "OpenAPI-Generator", "Sirako Merchant SDK API"],
39
+ install_requires=REQUIRES,
40
+ packages=find_packages(exclude=["test", "tests"]),
41
+ include_package_data=True,
42
+ long_description_content_type='text/markdown',
43
+ long_description="""\
44
+ Public endpoints for third-party merchant integrations. Authenticate every request with the &#x60;X-API-Key&#x60; header.
45
+ """, # noqa: E501
46
+ package_data={"sirako_sdk": ["py.typed"]},
47
+ )
@@ -0,0 +1,58 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Sirako Merchant SDK API
7
+
8
+ Public endpoints for third-party merchant integrations. Authenticate every request with the `X-API-Key` header.
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "1.0.0"
18
+
19
+ # Define package exports
20
+ __all__ = [
21
+ "MerchantPayInApi",
22
+ "ApiResponse",
23
+ "ApiClient",
24
+ "Configuration",
25
+ "OpenApiException",
26
+ "ApiTypeError",
27
+ "ApiValueError",
28
+ "ApiKeyError",
29
+ "ApiAttributeError",
30
+ "ApiException",
31
+ "Customer",
32
+ "MerchantPaymentRequest",
33
+ "MerchantPaymentResponse",
34
+ "NextAction",
35
+ "OtpActionRequest",
36
+ ]
37
+
38
+ # import apis into sdk package
39
+ from sirako_sdk.api.merchant_pay_in_api import MerchantPayInApi as MerchantPayInApi
40
+
41
+ # import ApiClient
42
+ from sirako_sdk.api_response import ApiResponse as ApiResponse
43
+ from sirako_sdk.api_client import ApiClient as ApiClient
44
+ from sirako_sdk.configuration import Configuration as Configuration
45
+ from sirako_sdk.exceptions import OpenApiException as OpenApiException
46
+ from sirako_sdk.exceptions import ApiTypeError as ApiTypeError
47
+ from sirako_sdk.exceptions import ApiValueError as ApiValueError
48
+ from sirako_sdk.exceptions import ApiKeyError as ApiKeyError
49
+ from sirako_sdk.exceptions import ApiAttributeError as ApiAttributeError
50
+ from sirako_sdk.exceptions import ApiException as ApiException
51
+
52
+ # import models into sdk package
53
+ from sirako_sdk.models.customer import Customer as Customer
54
+ from sirako_sdk.models.merchant_payment_request import MerchantPaymentRequest as MerchantPaymentRequest
55
+ from sirako_sdk.models.merchant_payment_response import MerchantPaymentResponse as MerchantPaymentResponse
56
+ from sirako_sdk.models.next_action import NextAction as NextAction
57
+ from sirako_sdk.models.otp_action_request import OtpActionRequest as OtpActionRequest
58
+
@@ -0,0 +1,5 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from sirako_sdk.api.merchant_pay_in_api import MerchantPayInApi
5
+