/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import * as shared from "../shared/index.js"; export type CreateBankAccountRequest = { /** * Unique identifier for a company. */ companyId: string; /** * Unique identifier for a connection. */ connectionId: string; /** * Time limit for the push operation to complete before it is timed out. */ timeoutInMinutes?: number | undefined; bankAccountPrototype?: shared.BankAccountPrototype | undefined; }; /** @internal */ export type CreateBankAccountRequest$Outbound = { companyId: string; connectionId: string; timeoutInMinutes?: number | undefined; bankAccountPrototype?: shared.BankAccountPrototype$Outbound | undefined; }; /** @internal */ export const CreateBankAccountRequest$outboundSchema: z.ZodType< CreateBankAccountRequest$Outbound, z.ZodTypeDef, CreateBankAccountRequest > = z.object({ companyId: z.string(), connectionId: z.string(), timeoutInMinutes: z.number().int().optional(), bankAccountPrototype: shared.BankAccountPrototype$outboundSchema.optional(), }); export function createBankAccountRequestToJSON( createBankAccountRequest: CreateBankAccountRequest, ): string { return JSON.stringify( CreateBankAccountRequest$outboundSchema.parse(createBankAccountRequest), ); }