Skip to content

Commit acff3de

Browse files
authored
Merge pull request #245 from codatio/speakeasy-sdk-regen-1693586842
chore: speakeasy sdk regeneration - Generate Platform library
2 parents 6d943bb + f919a6b commit acff3de

File tree

282 files changed

+10351
-7
lines changed

Some content is hidden

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

282 files changed

+10351
-7
lines changed

platform/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.py linguist-generated=false

platform/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
venv/
2+
src/*.egg-info/
3+
__pycache__/
4+
.pytest_cache/
5+
.python-version
6+
.DS_Store

platform/RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2023-09-01 16:47:18
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
7+
- Speakeasy CLI 1.77.1 (2.91.4) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [python v0.1.0] platform
10+
### Releases
11+
- [PyPI v0.1.0] https://pypi.org/project/codat-platform/0.1.0 - platform

platform/USAGE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Start SDK Example Usage -->
2+
3+
4+
```python
5+
import codatplatform
6+
from codatplatform.models import shared
7+
8+
s = codatplatform.CodatPlatform(
9+
security=shared.Security(
10+
auth_header="",
11+
),
12+
)
13+
14+
req = shared.CompanyRequestBody(
15+
description='Requested early access to the new financing scheme.',
16+
name='Bank of Dave',
17+
)
18+
19+
res = s.companies.create(req)
20+
21+
if res.company is not None:
22+
# handle response
23+
```
24+
<!-- End SDK Example Usage -->
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ConfigureSupplementalDataDataType
2+
3+
Data types that support supplemental data
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ----------------------------- | ----------------------------- |
10+
| `CHART_OF_ACCOUNTS` | chartOfAccounts |
11+
| `BILLS` | bills |
12+
| `COMPANY` | company |
13+
| `CREDIT_NOTES` | creditNotes |
14+
| `CUSTOMERS` | customers |
15+
| `INVOICES` | invoices |
16+
| `ITEMS` | items |
17+
| `JOURNAL_ENTRIES` | journalEntries |
18+
| `SUPPLIERS` | suppliers |
19+
| `TAX_RATES` | taxRates |
20+
| `COMMERCE_COMPANY_INFO` | commerce-companyInfo |
21+
| `COMMERCE_CUSTOMERS` | commerce-customers |
22+
| `COMMERCE_DISPUTES` | commerce-disputes |
23+
| `COMMERCE_LOCATIONS` | commerce-locations |
24+
| `COMMERCE_ORDERS` | commerce-orders |
25+
| `COMMERCE_PAYMENTS` | commerce-payments |
26+
| `COMMERCE_PAYMENT_METHODS` | commerce-paymentMethods |
27+
| `COMMERCE_PRODUCTS` | commerce-products |
28+
| `COMMERCE_PRODUCT_CATEGORIES` | commerce-productCategories |
29+
| `COMMERCE_TAX_COMPONENTS` | commerce-taxComponents |
30+
| `COMMERCE_TRANSACTIONS` | commerce-transactions |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ConfigureSupplementalDataRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
8+
| `supplemental_data_configuration` | [Optional[shared.SupplementalDataConfiguration]](../../models/shared/supplementaldataconfiguration.md) | :heavy_minus_sign: | The configuration for the specified platform and data type. | |
9+
| `data_type` | [ConfigureSupplementalDataDataType](../../models/operations/configuresupplementaldatadatatype.md) | :heavy_check_mark: | Data types that support supplemental data | invoices |
10+
| `platform_key` | *str* | :heavy_check_mark: | N/A | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ConfigureSupplementalDataResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
10+
| `status_code` | *int* | :heavy_check_mark: | N/A |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateAPIKeyResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `api_key_details` | [Optional[shared.APIKeyDetails]](../../models/shared/apikeydetails.md) | :heavy_minus_sign: | Success |
9+
| `content_type` | *str* | :heavy_check_mark: | N/A |
10+
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Bad Request |
11+
| `status_code` | *int* | :heavy_check_mark: | N/A |
12+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateCompanyResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
9+
| `content_type` | *str* | :heavy_check_mark: | N/A |
10+
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. |
11+
| `status_code` | *int* | :heavy_check_mark: | N/A |
12+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CreateConnectionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
8+
| `request_body` | [Optional[CreateConnectionRequestBody]](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |

0 commit comments

Comments
 (0)