/* * 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 BankAccountValidationInteractiveRetrieveBySortcodeGlobals = { source?: string | undefined; }; export type BankAccountValidationInteractiveRetrieveBySortcodeRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The branch sortcode. */ sortCode: string; }; /** @internal */ export type BankAccountValidationInteractiveRetrieveBySortcodeRequest$Outbound = { Key?: string | undefined; SortCode: string; }; /** @internal */ export const BankAccountValidationInteractiveRetrieveBySortcodeRequest$outboundSchema: z.ZodType< BankAccountValidationInteractiveRetrieveBySortcodeRequest$Outbound, z.ZodTypeDef, BankAccountValidationInteractiveRetrieveBySortcodeRequest > = z.object({ key: z.string().optional(), sortCode: z.string(), }).transform((v) => { return remap$(v, { key: "Key", sortCode: "SortCode", }); }); export function bankAccountValidationInteractiveRetrieveBySortcodeRequestToJSON( bankAccountValidationInteractiveRetrieveBySortcodeRequest: BankAccountValidationInteractiveRetrieveBySortcodeRequest, ): string { return JSON.stringify( BankAccountValidationInteractiveRetrieveBySortcodeRequest$outboundSchema .parse(bankAccountValidationInteractiveRetrieveBySortcodeRequest), ); }