Skip to content

Commit 0b1d991

Browse files
authored
Merge pull request #248 from codatio/speakeasy-sdk-regen-1693586894
chore: speakeasy sdk regeneration - Generate Sync for Payables library
2 parents 2ef1541 + 02f5b60 commit 0b1d991

File tree

425 files changed

+19651
-5
lines changed

Some content is hidden

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

425 files changed

+19651
-5
lines changed

sync-for-payables/.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

sync-for-payables/.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

sync-for-payables/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:48:10
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
7+
- Speakeasy CLI 1.77.1 (2.91.4) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [python v0.1.0] sync-for-payables
10+
### Releases
11+
- [PyPI v0.1.0] https://pypi.org/project/codat-sync-for-payables/0.1.0 - sync-for-payables

sync-for-payables/USAGE.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!-- Start SDK Example Usage -->
2+
3+
4+
```python
5+
import codatsyncpayables
6+
from codatsyncpayables.models import operations, shared
7+
8+
s = codatsyncpayables.CodatSyncPayables(
9+
security=shared.Security(
10+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
11+
),
12+
)
13+
14+
req = operations.CreateAccountRequest(
15+
account=shared.Account(
16+
currency='USD',
17+
current_balance=0,
18+
description='Invoices the business has issued but has not yet collected payment on.',
19+
fully_qualified_category='Asset.Current',
20+
fully_qualified_name='Fixed Asset',
21+
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
22+
is_bank_account=False,
23+
metadata=shared.Metadata(
24+
is_deleted=False,
25+
),
26+
modified_date='2022-10-23T00:00:00.000Z',
27+
name='Accounts Receivable',
28+
nominal_code='610',
29+
source_modified_date='2022-10-23T00:00:00.000Z',
30+
status=shared.AccountStatus.ACTIVE,
31+
type=shared.AccountType.ASSET,
32+
valid_datatype_links=[
33+
shared.AccountValidDataTypeLinks(
34+
links=[
35+
'corrupti',
36+
'illum',
37+
'vel',
38+
'error',
39+
],
40+
property='deserunt',
41+
),
42+
shared.AccountValidDataTypeLinks(
43+
links=[
44+
'iure',
45+
'magnam',
46+
],
47+
property='debitis',
48+
),
49+
shared.AccountValidDataTypeLinks(
50+
links=[
51+
'delectus',
52+
],
53+
property='tempora',
54+
),
55+
],
56+
),
57+
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
58+
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
59+
timeout_in_minutes=383441,
60+
)
61+
62+
res = s.accounts.create(req)
63+
64+
if res.create_account_response is not None:
65+
# handle response
66+
```
67+
<!-- End SDK Example Usage -->
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateAccountRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
8+
| `account` | [Optional[shared.Account]](../../models/shared/account.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | N/A | |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateAccountResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `create_account_response` | [Optional[shared.CreateAccountResponse]](../../models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success |
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateBillCreditNoteRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
8+
| `bill_credit_note` | [Optional[shared.BillCreditNote]](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | N/A | |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateBillCreditNoteResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `create_bill_credit_note_response` | [Optional[shared.CreateBillCreditNoteResponse]](../../models/shared/createbillcreditnoteresponse.md) | :heavy_minus_sign: | Success |
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateBillPaymentRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
8+
| `bill_payment` | [Optional[shared.BillPayment]](../../models/shared/billpayment.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | N/A | |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateBillPaymentResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `create_bill_payment_response` | [Optional[shared.CreateBillPaymentResponse]](../../models/shared/createbillpaymentresponse.md) | :heavy_minus_sign: | Success |
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 |

0 commit comments

Comments
 (0)