Skip to content

Commit

Permalink
Release 0.4.49
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 26, 2024
1 parent dd800e5 commit 0df0d27
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 45 deletions.
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.4.8"
version = "0.4.49"
description = ""
readme = "README.md"
authors = []
Expand Down
16 changes: 0 additions & 16 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5068,14 +5068,6 @@ client.entity.counterparty.find_payees(
<dl>
<dd>

**logo:** `typing.Optional[bool]` — If true, will include counterparty logo as part of the response

</dd>
</dl>

<dl>
<dd>

**counterparty_id:** `typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]]` — Filter by counterparty ids

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

**logo:** `typing.Optional[bool]` — If true, will include counterparty logo as part of the response

</dd>
</dl>

<dl>
<dd>

**counterparty_id:** `typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]]` — Filter by counterparty ids

</dd>
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": "0.4.8",
"X-Fern-SDK-Version": "0.4.49",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
20 changes: 0 additions & 20 deletions src/mercoa/entity/counterparty/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def find_payees(
] = None,
payment_methods: typing.Optional[bool] = None,
invoice_metrics: typing.Optional[bool] = None,
logo: typing.Optional[bool] = None,
counterparty_id: typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]] = None,
limit: typing.Optional[int] = None,
starting_after: typing.Optional[EntityId] = None,
Expand All @@ -67,9 +66,6 @@ def find_payees(
invoice_metrics : typing.Optional[bool]
If true, will include counterparty invoice metrics as part of the response
logo : typing.Optional[bool]
If true, will include counterparty logo as part of the response
counterparty_id : typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]]
Filter by counterparty ids
Expand Down Expand Up @@ -108,7 +104,6 @@ def find_payees(
"networkType": network_type,
"paymentMethods": payment_methods,
"invoiceMetrics": invoice_metrics,
"logo": logo,
"counterpartyId": counterparty_id,
"limit": limit,
"startingAfter": starting_after,
Expand Down Expand Up @@ -148,7 +143,6 @@ def find_payors(
] = None,
payment_methods: typing.Optional[bool] = None,
invoice_metrics: typing.Optional[bool] = None,
logo: typing.Optional[bool] = None,
counterparty_id: typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]] = None,
limit: typing.Optional[int] = None,
starting_after: typing.Optional[EntityId] = None,
Expand All @@ -174,9 +168,6 @@ def find_payors(
invoice_metrics : typing.Optional[bool]
If true, will include counterparty invoice metrics as part of the response
logo : typing.Optional[bool]
If true, will include counterparty logo as part of the response
counterparty_id : typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]]
Filter by counterparty ids
Expand Down Expand Up @@ -215,7 +206,6 @@ def find_payors(
"networkType": network_type,
"paymentMethods": payment_methods,
"invoiceMetrics": invoice_metrics,
"logo": logo,
"counterpartyId": counterparty_id,
"limit": limit,
"startingAfter": starting_after,
Expand Down Expand Up @@ -568,7 +558,6 @@ async def find_payees(
] = None,
payment_methods: typing.Optional[bool] = None,
invoice_metrics: typing.Optional[bool] = None,
logo: typing.Optional[bool] = None,
counterparty_id: typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]] = None,
limit: typing.Optional[int] = None,
starting_after: typing.Optional[EntityId] = None,
Expand All @@ -594,9 +583,6 @@ async def find_payees(
invoice_metrics : typing.Optional[bool]
If true, will include counterparty invoice metrics as part of the response
logo : typing.Optional[bool]
If true, will include counterparty logo as part of the response
counterparty_id : typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]]
Filter by counterparty ids
Expand Down Expand Up @@ -643,7 +629,6 @@ async def main() -> None:
"networkType": network_type,
"paymentMethods": payment_methods,
"invoiceMetrics": invoice_metrics,
"logo": logo,
"counterpartyId": counterparty_id,
"limit": limit,
"startingAfter": starting_after,
Expand Down Expand Up @@ -683,7 +668,6 @@ async def find_payors(
] = None,
payment_methods: typing.Optional[bool] = None,
invoice_metrics: typing.Optional[bool] = None,
logo: typing.Optional[bool] = None,
counterparty_id: typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]] = None,
limit: typing.Optional[int] = None,
starting_after: typing.Optional[EntityId] = None,
Expand All @@ -709,9 +693,6 @@ async def find_payors(
invoice_metrics : typing.Optional[bool]
If true, will include counterparty invoice metrics as part of the response
logo : typing.Optional[bool]
If true, will include counterparty logo as part of the response
counterparty_id : typing.Optional[typing.Union[EntityId, typing.Sequence[EntityId]]]
Filter by counterparty ids
Expand Down Expand Up @@ -758,7 +739,6 @@ async def main() -> None:
"networkType": network_type,
"paymentMethods": payment_methods,
"invoiceMetrics": invoice_metrics,
"logo": logo,
"counterpartyId": counterparty_id,
"limit": limit,
"startingAfter": starting_after,
Expand Down
5 changes: 0 additions & 5 deletions src/mercoa/entity_types/types/counterparty_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ class CounterpartyResponse(EntityResponse):
If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
"""

logo: typing.Optional[str] = pydantic_v1.Field(default=None)
"""
URL to the entity logo
"""

payment_methods: typing.Optional[typing.List[PaymentMethodResponse]] = pydantic_v1.Field(
alias="paymentMethods", default=None
)
Expand Down
2 changes: 1 addition & 1 deletion src/mercoa/entity_types/types/entity_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class EntityRequest(pydantic_v1.BaseModel):

logo: typing.Optional[str] = pydantic_v1.Field(default=None)
"""
Base64 encoded PNG image data for the entity logo.
Base64 encoded PNG image data for the entity logo. Max size 100KB.
"""

def json(self, **kwargs: typing.Any) -> str:
Expand Down
5 changes: 5 additions & 0 deletions src/mercoa/entity_types/types/entity_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ class EntityResponse(pydantic_v1.BaseModel):

account_type: AccountType = pydantic_v1.Field(alias="accountType")
profile: ProfileResponse
logo: typing.Optional[str] = pydantic_v1.Field(default=None)
"""
URL for the entity logo
"""

status: EntityStatus
accepted_tos: bool = pydantic_v1.Field(alias="acceptedTos")
"""
Expand Down
2 changes: 1 addition & 1 deletion src/mercoa/entity_types/types/entity_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class EntityUpdateRequest(pydantic_v1.BaseModel):

logo: typing.Optional[str] = pydantic_v1.Field(default=None)
"""
Base64 encoded PNG image data for the entity logo.
Base64 encoded PNG image data for the entity logo. Max size 100KB.
"""

def json(self, **kwargs: typing.Any) -> str:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class BusinessOnboardingOptions(pydantic_v1.BaseModel):
website: OnboardingOption
description: OnboardingOption
representatives: OnboardingOption
logo: OnboardingOption

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Expand Down

0 comments on commit 0df0d27

Please sign in to comment.