Skip to content

Commit d8c65c1

Browse files
authored
Merge pull request #318 from codatio/speakeasy-sdk-regen-1694605338
chore: speakeasy sdk regeneration - Generate Sync for Payables library
2 parents 63e330d + 555584e commit d8c65c1

File tree

162 files changed

+1947
-1465
lines changed

Some content is hidden

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

162 files changed

+1947
-1465
lines changed

sync-for-payables/README.md

Lines changed: 161 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,173 @@
33

44

55
<!-- Start SDK Installation -->
6-
replace me
6+
## SDK Installation
7+
8+
```bash
9+
pip install codat-sync-for-payables
10+
```
711
<!-- End SDK Installation -->
812

913
## Example Usage
1014
<!-- Start SDK Example Usage -->
11-
replace me
15+
16+
17+
```python
18+
import codatsyncpayables
19+
from codatsyncpayables.models import operations, shared
20+
from decimal import Decimal
21+
22+
s = codatsyncpayables.CodatSyncPayables(
23+
security=shared.Security(
24+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
25+
),
26+
)
27+
28+
req = operations.CreateAccountRequest(
29+
account=shared.Account(
30+
currency='USD',
31+
current_balance=Decimal('0'),
32+
description='Invoices the business has issued but has not yet collected payment on.',
33+
fully_qualified_category='Asset.Current',
34+
fully_qualified_name='Fixed Asset',
35+
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
36+
is_bank_account=False,
37+
metadata=shared.Metadata(
38+
is_deleted=False,
39+
),
40+
modified_date='2022-10-23T00:00:00.000Z',
41+
name='Accounts Receivable',
42+
nominal_code='610',
43+
source_modified_date='2022-10-23T00:00:00.000Z',
44+
status=shared.AccountStatus.ACTIVE,
45+
type=shared.AccountType.ASSET,
46+
valid_datatype_links=[
47+
shared.AccountValidDataTypeLinks(
48+
links=[
49+
'unde',
50+
],
51+
property='nulla',
52+
),
53+
],
54+
),
55+
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
56+
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
57+
timeout_in_minutes=544883,
58+
)
59+
60+
res = s.accounts.create(req)
61+
62+
if res.create_account_response is not None:
63+
# handle response
64+
```
1265
<!-- End SDK Example Usage -->
1366

1467
<!-- Start SDK Available Operations -->
15-
replace me
68+
## Available Resources and Operations
69+
70+
71+
### [accounts](docs/sdks/accounts/README.md)
72+
73+
* [create](docs/sdks/accounts/README.md#create) - Create account
74+
* [get](docs/sdks/accounts/README.md#get) - Get account
75+
* [get_create_model](docs/sdks/accounts/README.md#get_create_model) - Get create account model
76+
* [list](docs/sdks/accounts/README.md#list) - List accounts
77+
78+
### [bill_credit_notes](docs/sdks/billcreditnotes/README.md)
79+
80+
* [create](docs/sdks/billcreditnotes/README.md#create) - Create bill credit note
81+
* [get](docs/sdks/billcreditnotes/README.md#get) - Get bill credit note
82+
* [get_create_update_model](docs/sdks/billcreditnotes/README.md#get_create_update_model) - Get create/update bill credit note model
83+
* [list](docs/sdks/billcreditnotes/README.md#list) - List bill credit notes
84+
* [update](docs/sdks/billcreditnotes/README.md#update) - Update bill credit note
85+
86+
### [bill_payments](docs/sdks/billpayments/README.md)
87+
88+
* [create](docs/sdks/billpayments/README.md#create) - Create bill payments
89+
* [delete](docs/sdks/billpayments/README.md#delete) - Delete bill payment
90+
* [get](docs/sdks/billpayments/README.md#get) - Get bill payment
91+
* [get_create_model](docs/sdks/billpayments/README.md#get_create_model) - Get create bill payment model
92+
* [list](docs/sdks/billpayments/README.md#list) - List bill payments
93+
94+
### [bills](docs/sdks/bills/README.md)
95+
96+
* [create](docs/sdks/bills/README.md#create) - Create bill
97+
* [delete](docs/sdks/bills/README.md#delete) - Delete bill
98+
* [download_attachment](docs/sdks/bills/README.md#download_attachment) - Download bill attachment
99+
* [get](docs/sdks/bills/README.md#get) - Get bill
100+
* [get_attachment](docs/sdks/bills/README.md#get_attachment) - Get bill attachment
101+
* [get_create_update_model](docs/sdks/bills/README.md#get_create_update_model) - Get create/update bill model
102+
* [list](docs/sdks/bills/README.md#list) - List bills
103+
* [list_attachments](docs/sdks/bills/README.md#list_attachments) - List bill attachments
104+
* [update](docs/sdks/bills/README.md#update) - Update bill
105+
* [upload_attachment](docs/sdks/bills/README.md#upload_attachment) - Upload bill attachment
106+
107+
### [companies](docs/sdks/companies/README.md)
108+
109+
* [create](docs/sdks/companies/README.md#create) - Create company
110+
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
111+
* [get](docs/sdks/companies/README.md#get) - Get company
112+
* [list](docs/sdks/companies/README.md#list) - List companies
113+
* [update](docs/sdks/companies/README.md#update) - Update company
114+
115+
### [company_info](docs/sdks/companyinfo/README.md)
116+
117+
* [get_accounting_profile](docs/sdks/companyinfo/README.md#get_accounting_profile) - Get company accounting profile
118+
119+
### [connections](docs/sdks/connections/README.md)
120+
121+
* [create](docs/sdks/connections/README.md#create) - Create connection
122+
* [delete](docs/sdks/connections/README.md#delete) - Delete connection
123+
* [get](docs/sdks/connections/README.md#get) - Get connection
124+
* [list](docs/sdks/connections/README.md#list) - List connections
125+
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
126+
127+
### [journal_entries](docs/sdks/journalentries/README.md)
128+
129+
* [create](docs/sdks/journalentries/README.md#create) - Create journal entry
130+
* [get_create_model](docs/sdks/journalentries/README.md#get_create_model) - Get create journal entry model
131+
132+
### [journals](docs/sdks/journals/README.md)
133+
134+
* [create](docs/sdks/journals/README.md#create) - Create journal
135+
* [get](docs/sdks/journals/README.md#get) - Get journal
136+
* [get_create_model](docs/sdks/journals/README.md#get_create_model) - Get create journal model
137+
* [list](docs/sdks/journals/README.md#list) - List journals
138+
139+
### [manage_data](docs/sdks/managedata/README.md)
140+
141+
* [get](docs/sdks/managedata/README.md#get) - Get data status
142+
* [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation
143+
* [list_pull_operations](docs/sdks/managedata/README.md#list_pull_operations) - List pull operations
144+
* [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data
145+
* [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type
146+
147+
### [payment_methods](docs/sdks/paymentmethods/README.md)
148+
149+
* [get](docs/sdks/paymentmethods/README.md#get) - Get payment method
150+
* [list](docs/sdks/paymentmethods/README.md#list) - List payment methods
151+
152+
### [push_operations](docs/sdks/pushoperations/README.md)
153+
154+
* [get](docs/sdks/pushoperations/README.md#get) - Get push operation
155+
* [list](docs/sdks/pushoperations/README.md#list) - List push operations
156+
157+
### [suppliers](docs/sdks/suppliers/README.md)
158+
159+
* [create](docs/sdks/suppliers/README.md#create) - Create supplier
160+
* [get](docs/sdks/suppliers/README.md#get) - Get supplier
161+
* [get_create_update_model](docs/sdks/suppliers/README.md#get_create_update_model) - Get create/update supplier model
162+
* [list](docs/sdks/suppliers/README.md#list) - List suppliers
163+
* [update](docs/sdks/suppliers/README.md#update) - Update supplier
164+
165+
### [tax_rates](docs/sdks/taxrates/README.md)
166+
167+
* [get](docs/sdks/taxrates/README.md#get) - Get tax rate
168+
* [list](docs/sdks/taxrates/README.md#list) - List all tax rates
169+
170+
### [tracking_categories](docs/sdks/trackingcategories/README.md)
171+
172+
* [get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories
173+
* [list](docs/sdks/trackingcategories/README.md#list) - List tracking categories
16174
<!-- End SDK Available Operations -->
17175
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

sync-for-payables/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [python v0.1.0] sync-for-payables
1010
### Releases
11-
- [PyPI v0.1.0] https://pypi.org/project/codat-sync-for-payables/0.1.0 - sync-for-payables
11+
- [PyPI v0.1.0] https://pypi.org/project/codat-sync-for-payables/0.1.0 - sync-for-payables
12+
13+
## 2023-09-13 11:42:14
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
17+
- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [python v0.2.0] sync-for-payables
20+
### Releases
21+
- [PyPI v0.2.0] https://pypi.org/project/codat-sync-for-payables/0.2.0 - sync-for-payables

sync-for-payables/USAGE.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
```python
55
import codatsyncpayables
66
from codatsyncpayables.models import operations, shared
7+
from decimal import Decimal
78

89
s = codatsyncpayables.CodatSyncPayables(
910
security=shared.Security(
@@ -14,7 +15,7 @@ s = codatsyncpayables.CodatSyncPayables(
1415
req = operations.CreateAccountRequest(
1516
account=shared.Account(
1617
currency='USD',
17-
current_balance=0,
18+
current_balance=Decimal('0'),
1819
description='Invoices the business has issued but has not yet collected payment on.',
1920
fully_qualified_category='Asset.Current',
2021
fully_qualified_name='Fixed Asset',
@@ -32,31 +33,15 @@ req = operations.CreateAccountRequest(
3233
valid_datatype_links=[
3334
shared.AccountValidDataTypeLinks(
3435
links=[
35-
'corrupti',
36-
'illum',
37-
'vel',
38-
'error',
36+
'unde',
3937
],
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',
38+
property='nulla',
5439
),
5540
],
5641
),
5742
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5843
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
59-
timeout_in_minutes=383441,
44+
timeout_in_minutes=544883,
6045
)
6146

6247
res = s.accounts.create(req)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# DeleteBillPaymentRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8+
| `bill_payment_id` | *str* | :heavy_check_mark: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# DeleteBillPaymentResponse
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+
| `push_operation` | [Optional[shared.PushOperation]](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK |
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# DeleteBillRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8+
| `bill_id` | *str* | :heavy_check_mark: | Unique identifier for a bill | 13d946f0-c5d5-42bc-b092-97ece17923ab |
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 |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# DeleteBillResponse
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+
| `push_operation` | [Optional[shared.PushOperation]](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK |
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)