• Computes the deduction split between period and purchased credits. Priority: period credits first, then purchased. Returns null if insufficient total credits.

    Parameters

    • amount: number
    • periodCredits: number
    • purchasedCredits: number

    Returns node.common.apis.billing.DeductionResult | null