/* * 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 ClickToPaySessionRequest = { /** * The checkout session ID to create a Click to Pay session for. */ checkoutSessionId: string; }; /** @internal */ export type ClickToPaySessionRequest$Outbound = { checkout_session_id: string; }; /** @internal */ export const ClickToPaySessionRequest$outboundSchema: z.ZodType< ClickToPaySessionRequest$Outbound, z.ZodTypeDef, ClickToPaySessionRequest > = z.object({ checkoutSessionId: z.string(), }).transform((v) => { return remap$(v, { checkoutSessionId: "checkout_session_id", }); }); export function clickToPaySessionRequestToJSON( clickToPaySessionRequest: ClickToPaySessionRequest, ): string { return JSON.stringify( ClickToPaySessionRequest$outboundSchema.parse(clickToPaySessionRequest), ); }