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