Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion assess/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,20 @@ Based on:
- OpenAPI Doc 1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml
- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.20.0] https://pypi.org/project/codat-assess/0.20.0 - assess
- [PyPI v0.20.0] https://pypi.org/project/codat-assess/0.20.0 - assess

## 2023-05-19 00:12:17
### Changes
Based on:
- OpenAPI Doc 1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml
- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.21.0] https://pypi.org/project/codat-assess/0.21.0 - assess

## 2023-05-20 00:11:58
### Changes
Based on:
- OpenAPI Doc 1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml
- Speakeasy CLI 1.36.1 (2.31.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.21.1] https://pypi.org/project/codat-assess/0.21.1 - assess
6 changes: 3 additions & 3 deletions assess/docs/dataintegrity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ s = codatassess.CodatAssess(

req = operations.GetDataIntegrityDetailsRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
data_type=shared.DataIntegrityDataTypeEnum.BANKING_ACCOUNTS,
data_type=shared.DataIntegrityDataType.BANKING_ACCOUNTS,
order_by='-modifiedDate',
page=1,
page_size=100,
Expand Down Expand Up @@ -59,7 +59,7 @@ s = codatassess.CodatAssess(

req = operations.GetDataIntegrityStatusRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
data_type=shared.DataIntegrityDataTypeEnum.BANKING_ACCOUNTS,
data_type=shared.DataIntegrityDataType.BANKING_ACCOUNTS,
)

res = s.data_integrity.get_data_integrity_status(req)
Expand All @@ -86,7 +86,7 @@ s = codatassess.CodatAssess(

req = operations.GetDataIntegritySummariesRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
data_type=shared.DataIntegrityDataTypeEnum.BANKING_ACCOUNTS,
data_type=shared.DataIntegrityDataType.BANKING_ACCOUNTS,
query='ipsa',
)

Expand Down
10 changes: 5 additions & 5 deletions assess/docs/excelreports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ s = codatassess.CodatAssess(

req = operations.DownloadExcelReportRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
report_type=shared.ExcelReportTypeEnum.ENHANCED_INVOICES,
report_type=shared.ExcelReportType.ENHANCED_INVOICES,
)

res = s.excel_reports.download_excel_report(req)
Expand All @@ -59,7 +59,7 @@ s = codatassess.CodatAssess(

req = operations.GenerateExcelReportRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
report_type=shared.ExcelReportTypeEnum.ENHANCED_FINANCIALS,
report_type=shared.ExcelReportType.ENHANCED_FINANCIALS,
)

res = s.excel_reports.generate_excel_report(req)
Expand Down Expand Up @@ -90,7 +90,7 @@ req = operations.GetAccountingMarketingMetricsRequest(
include_display_names=False,
number_of_periods=739264,
period_length=19987,
period_unit=shared.PeriodUnitEnum.DAY,
period_unit=shared.PeriodUnit.DAY,
report_date='29-09-2020',
show_input_values=False,
)
Expand Down Expand Up @@ -119,7 +119,7 @@ s = codatassess.CodatAssess(

req = operations.GetExcelReportRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
report_type=shared.ExcelReportTypeEnum.ENHANCED_FINANCIALS,
report_type=shared.ExcelReportType.ENHANCED_FINANCIALS,
)

res = s.excel_reports.get_excel_report(req)
Expand All @@ -146,7 +146,7 @@ s = codatassess.CodatAssess(

req = operations.GetExcelReportGenerationStatusRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
report_type=shared.ExcelReportTypeEnum.AUDIT,
report_type=shared.ExcelReportType.AUDIT,
)

res = s.excel_reports.get_excel_report_generation_status(req)
Expand Down
10 changes: 5 additions & 5 deletions assess/docs/reports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ req = operations.GetCommerceCustomerRetentionMetricsRequest(
include_display_names=False,
number_of_periods=359444,
period_length=296140,
period_unit=shared.PeriodUnitEnum.WEEK,
period_unit=shared.PeriodUnit.WEEK,
report_date='29-09-2020',
)

Expand Down Expand Up @@ -135,7 +135,7 @@ req = operations.GetCommerceLifetimeValueMetricsRequest(
include_display_names=False,
number_of_periods=118727,
period_length=688661,
period_unit=shared.PeriodUnitEnum.WEEK,
period_unit=shared.PeriodUnit.WEEK,
report_date='29-09-2020',
)

Expand Down Expand Up @@ -167,7 +167,7 @@ req = operations.GetCommerceOrdersMetricsRequest(
include_display_names=False,
number_of_periods=880476,
period_length=414263,
period_unit=shared.PeriodUnitEnum.YEAR,
period_unit=shared.PeriodUnit.YEAR,
report_date='29-09-2020',
)

Expand Down Expand Up @@ -199,7 +199,7 @@ req = operations.GetCommerceRefundsMetricsRequest(
include_display_names=False,
number_of_periods=64147,
period_length=216822,
period_unit=shared.PeriodUnitEnum.MONTH,
period_unit=shared.PeriodUnit.MONTH,
report_date='29-09-2020',
)

Expand Down Expand Up @@ -231,7 +231,7 @@ req = operations.GetCommerceRevenueMetricsRequest(
include_display_names=False,
number_of_periods=565189,
period_length=566602,
period_unit=shared.PeriodUnitEnum.YEAR,
period_unit=shared.PeriodUnit.YEAR,
report_date='29-09-2020',
)

Expand Down
10 changes: 5 additions & 5 deletions assess/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,27 @@ src/codatassess/models/shared/confirmcategories.py
src/codatassess/models/shared/details.py
src/codatassess/models/shared/dataintegritydetails.py
src/codatassess/models/shared/dataintegritymatch.py
src/codatassess/models/shared/dataintegritydatatype_enum.py
src/codatassess/models/shared/dataintegritydatatype.py
src/codatassess/models/shared/status.py
src/codatassess/models/shared/dataintegritystatus.py
src/codatassess/models/shared/dataintegritystatusinfo.py
src/codatassess/models/shared/integritystatus_enum.py
src/codatassess/models/shared/integritystatus.py
src/codatassess/models/shared/dataintegritydates.py
src/codatassess/models/shared/dataintegrityconnectionid.py
src/codatassess/models/shared/dataintegrityamounts.py
src/codatassess/models/shared/summaries.py
src/codatassess/models/shared/dataintegritysummary.py
src/codatassess/models/shared/dataintegritybycount.py
src/codatassess/models/shared/dataintegritybyamount.py
src/codatassess/models/shared/excelreporttype_enum.py
src/codatassess/models/shared/excelreporttype.py
src/codatassess/models/shared/excelstatus.py
src/codatassess/models/shared/report.py
src/codatassess/models/shared/reportcomponent.py
src/codatassess/models/shared/reportcomponentmeasure.py
src/codatassess/models/shared/reportmeasure.py
src/codatassess/models/shared/reporterror.py
src/codatassess/models/shared/reportdimension.py
src/codatassess/models/shared/periodunit_enum.py
src/codatassess/models/shared/periodunit.py
src/codatassess/models/shared/enhancedreport.py
src/codatassess/models/shared/enhancedreportaccountcategory.py
src/codatassess/models/shared/accountcategorylevel.py
Expand All @@ -89,7 +89,7 @@ src/codatassess/models/shared/financialmetric.py
src/codatassess/models/shared/financialmetricerror.py
src/codatassess/models/shared/enhancedinvoicesreport.py
src/codatassess/models/shared/enhancedinvoicereportitem.py
src/codatassess/models/shared/invoicestatus_enum.py
src/codatassess/models/shared/invoicestatus.py
src/codatassess/models/shared/payment.py
src/codatassess/models/shared/bankingtransactionref.py
src/codatassess/models/shared/customerref.py
Expand Down
8 changes: 4 additions & 4 deletions assess/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
configVersion: 1.0.0
management:
docChecksum: bf5308f3cd7007ecc65665e9b9f77984
docChecksum: 70a1d3762553cacda95f3a1fa4474a01
docVersion: "1.0"
speakeasyVersion: 1.34.0
generationVersion: 2.30.0
speakeasyVersion: 1.36.1
generationVersion: 2.31.0
generation:
sdkClassName: CodatAssess
singleTagPerOp: false
telemetryEnabled: true
python:
version: 0.20.0
version: 0.21.1
author: Speakeasy
description: Python Client SDK Generated by Speakeasy
maxMethodParams: 0
Expand Down
2 changes: 1 addition & 1 deletion assess/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="codat-assess",
version="0.20.0",
version="0.21.1",
author="Speakeasy",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
5 changes: 5 additions & 0 deletions assess/src/codatassess/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def get_account_category(self, request: operations.GetAccountCategoryRequest, re

url = utils.generate_url(operations.GetAccountCategoryRequest, base_url, '/data/companies/{companyId}/connections/{connectionId}/assess/accounts/{accountId}/categories', request)
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -74,6 +75,7 @@ def list_accounts_categories(self, request: operations.ListAccountsCategoriesReq
url = utils.generate_url(operations.ListAccountsCategoriesRequest, base_url, '/data/companies/{companyId}/connections/{connectionId}/assess/accounts/categories', request)
headers = {}
query_params = utils.get_query_params(operations.ListAccountsCategoriesRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -114,6 +116,7 @@ def list_available_account_categories(self, retries: Optional[utils.RetryConfig]

url = base_url.removesuffix('/') + '/data/assess/accounts/categories'
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -157,6 +160,7 @@ def update_account_category(self, request: operations.UpdateAccountCategoryReque
req_content_type, data, form = utils.serialize_request_body(request, "confirm_category", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -200,6 +204,7 @@ def update_accounts_categories(self, request: operations.UpdateAccountsCategorie
req_content_type, data, form = utils.serialize_request_body(request, "confirm_categories", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
3 changes: 3 additions & 0 deletions assess/src/codatassess/data_integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def get_data_integrity_details(self, request: operations.GetDataIntegrityDetails
url = utils.generate_url(operations.GetDataIntegrityDetailsRequest, base_url, '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/details', request)
headers = {}
query_params = utils.get_query_params(operations.GetDataIntegrityDetailsRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -70,6 +71,7 @@ def get_data_integrity_status(self, request: operations.GetDataIntegrityStatusRe

url = utils.generate_url(operations.GetDataIntegrityStatusRequest, base_url, '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/status', request)
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -109,6 +111,7 @@ def get_data_integrity_summaries(self, request: operations.GetDataIntegritySumma
url = utils.generate_url(operations.GetDataIntegritySummariesRequest, base_url, '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/summaries', request)
headers = {}
query_params = utils.get_query_params(operations.GetDataIntegritySummariesRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
5 changes: 5 additions & 0 deletions assess/src/codatassess/excel_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def download_excel_report(self, request: operations.DownloadExcelReportRequest,
url = utils.generate_url(operations.DownloadExcelReportRequest, base_url, '/data/companies/{companyId}/assess/excel/download', request)
headers = {}
query_params = utils.get_query_params(operations.DownloadExcelReportRequest, request)
headers['Accept'] = 'application/octet-stream'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -72,6 +73,7 @@ def generate_excel_report(self, request: operations.GenerateExcelReportRequest,
url = utils.generate_url(operations.GenerateExcelReportRequest, base_url, '/data/companies/{companyId}/assess/excel', request)
headers = {}
query_params = utils.get_query_params(operations.GenerateExcelReportRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -111,6 +113,7 @@ def get_accounting_marketing_metrics(self, request: operations.GetAccountingMark
url = utils.generate_url(operations.GetAccountingMarketingMetricsRequest, base_url, '/data/companies/{companyId}/connections/{connectionId}/assess/accountingMetrics/marketing', request)
headers = {}
query_params = utils.get_query_params(operations.GetAccountingMarketingMetricsRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -150,6 +153,7 @@ def get_excel_report(self, request: operations.GetExcelReportRequest, retries: O
url = utils.generate_url(operations.GetExcelReportRequest, base_url, '/data/companies/{companyId}/assess/excel/download', request)
headers = {}
query_params = utils.get_query_params(operations.GetExcelReportRequest, request)
headers['Accept'] = 'application/octet-stream'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -188,6 +192,7 @@ def get_excel_report_generation_status(self, request: operations.GetExcelReportG
url = utils.generate_url(operations.GetExcelReportGenerationStatusRequest, base_url, '/data/companies/{companyId}/assess/excel', request)
headers = {}
query_params = utils.get_query_params(operations.GetExcelReportGenerationStatusRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import excelreporttype_enum as shared_excelreporttype_enum
from ..shared import excelreporttype as shared_excelreporttype
from typing import Optional


@dataclasses.dataclass
class DownloadExcelReportRequest:

company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
report_type: shared_excelreporttype_enum.ExcelReportTypeEnum = dataclasses.field(metadata={'query_param': { 'field_name': 'reportType', 'style': 'form', 'explode': True }})
report_type: shared_excelreporttype.ExcelReportType = dataclasses.field(metadata={'query_param': { 'field_name': 'reportType', 'style': 'form', 'explode': True }})
r"""The type of report you want to generate and download."""


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import excelreporttype_enum as shared_excelreporttype_enum
from ..shared import excelreporttype as shared_excelreporttype
from ..shared import excelstatus as shared_excelstatus
from typing import Optional

Expand All @@ -12,7 +12,7 @@
class GenerateExcelReportRequest:

company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
report_type: shared_excelreporttype_enum.ExcelReportTypeEnum = dataclasses.field(metadata={'query_param': { 'field_name': 'reportType', 'style': 'form', 'explode': True }})
report_type: shared_excelreporttype.ExcelReportType = dataclasses.field(metadata={'query_param': { 'field_name': 'reportType', 'style': 'form', 'explode': True }})
r"""The type of report you want to generate and download."""


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import periodunit_enum as shared_periodunit_enum
from ..shared import periodunit as shared_periodunit
from ..shared import report as shared_report
from typing import Optional

Expand All @@ -17,7 +17,7 @@ class GetAccountingMarketingMetricsRequest:
r"""The number of periods to return. There will be no pagination as a query parameter, however Codat will limit the number of periods to request to 12 periods."""
period_length: int = dataclasses.field(metadata={'query_param': { 'field_name': 'periodLength', 'style': 'form', 'explode': True }})
r"""The number of months per period. E.g. 2 = 2 months per period."""
period_unit: shared_periodunit_enum.PeriodUnitEnum = dataclasses.field(metadata={'query_param': { 'field_name': 'periodUnit', 'style': 'form', 'explode': True }})
period_unit: shared_periodunit.PeriodUnit = dataclasses.field(metadata={'query_param': { 'field_name': 'periodUnit', 'style': 'form', 'explode': True }})
r"""The period unit of time returned."""
report_date: str = dataclasses.field(metadata={'query_param': { 'field_name': 'reportDate', 'style': 'form', 'explode': True }})
r"""The date in which the report is created up to. Users must specify a specific date, however the response will be provided for the full month."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import periodunit_enum as shared_periodunit_enum
from ..shared import periodunit as shared_periodunit
from ..shared import report as shared_report
from typing import Optional

Expand All @@ -17,7 +17,7 @@ class GetCommerceCustomerRetentionMetricsRequest:
r"""The number of periods to return. There will be no pagination as a query parameter, however Codat will limit the number of periods to request to 12 periods."""
period_length: int = dataclasses.field(metadata={'query_param': { 'field_name': 'periodLength', 'style': 'form', 'explode': True }})
r"""The number of months per period. E.g. 2 = 2 months per period."""
period_unit: shared_periodunit_enum.PeriodUnitEnum = dataclasses.field(metadata={'query_param': { 'field_name': 'periodUnit', 'style': 'form', 'explode': True }})
period_unit: shared_periodunit.PeriodUnit = dataclasses.field(metadata={'query_param': { 'field_name': 'periodUnit', 'style': 'form', 'explode': True }})
r"""The period unit of time returned."""
report_date: str = dataclasses.field(metadata={'query_param': { 'field_name': 'reportDate', 'style': 'form', 'explode': True }})
r"""The date in which the report is created up to. Users must specify a specific date, however the response will be provided for the full month."""
Expand Down
Loading