Skip to content

Commit

Permalink
Release 0.5.8-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 9, 2024
1 parent 52d6ceb commit 01a139d
Show file tree
Hide file tree
Showing 26 changed files with 1,444 additions and 132 deletions.
197 changes: 99 additions & 98 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mercoa"
version = "0.5.7"
version = "0.5.8-rc1"
description = ""
readme = "README.md"
authors = []
Expand Down
220 changes: 208 additions & 12 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ client.entity_group.get(
<dl>
<dd>

**entity_metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for entities in the group. For more complex metadata, use the Metadata API.
**return_entity_metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for entities in the group. For more complex metadata, use the Metadata API.

</dd>
</dl>
Expand Down Expand Up @@ -1332,6 +1332,14 @@ If false, entities that are marked as payors will not be returned.
<dl>
<dd>

**return_metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for the entity. For more complex metadata, use the Metadata API.

</dd>
</dl>

<dl>
<dd>

**limit:** `typing.Optional[int]` — Number of entities to return. Limit can range between 1 and 100, and the default is 10.

</dd>
Expand Down Expand Up @@ -1479,7 +1487,7 @@ client.entity.get(
<dl>
<dd>

**metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for the entity. For more complex metadata, use the Metadata API.
**return_metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for the entity. For more complex metadata, use the Metadata API.

</dd>
</dl>
Expand Down Expand Up @@ -2167,6 +2175,92 @@ client.entity.send_onboarding_link(
</dl>


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

<details><summary><code>client.entity.<a href="src/mercoa/entity/client.py">events</a>(...)</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Get all events for an entity
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from mercoa import Mercoa

client = Mercoa(
token="YOUR_TOKEN",
)
client.entity.events(
entity_id="ent_a0f6ea94-0761-4a5e-a416-3c453cb7eced",
)

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

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**entity_id:** `EntityId` — Entity ID or Entity ForeignID

</dd>
</dl>

<dl>
<dd>

**start_date:** `typing.Optional[dt.datetime]` — Start date filter. If not provided, events from the start of time will be returned.

</dd>
</dl>

<dl>
<dd>

**end_date:** `typing.Optional[dt.datetime]` — End date filter. If not provided, events to the end of time will be returned.

</dd>
</dl>

<dl>
<dd>

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

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


</dd>
</dl>
</details>
Expand Down Expand Up @@ -2681,7 +2775,7 @@ client.entity.user.get(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -2767,7 +2861,7 @@ client.entity.user.update(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -2854,7 +2948,7 @@ client.entity.user.delete(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -2937,7 +3031,7 @@ client.entity.user.get_token(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -3457,6 +3551,92 @@ client.invoice.delete(
</dl>


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

<details><summary><code>client.invoice.<a href="src/mercoa/invoice/client.py">events</a>(...)</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Get all events for an invoice
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from mercoa import Mercoa

client = Mercoa(
token="YOUR_TOKEN",
)
client.invoice.events(
invoice_id="inv_8545a84e-a45f-41bf-bdf1-33b42a55812c",
)

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

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**invoice_id:** `InvoiceId` — Invoice ID or Invoice ForeignID

</dd>
</dl>

<dl>
<dd>

**start_date:** `typing.Optional[dt.datetime]` — Start date filter. If not provided, events from the start of time will be returned.

</dd>
</dl>

<dl>
<dd>

**end_date:** `typing.Optional[dt.datetime]` — End date filter. If not provided, events to the end of time will be returned.

</dd>
</dl>

<dl>
<dd>

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

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


</dd>
</dl>
</details>
Expand Down Expand Up @@ -5512,6 +5692,14 @@ client.entity.counterparty.find_payees(
<dl>
<dd>

**return_metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for the counterparties.

</dd>
</dl>

<dl>
<dd>

**limit:** `typing.Optional[int]` — Number of counterparties to return. Limit can range between 1 and 100, and the default is 10.

</dd>
Expand Down Expand Up @@ -5645,6 +5833,14 @@ client.entity.counterparty.find_payors(
<dl>
<dd>

**return_metadata:** `typing.Optional[bool]` — If true, will return simple key/value metadata for the counterparties.

</dd>
</dl>

<dl>
<dd>

**limit:** `typing.Optional[int]` — Number of counterparties to return. Limit can range between 1 and 100, and the default is 10.

</dd>
Expand Down Expand Up @@ -8919,7 +9115,7 @@ client.entity.user.notification_policy.get_all(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -8999,7 +9195,7 @@ client.entity.user.notification_policy.get(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -9091,7 +9287,7 @@ client.entity.user.notification_policy.update(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -9173,7 +9369,7 @@ client.entity.user.notifications.find(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -9297,7 +9493,7 @@ client.entity.user.notifications.get(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down Expand Up @@ -9389,7 +9585,7 @@ client.entity.user.notifications.update(
<dl>
<dd>

**user_id:** `EntityUserId`
**user_id:** `EntityUserId` — User ID or User ForeignID

</dd>
</dl>
Expand Down
8 changes: 8 additions & 0 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
EntityAddPayorsRequest,
EntityCustomizationRequest,
EntityCustomizationResponse,
EntityEvent,
EntityEventsResponse,
EntityHidePayeesRequest,
EntityHidePayorsRequest,
EntityId,
Expand Down Expand Up @@ -153,6 +155,8 @@
FindInvoiceResponse,
InvoiceCreationRequest,
InvoiceDateFilter,
InvoiceEvent,
InvoiceEventsResponse,
InvoiceFailureType,
InvoiceFeesRequest,
InvoiceFeesResponse,
Expand Down Expand Up @@ -393,6 +397,8 @@
"EntityAddPayorsRequest",
"EntityCustomizationRequest",
"EntityCustomizationResponse",
"EntityEvent",
"EntityEventsResponse",
"EntityGroupEntityUpdateRequest",
"EntityGroupFindResponse",
"EntityGroupId",
Expand Down Expand Up @@ -444,6 +450,8 @@
"InvoiceCreationRequest",
"InvoiceDateFilter",
"InvoiceEmailWebhook",
"InvoiceEvent",
"InvoiceEventsResponse",
"InvoiceFailureType",
"InvoiceFeesRequest",
"InvoiceFeesResponse",
Expand Down
2 changes: 1 addition & 1 deletion src/mercoa/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "mercoa",
"X-Fern-SDK-Version": "0.5.7",
"X-Fern-SDK-Version": "0.5.8-rc1",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
Loading

0 comments on commit 01a139d

Please sign in to comment.