/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The representation of an unprocessed termination pay period. */ export type UnprocessedTerminationPayPeriod = { /** * The start date of the pay period. */ startDate?: string | undefined; /** * The end date of the pay period. */ endDate?: string | undefined; /** * The check date of the pay period. */ checkDate?: string | undefined; /** * The debit date of the pay period. */ debitDate?: string | undefined; /** * The full name of the employee. */ employeeName?: string | undefined; /** * A unique identifier of the employee. */ employeeUuid?: string | undefined; /** * A unique identifier of the pay schedule to which the pay period belongs. */ payScheduleUuid?: string | undefined; }; /** @internal */ export const UnprocessedTerminationPayPeriod$inboundSchema: z.ZodType< UnprocessedTerminationPayPeriod, z.ZodTypeDef, unknown > = z.object({ start_date: z.string().optional(), end_date: z.string().optional(), check_date: z.string().optional(), debit_date: z.string().optional(), employee_name: z.string().optional(), employee_uuid: z.string().optional(), pay_schedule_uuid: z.string().optional(), }).transform((v) => { return remap$(v, { "start_date": "startDate", "end_date": "endDate", "check_date": "checkDate", "debit_date": "debitDate", "employee_name": "employeeName", "employee_uuid": "employeeUuid", "pay_schedule_uuid": "payScheduleUuid", }); }); export function unprocessedTerminationPayPeriodFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UnprocessedTerminationPayPeriod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnprocessedTerminationPayPeriod' from JSON`, ); }