/* * 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 BankAccountValidationInteractiveValidateGlobals = { source?: string | undefined; }; export type BankAccountValidationInteractiveValidateRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The bank account number to validate. */ accountNumber: string; /** * The branch sort code for the account number. */ sortCode: string; }; /** @internal */ export type BankAccountValidationInteractiveValidateRequest$Outbound = { Key?: string | undefined; AccountNumber: string; SortCode: string; }; /** @internal */ export const BankAccountValidationInteractiveValidateRequest$outboundSchema: z.ZodType< BankAccountValidationInteractiveValidateRequest$Outbound, z.ZodTypeDef, BankAccountValidationInteractiveValidateRequest > = z.object({ key: z.string().optional(), accountNumber: z.string(), sortCode: z.string(), }).transform((v) => { return remap$(v, { key: "Key", accountNumber: "AccountNumber", sortCode: "SortCode", }); }); export function bankAccountValidationInteractiveValidateRequestToJSON( bankAccountValidationInteractiveValidateRequest: BankAccountValidationInteractiveValidateRequest, ): string { return JSON.stringify( BankAccountValidationInteractiveValidateRequest$outboundSchema.parse( bankAccountValidationInteractiveValidateRequest, ), ); }