Skip to content

Commit 0c60ed8

Browse files
authored
Merge pull request #35 from mxenabled/openapi-generator-0.11.0
Generated version 0.11.0
2 parents 1698675 + 536e3c1 commit 0c60ed8

34 files changed

+2943
-5
lines changed

.openapi-generator/FILES

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ docs/AccountResponseBody.md
99
docs/AccountUpdateRequest.md
1010
docs/AccountUpdateRequestBody.md
1111
docs/AccountsResponseBody.md
12+
docs/AuthorizationCodeRequest.md
13+
docs/AuthorizationCodeRequestBody.md
14+
docs/AuthorizationCodeResponse.md
15+
docs/AuthorizationCodeResponseBody.md
1216
docs/CategoriesResponseBody.md
1317
docs/CategoryCreateRequest.md
1418
docs/CategoryCreateRequestBody.md
@@ -69,6 +73,10 @@ docs/OAuthWindowResponse.md
6973
docs/OAuthWindowResponseBody.md
7074
docs/OptionResponse.md
7175
docs/PaginationResponse.md
76+
docs/PaymentProcessorAuthorizationCodeRequest.md
77+
docs/PaymentProcessorAuthorizationCodeRequestBody.md
78+
docs/PaymentProcessorAuthorizationCodeResponse.md
79+
docs/PaymentProcessorAuthorizationCodeResponseBody.md
7280
docs/StatementResponse.md
7381
docs/StatementResponseBody.md
7482
docs/StatementsResponseBody.md
@@ -126,6 +134,10 @@ mx_platform_python/model/account_response_body.py
126134
mx_platform_python/model/account_update_request.py
127135
mx_platform_python/model/account_update_request_body.py
128136
mx_platform_python/model/accounts_response_body.py
137+
mx_platform_python/model/authorization_code_request.py
138+
mx_platform_python/model/authorization_code_request_body.py
139+
mx_platform_python/model/authorization_code_response.py
140+
mx_platform_python/model/authorization_code_response_body.py
129141
mx_platform_python/model/categories_response_body.py
130142
mx_platform_python/model/category_create_request.py
131143
mx_platform_python/model/category_create_request_body.py
@@ -185,6 +197,10 @@ mx_platform_python/model/o_auth_window_response.py
185197
mx_platform_python/model/o_auth_window_response_body.py
186198
mx_platform_python/model/option_response.py
187199
mx_platform_python/model/pagination_response.py
200+
mx_platform_python/model/payment_processor_authorization_code_request.py
201+
mx_platform_python/model/payment_processor_authorization_code_request_body.py
202+
mx_platform_python/model/payment_processor_authorization_code_response.py
203+
mx_platform_python/model/payment_processor_authorization_code_response_body.py
188204
mx_platform_python/model/statement_response.py
189205
mx_platform_python/model/statement_response_body.py
190206
mx_platform_python/model/statements_response_body.py
@@ -242,6 +258,10 @@ test/test_account_response_body.py
242258
test/test_account_update_request.py
243259
test/test_account_update_request_body.py
244260
test/test_accounts_response_body.py
261+
test/test_authorization_code_request.py
262+
test/test_authorization_code_request_body.py
263+
test/test_authorization_code_response.py
264+
test/test_authorization_code_response_body.py
245265
test/test_categories_response_body.py
246266
test/test_category_create_request.py
247267
test/test_category_create_request_body.py
@@ -302,6 +322,10 @@ test/test_o_auth_window_response.py
302322
test/test_o_auth_window_response_body.py
303323
test/test_option_response.py
304324
test/test_pagination_response.py
325+
test/test_payment_processor_authorization_code_request.py
326+
test/test_payment_processor_authorization_code_request_body.py
327+
test/test_payment_processor_authorization_code_response.py
328+
test/test_payment_processor_authorization_code_response_body.py
305329
test/test_statement_response.py
306330
test/test_statement_response_body.py
307331
test/test_statements_response_body.py

docs/AuthorizationCodeRequest.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AuthorizationCodeRequest
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**scope** | **str, none_type** | | [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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AuthorizationCodeRequestBody
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**authorization_code** | [**AuthorizationCodeRequest**](AuthorizationCodeRequest.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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/AuthorizationCodeResponse.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AuthorizationCodeResponse
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**code** | **str, none_type** | | [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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AuthorizationCodeResponseBody
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**authorization_code** | [**[AuthorizationCodeResponse]**](AuthorizationCodeResponse.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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/MxPlatformApi.md

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Method | HTTP request | Description
2424
[**delete_tagging**](MxPlatformApi.md#delete_tagging) | **DELETE** /users/{user_guid}/taggings/{tagging_guid} | Delete tagging
2525
[**delete_transaction_rule**](MxPlatformApi.md#delete_transaction_rule) | **DELETE** /users/{user_guid}/transaction_rules/{transaction_rule_guid} | Delete transaction rule
2626
[**delete_user**](MxPlatformApi.md#delete_user) | **DELETE** /users/{user_guid} | Delete user
27+
[**deprecated_request_payment_processor_authorization_code**](MxPlatformApi.md#deprecated_request_payment_processor_authorization_code) | **POST** /payment_processor_authorization_code | (Deprecated) Request an authorization code.
2728
[**download_statement_pdf**](MxPlatformApi.md#download_statement_pdf) | **GET** /users/{user_guid}/members/{member_guid}/statements/{statement_guid}.pdf | Download statement pdf
2829
[**enhance_transactions**](MxPlatformApi.md#enhance_transactions) | **POST** /transactions/enhance | Enhance transactions
2930
[**extend_history**](MxPlatformApi.md#extend_history) | **POST** /users/{user_guid}/members/{member_guid}/extend_history | Extend history
@@ -79,6 +80,7 @@ Method | HTTP request | Description
7980
[**read_transaction**](MxPlatformApi.md#read_transaction) | **GET** /users/{user_guid}/transactions/{transaction_guid} | Read transaction
8081
[**read_transaction_rule**](MxPlatformApi.md#read_transaction_rule) | **GET** /users/{user_guid}/transaction_rules/{transaction_rule_guid} | Read transaction rule
8182
[**read_user**](MxPlatformApi.md#read_user) | **GET** /users/{user_guid} | Read user
83+
[**request_authorization_code**](MxPlatformApi.md#request_authorization_code) | **POST** /authorization_code | Request an authorization code.
8284
[**request_connect_widget_url**](MxPlatformApi.md#request_connect_widget_url) | **POST** /users/{user_guid}/connect_widget_url | Request connect widget url
8385
[**request_o_auth_window_uri**](MxPlatformApi.md#request_o_auth_window_uri) | **GET** /users/{user_guid}/members/{member_guid}/oauth_window_uri | Request oauth window uri
8486
[**request_widget_url**](MxPlatformApi.md#request_widget_url) | **POST** /users/{user_guid}/widget_urls | Request widget url
@@ -1806,6 +1808,91 @@ void (empty response body)
18061808

18071809
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
18081810

1811+
# **deprecated_request_payment_processor_authorization_code**
1812+
> PaymentProcessorAuthorizationCodeResponseBody deprecated_request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
1813+
1814+
(Deprecated) Request an authorization code.
1815+
1816+
(This endpoint is deprecated. Clients should use `/authorization_code`.) Clients use this endpoint to request an authorization_code according to a user, member, and account specified in the request body. Clients then pass this code to processors. Processor access is scoped only to the user/member/account specified in this request. Before requesting an authorization_code, clients must have verified the specified member.
1817+
1818+
### Example
1819+
1820+
* Basic Authentication (basicAuth):
1821+
1822+
```python
1823+
import time
1824+
import mx_platform_python
1825+
from mx_platform_python.api import mx_platform_api
1826+
from mx_platform_python.model.payment_processor_authorization_code_request_body import PaymentProcessorAuthorizationCodeRequestBody
1827+
from mx_platform_python.model.payment_processor_authorization_code_response_body import PaymentProcessorAuthorizationCodeResponseBody
1828+
from pprint import pprint
1829+
# Defining the host is optional and defaults to https://api.mx.com
1830+
# See configuration.py for a list of all supported configuration parameters.
1831+
configuration = mx_platform_python.Configuration(
1832+
host = "https://api.mx.com"
1833+
)
1834+
1835+
# The client must configure the authentication and authorization parameters
1836+
# in accordance with the API server security policy.
1837+
# Examples for each auth method are provided below, use the example that
1838+
# satisfies your auth use case.
1839+
1840+
# Configure HTTP basic authorization: basicAuth
1841+
configuration = mx_platform_python.Configuration(
1842+
username = 'YOUR_USERNAME',
1843+
password = 'YOUR_PASSWORD'
1844+
)
1845+
1846+
# Enter a context with an instance of the API client
1847+
with mx_platform_python.ApiClient(configuration) as api_client:
1848+
# Create an instance of the API class
1849+
api_instance = mx_platform_api.MxPlatformApi(api_client)
1850+
payment_processor_authorization_code_request_body = PaymentProcessorAuthorizationCodeRequestBody(
1851+
payment_processor_authorization_code=PaymentProcessorAuthorizationCodeRequest(
1852+
account_guid="ACT-4d4c0068-33bc-4d06-bbd6-cd270fd0135c",
1853+
member_guid="MBR-46637bc5-942d-4229-9370-ddd858bf805e",
1854+
user_guid="USR-f12b1f5a-7cbe-467c-aa30-0a10d0b2f549",
1855+
),
1856+
) # PaymentProcessorAuthorizationCodeRequestBody | The scope for the authorization code.
1857+
1858+
# example passing only required values which don't have defaults set
1859+
try:
1860+
# (Deprecated) Request an authorization code.
1861+
api_response = api_instance.deprecated_request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
1862+
pprint(api_response)
1863+
except mx_platform_python.ApiException as e:
1864+
print("Exception when calling MxPlatformApi->deprecated_request_payment_processor_authorization_code: %s\n" % e)
1865+
```
1866+
1867+
1868+
### Parameters
1869+
1870+
Name | Type | Description | Notes
1871+
------------- | ------------- | ------------- | -------------
1872+
**payment_processor_authorization_code_request_body** | [**PaymentProcessorAuthorizationCodeRequestBody**](PaymentProcessorAuthorizationCodeRequestBody.md)| The scope for the authorization code. |
1873+
1874+
### Return type
1875+
1876+
[**PaymentProcessorAuthorizationCodeResponseBody**](PaymentProcessorAuthorizationCodeResponseBody.md)
1877+
1878+
### Authorization
1879+
1880+
[basicAuth](../README.md#basicAuth)
1881+
1882+
### HTTP request headers
1883+
1884+
- **Content-Type**: application/json
1885+
- **Accept**: application/vnd.mx.api.v1+json
1886+
1887+
1888+
### HTTP response details
1889+
1890+
| Status code | Description | Response headers |
1891+
|-------------|-------------|------------------|
1892+
**200** | OK | - |
1893+
1894+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1895+
18091896
# **download_statement_pdf**
18101897
> file_type download_statement_pdf(member_guid, statement_guid, user_guid)
18111898
@@ -6569,6 +6656,89 @@ Name | Type | Description | Notes
65696656
- **Accept**: application/vnd.mx.api.v1+json
65706657

65716658

6659+
### HTTP response details
6660+
6661+
| Status code | Description | Response headers |
6662+
|-------------|-------------|------------------|
6663+
**200** | OK | - |
6664+
6665+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6666+
6667+
# **request_authorization_code**
6668+
> AuthorizationCodeResponseBody request_authorization_code(authorization_code_request_body)
6669+
6670+
Request an authorization code.
6671+
6672+
Clients use this endpoint to request an authorization code according to the parameters specified in the scope. Clients then pass this code to processors. Processor access is scoped only to the GUIDs and features specified in this request. Before requesting an authorization code which includes a member in the scope, clients must have verified that member.
6673+
6674+
### Example
6675+
6676+
* Basic Authentication (basicAuth):
6677+
6678+
```python
6679+
import time
6680+
import mx_platform_python
6681+
from mx_platform_python.api import mx_platform_api
6682+
from mx_platform_python.model.authorization_code_request_body import AuthorizationCodeRequestBody
6683+
from mx_platform_python.model.authorization_code_response_body import AuthorizationCodeResponseBody
6684+
from pprint import pprint
6685+
# Defining the host is optional and defaults to https://api.mx.com
6686+
# See configuration.py for a list of all supported configuration parameters.
6687+
configuration = mx_platform_python.Configuration(
6688+
host = "https://api.mx.com"
6689+
)
6690+
6691+
# The client must configure the authentication and authorization parameters
6692+
# in accordance with the API server security policy.
6693+
# Examples for each auth method are provided below, use the example that
6694+
# satisfies your auth use case.
6695+
6696+
# Configure HTTP basic authorization: basicAuth
6697+
configuration = mx_platform_python.Configuration(
6698+
username = 'YOUR_USERNAME',
6699+
password = 'YOUR_PASSWORD'
6700+
)
6701+
6702+
# Enter a context with an instance of the API client
6703+
with mx_platform_python.ApiClient(configuration) as api_client:
6704+
# Create an instance of the API class
6705+
api_instance = mx_platform_api.MxPlatformApi(api_client)
6706+
authorization_code_request_body = AuthorizationCodeRequestBody(
6707+
authorization_code=AuthorizationCodeRequest(
6708+
scope="user-guid:USR-101ad774-288b-44ed-ad16-da87d522ea20 member-guid:MBR-54feffb9-8474-47bd-8442-de003910113a account-guid:ACT-32a64160-582a-4f00-ab34-5f49cc35ed35 read-protected",
6709+
),
6710+
) # AuthorizationCodeRequestBody | The scope for the authorization code.
6711+
6712+
# example passing only required values which don't have defaults set
6713+
try:
6714+
# Request an authorization code.
6715+
api_response = api_instance.request_authorization_code(authorization_code_request_body)
6716+
pprint(api_response)
6717+
except mx_platform_python.ApiException as e:
6718+
print("Exception when calling MxPlatformApi->request_authorization_code: %s\n" % e)
6719+
```
6720+
6721+
6722+
### Parameters
6723+
6724+
Name | Type | Description | Notes
6725+
------------- | ------------- | ------------- | -------------
6726+
**authorization_code_request_body** | [**AuthorizationCodeRequestBody**](AuthorizationCodeRequestBody.md)| The scope for the authorization code. |
6727+
6728+
### Return type
6729+
6730+
[**AuthorizationCodeResponseBody**](AuthorizationCodeResponseBody.md)
6731+
6732+
### Authorization
6733+
6734+
[basicAuth](../README.md#basicAuth)
6735+
6736+
### HTTP request headers
6737+
6738+
- **Content-Type**: application/json
6739+
- **Accept**: application/vnd.mx.api.v1+json
6740+
6741+
65726742
### HTTP response details
65736743

65746744
| Status code | Description | Response headers |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PaymentProcessorAuthorizationCodeRequest
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**account_guid** | **str, none_type** | | [optional]
8+
**member_guid** | **str, none_type** | | [optional]
9+
**user_guid** | **str, none_type** | | [optional]
10+
**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]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PaymentProcessorAuthorizationCodeRequestBody
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**payment_processor_authorization_code** | [**PaymentProcessorAuthorizationCodeRequest**](PaymentProcessorAuthorizationCodeRequest.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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PaymentProcessorAuthorizationCodeResponse
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**authorization_code** | **str, none_type** | | [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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PaymentProcessorAuthorizationCodeResponseBody
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**payment_processor_authorization_code** | [**PaymentProcessorAuthorizationCodeResponse**](PaymentProcessorAuthorizationCodeResponse.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]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

0 commit comments

Comments
 (0)