Skip to content

Commit edf3778

Browse files
committed
SDK regeneration
1 parent d736f9a commit edf3778

18 files changed

Lines changed: 641 additions & 38 deletions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ import asyncio
3939
client = AsyncMonite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", )
4040
async def main() -> None:
4141
await client.products.create(name='name', )
42-
asyncio.run(main())```
42+
asyncio.run(main())
43+
```
4344

4445
## Exception Handling
4546

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "monite"
33

44
[tool.poetry]
55
name = "monite"
6-
version = "0.5.2"
6+
version = "0.5.3"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 109 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5159,6 +5159,22 @@ client.e_invoicing_connections.post_einvoicing_connections(address=EinvoicingAdd
51595159
<dl>
51605160
<dd>
51615161

5162+
**is_receiver:** `typing.Optional[bool]` — Set to `true` if the entity needs to receive e-invoices.
5163+
5164+
</dd>
5165+
</dl>
5166+
5167+
<dl>
5168+
<dd>
5169+
5170+
**is_sender:** `typing.Optional[bool]` — Set to `true` if the entity needs to send e-invoices. Either `is_sender` or `is_receiver` or both must be `true`.
5171+
5172+
</dd>
5173+
</dl>
5174+
5175+
<dl>
5176+
<dd>
5177+
51625178
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
51635179

51645180
</dd>
@@ -5269,6 +5285,81 @@ client.e_invoicing_connections.delete_einvoicing_connections_id(einvoicing_conne
52695285
</dl>
52705286

52715287

5288+
</dd>
5289+
</dl>
5290+
</details>
5291+
5292+
<details><summary><code>client.e_invoicing_connections.<a href="src/monite/e_invoicing_connections/client.py">patch_einvoicing_connections_id</a>(...)</code></summary>
5293+
<dl>
5294+
<dd>
5295+
5296+
#### 🔌 Usage
5297+
5298+
<dl>
5299+
<dd>
5300+
5301+
<dl>
5302+
<dd>
5303+
5304+
```python
5305+
from monite import Monite
5306+
client = Monite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", )
5307+
client.e_invoicing_connections.patch_einvoicing_connections_id(einvoicing_connection_id='einvoicing_connection_id', )
5308+
5309+
```
5310+
</dd>
5311+
</dl>
5312+
</dd>
5313+
</dl>
5314+
5315+
#### ⚙️ Parameters
5316+
5317+
<dl>
5318+
<dd>
5319+
5320+
<dl>
5321+
<dd>
5322+
5323+
**einvoicing_connection_id:** `str`
5324+
5325+
</dd>
5326+
</dl>
5327+
5328+
<dl>
5329+
<dd>
5330+
5331+
**address:** `typing.Optional[UpdateEinvoicingAddress]` — Integration Address
5332+
5333+
</dd>
5334+
</dl>
5335+
5336+
<dl>
5337+
<dd>
5338+
5339+
**is_receiver:** `typing.Optional[bool]` — Set to `true` if the entity needs to receive e-invoices.
5340+
5341+
</dd>
5342+
</dl>
5343+
5344+
<dl>
5345+
<dd>
5346+
5347+
**is_sender:** `typing.Optional[bool]` — Set to `true` if the entity needs to send e-invoices. Either `is_sender` or `is_receiver` or both must be `true`.
5348+
5349+
</dd>
5350+
</dl>
5351+
5352+
<dl>
5353+
<dd>
5354+
5355+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
5356+
5357+
</dd>
5358+
</dl>
5359+
</dd>
5360+
</dl>
5361+
5362+
52725363
</dd>
52735364
</dl>
52745365
</details>
@@ -24901,7 +24992,11 @@ client.accounting.synced_records.get(object_type="product", )
2490124992
<dl>
2490224993
<dd>
2490324994

24904-
**limit:** `typing.Optional[int]` — The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
24995+
**limit:** `typing.Optional[int]`
24996+
24997+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
24998+
24999+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
2490525000

2490625001
</dd>
2490725002
</dl>
@@ -24911,7 +25006,7 @@ client.accounting.synced_records.get(object_type="product", )
2491125006

2491225007
**pagination_token:** `typing.Optional[str]`
2491325008

24914-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
25009+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
2491525010

2491625011
If not specified, the first page of results will be returned.
2491725012

@@ -25205,7 +25300,11 @@ client.accounting.tax_rates.get()
2520525300
<dl>
2520625301
<dd>
2520725302

25208-
**limit:** `typing.Optional[int]` — The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
25303+
**limit:** `typing.Optional[int]`
25304+
25305+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
25306+
25307+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
2520925308

2521025309
</dd>
2521125310
</dl>
@@ -25215,7 +25314,7 @@ client.accounting.tax_rates.get()
2521525314

2521625315
**pagination_token:** `typing.Optional[str]`
2521725316

25218-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
25317+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
2521925318

2522025319
If not specified, the first page of results will be returned.
2522125320

@@ -25364,7 +25463,11 @@ client.accounting.ledger_accounts.get()
2536425463
<dl>
2536525464
<dd>
2536625465

25367-
**limit:** `typing.Optional[int]` — The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
25466+
**limit:** `typing.Optional[int]`
25467+
25468+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
25469+
25470+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
2536825471

2536925472
</dd>
2537025473
</dl>
@@ -25374,7 +25477,7 @@ client.accounting.ledger_accounts.get()
2537425477

2537525478
**pagination_token:** `typing.Optional[str]`
2537625479

25377-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
25480+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
2537825481

2537925482
If not specified, the first page of results will be returned.
2538025483

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
httpx>=0.21.2
22
pydantic>= 1.9.2
3-
pydantic-core==^2.18.2
3+
pydantic-core==2.18.2
44
typing_extensions>= 4.0.0

src/monite/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@
652652
UnitResponse,
653653
UpdateCreditNote,
654654
UpdateCreditNotePayload,
655+
UpdateEinvoicingAddress,
655656
UpdateEntityAddressSchema,
656657
UpdateEntityRequest,
657658
UpdateInvoice,
@@ -1449,6 +1450,7 @@
14491450
"UnsupportedMediaTypeError",
14501451
"UpdateCreditNote",
14511452
"UpdateCreditNotePayload",
1453+
"UpdateEinvoicingAddress",
14521454
"UpdateEntityAddressSchema",
14531455
"UpdateEntityRequest",
14541456
"UpdateInvoice",

src/monite/accounting/ledger_accounts/client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ def get(
4444
Sort order (ascending by default). Typically used together with the `sort` parameter.
4545
4646
limit : typing.Optional[int]
47-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
47+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
48+
49+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
4850
4951
pagination_token : typing.Optional[str]
50-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
52+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
5153
5254
If not specified, the first page of results will be returned.
5355
@@ -134,10 +136,12 @@ async def get(
134136
Sort order (ascending by default). Typically used together with the `sort` parameter.
135137
136138
limit : typing.Optional[int]
137-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
139+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
140+
141+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
138142
139143
pagination_token : typing.Optional[str]
140-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
144+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
141145
142146
If not specified, the first page of results will be returned.
143147

src/monite/accounting/ledger_accounts/raw_client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ def get(
3939
Sort order (ascending by default). Typically used together with the `sort` parameter.
4040
4141
limit : typing.Optional[int]
42-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
42+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
43+
44+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
4345
4446
pagination_token : typing.Optional[str]
45-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
47+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
4648
4749
If not specified, the first page of results will be returned.
4850
@@ -188,10 +190,12 @@ async def get(
188190
Sort order (ascending by default). Typically used together with the `sort` parameter.
189191
190192
limit : typing.Optional[int]
191-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
193+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
194+
195+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
192196
193197
pagination_token : typing.Optional[str]
194-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
198+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
195199
196200
If not specified, the first page of results will be returned.
197201

src/monite/accounting/synced_records/client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ def get(
5959
Sort order (ascending by default). Typically used together with the `sort` parameter.
6060
6161
limit : typing.Optional[int]
62-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
62+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
63+
64+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
6365
6466
pagination_token : typing.Optional[str]
65-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
67+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
6668
6769
If not specified, the first page of results will be returned.
6870
@@ -224,10 +226,12 @@ async def get(
224226
Sort order (ascending by default). Typically used together with the `sort` parameter.
225227
226228
limit : typing.Optional[int]
227-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
229+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
230+
231+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
228232
229233
pagination_token : typing.Optional[str]
230-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
234+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
231235
232236
If not specified, the first page of results will be returned.
233237

src/monite/accounting/synced_records/raw_client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ def get(
5555
Sort order (ascending by default). Typically used together with the `sort` parameter.
5656
5757
limit : typing.Optional[int]
58-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
58+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
59+
60+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
5961
6062
pagination_token : typing.Optional[str]
61-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
63+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
6264
6365
If not specified, the first page of results will be returned.
6466
@@ -308,10 +310,12 @@ async def get(
308310
Sort order (ascending by default). Typically used together with the `sort` parameter.
309311
310312
limit : typing.Optional[int]
311-
The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.
313+
The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.
314+
315+
When using pagination with a non-default `limit`, you must provide the `limit` value alongside `pagination_token` in all subsequent pagination requests. Unlike other query parameters, `limit` is not inferred from `pagination_token`.
312316
313317
pagination_token : typing.Optional[str]
314-
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters are ignored and inferred from the initial query.
318+
A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If `pagination_token` is specified, all other query parameters except `limit` are ignored and inferred from the initial query.
315319
316320
If not specified, the first page of results will be returned.
317321

0 commit comments

Comments
 (0)