Customer Subscription Product (schemas/subscription.py)

polar · server/polar/customer_portal/schemas/subscription.py · python · Apache-2.0
payments, crm, tag:product

Manages customer subscription product details and updates.

# 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.
import inspect
from typing import Annotated, Literal

from pydantic import (
    UUID4,
    AliasChoices,
    AliasPath,
    ConfigDict,
    Field,
    FutureDatetime,
)
from pydantic.json_schema import SkipJsonSchema

from polar.kit.schemas import (
    IDSchema,
    Int32,
    Schema,
    SetSchemaReference,
    TimestampedSchema,
)
from polar.kit.versioning import Version
from polar.meter.schemas import NAME_DESCRIPTION as METER_NAME_DESCRIPTION
from polar.models.subscription import CustomerCancellationReason
from polar.product.schemas import (
    BenefitPublicList,
    ProductBase,
 

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

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

Get a free API key