Skip to content

PaymentFailurePolicy

Source code in docs_src/capo_appmonetization/types/payment_failure_policy.py
class PaymentFailurePolicy(TypedDict, closed=True):
    retry_attempts: NotRequired["int"]
    """The total number of payment attempts for a failed recurring payment, including the first attempt, before the failure is final. For example, 3 means the first attempt and up to 2 retries."""
    retry_window_days: NotRequired["int"]
    """The number of days over which to retry a failed recurring payment."""
    downgrade_to_plan_id: NotRequired["capo_appmonetization.types.plan_id.PlanId"]
    """Plan to move the subscriber to once the attempts are exhausted."""

downgrade_to_plan_id instance-attribute

downgrade_to_plan_id: NotRequired[PlanId]

Plan to move the subscriber to once the attempts are exhausted.

retry_attempts instance-attribute

retry_attempts: NotRequired[int]

The total number of payment attempts for a failed recurring payment, including the first attempt, before the failure is final. For example, 3 means the first attempt and up to 2 retries.

retry_window_days instance-attribute

retry_window_days: NotRequired[int]

The number of days over which to retry a failed recurring payment.