Skip to content

Commit fa1357a

Browse files
authored
Merge pull request #91 from codatio/speakeasy-sdk-regen-1682409459
chore: speakeasy sdk regeneration - Generate Banking SDK
2 parents 2fb78eb + 7a1aa1b commit fa1357a

File tree

22 files changed

+347
-274
lines changed

22 files changed

+347
-274
lines changed

banking/README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pip install codat-banking
1414
<!-- Start SDK Example Usage -->
1515
```python
1616
import codatbanking
17-
from codatbanking.models import operations, shared
17+
from codatbanking.models import operations
1818

1919
s = codatbanking.CodatBanking(
2020
security=shared.Security(
@@ -31,8 +31,8 @@ req = operations.ListAccountBalancesRequest(
3131
page_size=100,
3232
query="corrupti",
3333
)
34-
35-
res = s.account_balances.list_account_balances(req)
34+
35+
res = s.account_balances.list(req)
3636

3737
if res.account_balances is not None:
3838
# handle response
@@ -43,25 +43,24 @@ if res.account_balances is not None:
4343
## Available Resources and Operations
4444

4545

46-
### account_balances
46+
### [account_balances](docs/accountbalances/README.md)
4747

48-
* `list_account_balances` - List account balances
48+
* [list](docs/accountbalances/README.md#list) - List account balances
4949

50-
### accounts
50+
### [accounts](docs/accounts/README.md)
5151

52-
* `get_account` - Get account
53-
* `list_accounts` - List accounts
52+
* [get](docs/accounts/README.md#get) - Get account
53+
* [list](docs/accounts/README.md#list) - List accounts
5454

55-
### transaction_categories
55+
### [transaction_categories](docs/transactioncategories/README.md)
5656

57-
* `get_transaction_category` - Get transaction category
58-
* `list_transaction_categories` - List all transaction categories
57+
* [get](docs/transactioncategories/README.md#get) - Get transaction category
58+
* [list](docs/transactioncategories/README.md#list) - List all transaction categories
5959

60-
### transactions
60+
### [transactions](docs/transactions/README.md)
6161

62-
* `get_transaction` - Get bank transaction
63-
* `list_bank_transactions` - List banking transactions
64-
* `list_transactions` - List transactions
62+
* [get](docs/transactions/README.md#get) - Get bank transaction
63+
* [list](docs/transactions/README.md#list) - List transactions
6564
<!-- End SDK Available Operations -->
6665

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

banking/RELEASES.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,36 @@ Based on:
206206
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
207207
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy
208208
### Releases
209-
- [PyPI v0.10.1] https://pypi.org/project/codat-banking/0.10.1 - banking
209+
- [PyPI v0.10.1] https://pypi.org/project/codat-banking/0.10.1 - banking
210+
211+
## 2023-04-25 07:57:37
212+
### Changes
213+
Based on:
214+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
215+
- Speakeasy CLI 1.23.0 (2.21.0) https://github.com/speakeasy-api/speakeasy
216+
### Releases
217+
- [PyPI v0.11.0] https://pypi.org/project/codat-banking/0.11.0 - banking
218+
219+
## 2023-04-25 14:17:42
220+
### Changes
221+
Based on:
222+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
223+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
224+
### Releases
225+
- [PyPI v0.11.1] https://pypi.org/project/codat-banking/0.11.1 - banking
226+
227+
## 2023-04-26 00:31:53
228+
### Changes
229+
Based on:
230+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
231+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
232+
### Releases
233+
- [PyPI v0.11.2] https://pypi.org/project/codat-banking/0.11.2 - banking
234+
235+
## 2023-04-26 14:59:12
236+
### Changes
237+
Based on:
238+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
239+
- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy
240+
### Releases
241+
- [PyPI v0.12.0] https://pypi.org/project/codat-banking/0.12.0 - banking

banking/USAGE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Start SDK Example Usage -->
22
```python
33
import codatbanking
4-
from codatbanking.models import operations, shared
4+
from codatbanking.models import operations
55

66
s = codatbanking.CodatBanking(
77
security=shared.Security(
@@ -18,8 +18,8 @@ req = operations.ListAccountBalancesRequest(
1818
page_size=100,
1919
query="corrupti",
2020
)
21-
22-
res = s.account_balances.list_account_balances(req)
21+
22+
res = s.account_balances.list(req)
2323

2424
if res.account_balances is not None:
2525
# handle response
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# account_balances
2+
3+
## Overview
4+
5+
Balances for a bank account including end-of-day batch balance or running balances per transaction.
6+
7+
### Available Operations
8+
9+
* [list](#list) - List account balances
10+
11+
## list
12+
13+
Gets a list of balances for a bank account including end-of-day batch balance or running balances per transaction.
14+
15+
### Example Usage
16+
17+
```python
18+
import codatbanking
19+
from codatbanking.models import operations
20+
21+
s = codatbanking.CodatBanking(
22+
security=shared.Security(
23+
auth_header="YOUR_API_KEY_HERE",
24+
),
25+
)
26+
27+
28+
req = operations.ListAccountBalancesRequest(
29+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
30+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
31+
order_by="-modifiedDate",
32+
page=1,
33+
page_size=100,
34+
query="provident",
35+
)
36+
37+
res = s.account_balances.list(req)
38+
39+
if res.account_balances is not None:
40+
# handle response
41+
```

banking/docs/accounts/README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# accounts
2+
3+
## Overview
4+
5+
Where payments are made or received, and bank transactions are recorded.
6+
7+
### Available Operations
8+
9+
* [get](#get) - Get account
10+
* [list](#list) - List accounts
11+
12+
## get
13+
14+
Gets a specified bank account for a given company
15+
16+
### Example Usage
17+
18+
```python
19+
import codatbanking
20+
from codatbanking.models import operations
21+
22+
s = codatbanking.CodatBanking(
23+
security=shared.Security(
24+
auth_header="YOUR_API_KEY_HERE",
25+
),
26+
)
27+
28+
29+
req = operations.GetAccountRequest(
30+
account_id="8a210b68-6988-11ed-a1eb-0242ac120002",
31+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
32+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
33+
)
34+
35+
res = s.accounts.get(req)
36+
37+
if res.account is not None:
38+
# handle response
39+
```
40+
41+
## list
42+
43+
Gets a list of all bank accounts of the SMB, with rich data like balances, account numbers and institutions holdingthe accounts.
44+
45+
### Example Usage
46+
47+
```python
48+
import codatbanking
49+
from codatbanking.models import operations
50+
51+
s = codatbanking.CodatBanking(
52+
security=shared.Security(
53+
auth_header="YOUR_API_KEY_HERE",
54+
),
55+
)
56+
57+
58+
req = operations.ListAccountsRequest(
59+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
60+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
61+
order_by="-modifiedDate",
62+
page=1,
63+
page_size=100,
64+
query="distinctio",
65+
)
66+
67+
res = s.accounts.list(req)
68+
69+
if res.accounts is not None:
70+
# handle response
71+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CodatBanking SDK
2+
3+
## Overview
4+
5+
Codat's Banking API allows you to access standardised data from over bank accounts via third party providers.
6+
7+
Standardize how you connect to your customers’ bank accounts. Retrieve bank account and bank transaction data in the same way via our partnerships with Plaid and TrueLayer.
8+
9+
[Read more...](https://docs.codat.io/banking-api/overview)
10+
11+
[See our OpenAPI spec](https://github.com/codatio/oas)
12+
13+
### Available Operations
14+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# transaction_categories
2+
3+
## Overview
4+
5+
Hierarchical categories associated with a transaction for greater contextual meaning to transaction activity.
6+
7+
### Available Operations
8+
9+
* [get](#get) - Get transaction category
10+
* [list](#list) - List all transaction categories
11+
12+
## get
13+
14+
Gets a specified bank transaction category for a given company
15+
16+
### Example Usage
17+
18+
```python
19+
import codatbanking
20+
from codatbanking.models import operations
21+
22+
s = codatbanking.CodatBanking(
23+
security=shared.Security(
24+
auth_header="YOUR_API_KEY_HERE",
25+
),
26+
)
27+
28+
29+
req = operations.GetTransactionCategoryRequest(
30+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
31+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
32+
transaction_category_id="quibusdam",
33+
)
34+
35+
res = s.transaction_categories.get(req)
36+
37+
if res.transaction_category is not None:
38+
# handle response
39+
```
40+
41+
## list
42+
43+
Gets a list of hierarchical categories associated with a transaction for greater contextual meaning to transactionactivity.
44+
45+
### Example Usage
46+
47+
```python
48+
import codatbanking
49+
from codatbanking.models import operations
50+
51+
s = codatbanking.CodatBanking(
52+
security=shared.Security(
53+
auth_header="YOUR_API_KEY_HERE",
54+
),
55+
)
56+
57+
58+
req = operations.ListTransactionCategoriesRequest(
59+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
60+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
61+
order_by="-modifiedDate",
62+
page=1,
63+
page_size=100,
64+
query="unde",
65+
)
66+
67+
res = s.transaction_categories.list(req)
68+
69+
if res.transaction_categories is not None:
70+
# handle response
71+
```
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# transactions
2+
3+
## Overview
4+
5+
An immutable source of up-to-date information on income and expenditure.
6+
7+
### Available Operations
8+
9+
* [get](#get) - Get bank transaction
10+
* [list](#list) - List transactions
11+
12+
## get
13+
14+
Gets a specified bank transaction for a given company
15+
16+
### Example Usage
17+
18+
```python
19+
import codatbanking
20+
from codatbanking.models import operations
21+
22+
s = codatbanking.CodatBanking(
23+
security=shared.Security(
24+
auth_header="YOUR_API_KEY_HERE",
25+
),
26+
)
27+
28+
29+
req = operations.GetTransactionRequest(
30+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
31+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
32+
transaction_id="nulla",
33+
)
34+
35+
res = s.transactions.get(req)
36+
37+
if res.transaction is not None:
38+
# handle response
39+
```
40+
41+
## list
42+
43+
Gets a list of transactions incurred by a bank account.
44+
45+
### Example Usage
46+
47+
```python
48+
import codatbanking
49+
from codatbanking.models import operations
50+
51+
s = codatbanking.CodatBanking(
52+
security=shared.Security(
53+
auth_header="YOUR_API_KEY_HERE",
54+
),
55+
)
56+
57+
58+
req = operations.ListTransactionsRequest(
59+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
60+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
61+
order_by="-modifiedDate",
62+
page=1,
63+
page_size=100,
64+
query="corrupti",
65+
)
66+
67+
res = s.transactions.list(req)
68+
69+
if res.transactions is not None:
70+
# handle response
71+
```

0 commit comments

Comments
 (0)