/* * 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 CheckoutPayoutOptions = { /** * The processing channel to be used for the payment. */ processingChannelId: string; /** * The ID of the currency account that will fund the payout. */ sourceId: string; }; /** @internal */ export type CheckoutPayoutOptions$Outbound = { processing_channel_id: string; source_id: string; }; /** @internal */ export const CheckoutPayoutOptions$outboundSchema: z.ZodType< CheckoutPayoutOptions$Outbound, z.ZodTypeDef, CheckoutPayoutOptions > = z.object({ processingChannelId: z.string(), sourceId: z.string(), }).transform((v) => { return remap$(v, { processingChannelId: "processing_channel_id", sourceId: "source_id", }); }); export function checkoutPayoutOptionsToJSON( checkoutPayoutOptions: CheckoutPayoutOptions, ): string { return JSON.stringify( CheckoutPayoutOptions$outboundSchema.parse(checkoutPayoutOptions), ); }