Skip to content

CancelSubscriptionRequest

Source code in docs_src/capo_appmonetization/types/cancel_subscription_request.py
class CancelSubscriptionRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app."""
    user_id: "capo_appmonetization.types.user_id.UserId"
    """An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value."""
    effective_at: "capo_appmonetization.types.timestamp.Timestamp"
    """The subscription's current effective time, as returned by GetSubscription, used as an optimistic-concurrency check. If GetSubscription returns a pending change, pass `pendingChange.effectiveAt`; otherwise pass `subscription.effectiveAt`. This value does not choose when the cancellation takes effect: a new cancellation takes effect at the end of the current billing period, returned as `cancellationEffectiveAt`. If the subscription's effective time has changed since you read it (for example, because another plan change was made), the value no longer matches and the request fails with ConflictException; call GetSubscription again and retry with the new value. If the subscription is already cancelled or a cancellation is already scheduled, the request returns its current state and does not compare this value."""
    scope: "capo_appmonetization.types.request_scope.RequestScope"
    """Required. The environment: live or sandbox."""

app_id instance-attribute

app_id: AppId

The ID of the app.

effective_at instance-attribute

effective_at: Timestamp

The subscription's current effective time, as returned by GetSubscription, used as an optimistic-concurrency check. If GetSubscription returns a pending change, pass pendingChange.effectiveAt; otherwise pass subscription.effectiveAt. This value does not choose when the cancellation takes effect: a new cancellation takes effect at the end of the current billing period, returned as cancellationEffectiveAt. If the subscription's effective time has changed since you read it (for example, because another plan change was made), the value no longer matches and the request fails with ConflictException; call GetSubscription again and retry with the new value. If the subscription is already cancelled or a cancellation is already scheduled, the request returns its current state and does not compare this value.

scope instance-attribute

scope: RequestScope

Required. The environment: live or sandbox.

user_id instance-attribute

user_id: UserId

An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value.