/* * 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 { DigitalWalletAddress, DigitalWalletAddress$Outbound, DigitalWalletAddress$outboundSchema, } from "./digitalwalletaddress.js"; /** * Request body for editing a registered digital wallet */ export type DigitalWalletUpdate = { merchantName?: string | null | undefined; domainNames?: Array | null | undefined; merchantDisplayName?: string | null | undefined; merchantUrl?: string | null | undefined; merchantCountryCode?: string | null | undefined; merchantCategoryCode?: string | null | undefined; address?: DigitalWalletAddress | null | undefined; extraConfiguration?: { [k: string]: any } | null | undefined; }; /** @internal */ export type DigitalWalletUpdate$Outbound = { merchant_name?: string | null | undefined; domain_names?: Array | null | undefined; merchant_display_name?: string | null | undefined; merchant_url?: string | null | undefined; merchant_country_code?: string | null | undefined; merchant_category_code?: string | null | undefined; address?: DigitalWalletAddress$Outbound | null | undefined; extra_configuration?: { [k: string]: any } | null | undefined; }; /** @internal */ export const DigitalWalletUpdate$outboundSchema: z.ZodType< DigitalWalletUpdate$Outbound, z.ZodTypeDef, DigitalWalletUpdate > = z.object({ merchantName: z.nullable(z.string()).optional(), domainNames: z.nullable(z.array(z.string())).optional(), merchantDisplayName: z.nullable(z.string()).optional(), merchantUrl: z.nullable(z.string()).optional(), merchantCountryCode: z.nullable(z.string()).optional(), merchantCategoryCode: z.nullable(z.string()).optional(), address: z.nullable(DigitalWalletAddress$outboundSchema).optional(), extraConfiguration: z.nullable(z.record(z.any())).optional(), }).transform((v) => { return remap$(v, { merchantName: "merchant_name", domainNames: "domain_names", merchantDisplayName: "merchant_display_name", merchantUrl: "merchant_url", merchantCountryCode: "merchant_country_code", merchantCategoryCode: "merchant_category_code", extraConfiguration: "extra_configuration", }); }); export function digitalWalletUpdateToJSON( digitalWalletUpdate: DigitalWalletUpdate, ): string { return JSON.stringify( DigitalWalletUpdate$outboundSchema.parse(digitalWalletUpdate), ); }