/**
 * This file was auto-generated by Fern from our API Definition.
 */
import * as Merge from "../../..";
/**
 * # The Earning Object
 * ### Description
 * The `Earning` object is used to represent an array of different compensations that an employee receives within specific wage categories.
 *
 * ### Usage Example
 * Fetch from the `LIST Earnings` endpoint and filter by `ID` to show all earnings.
 */
export interface Earning {
    id?: string;
    /** The third-party API ID of the matching object. */
    remoteId?: string;
    employeePayrollRun?: string;
    /** The amount earned. */
    amount?: number;
    /**
     * The type of earning.
     *
     * * `SALARY` - SALARY
     * * `REIMBURSEMENT` - REIMBURSEMENT
     * * `OVERTIME` - OVERTIME
     * * `BONUS` - BONUS
     */
    type?: Merge.hris.EarningType;
    /** Indicates whether or not this object has been deleted in the third party platform. */
    remoteWasDeleted?: boolean;
    createdAt?: Date;
    /** This is the datetime that this object was last updated by Merge */
    modifiedAt?: Date;
    fieldMappings?: Record<string, unknown>;
    remoteData?: Merge.hris.RemoteData[];
}
