Skip to content

Commit 2236cac

Browse files
otherchenAndrew Chen
and
Andrew Chen
authored
OpenAPI generated code at 2022-09-20T20:46:20Z (plaid#435)
Co-authored-by: Andrew Chen <[email protected]>
1 parent 71b7035 commit 2236cac

File tree

290 files changed

+20554
-2649
lines changed

Some content is hidden

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

290 files changed

+20554
-2649
lines changed

.openapi-generator/FILES

Lines changed: 158 additions & 68 deletions
Large diffs are not rendered by default.

CHANGELOG.md

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

3+
# 10.0.0
4+
- Updating to OAS 2020-09-14_1.181.1
5+
6+
## OpenAPI Schema Changes
7+
### 2020-09-14_1.181.1
8+
- Update `report_tokens` in `/credit/relay/create` endpoint request to be a list of strings instead a list of objects
9+
10+
### 2020-09-14_1.181.0
11+
12+
- Add `credit/sessions/get` endpoint
13+
14+
### 2020-09-14_1.180.0
15+
16+
- Remove `Date` and `DateNullable` types in identity_verification and monitor endpoints. Replace with `ISO8601Date` and `ISO8601DateNullable`
17+
instead.
18+
19+
### 2020-09-14_1.179.0
20+
21+
- Remove `idempotency_key` field from resp of /transfer/authorization/create endpoint.
22+
23+
### 2020-09-14_1.178.2
24+
25+
- Change `institution_price_as_of` field on the Holdings object to nullable
26+
27+
### 2020-09-14_1.178.1
28+
29+
- Add `AUTHORISING` wallet transaction status
30+
31+
### 2020-09-14_1.178.0
32+
33+
- Add `/partner/customer/get` endpoint.
34+
- Add `status` to the response for `/partner/customer/create`.
35+
36+
### 2020-09-14_1.177.4
37+
38+
- Add `settled` as a valid event type for `/sandbox/transfer/simulate`
39+
40+
### 2020-09-14_1.177.3
41+
- Replace `ASSET_TRANSACTION_DESCRIPTION` with `ASSET_TRANSACTION_DESCRIPTON` in Freddie Mac
42+
Asset Report
43+
44+
### 2020-09-14_1.177.2
45+
- Add `ownership_type` to Asset Report account object, to reflect actual API behavior.
46+
- Update and clarify docs, including update to reflect new Transfers cutoff times.
47+
48+
### 2020-09-14_1.177.1
49+
- Add `settled` as a possible Transfer status and `swept_settled` as a possible Transfer sweep status
50+
- Add `settled` and `swept_settled` as new Transfer event types
51+
- Add `settled` field to Transfer sweep object
52+
- Add `standard_return_window` and `unauthorized_return_window` fields to Transfer object
53+
54+
### 2020-09-14_1.177.0
55+
56+
- Add `options` and `days_to_included` to `AssetReportGetRequest`
57+
58+
### 2020-09-14_1.176.2
59+
- Add `recipient_id` field examples to the `/wallet/create`, `/wallet/get`, and `/wallet/list` responses
60+
61+
### 2020-09-14_1.176.1
62+
- Set `employment_report_token` field in the `/credit/employment/get` endpoint to be not required
63+
64+
### 2020-09-14_1.176.0
65+
66+
- Add `mask` to the `meta` field of overridden accounts in the sandbox custom user configuration object schema.
67+
68+
### 2020-09-14_1.175.0
69+
70+
- Remove `MiddleName` and add `VALIDATION_SOURCES` to Freddie Mac Asset Report
71+
72+
### 2020-09-14_1.174.1
73+
74+
- Add `adyen` as processor partner
75+
76+
### 2020-09-14_1.174.0
77+
78+
- Add `environment` as an attribute to all webhook payloads
79+
80+
### 2020-09-14_1.173.0
81+
82+
- Add `idempotency_key` field in req/resp of /transfer/authorization/create endpoint.
83+
84+
### 2020-09-14_1.172.1
85+
86+
- Removed `/asset_report/relay/` endpoints
87+
88+
### 2020-09-14_1.172.0
89+
90+
- Add payroll institution to /credit/income/precheck endpoint.
91+
92+
### 2020-09-14_1.171.0
93+
94+
- Add `recipient_id` to the `/wallet/create`, `/wallet/get`, and `/wallet/list` responses
95+
96+
### 2020-09-14_1.170.1
97+
98+
- Fix that `client_id` and `secret` were erroneously marked as `required` for the request bodies of some endpoints. (These fields can be sent in the header and thus are not required in bodies).
99+
100+
### 2020-09-14_1.170.0
101+
102+
- Add `with_guarantee` field in request of `/transfer/authorization/create`
103+
104+
### 2020-09-14_1.169.0
105+
106+
- Add `issuing_region` as a field in the extracted data to documentary verification documents `/identity_verification/create`, `/identity_verification/get`, `/identity_verification/list` and `/identity_verification/retry` responses.
107+
108+
### 2020-09-14_1.168.2
109+
110+
- Add `bacs`/`iban` recommendation for `/payment_initiation/recipient/create`
111+
112+
### 2020-09-14_1.168.1
113+
114+
- Update descriptions for `/payment_profile/create`, `/payment_profile/get` and `/payment_profile/remove`
115+
116+
### 2020-09-14_1.168.0
117+
118+
-- Add `counterparties` to `/beta/transactions/v1/enhance` response
119+
120+
### 2020-09-14_1.167.1
121+
122+
- Added `MICRODEPOSIT_ERROR` which was returned by the API but missing from the error type enum.
123+
- Various fixes to typos and descriptions
124+
125+
### 2020-09-14_1.167.0
126+
127+
- Add authorization code `MIGRATED_ACCOUNT_ITEM` for Items created via `/transfer/migrate_account` endpoint
128+
129+
### 2020-09-14_1.166.0
130+
131+
- Add `updated_at` field to Payroll Item entries in `/credit/payroll_income/get`
132+
133+
### 2020-09-14_1.165.3
134+
135+
- removed LoanRoleType, ReportIdentifierType, and ReportDateTime fields from `/credit/asset_report/freddie_mac/get`
136+
137+
### 2020-09-14_1.165.2
138+
139+
- Remove deprecated reverse_swept enum value from documentation
140+
141+
### 2020-09-14_1.165.1
142+
143+
- Update example response for the `wallet/list` endpoint
144+
145+
### 2020-09-14_1.165.0
146+
147+
- Add details for `IdentityMatchResponse` for `/identity/match` endpoint
148+
149+
### 2020-09-14_1.164.10
150+
151+
- Update descriptions for `HOLDINGS: DEFAULT_UPDATE` and `INVESTMENT_TRANSACTIONS: DEFAULT_UPDATE` webhooks
152+
153+
### 2020-09-14_1.164.9
154+
155+
- Removed report_type from the request to `/credit/asset_report/freddie_mae/get`
156+
157+
### 2020-09-14_1.164.8
158+
159+
- Add documentation for credit categories in the `/asset_report/get` endpoint
160+
161+
### 2020-09-14_1.164.7
162+
163+
- Remove redundant parameters from the `/transfer/create` endpoint from docs and mark them as deprecated
164+
165+
### 2020-09-14_1.164.6
166+
167+
- Add the following new currencies for the `/payment_initiation` API route group: PLN, SEK, DKK, NOK, CHF, CZK
168+
169+
### 2020-09-14_1.164.5
170+
171+
- Update description for `/payment_initiation/payment/reverse` to indicate that this endpoint only works with virtual accounts
172+
- Update description for `/wallet/transaction/execute` to indicate that settlement will take seconds to days
173+
174+
### 2020-09-14_1.164.4
175+
176+
- Remove verification fields from `/credit/payroll_income/get` and `/income/verification/paystubs/get`
177+
178+
### 2020-09-14_1.164.3
179+
180+
- Remove pull_id field from `/credit/payroll_income/get`
181+
182+
### 2020-09-14_1.164.2
183+
184+
- Update external documentation links for the `/wallet/` API route group
185+
- Update `/payment_initiation/payment/reverse` description to cover which payments are eligible for refunds
186+
- Update `/payment_initiation/payment/create` reference field description to indicate that references should be unique and will be adjusted automatically
187+
- Update `PaymentInitiationPaymentStatus` description to indicate that payments may take seconds to days to settle depending on the payment rail used
188+
- Update `WalletTransactionStatus` description to indicate that transactions may take seconds to days to settle depending on the payment rail used
189+
190+
### 2020-09-14_1.164.1
191+
192+
- Make `is_savings_or_money_market_account` field in `SignalEvaluateCoreAttributes` nullable
193+
194+
### 2020-09-14_1.164.0
195+
196+
- Add new endpoint `/credit/asset_report/freddie_mac`
197+
198+
### 2020-09-14_1.163.0
199+
200+
- Add `/link_delivery/create` endpoint
201+
- Add `/link_delivery/get` endpoint
202+
203+
### 2020-09-14_1.162.2
204+
205+
- Fix minimum and maximum values in `/signal/evaluate` scores
206+
207+
### 2020-09-14_1.162.1
208+
209+
- Make holdings `institution_price_as_of` non-nullable
210+
211+
### 2020-09-14_1.162.0
212+
213+
- Add `WalletTransactionStatusUpdateWebhook` object
214+
- Update `WalletTransactionStatus` to include an additional `SETTLED` enum
215+
- Update `PaymentInitiationPaymentStatus` to include an additional `PAYMENT_STATUS_SETTLED` enum
216+
3217
# 9.9.0
4218
- Updating to OAS 2020-09-14_1.161.5
5219

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ For more information on Plaid response codes, head to the [docs][3].
9797

9898
### Converting the response to a JSON
9999

100-
As this is a common question, we've included this in the README. `plaid-python` uses models like `TransactionsGetResponse` to encapsulate API responses. If you want to convert this to a JSON, do something like this:
100+
As this is a common question, we've included this in the README. `plaid-python` uses models like `TransactionsSyncResponse` to encapsulate API responses. If you want to convert this to a JSON, do something like this:
101101

102102
```python
103103
import json
104104
...
105-
response = ... # type TransactionsGetResponse
105+
response = ... # type TransactionsSyncResponse
106106
# to_dict makes it first a python dictionary, and then we turn it into a string JSON.
107107
json_string = json.dumps(response.to_dict())
108108
```
@@ -198,7 +198,30 @@ request = ItemRemoveRequest(
198198
response = client.item_remove(request)
199199
```
200200

201-
### Retrieve Transactions
201+
### Retrieve Transactions (preferred method)
202+
```python
203+
import plaid
204+
from plaid.model.transactions_sync_request import TransactionsSyncRequest
205+
206+
request = TransactionsSyncRequest(
207+
access_token=access_token,
208+
)
209+
response = client.transactions_sync(request)
210+
transactions = response['transactions']
211+
212+
# the transactions in the response are paginated, so make multiple calls while incrementing the cursor to
213+
# retrieve all transactions
214+
while (response['has_more']):
215+
request = TransactionsSyncRequest(
216+
access_token=access_token,
217+
cursor=response['next_cursor']
218+
)
219+
response = client.transactions_sync(request)
220+
transactions += response['transactions']
221+
```
222+
223+
224+
### Retrieve Transactions (older method)
202225
```python
203226
import plaid
204227
from plaid.model.transactions_get_request_options import TransactionsGetRequestOptions

plaid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010

11-
__version__ = "9.9.0"
11+
__version__ = "10.0.0"
1212

1313
# import ApiClient
1414
from plaid.api_client import ApiClient

0 commit comments

Comments
 (0)