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