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