Skip to content

Commit e1acfb7

Browse files
authored
Merge pull request plaid#522 from plaid/generated_20240705T203143Z
OpenAPI generated code at 2024-07-05T20:31:43Z
2 parents 8ba464e + 416d53e commit e1acfb7

File tree

1,612 files changed

+6678
-1828
lines changed

Some content is hidden

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

1,612 files changed

+6678
-1828
lines changed

.openapi-generator/FILES

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ plaid/model/beacon_account_risk_evaluate_request_options.py
189189
plaid/model/beacon_account_risk_evaluate_response.py
190190
plaid/model/beacon_audit_trail.py
191191
plaid/model/beacon_audit_trail_source.py
192+
plaid/model/beacon_bank_account_insights.py
193+
plaid/model/beacon_bank_accounts.py
192194
plaid/model/beacon_duplicate_detected_webhook.py
193195
plaid/model/beacon_duplicate_get_request.py
194196
plaid/model/beacon_duplicate_get_response.py
@@ -213,6 +215,8 @@ plaid/model/beacon_report_syndication_original_report.py
213215
plaid/model/beacon_report_type.py
214216
plaid/model/beacon_report_updated_webhook.py
215217
plaid/model/beacon_user.py
218+
plaid/model/beacon_user_account_insights_get_request.py
219+
plaid/model/beacon_user_account_insights_get_response.py
216220
plaid/model/beacon_user_address.py
217221
plaid/model/beacon_user_create_request.py
218222
plaid/model/beacon_user_create_response.py
@@ -280,10 +284,13 @@ plaid/model/cra_check_report_create_response.py
280284
plaid/model/cra_check_report_failed_webhook.py
281285
plaid/model/cra_check_report_income_insights_get_request.py
282286
plaid/model/cra_check_report_income_insights_get_response.py
287+
plaid/model/cra_check_report_network_attributes_get_request.py
288+
plaid/model/cra_check_report_network_attributes_get_response.py
283289
plaid/model/cra_check_report_partner_insights_get_options.py
284290
plaid/model/cra_check_report_partner_insights_get_request.py
285291
plaid/model/cra_check_report_partner_insights_get_response.py
286292
plaid/model/cra_check_report_pdf_get_request.py
293+
plaid/model/cra_check_report_product.py
287294
plaid/model/cra_check_report_ready_webhook.py
288295
plaid/model/cra_income_insights.py
289296
plaid/model/cra_loan_application.py
@@ -307,6 +314,8 @@ plaid/model/cra_loans_register_response.py
307314
plaid/model/cra_loans_unregister_request.py
308315
plaid/model/cra_loans_update_request.py
309316
plaid/model/cra_loans_update_response.py
317+
plaid/model/cra_network_attributes_item.py
318+
plaid/model/cra_network_attributes_report.py
310319
plaid/model/cra_partner_insights.py
311320
plaid/model/cra_partner_insights_complete_webhook.py
312321
plaid/model/cra_partner_insights_error_webhook.py
@@ -569,7 +578,6 @@ plaid/model/hosted_link_delivery_method.py
569578
plaid/model/hosted_mmd_verification_webhook.py
570579
plaid/model/id_number_type.py
571580
plaid/model/identity_default_update_webhook.py
572-
plaid/model/identity_document.py
573581
plaid/model/identity_document_metadata.py
574582
plaid/model/identity_document_upload.py
575583
plaid/model/identity_document_upload_metadata.py
@@ -1196,6 +1204,8 @@ plaid/model/sandbox_transfer_test_clock_get_request.py
11961204
plaid/model/sandbox_transfer_test_clock_get_response.py
11971205
plaid/model/sandbox_transfer_test_clock_list_request.py
11981206
plaid/model/sandbox_transfer_test_clock_list_response.py
1207+
plaid/model/sandbox_user_reset_login_request.py
1208+
plaid/model/sandbox_user_reset_login_response.py
11991209
plaid/model/scopes.py
12001210
plaid/model/scopes_context.py
12011211
plaid/model/scopes_nullable.py
@@ -1479,7 +1489,11 @@ plaid/model/user_create_response.py
14791489
plaid/model/user_custom_password.py
14801490
plaid/model/user_data_overview.py
14811491
plaid/model/user_id_number.py
1492+
plaid/model/user_items_get_request.py
1493+
plaid/model/user_items_get_response.py
14821494
plaid/model/user_permission_revoked_webhook.py
1495+
plaid/model/user_remove_request.py
1496+
plaid/model/user_remove_response.py
14831497
plaid/model/user_stated_income_source_category.py
14841498
plaid/model/user_stated_income_source_frequency.py
14851499
plaid/model/user_stated_income_source_pay_type.py

CHANGELOG.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,89 @@
11
See full changelog for the OpenAPI Schema (OAS) [here](https://github.com/plaid/plaid-openapi/blob/master/CHANGELOG.md).
22

3+
# 24.0.0
4+
- Updating to OAS 2020-09-14_1.534.3
5+
6+
## Breaking changes in this version
7+
### 2020-09-14_1.532.2
8+
- [Breaking] Rename `/cra/check_report/network_attributes/get` to `/cra/check_report/network_insights/get`
9+
10+
### 2020-09-14_1.528.0
11+
- [Breaking] Renamed `/user_account/session/get` operationId `sessionGet` to `userAccountSessionGet` for consistency with existing API naming scheme.
12+
13+
### 2020-09-14_1.527.0
14+
- [Breaking] Removed `development.plaid.com` as a valid server and updated docs to remove references to Development, due to the decomissioning of the Development environment
15+
16+
### 2020-09-14_1.526.0
17+
- [Breaking] Renamed `/user_account/session/get` operationId `sessionGet` to `userAccountSessionGet` for consistency with existing API naming scheme.
18+
19+
## OpenAPI Schema Changes
20+
### 2020-09-14_1.534.3
21+
- Add 'Beacon' to product enum list and make available in `/link/token/create` products
22+
23+
### 2020-09-14_1.534.2
24+
- Mark some `BaseReportAccountInsights` fields as optional.
25+
26+
### 2020-09-14_1.534.1
27+
28+
- Internal changes only
29+
30+
### 2020-09-14_1.533.1
31+
- Add `user_action_required` to transfer authorization's `decision` enum.
32+
- Add `authorization_id` to transfer object in `/link/token/create` request.
33+
34+
### 2020-09-14_1.533.0
35+
- Made `user` request field optional in `beacon/user/update`
36+
37+
### 2020-09-14_1.532.4
38+
- fix `/cra/check_report/pdf/get` external doc url
39+
40+
### 2020-09-14_1.532.3
41+
- Docs updates
42+
43+
### 2020-09-14_1.532.2
44+
- [Breaking] Rename `/cra/check_report/network_attributes/get` to `/cra/check_report/network_insights/get`
45+
46+
### 2020-09-14_1.532.1
47+
48+
- Internal changes only
49+
50+
### 2020-09-14_1.531.1
51+
- Update idempotency key expiration time to 48 hours in `virtual-accounts/#wallet-transaction-execute-request-idempotency-key`
52+
53+
### 2020-09-14_1.531.0
54+
- Add `balance_plus` to `products` in `LinkTokenCreateRequest`
55+
- Add `balance_plus` to `additional_consented_products` in `LinkTokenCreateRequest`
56+
57+
### 2020-09-14_1.530.0
58+
- Add `/user/remove` endpoint
59+
60+
### 2020-09-14_1.529.0
61+
- Added `/sandbox/user/reset_login` endpoint
62+
63+
### 2020-09-14_1.528.0
64+
- Added `beacon/user/account_insights/get` endpoint
65+
- Updated `description`field for `access_tokens` in `beacon/user/create` and `beacon/user/update` requests
66+
- [Breaking] Renamed `/user_account/session/get` operationId `sessionGet` to `userAccountSessionGet` for consistency with existing API naming scheme.
67+
68+
### 2020-09-14_1.527.0
69+
- [Breaking] Removed `development.plaid.com` as a valid server and updated docs to remove references to Development, due to the decomissioning of the Development environment
70+
71+
### 2020-09-14_1.526.0
72+
- [Breaking] Renamed `/user_account/session/get` operationId `sessionGet` to `userAccountSessionGet` for consistency with existing API naming scheme.
73+
374
# 23.0.0
475
- Updating to OAS 2020-09-14_1.525.1
576

77+
## Breaking changes in this version
78+
79+
### 2020-09-14_1.525.1
80+
[Breaking] Renamed `bank_income` to `report` in the `cra/check_report/income_insights/get` response
81+
82+
### 2020-09-14_1.520.0
83+
84+
- [Breaking] Contains fixes to Balance Plus (beta):
85+
- [Breaking] Convert `risk_level` string to an enum object `RiskLevel`.
86+
- [Breaking] Adds missing `required` labels
687
## OpenAPI Schema Changes
788
### 2020-09-14_1.525.1
889
[Breaking] Renamed `bank_income` to `report` in the `cra/check_report/income_insights/get` response

README.md

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
plaid-python [![PyPI version](https://badge.fury.io/py/plaid-python.svg)](https://badge.fury.io/py/plaid-python)
2-
============
1+
# plaid-python [![PyPI version](https://badge.fury.io/py/plaid-python.svg)](https://badge.fury.io/py/plaid-python)
32

43
The official python client library for the [Plaid API][1], which is generated from our [OpenAPI spec](https://github.com/plaid/plaid-openapi).
54

65
## Table of Contents
76

8-
* [Installation](#installation)
9-
* [Versioning](#versioning)
10-
* [Getting Started](#getting-started)
11-
+ [Calling Endpoints](#calling-endpoints)
12-
+ [Errors](#errors)
13-
+ [Converting the response to a JSON](#converting-the-response-to-a-json)
14-
+ [Dates](#dates)
15-
* [Examples](#examples)
16-
* [Migration Guide](#migration-guide)
17-
* [Contributing](#contributing)
18-
* [License](#license)
7+
- [Installation](#installation)
8+
- [Versioning](#versioning)
9+
- [Getting Started](#getting-started)
10+
- [Calling Endpoints](#calling-endpoints)
11+
- [Errors](#errors)
12+
- [Converting the response to a JSON](#converting-the-response-to-a-json)
13+
- [Dates](#dates)
14+
- [Examples](#examples)
15+
- [Migration Guide](#migration-guide)
16+
- [Contributing](#contributing)
17+
- [License](#license)
1918

2019
## Installation
2120

@@ -24,6 +23,7 @@ This library only supports `python3`!
2423
```console
2524
$ pip3 install plaid-python
2625
```
26+
2727
## Versioning
2828

2929
This release only supports the latest Plaid API version, `2020-09-14`.
@@ -32,7 +32,6 @@ For information about what has changed between versions and how to update your i
3232

3333
The plaid-python client library is typically updated on a monthly basis. The canonical source for the latest version number is the [client library changelog](https://github.com/plaid/plaid-python/blob/master/CHANGELOG.md). New versions are published as [GitHub tags](https://github.com/plaid/plaid-python/tags), not as Releases. New versions are also published on [PyPi](https://pypi.org/project/plaid-python/). Plaid uses semantic versioning to version the client libraries, with potentially breaking changes being indicated by a major version bump.
3434

35-
3635
All users are strongly recommended to use a recent version of the library, as older versions do not contain support for new endpoints and fields. For more details, see the [Migration Guide](#migration-guide).
3736

3837
## Getting Started
@@ -47,7 +46,6 @@ from plaid.api import plaid_api
4746

4847
# Available environments are
4948
# 'Production'
50-
# 'Development'
5149
# 'Sandbox'
5250
configuration = plaid.Configuration(
5351
host=plaid.Environment.Sandbox,
@@ -102,6 +100,7 @@ response = ... # type TransactionsSyncResponse
102100
# to_dict makes it first a python dictionary, and then we turn it into a string JSON.
103101
json_string = json.dumps(response.to_dict(), default=str)
104102
```
103+
105104
### Dates
106105

107106
Dates and datetimes in requests, which are represented as strings in the API and in previous client library versions, are represented in this version of the Python client library as Python `datetime.date` or `datetime.datetime` objects. If you need to convert between dates and strings, you can use the `datetime.strptime` method. For an example, see the Retrieve Transactions sample code later in this Readme. For more information on the Python's `datetime` module, see [Python's official documentation](https://docs.python.org/3/library/datetime.html).
@@ -119,18 +118,20 @@ b = date.fromisoformat('2022-05-05')
119118

120119
If the API reference documentation for a field specifies `format: date-time`, the following is acceptable:
121120

122-
123121
```py
124122
from datetime import datetime
125123

126124
a = datetime(2022, 5, 5, 22, 35, 49, tzinfo=datetime.timezone.utc)
127125
```
126+
128127
## Examples
129128

130129
For more examples, see the [test suites](https://github.com/plaid/plaid-python/tree/master/tests), [Quickstart](https://github.com/plaid/quickstart/tree/master/python), or [API Reference documentation](https://plaid.com/docs/api/).
131130

132131
### Create an Item using Link
132+
133133
Exchange a `public_token` from [Plaid Link][4] for a Plaid access token:
134+
134135
```python
135136
import plaid
136137
from plaid.model.item_public_token_exchange_request import ItemPublicTokenExchangeRequest
@@ -144,6 +145,7 @@ access_token = exchange_response['access_token']
144145
```
145146

146147
### Remove Item
148+
147149
```python
148150
import plaid
149151
from plaid.model.item_remove_request import ItemRemoveRequest
@@ -156,6 +158,7 @@ response = client.item_remove(request)
156158
```
157159

158160
### Retrieve Transactions (preferred method)
161+
159162
```python
160163
import plaid
161164
from plaid.model.transactions_sync_request import TransactionsSyncRequest
@@ -177,8 +180,8 @@ while (response['has_more']):
177180
transactions += response['added']
178181
```
179182

180-
181183
### Retrieve Transactions (older method)
184+
182185
```python
183186
import plaid
184187
from plaid.model.transactions_get_request_options import TransactionsGetRequestOptions
@@ -230,7 +233,9 @@ Migrating from version 8.0.0 or later of the library to a recent version should
230233
Version 8.0.0 of the client library was released in August 2021 and contains multiple interface changes, as described below.
231234

232235
#### Client initialization
236+
233237
From:
238+
234239
```python
235240
from plaid import Client
236241
Client(
@@ -243,6 +248,7 @@ Client(
243248
```
244249

245250
To:
251+
246252
```python
247253
import plaid
248254
from plaid.api import plaid_api
@@ -257,15 +263,19 @@ configuration = plaid.Configuration(
257263
api_client = plaid.ApiClient(configuration)
258264
client = plaid_api.PlaidApi(api_client)
259265
```
266+
260267
#### Endpoints
268+
261269
All endpoint requests now take a request model and the functions have been renamed to include `_`.
262270

263271
From:
272+
264273
```python
265274
response = client.Auth.get(access_token)
266275
```
267276

268277
To:
278+
269279
```python
270280
import plaid
271281
from plaid.model.auth_get_request import AuthGetRequest
@@ -281,6 +291,7 @@ response = client.auth_get(ag_request)
281291
#### Errors
282292

283293
From:
294+
284295
```python
285296
try:
286297
client.Auth.get(access_token)
@@ -296,6 +307,7 @@ except APIError as e:
296307
```
297308

298309
To:
310+
299311
```python
300312
try:
301313
request = AssetReportGetRequest(
@@ -308,7 +320,6 @@ except plaid.ApiException as e:
308320
else:
309321
```
310322

311-
312323
#### Data type changes
313324

314325
See the sections above on [Dates](#dates) and [Converting the response to a JSON](#converting-the-response-to-a-json).
@@ -318,12 +329,14 @@ See the sections above on [Dates](#dates) and [Converting the response to a JSON
318329
While the API and previous library versions prior to 8.0.0 represent enums using strings, this current library uses Python classes with restricted values.
319330

320331
From:
332+
321333
```
322334
'products': ['auth', 'transactions'],
323335
'country_codes': ['US'],
324336
```
325337

326338
To:
339+
327340
```
328341
products=[Products('auth'), Products('transactions')],
329342
country_codes=[CountryCode('US')],
@@ -337,6 +350,7 @@ Global configuration options: [configuration.py](https://github.com/plaid/plaid-
337350
Per-request configuration options: [api_client.py](https://github.com/plaid/plaid-python/blob/master/plaid/api_client.py#L117)
338351

339352
From:
353+
340354
```
341355
class PlaidClient(plaid.Client):
342356
def __init__(
@@ -348,16 +362,17 @@ class PlaidClient(plaid.Client):
348362
```
349363

350364
To:
365+
351366
```
352367
response = client.accounts_balance_get(request, _request_timeout=60)
353368
```
354369

355-
356370
## Contributing
357371

358372
Please see [Contributing](CONTRIBUTING.md) for guidelines and instructions for local development.
359373

360374
## License
375+
361376
[MIT][6]
362377

363378
[1]: https://plaid.com

plaid/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
66
The Plaid REST API. Please see https://plaid.com/docs/api for more details. # noqa: E501
77
8-
The version of the OpenAPI document: 2020-09-14_1.525.1
8+
The version of the OpenAPI document: 2020-09-14_1.534.3
99
Generated by: https://openapi-generator.tech
1010
"""
1111

1212

13-
__version__ = "23.0.0"
13+
__version__ = "24.0.0"
1414

1515
# import ApiClient
1616
from plaid.api_client import ApiClient

0 commit comments

Comments
 (0)