Skip to content

Commit

Permalink
Merge pull request #378 from codatio/speakeasy-sdk-regen-1695396747
Browse files Browse the repository at this point in the history
chore: speakeasy sdk regeneration - Generate Sync for Payables library
  • Loading branch information
dcoplowe authored Sep 22, 2023
2 parents 11f45d7 + b37aa2e commit 64836f0
Show file tree
Hide file tree
Showing 25 changed files with 566 additions and 337 deletions.
39 changes: 32 additions & 7 deletions sync-for-payables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pip install codat-sync-for-payables

## Example Usage
<!-- Start SDK Example Usage -->


```python
import codatsyncpayables
from codatsyncpayables.models import operations, shared
Expand All @@ -27,11 +25,11 @@ s = codatsyncpayables.CodatSyncPayables(

req = operations.CreateAccountRequest(
account=shared.Account(
currency='USD',
currency='EUR',
current_balance=Decimal('0'),
description='Invoices the business has issued but has not yet collected payment on.',
fully_qualified_category='Asset.Current',
fully_qualified_name='Fixed Asset',
fully_qualified_name='Cash On Hand',
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
is_bank_account=False,
metadata=shared.Metadata(
Expand All @@ -46,15 +44,15 @@ req = operations.CreateAccountRequest(
valid_datatype_links=[
shared.AccountValidDataTypeLinks(
links=[
'unde',
'suscipit',
],
property='nulla',
property='iure',
),
],
),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
timeout_in_minutes=544883,
timeout_in_minutes=297534,
)

res = s.accounts.create(req)
Expand Down Expand Up @@ -95,6 +93,7 @@ if res.create_account_response is not None:

* [create](docs/sdks/bills/README.md#create) - Create bill
* [delete](docs/sdks/bills/README.md#delete) - Delete bill
* [delete_attachment](docs/sdks/bills/README.md#delete_attachment) - Delete bill attachment
* [download_attachment](docs/sdks/bills/README.md#download_attachment) - Download bill attachment
* [get](docs/sdks/bills/README.md#get) - Get bill
* [get_attachment](docs/sdks/bills/README.md#get_attachment) - Get bill attachment
Expand Down Expand Up @@ -172,4 +171,30 @@ if res.create_account_response is not None:
* [get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories
* [list](docs/sdks/trackingcategories/README.md#list) - List tracking categories
<!-- End SDK Available Operations -->



<!-- Start Dev Containers -->



<!-- End Dev Containers -->



<!-- Start Pagination -->
# Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
return value of `Next` is `None`, then there are no more pages to be fetched.

Here's an example of one such pagination call:


<!-- End Pagination -->

<!-- Placeholder for Future Speakeasy SDK Sections -->


### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
12 changes: 11 additions & 1 deletion sync-for-payables/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@ Based on:
### Generated
- [python v1.1.0] sync-for-payables
### Releases
- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-payables/1.1.0 - sync-for-payables
- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-payables/1.1.0 - sync-for-payables

## 2023-09-22 15:32:22
### Changes
Based on:
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
- Speakeasy CLI 1.90.0 (2.125.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.2.0] sync-for-payables
### Releases
- [PyPI v1.2.0] https://pypi.org/project/codat-sync-for-payables/1.2.0 - sync-for-payables
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DeleteBillAttachmentRequest


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| `attachment_id` | *str* | :heavy_check_mark: | Unique identifier for an attachment | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `bill_id` | *str* | :heavy_check_mark: | Unique identifier for a bill | 13d946f0-c5d5-42bc-b092-97ece17923ab |
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DeleteBillAttachmentResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | N/A |
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
| `push_operation` | [Optional[shared.PushOperation]](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK |
| `status_code` | *int* | :heavy_check_mark: | N/A |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
8 changes: 4 additions & 4 deletions sync-for-payables/docs/sdks/accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ req = operations.CreateAccountRequest(
links=[
'suscipit',
],
property='iure',
property='molestiae',
),
],
),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
timeout_in_minutes=297534,
timeout_in_minutes=791725,
)

res = s.accounts.create(req)
Expand Down Expand Up @@ -112,7 +112,7 @@ s = codatsyncpayables.CodatSyncPayables(
)

req = operations.GetAccountRequest(
account_id='debitis',
account_id='placeat',
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
)

Expand Down Expand Up @@ -209,7 +209,7 @@ req = operations.ListAccountsRequest(
order_by='-modifiedDate',
page=1,
page_size=100,
query='ipsa',
query='voluptatum',
)

res = s.accounts.list(req)
Expand Down
Loading

0 comments on commit 64836f0

Please sign in to comment.