Skip to content

Commit b185dc7

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.23.1
1 parent 3a802a0 commit b185dc7

31 files changed

Lines changed: 66 additions & 1098 deletions

accounting/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,12 @@ Based on:
262262
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
263263
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
264264
### Releases
265-
- [PyPI v0.12.1] https://pypi.org/project/codat-accounting/0.12.1 - accounting
265+
- [PyPI v0.12.1] https://pypi.org/project/codat-accounting/0.12.1 - accounting
266+
267+
## 2023-04-26 00:56:25
268+
### Changes
269+
Based on:
270+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
271+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
272+
### Releases
273+
- [PyPI v0.12.2] https://pypi.org/project/codat-accounting/0.12.2 - accounting

accounting/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 2706c9326ce8673a433c28d86987c9f8
3+
docChecksum: 479dc45a39cc995b05f514406ed19464
44
docVersion: 2.1.0
55
speakeasyVersion: 1.23.1
66
generationVersion: 2.21.1
@@ -9,7 +9,7 @@ generation:
99
sdkClassName: CodatAccounting
1010
singleTagPerOp: false
1111
python:
12-
version: 0.12.1
12+
version: 0.12.2
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
packageName: codat-accounting

accounting/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-accounting",
13-
version="0.12.1",
13+
version="0.12.2",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

accounting/src/codataccounting/models/shared/account.py

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -67,52 +67,12 @@ class Account:
6767
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
6868
r"""Identifier for the account, unique for the company."""
6969
metadata: Optional[shared_metadata.Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
70-
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
71-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
72-
73-
```
74-
2020-10-08T22:40:50Z
75-
2021-01-01T00:00:00
76-
```
77-
78-
79-
80-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
81-
82-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
83-
- Unqualified local time: `2021-11-15T01:00:00`
84-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
85-
86-
> Time zones
87-
>
88-
> Not all dates from Codat will contain information about time zones.
89-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
90-
"""
70+
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
9171
name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }})
9272
r"""Name of the account."""
9373
nominal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nominalCode'), 'exclude': lambda f: f is None }})
9474
r"""Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system."""
95-
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
96-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
97-
98-
```
99-
2020-10-08T22:40:50Z
100-
2021-01-01T00:00:00
101-
```
102-
103-
104-
105-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
106-
107-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
108-
- Unqualified local time: `2021-11-15T01:00:00`
109-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
110-
111-
> Time zones
112-
>
113-
> Not all dates from Codat will contain information about time zones.
114-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
115-
"""
75+
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
11676
valid_datatype_links: Optional[list[shared_validdatatypelinks.ValidDataTypeLinks]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validDatatypeLinks'), 'exclude': lambda f: f is None }})
117-
r"""'The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see Valid Data Type Links.'"""
77+
r"""The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/accounting-api#/schemas/ValidDataTypeLinks)."""
11878

accounting/src/codataccounting/models/shared/accounttransaction.py

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -102,50 +102,10 @@ class AccountTransaction:
102102
lines: Optional[list[shared_accounttransactionline.AccountTransactionLine]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lines'), 'exclude': lambda f: f is None }})
103103
r"""Array of account transaction lines."""
104104
metadata: Optional[shared_metadata.Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
105-
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
106-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
107-
108-
```
109-
2020-10-08T22:40:50Z
110-
2021-01-01T00:00:00
111-
```
112-
113-
114-
115-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
116-
117-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
118-
- Unqualified local time: `2021-11-15T01:00:00`
119-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
120-
121-
> Time zones
122-
>
123-
> Not all dates from Codat will contain information about time zones.
124-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
125-
"""
105+
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
126106
note: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('note'), 'exclude': lambda f: f is None }})
127107
r"""Additional information about the account transaction, if available."""
128-
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
129-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
130-
131-
```
132-
2020-10-08T22:40:50Z
133-
2021-01-01T00:00:00
134-
```
135-
136-
137-
138-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
139-
140-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
141-
- Unqualified local time: `2021-11-15T01:00:00`
142-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
143-
144-
> Time zones
145-
>
146-
> Not all dates from Codat will contain information about time zones.
147-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
148-
"""
108+
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
149109
status: Optional[AccountTransactionStatusEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }})
150110
r"""The status of the account transaction."""
151111
total_amount: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('totalAmount'), 'exclude': lambda f: f is None }})

accounting/src/codataccounting/models/shared/attachment.py

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -53,48 +53,8 @@ class Attachment:
5353
r"""Identifier for the attachment, unique for the company in the accounting platform."""
5454
include_when_sent: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('includeWhenSent'), 'exclude': lambda f: f is None }})
5555
r"""If `true`, then the attachment is included with the associated invoice, bill or direct costs when it is printed, emailed, or sent to a customer, if the underlying accounting platform allows this."""
56-
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
57-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
58-
59-
```
60-
2020-10-08T22:40:50Z
61-
2021-01-01T00:00:00
62-
```
63-
64-
65-
66-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
67-
68-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
69-
- Unqualified local time: `2021-11-15T01:00:00`
70-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
71-
72-
> Time zones
73-
>
74-
> Not all dates from Codat will contain information about time zones.
75-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
76-
"""
56+
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
7757
name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }})
7858
r"""Name of the attachment file."""
79-
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
80-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
81-
82-
```
83-
2020-10-08T22:40:50Z
84-
2021-01-01T00:00:00
85-
```
86-
87-
88-
89-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
90-
91-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
92-
- Unqualified local time: `2021-11-15T01:00:00`
93-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
94-
95-
> Time zones
96-
>
97-
> Not all dates from Codat will contain information about time zones.
98-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
99-
"""
59+
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
10060

accounting/src/codataccounting/models/shared/bankaccount.py

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -75,27 +75,7 @@ class BankAccount:
7575
institution: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('institution'), 'exclude': lambda f: f is None }})
7676
r"""The institution of the bank account."""
7777
metadata: Optional[shared_metadata.Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
78-
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
79-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
80-
81-
```
82-
2020-10-08T22:40:50Z
83-
2021-01-01T00:00:00
84-
```
85-
86-
87-
88-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
89-
90-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
91-
- Unqualified local time: `2021-11-15T01:00:00`
92-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
93-
94-
> Time zones
95-
>
96-
> Not all dates from Codat will contain information about time zones.
97-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
98-
"""
78+
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
9979
nominal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nominalCode'), 'exclude': lambda f: f is None }})
10080
r"""Code used to identify each nominal account for a business."""
10181
overdraft_limit: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('overdraftLimit'), 'exclude': lambda f: f is None }})
@@ -109,25 +89,5 @@ class BankAccount:
10989
Xero integrations
11090
The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated.
11191
"""
112-
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
113-
r"""In Codat's data model, dates and times are represented using the <a class=\\"external\\" href=\\"https://en.wikipedia.org/wiki/ISO_8601\\" target=\\"_blank\\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
114-
115-
```
116-
2020-10-08T22:40:50Z
117-
2021-01-01T00:00:00
118-
```
119-
120-
121-
122-
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
123-
124-
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
125-
- Unqualified local time: `2021-11-15T01:00:00`
126-
- UTC time offsets: `2021-11-15T01:00:00-05:00`
127-
128-
> Time zones
129-
>
130-
> Not all dates from Codat will contain information about time zones.
131-
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
132-
"""
92+
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
13393

0 commit comments

Comments
 (0)