/* * 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 BankAccountHolder = { /** * The account holder's first name */ firstName?: string | null | undefined; /** * The account holder's last name */ lastName?: string | null | undefined; /** * The account holder's company name */ companyName?: string | null | undefined; }; /** @internal */ export type BankAccountHolder$Outbound = { first_name?: string | null | undefined; last_name?: string | null | undefined; company_name?: string | null | undefined; }; /** @internal */ export const BankAccountHolder$outboundSchema: z.ZodType< BankAccountHolder$Outbound, z.ZodTypeDef, BankAccountHolder > = z.object({ firstName: z.nullable(z.string()).optional(), lastName: z.nullable(z.string()).optional(), companyName: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { firstName: "first_name", lastName: "last_name", companyName: "company_name", }); }); export function bankAccountHolderToJSON( bankAccountHolder: BankAccountHolder, ): string { return JSON.stringify( BankAccountHolder$outboundSchema.parse(bankAccountHolder), ); }