interface MicrotransactionPlayerPurchase {
    checkout_session_id: null | string;
    commission_minor: number;
    country: string;
    created_at: string;
    currency: string;
    entitlements?: MicrotransactionEntitlement[];
    environment: MicrotransactionEnvironment;
    fulfillment_status: MicrotransactionFulfillmentStatus;
    grant_usage: MicrotransactionGrantUsage[];
    has_consumed_grants: boolean;
    has_usable_grants: boolean;
    id: string;
    items: MicrotransactionGrant[];
    paid_at: null | string;
    payment_status: MicrotransactionPaymentStatus;
    player_id: string;
    product: {
        id: string;
        name: null | string;
        sku: null | string;
        type: null | MicrotransactionProductType;
        version: null | number;
    };
    product_id: string;
    provider: null | "stripe" | "xsolla";
    provider_fee_minor: null | number;
    quantity: number;
    refunded_minor: number;
    subtotal_minor: number;
    tax_collection?: null | MicrotransactionTaxCollection;
    tax_minor: number;
    title_id: string;
    total_minor: number;
}

Hierarchy

Properties

checkout_session_id: null | string
commission_minor: number
country: string
created_at: string
currency: string
has_consumed_grants: boolean
has_usable_grants: boolean
id: string
paid_at: null | string
player_id: string

Always present on authenticated self-history, unlike older generic order DTOs.

product: {
    id: string;
    name: null | string;
    sku: null | string;
    type: null | MicrotransactionProductType;
    version: null | number;
}

Product snapshot for this purchase, not a replacement for the current catalog.

Type declaration

product_id: string
provider: null | "stripe" | "xsolla"
provider_fee_minor: null | number

Null until actual costs are reconciled; never confuse an estimate with a payout.

quantity: number
refunded_minor: number
subtotal_minor: number
tax_collection?: null | MicrotransactionTaxCollection

Frozen decision, also returned inside checkout/session.order. Null/absent for legacy orders; never infer from current provider facts. Warnings do not imply zero tax owed.

tax_minor: number
title_id: string
total_minor: number

Generated using TypeDoc