Rovenue Web SDK
    Preparing search index...

    Interface WebVirtualCurrencyGrant

    One credit grant a package's product pays: amount of the virtual currency code, on grantOn ("PURCHASE", "RENEWAL" or "BOTH" today; newer values pass through verbatim). The same rule the server grants by.

    interface WebVirtualCurrencyGrant {
        amount: number;
        code: string;
        expiresAtPeriodEnd: boolean;
        grantOn: string;
        intervalDays: number | null;
        trialAmount: number;
    }
    Index
    amount: number

    How much of the currency one grant pays.

    code: string

    The virtual currency's code, as configured in the dashboard (e.g. "GOLD").

    expiresAtPeriodEnd: boolean

    Whether credits granted by this rule expire at the end of the period they were granted for: the billing period, the N-day period for a periodic rule, or the trial.

    grantOn: string

    When the grant fires. An open string: treat an unknown value as unknown, never as a purchase.

    intervalDays: number | null

    Days between grants for a periodic trigger; null for every lifecycle trigger.

    trialAmount: number

    Credits paid once, when a trial starts, for each subscription chain and currency. Never clawed back. 0 means no trial grant.