Skip to content

ThirdPartyCostItem

Source code in docs_src/capo_appmonetization/types/third_party_cost_item.py
class ThirdPartyCostItem(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app the cost belongs to."""
    cost_id: "capo_appmonetization.types.third_party_cost_id.ThirdPartyCostId"
    """The ID of the cost."""
    label: "capo_appmonetization.types.third_party_cost_label.ThirdPartyCostLabel"
    """A human-readable label for the cost (for example, "Anthropic API")."""
    amount: "capo_appmonetization.types.cost_value.CostValue"
    """The flat monthly amount as a decimal string (for example, "12.50")."""
    frequency: (
        "capo_appmonetization.types.third_party_cost_frequency.ThirdPartyCostFrequency"
    )
    """How often the cost recurs. MONTHLY is the only value today."""
    currency: "capo_appmonetization.types.currency.Currency"
    """The currency of the amount. USD is the only supported currency."""
    description: NotRequired[
        "capo_appmonetization.types.third_party_cost_description.ThirdPartyCostDescription"
    ]
    """A free-form description of the cost."""
    effective_from: NotRequired[
        "capo_appmonetization.types.third_party_cost_month.ThirdPartyCostMonth"
    ]
    """First month (YYYY-MM) the cost applies in. Absent means the cost has no start month."""
    effective_to: NotRequired[
        "capo_appmonetization.types.third_party_cost_month.ThirdPartyCostMonth"
    ]
    """Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month."""
    created_at: "capo_appmonetization.types.timestamp.Timestamp"
    """The time the cost was created."""
    updated_at: "capo_appmonetization.types.timestamp.Timestamp"
    """The time the cost was last updated."""

amount instance-attribute

amount: CostValue

The flat monthly amount as a decimal string (for example, "12.50").

app_id instance-attribute

app_id: AppId

The ID of the app the cost belongs to.

cost_id instance-attribute

The ID of the cost.

created_at instance-attribute

created_at: Timestamp

The time the cost was created.

currency instance-attribute

currency: Currency

The currency of the amount. USD is the only supported currency.

description instance-attribute

description: NotRequired[ThirdPartyCostDescription]

A free-form description of the cost.

effective_from instance-attribute

effective_from: NotRequired[ThirdPartyCostMonth]

First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.

effective_to instance-attribute

effective_to: NotRequired[ThirdPartyCostMonth]

Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month.

frequency instance-attribute

How often the cost recurs. MONTHLY is the only value today.

label instance-attribute

A human-readable label for the cost (for example, "Anthropic API").

updated_at instance-attribute

updated_at: Timestamp

The time the cost was last updated.