Skip to content

Commit 34bba87

Browse files
authored
Merge pull request #209 from codatio/speakeasy-sdk-regen-1687220249
chore: speakeasy sdk regeneration - Generate Bank Feeds SDK
2 parents b04f5de + 2af0b6f commit 34bba87

Some content is hidden

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

58 files changed

+1151
-249
lines changed

bankfeeds/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.python-version
2+
.DS_Store
13
venv/
24
src/*.egg-info/
35
__pycache__/

bankfeeds/README.md

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,19 @@ s = codatbankfeeds.CodatBankFeeds(
2222
),
2323
)
2424

25-
req = operations.CreateBankTransactionsRequest(
26-
create_bank_transactions=shared.CreateBankTransactions(
27-
account_id='corrupti',
28-
transactions=[
29-
shared.CreateBankAccountTransaction(
30-
amount=7151.9,
31-
date_='2022-10-23T00:00:00.000Z',
32-
description='unde',
33-
id='d8d69a67-4e0f-4467-8c87-96ed151a05df',
34-
),
35-
shared.CreateBankAccountTransaction(
36-
amount=7781.57,
37-
date_='2022-10-23T00:00:00.000Z',
38-
description='at',
39-
id='df7cc78c-a1ba-4928-bc81-6742cb739205',
40-
),
41-
shared.CreateBankAccountTransaction(
42-
amount=6176.36,
43-
date_='2022-10-23T00:00:00.000Z',
44-
description='iste',
45-
id='396fea75-96eb-410f-aaa2-352c5955907a',
46-
),
47-
],
25+
req = operations.CreateBankAccountMappingRequest(
26+
bank_feed_account_mapping=shared.BankFeedAccountMapping(
27+
feed_start_date='2022-10-23T00:00:00.000Z',
28+
source_account_id='provident',
29+
target_account_id='distinctio',
4830
),
49-
account_id='EILBDVJVNUAGVKRQ',
50-
allow_sync_on_push_complete=False,
5131
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5232
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
53-
timeout_in_minutes=958950,
5433
)
5534

56-
res = s.bank_account_transactions.create(req)
35+
res = s.bank_account_mapping.create(req)
5736

58-
if res.create_bank_transactions_response is not None:
37+
if res.account_mapping_result is not None:
5938
# handle response
6039
```
6140
<!-- End SDK Example Usage -->
@@ -64,17 +43,23 @@ if res.create_bank_transactions_response is not None:
6443
## Available Resources and Operations
6544

6645

46+
### [bank_account_mapping](docs/sdks/bankaccountmapping/README.md)
47+
48+
* [create](docs/sdks/bankaccountmapping/README.md#create) - Create bank feed bank account mapping
49+
* [get](docs/sdks/bankaccountmapping/README.md#get) - List bank feed account mappings
50+
6751
### [bank_account_transactions](docs/sdks/bankaccounttransactions/README.md)
6852

69-
* [create](docs/sdks/bankaccounttransactions/README.md#create) - Create bank transactions
70-
* [get](docs/sdks/bankaccounttransactions/README.md#get) - List push options for bank account bank transactions
71-
* [list](docs/sdks/bankaccounttransactions/README.md#list) - List bank transactions for bank account
53+
* [create](docs/sdks/bankaccounttransactions/README.md#create) - Create bank account transactions
54+
* [get_create_model](docs/sdks/bankaccounttransactions/README.md#get_create_model) - Get create bank account transactions model
55+
* [list](docs/sdks/bankaccounttransactions/README.md#list) - List bank account transactions
7256

7357
### [bank_feed_accounts](docs/sdks/bankfeedaccounts/README.md)
7458

75-
* [create](docs/sdks/bankfeedaccounts/README.md#create) - Create bank feed bank accounts
76-
* [get](docs/sdks/bankfeedaccounts/README.md#get) - List bank feed bank accounts
77-
* [update](docs/sdks/bankfeedaccounts/README.md#update) - Update bank feed bank account
59+
* [create](docs/sdks/bankfeedaccounts/README.md#create) - Create a bank feed bank account
60+
* [list](docs/sdks/bankfeedaccounts/README.md#list) - List bank feed bank accounts
61+
* [~~put_bank_feed~~](docs/sdks/bankfeedaccounts/README.md#put_bank_feed) - Create bank feed bank accounts :warning: **Deprecated**
62+
* [~~update~~](docs/sdks/bankfeedaccounts/README.md#update) - Update bank feed bank account :warning: **Deprecated**
7863

7964
### [companies](docs/sdks/companies/README.md)
8065

bankfeeds/RELEASES.md

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,4 +582,100 @@ Based on:
582582
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
583583
- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy
584584
### Releases
585-
- [PyPI v0.27.1] https://pypi.org/project/codat-bankfeeds/0.27.1 - bankfeeds
585+
- [PyPI v0.27.1] https://pypi.org/project/codat-bankfeeds/0.27.1 - bankfeeds
586+
587+
## 2023-06-20 00:17:25
588+
### Changes
589+
Based on:
590+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
591+
- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy
592+
### Releases
593+
- [PyPI v0.27.2] https://pypi.org/project/codat-bankfeeds/0.27.2 - bankfeeds
594+
595+
## 2023-06-21 00:18:39
596+
### Changes
597+
Based on:
598+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
599+
- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy
600+
### Releases
601+
- [PyPI v0.27.3] https://pypi.org/project/codat-bankfeeds/0.27.3 - bankfeeds
602+
603+
## 2023-06-23 00:21:45
604+
### Changes
605+
Based on:
606+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
607+
- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy
608+
### Releases
609+
- [PyPI v0.28.0] https://pypi.org/project/codat-bankfeeds/0.28.0 - bankfeeds
610+
611+
## 2023-06-24 00:21:24
612+
### Changes
613+
Based on:
614+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
615+
- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy
616+
### Releases
617+
- [PyPI v0.28.1] https://pypi.org/project/codat-bankfeeds/0.28.1 - bankfeeds
618+
619+
## 2023-06-27 00:21:18
620+
### Changes
621+
Based on:
622+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
623+
- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy
624+
### Releases
625+
- [PyPI v0.29.0] https://pypi.org/project/codat-bankfeeds/0.29.0 - bankfeeds
626+
627+
## 2023-06-28 00:20:41
628+
### Changes
629+
Based on:
630+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
631+
- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy
632+
### Releases
633+
- [PyPI v0.29.1] https://pypi.org/project/codat-bankfeeds/0.29.1 - bankfeeds
634+
635+
## 2023-06-29 00:20:47
636+
### Changes
637+
Based on:
638+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
639+
- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy
640+
### Releases
641+
- [PyPI v0.30.0] https://pypi.org/project/codat-bankfeeds/0.30.0 - bankfeeds
642+
643+
## 2023-07-01 00:24:34
644+
### Changes
645+
Based on:
646+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
647+
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
648+
### Releases
649+
- [PyPI v0.31.0] https://pypi.org/project/codat-bankfeeds/0.31.0 - bankfeeds
650+
651+
## 2023-07-04 00:20:34
652+
### Changes
653+
Based on:
654+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
655+
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
656+
### Releases
657+
- [PyPI v0.31.1] https://pypi.org/project/codat-bankfeeds/0.31.1 - bankfeeds
658+
659+
## 2023-07-06 00:21:17
660+
### Changes
661+
Based on:
662+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
663+
- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy
664+
### Releases
665+
- [PyPI v0.32.0] https://pypi.org/project/codat-bankfeeds/0.32.0 - bankfeeds
666+
667+
## 2023-07-07 00:20:53
668+
### Changes
669+
Based on:
670+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
671+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
672+
### Releases
673+
- [PyPI v0.33.0] https://pypi.org/project/codat-bankfeeds/0.33.0 - bankfeeds
674+
675+
## 2023-07-07 09:22:58
676+
### Changes
677+
Based on:
678+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
679+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
680+
### Releases
681+
- [PyPI v0.33.1] https://pypi.org/project/codat-bankfeeds/0.33.1 - bankfeeds

bankfeeds/USAGE.md

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,19 @@ s = codatbankfeeds.CodatBankFeeds(
99
),
1010
)
1111

12-
req = operations.CreateBankTransactionsRequest(
13-
create_bank_transactions=shared.CreateBankTransactions(
14-
account_id='corrupti',
15-
transactions=[
16-
shared.CreateBankAccountTransaction(
17-
amount=7151.9,
18-
date_='2022-10-23T00:00:00.000Z',
19-
description='unde',
20-
id='d8d69a67-4e0f-4467-8c87-96ed151a05df',
21-
),
22-
shared.CreateBankAccountTransaction(
23-
amount=7781.57,
24-
date_='2022-10-23T00:00:00.000Z',
25-
description='at',
26-
id='df7cc78c-a1ba-4928-bc81-6742cb739205',
27-
),
28-
shared.CreateBankAccountTransaction(
29-
amount=6176.36,
30-
date_='2022-10-23T00:00:00.000Z',
31-
description='iste',
32-
id='396fea75-96eb-410f-aaa2-352c5955907a',
33-
),
34-
],
12+
req = operations.CreateBankAccountMappingRequest(
13+
bank_feed_account_mapping=shared.BankFeedAccountMapping(
14+
feed_start_date='2022-10-23T00:00:00.000Z',
15+
source_account_id='provident',
16+
target_account_id='distinctio',
3517
),
36-
account_id='EILBDVJVNUAGVKRQ',
37-
allow_sync_on_push_complete=False,
3818
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
3919
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
40-
timeout_in_minutes=958950,
4120
)
4221

43-
res = s.bank_account_transactions.create(req)
22+
res = s.bank_account_mapping.create(req)
4423

45-
if res.create_bank_transactions_response is not None:
24+
if res.account_mapping_result is not None:
4625
# handle response
4726
```
4827
<!-- End SDK Example Usage -->
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateBankAccountMappingRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
8+
| `bank_feed_account_mapping` | [Optional[shared.BankFeedAccountMapping]](../../models/shared/bankfeedaccountmapping.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateBankAccountMappingResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `account_mapping_result` | [Optional[shared.AccountMappingResult]](../../models/shared/accountmappingresult.md) | :heavy_minus_sign: | Success |
9+
| `content_type` | *str* | :heavy_check_mark: | N/A |
10+
| `status_code` | *int* | :heavy_check_mark: | N/A |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
12+
| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | The request made is not valid. |

bankfeeds/docs/models/operations/createbankfeedrequest.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
8-
| `request_body` | list[[shared.BankFeedAccount](../../models/shared/bankfeedaccount.md)] | :heavy_minus_sign: | N/A | |
9-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10-
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
6+
| Field | Type | Required | Description | Example |
7+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
8+
| `bank_feed_account` | [Optional[shared.BankFeedAccount]](../../models/shared/bankfeedaccount.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |

0 commit comments

Comments
 (0)