CalOohPay API Documentation - v2.1.0
    Preparing search index...

    Interface OnCallCompensation

    Represents the compensation details for a user's on-call duty.

    This interface combines the user's on-call information with their calculated total compensation amount. It serves as an auditable record linking a user to their payment for a specific period.

    const compensation: OnCallCompensation = {
    OnCallUser: user,
    totalCompensation: 325 // £325 for 2 weekdays + 3 weekends
    };
    interface OnCallCompensation {
        OnCallUser: OnCallUser;
        totalCompensation: number;
    }
    Index

    Properties

    OnCallUser: OnCallUser

    The user who was on-call, including their ID, name, and all on-call periods. Contains the complete breakdown of weekday and weekend shifts.

    totalCompensation: number

    Total monetary compensation in GBP (£) for all on-call periods. Calculated as: (weekdays × £50) + (weekends × £75)