-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f02db0
commit 29ac931
Showing
31 changed files
with
1,104 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from .types import CounterpartyResponse | ||
from .types import CounterpartyResponse, FindCounterpartiesResponse | ||
|
||
__all__ = ["CounterpartyResponse"] | ||
__all__ = ["CounterpartyResponse", "FindCounterpartiesResponse"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from .counterparty_response import CounterpartyResponse | ||
from .find_counterparties_response import FindCounterpartiesResponse | ||
|
||
__all__ = ["CounterpartyResponse"] | ||
__all__ = ["CounterpartyResponse", "FindCounterpartiesResponse"] |
34 changes: 34 additions & 0 deletions
34
src/mercoa/resources/counterparty/types/find_counterparties_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import datetime as dt | ||
import typing | ||
|
||
import pydantic | ||
|
||
from ....core.datetime_utils import serialize_datetime | ||
from .counterparty_response import CounterpartyResponse | ||
|
||
|
||
class FindCounterpartiesResponse(pydantic.BaseModel): | ||
entity_counterparties: typing.List[CounterpartyResponse] = pydantic.Field( | ||
alias="entityCounterparties", description=("Counterparties that have been paid by this entity\n") | ||
) | ||
platform_counterparties: typing.List[CounterpartyResponse] = pydantic.Field( | ||
alias="platformCounterparties", description=("Counterparties that have paid by any entity on your platform\n") | ||
) | ||
mercoa_counterparties: typing.List[CounterpartyResponse] = pydantic.Field( | ||
alias="mercoaCounterparties", description=("External counterparties that have been verified by Mercoa\n") | ||
) | ||
|
||
def json(self, **kwargs: typing.Any) -> str: | ||
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} | ||
return super().json(**kwargs_with_defaults) | ||
|
||
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: | ||
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} | ||
return super().dict(**kwargs_with_defaults) | ||
|
||
class Config: | ||
frozen = True | ||
allow_population_by_field_name = True | ||
json_encoders = {dt.datetime: serialize_datetime} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.