MemberOwnerCreate (member/schemas.py)

polar · server/polar/member/schemas.py · python · Apache-2.0
database, tag:embed-classified

Pydantic schemas for creating and updating member records in the Polar API.

# Source: https://github.com/polarsource/polar | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from typing import Annotated, Literal

from annotated_types import MaxLen
from fastapi import Path
from pydantic import UUID4, Field

from polar.kit.email import EmailStrDNS
from polar.kit.schemas import (
    EmptyStrToNoneValidator,
    IDSchema,
    Schema,
    TimestampedSchema,
)
from polar.models.member import MemberRole

ExternalMemberID = Annotated[str, Path(description="The member external ID.")]

_external_id_description = (
    "The ID of the member in your system. This must be unique within the customer. "
)
_external_id_example = "usr_1337"
_email_description = "The email add

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key