Skip to content

Commit

Permalink
Release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 14, 2024
1 parent b53648d commit 093f610
Show file tree
Hide file tree
Showing 24 changed files with 464 additions and 57 deletions.
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 = "v0.3.39"
version = "0.4.0"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
BusinessProfileRequest,
BusinessProfileResponse,
BusinessType,
CounterpartyCustomizationRequest,
CounterpartyInvoiceMetricsResponse,
CounterpartyInvoiceMetricsStatusResponse,
CounterpartyNetworkType,
Expand Down Expand Up @@ -290,6 +291,7 @@
"CommentRequest",
"CommentResponse",
"Conflict",
"CounterpartyCustomizationRequest",
"CounterpartyInvoiceMetricsResponse",
"CounterpartyInvoiceMetricsStatusResponse",
"CounterpartyNetworkType",
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 @@ -23,7 +23,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": "v0.3.39",
"X-Fern-SDK-Version": "0.4.0",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
44 changes: 44 additions & 0 deletions src/mercoa/entity/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def create(
foreign_id: typing.Optional[str] = OMIT,
email_to: typing.Optional[str] = OMIT,
email_to_alias: typing.Optional[typing.Sequence[str]] = OMIT,
is_network_payor: typing.Optional[bool] = OMIT,
is_network_payee: typing.Optional[bool] = OMIT,
logo: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> EntityResponse:
Expand Down Expand Up @@ -204,6 +206,12 @@ def create(
email_to_alias : typing.Optional[typing.Sequence[str]]
Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias. Include the full email address.
is_network_payor : typing.Optional[bool]
Control if this entity should be available as a payor to any entity on your platform. If set to false, this entity will only be available as a payor to entities that have a direct relationship with this entity. Defaults to false.
is_network_payee : typing.Optional[bool]
Control if this entity should be available as a payee to any entity on your platform. If set to false, this entity will only be available as a payee to entities that have a direct relationship with this entity. Defaults to false.
logo : typing.Optional[str]
Base64 encoded PNG image data for the entity logo.
Expand Down Expand Up @@ -274,6 +282,8 @@ def create(
"profile": profile,
"isPayor": is_payor,
"isPayee": is_payee,
"isNetworkPayor": is_network_payor,
"isNetworkPayee": is_network_payee,
"logo": logo,
},
request_options=request_options,
Expand Down Expand Up @@ -364,6 +374,8 @@ def update(
profile: typing.Optional[ProfileRequest] = OMIT,
is_payor: typing.Optional[bool] = OMIT,
is_payee: typing.Optional[bool] = OMIT,
is_network_payor: typing.Optional[bool] = OMIT,
is_network_payee: typing.Optional[bool] = OMIT,
logo: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> EntityResponse:
Expand Down Expand Up @@ -394,6 +406,12 @@ def update(
is_payee : typing.Optional[bool]
If this entity will be receiving payments, set this to true.
is_network_payor : typing.Optional[bool]
Control if this entity should be available as a payor to any entity on your platform. If set to false, this entity will only be available as a payor to entities that have a direct relationship with this entity. Defaults to false.
is_network_payee : typing.Optional[bool]
Control if this entity should be available as a payee to any entity on your platform. If set to false, this entity will only be available as a payee to entities that have a direct relationship with this entity. Defaults to false.
logo : typing.Optional[str]
Base64 encoded PNG image data for the entity logo.
Expand Down Expand Up @@ -465,6 +483,8 @@ def update(
"profile": profile,
"isPayor": is_payor,
"isPayee": is_payee,
"isNetworkPayor": is_network_payor,
"isNetworkPayee": is_network_payee,
"logo": logo,
},
request_options=request_options,
Expand Down Expand Up @@ -495,6 +515,8 @@ def update(

def delete(self, entity_id: EntityId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
"""
Will archive the entity. This action cannot be undone, and the entity will no longer be available for use.
Parameters
----------
entity_id : EntityId
Expand Down Expand Up @@ -1088,6 +1110,8 @@ async def create(
foreign_id: typing.Optional[str] = OMIT,
email_to: typing.Optional[str] = OMIT,
email_to_alias: typing.Optional[typing.Sequence[str]] = OMIT,
is_network_payor: typing.Optional[bool] = OMIT,
is_network_payee: typing.Optional[bool] = OMIT,
logo: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> EntityResponse:
Expand Down Expand Up @@ -1116,6 +1140,12 @@ async def create(
email_to_alias : typing.Optional[typing.Sequence[str]]
Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias. Include the full email address.
is_network_payor : typing.Optional[bool]
Control if this entity should be available as a payor to any entity on your platform. If set to false, this entity will only be available as a payor to entities that have a direct relationship with this entity. Defaults to false.
is_network_payee : typing.Optional[bool]
Control if this entity should be available as a payee to any entity on your platform. If set to false, this entity will only be available as a payee to entities that have a direct relationship with this entity. Defaults to false.
logo : typing.Optional[str]
Base64 encoded PNG image data for the entity logo.
Expand Down Expand Up @@ -1186,6 +1216,8 @@ async def create(
"profile": profile,
"isPayor": is_payor,
"isPayee": is_payee,
"isNetworkPayor": is_network_payor,
"isNetworkPayee": is_network_payee,
"logo": logo,
},
request_options=request_options,
Expand Down Expand Up @@ -1278,6 +1310,8 @@ async def update(
profile: typing.Optional[ProfileRequest] = OMIT,
is_payor: typing.Optional[bool] = OMIT,
is_payee: typing.Optional[bool] = OMIT,
is_network_payor: typing.Optional[bool] = OMIT,
is_network_payee: typing.Optional[bool] = OMIT,
logo: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> EntityResponse:
Expand Down Expand Up @@ -1308,6 +1342,12 @@ async def update(
is_payee : typing.Optional[bool]
If this entity will be receiving payments, set this to true.
is_network_payor : typing.Optional[bool]
Control if this entity should be available as a payor to any entity on your platform. If set to false, this entity will only be available as a payor to entities that have a direct relationship with this entity. Defaults to false.
is_network_payee : typing.Optional[bool]
Control if this entity should be available as a payee to any entity on your platform. If set to false, this entity will only be available as a payee to entities that have a direct relationship with this entity. Defaults to false.
logo : typing.Optional[str]
Base64 encoded PNG image data for the entity logo.
Expand Down Expand Up @@ -1379,6 +1419,8 @@ async def update(
"profile": profile,
"isPayor": is_payor,
"isPayee": is_payee,
"isNetworkPayor": is_network_payor,
"isNetworkPayee": is_network_payee,
"logo": logo,
},
request_options=request_options,
Expand Down Expand Up @@ -1409,6 +1451,8 @@ async def update(

async def delete(self, entity_id: EntityId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
"""
Will archive the entity. This action cannot be undone, and the entity will no longer be available for use.
Parameters
----------
entity_id : EntityId
Expand Down
Loading

0 comments on commit 093f610

Please sign in to comment.