/* * 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 EditThreeDsConfigurationRequest = { /** * The ID of the merchant account. */ merchantAccountId: string; /** * The ID of the 3DS configuration for a merchant account. */ threeDsConfigurationId: string; merchantAccountThreeDSConfigurationUpdate: components.MerchantAccountThreeDSConfigurationUpdate; }; /** @internal */ export type EditThreeDsConfigurationRequest$Outbound = { merchant_account_id: string; three_ds_configuration_id: string; MerchantAccountThreeDSConfigurationUpdate: components.MerchantAccountThreeDSConfigurationUpdate$Outbound; }; /** @internal */ export const EditThreeDsConfigurationRequest$outboundSchema: z.ZodType< EditThreeDsConfigurationRequest$Outbound, z.ZodTypeDef, EditThreeDsConfigurationRequest > = z.object({ merchantAccountId: z.string(), threeDsConfigurationId: z.string(), merchantAccountThreeDSConfigurationUpdate: components.MerchantAccountThreeDSConfigurationUpdate$outboundSchema, }).transform((v) => { return remap$(v, { merchantAccountId: "merchant_account_id", threeDsConfigurationId: "three_ds_configuration_id", merchantAccountThreeDSConfigurationUpdate: "MerchantAccountThreeDSConfigurationUpdate", }); }); export function editThreeDsConfigurationRequestToJSON( editThreeDsConfigurationRequest: EditThreeDsConfigurationRequest, ): string { return JSON.stringify( EditThreeDsConfigurationRequest$outboundSchema.parse( editThreeDsConfigurationRequest, ), ); }