Skip to content

Commit ccaee16

Browse files
authored
Merge pull request #629 from codatio/speakeasy-sdk-regen-1734364659
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 10.0.0
2 parents 9a6393d + 83c05f2 commit ccaee16

Some content is hidden

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

46 files changed

+1024
-191
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.453.8
1+
speakeasyVersion: 1.455.5
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -16,11 +16,11 @@ sources:
1616
- main
1717
bank-feeds-source:
1818
sourceNamespace: bank-feeds-source
19-
sourceRevisionDigest: sha256:9133167d1473dc045331f1cfa81fb00aa3234e2b2b438f6808f576b259a76be8
20-
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
19+
sourceRevisionDigest: sha256:9aaa05521af2d39743759c03b1f419f63c5d9726a66c9b9e448e95a9a53ccf2b
20+
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
2121
tags:
2222
- latest
23-
- speakeasy-sdk-regen-1733825306
23+
- speakeasy-sdk-regen-1734364659
2424
- 3.0.0
2525
banking-source:
2626
sourceNamespace: banking-source
@@ -111,10 +111,10 @@ targets:
111111
bank-feeds-library:
112112
source: bank-feeds-source
113113
sourceNamespace: bank-feeds-source
114-
sourceRevisionDigest: sha256:9133167d1473dc045331f1cfa81fb00aa3234e2b2b438f6808f576b259a76be8
115-
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
114+
sourceRevisionDigest: sha256:9aaa05521af2d39743759c03b1f419f63c5d9726a66c9b9e448e95a9a53ccf2b
115+
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
116116
codeSamplesNamespace: bank-feeds-source-python-code-samples
117-
codeSamplesRevisionDigest: sha256:213db3e6e8d49d181aa23b48af0e4b8fc917552e39fb8ef2a69edab2eaa52e67
117+
codeSamplesRevisionDigest: sha256:44e2ed21312eba2cf9216de98b7101573e310f02fb8aa33f930d02296c84821f
118118
banking-library:
119119
source: banking-source
120120
sourceNamespace: banking-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 07093ad1-99d8-4bbd-a29c-a624e1b0e25a
33
management:
4-
docChecksum: af010093774a298b2b6a17e641f9cd1b
4+
docChecksum: 66b0b2a05ab126aac947c52e5cee36e3
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.453.8
7-
generationVersion: 2.474.15
8-
releaseVersion: 9.0.1
9-
configChecksum: 8ec4388e5997c479ecac5ec505c82d48
6+
speakeasyVersion: 1.455.5
7+
generationVersion: 2.479.3
8+
releaseVersion: 10.0.0
9+
configChecksum: ff8ffd8b2ba28524f91955857db0c0a5
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: bank-feeds
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=bank-feeds
@@ -15,7 +15,7 @@ features:
1515
python:
1616
additionalDependencies: 1.0.0
1717
constsAndDefaults: 1.0.5
18-
core: 5.6.11
18+
core: 5.7.2
1919
decimal: 1.0.0
2020
defaultEnabledRetries: 0.2.0
2121
deprecations: 3.0.0
@@ -154,11 +154,15 @@ generatedFiles:
154154
- docs/models/shared/sourceaccount.md
155155
- docs/models/shared/sourceaccountbatchcreateresponse.md
156156
- docs/models/shared/sourceaccountbatcherrorresponse.md
157+
- docs/models/shared/sourceaccountprototype.md
157158
- docs/models/shared/sourceaccountv2.md
159+
- docs/models/shared/sourceaccountv2accounttype.md
158160
- docs/models/shared/sourceaccountv2batchcreateresponse.md
161+
- docs/models/shared/sourceaccountv2prototype.md
159162
- docs/models/shared/sourceaccountv2status.md
160163
- docs/models/shared/sourceaccountwebhook.md
161164
- docs/models/shared/sourceaccountwebhookpayload.md
165+
- docs/models/shared/sourceaccountwebhookpayloadsourceaccount.md
162166
- docs/models/shared/sourcetype.md
163167
- docs/models/shared/status.md
164168
- docs/models/shared/supplementaldata.md
@@ -235,6 +239,7 @@ generatedFiles:
235239
- src/codat_bankfeeds/models/operations/update_source_account.py
236240
- src/codat_bankfeeds/models/shared/__init__.py
237241
- src/codat_bankfeeds/models/shared/accountinfo.py
242+
- src/codat_bankfeeds/models/shared/accounttype.py
238243
- src/codat_bankfeeds/models/shared/bankaccountcreateresponse.py
239244
- src/codat_bankfeeds/models/shared/bankaccountcredentials.py
240245
- src/codat_bankfeeds/models/shared/bankaccountoption.py
@@ -291,8 +296,10 @@ generatedFiles:
291296
- src/codat_bankfeeds/models/shared/sourceaccount.py
292297
- src/codat_bankfeeds/models/shared/sourceaccountbatchcreateresponse.py
293298
- src/codat_bankfeeds/models/shared/sourceaccountbatcherrorresponse.py
299+
- src/codat_bankfeeds/models/shared/sourceaccountprototype.py
294300
- src/codat_bankfeeds/models/shared/sourceaccountv2.py
295301
- src/codat_bankfeeds/models/shared/sourceaccountv2batchcreateresponse.py
302+
- src/codat_bankfeeds/models/shared/sourceaccountv2prototype.py
296303
- src/codat_bankfeeds/models/shared/sourceaccountwebhook.py
297304
- src/codat_bankfeeds/models/shared/sourceaccountwebhookpayload.py
298305
- src/codat_bankfeeds/models/shared/syncasbankfeeds.py
@@ -411,6 +418,7 @@ examples:
411418
pageSize: 100
412419
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
413420
orderBy: "-modifiedDate"
421+
tags: "region=uk && team=invoice-finance"
414422
responses:
415423
"200":
416424
application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "results": [{"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "dataConnectionErrors": [], "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "description": "Requested early access to the new financing scheme.", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739"}], "totalResults": 1}
@@ -422,6 +430,7 @@ examples:
422430
pageSize: 100
423431
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
424432
orderBy: "-modifiedDate"
433+
tags: "region=uk && team=invoice-finance"
425434
responses:
426435
"200":
427436
application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "My Test Company make testing software", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "lastSync": "2022-01-01T12:30:00.000Z", "name": "My Test Company", "redirect": "https://link.codat.io/company/3fa85f64-5717-4562-b3fc-2c963f66afa6", "referenceSubsidiaryCompanies": []}], "totalResults": 1}
@@ -432,6 +441,7 @@ examples:
432441
pageSize: 100
433442
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
434443
orderBy: "-modifiedDate"
444+
tags: "region=uk && team=invoice-finance"
435445
responses:
436446
"200":
437447
application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Joe Bloggs", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/d1568dde-adf6-11ed-afa1-0242ac120002/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "Technology services, including web and app design and development", "id": "d1568dde-adf6-11ed-afa1-0242ac120002", "lastSync": "2022-01-01T12:30:00.000Z", "name": "Technicalium", "redirect": "https://link.codat.io/company/d1568dde-adf6-11ed-afa1-0242ac120002", "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [{"id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "links": {"portal": "https://app.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/summary"}, "name": "Toft stores UK"}, {"id": "db94eddc-9212-4568-9b5c-3eab0e325913", "links": {"portal": "https://app.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/summary"}, "name": "Toft stores US"}]}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "d5ab61b7-1ad0-46fd-9f9f-b6761047941e", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/connections/d5ab61b7-1ad0-46fd-9f9f-b6761047941e/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "name": "Toft stores UK", "redirect": "https://link.codat.io/company/c8d3af58-7011-47ce-b3f2-89faf300ef6d", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/connections/1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "db94eddc-9212-4568-9b5c-3eab0e325913", "name": "Toft stores US", "redirect": "https://link.codat.io/company/db94eddc-9212-4568-9b5c-3eab0e325913", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}], "totalResults": 3}
@@ -442,6 +452,7 @@ examples:
442452
pageSize: 100
443453
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
444454
orderBy: "-modifiedDate"
455+
tags: "region=uk && team=invoice-finance"
445456
responses:
446457
"400":
447458
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400}
@@ -452,6 +463,7 @@ examples:
452463
pageSize: 100
453464
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
454465
orderBy: "-modifiedDate"
466+
tags: "region=uk && team=invoice-finance"
455467
responses:
456468
"400":
457469
application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400}
@@ -638,7 +650,7 @@ examples:
638650
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
639651
responses:
640652
"200":
641-
application/json: [{"sourceAccountId": "account-001", "sourceAccountName": "account-001", "sourceAccountNumber": "12345670", "sourceBalance": "99.99", "sourceCurrency": "GBP", "status": "pending", "targetAccountOptions": [{"accountNumber": "789", "id": "d21e25d6-98c5-4bfb-b469-105833bea3c8", "name": "Money Bank account", "sortCode": "123456"}, {"accountNumber": "99887766", "id": "d06ff4b2-e4f2-4681-9841-014bd008cdab", "name": "Bank of Dave account", "sortCode": "998866"}, {"accountNumber": "123456789", "id": "c8f252fc-84f3-4a8b-ace8-ae99f41a81ae", "name": "LuxLend account", "sortCode": "123456"}]}]
653+
application/json: [{"sourceAccountId": "account-001", "sourceAccountName": "account-001", "sourceAccountNumber": "12345670", "sourceBalance": 99.99, "sourceCurrency": "GBP", "status": "pending", "targetAccountOptions": [{"accountNumber": "789", "id": "d21e25d6-98c5-4bfb-b469-105833bea3c8", "name": "Money Bank account", "sortCode": "123456"}, {"accountNumber": "99887766", "id": "d06ff4b2-e4f2-4681-9841-014bd008cdab", "name": "Bank of Dave account", "sortCode": "998866"}, {"accountNumber": "123456789", "id": "c8f252fc-84f3-4a8b-ace8-ae99f41a81ae", "name": "LuxLend account", "sortCode": "123456"}]}]
642654
get-company-information:
643655
Malformed query:
644656
parameters:
@@ -655,10 +667,32 @@ examples:
655667
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
656668
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
657669
requestBody:
658-
application/json: {"accountInfo": {"accountOpenDate": "2023-05-06T00:00:00Z", "availableBalance": 10, "description": "account description 1", "nickname": "account 123"}, "accountName": "account-081", "accountNumber": "12345670", "accountType": "checking", "balance": 99.99, "currency": "GBP", "feedStartDate": "2024-05-01T00:00:00Z", "id": "acc-001", "modifiedDate": "2024-08-02T00:00:00.000Z", "routingInfo": {"bankCode": "21001088", "type": "bankcode"}, "status": "pending"}
670+
application/json: {"accountInfo": {"accountOpenDate": "2022-10-23"}, "currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z"}
659671
responses:
660672
"400":
661673
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400}
674+
Version 2:
675+
parameters:
676+
path:
677+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
678+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
679+
requestBody:
680+
application/json: {"accountInfo": {"accountOpenDate": "2022-10-23"}, "currency": "USD", "modifiedDate": "2022-10-23T00:00:00Z"}
681+
responses:
682+
"200":
683+
application/json: {"accountInfo": {"accountOpenDate": "2023-05-06T00:00:00Z", "availableBalance": 10, "description": "account description 1", "nickname": "account 123"}, "accountName": "account-081", "accountNumber": "12345670", "accountType": "checking", "balance": 99.99, "currency": "GBP", "feedStartDate": "2024-05-01T00:00:00Z", "id": "acc-001", "modifiedDate": "2024-08-02T00:00:00.000Z", "routingInfo": {"bankCode": "21001088", "type": "bankcode"}, "status": "pending"}
684+
"400": {}
685+
Version 1:
686+
parameters:
687+
path:
688+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
689+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
690+
requestBody:
691+
application/json: {"accountName": "account-081", "accountNumber": "12345670", "accountType": "Credit", "balance": 99.99, "currency": "GBP", "id": "acc-002", "modifiedDate": "2023-01-09T14:14:14.1057478Z", "sortCode": "123456"}
692+
responses:
693+
"200":
694+
application/json: {"accountName": "account-095", "accountNumber": "12345671", "accountType": "Credit", "balance": 0, "currency": "USD", "id": "acc-003", "modifiedDate": "2023-01-09T14:14:14.1057478Z", "sortCode": "123456", "status": "pending"}
695+
"400": {}
662696
delete-source-account:
663697
Unauthorized:
664698
parameters:

bank-feeds/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2PasswordEnabled: false
1313
telemetryEnabled: true
1414
python:
15-
version: 9.0.1
15+
version: 10.0.0
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

bank-feeds/README.md

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ from codat_bankfeeds.models import shared
9494
from decimal import Decimal
9595

9696
with CodatBankFeeds() as codat_bank_feeds:
97+
9798
codat_bank_feeds.bank_feeds_source_account_connected(request={
9899
"event_type": "bankFeeds.sourceAccount.connected",
99100
"generated_date": "2022-10-23T00:00:00Z",
@@ -136,6 +137,7 @@ from decimal import Decimal
136137

137138
async def main():
138139
async with CodatBankFeeds() as codat_bank_feeds:
140+
139141
await codat_bank_feeds.bank_feeds_source_account_connected_async(request={
140142
"event_type": "bankFeeds.sourceAccount.connected",
141143
"generated_date": "2022-10-23T00:00:00Z",
@@ -260,15 +262,17 @@ with CodatBankFeeds(
260262
auth_header="Basic BASE_64_ENCODED(API_KEY)",
261263
),
262264
) as codat_bank_feeds:
265+
263266
res = codat_bank_feeds.source_accounts.generate_credentials(request={
264267
"request_body": open("example.file", "rb"),
265268
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
266269
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
267270
})
268271

269-
if res is not None:
270-
# handle response
271-
pass
272+
assert res is not None
273+
274+
# Handle response
275+
print(res)
272276

273277
```
274278
<!-- End File uploads [file-upload] -->
@@ -289,15 +293,17 @@ with CodatBankFeeds(
289293
auth_header="Basic BASE_64_ENCODED(API_KEY)",
290294
),
291295
) as codat_bank_feeds:
296+
292297
res = codat_bank_feeds.companies.create(request={
293298
"name": "Technicalium",
294299
"description": "Requested early access to the new financing scheme.",
295300
},
296301
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
297302

298-
if res is not None:
299-
# handle response
300-
pass
303+
assert res is not None
304+
305+
# Handle response
306+
print(res)
301307

302308
```
303309

@@ -313,14 +319,16 @@ with CodatBankFeeds(
313319
auth_header="Basic BASE_64_ENCODED(API_KEY)",
314320
),
315321
) as codat_bank_feeds:
322+
316323
res = codat_bank_feeds.companies.create(request={
317324
"name": "Technicalium",
318325
"description": "Requested early access to the new financing scheme.",
319326
})
320327

321-
if res is not None:
322-
# handle response
323-
pass
328+
assert res is not None
329+
330+
# Handle response
331+
print(res)
324332

325333
```
326334
<!-- End Retries [retries] -->
@@ -361,14 +369,16 @@ with CodatBankFeeds(
361369
) as codat_bank_feeds:
362370
res = None
363371
try:
372+
364373
res = codat_bank_feeds.companies.create(request={
365374
"name": "Technicalium",
366375
"description": "Requested early access to the new financing scheme.",
367376
})
368377

369-
if res is not None:
370-
# handle response
371-
pass
378+
assert res is not None
379+
380+
# Handle response
381+
print(res)
372382

373383
except errors.ErrorMessage as e:
374384
# handle e.data: errors.ErrorMessageData
@@ -397,14 +407,16 @@ with CodatBankFeeds(
397407
auth_header="Basic BASE_64_ENCODED(API_KEY)",
398408
),
399409
) as codat_bank_feeds:
410+
400411
res = codat_bank_feeds.companies.create(request={
401412
"name": "Technicalium",
402413
"description": "Requested early access to the new financing scheme.",
403414
})
404415

405-
if res is not None:
406-
# handle response
407-
pass
416+
assert res is not None
417+
418+
# Handle response
419+
print(res)
408420

409421
```
410422
<!-- End Server Selection [server] -->
@@ -515,14 +527,16 @@ with CodatBankFeeds(
515527
auth_header="Basic BASE_64_ENCODED(API_KEY)",
516528
),
517529
) as codat_bank_feeds:
530+
518531
res = codat_bank_feeds.companies.create(request={
519532
"name": "Technicalium",
520533
"description": "Requested early access to the new financing scheme.",
521534
})
522535

523-
if res is not None:
524-
# handle response
525-
pass
536+
assert res is not None
537+
538+
# Handle response
539+
print(res)
526540

527541
```
528542
<!-- End Authentication [security] -->

0 commit comments

Comments
 (0)