/* * 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 CreatePayoutGlobals = { merchantAccountId?: string | undefined; }; export type CreatePayoutRequest = { /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; payoutCreate: components.PayoutCreate; }; /** @internal */ export type CreatePayoutRequest$Outbound = { merchantAccountId?: string | null | undefined; PayoutCreate: components.PayoutCreate$Outbound; }; /** @internal */ export const CreatePayoutRequest$outboundSchema: z.ZodType< CreatePayoutRequest$Outbound, z.ZodTypeDef, CreatePayoutRequest > = z.object({ merchantAccountId: z.nullable(z.string()).optional(), payoutCreate: components.PayoutCreate$outboundSchema, }).transform((v) => { return remap$(v, { payoutCreate: "PayoutCreate", }); }); export function createPayoutRequestToJSON( createPayoutRequest: CreatePayoutRequest, ): string { return JSON.stringify( CreatePayoutRequest$outboundSchema.parse(createPayoutRequest), ); }