/* * 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 WireInRequestUpdateRequestBody = { /** * The date the wire was sent */ dateSent: string; /** * Name of the bank sending the wire */ bankName: string; /** * Amount of money sent */ amountSent: string; /** * Additional notes */ additionalNotes?: string | undefined; }; /** @internal */ export type WireInRequestUpdateRequestBody$Outbound = { date_sent: string; bank_name: string; amount_sent: string; additional_notes?: string | undefined; }; /** @internal */ export const WireInRequestUpdateRequestBody$outboundSchema: z.ZodType< WireInRequestUpdateRequestBody$Outbound, z.ZodTypeDef, WireInRequestUpdateRequestBody > = z.object({ dateSent: z.string(), bankName: z.string(), amountSent: z.string(), additionalNotes: z.string().optional(), }).transform((v) => { return remap$(v, { dateSent: "date_sent", bankName: "bank_name", amountSent: "amount_sent", additionalNotes: "additional_notes", }); }); export function wireInRequestUpdateRequestBodyToJSON( wireInRequestUpdateRequestBody: WireInRequestUpdateRequestBody, ): string { return JSON.stringify( WireInRequestUpdateRequestBody$outboundSchema.parse( wireInRequestUpdateRequestBody, ), ); }