Skip to content

PlanOptions

Source code in docs_src/capo_appmonetization/types/plan_options.py
class PlanOptions(TypedDict, closed=True):
    pricing_model_preference: NotRequired[
        "capo_appmonetization.types.pricing_model.PricingModel"
    ]
    """Pricing model to use instead of letting the service choose. `planOptions.preferenceOutcome` in the response says whether it was used. Absent: the service chooses (`preferenceOutcome` NOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT with `freeTierInclusion`, `maxTierInclusion` or `annualPlanInclusion` INCLUDE is rejected, and so is FLAT with `freeTierInclusion` INCLUDE."""
    free_tier_inclusion: NotRequired[
        "capo_appmonetization.types.plan_inclusion.PlanInclusion"
    ]
    """Whether to include a Free plan. Absent: the segment's default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with a `pricingModelPreference`, a Free plan is considered only for TIERED. INCLUDE with no `pricingModelPreference` limits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response's `planOptions.freeTier` gives the outcome."""
    max_tier_inclusion: NotRequired[
        "capo_appmonetization.types.plan_inclusion.PlanInclusion"
    ]
    """Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis (`minutesSaved`, `moneySaved` or `valuePerUse`) and there is no experiential estimate (see `valueKind`), the price is cost-based and this is ignored, with no error: the response has no Max plan and no `planOptions.maxTier` outcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited (`includedQuantity` 1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers' usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance."""
    annual_plan_inclusion: NotRequired[
        "capo_appmonetization.types.plan_inclusion.PlanInclusion"
    ]
    """Whether to add an annual plan (`Annual`). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average (`typicalMonthlyUsage` below 1). INCLUDE adds it at any usage and, when the request sends no `pricingModelPreference`, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out."""
    credit_pack_inclusion: NotRequired[
        "capo_appmonetization.types.plan_inclusion.PlanInclusion"
    ]
    """Whether to add one-time credit packs alongside the plans, the response's `creditPacks`. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included."""
    plan_prices: NotRequired["capo_appmonetization.types.plan_price_list.PlanPriceList"]
    """Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned in `planOptions.evaluatedPlanPrices`, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. A `pro` price is evaluated with the Max plan as recommended; when that Max would sit too close to the `pro` price, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. A `max` price in the same request does not change this, so a `pro` item is the same as for that `pro` price alone. A `max` price must be above Pro's price, and is evaluated with this request's `pro` price if it has one. Absent: none, and `planOptions.evaluatedPlanPrices` is empty."""
    published_price: NotRequired[
        "capo_appmonetization.types.published_price.PublishedPrice"
    ]
    """Your current or intended monthly price, in USD (another currencyCode is rejected). Shown for comparison, except when no action has a value basis and no comparables are used: then it is the recommended price, raised to cost to serve at the lowest margin in `costs.margins` (0, which is cost, when margins are omitted) when it is below that. Absent: no price is shown for comparison, and the price comes from the value estimate, comparables or cost."""

annual_plan_inclusion instance-attribute

annual_plan_inclusion: NotRequired[PlanInclusion]

Whether to add an annual plan (Annual). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average (typicalMonthlyUsage below 1). INCLUDE adds it at any usage and, when the request sends no pricingModelPreference, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out.

credit_pack_inclusion instance-attribute

credit_pack_inclusion: NotRequired[PlanInclusion]

Whether to add one-time credit packs alongside the plans, the response's creditPacks. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included.

free_tier_inclusion instance-attribute

free_tier_inclusion: NotRequired[PlanInclusion]

Whether to include a Free plan. Absent: the segment's default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with a pricingModelPreference, a Free plan is considered only for TIERED. INCLUDE with no pricingModelPreference limits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response's planOptions.freeTier gives the outcome.

max_tier_inclusion instance-attribute

max_tier_inclusion: NotRequired[PlanInclusion]

Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis (minutesSaved, moneySaved or valuePerUse) and there is no experiential estimate (see valueKind), the price is cost-based and this is ignored, with no error: the response has no Max plan and no planOptions.maxTier outcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited (includedQuantity 1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers' usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance.

plan_prices instance-attribute

plan_prices: NotRequired[PlanPriceList]

Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned in planOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. A pro price is evaluated with the Max plan as recommended; when that Max would sit too close to the pro price, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. A max price in the same request does not change this, so a pro item is the same as for that pro price alone. A max price must be above Pro's price, and is evaluated with this request's pro price if it has one. Absent: none, and planOptions.evaluatedPlanPrices is empty.

pricing_model_preference instance-attribute

pricing_model_preference: NotRequired[PricingModel]

Pricing model to use instead of letting the service choose. planOptions.preferenceOutcome in the response says whether it was used. Absent: the service chooses (preferenceOutcome NOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT with freeTierInclusion, maxTierInclusion or annualPlanInclusion INCLUDE is rejected, and so is FLAT with freeTierInclusion INCLUDE.

published_price instance-attribute

published_price: NotRequired[PublishedPrice]

Your current or intended monthly price, in USD (another currencyCode is rejected). Shown for comparison, except when no action has a value basis and no comparables are used: then it is the recommended price, raised to cost to serve at the lowest margin in costs.margins (0, which is cost, when margins are omitted) when it is below that. Absent: no price is shown for comparison, and the price comes from the value estimate, comparables or cost.