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