Skip to content

Commit ff5dcd7

Browse files
chore: speakeasy sdk regeneration - Generate Accounting SDK (#30)
* ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.2 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.4 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.5 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.6 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.7 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.9.1 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.9.2 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.11.0 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent eda0922 commit ff5dcd7

File tree

180 files changed

+17600
-12462
lines changed

Some content is hidden

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

180 files changed

+17600
-12462
lines changed

accounting/README.md

Lines changed: 53 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,20 @@ pip install codat-accounting
1414
import codat
1515
from codat.models import operations, shared
1616

17-
s = codat.Codat()
18-
s.config_security(
17+
s = codat.Codat(
1918
security=shared.Security(
20-
api_key="YOUR_API_KEY_HERE",
21-
)
22-
)
23-
24-
req = operations.GetAccountTransactionRequest(
25-
security=operations.GetAccountTransactionSecurity(
26-
api_key="YOUR_API_KEY_HERE",
27-
),
28-
path_params=operations.GetAccountTransactionPathParams(
29-
account_transaction_id="unde",
30-
company_id="deserunt",
31-
connection_id="porro",
19+
auth_header="YOUR_API_KEY_HERE",
3220
),
3321
)
22+
23+
24+
req = operations.GetCreateUpdateAccountTransactionsModelRequest(
25+
account_transaction_id="unde",
26+
company_id="deserunt",
27+
connection_id="porro",
28+
)
3429

35-
res = s.account_transactions.get_account_transaction(req)
30+
res = s.account_transactions.get_create_update_account_transactions_model(req)
3631

3732
if res.source_modified_date is not None:
3833
# handle response
@@ -45,89 +40,105 @@ if res.source_modified_date is not None:
4540

4641
### account_transactions
4742

48-
* `get_account_transaction` - Get account transaction
43+
* `get_create_update_account_transactions_model` - Get account transaction
4944
* `list_account_transactions` - List account transactions
5045

5146
### accounts
5247

48+
* `create_account` - Create account
5349
* `get_account` - Get account
5450
* `get_accounts` - List accounts
55-
* `post_account` - Create account
51+
* `get_create_chart_of_accounts_model` - Get create account model
5652

5753
### bank_account_transactions
5854

5955
* `get_bank_account_push_options` - List push options for bank account bank transactions
60-
* `list_all_bank_transactionscount` - List bank transactions for bank account
56+
* `list_bank_account_transactions` - List bank transactions for bank account
6157
* `list_bank_transactions` - List all bank transactions
6258
* `post_bank_transactions` - Create bank transactions
6359

6460
### bank_accounts
6561

62+
* `create_bank_account` - Create bank account
6663
* `get_all_bank_account` - Get bank account
6764
* `get_bank_account` - Get bank account
65+
* `get_create_update_bank_accounts_model` - Get create/update bank account model
6866
* `list_bank_accounts` - List bank accounts
69-
* `post_bank_account` - Create bank account
7067
* `put_bank_account` - Update bank account
7168

7269
### bill_credit_notes
7370

71+
* `create_bill_credit_note` - Create bill credit note
7472
* `get_bill_credit_note` - Get bill credit note
73+
* `get_create_update_bill_credit_notes_model` - Get create/update bill credit note model
7574
* `list_bill_credit_notes` - List bill credit notes
76-
* `post_bill_credit_note` - Create bill credit note
7775
* `update_bill_credit_note` - Update bill credit note
7876

7977
### bill_payments
8078

79+
* `create_bill_payment` - Create bill payments
80+
* `delete_companies_company_id_connections_connection_id_push_bill_payments_bill_payment_id` - Delete bill payment
8181
* `get_bill_payments` - Get bill payment
82+
* `get_create_bill_payments_model` - Get create bill payment model
8283
* `list_bill_payments` - List bill payments
83-
* `post_bill_payment` - Create bill payment
8484

8585
### bills
8686

87+
* `create_bill` - Create bill
88+
* `create_bill_attachments` - Create bill attachments
89+
* `delete_companies_company_id_connections_connection_id_push_bills_bill_id` - Delete bill
8790
* `download_bill_attachment` - Download bill attachment
8891
* `get_bill` - Get bill
8992
* `get_bill_attachment` - Get bill attachment
9093
* `get_bill_attachments` - List bill attachments
94+
* `get_create_update_bills_model` - Get create/update bill model
9195
* `list_bills` - List bills
92-
* `post_bill` - Create bill
93-
* `post_bill_attachments` - Create bill attachments
9496
* `update_bill` - Update bill
9597

98+
### company_info
99+
100+
* `get_company_info` - Get company info
101+
* `post_sync_info` - Refresh company info
102+
96103
### credit_notes
97104

105+
* `create_credit_note` - Update creditNote
106+
* `get_create_update_credit_notes_model` - Get create/update credit note model
98107
* `get_credit_note` - Get credit note
99108
* `list_credit_notes` - List credit notes
100-
* `post_credit_note` - Update creditNote
101109
* `push_credit_note` - Create credit note
102110

103111
### customers
104112

113+
* `create_customer` - Create customer
105114
* `download_customer_attachment` - Download customer attachment
115+
* `get_create_update_customers_model` - Get create/update customer model
106116
* `get_customer` - Get customer
107117
* `get_customer_attachment` - Get customer attachment
108118
* `get_customer_attachments` - List customer attachments
109119
* `get_customers` - List customers
110-
* `post_customer` - Create customer
111120
* `update_customer` - Update customer
112121

113122
### direct_costs
114123

124+
* `create_direct_cost` - Create direct cost
115125
* `download_direct_cost_attachment` - Download direct cost attachment
126+
* `get_create_direct_costs_model` - Get create direct cost model
116127
* `get_direct_cost` - Get direct cost
117128
* `get_direct_cost_attachment` - Get direct cost attachment
118129
* `get_direct_costs` - List direct costs
119130
* `list_direct_cost_attachments` - List direct cost attachments
120-
* `post_direct_cost` - Create direct cost
121131
* `post_direct_cost_attachment` - Create direct cost attachment
122132

123133
### direct_incomes
124134

135+
* `create_direct_income` - Create direct income
125136
* `download_direct_income_attachment` - Download direct income attachment
137+
* `get_create_direct_incomes_model` - Get create direct income model
126138
* `get_direct_income` - Get direct income
127139
* `get_direct_income_attachment` - Get direct income attachment
128140
* `get_direct_incomes` - Get direct incomes
129141
* `list_direct_income_attachments` - List direct income attachments
130-
* `post_direct_income` - Create direct income
131142
* `post_direct_income_attachment` - Create direct income attachment
132143

133144
### financials
@@ -136,37 +147,36 @@ if res.source_modified_date is not None:
136147
* `get_cash_flow_statement` - Get cash flow statement
137148
* `get_profit_and_loss` - Get profit and loss
138149

139-
### info
140-
141-
* `get_company_info` - Get company info
142-
* `post_sync_info` - Refresh company info
143-
144150
### invoices
145151

152+
* `create_invoice` - Create invoice
146153
* `donwload_invoice_attachment` - Download invoice attachment
154+
* `get_create_update_invoices_model` - Get create/update invoice model
147155
* `get_invoice` - Get invoice
148156
* `get_invoice_attachment` - Get invoice attachment
149157
* `get_invoice_attachments` - Get invoice attachments
150158
* `get_invoice_pdf` - Get invoice as PDF
151159
* `list_invoices` - List invoices
152-
* `post_invoice` - Create invoice
153160
* `push_invoice_attachment` - Push invoice attachment
154161
* `update_invoice` - Update invoice
155162

156163
### items
157164

165+
* `create_item` - Create item
166+
* `get_create_items_model` - Get create item model
158167
* `get_item` - Get item
159168
* `list_items` - List items
160-
* `post_item` - Create item
161169

162170
### journal_entries
163171

172+
* `create_journal_entry` - Create journal entry
173+
* `get_create_journal_entries_model` - Get create journal entry model
164174
* `get_journal_entry` - Get journal entry
165175
* `list_journal_entries` - List journal entries
166-
* `post_journal_entry` - Create journal entry
167176

168177
### journals
169178

179+
* `get_create_journals_model` - Get create journal model
170180
* `get_journal` - Get journal
171181
* `list_journals` - List journals
172182
* `push_journal` - Create journal
@@ -178,15 +188,17 @@ if res.source_modified_date is not None:
178188

179189
### payments
180190

191+
* `create_payment` - Create payment
192+
* `get_create_payments_model` - Get create payment model
181193
* `get_payment` - Get payment
182194
* `list_payments` - List payments
183-
* `post_payment` - Create payment
184195

185196
### purchase_orders
186197

198+
* `create_purchase_order` - Create purchase order
199+
* `get_create_update_purchase_orders_model` - Get create/update purchase order model
187200
* `get_purchase_order` - Get purchase order
188201
* `list_purchase_orders` - List purchase orders
189-
* `post_purchase_order` - Create purchase order
190202
* `update_purchase_order` - Update purchase order
191203

192204
### reports
@@ -203,12 +215,13 @@ if res.source_modified_date is not None:
203215

204216
### suppliers
205217

218+
* `create_suppliers` - Create suppliers
206219
* `download_supplier_attachment` - Download supplier attachment
220+
* `get_create_update_suppliers_model` - Get create/update supplier model
207221
* `get_supplier` - Get supplier
208222
* `get_supplier_attachment` - Get supplier attachment
209223
* `list_supplier_attachments` - List supplier attachments
210224
* `list_suppliers` - List suppliers
211-
* `post_suppliers` - Create suppliers
212225
* `put_supplier` - Update supplier
213226

214227
### tax_rates
@@ -223,9 +236,10 @@ if res.source_modified_date is not None:
223236

224237
### transfers
225238

239+
* `create_transfer` - Create transfer
240+
* `get_create_transfers_model` - Get create transfer model
226241
* `get_transfer` - Get transfer
227242
* `list_transfers` - List transfers
228-
* `post_transfer` - Create transfer
229243
<!-- End SDK Available Operations -->
230244

231245
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

accounting/RELEASES.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,68 @@ Based on:
3030
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
3131
- Speakeasy CLI 1.7.1 https://github.com/speakeasy-api/speakeasy
3232
### Releases
33-
- [PyPI v0.1.3] https://pypi.org/project/codat-accounting/0.1.3 - accounting
33+
- [PyPI v0.1.3] https://pypi.org/project/codat-accounting/0.1.3 - accounting
34+
35+
## 2023-03-04 00:10:47
36+
### Changes
37+
Based on:
38+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
39+
- Speakeasy CLI 1.8.2 https://github.com/speakeasy-api/speakeasy
40+
### Releases
41+
- [PyPI v0.2.0] https://pypi.org/project/codat-accounting/0.2.0 - accounting
42+
43+
## 2023-03-06 00:11:29
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
47+
- Speakeasy CLI 1.8.4 https://github.com/speakeasy-api/speakeasy
48+
### Releases
49+
- [PyPI v0.2.1] https://pypi.org/project/codat-accounting/0.2.1 - accounting
50+
51+
## 2023-03-07 00:12:03
52+
### Changes
53+
Based on:
54+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
55+
- Speakeasy CLI 1.8.5 https://github.com/speakeasy-api/speakeasy
56+
### Releases
57+
- [PyPI v0.2.2] https://pypi.org/project/codat-accounting/0.2.2 - accounting
58+
59+
## 2023-03-08 00:11:03
60+
### Changes
61+
Based on:
62+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
63+
- Speakeasy CLI 1.8.6 https://github.com/speakeasy-api/speakeasy
64+
### Releases
65+
- [PyPI v0.2.3] https://pypi.org/project/codat-accounting/0.2.3 - accounting
66+
67+
## 2023-03-09 00:11:30
68+
### Changes
69+
Based on:
70+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
71+
- Speakeasy CLI 1.8.7 https://github.com/speakeasy-api/speakeasy
72+
### Releases
73+
- [PyPI v0.2.4] https://pypi.org/project/codat-accounting/0.2.4 - accounting
74+
75+
## 2023-03-10 00:11:34
76+
### Changes
77+
Based on:
78+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
79+
- Speakeasy CLI 1.9.1 https://github.com/speakeasy-api/speakeasy
80+
### Releases
81+
- [PyPI v0.3.0] https://pypi.org/project/codat-accounting/0.3.0 - accounting
82+
83+
## 2023-03-11 00:10:12
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
87+
- Speakeasy CLI 1.9.2 https://github.com/speakeasy-api/speakeasy
88+
### Releases
89+
- [PyPI v0.3.1] https://pypi.org/project/codat-accounting/0.3.1 - accounting
90+
91+
## 2023-03-15 00:10:54
92+
### Changes
93+
Based on:
94+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
95+
- Speakeasy CLI 1.11.0 https://github.com/speakeasy-api/speakeasy
96+
### Releases
97+
- [PyPI v0.4.0] https://pypi.org/project/codat-accounting/0.4.0 - accounting

accounting/USAGE.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,20 @@
33
import codat
44
from codat.models import operations, shared
55

6-
s = codat.Codat()
7-
s.config_security(
6+
s = codat.Codat(
87
security=shared.Security(
9-
api_key="YOUR_API_KEY_HERE",
10-
)
11-
)
12-
13-
req = operations.GetAccountTransactionRequest(
14-
security=operations.GetAccountTransactionSecurity(
15-
api_key="YOUR_API_KEY_HERE",
16-
),
17-
path_params=operations.GetAccountTransactionPathParams(
18-
account_transaction_id="unde",
19-
company_id="deserunt",
20-
connection_id="porro",
8+
auth_header="YOUR_API_KEY_HERE",
219
),
2210
)
11+
12+
13+
req = operations.GetCreateUpdateAccountTransactionsModelRequest(
14+
account_transaction_id="unde",
15+
company_id="deserunt",
16+
connection_id="porro",
17+
)
2318

24-
res = s.account_transactions.get_account_transaction(req)
19+
res = s.account_transactions.get_create_update_account_transactions_model(req)
2520

2621
if res.source_modified_date is not None:
2722
# handle response

0 commit comments

Comments
 (0)