Skip to content

9.5.0 #419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2022
Merged

9.5.0 #419

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ plaid/model/create_entity_watchlist_screening_review_request.py
plaid/model/create_individual_watchlist_screening_review_request.py
plaid/model/credit_account_subtype.py
plaid/model/credit_account_subtypes.py
plaid/model/credit_audit_copy_token_create_request.py
plaid/model/credit_audit_copy_token_create_response.py
plaid/model/credit_bank_income.py
plaid/model/credit_bank_income_account.py
plaid/model/credit_bank_income_account_type.py
Expand Down Expand Up @@ -779,8 +781,12 @@ plaid/model/transfer_user_address_in_response.py
plaid/model/transfer_user_in_request.py
plaid/model/transfer_user_in_response.py
plaid/model/update_entity_screening_request.py
plaid/model/update_entity_screening_request_resettable_field.py
plaid/model/update_entity_screening_request_resettable_field_list.py
plaid/model/update_entity_screening_request_search_terms.py
plaid/model/update_individual_screening_request.py
plaid/model/update_individual_screening_request_resettable_field.py
plaid/model/update_individual_screening_request_resettable_field_list.py
plaid/model/update_individual_screening_request_search_terms.py
plaid/model/user_address.py
plaid/model/user_create_request.py
Expand All @@ -803,6 +809,8 @@ plaid/model/wallet_create_response.py
plaid/model/wallet_get_request.py
plaid/model/wallet_get_response.py
plaid/model/wallet_iso_currency_code.py
plaid/model/wallet_list_request.py
plaid/model/wallet_list_response.py
plaid/model/wallet_numbers.py
plaid/model/wallet_transaction.py
plaid/model/wallet_transaction_amount.py
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
See full changelog for the OpenAPI Schema (OAS) [here](https://github.com/plaid/plaid-openapi/blob/master/CHANGELOG.md).

# 9.5.0
- Updating to OAS 2020-09-14_1.121.0

## OpenAPI Schema Changes
### 2020-09-14_1.121.0
- Add TimestampNullable type

### 2020-09-14_1.120.0
- Removed `Uploaded`, `Created` and `APPROVAL_STATUS_APPROVED` enum strings from `PayrollItemStatus` field.

### 2020-09-14_1.119.0
- Add `returned` to TransferStatus enum
- Add `return_swept` to TransferSweepStatus enum
- Add `returned` and `return_swept` to TransferEventType enum

### 2020-09-14_1.118.0
- Added `employee_type` and `last_paystub_date` to `/credit/employment/get` response

### 2020-09-14_1.117.1
- Make `/payment_initiation/consent/create` API more strict

### 2020-09-14_1.117.0
- Add `/credit/audit_copy_token/create` endpoint

### 2020-09-14_1.116.0
- Add `/wallet/list` endpoint

# 9.4.0
- Updating to OAS 2020-09-14_1.115.2

Expand Down
2 changes: 1 addition & 1 deletion plaid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""


__version__ = "9.4.0"
__version__ = "9.5.0"

# import ApiClient
from plaid.api_client import ApiClient
Expand Down
252 changes: 250 additions & 2 deletions plaid/api/plaid_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
from plaid.model.create_entity_screening_request import CreateEntityScreeningRequest
from plaid.model.create_entity_watchlist_screening_review_request import CreateEntityWatchlistScreeningReviewRequest
from plaid.model.create_individual_watchlist_screening_review_request import CreateIndividualWatchlistScreeningReviewRequest
from plaid.model.credit_audit_copy_token_create_request import CreditAuditCopyTokenCreateRequest
from plaid.model.credit_audit_copy_token_create_response import CreditAuditCopyTokenCreateResponse
from plaid.model.credit_bank_income_get_request import CreditBankIncomeGetRequest
from plaid.model.credit_bank_income_get_response import CreditBankIncomeGetResponse
from plaid.model.credit_bank_income_refresh_request import CreditBankIncomeRefreshRequest
Expand Down Expand Up @@ -304,6 +306,8 @@
from plaid.model.wallet_create_response import WalletCreateResponse
from plaid.model.wallet_get_request import WalletGetRequest
from plaid.model.wallet_get_response import WalletGetResponse
from plaid.model.wallet_list_request import WalletListRequest
from plaid.model.wallet_list_response import WalletListResponse
from plaid.model.wallet_transaction_execute_request import WalletTransactionExecuteRequest
from plaid.model.wallet_transaction_execute_response import WalletTransactionExecuteResponse
from plaid.model.wallet_transaction_get_request import WalletTransactionGetRequest
Expand Down Expand Up @@ -3863,6 +3867,128 @@ def __create_payment_token(
callable=__create_payment_token
)

def __credit_audit_copy_token_create(
self,
credit_audit_copy_token_create_request,
**kwargs
):
"""Create Asset or Income Report Audit Copy Token # noqa: E501

Plaid can provide an Audit Copy token of an Asset Report and/or Income Report directly to a participating third party on your behalf. For example, Plaid can supply an Audit Copy token directly to Fannie Mae on your behalf if you participate in the Day 1 Certainty™ program. An Audit Copy token contains the same underlying data as the Asset Report and/or Income Report (result of /credit/payroll_income/get). To grant access to an Audit Copy token, use the `/credit/audit_copy_token/create` endpoint to create an `audit_copy_token` and then pass that token to the third party who needs access. Each third party has its own `auditor_id`, for example `fannie_mae`. You’ll need to create a separate Audit Copy for each third party to whom you want to grant access to the Report. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.credit_audit_copy_token_create(credit_audit_copy_token_create_request, async_req=True)
>>> result = thread.get()

Args:
credit_audit_copy_token_create_request (CreditAuditCopyTokenCreateRequest):

Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously

Returns:
CreditAuditCopyTokenCreateResponse
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['credit_audit_copy_token_create_request'] = \
credit_audit_copy_token_create_request
return self.call_with_http_info(**kwargs)

self.credit_audit_copy_token_create = _Endpoint(
settings={
'response_type': (CreditAuditCopyTokenCreateResponse,),
'auth': [
'clientId',
'plaidVersion',
'secret'
],
'endpoint_path': '/credit/audit_copy_token/create',
'operation_id': 'credit_audit_copy_token_create',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'credit_audit_copy_token_create_request',
],
'required': [
'credit_audit_copy_token_create_request',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'credit_audit_copy_token_create_request':
(CreditAuditCopyTokenCreateRequest,),
},
'attribute_map': {
},
'location_map': {
'credit_audit_copy_token_create_request': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__credit_audit_copy_token_create
)

def __credit_bank_income_get(
self,
credit_bank_income_get_request,
Expand Down Expand Up @@ -5700,7 +5826,7 @@ def __identity_verification_create(
):
"""Create a new identity verification # noqa: E501

Create a new Identity Verification for the user specified by the `client_user_id` field. The requirements and behavior of the verification are determined by the `template_id` provided. If you don't know whether the associated user already has an active Identity Verification, you can specify `\"idempotent\": true` in the request body. With idempotency enabled, a new Identity Verification will only be created if one does not already exist for the associated `client_user_id` and `template_id`. If an Identity Verification is found, it will be returned unmodified with an `200 OK` HTTP status code. # noqa: E501
Create a new Identity Verification for the user specified by the `client_user_id` field. The requirements and behavior of the verification are determined by the `template_id` provided. If you don't know whether the associated user already has an active Identity Verification, you can specify `\"is_idempotent\": true` in the request body. With idempotency enabled, a new Identity Verification will only be created if one does not already exist for the associated `client_user_id` and `template_id`. If an Identity Verification is found, it will be returned unmodified with an `200 OK` HTTP status code. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -12654,7 +12780,7 @@ def __sandbox_transfer_sweep_simulate(
):
"""Simulate creating a sweep # noqa: E501

Use the `/sandbox/transfer/sweep/simulate` endpoint to create a sweep and associated events in the Sandbox environment. Upon calling this endpoint, all `posted` or `pending` transfers with a sweep status of `unswept` will become `swept`, and all `reversed` transfers with a sweep status of `swept` will become `reverse_swept`. # noqa: E501
Use the `/sandbox/transfer/sweep/simulate` endpoint to create a sweep and associated events in the Sandbox environment. Upon calling this endpoint, all `posted` or `pending` transfers with a sweep status of `unswept` will become `swept`, and all `returned` transfers with a sweep status of `swept` will become `return_swept`. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -16307,6 +16433,128 @@ def __wallet_get(
callable=__wallet_get
)

def __wallet_list(
self,
wallet_list_request,
**kwargs
):
"""Fetch a list of e-wallets # noqa: E501

This endpoint lists all e-wallets in descending order of creation. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.wallet_list(wallet_list_request, async_req=True)
>>> result = thread.get()

Args:
wallet_list_request (WalletListRequest):

Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously

Returns:
WalletListResponse
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['wallet_list_request'] = \
wallet_list_request
return self.call_with_http_info(**kwargs)

self.wallet_list = _Endpoint(
settings={
'response_type': (WalletListResponse,),
'auth': [
'clientId',
'plaidVersion',
'secret'
],
'endpoint_path': '/wallet/list',
'operation_id': 'wallet_list',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'wallet_list_request',
],
'required': [
'wallet_list_request',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'wallet_list_request':
(WalletListRequest,),
},
'attribute_map': {
},
'location_map': {
'wallet_list_request': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__wallet_list
)

def __wallet_transaction_execute(
self,
wallet_transaction_execute_request,
Expand Down
2 changes: 1 addition & 1 deletion plaid/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Plaid Python v9.4.0'
self.user_agent = 'Plaid Python v9.5.0'

def __enter__(self):
return self
Expand Down
4 changes: 2 additions & 2 deletions plaid/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2020-09-14_1.115.2\n"\
"SDK Package Version: 9.4.0".\
"Version of the API: 2020-09-14_1.121.0\n"\
"SDK Package Version: 9.5.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
Loading