Skip to content

Commit 3718410

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.20.1
1 parent e107338 commit 3718410

8 files changed

Lines changed: 136 additions & 25 deletions

File tree

banking/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,12 @@ Based on:
198198
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
199199
- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy
200200
### Releases
201-
- [PyPI v0.10.0] https://pypi.org/project/codat-banking/0.10.0 - banking
201+
- [PyPI v0.10.0] https://pypi.org/project/codat-banking/0.10.0 - banking
202+
203+
## 2023-04-18 00:02:27
204+
### Changes
205+
Based on:
206+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml
207+
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy
208+
### Releases
209+
- [PyPI v0.10.1] https://pypi.org/project/codat-banking/0.10.1 - banking

banking/gen.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 8e2ee5363121ea0bb5ccea0966b0d9c8
3+
docChecksum: b5ae7657de4fa507cc512f6388fc83b7
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.20.0
6-
generationVersion: 2.18.0
5+
speakeasyVersion: 1.20.1
6+
generationVersion: 2.18.1
77
generation:
88
telemetryEnabled: false
99
sdkClassName: CodatBanking
10-
sdkFlattening: false
1110
singleTagPerOp: false
1211
python:
13-
version: 0.10.0
12+
version: 0.10.1
1413
author: Speakeasy
1514
description: Python Client SDK Generated by Speakeasy
1615
packageName: codat-banking

banking/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-banking",
13-
version="0.10.0",
13+
version="0.10.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

banking/src/codatbanking/account_balances.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def list_account_balances(self, request: operations.ListAccountBalancesRequest) -> operations.ListAccountBalancesResponse:
25+
def list_account_balances(self, request: operations.ListAccountBalancesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListAccountBalancesResponse:
2626
r"""List account balances
2727
Gets a list of balances for a bank account including end-of-day batch balance or running balances per transaction.
2828
"""
@@ -34,7 +34,20 @@ def list_account_balances(self, request: operations.ListAccountBalancesRequest)
3434

3535
client = self._security_client
3636

37-
http_res = client.request('GET', url, params=query_params)
37+
retry_config = retries
38+
if retry_config is None:
39+
retry_config = utils.RetryConfig('backoff', True)
40+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
41+
42+
43+
def do_request():
44+
return client.request('GET', url, params=query_params)
45+
46+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
47+
'408',
48+
'429',
49+
'5XX'
50+
]))
3851
content_type = http_res.headers.get('Content-Type')
3952

4053
res = operations.ListAccountBalancesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

banking/src/codatbanking/accounts.py

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def get_account(self, request: operations.GetAccountRequest) -> operations.GetAccountResponse:
25+
def get_account(self, request: operations.GetAccountRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetAccountResponse:
2626
r"""Get account
2727
Gets a specified bank account for a given company
2828
"""
@@ -33,7 +33,20 @@ def get_account(self, request: operations.GetAccountRequest) -> operations.GetAc
3333

3434
client = self._security_client
3535

36-
http_res = client.request('GET', url)
36+
retry_config = retries
37+
if retry_config is None:
38+
retry_config = utils.RetryConfig('backoff', True)
39+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
40+
41+
42+
def do_request():
43+
return client.request('GET', url)
44+
45+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
46+
'408',
47+
'429',
48+
'5XX'
49+
]))
3750
content_type = http_res.headers.get('Content-Type')
3851

3952
res = operations.GetAccountResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -45,7 +58,7 @@ def get_account(self, request: operations.GetAccountRequest) -> operations.GetAc
4558

4659
return res
4760

48-
def list_accounts(self, request: operations.ListAccountsRequest) -> operations.ListAccountsResponse:
61+
def list_accounts(self, request: operations.ListAccountsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListAccountsResponse:
4962
r"""List accounts
5063
Gets a list of all bank accounts of the SMB, with rich data like balances, account numbers and institutions holdingthe accounts.
5164
"""
@@ -57,7 +70,20 @@ def list_accounts(self, request: operations.ListAccountsRequest) -> operations.L
5770

5871
client = self._security_client
5972

60-
http_res = client.request('GET', url, params=query_params)
73+
retry_config = retries
74+
if retry_config is None:
75+
retry_config = utils.RetryConfig('backoff', True)
76+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
77+
78+
79+
def do_request():
80+
return client.request('GET', url, params=query_params)
81+
82+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
83+
'408',
84+
'429',
85+
'5XX'
86+
]))
6187
content_type = http_res.headers.get('Content-Type')
6288

6389
res = operations.ListAccountsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

banking/src/codatbanking/sdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class CodatBanking:
3737
_security_client: requests_http.Session
3838
_server_url: str = SERVERS[0]
3939
_language: str = "python"
40-
_sdk_version: str = "0.10.0"
41-
_gen_version: str = "2.18.0"
40+
_sdk_version: str = "0.10.1"
41+
_gen_version: str = "2.18.1"
4242

4343
def __init__(self,
4444
security: shared.Security = None,

banking/src/codatbanking/transaction_categories.py

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def get_transaction_category(self, request: operations.GetTransactionCategoryRequest) -> operations.GetTransactionCategoryResponse:
25+
def get_transaction_category(self, request: operations.GetTransactionCategoryRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetTransactionCategoryResponse:
2626
r"""Get transaction category
2727
Gets a specified bank transaction category for a given company
2828
"""
@@ -33,7 +33,20 @@ def get_transaction_category(self, request: operations.GetTransactionCategoryReq
3333

3434
client = self._security_client
3535

36-
http_res = client.request('GET', url)
36+
retry_config = retries
37+
if retry_config is None:
38+
retry_config = utils.RetryConfig('backoff', True)
39+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
40+
41+
42+
def do_request():
43+
return client.request('GET', url)
44+
45+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
46+
'408',
47+
'429',
48+
'5XX'
49+
]))
3750
content_type = http_res.headers.get('Content-Type')
3851

3952
res = operations.GetTransactionCategoryResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -45,7 +58,7 @@ def get_transaction_category(self, request: operations.GetTransactionCategoryReq
4558

4659
return res
4760

48-
def list_transaction_categories(self, request: operations.ListTransactionCategoriesRequest) -> operations.ListTransactionCategoriesResponse:
61+
def list_transaction_categories(self, request: operations.ListTransactionCategoriesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListTransactionCategoriesResponse:
4962
r"""List all transaction categories
5063
Gets a list of hierarchical categories associated with a transaction for greater contextual meaning to transactionactivity.
5164
"""
@@ -57,7 +70,20 @@ def list_transaction_categories(self, request: operations.ListTransactionCategor
5770

5871
client = self._security_client
5972

60-
http_res = client.request('GET', url, params=query_params)
73+
retry_config = retries
74+
if retry_config is None:
75+
retry_config = utils.RetryConfig('backoff', True)
76+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
77+
78+
79+
def do_request():
80+
return client.request('GET', url, params=query_params)
81+
82+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
83+
'408',
84+
'429',
85+
'5XX'
86+
]))
6187
content_type = http_res.headers.get('Content-Type')
6288

6389
res = operations.ListTransactionCategoriesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

banking/src/codatbanking/transactions.py

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def get_transaction(self, request: operations.GetTransactionRequest) -> operations.GetTransactionResponse:
25+
def get_transaction(self, request: operations.GetTransactionRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetTransactionResponse:
2626
r"""Get bank transaction
2727
Gets a specified bank transaction for a given company
2828
"""
@@ -33,7 +33,20 @@ def get_transaction(self, request: operations.GetTransactionRequest) -> operatio
3333

3434
client = self._security_client
3535

36-
http_res = client.request('GET', url)
36+
retry_config = retries
37+
if retry_config is None:
38+
retry_config = utils.RetryConfig('backoff', True)
39+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
40+
41+
42+
def do_request():
43+
return client.request('GET', url)
44+
45+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
46+
'408',
47+
'429',
48+
'5XX'
49+
]))
3750
content_type = http_res.headers.get('Content-Type')
3851

3952
res = operations.GetTransactionResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -45,7 +58,7 @@ def get_transaction(self, request: operations.GetTransactionRequest) -> operatio
4558

4659
return res
4760

48-
def list_bank_transactions(self, request: operations.ListBankTransactionsRequest) -> operations.ListBankTransactionsResponse:
61+
def list_bank_transactions(self, request: operations.ListBankTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListBankTransactionsResponse:
4962
r"""List banking transactions
5063
Gets a list of transactions incurred by a company across all bank accounts.
5164
"""
@@ -57,7 +70,20 @@ def list_bank_transactions(self, request: operations.ListBankTransactionsRequest
5770

5871
client = self._security_client
5972

60-
http_res = client.request('GET', url, params=query_params)
73+
retry_config = retries
74+
if retry_config is None:
75+
retry_config = utils.RetryConfig('backoff', True)
76+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
77+
78+
79+
def do_request():
80+
return client.request('GET', url, params=query_params)
81+
82+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
83+
'408',
84+
'429',
85+
'5XX'
86+
]))
6187
content_type = http_res.headers.get('Content-Type')
6288

6389
res = operations.ListBankTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -69,7 +95,7 @@ def list_bank_transactions(self, request: operations.ListBankTransactionsRequest
6995

7096
return res
7197

72-
def list_transactions(self, request: operations.ListTransactionsRequest) -> operations.ListTransactionsResponse:
98+
def list_transactions(self, request: operations.ListTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListTransactionsResponse:
7399
r"""List transactions
74100
Gets a list of transactions incurred by a bank account.
75101
"""
@@ -81,7 +107,20 @@ def list_transactions(self, request: operations.ListTransactionsRequest) -> oper
81107

82108
client = self._security_client
83109

84-
http_res = client.request('GET', url, params=query_params)
110+
retry_config = retries
111+
if retry_config is None:
112+
retry_config = utils.RetryConfig('backoff', True)
113+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
114+
115+
116+
def do_request():
117+
return client.request('GET', url, params=query_params)
118+
119+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
120+
'408',
121+
'429',
122+
'5XX'
123+
]))
85124
content_type = http_res.headers.get('Content-Type')
86125

87126
res = operations.ListTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

0 commit comments

Comments
 (0)