Skip to content

Commit 4732ac8

Browse files
authored
Merge pull request #524 from codatio/speakeasy-sdk-regen-1701853642
chore: 🐝 Update SDK - Generate Sync for Payables library
2 parents c23a439 + 603ce9c commit 4732ac8

File tree

478 files changed

+3329
-2200
lines changed

Some content is hidden

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

478 files changed

+3329
-2200
lines changed

β€Žsync-for-payables/.gitattributesβ€Ž

100755100644
File mode changed.

β€Žsync-for-payables/README.mdβ€Ž

Lines changed: 268 additions & 97 deletions
Large diffs are not rendered by default.

β€Žsync-for-payables/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@ Based on:
4848
### Generated
4949
- [python v2.0.0] sync-for-payables
5050
### Releases
51-
- [PyPI v2.0.0] https://pypi.org/project/codat-sync-for-payables/2.0.0 - sync-for-payables
51+
- [PyPI v2.0.0] https://pypi.org/project/codat-sync-for-payables/2.0.0 - sync-for-payables
52+
53+
## 2023-12-06 09:07:18
54+
### Changes
55+
Based on:
56+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
57+
- Speakeasy CLI 1.125.2 (2.210.6) https://github.com/speakeasy-api/speakeasy
58+
### Generated
59+
- [python v3.0.0] sync-for-payables
60+
### Releases
61+
- [PyPI v3.0.0] https://pypi.org/project/codat-sync-for-payables/3.0.0 - sync-for-payables

β€Žsync-for-payables/USAGE.mdβ€Ž

100755100644
Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,23 @@
1-
<!-- Start SDK Example Usage -->
2-
3-
1+
<!-- Start SDK Example Usage [usage] -->
42
```python
53
import codatsyncpayables
6-
from codatsyncpayables.models import operations, shared
7-
from decimal import Decimal
4+
from codatsyncpayables.models import shared
85

96
s = codatsyncpayables.CodatSyncPayables(
107
security=shared.Security(
118
auth_header="Basic BASE_64_ENCODED(API_KEY)",
129
),
1310
)
1411

15-
req = operations.CreateAccountRequest(
16-
account=shared.Account(
17-
currency='USD',
18-
current_balance=Decimal('0'),
19-
description='Invoices the business has issued but has not yet collected payment on.',
20-
fully_qualified_category='Asset.Current',
21-
fully_qualified_name='Cash On Hand',
22-
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
23-
metadata=shared.Metadata(),
24-
modified_date='2022-10-23T00:00:00.000Z',
25-
name='Accounts Receivable',
26-
nominal_code='610',
27-
source_modified_date='2022-10-23T00:00:00.000Z',
28-
status=shared.AccountStatus.ACTIVE,
29-
supplemental_data=shared.SupplementalData(
30-
content={
31-
"Money": {
32-
"blue": 'shred',
33-
},
34-
},
35-
),
36-
type=shared.AccountType.ASSET,
37-
valid_datatype_links=[
38-
shared.AccountValidDataTypeLinks(
39-
links=[
40-
'abnormally',
41-
],
42-
),
43-
],
44-
),
45-
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
46-
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
12+
req = shared.CompanyRequestBody(
13+
description='Requested early access to the new financing scheme.',
14+
name='Bank of Dave',
4715
)
4816

49-
res = s.accounts.create(req)
17+
res = s.companies.create(req)
5018

51-
if res.create_account_response is not None:
19+
if res.company is not None:
5220
# handle response
5321
pass
5422
```
55-
<!-- End SDK Example Usage -->
23+
<!-- End SDK Example Usage [usage] -->

sync-for-payables/docs/models/shared/errormessage.md renamed to sync-for-payables/docs/models/errors/errormessage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ErrorMessage
22

3+
The request made is not valid.
4+
35

46
## Fields
57

β€Žsync-for-payables/docs/models/operations/createaccountrequest.mdβ€Ž

100755100644
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
## Fields
55

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: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10-
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11-
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
8+
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |

β€Žsync-for-payables/docs/models/operations/createaccountresponse.mdβ€Ž

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
88
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `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. |
1110
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

β€Žsync-for-payables/docs/models/operations/createbillcreditnoterequest.mdβ€Ž

100755100644
File mode changed.

β€Žsync-for-payables/docs/models/operations/createbillcreditnoteresponse.mdβ€Ž

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
88
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `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. |
1110
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

β€Žsync-for-payables/docs/models/operations/createbillpaymentrequest.mdβ€Ž

100755100644
File mode changed.

0 commit comments

Comments
Β (0)