Skip to content

Comparable

Source code in docs_src/capo_appmonetization/types/comparable.py
class Comparable(TypedDict, closed=True):
    name: NotRequired["capo_appmonetization.types.comparable_name.ComparableName"]
    """Short name of the comparable app. Absent: the host of `url`, lowercased, without a leading `www.`; when two comparables get the same name, the later ones get ` (2)`, ` (3)`."""
    url: "capo_appmonetization.types.comparable_url.ComparableUrl"
    """The public pricing page the price was read from."""
    mechanism: "capo_appmonetization.types.comparable_mechanism.ComparableMechanism"
    """How the comparable charges."""
    price: "capo_appmonetization.types.price.Price"
    """Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected."""
    cap: NotRequired[
        "capo_appmonetization.types.non_negative_quantity.NonNegativeQuantity"
    ]
    """Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used."""
    included_units: NotRequired[
        "capo_appmonetization.types.non_negative_quantity.NonNegativeQuantity"
    ]
    """For PAID_SUB: units of this app's billable action the plan includes per month. With `overageRate`, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage."""
    overage_rate: NotRequired["capo_appmonetization.types.cost_amount.CostAmount"]
    """For PAID_SUB with `includedUnits`: price per unit past the allowance, in USD. Absent: the plan stops at `includedUnits` (no overage)."""
    quality: NotRequired[
        "capo_appmonetization.types.alternative_quality.AlternativeQuality"
    ]
    """How good it is compared with this app, where this app is 1."""
    features: NotRequired[
        "capo_appmonetization.types.feature_score_map.FeatureScoreMap"
    ]
    """Its scores on the characteristics in `features`, instead of `quality`. Required when `quality` is absent."""

cap instance-attribute

cap: NotRequired[NonNegativeQuantity]

Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used.

features instance-attribute

features: NotRequired[FeatureScoreMap]

Its scores on the characteristics in features, instead of quality. Required when quality is absent.

included_units instance-attribute

included_units: NotRequired[NonNegativeQuantity]

For PAID_SUB: units of this app's billable action the plan includes per month. With overageRate, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage.

mechanism instance-attribute

How the comparable charges.

name instance-attribute

name: NotRequired[ComparableName]

Short name of the comparable app. Absent: the host of url, lowercased, without a leading www.; when two comparables get the same name, the later ones get (2), (3).

overage_rate instance-attribute

overage_rate: NotRequired[CostAmount]

For PAID_SUB with includedUnits: price per unit past the allowance, in USD. Absent: the plan stops at includedUnits (no overage).

price instance-attribute

price: Price

Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.

quality instance-attribute

quality: NotRequired[AlternativeQuality]

How good it is compared with this app, where this app is 1.

url instance-attribute

The public pricing page the price was read from.