/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type PartnerManagedCompanyAcceptTermsOfServiceRequest = { /** * The user's email address on Gusto. You can retrieve the user's email via company's `/admins`, `/employees`, `/signatories`, and `/contractors` endpoints. */ email: string; /** * The IP address of the user who viewed and accepted the Terms of Service. */ ipAddress: string; /** * The user ID on your platform. */ externalUserId: string; }; /** @internal */ export type PartnerManagedCompanyAcceptTermsOfServiceRequest$Outbound = { email: string; ip_address: string; external_user_id: string; }; /** @internal */ export const PartnerManagedCompanyAcceptTermsOfServiceRequest$outboundSchema: z.ZodType< PartnerManagedCompanyAcceptTermsOfServiceRequest$Outbound, z.ZodTypeDef, PartnerManagedCompanyAcceptTermsOfServiceRequest > = z.object({ email: z.string(), ipAddress: z.string(), externalUserId: z.string(), }).transform((v) => { return remap$(v, { ipAddress: "ip_address", externalUserId: "external_user_id", }); }); export function partnerManagedCompanyAcceptTermsOfServiceRequestToJSON( partnerManagedCompanyAcceptTermsOfServiceRequest: PartnerManagedCompanyAcceptTermsOfServiceRequest, ): string { return JSON.stringify( PartnerManagedCompanyAcceptTermsOfServiceRequest$outboundSchema.parse( partnerManagedCompanyAcceptTermsOfServiceRequest, ), ); }