Skip to content

Commit c2a1a53

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

File tree

4 files changed

+106
-21
lines changed

4 files changed

+106
-21
lines changed

bankfeeds/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,12 @@ Based on:
262262
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
263263
- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy
264264
### Releases
265-
- [PyPI v0.10.0] https://pypi.org/project/codat-bank-feeds/0.10.0 - bankfeeds
265+
- [PyPI v0.10.0] https://pypi.org/project/codat-bank-feeds/0.10.0 - bankfeeds
266+
267+
## 2023-04-18 00:16:39
268+
### Changes
269+
Based on:
270+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
271+
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy
272+
### Releases
273+
- [PyPI v0.10.1] https://pypi.org/project/codat-bank-feeds/0.10.1 - bankfeeds

bankfeeds/gen.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: bf4855a1f75769985d375676f2d6ff7a
3+
docChecksum: 813f80f3f0fc4a4685abaeae0535a244
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: CodatBankFeeds
1010
tagNamespacingDisabled: true
11-
sdkFlattening: false
1211
singleTagPerOp: false
1312
python:
14-
version: 0.10.0
13+
version: 0.10.1
1514
author: Speakeasy
1615
description: Python Client SDK Generated by Speakeasy
1716
packageName: codat-bank-feeds

bankfeeds/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-bank-feeds",
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,

bankfeeds/src/codatbankfeeds/sdk.py

Lines changed: 92 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class CodatBankFeeds:
2525
_security_client: requests_http.Session
2626
_server_url: str = SERVERS[0]
2727
_language: str = "python"
28-
_sdk_version: str = "0.10.0"
29-
_gen_version: str = "2.18.0"
28+
_sdk_version: str = "0.10.1"
29+
_gen_version: str = "2.18.1"
3030

3131
def __init__(self,
3232
security: shared.Security = None,
@@ -63,7 +63,7 @@ def __init__(self,
6363

6464

6565

66-
def create_bank_feed(self, request: operations.CreateBankFeedRequest) -> operations.CreateBankFeedResponse:
66+
def create_bank_feed(self, request: operations.CreateBankFeedRequest, retries: Optional[utils.RetryConfig] = None) -> operations.CreateBankFeedResponse:
6767
r"""Create bank feed bank accounts
6868
Put BankFeed BankAccounts for a single data source connected to a single company.
6969
"""
@@ -78,7 +78,20 @@ def create_bank_feed(self, request: operations.CreateBankFeedRequest) -> operati
7878

7979
client = self._security_client
8080

81-
http_res = client.request('PUT', url, data=data, files=form, headers=headers)
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('PUT', url, data=data, files=form, headers=headers)
89+
90+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
91+
'408',
92+
'429',
93+
'5XX'
94+
]))
8295
content_type = http_res.headers.get('Content-Type')
8396

8497
res = operations.CreateBankFeedResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -90,7 +103,7 @@ def create_bank_feed(self, request: operations.CreateBankFeedRequest) -> operati
90103

91104
return res
92105

93-
def create_bank_transactions(self, request: operations.CreateBankTransactionsRequest) -> operations.CreateBankTransactionsResponse:
106+
def create_bank_transactions(self, request: operations.CreateBankTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.CreateBankTransactionsResponse:
94107
r"""Create bank transactions
95108
Posts bank transactions to the accounting package for a given company.
96109
@@ -110,7 +123,20 @@ def create_bank_transactions(self, request: operations.CreateBankTransactionsReq
110123

111124
client = self._security_client
112125

113-
http_res = client.request('POST', url, params=query_params, data=data, files=form, headers=headers)
126+
retry_config = retries
127+
if retry_config is None:
128+
retry_config = utils.RetryConfig('backoff', True)
129+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
130+
131+
132+
def do_request():
133+
return client.request('POST', url, params=query_params, data=data, files=form, headers=headers)
134+
135+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
136+
'408',
137+
'429',
138+
'5XX'
139+
]))
114140
content_type = http_res.headers.get('Content-Type')
115141

116142
res = operations.CreateBankTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -122,7 +148,7 @@ def create_bank_transactions(self, request: operations.CreateBankTransactionsReq
122148

123149
return res
124150

125-
def get_bank_feeds(self, request: operations.GetBankFeedsRequest) -> operations.GetBankFeedsResponse:
151+
def get_bank_feeds(self, request: operations.GetBankFeedsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetBankFeedsResponse:
126152
r"""List bank feed bank accounts
127153
Get BankFeed BankAccounts for a single data source connected to a single company.
128154
"""
@@ -133,7 +159,20 @@ def get_bank_feeds(self, request: operations.GetBankFeedsRequest) -> operations.
133159

134160
client = self._security_client
135161

136-
http_res = client.request('GET', url)
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)
170+
171+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
172+
'408',
173+
'429',
174+
'5XX'
175+
]))
137176
content_type = http_res.headers.get('Content-Type')
138177

139178
res = operations.GetBankFeedsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -145,7 +184,7 @@ def get_bank_feeds(self, request: operations.GetBankFeedsRequest) -> operations.
145184

146185
return res
147186

148-
def get_create_bank_account_model(self, request: operations.GetCreateBankAccountModelRequest) -> operations.GetCreateBankAccountModelResponse:
187+
def get_create_bank_account_model(self, request: operations.GetCreateBankAccountModelRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCreateBankAccountModelResponse:
149188
r"""List push options for bank account bank transactions
150189
Gets the options of pushing bank account transactions.
151190
"""
@@ -156,7 +195,20 @@ def get_create_bank_account_model(self, request: operations.GetCreateBankAccount
156195

157196
client = self._security_client
158197

159-
http_res = client.request('GET', url)
198+
retry_config = retries
199+
if retry_config is None:
200+
retry_config = utils.RetryConfig('backoff', True)
201+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
202+
203+
204+
def do_request():
205+
return client.request('GET', url)
206+
207+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
208+
'408',
209+
'429',
210+
'5XX'
211+
]))
160212
content_type = http_res.headers.get('Content-Type')
161213

162214
res = operations.GetCreateBankAccountModelResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -168,7 +220,7 @@ def get_create_bank_account_model(self, request: operations.GetCreateBankAccount
168220

169221
return res
170222

171-
def list_bank_account_transactions(self, request: operations.ListBankAccountTransactionsRequest) -> operations.ListBankAccountTransactionsResponse:
223+
def list_bank_account_transactions(self, request: operations.ListBankAccountTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListBankAccountTransactionsResponse:
172224
r"""List bank transactions for bank account
173225
Gets bank transactions for a given bank account ID
174226
"""
@@ -180,7 +232,20 @@ def list_bank_account_transactions(self, request: operations.ListBankAccountTran
180232

181233
client = self._security_client
182234

183-
http_res = client.request('GET', url, params=query_params)
235+
retry_config = retries
236+
if retry_config is None:
237+
retry_config = utils.RetryConfig('backoff', True)
238+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
239+
240+
241+
def do_request():
242+
return client.request('GET', url, params=query_params)
243+
244+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
245+
'408',
246+
'429',
247+
'5XX'
248+
]))
184249
content_type = http_res.headers.get('Content-Type')
185250

186251
res = operations.ListBankAccountTransactionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -192,7 +257,7 @@ def list_bank_account_transactions(self, request: operations.ListBankAccountTran
192257

193258
return res
194259

195-
def update_bank_feed(self, request: operations.UpdateBankFeedRequest) -> operations.UpdateBankFeedResponse:
260+
def update_bank_feed(self, request: operations.UpdateBankFeedRequest, retries: Optional[utils.RetryConfig] = None) -> operations.UpdateBankFeedResponse:
196261
r"""Update bank feed bank account
197262
Update a single BankFeed BankAccount for a single data source connected to a single company.
198263
"""
@@ -207,7 +272,20 @@ def update_bank_feed(self, request: operations.UpdateBankFeedRequest) -> operati
207272

208273
client = self._security_client
209274

210-
http_res = client.request('PATCH', url, data=data, files=form, headers=headers)
275+
retry_config = retries
276+
if retry_config is None:
277+
retry_config = utils.RetryConfig('backoff', True)
278+
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
279+
280+
281+
def do_request():
282+
return client.request('PATCH', url, data=data, files=form, headers=headers)
283+
284+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
285+
'408',
286+
'429',
287+
'5XX'
288+
]))
211289
content_type = http_res.headers.get('Content-Type')
212290

213291
res = operations.UpdateBankFeedResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

0 commit comments

Comments
 (0)