Skip to content

SubscriptionSummary

Source code in docs_src/capo_appmonetization/types/subscription_summary.py
class SubscriptionSummary(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app that the subscription belongs to."""
    user_id: "capo_appmonetization.types.user_id.UserId"
    """The opaque end-user identifier that the subscription belongs to."""
    plan_id: NotRequired["capo_appmonetization.types.plan_id.PlanId"]
    """The ID of the plan on the user's latest subscription record. If a plan change is scheduled, this is the plan the subscription moves to; if a cancellation is scheduled or has taken effect, it is absent. Call GetSubscription for the plan in effect."""
    effective_at: "capo_appmonetization.types.timestamp.Timestamp"
    """The time when the subscription took effect."""
    billing_anchor_date: "capo_appmonetization.types.timestamp.Timestamp"
    """The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. The resolved current-period end (`currentPeriodEndsAt`) is available on GetSubscription for a single user; this summary carries only the anchor."""
    billing_cycle: NotRequired["capo_appmonetization.types.billing_cycle.BillingCycle"]
    """The billing cycle of the subscription, such as monthly or annual."""

app_id instance-attribute

app_id: AppId

The ID of the app that the subscription belongs to.

billing_anchor_date instance-attribute

billing_anchor_date: Timestamp

The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. The resolved current-period end (currentPeriodEndsAt) is available on GetSubscription for a single user; this summary carries only the anchor.

billing_cycle instance-attribute

billing_cycle: NotRequired[BillingCycle]

The billing cycle of the subscription, such as monthly or annual.

effective_at instance-attribute

effective_at: Timestamp

The time when the subscription took effect.

plan_id instance-attribute

plan_id: NotRequired[PlanId]

The ID of the plan on the user's latest subscription record. If a plan change is scheduled, this is the plan the subscription moves to; if a cancellation is scheduled or has taken effect, it is absent. Call GetSubscription for the plan in effect.

user_id instance-attribute

user_id: UserId

The opaque end-user identifier that the subscription belongs to.