Skip to content

Commit 77df54c

Browse files
authored
Merge pull request #57 from codatio/speakeasy-sdk-regen-1679097739
chore: speakeasy sdk regeneration - Generate Banking SDK
2 parents a1fc6de + 7a0485a commit 77df54c

Some content is hidden

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

54 files changed

+1170
-873
lines changed

banking/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,45 @@ s = codat.Codat(
2121
)
2222

2323

24-
req = operations.ListBankingAccountBalancesRequest(
25-
company_id="unde",
26-
connection_id="deserunt",
27-
order_by="porro",
28-
page=844266,
29-
page_size=602763,
30-
query="vero",
24+
req = operations.ListAccountBalancesRequest(
25+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
26+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
27+
order_by="-modifiedDate",
28+
page=1,
29+
page_size=100,
30+
query="corrupti",
3131
)
3232

33-
res = s.account_balances.list_banking_account_balances(req)
33+
res = s.account_balances.list_account_balances(req)
3434

35-
if res.links is not None:
35+
if res.account_balances is not None:
3636
# handle response
3737
```
3838
<!-- End SDK Example Usage -->
3939

4040
<!-- Start SDK Available Operations -->
41-
## SDK Available Operations
41+
## Available Resources and Operations
4242

4343

4444
### account_balances
4545

46-
* `list_banking_account_balances` - List account balances
46+
* `list_account_balances` - List account balances
4747

4848
### accounts
4949

50-
* `get_banking_account` - Get account
51-
* `list_banking_accounts` - List accounts
50+
* `get_account` - Get account
51+
* `list_accounts` - List accounts
5252

5353
### transaction_categories
5454

55-
* `get_bank_transaction_category` - Get transaction category
56-
* `list_bank_transaction_categories` - List all transaction categories
55+
* `get_transaction_category` - Get transaction category
56+
* `list_transaction_categories` - List all transaction categories
5757

5858
### transactions
5959

60-
* `get_banking_transaction` - Get bank transaction
61-
* `list_all_banking_transactions` - List banking transactions
62-
* `list_banking_transactions` - List bank account transactions
60+
* `get_transaction` - Get bank transaction
61+
* `list_bank_transactions` - List banking transactions
62+
* `list_transactions` - List transactions
6363
<!-- End SDK Available Operations -->
6464

6565
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

banking/RELEASES.md

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,84 @@ Based on:
9494
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
9595
- Speakeasy CLI 1.12.1 https://github.com/speakeasy-api/speakeasy
9696
### Releases
97-
- [PyPI v0.5.1] https://pypi.org/project/codat-banking/0.5.1 - banking
97+
- [PyPI v0.5.1] https://pypi.org/project/codat-banking/0.5.1 - banking
98+
99+
## 2023-03-18 00:02:18
100+
### Changes
101+
Based on:
102+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
103+
- Speakeasy CLI 1.12.3 https://github.com/speakeasy-api/speakeasy
104+
### Releases
105+
- [PyPI v0.5.2] https://pypi.org/project/codat-banking/0.5.2 - banking
106+
107+
## 2023-03-21 00:02:14
108+
### Changes
109+
Based on:
110+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
111+
- Speakeasy CLI 1.12.4 https://github.com/speakeasy-api/speakeasy
112+
### Releases
113+
- [PyPI v0.5.3] https://pypi.org/project/codat-banking/0.5.3 - banking
114+
115+
## 2023-03-22 00:02:08
116+
### Changes
117+
Based on:
118+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
119+
- Speakeasy CLI 1.13.0 https://github.com/speakeasy-api/speakeasy
120+
### Releases
121+
- [PyPI v0.6.0] https://pypi.org/project/codat-banking/0.6.0 - banking
122+
123+
## 2023-03-23 00:02:31
124+
### Changes
125+
Based on:
126+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
127+
- Speakeasy CLI 1.15.0 (2.13.1) https://github.com/speakeasy-api/speakeasy
128+
### Releases
129+
- [PyPI v0.6.1] https://pypi.org/project/codat-banking/0.6.1 - banking
130+
131+
## 2023-03-24 00:02:30
132+
### Changes
133+
Based on:
134+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
135+
- Speakeasy CLI 1.17.0 (2.15.0) https://github.com/speakeasy-api/speakeasy
136+
### Releases
137+
- [PyPI v0.7.0] https://pypi.org/project/codat-banking/0.7.0 - banking
138+
139+
## 2023-03-25 00:02:24
140+
### Changes
141+
Based on:
142+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
143+
- Speakeasy CLI 1.18.7 (2.16.1) https://github.com/speakeasy-api/speakeasy
144+
### Releases
145+
- [PyPI v0.8.0] https://pypi.org/project/codat-banking/0.8.0 - banking
146+
147+
## 2023-03-28 00:02:39
148+
### Changes
149+
Based on:
150+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
151+
- Speakeasy CLI 1.18.9 (2.16.4) https://github.com/speakeasy-api/speakeasy
152+
### Releases
153+
- [PyPI v0.8.1] https://pypi.org/project/codat-banking/0.8.1 - banking
154+
155+
## 2023-03-29 00:02:36
156+
### Changes
157+
Based on:
158+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
159+
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
160+
### Releases
161+
- [PyPI v0.8.2] https://pypi.org/project/codat-banking/0.8.2 - banking
162+
163+
## 2023-03-30 00:02:38
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
167+
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
168+
### Releases
169+
- [PyPI v0.8.3] https://pypi.org/project/codat-banking/0.8.3 - banking
170+
171+
## 2023-04-01 00:02:51
172+
### Changes
173+
Based on:
174+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
175+
- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy
176+
### Releases
177+
- [PyPI v0.8.4] https://pypi.org/project/codat-banking/0.8.4 - banking

banking/USAGE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ s = codat.Codat(
1010
)
1111

1212

13-
req = operations.ListBankingAccountBalancesRequest(
14-
company_id="unde",
15-
connection_id="deserunt",
16-
order_by="porro",
17-
page=844266,
18-
page_size=602763,
19-
query="vero",
13+
req = operations.ListAccountBalancesRequest(
14+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
15+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
16+
order_by="-modifiedDate",
17+
page=1,
18+
page_size=100,
19+
query="corrupti",
2020
)
2121

22-
res = s.account_balances.list_banking_account_balances(req)
22+
res = s.account_balances.list_account_balances(req)
2323

24-
if res.links is not None:
24+
if res.account_balances is not None:
2525
# handle response
2626
```
2727
<!-- End SDK Example Usage -->

banking/files.gen

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,33 @@ src/codat/models/__init__.py
1010
src/codat/utils/__init__.py
1111
src/codat/utils/retries.py
1212
src/codat/utils/utils.py
13-
src/codat/models/operations/list_banking_account_balances.py
14-
src/codat/models/operations/get_banking_account.py
15-
src/codat/models/operations/list_banking_accounts.py
16-
src/codat/models/operations/get_bank_transaction_category.py
17-
src/codat/models/operations/list_bank_transaction_categories.py
18-
src/codat/models/operations/get_banking_transaction.py
19-
src/codat/models/operations/list_all_banking_transactions.py
20-
src/codat/models/operations/list_banking_transactions.py
13+
src/codat/models/operations/list_account_balances.py
14+
src/codat/models/operations/get_account.py
15+
src/codat/models/operations/list_accounts.py
16+
src/codat/models/operations/get_transaction_category.py
17+
src/codat/models/operations/list_transaction_categories.py
18+
src/codat/models/operations/get_transaction.py
19+
src/codat/models/operations/list_bank_transactions.py
20+
src/codat/models/operations/list_transactions.py
2121
src/codat/models/operations/__init__.py
22+
src/codat/models/shared/accountbalances.py
23+
src/codat/models/shared/accountbalance.py
24+
src/codat/models/shared/accountbalanceamounts.py
25+
src/codat/models/shared/links.py
26+
src/codat/models/shared/href.py
27+
src/codat/models/shared/account.py
28+
src/codat/models/shared/accounttype_enum.py
29+
src/codat/models/shared/accountinstitution.py
30+
src/codat/models/shared/accountidentifiers.py
31+
src/codat/models/shared/accountidentifiertype_enum.py
32+
src/codat/models/shared/accounts.py
33+
src/codat/models/shared/transactioncategory.py
34+
src/codat/models/shared/transactioncategorystatus_enum.py
35+
src/codat/models/shared/transactioncategories.py
36+
src/codat/models/shared/transaction.py
37+
src/codat/models/shared/transactioncategoryref.py
38+
src/codat/models/shared/transactioncode_enum.py
39+
src/codat/models/shared/transactions.py
2240
src/codat/models/shared/security.py
2341
src/codat/models/shared/__init__.py
2442
USAGE.md

banking/gen.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 4f389856258a40eeb766e1eb4d1e7bb1
3+
docChecksum: 28844c8dedeb3f25310054b80f9c6705
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.12.1
5+
speakeasyVersion: 1.19.3
6+
generationVersion: 2.16.7
67
generation:
78
telemetryEnabled: false
89
sdkClassName: codat
910
sdkFlattening: true
11+
singleTagPerOp: false
1012
python:
11-
version: 0.5.1
13+
version: 0.8.4
1214
author: Speakeasy
1315
description: Python Client SDK Generated by Speakeasy
1416
packageName: codat-banking

banking/pylintrc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ attr-naming-style=snake_case
124124
#attr-rgx=
125125

126126
# Bad variable names which should always be refused, separated by a comma.
127-
bad-names=foo,
128-
bar,
129-
baz,
130-
toto,
131-
tutu,
132-
tata
127+
bad-names=
133128

134129
# Bad variable names regexes, separated by a comma. If names match any regex,
135130
# they will always be refused
@@ -438,7 +433,11 @@ disable=raw-checker-failed,
438433
duplicate-code,
439434
trailing-newlines,
440435
too-many-public-methods,
441-
too-many-locals
436+
too-many-locals,
437+
too-many-lines,
438+
using-constant-test,
439+
too-many-statements,
440+
cyclic-import,
442441

443442
# Enable the message, report, category or checker with the given id(s). You can
444443
# either give multiple identifier separated by comma (,) or put this option

banking/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import setuptools
24

35
try:
@@ -8,7 +10,7 @@
810

911
setuptools.setup(
1012
name="codat-banking",
11-
version="0.5.1",
13+
version="0.8.4",
1214
author="Speakeasy",
1315
description="Python Client SDK Generated by Speakeasy",
1416
long_description=long_description,

banking/src/codat/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
from .sdk import *

banking/src/codat/account_balances.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
3-
from codat.models import operations
5+
from codat.models import operations, shared
46
from typing import Optional
57

68
class AccountBalances:
9+
r"""Balances for a bank account including end-of-day batch balance or running balances per transaction."""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -19,28 +22,27 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
1922
self._sdk_version = sdk_version
2023
self._gen_version = gen_version
2124

22-
def list_banking_account_balances(self, request: operations.ListBankingAccountBalancesRequest) -> operations.ListBankingAccountBalancesResponse:
25+
def list_account_balances(self, request: operations.ListAccountBalancesRequest) -> operations.ListAccountBalancesResponse:
2326
r"""List account balances
2427
Gets a list of balances for a bank account including end-of-day batch balance or running balances per transaction.
2528
"""
26-
2729
base_url = self._server_url
2830

29-
url = utils.generate_url(operations.ListBankingAccountBalancesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/banking-accountBalances', request)
31+
url = utils.generate_url(operations.ListAccountBalancesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/banking-accountBalances', request)
3032

31-
query_params = utils.get_query_params(operations.ListBankingAccountBalancesRequest, request)
33+
query_params = utils.get_query_params(operations.ListAccountBalancesRequest, request)
3234

3335
client = self._security_client
3436

3537
http_res = client.request('GET', url, params=query_params)
3638
content_type = http_res.headers.get('Content-Type')
3739

38-
res = operations.ListBankingAccountBalancesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
40+
res = operations.ListAccountBalancesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
3941

4042
if http_res.status_code == 200:
4143
if utils.match_content_type(content_type, 'application/json'):
42-
out = utils.unmarshal_json(http_res.text, Optional[operations.ListBankingAccountBalancesLinks])
43-
res.links = out
44+
out = utils.unmarshal_json(http_res.text, Optional[shared.AccountBalances])
45+
res.account_balances = out
4446

4547
return res
4648

0 commit comments

Comments
 (0)