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