Skip to content

Commit 9a66f3a

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.20.1
1 parent 1f3d9f0 commit 9a66f3a

30 files changed

Lines changed: 1921 additions & 263 deletions

accounting/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,12 @@ Based on:
238238
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
239239
- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy
240240
### Releases
241-
- [PyPI v0.11.0] https://pypi.org/project/codat-accounting/0.11.0 - accounting
241+
- [PyPI v0.11.0] https://pypi.org/project/codat-accounting/0.11.0 - accounting
242+
243+
## 2023-04-18 00:10:46
244+
### Changes
245+
Based on:
246+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
247+
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy
248+
### Releases
249+
- [PyPI v0.11.1] https://pypi.org/project/codat-accounting/0.11.1 - accounting

accounting/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: c34c1f453cb470a82008f4eca5a4bdef
3+
docChecksum: fcc77c284ca2189a861b64c041b8dc13
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: CodatAccounting
10-
sdkFlattening: false
1110
singleTagPerOp: false
1211
python:
13-
version: 0.11.0
12+
version: 0.11.1
1413
author: Speakeasy
1514
description: Python Client SDK Generated by Speakeasy
1615
packageName: codat-accounting

accounting/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-accounting",
13-
version="0.11.0",
13+
version="0.11.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

accounting/src/codataccounting/account_transactions.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_transaction(self, request: operations.GetAccountTransactionRequest) -> operations.GetAccountTransactionResponse:
25+
def get_account_transaction(self, request: operations.GetAccountTransactionRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetAccountTransactionResponse:
2626
r"""Get account transaction
2727
Gets the account transactions for a given company.Gets the specified account transaction for a given company and connection.
2828
"""
@@ -33,7 +33,20 @@ def get_account_transaction(self, request: operations.GetAccountTransactionReque
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.GetAccountTransactionResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -45,7 +58,7 @@ def get_account_transaction(self, request: operations.GetAccountTransactionReque
4558

4659
return res
4760

48-
def list_account_transactions(self, request: operations.ListAccountTransactionsRequest) -> operations.ListAccountTransactionsResponse:
61+
def list_account_transactions(self, request: operations.ListAccountTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListAccountTransactionsResponse:
4962
r"""List account transactions
5063
Gets the account transactions for a given company.
5164
"""
@@ -57,7 +70,20 @@ def list_account_transactions(self, request: operations.ListAccountTransactionsR
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.ListAccountTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

accounting/src/codataccounting/accounts.py

Lines changed: 60 additions & 8 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 create_account(self, request: operations.CreateAccountRequest) -> operations.CreateAccountResponse:
25+
def create_account(self, request: operations.CreateAccountRequest, retries: Optional[utils.RetryConfig] = None) -> operations.CreateAccountResponse:
2626
r"""Create account
2727
Creates a new account for a given company.
2828
@@ -44,7 +44,20 @@ def create_account(self, request: operations.CreateAccountRequest) -> operations
4444

4545
client = self._security_client
4646

47-
http_res = client.request('POST', url, params=query_params, data=data, files=form, headers=headers)
47+
retry_config = retries
48+
if retry_config is None:
49+
retry_config = utils.RetryConfig('backoff', True)
50+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
51+
52+
53+
def do_request():
54+
return client.request('POST', url, params=query_params, data=data, files=form, headers=headers)
55+
56+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
57+
'408',
58+
'429',
59+
'5XX'
60+
]))
4861
content_type = http_res.headers.get('Content-Type')
4962

5063
res = operations.CreateAccountResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -56,7 +69,7 @@ def create_account(self, request: operations.CreateAccountRequest) -> operations
5669

5770
return res
5871

59-
def get_account(self, request: operations.GetAccountRequest) -> operations.GetAccountResponse:
72+
def get_account(self, request: operations.GetAccountRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetAccountResponse:
6073
r"""Get account
6174
Gets a single account corresponding to the given ID.
6275
"""
@@ -67,7 +80,20 @@ def get_account(self, request: operations.GetAccountRequest) -> operations.GetAc
6780

6881
client = self._security_client
6982

70-
http_res = client.request('GET', url)
83+
retry_config = retries
84+
if retry_config is None:
85+
retry_config = utils.RetryConfig('backoff', True)
86+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
87+
88+
89+
def do_request():
90+
return client.request('GET', url)
91+
92+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
93+
'408',
94+
'429',
95+
'5XX'
96+
]))
7197
content_type = http_res.headers.get('Content-Type')
7298

7399
res = operations.GetAccountResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -79,7 +105,7 @@ def get_account(self, request: operations.GetAccountRequest) -> operations.GetAc
79105

80106
return res
81107

82-
def get_create_chart_of_accounts_model(self, request: operations.GetCreateChartOfAccountsModelRequest) -> operations.GetCreateChartOfAccountsModelResponse:
108+
def get_create_chart_of_accounts_model(self, request: operations.GetCreateChartOfAccountsModelRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCreateChartOfAccountsModelResponse:
83109
r"""Get create account model
84110
Get create account model. Returns the expected data for the request payload.
85111
@@ -96,7 +122,20 @@ def get_create_chart_of_accounts_model(self, request: operations.GetCreateChartO
96122

97123
client = self._security_client
98124

99-
http_res = client.request('GET', url)
125+
retry_config = retries
126+
if retry_config is None:
127+
retry_config = utils.RetryConfig('backoff', True)
128+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
129+
130+
131+
def do_request():
132+
return client.request('GET', url)
133+
134+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
135+
'408',
136+
'429',
137+
'5XX'
138+
]))
100139
content_type = http_res.headers.get('Content-Type')
101140

102141
res = operations.GetCreateChartOfAccountsModelResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -108,7 +147,7 @@ def get_create_chart_of_accounts_model(self, request: operations.GetCreateChartO
108147

109148
return res
110149

111-
def list_accounts(self, request: operations.ListAccountsRequest) -> operations.ListAccountsResponse:
150+
def list_accounts(self, request: operations.ListAccountsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListAccountsResponse:
112151
r"""List accounts
113152
Gets the latest accounts for a company
114153
"""
@@ -120,7 +159,20 @@ def list_accounts(self, request: operations.ListAccountsRequest) -> operations.L
120159

121160
client = self._security_client
122161

123-
http_res = client.request('GET', url, params=query_params)
162+
retry_config = retries
163+
if retry_config is None:
164+
retry_config = utils.RetryConfig('backoff', True)
165+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
166+
167+
168+
def do_request():
169+
return client.request('GET', url, params=query_params)
170+
171+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
172+
'408',
173+
'429',
174+
'5XX'
175+
]))
124176
content_type = http_res.headers.get('Content-Type')
125177

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

accounting/src/codataccounting/bank_account_transactions.py

Lines changed: 60 additions & 8 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 create_bank_transactions(self, request: operations.CreateBankTransactionsRequest) -> operations.CreateBankTransactionsResponse:
25+
def create_bank_transactions(self, request: operations.CreateBankTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.CreateBankTransactionsResponse:
2626
r"""Create bank transactions
2727
Posts bank transactions to the accounting package for a given company.
2828
@@ -42,7 +42,20 @@ def create_bank_transactions(self, request: operations.CreateBankTransactionsReq
4242

4343
client = self._security_client
4444

45-
http_res = client.request('POST', url, params=query_params, data=data, files=form, headers=headers)
45+
retry_config = retries
46+
if retry_config is None:
47+
retry_config = utils.RetryConfig('backoff', True)
48+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
49+
50+
51+
def do_request():
52+
return client.request('POST', url, params=query_params, data=data, files=form, headers=headers)
53+
54+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
55+
'408',
56+
'429',
57+
'5XX'
58+
]))
4659
content_type = http_res.headers.get('Content-Type')
4760

4861
res = operations.CreateBankTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -54,7 +67,7 @@ def create_bank_transactions(self, request: operations.CreateBankTransactionsReq
5467

5568
return res
5669

57-
def get_create_bank_account_model(self, request: operations.GetCreateBankAccountModelRequest) -> operations.GetCreateBankAccountModelResponse:
70+
def get_create_bank_account_model(self, request: operations.GetCreateBankAccountModelRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCreateBankAccountModelResponse:
5871
r"""List push options for bank account bank transactions
5972
Gets the options of pushing bank account transactions.
6073
"""
@@ -65,7 +78,20 @@ def get_create_bank_account_model(self, request: operations.GetCreateBankAccount
6578

6679
client = self._security_client
6780

68-
http_res = client.request('GET', url)
81+
retry_config = retries
82+
if retry_config is None:
83+
retry_config = utils.RetryConfig('backoff', True)
84+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
85+
86+
87+
def do_request():
88+
return client.request('GET', url)
89+
90+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
91+
'408',
92+
'429',
93+
'5XX'
94+
]))
6995
content_type = http_res.headers.get('Content-Type')
7096

7197
res = operations.GetCreateBankAccountModelResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -77,7 +103,7 @@ def get_create_bank_account_model(self, request: operations.GetCreateBankAccount
77103

78104
return res
79105

80-
def list_bank_account_transactions(self, request: operations.ListBankAccountTransactionsRequest) -> operations.ListBankAccountTransactionsResponse:
106+
def list_bank_account_transactions(self, request: operations.ListBankAccountTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListBankAccountTransactionsResponse:
81107
r"""List bank transactions for bank account
82108
Gets bank transactions for a given bank account ID
83109
"""
@@ -89,7 +115,20 @@ def list_bank_account_transactions(self, request: operations.ListBankAccountTran
89115

90116
client = self._security_client
91117

92-
http_res = client.request('GET', url, params=query_params)
118+
retry_config = retries
119+
if retry_config is None:
120+
retry_config = utils.RetryConfig('backoff', True)
121+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
122+
123+
124+
def do_request():
125+
return client.request('GET', url, params=query_params)
126+
127+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
128+
'408',
129+
'429',
130+
'5XX'
131+
]))
93132
content_type = http_res.headers.get('Content-Type')
94133

95134
res = operations.ListBankAccountTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -101,7 +140,7 @@ def list_bank_account_transactions(self, request: operations.ListBankAccountTran
101140

102141
return res
103142

104-
def list_bank_transactions(self, request: operations.ListBankTransactionsRequest) -> operations.ListBankTransactionsResponse:
143+
def list_bank_transactions(self, request: operations.ListBankTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListBankTransactionsResponse:
105144
r"""List all bank transactions
106145
Gets the latest bank transactions for given account ID and company. Doesn't require connection ID.
107146
"""
@@ -113,7 +152,20 @@ def list_bank_transactions(self, request: operations.ListBankTransactionsRequest
113152

114153
client = self._security_client
115154

116-
http_res = client.request('GET', url, params=query_params)
155+
retry_config = retries
156+
if retry_config is None:
157+
retry_config = utils.RetryConfig('backoff', True)
158+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
159+
160+
161+
def do_request():
162+
return client.request('GET', url, params=query_params)
163+
164+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
165+
'408',
166+
'429',
167+
'5XX'
168+
]))
117169
content_type = http_res.headers.get('Content-Type')
118170

119171
res = operations.ListBankTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

0 commit comments

Comments
 (0)