Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ import asyncio
client = AsyncMonite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", )
async def main() -> None:
await client.products.create(name='name', )
asyncio.run(main())```
asyncio.run(main())
```

## Exception Handling

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "monite"

[tool.poetry]
name = "monite"
version = "0.5.2"
version = "0.5.3"
description = ""
readme = "README.md"
authors = []
Expand Down
115 changes: 109 additions & 6 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5159,6 +5159,22 @@ client.e_invoicing_connections.post_einvoicing_connections(address=EinvoicingAdd
<dl>
<dd>

**is_receiver:** `typing.Optional[bool]` — Set to `true` if the entity needs to receive e-invoices.

</dd>
</dl>

<dl>
<dd>

**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`.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -5269,6 +5285,81 @@ client.e_invoicing_connections.delete_einvoicing_connections_id(einvoicing_conne
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.e_invoicing_connections.<a href="src/monite/e_invoicing_connections/client.py">patch_einvoicing_connections_id</a>(...)</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from monite import Monite
client = Monite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", )
client.e_invoicing_connections.patch_einvoicing_connections_id(einvoicing_connection_id='einvoicing_connection_id', )

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**einvoicing_connection_id:** `str`

</dd>
</dl>

<dl>
<dd>

**address:** `typing.Optional[UpdateEinvoicingAddress]` — Integration Address

</dd>
</dl>

<dl>
<dd>

**is_receiver:** `typing.Optional[bool]` — Set to `true` if the entity needs to receive e-invoices.

</dd>
</dl>

<dl>
<dd>

**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`.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down Expand Up @@ -24901,7 +24992,11 @@ client.accounting.synced_records.get(object_type="product", )
<dl>
<dd>

**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.
**limit:** `typing.Optional[int]`

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.

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

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

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

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

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

Expand Down Expand Up @@ -25205,7 +25300,11 @@ client.accounting.tax_rates.get()
<dl>
<dd>

**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.
**limit:** `typing.Optional[int]`

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.

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

</dd>
</dl>
Expand All @@ -25215,7 +25314,7 @@ client.accounting.tax_rates.get()

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

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

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

Expand Down Expand Up @@ -25364,7 +25463,11 @@ client.accounting.ledger_accounts.get()
<dl>
<dd>

**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.
**limit:** `typing.Optional[int]`

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.

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

</dd>
</dl>
Expand All @@ -25374,7 +25477,7 @@ client.accounting.ledger_accounts.get()

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
httpx>=0.21.2
pydantic>= 1.9.2
pydantic-core==^2.18.2
pydantic-core==2.18.2
typing_extensions>= 4.0.0
2 changes: 2 additions & 0 deletions src/monite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@
UnitResponse,
UpdateCreditNote,
UpdateCreditNotePayload,
UpdateEinvoicingAddress,
UpdateEntityAddressSchema,
UpdateEntityRequest,
UpdateInvoice,
Expand Down Expand Up @@ -1449,6 +1450,7 @@
"UnsupportedMediaTypeError",
"UpdateCreditNote",
"UpdateCreditNotePayload",
"UpdateEinvoicingAddress",
"UpdateEntityAddressSchema",
"UpdateEntityRequest",
"UpdateInvoice",
Expand Down
12 changes: 8 additions & 4 deletions src/monite/accounting/ledger_accounts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down Expand Up @@ -134,10 +136,12 @@ async def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down
12 changes: 8 additions & 4 deletions src/monite/accounting/ledger_accounts/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down Expand Up @@ -188,10 +190,12 @@ async def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down
12 changes: 8 additions & 4 deletions src/monite/accounting/synced_records/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down Expand Up @@ -224,10 +226,12 @@ async def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down
12 changes: 8 additions & 4 deletions src/monite/accounting/synced_records/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down Expand Up @@ -308,10 +310,12 @@ async def get(
Sort order (ascending by default). Typically used together with the `sort` parameter.

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

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

pagination_token : typing.Optional[str]
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.
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.

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

Expand Down
Loading