Skip to content

Commit ed0a6d9

Browse files
updating to openapi generator 7.5
1 parent ff26af2 commit ed0a6d9

File tree

87 files changed

+5161
-2836
lines changed

Some content is hidden

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

87 files changed

+5161
-2836
lines changed

python/.openapi-generator/FILES

Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github/workflows/python.yml
12
.gitignore
23
.gitlab-ci.yml
34
.openapi-generator-ignore
@@ -81,67 +82,67 @@ openapi_client/api/tokenize_api.py
8182
openapi_client/api/transact_api.py
8283
openapi_client/api/unsuspend_api.py
8384
openapi_client/api_client.py
84-
openapi_client/apis/__init__.py
85+
openapi_client/api_response.py
8586
openapi_client/configuration.py
8687
openapi_client/exceptions.py
87-
openapi_client/model/__init__.py
88-
openapi_client/model/account_holder_data.py
89-
openapi_client/model/account_holder_data_outbound.py
90-
openapi_client/model/asset_response_schema.py
91-
openapi_client/model/authentication_methods.py
92-
openapi_client/model/billing_address.py
93-
openapi_client/model/card_account_data_inbound.py
94-
openapi_client/model/card_account_data_outbound.py
95-
openapi_client/model/decisioning_data.py
96-
openapi_client/model/delete_request_schema.py
97-
openapi_client/model/delete_response_schema.py
98-
openapi_client/model/encrypted_payload.py
99-
openapi_client/model/encrypted_payload_transact.py
100-
openapi_client/model/error.py
101-
openapi_client/model/errors_response.py
102-
openapi_client/model/funding_account_data.py
103-
openapi_client/model/funding_account_info.py
104-
openapi_client/model/funding_account_info_encrypted_payload.py
105-
openapi_client/model/gateway_error.py
106-
openapi_client/model/gateway_errors_response.py
107-
openapi_client/model/gateway_errors_schema.py
108-
openapi_client/model/get_task_status_request_schema.py
109-
openapi_client/model/get_task_status_response_schema.py
110-
openapi_client/model/get_token_request_schema.py
111-
openapi_client/model/get_token_response_schema.py
112-
openapi_client/model/media_content.py
113-
openapi_client/model/notify_token_encrypted_payload.py
114-
openapi_client/model/notify_token_updated_request_schema.py
115-
openapi_client/model/notify_token_updated_response_schema.py
116-
openapi_client/model/phone_number.py
117-
openapi_client/model/product_config.py
118-
openapi_client/model/search_tokens_request_schema.py
119-
openapi_client/model/search_tokens_response_schema.py
120-
openapi_client/model/suspend_request_schema.py
121-
openapi_client/model/suspend_response_schema.py
122-
openapi_client/model/token.py
123-
openapi_client/model/token_detail.py
124-
openapi_client/model/token_detail_data.py
125-
openapi_client/model/token_detail_data_get_token_only.py
126-
openapi_client/model/token_detail_data_par_only.py
127-
openapi_client/model/token_detail_get_token_only.py
128-
openapi_client/model/token_detail_par_only.py
129-
openapi_client/model/token_for_get_token.py
130-
openapi_client/model/token_for_lcm.py
131-
openapi_client/model/token_for_ntu.py
132-
openapi_client/model/token_info.py
133-
openapi_client/model/token_info_for_ntu_and_get_token.py
134-
openapi_client/model/tokenize_request_schema.py
135-
openapi_client/model/tokenize_response_schema.py
136-
openapi_client/model/transact_encrypted_data.py
137-
openapi_client/model/transact_error.py
138-
openapi_client/model/transact_request_schema.py
139-
openapi_client/model/transact_response_schema.py
140-
openapi_client/model/un_suspend_request_schema.py
141-
openapi_client/model/un_suspend_response_schema.py
142-
openapi_client/model_utils.py
14388
openapi_client/models/__init__.py
89+
openapi_client/models/account_holder_data.py
90+
openapi_client/models/account_holder_data_outbound.py
91+
openapi_client/models/asset_response_schema.py
92+
openapi_client/models/authentication_methods.py
93+
openapi_client/models/billing_address.py
94+
openapi_client/models/card_account_data_inbound.py
95+
openapi_client/models/card_account_data_outbound.py
96+
openapi_client/models/decisioning_data.py
97+
openapi_client/models/delete_request_schema.py
98+
openapi_client/models/delete_response_schema.py
99+
openapi_client/models/encrypted_payload.py
100+
openapi_client/models/encrypted_payload_transact.py
101+
openapi_client/models/error.py
102+
openapi_client/models/errors_response.py
103+
openapi_client/models/funding_account_data.py
104+
openapi_client/models/funding_account_info.py
105+
openapi_client/models/funding_account_info_encrypted_payload.py
106+
openapi_client/models/gateway_error.py
107+
openapi_client/models/gateway_errors_response.py
108+
openapi_client/models/gateway_errors_schema.py
109+
openapi_client/models/get_task_status_request_schema.py
110+
openapi_client/models/get_task_status_response_schema.py
111+
openapi_client/models/get_token_request_schema.py
112+
openapi_client/models/get_token_response_schema.py
113+
openapi_client/models/media_content.py
114+
openapi_client/models/notify_token_encrypted_payload.py
115+
openapi_client/models/notify_token_updated_request_schema.py
116+
openapi_client/models/notify_token_updated_response_schema.py
117+
openapi_client/models/phone_number.py
118+
openapi_client/models/product_config.py
119+
openapi_client/models/search_tokens_request_schema.py
120+
openapi_client/models/search_tokens_response_schema.py
121+
openapi_client/models/suspend_request_schema.py
122+
openapi_client/models/suspend_response_schema.py
123+
openapi_client/models/token.py
124+
openapi_client/models/token_detail.py
125+
openapi_client/models/token_detail_data.py
126+
openapi_client/models/token_detail_data_get_token_only.py
127+
openapi_client/models/token_detail_data_par_only.py
128+
openapi_client/models/token_detail_get_token_only.py
129+
openapi_client/models/token_detail_par_only.py
130+
openapi_client/models/token_for_get_token.py
131+
openapi_client/models/token_for_lcm.py
132+
openapi_client/models/token_for_ntu.py
133+
openapi_client/models/token_info.py
134+
openapi_client/models/token_info_for_ntu_and_get_token.py
135+
openapi_client/models/tokenize_request_schema.py
136+
openapi_client/models/tokenize_response_schema.py
137+
openapi_client/models/transact_encrypted_data.py
138+
openapi_client/models/transact_error.py
139+
openapi_client/models/transact_request_schema.py
140+
openapi_client/models/transact_response_schema.py
141+
openapi_client/models/un_suspend_request_schema.py
142+
openapi_client/models/un_suspend_response_schema.py
143+
openapi_client/py.typed
144144
openapi_client/rest.py
145+
pyproject.toml
145146
requirements.txt
146147
setup.cfg
147148
setup.py

python/.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.2.1
1+
7.5.0

python/README.md

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
2626

2727
- API version: 1.3.0
2828
- Package version: 1.0.0
29+
- Generator version: 7.5.0
2930
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
3031

3132
## Requirements.
3233

33-
Python >= 3.6
34+
Python 3.7+
3435

3536
## Installation & Usage
3637
### pip install
@@ -61,20 +62,20 @@ Then import the package:
6162
import openapi_client
6263
```
6364

65+
### Tests
66+
67+
Execute `pytest` to run the tests.
68+
6469
## Getting Started
6570

6671
Please follow the [installation procedure](#installation--usage) and then run the following:
6772

6873
```python
6974

70-
import time
7175
import openapi_client
76+
from openapi_client.rest import ApiException
7277
from pprint import pprint
73-
from openapi_client.api import delete_api
74-
from openapi_client.model.delete_request_schema import DeleteRequestSchema
75-
from openapi_client.model.delete_response_schema import DeleteResponseSchema
76-
from openapi_client.model.errors_response import ErrorsResponse
77-
from openapi_client.model.gateway_errors_response import GatewayErrorsResponse
78+
7879
# Defining the host is optional and defaults to https://api.mastercard.com/mdes
7980
# See configuration.py for a list of all supported configuration parameters.
8081
configuration = openapi_client.Configuration(
@@ -86,25 +87,17 @@ configuration = openapi_client.Configuration(
8687
# Enter a context with an instance of the API client
8788
with openapi_client.ApiClient(configuration) as api_client:
8889
# Create an instance of the API class
89-
api_instance = delete_api.DeleteApi(api_client)
90-
delete_request_schema = DeleteRequestSchema(
91-
response_host="site2.payment-app-provider.com",
92-
request_id="123456",
93-
payment_app_instance_id="123456789",
94-
token_unique_references=[
95-
"DWSPMC000000000132d72d4fcb2f4136a0532d3093ff1a45",
96-
],
97-
caused_by="CARDHOLDER",
98-
reason="Lost/stolen device",
99-
reason_code="SUSPECTED_FRAUD",
100-
) # DeleteRequestSchema | Contains the details of the request message. (optional)
90+
api_instance = openapi_client.DeleteApi(api_client)
91+
delete_request_schema = openapi_client.DeleteRequestSchema() # DeleteRequestSchema | Contains the details of the request message. (optional)
10192

10293
try:
10394
# Used to delete one or more Tokens. The API is limited to 10 Tokens per request.
10495
api_response = api_instance.delete_digitization(delete_request_schema=delete_request_schema)
96+
print("The response of DeleteApi->delete_digitization:\n")
10597
pprint(api_response)
106-
except openapi_client.ApiException as e:
98+
except ApiException as e:
10799
print("Exception when calling DeleteApi->delete_digitization: %s\n" % e)
100+
108101
```
109102

110103
## Documentation for API Endpoints
@@ -183,31 +176,14 @@ Class | Method | HTTP request | Description
183176
- [UnSuspendResponseSchema](docs/UnSuspendResponseSchema.md)
184177

185178

179+
<a id="documentation-for-authorization"></a>
186180
## Documentation For Authorization
187181

188-
All endpoints do not require authorization.
189-
190-
## Author
191-
182+
Endpoints do not require authorization.
192183

193184

185+
## Author
194186

195-
## Notes for Large OpenAPI documents
196-
If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a
197-
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
198187

199-
Solution 1:
200-
Use specific imports for apis and models like:
201-
- `from openapi_client.api.default_api import DefaultApi`
202-
- `from openapi_client.model.pet import Pet`
203188

204-
Solution 2:
205-
Before importing the package, adjust the maximum recursion limit as shown below:
206-
```
207-
import sys
208-
sys.setrecursionlimit(1500)
209-
import openapi_client
210-
from openapi_client.apis import *
211-
from openapi_client.models import *
212-
```
213189

python/docs/AccountHolderData.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,32 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**account_holder_name** | **str** | **(OPTIONAL)** The name of the cardholder in the format LASTNAME/FIRSTNAME or FIRSTNAME LASTNAME | [optional]
89
**account_holder_address** | [**BillingAddress**](BillingAddress.md) | | [optional]
910
**consumer_identifier** | **str** | **(OPTIONAL)** Customer Identifier that may be required in some regions. | [optional]
1011
**account_holder_email_address** | **str** | **(OPTIONAL)** The e-mail address of the Account Holder | [optional]
1112
**account_holder_mobile_phone_number** | [**PhoneNumber**](PhoneNumber.md) | | [optional]
12-
**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]
1313

14+
## Example
15+
16+
```python
17+
from openapi_client.models.account_holder_data import AccountHolderData
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of AccountHolderData from a JSON string
22+
account_holder_data_instance = AccountHolderData.from_json(json)
23+
# print the JSON string representation of the object
24+
print(AccountHolderData.to_json())
25+
26+
# convert the object into a dict
27+
account_holder_data_dict = account_holder_data_instance.to_dict()
28+
# create an instance of AccountHolderData from a dict
29+
account_holder_data_from_dict = AccountHolderData.from_dict(account_holder_data_dict)
30+
```
1431
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1532

1633

python/docs/AccountHolderDataOutbound.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,31 @@
33
**(CONDITIONAL)** Present in tokenize response if supported by the Merchant, if using a pushAccountReceipt and if there is account holder data associated with the pushAccountReceipt in case that the issuer decision is APPROVED. Refer to MDES Token Connect Token Requestor Implementation Guide and Specification for more details.
44

55
## Properties
6+
67
Name | Type | Description | Notes
78
------------ | ------------- | ------------- | -------------
89
**account_holder_name** | **str** | **(OPTIONAL)** The name of the cardholder | [optional]
910
**account_holder_address** | [**BillingAddress**](BillingAddress.md) | | [optional]
1011
**account_holder_email_address** | **str** | **(OPTIONAL)** The e-mail address of the Account Holder | [optional]
1112
**account_holder_mobile_phone_number** | [**PhoneNumber**](PhoneNumber.md) | | [optional]
12-
**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]
1313

14+
## Example
15+
16+
```python
17+
from openapi_client.models.account_holder_data_outbound import AccountHolderDataOutbound
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of AccountHolderDataOutbound from a JSON string
22+
account_holder_data_outbound_instance = AccountHolderDataOutbound.from_json(json)
23+
# print the JSON string representation of the object
24+
print(AccountHolderDataOutbound.to_json())
25+
26+
# convert the object into a dict
27+
account_holder_data_outbound_dict = account_holder_data_outbound_instance.to_dict()
28+
# create an instance of AccountHolderDataOutbound from a dict
29+
account_holder_data_outbound_from_dict = AccountHolderDataOutbound.from_dict(account_holder_data_outbound_dict)
30+
```
1431
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1532

1633

python/docs/AssetResponseSchema.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,28 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
7-
**media_contents** | [**[MediaContent]**](MediaContent.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]
8+
**media_contents** | [**List[MediaContent]**](MediaContent.md) | | [optional]
9+
10+
## Example
11+
12+
```python
13+
from openapi_client.models.asset_response_schema import AssetResponseSchema
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of AssetResponseSchema from a JSON string
18+
asset_response_schema_instance = AssetResponseSchema.from_json(json)
19+
# print the JSON string representation of the object
20+
print(AssetResponseSchema.to_json())
921

22+
# convert the object into a dict
23+
asset_response_schema_dict = asset_response_schema_instance.to_dict()
24+
# create an instance of AssetResponseSchema from a dict
25+
asset_response_schema_from_dict = AssetResponseSchema.from_dict(asset_response_schema_dict)
26+
```
1027
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1128

1229

python/docs/AuthenticationMethods.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,30 @@
33
\"authenticationMethods not currently used for MDES for Merchants\"
44

55
## Properties
6+
67
Name | Type | Description | Notes
78
------------ | ------------- | ------------- | -------------
89
**id** | **float** | Unique identifier assigned to this Authentication Method. | [optional]
910
**type** | **str** | Specifies the authentication method type and provided in the tokenize response. See table here - https://developer.mastercard.com/mdes-digital-enablement/documentation/code-and-formats/#authentication-method-codes | [optional]
1011
**value** | **str** | Specifies the authentication method value (meaning varies depending on the authentication method type). | [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]
1212

13+
## Example
14+
15+
```python
16+
from openapi_client.models.authentication_methods import AuthenticationMethods
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of AuthenticationMethods from a JSON string
21+
authentication_methods_instance = AuthenticationMethods.from_json(json)
22+
# print the JSON string representation of the object
23+
print(AuthenticationMethods.to_json())
24+
25+
# convert the object into a dict
26+
authentication_methods_dict = authentication_methods_instance.to_dict()
27+
# create an instance of AuthenticationMethods from a dict
28+
authentication_methods_from_dict = AuthenticationMethods.from_dict(authentication_methods_dict)
29+
```
1330
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1431

1532

0 commit comments

Comments
 (0)