/* * 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 { DlocalUPIRecurringInfoOptions, DlocalUPIRecurringInfoOptions$Outbound, DlocalUPIRecurringInfoOptions$outboundSchema, } from "./dlocalupirecurringinfooptions.js"; export type DlocalUPIWalletOptions = { /** * Passes `wallet.name` to the dLocal API for those connectors that need it. */ name?: string | null | undefined; /** * Passes `wallet.email` to the dLocal API for those connectors that need it. */ email?: string | null | undefined; /** * Passes `wallet.token` to the dLocal API for those connectors that need it. */ token?: string | null | undefined; /** * Passes `wallet.username` to the dLocal API for those connectors that need it. */ username?: string | null | undefined; /** * Passes `wallet.verify` to the dLocal API for those connectors that need it. */ verify?: boolean | null | undefined; /** * Passes `wallet.recurring_info` to the dLocal API for those connectors that need it. */ recurringInfo?: DlocalUPIRecurringInfoOptions | null | undefined; }; /** @internal */ export type DlocalUPIWalletOptions$Outbound = { name?: string | null | undefined; email?: string | null | undefined; token?: string | null | undefined; username?: string | null | undefined; verify?: boolean | null | undefined; recurring_info?: DlocalUPIRecurringInfoOptions$Outbound | null | undefined; }; /** @internal */ export const DlocalUPIWalletOptions$outboundSchema: z.ZodType< DlocalUPIWalletOptions$Outbound, z.ZodTypeDef, DlocalUPIWalletOptions > = z.object({ name: z.nullable(z.string()).optional(), email: z.nullable(z.string()).optional(), token: z.nullable(z.string()).optional(), username: z.nullable(z.string()).optional(), verify: z.nullable(z.boolean()).optional(), recurringInfo: z.nullable(DlocalUPIRecurringInfoOptions$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { recurringInfo: "recurring_info", }); }); export function dlocalUPIWalletOptionsToJSON( dlocalUPIWalletOptions: DlocalUPIWalletOptions, ): string { return JSON.stringify( DlocalUPIWalletOptions$outboundSchema.parse(dlocalUPIWalletOptions), ); }