/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; /** * Year-to-date benefit amounts contributed at a different company for the specified employee. */ export type YtdBenefitAmountsFromDifferentCompanyBody = { /** * The benefit type supported by Gusto. */ benefitType: number; /** * The tax year for which this amount applies. */ taxYear: number; /** * The year-to-date employee deduction made outside the current company. */ ytdEmployeeDeductionAmount?: string | undefined; /** * The year-to-date company contribution made outside the current company. */ ytdCompanyContributionAmount?: string | undefined; }; /** @internal */ export type YtdBenefitAmountsFromDifferentCompanyBody$Outbound = { benefit_type: number; tax_year: number; ytd_employee_deduction_amount: string; ytd_company_contribution_amount: string; }; /** @internal */ export const YtdBenefitAmountsFromDifferentCompanyBody$outboundSchema: z.ZodType< YtdBenefitAmountsFromDifferentCompanyBody$Outbound, z.ZodTypeDef, YtdBenefitAmountsFromDifferentCompanyBody > = z.object({ benefitType: z.number().int(), taxYear: z.number(), ytdEmployeeDeductionAmount: z.string().default("0.00"), ytdCompanyContributionAmount: z.string().default("0.00"), }).transform((v) => { return remap$(v, { benefitType: "benefit_type", taxYear: "tax_year", ytdEmployeeDeductionAmount: "ytd_employee_deduction_amount", ytdCompanyContributionAmount: "ytd_company_contribution_amount", }); }); export function ytdBenefitAmountsFromDifferentCompanyBodyToJSON( ytdBenefitAmountsFromDifferentCompanyBody: YtdBenefitAmountsFromDifferentCompanyBody, ): string { return JSON.stringify( YtdBenefitAmountsFromDifferentCompanyBody$outboundSchema.parse( ytdBenefitAmountsFromDifferentCompanyBody, ), ); }