Skip to content

Commit 3be582e

Browse files
committed
fix: resolve Black formatter installation issue
1 parent 7e324a0 commit 3be582e

File tree

238 files changed

+10373
-9103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+10373
-9103
lines changed

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn commitlint --edit $1
1+
yarn commitlint --edit $1

.husky/pre-commit

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# Run lint-staged to format Python files with Black
2+
yarn lint-staged
3+
4+
# Run tests to ensure everything works
15
yarn test

Monei/__init__.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# flake8: noqa
22

33
"""
4-
MONEI API v1
4+
MONEI API v1
55
6-
The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer) principles. Our API is designed to be intuitive and developer-friendly. ### Base URL All API requests should be made to: ``` https://api.monei.com/v1 ``` ### Environment MONEI provides two environments: - **Test Environment**: For development and testing without processing real payments - **Live Environment**: For processing real transactions in production ### Client Libraries We provide official SDKs to simplify integration: - [PHP SDK](https://github.com/MONEI/monei-php-sdk) - [Python SDK](https://github.com/MONEI/monei-python-sdk) - [Node.js SDK](https://github.com/MONEI/monei-node-sdk) - [Postman Collection](https://postman.monei.com/) Our SDKs handle authentication, error handling, and request formatting automatically. You can download the OpenAPI specification from the https://js.monei.com/api/v1/openapi.json and generate your own client library using the [OpenAPI Generator](https://openapi-generator.tech/). ### Important Requirements - All API requests must be made over HTTPS - If you are not using our official SDKs, you **must provide a valid `User-Agent` header** with each request - Requests without proper authentication will return a `401 Unauthorized` error ### Error Handling The API returns consistent error codes and messages to help you troubleshoot issues. Each response includes a `statusCode` attribute indicating the outcome of your request. ### Rate Limits The API implements rate limiting to ensure stability. If you exceed the limits, requests will return a `429 Too Many Requests` status code. # Authentication <!-- Redoc-Inject: <security-definitions> --> # noqa: E501
6+
The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer) principles. Our API is designed to be intuitive and developer-friendly. ### Base URL All API requests should be made to: ``` https://api.monei.com/v1 ``` ### Environment MONEI provides two environments: - **Test Environment**: For development and testing without processing real payments - **Live Environment**: For processing real transactions in production ### Client Libraries We provide official SDKs to simplify integration: - [PHP SDK](https://github.com/MONEI/monei-php-sdk) - [Python SDK](https://github.com/MONEI/monei-python-sdk) - [Node.js SDK](https://github.com/MONEI/monei-node-sdk) - [Postman Collection](https://postman.monei.com/) Our SDKs handle authentication, error handling, and request formatting automatically. You can download the OpenAPI specification from the https://js.monei.com/api/v1/openapi.json and generate your own client library using the [OpenAPI Generator](https://openapi-generator.tech/). ### Important Requirements - All API requests must be made over HTTPS - If you are not using our official SDKs, you **must provide a valid `User-Agent` header** with each request - Requests without proper authentication will return a `401 Unauthorized` error ### Error Handling The API returns consistent error codes and messages to help you troubleshoot issues. Each response includes a `statusCode` attribute indicating the outcome of your request. ### Rate Limits The API implements rate limiting to ensure stability. If you exceed the limits, requests will return a `429 Too Many Requests` status code. # Authentication <!-- Redoc-Inject: <security-definitions> --> # noqa: E501
77
8-
The version of the OpenAPI document: 1.5.8
9-
Generated by: https://openapi-generator.tech
8+
The version of the OpenAPI document: 1.5.8
9+
Generated by: https://openapi-generator.tech
1010
"""
1111

1212

@@ -25,5 +25,9 @@
2525
from Monei.exceptions import ApiValueError
2626
from Monei.exceptions import ApiKeyError
2727
from Monei.exceptions import ApiException
28+
29+
# import custom MoneiClient
30+
from Monei.monei_client import MoneiClient
31+
2832
# import custom MoneiClient
2933
from Monei.monei_client import MoneiClient

Monei/api/apple_pay_domain_api.py

Lines changed: 46 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
"""
2-
MONEI API v1
2+
MONEI API v1
33
4-
The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer) principles. Our API is designed to be intuitive and developer-friendly. ### Base URL All API requests should be made to: ``` https://api.monei.com/v1 ``` ### Environment MONEI provides two environments: - **Test Environment**: For development and testing without processing real payments - **Live Environment**: For processing real transactions in production ### Client Libraries We provide official SDKs to simplify integration: - [PHP SDK](https://github.com/MONEI/monei-php-sdk) - [Python SDK](https://github.com/MONEI/monei-python-sdk) - [Node.js SDK](https://github.com/MONEI/monei-node-sdk) - [Postman Collection](https://postman.monei.com/) Our SDKs handle authentication, error handling, and request formatting automatically. You can download the OpenAPI specification from the https://js.monei.com/api/v1/openapi.json and generate your own client library using the [OpenAPI Generator](https://openapi-generator.tech/). ### Important Requirements - All API requests must be made over HTTPS - If you are not using our official SDKs, you **must provide a valid `User-Agent` header** with each request - Requests without proper authentication will return a `401 Unauthorized` error ### Error Handling The API returns consistent error codes and messages to help you troubleshoot issues. Each response includes a `statusCode` attribute indicating the outcome of your request. ### Rate Limits The API implements rate limiting to ensure stability. If you exceed the limits, requests will return a `429 Too Many Requests` status code. # Authentication <!-- Redoc-Inject: <security-definitions> --> # noqa: E501
4+
The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer) principles. Our API is designed to be intuitive and developer-friendly. ### Base URL All API requests should be made to: ``` https://api.monei.com/v1 ``` ### Environment MONEI provides two environments: - **Test Environment**: For development and testing without processing real payments - **Live Environment**: For processing real transactions in production ### Client Libraries We provide official SDKs to simplify integration: - [PHP SDK](https://github.com/MONEI/monei-php-sdk) - [Python SDK](https://github.com/MONEI/monei-python-sdk) - [Node.js SDK](https://github.com/MONEI/monei-node-sdk) - [Postman Collection](https://postman.monei.com/) Our SDKs handle authentication, error handling, and request formatting automatically. You can download the OpenAPI specification from the https://js.monei.com/api/v1/openapi.json and generate your own client library using the [OpenAPI Generator](https://openapi-generator.tech/). ### Important Requirements - All API requests must be made over HTTPS - If you are not using our official SDKs, you **must provide a valid `User-Agent` header** with each request - Requests without proper authentication will return a `401 Unauthorized` error ### Error Handling The API returns consistent error codes and messages to help you troubleshoot issues. Each response includes a `statusCode` attribute indicating the outcome of your request. ### Rate Limits The API implements rate limiting to ensure stability. If you exceed the limits, requests will return a `429 Too Many Requests` status code. # Authentication <!-- Redoc-Inject: <security-definitions> --> # noqa: E501
55
6-
The version of the OpenAPI document: 1.5.8
7-
Generated by: https://openapi-generator.tech
6+
The version of the OpenAPI document: 1.5.8
7+
Generated by: https://openapi-generator.tech
88
"""
99

10-
1110
import re # noqa: F401
1211
import sys # noqa: F401
1312

@@ -19,9 +18,11 @@
1918
datetime,
2019
file_type,
2120
none_type,
22-
validate_and_convert_types
21+
validate_and_convert_types,
22+
)
23+
from Monei.model.apple_pay_domain_register200_response import (
24+
ApplePayDomainRegister200Response,
2325
)
24-
from Monei.model.apple_pay_domain_register200_response import ApplePayDomainRegister200Response
2526
from Monei.model.bad_request_error import BadRequestError
2627
from Monei.model.internal_server_error import InternalServerError
2728
from Monei.model.not_found_error import NotFoundError
@@ -44,62 +45,46 @@ def __init__(self, api_client=None):
4445
self.api_client = api_client
4546
self.register_endpoint = _Endpoint(
4647
settings={
47-
'response_type': (ApplePayDomainRegister200Response,),
48-
'auth': [
49-
'APIKey'
50-
],
51-
'endpoint_path': '/apple-pay/domains',
52-
'operation_id': 'register',
53-
'http_method': 'POST',
54-
'servers': None,
48+
"response_type": (ApplePayDomainRegister200Response,),
49+
"auth": ["APIKey"],
50+
"endpoint_path": "/apple-pay/domains",
51+
"operation_id": "register",
52+
"http_method": "POST",
53+
"servers": None,
5554
},
5655
params_map={
57-
'all': [
58-
'register_apple_pay_domain_request',
59-
],
60-
'required': [
61-
'register_apple_pay_domain_request',
62-
],
63-
'nullable': [
56+
"all": [
57+
"register_apple_pay_domain_request",
6458
],
65-
'enum': [
59+
"required": [
60+
"register_apple_pay_domain_request",
6661
],
67-
'validation': [
68-
]
62+
"nullable": [],
63+
"enum": [],
64+
"validation": [],
6965
},
7066
root_map={
71-
'validations': {
67+
"validations": {},
68+
"allowed_values": {},
69+
"openapi_types": {
70+
"register_apple_pay_domain_request": (
71+
RegisterApplePayDomainRequest,
72+
),
7273
},
73-
'allowed_values': {
74+
"attribute_map": {},
75+
"location_map": {
76+
"register_apple_pay_domain_request": "body",
7477
},
75-
'openapi_types': {
76-
'register_apple_pay_domain_request':
77-
(RegisterApplePayDomainRequest,),
78-
},
79-
'attribute_map': {
80-
},
81-
'location_map': {
82-
'register_apple_pay_domain_request': 'body',
83-
},
84-
'collection_format_map': {
85-
}
78+
"collection_format_map": {},
8679
},
8780
headers_map={
88-
'accept': [
89-
'application/json'
90-
],
91-
'content_type': [
92-
'application/json'
93-
]
81+
"accept": ["application/json"],
82+
"content_type": ["application/json"],
9483
},
95-
api_client=api_client
84+
api_client=api_client,
9685
)
9786

98-
def register(
99-
self,
100-
register_apple_pay_domain_request,
101-
**kwargs
102-
):
87+
def register(self, register_apple_pay_domain_request, **kwargs):
10388
"""Register Domain # noqa: E501
10489
10590
Registers a domain with Apple Pay. This endpoint allows you to register your website domain with Apple Pay, which is required before you can accept Apple Pay payments on your website. The domain must be accessible via HTTPS and have a valid SSL certificate. Before registering, you must download this [domain association file](https://assets.monei.com/apple-pay/apple-developer-merchantid-domain-association/) and host it at `/.well-known/apple-developer-merchantid-domain-association` on your site. For example, if you're registering `example.com`, make that file available at `https://example.com/.well-known/apple-developer-merchantid-domain-association`. After registration, Apple will verify your domain. Once verified, you can display Apple Pay buttons and process Apple Pay payments on your website. # noqa: E501
@@ -149,32 +134,15 @@ def register(
149134
If the method is called asynchronously, returns the request
150135
thread.
151136
"""
152-
kwargs['async_req'] = kwargs.get(
153-
'async_req', False
154-
)
155-
kwargs['_return_http_data_only'] = kwargs.get(
156-
'_return_http_data_only', True
157-
)
158-
kwargs['_preload_content'] = kwargs.get(
159-
'_preload_content', True
160-
)
161-
kwargs['_request_timeout'] = kwargs.get(
162-
'_request_timeout', None
163-
)
164-
kwargs['_check_input_type'] = kwargs.get(
165-
'_check_input_type', True
166-
)
167-
kwargs['_check_return_type'] = kwargs.get(
168-
'_check_return_type', True
169-
)
170-
kwargs['_spec_property_naming'] = kwargs.get(
171-
'_spec_property_naming', False
172-
)
173-
kwargs['_content_type'] = kwargs.get(
174-
'_content_type')
175-
kwargs['_host_index'] = kwargs.get('_host_index')
176-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
177-
kwargs['register_apple_pay_domain_request'] = \
178-
register_apple_pay_domain_request
137+
kwargs["async_req"] = kwargs.get("async_req", False)
138+
kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True)
139+
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
140+
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
141+
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
142+
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
143+
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
144+
kwargs["_content_type"] = kwargs.get("_content_type")
145+
kwargs["_host_index"] = kwargs.get("_host_index")
146+
kwargs["_request_auths"] = kwargs.get("_request_auths", None)
147+
kwargs["register_apple_pay_domain_request"] = register_apple_pay_domain_request
179148
return self.register_endpoint.call_with_http_info(**kwargs)
180-

0 commit comments

Comments
 (0)