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