/* * 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 CreateThreeDsConfigurationRequest = { /** * The ID of the merchant account. */ merchantAccountId: string; merchantAccountThreeDSConfigurationCreate: components.MerchantAccountThreeDSConfigurationCreate; }; /** @internal */ export type CreateThreeDsConfigurationRequest$Outbound = { merchant_account_id: string; MerchantAccountThreeDSConfigurationCreate: components.MerchantAccountThreeDSConfigurationCreate$Outbound; }; /** @internal */ export const CreateThreeDsConfigurationRequest$outboundSchema: z.ZodType< CreateThreeDsConfigurationRequest$Outbound, z.ZodTypeDef, CreateThreeDsConfigurationRequest > = z.object({ merchantAccountId: z.string(), merchantAccountThreeDSConfigurationCreate: components.MerchantAccountThreeDSConfigurationCreate$outboundSchema, }).transform((v) => { return remap$(v, { merchantAccountId: "merchant_account_id", merchantAccountThreeDSConfigurationCreate: "MerchantAccountThreeDSConfigurationCreate", }); }); export function createThreeDsConfigurationRequestToJSON( createThreeDsConfigurationRequest: CreateThreeDsConfigurationRequest, ): string { return JSON.stringify( CreateThreeDsConfigurationRequest$outboundSchema.parse( createThreeDsConfigurationRequest, ), ); }