Skip to content

Commit

Permalink
Merge pull request #629 from codatio/speakeasy-sdk-regen-1734364659
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 10.0.0
  • Loading branch information
dcoplowe authored Dec 16, 2024
2 parents 9a6393d + 83c05f2 commit ccaee16
Show file tree
Hide file tree
Showing 46 changed files with 1,024 additions and 191 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.453.8
speakeasyVersion: 1.455.5
sources:
accounting-source:
sourceNamespace: accounting-source
Expand All @@ -16,11 +16,11 @@ sources:
- main
bank-feeds-source:
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:9133167d1473dc045331f1cfa81fb00aa3234e2b2b438f6808f576b259a76be8
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
sourceRevisionDigest: sha256:9aaa05521af2d39743759c03b1f419f63c5d9726a66c9b9e448e95a9a53ccf2b
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
tags:
- latest
- speakeasy-sdk-regen-1733825306
- speakeasy-sdk-regen-1734364659
- 3.0.0
banking-source:
sourceNamespace: banking-source
Expand Down Expand Up @@ -111,10 +111,10 @@ targets:
bank-feeds-library:
source: bank-feeds-source
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:9133167d1473dc045331f1cfa81fb00aa3234e2b2b438f6808f576b259a76be8
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
sourceRevisionDigest: sha256:9aaa05521af2d39743759c03b1f419f63c5d9726a66c9b9e448e95a9a53ccf2b
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
codeSamplesNamespace: bank-feeds-source-python-code-samples
codeSamplesRevisionDigest: sha256:213db3e6e8d49d181aa23b48af0e4b8fc917552e39fb8ef2a69edab2eaa52e67
codeSamplesRevisionDigest: sha256:44e2ed21312eba2cf9216de98b7101573e310f02fb8aa33f930d02296c84821f
banking-library:
source: banking-source
sourceNamespace: banking-source
Expand Down
50 changes: 42 additions & 8 deletions bank-feeds/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 07093ad1-99d8-4bbd-a29c-a624e1b0e25a
management:
docChecksum: af010093774a298b2b6a17e641f9cd1b
docChecksum: 66b0b2a05ab126aac947c52e5cee36e3
docVersion: 3.0.0
speakeasyVersion: 1.453.8
generationVersion: 2.474.15
releaseVersion: 9.0.1
configChecksum: 8ec4388e5997c479ecac5ec505c82d48
speakeasyVersion: 1.455.5
generationVersion: 2.479.3
releaseVersion: 10.0.0
configChecksum: ff8ffd8b2ba28524f91955857db0c0a5
repoURL: https://github.com/codatio/client-sdk-python.git
repoSubDirectory: bank-feeds
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=bank-feeds
Expand All @@ -15,7 +15,7 @@ features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.6.11
core: 5.7.2
decimal: 1.0.0
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
Expand Down Expand Up @@ -154,11 +154,15 @@ generatedFiles:
- docs/models/shared/sourceaccount.md
- docs/models/shared/sourceaccountbatchcreateresponse.md
- docs/models/shared/sourceaccountbatcherrorresponse.md
- docs/models/shared/sourceaccountprototype.md
- docs/models/shared/sourceaccountv2.md
- docs/models/shared/sourceaccountv2accounttype.md
- docs/models/shared/sourceaccountv2batchcreateresponse.md
- docs/models/shared/sourceaccountv2prototype.md
- docs/models/shared/sourceaccountv2status.md
- docs/models/shared/sourceaccountwebhook.md
- docs/models/shared/sourceaccountwebhookpayload.md
- docs/models/shared/sourceaccountwebhookpayloadsourceaccount.md
- docs/models/shared/sourcetype.md
- docs/models/shared/status.md
- docs/models/shared/supplementaldata.md
Expand Down Expand Up @@ -235,6 +239,7 @@ generatedFiles:
- src/codat_bankfeeds/models/operations/update_source_account.py
- src/codat_bankfeeds/models/shared/__init__.py
- src/codat_bankfeeds/models/shared/accountinfo.py
- src/codat_bankfeeds/models/shared/accounttype.py
- src/codat_bankfeeds/models/shared/bankaccountcreateresponse.py
- src/codat_bankfeeds/models/shared/bankaccountcredentials.py
- src/codat_bankfeeds/models/shared/bankaccountoption.py
Expand Down Expand Up @@ -291,8 +296,10 @@ generatedFiles:
- src/codat_bankfeeds/models/shared/sourceaccount.py
- src/codat_bankfeeds/models/shared/sourceaccountbatchcreateresponse.py
- src/codat_bankfeeds/models/shared/sourceaccountbatcherrorresponse.py
- src/codat_bankfeeds/models/shared/sourceaccountprototype.py
- src/codat_bankfeeds/models/shared/sourceaccountv2.py
- src/codat_bankfeeds/models/shared/sourceaccountv2batchcreateresponse.py
- src/codat_bankfeeds/models/shared/sourceaccountv2prototype.py
- src/codat_bankfeeds/models/shared/sourceaccountwebhook.py
- src/codat_bankfeeds/models/shared/sourceaccountwebhookpayload.py
- src/codat_bankfeeds/models/shared/syncasbankfeeds.py
Expand Down Expand Up @@ -411,6 +418,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"200":
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}
Expand All @@ -422,6 +430,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"200":
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}
Expand All @@ -432,6 +441,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"200":
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}
Expand All @@ -442,6 +452,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400}
Expand All @@ -452,6 +463,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400}
Expand Down Expand Up @@ -638,7 +650,7 @@ examples:
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
responses:
"200":
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"}]}]
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"}]}]
get-company-information:
Malformed query:
parameters:
Expand All @@ -655,10 +667,32 @@ examples:
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
requestBody:
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"}
application/json: {"accountInfo": {"accountOpenDate": "2022-10-23"}, "currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z"}
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400}
Version 2:
parameters:
path:
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
requestBody:
application/json: {"accountInfo": {"accountOpenDate": "2022-10-23"}, "currency": "USD", "modifiedDate": "2022-10-23T00:00:00Z"}
responses:
"200":
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"}
"400": {}
Version 1:
parameters:
path:
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
requestBody:
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"}
responses:
"200":
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"}
"400": {}
delete-source-account:
Unauthorized:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion bank-feeds/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
python:
version: 9.0.1
version: 10.0.0
additionalDependencies:
dev: {}
main: {}
Expand Down
50 changes: 32 additions & 18 deletions bank-feeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ from codat_bankfeeds.models import shared
from decimal import Decimal

with CodatBankFeeds() as codat_bank_feeds:

codat_bank_feeds.bank_feeds_source_account_connected(request={
"event_type": "bankFeeds.sourceAccount.connected",
"generated_date": "2022-10-23T00:00:00Z",
Expand Down Expand Up @@ -136,6 +137,7 @@ from decimal import Decimal

async def main():
async with CodatBankFeeds() as codat_bank_feeds:

await codat_bank_feeds.bank_feeds_source_account_connected_async(request={
"event_type": "bankFeeds.sourceAccount.connected",
"generated_date": "2022-10-23T00:00:00Z",
Expand Down Expand Up @@ -260,15 +262,17 @@ with CodatBankFeeds(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_bank_feeds:

res = codat_bank_feeds.source_accounts.generate_credentials(request={
"request_body": open("example.file", "rb"),
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End File uploads [file-upload] -->
Expand All @@ -289,15 +293,17 @@ with CodatBankFeeds(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_bank_feeds:

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```

Expand All @@ -313,14 +319,16 @@ with CodatBankFeeds(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_bank_feeds:

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Retries [retries] -->
Expand Down Expand Up @@ -361,14 +369,16 @@ with CodatBankFeeds(
) as codat_bank_feeds:
res = None
try:

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
Expand Down Expand Up @@ -397,14 +407,16 @@ with CodatBankFeeds(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_bank_feeds:

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Server Selection [server] -->
Expand Down Expand Up @@ -515,14 +527,16 @@ with CodatBankFeeds(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_bank_feeds:

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Authentication [security] -->
Expand Down
Loading

0 comments on commit ccaee16

Please sign in to comment.