/* * 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 * as components from "../components/index.js"; export type CreateAccountUpdaterJobGlobals = { merchantAccountId?: string | undefined; }; export type CreateAccountUpdaterJobRequest = { /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; accountUpdaterJobCreate: components.AccountUpdaterJobCreate; }; /** @internal */ export type CreateAccountUpdaterJobRequest$Outbound = { merchantAccountId?: string | null | undefined; AccountUpdaterJobCreate: components.AccountUpdaterJobCreate$Outbound; }; /** @internal */ export const CreateAccountUpdaterJobRequest$outboundSchema: z.ZodType< CreateAccountUpdaterJobRequest$Outbound, z.ZodTypeDef, CreateAccountUpdaterJobRequest > = z.object({ merchantAccountId: z.nullable(z.string()).optional(), accountUpdaterJobCreate: components.AccountUpdaterJobCreate$outboundSchema, }).transform((v) => { return remap$(v, { accountUpdaterJobCreate: "AccountUpdaterJobCreate", }); }); export function createAccountUpdaterJobRequestToJSON( createAccountUpdaterJobRequest: CreateAccountUpdaterJobRequest, ): string { return JSON.stringify( CreateAccountUpdaterJobRequest$outboundSchema.parse( createAccountUpdaterJobRequest, ), ); }