/* * 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 GetDigitalWalletGlobals = { merchantAccountId?: string | undefined; }; export type GetDigitalWalletRequest = { /** * The ID of the digital wallet to read. */ digitalWalletId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type GetDigitalWalletRequest$Outbound = { digital_wallet_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetDigitalWalletRequest$outboundSchema: z.ZodType< GetDigitalWalletRequest$Outbound, z.ZodTypeDef, GetDigitalWalletRequest > = z.object({ digitalWalletId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { digitalWalletId: "digital_wallet_id", }); }); export function getDigitalWalletRequestToJSON( getDigitalWalletRequest: GetDigitalWalletRequest, ): string { return JSON.stringify( GetDigitalWalletRequest$outboundSchema.parse(getDigitalWalletRequest), ); }