Skip to content

Commit 9658c9f

Browse files
Merge pull request #24 from mxenabled/openapi-generator-0.7.0
Generated version 0.7.0
2 parents afec5a0 + 5f629a5 commit 9658c9f

31 files changed

+2871
-5
lines changed

.openapi-generator/FILES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ docs/OAuthWindowResponse.md
6969
docs/OAuthWindowResponseBody.md
7070
docs/OptionResponse.md
7171
docs/PaginationResponse.md
72+
docs/PaymentAccountResponse.md
73+
docs/PaymentAccountResponseBody.md
74+
docs/PaymentProcessorAuthorizationCodeRequest.md
75+
docs/PaymentProcessorAuthorizationCodeRequestBody.md
76+
docs/PaymentProcessorAuthorizationCodeResponse.md
77+
docs/PaymentProcessorAuthorizationCodeResponseBody.md
78+
docs/PaymentProcessorTokenResponseBody.md
7279
docs/StatementResponse.md
7380
docs/StatementResponseBody.md
7481
docs/StatementsResponseBody.md
@@ -185,6 +192,13 @@ mx_platform_python/model/o_auth_window_response.py
185192
mx_platform_python/model/o_auth_window_response_body.py
186193
mx_platform_python/model/option_response.py
187194
mx_platform_python/model/pagination_response.py
195+
mx_platform_python/model/payment_account_response.py
196+
mx_platform_python/model/payment_account_response_body.py
197+
mx_platform_python/model/payment_processor_authorization_code_request.py
198+
mx_platform_python/model/payment_processor_authorization_code_request_body.py
199+
mx_platform_python/model/payment_processor_authorization_code_response.py
200+
mx_platform_python/model/payment_processor_authorization_code_response_body.py
201+
mx_platform_python/model/payment_processor_token_response_body.py
188202
mx_platform_python/model/statement_response.py
189203
mx_platform_python/model/statement_response_body.py
190204
mx_platform_python/model/statements_response_body.py
@@ -302,6 +316,13 @@ test/test_o_auth_window_response.py
302316
test/test_o_auth_window_response_body.py
303317
test/test_option_response.py
304318
test/test_pagination_response.py
319+
test/test_payment_account_response.py
320+
test/test_payment_account_response_body.py
321+
test/test_payment_processor_authorization_code_request.py
322+
test/test_payment_processor_authorization_code_request_body.py
323+
test/test_payment_processor_authorization_code_response.py
324+
test/test_payment_processor_authorization_code_response_body.py
325+
test/test_payment_processor_token_response_body.py
305326
test/test_statement_response.py
306327
test/test_statement_response_body.py
307328
test/test_statements_response_body.py

docs/MxPlatformApi.md

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ Method | HTTP request | Description
7979
[**read_user**](MxPlatformApi.md#read_user) | **GET** /users/{user_guid} | Read user
8080
[**request_connect_widget_url**](MxPlatformApi.md#request_connect_widget_url) | **POST** /users/{user_guid}/connect_widget_url | Request connect widget url
8181
[**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
82+
[**request_payment_account**](MxPlatformApi.md#request_payment_account) | **GET** /payment_account | Request payment account
83+
[**request_payment_processor_authorization_code**](MxPlatformApi.md#request_payment_processor_authorization_code) | **POST** /payment_processor_authorization_code | Request payment processor authorization code
84+
[**request_payment_processor_token**](MxPlatformApi.md#request_payment_processor_token) | **POST** /payment_processor_token | Request payment processor token
8285
[**request_widget_url**](MxPlatformApi.md#request_widget_url) | **POST** /users/{user_guid}/widget_urls | Request widget url
8386
[**resume_aggregation**](MxPlatformApi.md#resume_aggregation) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation
8487
[**update_account_by_member**](MxPlatformApi.md#update_account_by_member) | **PUT** /users/{user_guid}/members/{member_guid}/accounts/{account_guid} | Update account by member
@@ -6571,6 +6574,245 @@ Name | Type | Description | Notes
65716574
- **Accept**: application/vnd.mx.api.v1+json
65726575

65736576

6577+
### HTTP response details
6578+
6579+
| Status code | Description | Response headers |
6580+
|-------------|-------------|------------------|
6581+
**200** | OK | - |
6582+
6583+
[[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)
6584+
6585+
# **request_payment_account**
6586+
> PaymentAccountResponseBody request_payment_account()
6587+
6588+
Request payment account
6589+
6590+
Use this endpoint to request a payment account.
6591+
6592+
### Example
6593+
6594+
* Bearer Authentication (bearerAuth):
6595+
6596+
```python
6597+
import time
6598+
import mx_platform_python
6599+
from mx_platform_python.api import mx_platform_api
6600+
from mx_platform_python.model.payment_account_response_body import PaymentAccountResponseBody
6601+
from pprint import pprint
6602+
# Defining the host is optional and defaults to https://api.mx.com
6603+
# See configuration.py for a list of all supported configuration parameters.
6604+
configuration = mx_platform_python.Configuration(
6605+
host = "https://api.mx.com"
6606+
)
6607+
6608+
# The client must configure the authentication and authorization parameters
6609+
# in accordance with the API server security policy.
6610+
# Examples for each auth method are provided below, use the example that
6611+
# satisfies your auth use case.
6612+
6613+
# Configure Bearer authorization: bearerAuth
6614+
configuration = mx_platform_python.Configuration(
6615+
access_token = 'YOUR_BEARER_TOKEN'
6616+
)
6617+
6618+
# Enter a context with an instance of the API client
6619+
with mx_platform_python.ApiClient(configuration) as api_client:
6620+
# Create an instance of the API class
6621+
api_instance = mx_platform_api.MxPlatformApi(api_client)
6622+
6623+
# example, this endpoint has no required or optional parameters
6624+
try:
6625+
# Request payment account
6626+
api_response = api_instance.request_payment_account()
6627+
pprint(api_response)
6628+
except mx_platform_python.ApiException as e:
6629+
print("Exception when calling MxPlatformApi->request_payment_account: %s\n" % e)
6630+
```
6631+
6632+
6633+
### Parameters
6634+
This endpoint does not need any parameter.
6635+
6636+
### Return type
6637+
6638+
[**PaymentAccountResponseBody**](PaymentAccountResponseBody.md)
6639+
6640+
### Authorization
6641+
6642+
[bearerAuth](../README.md#bearerAuth)
6643+
6644+
### HTTP request headers
6645+
6646+
- **Content-Type**: Not defined
6647+
- **Accept**: application/vnd.mx.api.v1+json
6648+
6649+
6650+
### HTTP response details
6651+
6652+
| Status code | Description | Response headers |
6653+
|-------------|-------------|------------------|
6654+
**200** | OK | - |
6655+
6656+
[[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)
6657+
6658+
# **request_payment_processor_authorization_code**
6659+
> PaymentProcessorAuthorizationCodeResponseBody request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
6660+
6661+
Request payment processor authorization code
6662+
6663+
Use this endpoint to request a payment processor authorization code.
6664+
6665+
### Example
6666+
6667+
* Basic Authentication (basicAuth):
6668+
6669+
```python
6670+
import time
6671+
import mx_platform_python
6672+
from mx_platform_python.api import mx_platform_api
6673+
from mx_platform_python.model.payment_processor_authorization_code_request_body import PaymentProcessorAuthorizationCodeRequestBody
6674+
from mx_platform_python.model.payment_processor_authorization_code_response_body import PaymentProcessorAuthorizationCodeResponseBody
6675+
from pprint import pprint
6676+
# Defining the host is optional and defaults to https://api.mx.com
6677+
# See configuration.py for a list of all supported configuration parameters.
6678+
configuration = mx_platform_python.Configuration(
6679+
host = "https://api.mx.com"
6680+
)
6681+
6682+
# The client must configure the authentication and authorization parameters
6683+
# in accordance with the API server security policy.
6684+
# Examples for each auth method are provided below, use the example that
6685+
# satisfies your auth use case.
6686+
6687+
# Configure HTTP basic authorization: basicAuth
6688+
configuration = mx_platform_python.Configuration(
6689+
username = 'YOUR_USERNAME',
6690+
password = 'YOUR_PASSWORD'
6691+
)
6692+
6693+
# Enter a context with an instance of the API client
6694+
with mx_platform_python.ApiClient(configuration) as api_client:
6695+
# Create an instance of the API class
6696+
api_instance = mx_platform_api.MxPlatformApi(api_client)
6697+
payment_processor_authorization_code_request_body = PaymentProcessorAuthorizationCodeRequestBody(
6698+
payment_processor_authorization_code=PaymentProcessorAuthorizationCodeRequest(
6699+
account_guid="ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1",
6700+
member_guid="MBR-7c6f361b-e582-15b6-60c0-358f12466b4b",
6701+
user_guid="USR-fa7537f3-48aa-a683-a02a-b18940482f54",
6702+
),
6703+
) # PaymentProcessorAuthorizationCodeRequestBody | Payment processor authorization code object containing account_guid, member_guid, and user_guid.
6704+
6705+
# example passing only required values which don't have defaults set
6706+
try:
6707+
# Request payment processor authorization code
6708+
api_response = api_instance.request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
6709+
pprint(api_response)
6710+
except mx_platform_python.ApiException as e:
6711+
print("Exception when calling MxPlatformApi->request_payment_processor_authorization_code: %s\n" % e)
6712+
```
6713+
6714+
6715+
### Parameters
6716+
6717+
Name | Type | Description | Notes
6718+
------------- | ------------- | ------------- | -------------
6719+
**payment_processor_authorization_code_request_body** | [**PaymentProcessorAuthorizationCodeRequestBody**](PaymentProcessorAuthorizationCodeRequestBody.md)| Payment processor authorization code object containing account_guid, member_guid, and user_guid. |
6720+
6721+
### Return type
6722+
6723+
[**PaymentProcessorAuthorizationCodeResponseBody**](PaymentProcessorAuthorizationCodeResponseBody.md)
6724+
6725+
### Authorization
6726+
6727+
[basicAuth](../README.md#basicAuth)
6728+
6729+
### HTTP request headers
6730+
6731+
- **Content-Type**: application/json
6732+
- **Accept**: application/vnd.mx.api.v1+json
6733+
6734+
6735+
### HTTP response details
6736+
6737+
| Status code | Description | Response headers |
6738+
|-------------|-------------|------------------|
6739+
**200** | OK | - |
6740+
6741+
[[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)
6742+
6743+
# **request_payment_processor_token**
6744+
> PaymentProcessorTokenResponseBody request_payment_processor_token()
6745+
6746+
Request payment processor token
6747+
6748+
Use this endpoint to request a payment processor token.
6749+
6750+
### Example
6751+
6752+
* Basic Authentication (basicAuth):
6753+
6754+
```python
6755+
import time
6756+
import mx_platform_python
6757+
from mx_platform_python.api import mx_platform_api
6758+
from mx_platform_python.model.payment_processor_token_response_body import PaymentProcessorTokenResponseBody
6759+
from pprint import pprint
6760+
# Defining the host is optional and defaults to https://api.mx.com
6761+
# See configuration.py for a list of all supported configuration parameters.
6762+
configuration = mx_platform_python.Configuration(
6763+
host = "https://api.mx.com"
6764+
)
6765+
6766+
# The client must configure the authentication and authorization parameters
6767+
# in accordance with the API server security policy.
6768+
# Examples for each auth method are provided below, use the example that
6769+
# satisfies your auth use case.
6770+
6771+
# Configure HTTP basic authorization: basicAuth
6772+
configuration = mx_platform_python.Configuration(
6773+
username = 'YOUR_USERNAME',
6774+
password = 'YOUR_PASSWORD'
6775+
)
6776+
6777+
# Enter a context with an instance of the API client
6778+
with mx_platform_python.ApiClient(configuration) as api_client:
6779+
# Create an instance of the API class
6780+
api_instance = mx_platform_api.MxPlatformApi(api_client)
6781+
code = "sN3Ffd1nJg_iwEMuxcEo2Z5taC0RvMilfvYKsnM2XGM" # str | Code to request processor token. (optional)
6782+
grant_type = "authorization_code" # str | Specify grant type. (optional)
6783+
6784+
# example passing only required values which don't have defaults set
6785+
# and optional values
6786+
try:
6787+
# Request payment processor token
6788+
api_response = api_instance.request_payment_processor_token(code=code, grant_type=grant_type)
6789+
pprint(api_response)
6790+
except mx_platform_python.ApiException as e:
6791+
print("Exception when calling MxPlatformApi->request_payment_processor_token: %s\n" % e)
6792+
```
6793+
6794+
6795+
### Parameters
6796+
6797+
Name | Type | Description | Notes
6798+
------------- | ------------- | ------------- | -------------
6799+
**code** | **str**| Code to request processor token. | [optional]
6800+
**grant_type** | **str**| Specify grant type. | [optional]
6801+
6802+
### Return type
6803+
6804+
[**PaymentProcessorTokenResponseBody**](PaymentProcessorTokenResponseBody.md)
6805+
6806+
### Authorization
6807+
6808+
[basicAuth](../README.md#basicAuth)
6809+
6810+
### HTTP request headers
6811+
6812+
- **Content-Type**: Not defined
6813+
- **Accept**: application/vnd.mx.api.v1+json
6814+
6815+
65746816
### HTTP response details
65756817

65766818
| Status code | Description | Response headers |

docs/PaymentAccountResponse.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# PaymentAccountResponse
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**account_name** | **str, none_type** | | [optional]
8+
**account_number** | **str, none_type** | | [optional]
9+
**account_type** | **str, none_type** | | [optional]
10+
**available_balance** | **float, none_type** | | [optional]
11+
**balance** | **float, none_type** | | [optional]
12+
**routing_number** | **str, none_type** | | [optional]
13+
**transit_number** | **str, none_type** | | [optional]
14+
**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]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

docs/PaymentAccountResponseBody.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PaymentAccountResponseBody
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**payment_account** | [**PaymentAccountResponse**](PaymentAccountResponse.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: 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** | | [optional]
8+
**member_guid** | **str** | | [optional]
9+
**user_guid** | **str** | | [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+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PaymentProcessorTokenResponseBody
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**access_token** | **str, none_type** | | [optional]
8+
**scope** | **str, none_type** | | [optional]
9+
**token_type** | **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+

0 commit comments

Comments
 (0)