diff --git a/pyproject.toml b/pyproject.toml index 6fd140a..75b356f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mercoa" -version = "0.4.8" +version = "0.4.49" description = "" readme = "README.md" authors = [] diff --git a/reference.md b/reference.md index 330d4c6..04d0465 100644 --- a/reference.md +++ b/reference.md @@ -5068,14 +5068,6 @@ client.entity.counterparty.find_payees(
-**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
@@ -5209,14 +5201,6 @@ client.entity.counterparty.find_payors(
-**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
diff --git a/src/mercoa/core/client_wrapper.py b/src/mercoa/core/client_wrapper.py index d1f063d..29eee9c 100644 --- a/src/mercoa/core/client_wrapper.py +++ b/src/mercoa/core/client_wrapper.py @@ -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 diff --git a/src/mercoa/entity/counterparty/client.py b/src/mercoa/entity/counterparty/client.py index 23cc5c8..777f801 100644 --- a/src/mercoa/entity/counterparty/client.py +++ b/src/mercoa/entity/counterparty/client.py @@ -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, @@ -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 @@ -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, @@ -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, @@ -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 @@ -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, @@ -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, @@ -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 @@ -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, @@ -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, @@ -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 @@ -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, diff --git a/src/mercoa/entity_types/types/counterparty_response.py b/src/mercoa/entity_types/types/counterparty_response.py index 7060463..03d4e99 100644 --- a/src/mercoa/entity_types/types/counterparty_response.py +++ b/src/mercoa/entity_types/types/counterparty_response.py @@ -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 ) diff --git a/src/mercoa/entity_types/types/entity_request.py b/src/mercoa/entity_types/types/entity_request.py index a6819f5..0c88d5c 100644 --- a/src/mercoa/entity_types/types/entity_request.py +++ b/src/mercoa/entity_types/types/entity_request.py @@ -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: diff --git a/src/mercoa/entity_types/types/entity_response.py b/src/mercoa/entity_types/types/entity_response.py index dcf538f..881872e 100644 --- a/src/mercoa/entity_types/types/entity_response.py +++ b/src/mercoa/entity_types/types/entity_response.py @@ -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") """ diff --git a/src/mercoa/entity_types/types/entity_update_request.py b/src/mercoa/entity_types/types/entity_update_request.py index 722aeb6..c70dcf7 100644 --- a/src/mercoa/entity_types/types/entity_update_request.py +++ b/src/mercoa/entity_types/types/entity_update_request.py @@ -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: diff --git a/src/mercoa/organization_types/types/business_onboarding_options.py b/src/mercoa/organization_types/types/business_onboarding_options.py index 67c79ee..e41602c 100644 --- a/src/mercoa/organization_types/types/business_onboarding_options.py +++ b/src/mercoa/organization_types/types/business_onboarding_options.py @@ -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}