From 43213f0159cb3dcbfe67b4588e2a97377c645294 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 15 Dec 2023 12:56:07 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.126.3 --- lending/RELEASES.md | 12 +++++++++++- .../docs/models/operations/uploadfilesrequest.md | 10 +++++----- .../codatfile.md} | 2 +- lending/docs/models/shared/fileupload.md | 8 ++++++++ lending/docs/sdks/fileupload/README.md | 8 +++++--- lending/files.gen | 5 ++++- lending/gen.yaml | 4 ++-- lending/setup.py | 2 +- lending/src/codatlending/file_upload.py | 2 +- .../src/codatlending/models/operations/__init__.py | 2 +- .../codatlending/models/operations/upload_files.py | 11 ++--------- lending/src/codatlending/models/shared/__init__.py | 4 +++- lending/src/codatlending/models/shared/codatfile.py | 12 ++++++++++++ .../src/codatlending/models/shared/fileupload.py | 13 +++++++++++++ lending/src/codatlending/sdkconfiguration.py | 4 ++-- 15 files changed, 71 insertions(+), 28 deletions(-) rename lending/docs/models/{operations/uploadfilesrequestbody.md => shared/codatfile.md} (93%) create mode 100644 lending/docs/models/shared/fileupload.md create mode 100644 lending/src/codatlending/models/shared/codatfile.py create mode 100644 lending/src/codatlending/models/shared/fileupload.py diff --git a/lending/RELEASES.md b/lending/RELEASES.md index 975546218..da80b46b2 100644 --- a/lending/RELEASES.md +++ b/lending/RELEASES.md @@ -78,4 +78,14 @@ Based on: ### Generated - [python v6.1.0] lending ### Releases -- [PyPI v6.1.0] https://pypi.org/project/codat-lending/6.1.0 - lending \ No newline at end of file +- [PyPI v6.1.0] https://pypi.org/project/codat-lending/6.1.0 - lending + +## 2023-12-15 12:55:37 +### Changes +Based on: +- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml +- Speakeasy CLI 1.126.3 (2.214.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v6.2.0] lending +### Releases +- [PyPI v6.2.0] https://pypi.org/project/codat-lending/6.2.0 - lending \ No newline at end of file diff --git a/lending/docs/models/operations/uploadfilesrequest.md b/lending/docs/models/operations/uploadfilesrequest.md index 2749893c3..25d9d2834 100644 --- a/lending/docs/models/operations/uploadfilesrequest.md +++ b/lending/docs/models/operations/uploadfilesrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `request_body` | [Optional[operations.UploadFilesRequestBody]](../../models/operations/uploadfilesrequestbody.md) | :heavy_minus_sign: | N/A | | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `file_upload` | [Optional[shared.FileUpload]](../../models/shared/fileupload.md) | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/lending/docs/models/operations/uploadfilesrequestbody.md b/lending/docs/models/shared/codatfile.md similarity index 93% rename from lending/docs/models/operations/uploadfilesrequestbody.md rename to lending/docs/models/shared/codatfile.md index d23e6a3e5..5ff354d51 100644 --- a/lending/docs/models/operations/uploadfilesrequestbody.md +++ b/lending/docs/models/shared/codatfile.md @@ -1,4 +1,4 @@ -# UploadFilesRequestBody +# CodatFile ## Fields diff --git a/lending/docs/models/shared/fileupload.md b/lending/docs/models/shared/fileupload.md new file mode 100644 index 000000000..b033035b5 --- /dev/null +++ b/lending/docs/models/shared/fileupload.md @@ -0,0 +1,8 @@ +# FileUpload + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `file` | [shared.CodatFile](../../models/shared/codatfile.md) | :heavy_check_mark: | The file to be uploaded as an attachment. | \ No newline at end of file diff --git a/lending/docs/sdks/fileupload/README.md b/lending/docs/sdks/fileupload/README.md index 51fc5f772..8b5a27cc8 100644 --- a/lending/docs/sdks/fileupload/README.md +++ b/lending/docs/sdks/fileupload/README.md @@ -125,9 +125,11 @@ s = codatlending.CodatLending( ) req = operations.UploadFilesRequest( - request_body=operations.UploadFilesRequestBody( - content='0x87cbca97eC'.encode(), - file_name='ullam.wav', + file_upload=shared.FileUpload( + file=shared.CodatFile( + content='0x87cbca97eC'.encode(), + file_name='ullam.wav', + ), ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', diff --git a/lending/files.gen b/lending/files.gen index c24ae07c4..85fd08deb 100755 --- a/lending/files.gen +++ b/lending/files.gen @@ -394,6 +394,8 @@ src/codatlending/models/shared/agedoutstandingamountdetail.py src/codatlending/models/shared/accountingageddebtorreport.py src/codatlending/models/shared/ageddebtor.py src/codatlending/models/shared/file.py +src/codatlending/models/shared/fileupload.py +src/codatlending/models/shared/codatfile.py src/codatlending/models/shared/accountingcreatebankaccountresponse.py src/codatlending/models/shared/validation.py src/codatlending/models/shared/validationitem.py @@ -686,7 +688,6 @@ docs/models/operations/downloadfilesrequest.md docs/models/operations/downloadfilesresponse.md docs/models/operations/listfilesrequest.md docs/models/operations/listfilesresponse.md -docs/models/operations/uploadfilesrequestbody.md docs/models/operations/uploadfilesrequest.md docs/models/operations/uploadfilesresponse.md docs/models/operations/createbankaccountrequest.md @@ -970,6 +971,8 @@ docs/models/shared/agedoutstandingamountdetail.md docs/models/shared/accountingageddebtorreport.md docs/models/shared/ageddebtor.md docs/models/shared/file.md +docs/models/shared/fileupload.md +docs/models/shared/codatfile.md docs/models/shared/accountingcreatebankaccountresponse.md docs/models/shared/validation.md docs/models/shared/validationitem.md diff --git a/lending/gen.yaml b/lending/gen.yaml index 3caee03bc..49975b101 100644 --- a/lending/gen.yaml +++ b/lending/gen.yaml @@ -1,6 +1,6 @@ configVersion: 1.0.0 management: - docChecksum: 6a74810fd57eea3cc5941ff18d1a2430 + docChecksum: 7cb8227cc55b72607e39c0387a4f6937 docVersion: 3.0.0 speakeasyVersion: 1.126.3 generationVersion: 2.214.3 @@ -24,7 +24,7 @@ features: nameOverrides: 2.81.1 retries: 2.82.0 python: - version: 6.1.0 + version: 6.2.0 author: Codat clientServerStatusCodesAsErrors: true description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features. diff --git a/lending/setup.py b/lending/setup.py index 2e444132a..c8be7994e 100644 --- a/lending/setup.py +++ b/lending/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="codat-lending", - version="6.1.0", + version="6.2.0", author="Codat", description="Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.", long_description=long_description, diff --git a/lending/src/codatlending/file_upload.py b/lending/src/codatlending/file_upload.py index 8861f2641..0b9d3eff3 100644 --- a/lending/src/codatlending/file_upload.py +++ b/lending/src/codatlending/file_upload.py @@ -148,7 +148,7 @@ def upload(self, request: operations.UploadFilesRequest, retries: Optional[utils url = utils.generate_url(operations.UploadFilesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/files', request) headers = {} - req_content_type, data, form = utils.serialize_request_body(request, operations.UploadFilesRequest, "request_body", False, True, 'multipart') + req_content_type, data, form = utils.serialize_request_body(request, operations.UploadFilesRequest, "file_upload", False, True, 'multipart') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' diff --git a/lending/src/codatlending/models/operations/__init__.py b/lending/src/codatlending/models/operations/__init__.py index 5eae63865..03f20fcaa 100644 --- a/lending/src/codatlending/models/operations/__init__.py +++ b/lending/src/codatlending/models/operations/__init__.py @@ -140,4 +140,4 @@ from .update_company import * from .upload_files import * -__all__ = ["CreateAccountRequest","CreateAccountResponse","CreateBankAccountRequest","CreateBankAccountResponse","CreateBankTransactionsRequest","CreateBankTransactionsResponse","CreateCompanyResponse","CreateConnectionRequest","CreateConnectionRequestBody","CreateConnectionResponse","CreateDirectCostRequest","CreateDirectCostResponse","CreatePaymentRequest","CreatePaymentResponse","CreateSupplierRequest","CreateSupplierResponse","CreateTransferRequest","CreateTransferResponse","DeleteCompanyRequest","DeleteCompanyResponse","DeleteConnectionRequest","DeleteConnectionResponse","DownloadAccountingBillAttachmentRequest","DownloadAccountingBillAttachmentResponse","DownloadAccountingCustomerAttachmentRequest","DownloadAccountingCustomerAttachmentResponse","DownloadAccountingDirectCostAttachmentRequest","DownloadAccountingDirectCostAttachmentResponse","DownloadAccountingDirectIncomeAttachmentRequest","DownloadAccountingDirectIncomeAttachmentResponse","DownloadAccountingInvoiceAttachmentRequest","DownloadAccountingInvoiceAttachmentResponse","DownloadAccountingInvoicePdfRequest","DownloadAccountingInvoicePdfResponse","DownloadAccountingSupplierAttachmentRequest","DownloadAccountingSupplierAttachmentResponse","DownloadExcelReportRequest","DownloadExcelReportResponse","DownloadFilesRequest","DownloadFilesResponse","GenerateExcelReportRequest","GenerateExcelReportResponse","GenerateLoanSummaryRequest","GenerateLoanSummaryResponse","GenerateLoanTransactionsRequest","GenerateLoanTransactionsResponse","GetAccountingAccountRequest","GetAccountingAccountResponse","GetAccountingAccountTransactionRequest","GetAccountingAccountTransactionResponse","GetAccountingAgedCreditorsReportRequest","GetAccountingAgedCreditorsReportResponse","GetAccountingAgedDebtorsReportRequest","GetAccountingAgedDebtorsReportResponse","GetAccountingBalanceSheetRequest","GetAccountingBalanceSheetResponse","GetAccountingBankAccountRequest","GetAccountingBankAccountResponse","GetAccountingBillAttachmentRequest","GetAccountingBillAttachmentResponse","GetAccountingBillCreditNoteRequest","GetAccountingBillCreditNoteResponse","GetAccountingBillPaymentRequest","GetAccountingBillPaymentResponse","GetAccountingBillRequest","GetAccountingBillResponse","GetAccountingCashFlowStatementRequest","GetAccountingCashFlowStatementResponse","GetAccountingCreditNoteRequest","GetAccountingCreditNoteResponse","GetAccountingCustomerAttachmentRequest","GetAccountingCustomerAttachmentResponse","GetAccountingCustomerRequest","GetAccountingCustomerResponse","GetAccountingDirectCostAttachmentRequest","GetAccountingDirectCostAttachmentResponse","GetAccountingDirectCostRequest","GetAccountingDirectCostResponse","GetAccountingDirectIncomeAttachmentRequest","GetAccountingDirectIncomeAttachmentResponse","GetAccountingDirectIncomeRequest","GetAccountingDirectIncomeResponse","GetAccountingInvoiceAttachmentRequest","GetAccountingInvoiceAttachmentResponse","GetAccountingInvoiceRequest","GetAccountingInvoiceResponse","GetAccountingJournalEntryRequest","GetAccountingJournalEntryResponse","GetAccountingJournalRequest","GetAccountingJournalResponse","GetAccountingPaymentRequest","GetAccountingPaymentResponse","GetAccountingProfileRequest","GetAccountingProfileResponse","GetAccountingProfitAndLossRequest","GetAccountingProfitAndLossResponse","GetAccountingSupplierAttachmentRequest","GetAccountingSupplierAttachmentResponse","GetAccountingSupplierRequest","GetAccountingSupplierResponse","GetAccountingTransferRequest","GetAccountingTransferResponse","GetBankingAccountRequest","GetBankingAccountResponse","GetBankingTransactionCategoryRequest","GetBankingTransactionCategoryResponse","GetBankingTransactionRequest","GetBankingTransactionResponse","GetCategorizedBalanceSheetStatementRequest","GetCategorizedBalanceSheetStatementResponse","GetCategorizedBankStatementRequest","GetCategorizedBankStatementResponse","GetCategorizedProfitAndLossStatementRequest","GetCategorizedProfitAndLossStatementResponse","GetCommerceCustomerRequest","GetCommerceCustomerResponse","GetCommerceCustomerRetentionMetricsRequest","GetCommerceCustomerRetentionMetricsResponse","GetCommerceDisputeRequest","GetCommerceDisputeResponse","GetCommerceLifetimeValueMetricsRequest","GetCommerceLifetimeValueMetricsResponse","GetCommerceLocationRequest","GetCommerceLocationResponse","GetCommerceOrderRequest","GetCommerceOrderResponse","GetCommerceOrdersReportRequest","GetCommerceOrdersReportResponse","GetCommercePaymentMethodRequest","GetCommercePaymentMethodResponse","GetCommercePaymentRequest","GetCommercePaymentResponse","GetCommerceProductCategoryRequest","GetCommerceProductCategoryResponse","GetCommerceProductRequest","GetCommerceProductResponse","GetCommerceProfileRequest","GetCommerceProfileResponse","GetCommerceRefundsReportRequest","GetCommerceRefundsReportResponse","GetCommerceRevenueMetricsRequest","GetCommerceRevenueMetricsResponse","GetCommerceTransactionRequest","GetCommerceTransactionResponse","GetCompanyRequest","GetCompanyResponse","GetConnectionRequest","GetConnectionResponse","GetCreateBankTransactionsModelRequest","GetCreateBankTransactionsModelResponse","GetCreateChartOfAccountsModelRequest","GetCreateChartOfAccountsModelResponse","GetCreateDirectCostsModelRequest","GetCreateDirectCostsModelResponse","GetCreateOperationRequest","GetCreateOperationResponse","GetCreatePaymentModelRequest","GetCreatePaymentModelResponse","GetCreateTransfersModelRequest","GetCreateTransfersModelResponse","GetCreateUpdateBankAccountsModelRequest","GetCreateUpdateBankAccountsModelResponse","GetCreateUpdateSuppliersModelRequest","GetCreateUpdateSuppliersModelResponse","GetDataIntegrityStatusRequest","GetDataIntegrityStatusResponse","GetDataIntegritySummariesRequest","GetDataIntegritySummariesResponse","GetDataStatusRequest","GetDataStatusResponse","GetExcelReportGenerationStatusRequest","GetExcelReportGenerationStatusResponse","GetLoanSummaryQueryParamSourceType","GetLoanSummaryRequest","GetLoanSummaryResponse","GetPullOperationRequest","GetPullOperationResponse","IsAgedCreditorsReportAvailableRequest","IsAgedCreditorsReportAvailableResponse","IsAgedDebtorsReportAvailableRequest","IsAgedDebtorsReportAvailableResponse","ListAccountingAccountTransactionsRequest","ListAccountingAccountTransactionsResponse","ListAccountingAccountsRequest","ListAccountingAccountsResponse","ListAccountingBankAccountTransactionsRequest","ListAccountingBankAccountTransactionsResponse","ListAccountingBankAccountsRequest","ListAccountingBankAccountsResponse","ListAccountingBillAttachmentsRequest","ListAccountingBillAttachmentsResponse","ListAccountingBillCreditNotesRequest","ListAccountingBillCreditNotesResponse","ListAccountingBillPaymentsRequest","ListAccountingBillPaymentsResponse","ListAccountingBillsRequest","ListAccountingBillsResponse","ListAccountingCreditNotesRequest","ListAccountingCreditNotesResponse","ListAccountingCustomerAttachmentsRequest","ListAccountingCustomerAttachmentsResponse","ListAccountingCustomersRequest","ListAccountingCustomersResponse","ListAccountingDirectCostAttachmentsRequest","ListAccountingDirectCostAttachmentsResponse","ListAccountingDirectCostsRequest","ListAccountingDirectCostsResponse","ListAccountingDirectIncomeAttachmentsRequest","ListAccountingDirectIncomeAttachmentsResponse","ListAccountingDirectIncomesRequest","ListAccountingDirectIncomesResponse","ListAccountingInvoiceAttachmentsRequest","ListAccountingInvoiceAttachmentsResponse","ListAccountingInvoicesRequest","ListAccountingInvoicesResponse","ListAccountingJournalEntriesRequest","ListAccountingJournalEntriesResponse","ListAccountingJournalsRequest","ListAccountingJournalsResponse","ListAccountingPaymentsRequest","ListAccountingPaymentsResponse","ListAccountingSupplierAttachmentsRequest","ListAccountingSupplierAttachmentsResponse","ListAccountingSuppliersRequest","ListAccountingSuppliersResponse","ListAccountingTransfersRequest","ListAccountingTransfersResponse","ListBankingAccountBalancesRequest","ListBankingAccountBalancesResponse","ListBankingAccountsRequest","ListBankingAccountsResponse","ListBankingTransactionCategoriesRequest","ListBankingTransactionCategoriesResponse","ListBankingTransactionsRequest","ListBankingTransactionsResponse","ListCommerceCustomersRequest","ListCommerceCustomersResponse","ListCommerceDisputesRequest","ListCommerceDisputesResponse","ListCommerceLocationsRequest","ListCommerceLocationsResponse","ListCommerceOrdersRequest","ListCommerceOrdersResponse","ListCommercePaymentMethodsRequest","ListCommercePaymentMethodsResponse","ListCommercePaymentsRequest","ListCommercePaymentsResponse","ListCommerceProductCategoriesRequest","ListCommerceProductCategoriesResponse","ListCommerceProductsRequest","ListCommerceProductsResponse","ListCommerceTransactionsRequest","ListCommerceTransactionsResponse","ListCompaniesRequest","ListCompaniesResponse","ListConnectionsRequest","ListConnectionsResponse","ListCreateOperationsRequest","ListCreateOperationsResponse","ListDataIntegrityDetailsRequest","ListDataIntegrityDetailsResponse","ListFilesRequest","ListFilesResponse","ListLoanTransactionsQueryParamSourceType","ListLoanTransactionsRequest","ListLoanTransactionsResponse","ListPullOperationsRequest","ListPullOperationsResponse","ListReconciledInvoicesRequest","ListReconciledInvoicesResponse","QueryParamSourceType","RefreshAllDataTypesRequest","RefreshAllDataTypesResponse","RefreshDataTypeRequest","RefreshDataTypeResponse","SourceType","UnlinkConnectionRequest","UnlinkConnectionResponse","UnlinkConnectionUpdateConnection","UpdateCompanyRequest","UpdateCompanyResponse","UploadFilesRequest","UploadFilesRequestBody","UploadFilesResponse"] +__all__ = ["CreateAccountRequest","CreateAccountResponse","CreateBankAccountRequest","CreateBankAccountResponse","CreateBankTransactionsRequest","CreateBankTransactionsResponse","CreateCompanyResponse","CreateConnectionRequest","CreateConnectionRequestBody","CreateConnectionResponse","CreateDirectCostRequest","CreateDirectCostResponse","CreatePaymentRequest","CreatePaymentResponse","CreateSupplierRequest","CreateSupplierResponse","CreateTransferRequest","CreateTransferResponse","DeleteCompanyRequest","DeleteCompanyResponse","DeleteConnectionRequest","DeleteConnectionResponse","DownloadAccountingBillAttachmentRequest","DownloadAccountingBillAttachmentResponse","DownloadAccountingCustomerAttachmentRequest","DownloadAccountingCustomerAttachmentResponse","DownloadAccountingDirectCostAttachmentRequest","DownloadAccountingDirectCostAttachmentResponse","DownloadAccountingDirectIncomeAttachmentRequest","DownloadAccountingDirectIncomeAttachmentResponse","DownloadAccountingInvoiceAttachmentRequest","DownloadAccountingInvoiceAttachmentResponse","DownloadAccountingInvoicePdfRequest","DownloadAccountingInvoicePdfResponse","DownloadAccountingSupplierAttachmentRequest","DownloadAccountingSupplierAttachmentResponse","DownloadExcelReportRequest","DownloadExcelReportResponse","DownloadFilesRequest","DownloadFilesResponse","GenerateExcelReportRequest","GenerateExcelReportResponse","GenerateLoanSummaryRequest","GenerateLoanSummaryResponse","GenerateLoanTransactionsRequest","GenerateLoanTransactionsResponse","GetAccountingAccountRequest","GetAccountingAccountResponse","GetAccountingAccountTransactionRequest","GetAccountingAccountTransactionResponse","GetAccountingAgedCreditorsReportRequest","GetAccountingAgedCreditorsReportResponse","GetAccountingAgedDebtorsReportRequest","GetAccountingAgedDebtorsReportResponse","GetAccountingBalanceSheetRequest","GetAccountingBalanceSheetResponse","GetAccountingBankAccountRequest","GetAccountingBankAccountResponse","GetAccountingBillAttachmentRequest","GetAccountingBillAttachmentResponse","GetAccountingBillCreditNoteRequest","GetAccountingBillCreditNoteResponse","GetAccountingBillPaymentRequest","GetAccountingBillPaymentResponse","GetAccountingBillRequest","GetAccountingBillResponse","GetAccountingCashFlowStatementRequest","GetAccountingCashFlowStatementResponse","GetAccountingCreditNoteRequest","GetAccountingCreditNoteResponse","GetAccountingCustomerAttachmentRequest","GetAccountingCustomerAttachmentResponse","GetAccountingCustomerRequest","GetAccountingCustomerResponse","GetAccountingDirectCostAttachmentRequest","GetAccountingDirectCostAttachmentResponse","GetAccountingDirectCostRequest","GetAccountingDirectCostResponse","GetAccountingDirectIncomeAttachmentRequest","GetAccountingDirectIncomeAttachmentResponse","GetAccountingDirectIncomeRequest","GetAccountingDirectIncomeResponse","GetAccountingInvoiceAttachmentRequest","GetAccountingInvoiceAttachmentResponse","GetAccountingInvoiceRequest","GetAccountingInvoiceResponse","GetAccountingJournalEntryRequest","GetAccountingJournalEntryResponse","GetAccountingJournalRequest","GetAccountingJournalResponse","GetAccountingPaymentRequest","GetAccountingPaymentResponse","GetAccountingProfileRequest","GetAccountingProfileResponse","GetAccountingProfitAndLossRequest","GetAccountingProfitAndLossResponse","GetAccountingSupplierAttachmentRequest","GetAccountingSupplierAttachmentResponse","GetAccountingSupplierRequest","GetAccountingSupplierResponse","GetAccountingTransferRequest","GetAccountingTransferResponse","GetBankingAccountRequest","GetBankingAccountResponse","GetBankingTransactionCategoryRequest","GetBankingTransactionCategoryResponse","GetBankingTransactionRequest","GetBankingTransactionResponse","GetCategorizedBalanceSheetStatementRequest","GetCategorizedBalanceSheetStatementResponse","GetCategorizedBankStatementRequest","GetCategorizedBankStatementResponse","GetCategorizedProfitAndLossStatementRequest","GetCategorizedProfitAndLossStatementResponse","GetCommerceCustomerRequest","GetCommerceCustomerResponse","GetCommerceCustomerRetentionMetricsRequest","GetCommerceCustomerRetentionMetricsResponse","GetCommerceDisputeRequest","GetCommerceDisputeResponse","GetCommerceLifetimeValueMetricsRequest","GetCommerceLifetimeValueMetricsResponse","GetCommerceLocationRequest","GetCommerceLocationResponse","GetCommerceOrderRequest","GetCommerceOrderResponse","GetCommerceOrdersReportRequest","GetCommerceOrdersReportResponse","GetCommercePaymentMethodRequest","GetCommercePaymentMethodResponse","GetCommercePaymentRequest","GetCommercePaymentResponse","GetCommerceProductCategoryRequest","GetCommerceProductCategoryResponse","GetCommerceProductRequest","GetCommerceProductResponse","GetCommerceProfileRequest","GetCommerceProfileResponse","GetCommerceRefundsReportRequest","GetCommerceRefundsReportResponse","GetCommerceRevenueMetricsRequest","GetCommerceRevenueMetricsResponse","GetCommerceTransactionRequest","GetCommerceTransactionResponse","GetCompanyRequest","GetCompanyResponse","GetConnectionRequest","GetConnectionResponse","GetCreateBankTransactionsModelRequest","GetCreateBankTransactionsModelResponse","GetCreateChartOfAccountsModelRequest","GetCreateChartOfAccountsModelResponse","GetCreateDirectCostsModelRequest","GetCreateDirectCostsModelResponse","GetCreateOperationRequest","GetCreateOperationResponse","GetCreatePaymentModelRequest","GetCreatePaymentModelResponse","GetCreateTransfersModelRequest","GetCreateTransfersModelResponse","GetCreateUpdateBankAccountsModelRequest","GetCreateUpdateBankAccountsModelResponse","GetCreateUpdateSuppliersModelRequest","GetCreateUpdateSuppliersModelResponse","GetDataIntegrityStatusRequest","GetDataIntegrityStatusResponse","GetDataIntegritySummariesRequest","GetDataIntegritySummariesResponse","GetDataStatusRequest","GetDataStatusResponse","GetExcelReportGenerationStatusRequest","GetExcelReportGenerationStatusResponse","GetLoanSummaryQueryParamSourceType","GetLoanSummaryRequest","GetLoanSummaryResponse","GetPullOperationRequest","GetPullOperationResponse","IsAgedCreditorsReportAvailableRequest","IsAgedCreditorsReportAvailableResponse","IsAgedDebtorsReportAvailableRequest","IsAgedDebtorsReportAvailableResponse","ListAccountingAccountTransactionsRequest","ListAccountingAccountTransactionsResponse","ListAccountingAccountsRequest","ListAccountingAccountsResponse","ListAccountingBankAccountTransactionsRequest","ListAccountingBankAccountTransactionsResponse","ListAccountingBankAccountsRequest","ListAccountingBankAccountsResponse","ListAccountingBillAttachmentsRequest","ListAccountingBillAttachmentsResponse","ListAccountingBillCreditNotesRequest","ListAccountingBillCreditNotesResponse","ListAccountingBillPaymentsRequest","ListAccountingBillPaymentsResponse","ListAccountingBillsRequest","ListAccountingBillsResponse","ListAccountingCreditNotesRequest","ListAccountingCreditNotesResponse","ListAccountingCustomerAttachmentsRequest","ListAccountingCustomerAttachmentsResponse","ListAccountingCustomersRequest","ListAccountingCustomersResponse","ListAccountingDirectCostAttachmentsRequest","ListAccountingDirectCostAttachmentsResponse","ListAccountingDirectCostsRequest","ListAccountingDirectCostsResponse","ListAccountingDirectIncomeAttachmentsRequest","ListAccountingDirectIncomeAttachmentsResponse","ListAccountingDirectIncomesRequest","ListAccountingDirectIncomesResponse","ListAccountingInvoiceAttachmentsRequest","ListAccountingInvoiceAttachmentsResponse","ListAccountingInvoicesRequest","ListAccountingInvoicesResponse","ListAccountingJournalEntriesRequest","ListAccountingJournalEntriesResponse","ListAccountingJournalsRequest","ListAccountingJournalsResponse","ListAccountingPaymentsRequest","ListAccountingPaymentsResponse","ListAccountingSupplierAttachmentsRequest","ListAccountingSupplierAttachmentsResponse","ListAccountingSuppliersRequest","ListAccountingSuppliersResponse","ListAccountingTransfersRequest","ListAccountingTransfersResponse","ListBankingAccountBalancesRequest","ListBankingAccountBalancesResponse","ListBankingAccountsRequest","ListBankingAccountsResponse","ListBankingTransactionCategoriesRequest","ListBankingTransactionCategoriesResponse","ListBankingTransactionsRequest","ListBankingTransactionsResponse","ListCommerceCustomersRequest","ListCommerceCustomersResponse","ListCommerceDisputesRequest","ListCommerceDisputesResponse","ListCommerceLocationsRequest","ListCommerceLocationsResponse","ListCommerceOrdersRequest","ListCommerceOrdersResponse","ListCommercePaymentMethodsRequest","ListCommercePaymentMethodsResponse","ListCommercePaymentsRequest","ListCommercePaymentsResponse","ListCommerceProductCategoriesRequest","ListCommerceProductCategoriesResponse","ListCommerceProductsRequest","ListCommerceProductsResponse","ListCommerceTransactionsRequest","ListCommerceTransactionsResponse","ListCompaniesRequest","ListCompaniesResponse","ListConnectionsRequest","ListConnectionsResponse","ListCreateOperationsRequest","ListCreateOperationsResponse","ListDataIntegrityDetailsRequest","ListDataIntegrityDetailsResponse","ListFilesRequest","ListFilesResponse","ListLoanTransactionsQueryParamSourceType","ListLoanTransactionsRequest","ListLoanTransactionsResponse","ListPullOperationsRequest","ListPullOperationsResponse","ListReconciledInvoicesRequest","ListReconciledInvoicesResponse","QueryParamSourceType","RefreshAllDataTypesRequest","RefreshAllDataTypesResponse","RefreshDataTypeRequest","RefreshDataTypeResponse","SourceType","UnlinkConnectionRequest","UnlinkConnectionResponse","UnlinkConnectionUpdateConnection","UpdateCompanyRequest","UpdateCompanyResponse","UploadFilesRequest","UploadFilesResponse"] diff --git a/lending/src/codatlending/models/operations/upload_files.py b/lending/src/codatlending/models/operations/upload_files.py index db30e5329..2e8fbc416 100644 --- a/lending/src/codatlending/models/operations/upload_files.py +++ b/lending/src/codatlending/models/operations/upload_files.py @@ -3,24 +3,17 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ...models.shared import fileupload as shared_fileupload from typing import Optional -@dataclasses.dataclass -class UploadFilesRequestBody: - content: bytes = dataclasses.field(metadata={'multipart_form': { 'content': True }}) - file_name: str = dataclasses.field(metadata={'multipart_form': { 'field_name': 'fileName' }}) - - - - @dataclasses.dataclass class UploadFilesRequest: company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }}) r"""Unique identifier for a company.""" connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }}) r"""Unique identifier for a connection.""" - request_body: Optional[UploadFilesRequestBody] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }, 'request': { 'media_type': 'multipart/form-data' }}) + file_upload: Optional[shared_fileupload.FileUpload] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'multipart/form-data' }}) diff --git a/lending/src/codatlending/models/shared/__init__.py b/lending/src/codatlending/models/shared/__init__.py index aa400acd7..890946525 100644 --- a/lending/src/codatlending/models/shared/__init__.py +++ b/lending/src/codatlending/models/shared/__init__.py @@ -102,6 +102,7 @@ from .clientratelimitreachedwebhookdata import * from .clientratelimitresetwebhook import * from .clientratelimitresetwebhookdata import * +from .codatfile import * from .commerceaddress import * from .commerceaddresstype import * from .commercecompanyinfo import * @@ -175,6 +176,7 @@ from .excelreporttypes import * from .excelstatus import * from .file import * +from .fileupload import * from .halref import * from .integritystatus import * from .invoicelineitem import * @@ -268,4 +270,4 @@ from .validationitem import * from .weblink import * -__all__ = ["AccountBalance","AccountBalanceAmounts","AccountCategoriesUpdatedWebhook","AccountCategoriesUpdatedWebhookData","AccountCategoryLevel","AccountIdentifierType","AccountIdentifiers","AccountInstitution","AccountPrototype","AccountRef","AccountStatus","AccountTransactionLine","AccountType","AccountingAccount","AccountingAccountTransaction","AccountingAccountTransactions","AccountingAccountValidDataTypeLinks","AccountingAccounts","AccountingAddress","AccountingAddressType","AccountingAgedCreditorReport","AccountingAgedDebtorReport","AccountingAttachment","AccountingBalanceSheet","AccountingBankAccount","AccountingBankAccountType","AccountingBankAccounts","AccountingBankTransaction","AccountingBankTransactions","AccountingBill","AccountingBillCreditNote","AccountingBillCreditNotes","AccountingBillPayment","AccountingBillPayments","AccountingBills","AccountingCashFlowStatement","AccountingCompanyInfo","AccountingCreateAccountResponse","AccountingCreateBankAccountResponse","AccountingCreateBankTransactions","AccountingCreateBankTransactionsResponse","AccountingCreateDirectCostResponse","AccountingCreatePaymentResponse","AccountingCreateSupplierResponse","AccountingCreateTransferResponse","AccountingCreditNote","AccountingCreditNotes","AccountingCustomer","AccountingCustomerRef","AccountingCustomers","AccountingDirectCost","AccountingDirectCostContactRef","AccountingDirectCosts","AccountingDirectIncome","AccountingDirectIncomes","AccountingInvoice","AccountingInvoices","AccountingJournal","AccountingJournalEntries","AccountingJournalEntry","AccountingJournals","AccountingPayment","AccountingPaymentAllocation","AccountingPayments","AccountingProfitAndLossReport","AccountingSupplier","AccountingSuppliers","AccountingTransfer","AccountingTransfers","Accounts","AccountsPayableTracking","AccountsReceivableTracking","AgedCreditor","AgedCurrencyOutstanding","AgedDebtor","AgedOutstandingAmount","AgedOutstandingAmountDetail","Allocation","Attachments","BalanceSheet","BankAccountRef","BankTransactionType","BankingAccount","BankingAccountBalance","BankingAccountBalances","BankingAccounts","BankingTransaction","BankingTransactionCategories","BankingTransactionCategory","BankingTransactionRef","BankingTransactions","BillCreditNoteLineItem","BillCreditNoteStatus","BillLineItem","BillLineItemDataType","BillPaymentLine","BillPaymentLineLink","BillPaymentLineLinkType","BillStatus","BilledToType","BilledToType1","CashFlowStatement","ClientRateLimitReachedWebhook","ClientRateLimitReachedWebhookData","ClientRateLimitResetWebhook","ClientRateLimitResetWebhookData","CommerceAddress","CommerceAddressType","CommerceCompanyInfo","CommerceCustomer","CommerceCustomerRef","CommerceCustomers","CommerceDispute","CommerceDisputes","CommerceLocation","CommerceLocations","CommerceOrder","CommerceOrders","CommercePayment","CommercePaymentMethod","CommercePaymentMethodStatus","CommercePaymentMethods","CommercePayments","CommerceProduct","CommerceProductCategories","CommerceProductCategory","CommerceProducts","CommerceRecordRef","CommerceReport","CommerceReportComponent","CommerceReportDimension","CommerceReportDimensionItems","CommerceReportError","CommerceReportMeasure","CommerceTransaction","CommerceTransactions","Companies","Company","CompanyRequestBody","Connection","Connections","Contact","ContactRef","CreateBankAccountTransaction","CreditNoteLineItem","CreditNoteStatus","CustomerStatus","DataConnectionError","DataConnectionStatus","DataIntegrityAmounts","DataIntegrityByAmount","DataIntegrityByCount","DataIntegrityConnectionID","DataIntegrityDataType","DataIntegrityDates","DataIntegrityDetail","DataIntegrityDetails","DataIntegrityMatch","DataIntegrityStatus","DataIntegrityStatusInfo","DataIntegrityStatuses","DataIntegritySummaries","DataIntegritySummary","DataSource","DataStatus","DataType","DataTypes","DirectCostLineItem","DirectCostPrototype","DirectCostPrototypeContactRef","DirectIncomeLineItem","DisputeStatus","EnhancedCashFlowItem","EnhancedCashFlowTransaction","EnhancedCashFlowTransactions","EnhancedFinancialReport","EnhancedInvoiceReportItem","EnhancedInvoicesReport","EnhancedReportAccountCategory","EnhancedReportInfo","ExcelReportTypes","ExcelStatus","File","HalRef","IntegrityStatus","InvoiceLineItem","InvoiceStatus","ItemRef","ItemReference","Items","JournalLine","JournalLineTracking","JournalRef","JournalStatus","LendingCustomerRef","Links","LoanRef","LoanSummary","LoanSummaryIntegrationType","LoanSummaryRecordRef","LoanSummaryRecordRefType","LoanSummaryReportInfo","LoanSummaryReportItem","LoanTransactionType","LoanTransactions","LoanTransactionsReportInfo","LocationRef","Metadata","OrderDiscountAllocation","OrderLineItem","Payment","PaymentAllocationPayment","PaymentLine","PaymentLineLink","PaymentLinkType","PaymentMethodRef","PaymentRef","PaymentStatus","PaymentType","PeriodUnit","PhoneNumber","PhoneNumberType","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","ProfitAndLossReport","ProjectRef","PropertieItemRef","PullOperation","PullOperationStatus","PullOperations","PurchaseOrderReference","PushChangeType","PushFieldValidation","PushOperation","PushOperationChange","PushOperationRef","PushOperationStatus","PushOperations","PushOption","PushOptionChoice","PushOptionProperty","PushOptionType","PushValidationInfo","RecordLineReference","RecordRef","RecordReference","ReportBasis","ReportComponentMeasure","ReportInfo","ReportInput","ReportItem","ReportItems","ReportLine","ReportLineInput","SalesOrderReference","SchemaDataType","Security","ServiceCharge","ServiceChargeType","SourceRef","SourceType","Status","SupplementalData","SupplierRef","SupplierStatus","TaxComponentAllocation","TaxComponentRef","TaxRateRef","TaxRateReference","Tracking","TrackingCategoryRef","TransactionCategory","TransactionCategoryRef","TransactionCategoryStatus","TransactionCode","TransactionSourceRef","TransactionSourceType","TransactionType","TransferAccount","Type","ValidDataTypeLinks","Validation","ValidationItem","WebLink","WithholdingTax"] +__all__ = ["AccountBalance","AccountBalanceAmounts","AccountCategoriesUpdatedWebhook","AccountCategoriesUpdatedWebhookData","AccountCategoryLevel","AccountIdentifierType","AccountIdentifiers","AccountInstitution","AccountPrototype","AccountRef","AccountStatus","AccountTransactionLine","AccountType","AccountingAccount","AccountingAccountTransaction","AccountingAccountTransactions","AccountingAccountValidDataTypeLinks","AccountingAccounts","AccountingAddress","AccountingAddressType","AccountingAgedCreditorReport","AccountingAgedDebtorReport","AccountingAttachment","AccountingBalanceSheet","AccountingBankAccount","AccountingBankAccountType","AccountingBankAccounts","AccountingBankTransaction","AccountingBankTransactions","AccountingBill","AccountingBillCreditNote","AccountingBillCreditNotes","AccountingBillPayment","AccountingBillPayments","AccountingBills","AccountingCashFlowStatement","AccountingCompanyInfo","AccountingCreateAccountResponse","AccountingCreateBankAccountResponse","AccountingCreateBankTransactions","AccountingCreateBankTransactionsResponse","AccountingCreateDirectCostResponse","AccountingCreatePaymentResponse","AccountingCreateSupplierResponse","AccountingCreateTransferResponse","AccountingCreditNote","AccountingCreditNotes","AccountingCustomer","AccountingCustomerRef","AccountingCustomers","AccountingDirectCost","AccountingDirectCostContactRef","AccountingDirectCosts","AccountingDirectIncome","AccountingDirectIncomes","AccountingInvoice","AccountingInvoices","AccountingJournal","AccountingJournalEntries","AccountingJournalEntry","AccountingJournals","AccountingPayment","AccountingPaymentAllocation","AccountingPayments","AccountingProfitAndLossReport","AccountingSupplier","AccountingSuppliers","AccountingTransfer","AccountingTransfers","Accounts","AccountsPayableTracking","AccountsReceivableTracking","AgedCreditor","AgedCurrencyOutstanding","AgedDebtor","AgedOutstandingAmount","AgedOutstandingAmountDetail","Allocation","Attachments","BalanceSheet","BankAccountRef","BankTransactionType","BankingAccount","BankingAccountBalance","BankingAccountBalances","BankingAccounts","BankingTransaction","BankingTransactionCategories","BankingTransactionCategory","BankingTransactionRef","BankingTransactions","BillCreditNoteLineItem","BillCreditNoteStatus","BillLineItem","BillLineItemDataType","BillPaymentLine","BillPaymentLineLink","BillPaymentLineLinkType","BillStatus","BilledToType","BilledToType1","CashFlowStatement","ClientRateLimitReachedWebhook","ClientRateLimitReachedWebhookData","ClientRateLimitResetWebhook","ClientRateLimitResetWebhookData","CodatFile","CommerceAddress","CommerceAddressType","CommerceCompanyInfo","CommerceCustomer","CommerceCustomerRef","CommerceCustomers","CommerceDispute","CommerceDisputes","CommerceLocation","CommerceLocations","CommerceOrder","CommerceOrders","CommercePayment","CommercePaymentMethod","CommercePaymentMethodStatus","CommercePaymentMethods","CommercePayments","CommerceProduct","CommerceProductCategories","CommerceProductCategory","CommerceProducts","CommerceRecordRef","CommerceReport","CommerceReportComponent","CommerceReportDimension","CommerceReportDimensionItems","CommerceReportError","CommerceReportMeasure","CommerceTransaction","CommerceTransactions","Companies","Company","CompanyRequestBody","Connection","Connections","Contact","ContactRef","CreateBankAccountTransaction","CreditNoteLineItem","CreditNoteStatus","CustomerStatus","DataConnectionError","DataConnectionStatus","DataIntegrityAmounts","DataIntegrityByAmount","DataIntegrityByCount","DataIntegrityConnectionID","DataIntegrityDataType","DataIntegrityDates","DataIntegrityDetail","DataIntegrityDetails","DataIntegrityMatch","DataIntegrityStatus","DataIntegrityStatusInfo","DataIntegrityStatuses","DataIntegritySummaries","DataIntegritySummary","DataSource","DataStatus","DataType","DataTypes","DirectCostLineItem","DirectCostPrototype","DirectCostPrototypeContactRef","DirectIncomeLineItem","DisputeStatus","EnhancedCashFlowItem","EnhancedCashFlowTransaction","EnhancedCashFlowTransactions","EnhancedFinancialReport","EnhancedInvoiceReportItem","EnhancedInvoicesReport","EnhancedReportAccountCategory","EnhancedReportInfo","ExcelReportTypes","ExcelStatus","File","FileUpload","HalRef","IntegrityStatus","InvoiceLineItem","InvoiceStatus","ItemRef","ItemReference","Items","JournalLine","JournalLineTracking","JournalRef","JournalStatus","LendingCustomerRef","Links","LoanRef","LoanSummary","LoanSummaryIntegrationType","LoanSummaryRecordRef","LoanSummaryRecordRefType","LoanSummaryReportInfo","LoanSummaryReportItem","LoanTransactionType","LoanTransactions","LoanTransactionsReportInfo","LocationRef","Metadata","OrderDiscountAllocation","OrderLineItem","Payment","PaymentAllocationPayment","PaymentLine","PaymentLineLink","PaymentLinkType","PaymentMethodRef","PaymentRef","PaymentStatus","PaymentType","PeriodUnit","PhoneNumber","PhoneNumberType","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","ProfitAndLossReport","ProjectRef","PropertieItemRef","PullOperation","PullOperationStatus","PullOperations","PurchaseOrderReference","PushChangeType","PushFieldValidation","PushOperation","PushOperationChange","PushOperationRef","PushOperationStatus","PushOperations","PushOption","PushOptionChoice","PushOptionProperty","PushOptionType","PushValidationInfo","RecordLineReference","RecordRef","RecordReference","ReportBasis","ReportComponentMeasure","ReportInfo","ReportInput","ReportItem","ReportItems","ReportLine","ReportLineInput","SalesOrderReference","SchemaDataType","Security","ServiceCharge","ServiceChargeType","SourceRef","SourceType","Status","SupplementalData","SupplierRef","SupplierStatus","TaxComponentAllocation","TaxComponentRef","TaxRateRef","TaxRateReference","Tracking","TrackingCategoryRef","TransactionCategory","TransactionCategoryRef","TransactionCategoryStatus","TransactionCode","TransactionSourceRef","TransactionSourceType","TransactionType","TransferAccount","Type","ValidDataTypeLinks","Validation","ValidationItem","WebLink","WithholdingTax"] diff --git a/lending/src/codatlending/models/shared/codatfile.py b/lending/src/codatlending/models/shared/codatfile.py new file mode 100644 index 000000000..3a08327c7 --- /dev/null +++ b/lending/src/codatlending/models/shared/codatfile.py @@ -0,0 +1,12 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses + + +@dataclasses.dataclass +class CodatFile: + content: bytes = dataclasses.field(metadata={'multipart_form': { 'content': True }}) + file_name: str = dataclasses.field(metadata={'multipart_form': { 'field_name': 'fileName' }}) + + diff --git a/lending/src/codatlending/models/shared/fileupload.py b/lending/src/codatlending/models/shared/fileupload.py new file mode 100644 index 000000000..d5b66d54b --- /dev/null +++ b/lending/src/codatlending/models/shared/fileupload.py @@ -0,0 +1,13 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from .codatfile import CodatFile + + +@dataclasses.dataclass +class FileUpload: + file: CodatFile = dataclasses.field(metadata={'multipart_form': { 'file': True }}) + r"""The file to be uploaded as an attachment.""" + + diff --git a/lending/src/codatlending/sdkconfiguration.py b/lending/src/codatlending/sdkconfiguration.py index 3230d2222..df1ae0c5d 100644 --- a/lending/src/codatlending/sdkconfiguration.py +++ b/lending/src/codatlending/sdkconfiguration.py @@ -22,9 +22,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '3.0.0' - sdk_version: str = '6.1.0' + sdk_version: str = '6.2.0' gen_version: str = '2.214.3' - user_agent: str = 'speakeasy-sdk/python 6.1.0 2.214.3 3.0.0 codat-lending' + user_agent: str = 'speakeasy-sdk/python 6.2.0 2.214.3 3.0.0 codat-lending' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: