import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Compensation, Compensation$Outbound } from "./compensation.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { PayrollTotals, PayrollTotals$Outbound } from "./payrolltotals.js"; export type Payroll = { /** * A unique identifier for an object. */ id: string | null; /** * The unique identifier of the company. */ companyId?: string | null | undefined; /** * Whether or not the payroll has been successfully processed. Note that processed payrolls cannot be updated. */ processed: boolean | null; /** * The date the payroll was processed. */ processedDate?: string | null | undefined; /** * The date on which employees will be paid for the payroll. */ checkDate: string | null; /** * The start date, inclusive, of the pay period. */ startDate: string | null; /** * The end date, inclusive, of the pay period. */ endDate: string | null; /** * The overview of the payroll totals. */ totals?: PayrollTotals | undefined; /** * An array of compensations for the payroll. */ compensations?: Array | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; }; /** @internal */ export declare const Payroll$inboundSchema: z.ZodType; /** @internal */ export type Payroll$Outbound = { id: string | null; company_id?: string | null | undefined; processed: boolean | null; processed_date?: string | null | undefined; check_date: string | null; start_date: string | null; end_date: string | null; totals?: PayrollTotals$Outbound | undefined; compensations?: Array | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; }; /** @internal */ export declare const Payroll$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Payroll$ { /** @deprecated use `Payroll$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Payroll$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Payroll$Outbound` instead. */ type Outbound = Payroll$Outbound; } export declare function payrollToJSON(payroll: Payroll): string; export declare function payrollFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=payroll.d.ts.map