-
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
7669012
commit 52d6ceb
Showing
24 changed files
with
137 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
79 changes: 79 additions & 0 deletions
79
src/mercoa/entity_types/types/representative_update_request.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,79 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from ...core.pydantic_utilities import UniversalBaseModel | ||
import typing | ||
from ...commons.types.full_name import FullName | ||
from ...commons.types.phone_number import PhoneNumber | ||
from ...commons.types.address import Address | ||
from ...commons.types.birth_date import BirthDate | ||
import pydantic | ||
from ...commons.types.individual_government_id import IndividualGovernmentId | ||
from .responsibilities import Responsibilities | ||
from ...core.pydantic_utilities import IS_PYDANTIC_V2 | ||
|
||
|
||
class RepresentativeUpdateRequest(UniversalBaseModel): | ||
""" | ||
Examples | ||
-------- | ||
from mercoa.commons import ( | ||
Address, | ||
BirthDate, | ||
FullName, | ||
IndividualGovernmentId, | ||
PhoneNumber, | ||
) | ||
from mercoa.entity_types import RepresentativeUpdateRequest, Responsibilities | ||
RepresentativeUpdateRequest( | ||
name=FullName( | ||
first_name="John", | ||
middle_name="Quincy", | ||
last_name="Adams", | ||
suffix="Jr.", | ||
), | ||
phone=PhoneNumber( | ||
country_code="1", | ||
number="4155551234", | ||
), | ||
email="john.doe@acme.com", | ||
address=Address( | ||
address_line_1="123 Main St", | ||
address_line_2="Unit 1", | ||
city="San Francisco", | ||
state_or_province="CA", | ||
postal_code="94105", | ||
country="US", | ||
), | ||
birth_date=BirthDate( | ||
day="1", | ||
month="1", | ||
year="1980", | ||
), | ||
government_id=IndividualGovernmentId( | ||
ssn="123-45-6789", | ||
), | ||
responsibilities=Responsibilities( | ||
is_owner=True, | ||
ownership_percentage=40, | ||
is_controller=True, | ||
), | ||
) | ||
""" | ||
|
||
name: typing.Optional[FullName] = None | ||
phone: typing.Optional[PhoneNumber] = None | ||
email: typing.Optional[str] = None | ||
address: typing.Optional[Address] = None | ||
birth_date: typing.Optional[BirthDate] = pydantic.Field(alias="birthDate", default=None) | ||
government_id: typing.Optional[IndividualGovernmentId] = pydantic.Field(alias="governmentID", default=None) | ||
responsibilities: typing.Optional[Responsibilities] = None | ||
|
||
if IS_PYDANTIC_V2: | ||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 | ||
else: | ||
|
||
class Config: | ||
frozen = True | ||
smart_union = True | ||
extra = pydantic.Extra.allow |
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
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,7 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
InvoiceLineItemCategory = typing.Union[ | ||
typing.Literal["EXPENSE", "REVENUE", "TAX", "SHIPPING", "DISCOUNT", "OTHER"], typing.Any | ||
] |
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.