Skip to content

Commit 6cd28b5

Browse files
authored
Merge pull request #468 from codatio/speakeasy-sdk-regen-1697554165
chore: speakeasy sdk regeneration - Generate Sync for Payables library
2 parents 27660a8 + 56d9da4 commit 6cd28b5

File tree

394 files changed

+2379
-1980
lines changed

Some content is hidden

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

394 files changed

+2379
-1980
lines changed

sync-for-payables/README.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,71 +27,74 @@ s = codatsyncpayables.CodatSyncPayables(
2727

2828
req = operations.CreateAccountRequest(
2929
account=shared.Account(
30-
currency='EUR',
30+
currency='USD',
3131
current_balance=Decimal('0'),
3232
description='Invoices the business has issued but has not yet collected payment on.',
3333
fully_qualified_category='Asset.Current',
3434
fully_qualified_name='Cash On Hand',
3535
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
36-
is_bank_account=False,
37-
metadata=shared.Metadata(
38-
is_deleted=False,
39-
),
36+
metadata=shared.Metadata(),
4037
modified_date='2022-10-23T00:00:00.000Z',
4138
name='Accounts Receivable',
4239
nominal_code='610',
4340
source_modified_date='2022-10-23T00:00:00.000Z',
4441
status=shared.AccountStatus.ACTIVE,
42+
supplemental_data=shared.SupplementalData(
43+
content={
44+
"Money": {
45+
"blue": 'shred',
46+
},
47+
},
48+
),
4549
type=shared.AccountType.ASSET,
4650
valid_datatype_links=[
4751
shared.AccountValidDataTypeLinks(
4852
links=[
49-
'suscipit',
53+
'abnormally',
5054
],
51-
property='iure',
5255
),
5356
],
5457
),
5558
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5659
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
57-
timeout_in_minutes=297534,
5860
)
5961

6062
res = s.accounts.create(req)
6163

6264
if res.create_account_response is not None:
6365
# handle response
66+
pass
6467
```
6568
<!-- End SDK Example Usage -->
6669

6770
<!-- Start SDK Available Operations -->
6871
## Available Resources and Operations
6972

7073

71-
### [Accounts](docs/sdks/accounts/README.md)
74+
### [accounts](docs/sdks/accounts/README.md)
7275

7376
* [create](docs/sdks/accounts/README.md#create) - Create account
7477
* [get](docs/sdks/accounts/README.md#get) - Get account
7578
* [get_create_model](docs/sdks/accounts/README.md#get_create_model) - Get create account model
7679
* [list](docs/sdks/accounts/README.md#list) - List accounts
7780

78-
### [BillCreditNotes](docs/sdks/billcreditnotes/README.md)
81+
### [bill_credit_notes](docs/sdks/billcreditnotes/README.md)
7982

8083
* [create](docs/sdks/billcreditnotes/README.md#create) - Create bill credit note
8184
* [get](docs/sdks/billcreditnotes/README.md#get) - Get bill credit note
8285
* [get_create_update_model](docs/sdks/billcreditnotes/README.md#get_create_update_model) - Get create/update bill credit note model
8386
* [list](docs/sdks/billcreditnotes/README.md#list) - List bill credit notes
8487
* [update](docs/sdks/billcreditnotes/README.md#update) - Update bill credit note
8588

86-
### [BillPayments](docs/sdks/billpayments/README.md)
89+
### [bill_payments](docs/sdks/billpayments/README.md)
8790

8891
* [create](docs/sdks/billpayments/README.md#create) - Create bill payments
8992
* [delete](docs/sdks/billpayments/README.md#delete) - Delete bill payment
9093
* [get](docs/sdks/billpayments/README.md#get) - Get bill payment
9194
* [get_create_model](docs/sdks/billpayments/README.md#get_create_model) - Get create bill payment model
9295
* [list](docs/sdks/billpayments/README.md#list) - List bill payments
9396

94-
### [Bills](docs/sdks/bills/README.md)
97+
### [bills](docs/sdks/bills/README.md)
9598

9699
* [create](docs/sdks/bills/README.md#create) - Create bill
97100
* [delete](docs/sdks/bills/README.md#delete) - Delete bill
@@ -105,70 +108,70 @@ if res.create_account_response is not None:
105108
* [update](docs/sdks/bills/README.md#update) - Update bill
106109
* [upload_attachment](docs/sdks/bills/README.md#upload_attachment) - Upload bill attachment
107110

108-
### [Companies](docs/sdks/companies/README.md)
111+
### [companies](docs/sdks/companies/README.md)
109112

110113
* [create](docs/sdks/companies/README.md#create) - Create company
111114
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
112115
* [get](docs/sdks/companies/README.md#get) - Get company
113116
* [list](docs/sdks/companies/README.md#list) - List companies
114117
* [update](docs/sdks/companies/README.md#update) - Update company
115118

116-
### [CompanyInfo](docs/sdks/companyinfo/README.md)
119+
### [company_info](docs/sdks/companyinfo/README.md)
117120

118121
* [get_accounting_profile](docs/sdks/companyinfo/README.md#get_accounting_profile) - Get company accounting profile
119122

120-
### [Connections](docs/sdks/connections/README.md)
123+
### [connections](docs/sdks/connections/README.md)
121124

122125
* [create](docs/sdks/connections/README.md#create) - Create connection
123126
* [delete](docs/sdks/connections/README.md#delete) - Delete connection
124127
* [get](docs/sdks/connections/README.md#get) - Get connection
125128
* [list](docs/sdks/connections/README.md#list) - List connections
126129
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
127130

128-
### [JournalEntries](docs/sdks/journalentries/README.md)
131+
### [journal_entries](docs/sdks/journalentries/README.md)
129132

130133
* [create](docs/sdks/journalentries/README.md#create) - Create journal entry
131134
* [get_create_model](docs/sdks/journalentries/README.md#get_create_model) - Get create journal entry model
132135

133-
### [Journals](docs/sdks/journals/README.md)
136+
### [journals](docs/sdks/journals/README.md)
134137

135138
* [create](docs/sdks/journals/README.md#create) - Create journal
136139
* [get](docs/sdks/journals/README.md#get) - Get journal
137140
* [get_create_model](docs/sdks/journals/README.md#get_create_model) - Get create journal model
138141
* [list](docs/sdks/journals/README.md#list) - List journals
139142

140-
### [ManageData](docs/sdks/managedata/README.md)
143+
### [manage_data](docs/sdks/managedata/README.md)
141144

142145
* [get](docs/sdks/managedata/README.md#get) - Get data status
143146
* [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation
144147
* [list_pull_operations](docs/sdks/managedata/README.md#list_pull_operations) - List pull operations
145148
* [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data
146149
* [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type
147150

148-
### [PaymentMethods](docs/sdks/paymentmethods/README.md)
151+
### [payment_methods](docs/sdks/paymentmethods/README.md)
149152

150153
* [get](docs/sdks/paymentmethods/README.md#get) - Get payment method
151154
* [list](docs/sdks/paymentmethods/README.md#list) - List payment methods
152155

153-
### [PushOperations](docs/sdks/pushoperations/README.md)
156+
### [push_operations](docs/sdks/pushoperations/README.md)
154157

155158
* [get](docs/sdks/pushoperations/README.md#get) - Get push operation
156159
* [list](docs/sdks/pushoperations/README.md#list) - List push operations
157160

158-
### [Suppliers](docs/sdks/suppliers/README.md)
161+
### [suppliers](docs/sdks/suppliers/README.md)
159162

160163
* [create](docs/sdks/suppliers/README.md#create) - Create supplier
161164
* [get](docs/sdks/suppliers/README.md#get) - Get supplier
162165
* [get_create_update_model](docs/sdks/suppliers/README.md#get_create_update_model) - Get create/update supplier model
163166
* [list](docs/sdks/suppliers/README.md#list) - List suppliers
164167
* [update](docs/sdks/suppliers/README.md#update) - Update supplier
165168

166-
### [TaxRates](docs/sdks/taxrates/README.md)
169+
### [tax_rates](docs/sdks/taxrates/README.md)
167170

168171
* [get](docs/sdks/taxrates/README.md#get) - Get tax rate
169172
* [list](docs/sdks/taxrates/README.md#list) - List all tax rates
170173

171-
### [TrackingCategories](docs/sdks/trackingcategories/README.md)
174+
### [tracking_categories](docs/sdks/trackingcategories/README.md)
172175

173176
* [get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories
174177
* [list](docs/sdks/trackingcategories/README.md#list) - List tracking categories
@@ -178,8 +181,6 @@ if res.create_account_response is not None:
178181

179182
<!-- Start Dev Containers -->
180183

181-
182-
183184
<!-- End Dev Containers -->
184185

185186

sync-for-payables/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ Based on:
3838
### Generated
3939
- [python v1.2.0] sync-for-payables
4040
### Releases
41-
- [PyPI v1.2.0] https://pypi.org/project/codat-sync-for-payables/1.2.0 - sync-for-payables
41+
- [PyPI v1.2.0] https://pypi.org/project/codat-sync-for-payables/1.2.0 - sync-for-payables
42+
43+
## 2023-10-17 14:49:20
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
47+
- Speakeasy CLI 1.100.2 (2.159.2) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [python v2.0.0] sync-for-payables
50+
### Releases
51+
- [PyPI v2.0.0] https://pypi.org/project/codat-sync-for-payables/2.0.0 - sync-for-payables

sync-for-payables/USAGE.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,38 @@ req = operations.CreateAccountRequest(
1818
current_balance=Decimal('0'),
1919
description='Invoices the business has issued but has not yet collected payment on.',
2020
fully_qualified_category='Asset.Current',
21-
fully_qualified_name='Fixed Asset',
21+
fully_qualified_name='Cash On Hand',
2222
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
23-
is_bank_account=False,
24-
metadata=shared.Metadata(
25-
is_deleted=False,
26-
),
23+
metadata=shared.Metadata(),
2724
modified_date='2022-10-23T00:00:00.000Z',
2825
name='Accounts Receivable',
2926
nominal_code='610',
3027
source_modified_date='2022-10-23T00:00:00.000Z',
3128
status=shared.AccountStatus.ACTIVE,
29+
supplemental_data=shared.SupplementalData(
30+
content={
31+
"Money": {
32+
"blue": 'shred',
33+
},
34+
},
35+
),
3236
type=shared.AccountType.ASSET,
3337
valid_datatype_links=[
3438
shared.AccountValidDataTypeLinks(
3539
links=[
36-
'unde',
40+
'abnormally',
3741
],
38-
property='nulla',
3942
),
4043
],
4144
),
4245
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
4346
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
44-
timeout_in_minutes=544883,
4547
)
4648

4749
res = s.accounts.create(req)
4850

4951
if res.create_account_response is not None:
5052
# handle response
53+
pass
5154
```
5255
<!-- End SDK Example Usage -->

sync-for-payables/docs/models/operations/createaccountrequest.md

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: | 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 | |
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. | |

sync-for-payables/docs/models/operations/createaccountresponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
| Field | Type | Required | Description |
77
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | N/A |
8+
| `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 |
1010
| `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 |
11+
| `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 |

0 commit comments

Comments
 (0)